diff --git a/assets/index-5afa8ffb.js b/assets/index-5afa8ffb.js deleted file mode 100644 index f9c9fce..0000000 --- a/assets/index-5afa8ffb.js +++ /dev/null @@ -1,215 +0,0 @@ -import{r as f,a as ia,$ as ur,b as la,c as fr,C as sn,d as gr,e as pr,f as an,g as ln,h as mr,i as hr,j as _e,k as xr,D as dn,l as vr,m as br,n as wr,o as yr,p as jr,q as Sr,s as da,t as Cr,u as $r,v as Rr,w as Nr,x as _r,y as Ar,z as Mr,A as Er,B as kr,E as Pr,F as cn,G as Fr,H as Dr,I as Ir,J as Vr,K as ca,L as Or,M as Lr,N as ua,O as zr,P as fa,Q as Tr,R as ga,S as Gr,T as pa,U as Hr,V as Br,W as ma,X as ha,Y as Ur,Z as xa,_ as qr,a0 as va,a1 as ba,a2 as ut,a3 as ft,a4 as Wr,a5 as Kr,a6 as gt,a7 as pt,a8 as un,a9 as wa,aa as Jr,ab as ya,ac as ja,ad as Sa,ae as Ca,af as $a,ag as Xr,ah as Ra,ai as Na,aj as _a,ak as Zr,al as Aa,am as Yr,an as Qr,ao as eo,ap as to,aq as no,ar as ro,as as Ma,at as oo,au as so,av as ao,aw as io,ax as lo,ay as co,az as uo,aA as fn,aB as gn,aC as mt,aD as ht,aE as pn,aF as fo,aG as Ea,aH as ka,aI as go,aJ as Pa,aK as po,aL as mo,aM as ho,aN as xo,aO as vo,aP as bo,aQ as Fa,aR as wo,aS as yo,aT as jo,aU as Da,aV as So,aW as Co,aX as Ia,aY as ve,aZ as Va}from"./radix-ui-f68920fa.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();var $o={exports:{}},xt={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Oa=f,La=Symbol.for("react.element"),za=Symbol.for("react.fragment"),Ta=Object.prototype.hasOwnProperty,Ga=Oa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ha={key:!0,ref:!0,__self:!0,__source:!0};function Ro(e,t,n){var r,s={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Ta.call(t,r)&&!Ha.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:La,type:e,key:a,ref:i,props:s,_owner:Ga.current}}xt.Fragment=za;xt.jsx=Ro;xt.jsxs=Ro;$o.exports=xt;var o=$o.exports,Lt={},An=ia;Lt.createRoot=An.createRoot,Lt.hydrateRoot=An.hydrateRoot;function No(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,En=Ba,Te=(e,t)=>n=>{var r;if(t?.variants==null)return En(e,n?.class,n?.className);const{variants:s,defaultVariants:a}=t,i=Object.keys(s).map(d=>{const u=n?.[d],g=a?.[d];if(u===null)return null;const m=Mn(u)||Mn(g);return s[d][m]}),l=n&&Object.entries(n).reduce((d,u)=>{let[g,m]=u;return m===void 0||(d[g]=m),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:g,className:m,...p}=u;return Object.entries(p).every(x=>{let[h,R]=x;return Array.isArray(R)?R.includes({...a,...l}[h]):{...a,...l}[h]===R})?[...d,g,m]:d},[]);return En(e,i,c,n?.class,n?.className)};function Ua(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(i){var l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return s(i,l),l},set:function(i,l){n.has(i)?n.set(i,l):s(i,l)}}}var Mo="!";function Ya(e){var t=e.separator||":",n=t.length===1,r=t[0],s=t.length;return function(i){for(var l=[],c=0,d=0,u,g=0;gd?u-d:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:h,maybePostfixModifierPosition:R}}}function Qa(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var s=r[0]==="[";s?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function ei(e){return{cache:Za(e.cacheSize),splitModifiers:Ya(e),...qa(e)}}var ti=/\s+/;function ni(e,t){var n=t.splitModifiers,r=t.getClassGroupId,s=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(ti).map(function(i){var l=n(i),c=l.modifiers,d=l.hasImportantModifier,u=l.baseClassName,g=l.maybePostfixModifierPosition,m=r(g?u.substring(0,g):u),p=!!g;if(!m){if(!g)return{isTailwindClass:!1,originalClassName:i};if(m=r(u),!m)return{isTailwindClass:!1,originalClassName:i};p=!1}var x=Qa(c).join(":"),h=d?x+Mo:x;return{isTailwindClass:!0,modifierId:h,classGroupId:m,originalClassName:i,hasPostfixModifier:p}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var l=i.modifierId,c=i.classGroupId,d=i.hasPostfixModifier,u=l+c;return a.has(u)?!1:(a.add(u),s(c,d).forEach(function(g){return a.add(l+g)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function ri(){for(var e=arguments.length,t=new Array(e),n=0;n{n=null,e.apply(s,r)},t))}return a}function wi(e,t=2){return e.toFixed(Math.max(Math.min(t,20),0))}function yi(e,t,n){return Math.min(Math.max(e,t),n)}function ji(e,{asArrayBuffer:t}){return new Promise((n,r)=>{const s=new FileReader;s.onload=()=>n(s.result),s.onerror=()=>r(new Error("Failed to load file")),t?s.readAsArrayBuffer(e):s.readAsDataURL(e)})}function Po(e){const t=window.document.documentElement;if(t.classList.remove("light","dark"),e==="system"){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";t.classList.add(n);return}t.classList.add(e)}const Si="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",Ci=Te(Si),Gt=f.forwardRef(({className:e,...t},n)=>o.jsx(ur,{ref:n,className:v(Ci(),e),...t}));Gt.displayName=ur.displayName;const $i="px-3 py-1 w-full h-9 text-sm border-input bg-transparent file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed transition-colors border rounded-md shadow-sm flex",Le=f.forwardRef(({className:e,type:t,...n},r)=>o.jsx("input",{type:t,className:v($i,e),ref:r,...n}));Le.displayName="Input";const Ri="px-3 py-2 w-full min-h-[60px] text-sm border-input bg-transparent placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed border rounded-md shadow-sm flex",Fo=f.forwardRef(({className:e,...t},n)=>o.jsx("textarea",{className:v(Ri,e),ref:n,...t}));Fo.displayName="Textarea";const Ni='after:![content:attr(data-replicated)_"_"] after:whitespace-pre after:border-transparent after:invisible after:[grid-area:1/1/2/2] grid',_i="resize-none overflow-hidden [grid-area:1/1/2/2]",Ai="after:px-3 after:py-2 after:text-sm after:border",Mi=f.forwardRef(({containerPaddingFont:e=Ai,className:t,value:n,...r},s)=>o.jsx("div",{className:v(Ni,e),"data-replicated":n,children:o.jsx(Fo,{className:v(_i,t),value:n,ref:s,...r})}));Mi.displayName="TextareaAutoGrow";const Ei="text-sm font-medium focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none transition-colors rounded-md inline-flex items-center justify-center",hn=Te(Ei,{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground shadow-sm",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Y=f.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},a)=>{const i=r?la:"button";return o.jsx(i,{className:v(hn({variant:t,size:n,className:e})),ref:a,...s})});Y.displayName="Button";const Ge=" data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",xn=wr,vn=yr,ki="px-2 py-1.5 text-sm focus:bg-accent data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",Pi=f.forwardRef(({className:e,inset:t,children:n,...r},s)=>o.jsxs(fr,{ref:s,className:v(ki,t&&"pl-8",e),...r,children:[n,o.jsx(sn,{className:"ml-auto h-4 w-4"})]}));Pi.displayName=fr.displayName;const Do=`p-1 min-w-[8rem] z-50 text-popover-foreground bg-popover border rounded-md shadow-md overflow-hidden ${Ge}`,Fi=f.forwardRef(({className:e,...t},n)=>o.jsx(gr,{ref:n,className:v(Do,e),...t}));Fi.displayName=gr.displayName;const Di=Do,vt=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>o.jsx(pr,{children:o.jsx(an,{ref:r,className:v(Di,e),sideOffset:t,...n})}));vt.displayName=an.displayName;const Ii="relative px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none transition-colors rounded-sm outline-none select-none cursor-default flex items-center",Ve=f.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(ln,{ref:r,className:v(Ii,t&&"pl-8",e),...n}));Ve.displayName=ln.displayName;const Vi="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none transition-colors rounded-sm outline-none select-none cursor-default flex items-center",Io=f.forwardRef(({className:e,children:t,checked:n,...r},s)=>o.jsxs(mr,{ref:s,className:v(Vi,e),checked:n,...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(hr,{children:o.jsx(_e,{className:"h-4 w-4"})})}),t]}));Io.displayName=mr.displayName;const Oi="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none transition-colors rounded-sm outline-none select-none cursor-default flex items-center",Li=f.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(xr,{ref:r,className:v(Oi,e),...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(hr,{children:o.jsx(dn,{className:"h-4 w-4 fill-current"})})}),t]}));Li.displayName=xr.displayName;const Vo=f.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(vr,{ref:r,className:v("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Vo.displayName=vr.displayName;const Oo=f.forwardRef(({className:e,...t},n)=>o.jsx(br,{ref:n,className:v("-mx-1 my-1 h-px bg-muted",e),...t}));Oo.displayName=br.displayName;const zi="px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",Ti=f.forwardRef(({className:e,inset:t,children:n,...r},s)=>o.jsxs(jr,{ref:s,className:v(zi,t&&"pl-8",e),...r,children:[n,o.jsx(sn,{className:"ml-auto h-4 w-4"})]}));Ti.displayName=jr.displayName;const Lo=`z-50 p-1 min-w-[8rem] text-popover-foreground bg-popover border rounded-md shadow-md overflow-hidden ${Ge}`,Gi=f.forwardRef(({className:e,...t},n)=>o.jsx(Sr,{ref:n,className:v(Lo,e),...t}));Gi.displayName=Sr.displayName;const Hi=Lo,Bi=f.forwardRef(({className:e,...t},n)=>o.jsx(da,{children:o.jsx(Cr,{ref:n,className:v(Hi,e),...t})}));Bi.displayName=Cr.displayName;const Ui="relative px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",qi=f.forwardRef(({className:e,inset:t,...n},r)=>o.jsx($r,{ref:r,className:v(Ui,t&&"pl-8",e),...n}));qi.displayName=$r.displayName;const zo="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",Wi=f.forwardRef(({className:e,children:t,checked:n,...r},s)=>o.jsxs(Rr,{ref:s,className:v(zo,e),checked:n,...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(Nr,{children:o.jsx(_e,{className:"h-4 w-4"})})}),t]}));Wi.displayName=Rr.displayName;const Ki=f.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(_r,{ref:r,className:v(zo,e),...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(Nr,{children:o.jsx(dn,{className:"h-4 w-4 fill-current"})})}),t]}));Ki.displayName=_r.displayName;const Ji=f.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(Ar,{ref:r,className:v("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n}));Ji.displayName=Ar.displayName;const Xi=f.forwardRef(({className:e,...t},n)=>o.jsx(Mr,{ref:n,className:v("-mx-1 my-1 h-px bg-border",e),...t}));Xi.displayName=Mr.displayName;const Zi="z-10 relative max-w-max flex-1 flex items-center justify-center",Yi=f.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(Er,{ref:r,className:v(Zi,e),...n,children:[t,o.jsx(To,{})]}));Yi.displayName=Er.displayName;const Qi="group flex-1list-none flex items-center justify-center space-x-1",el=f.forwardRef(({className:e,...t},n)=>o.jsx(kr,{ref:n,className:v(Qi,e),...t}));el.displayName=kr.displayName;const tl="group px-4 py-2 w-max h-9 text-sm font-medium bg-background hover:text-accent-foreground hover:bg-accent focus:text-accent-foreground focus:bg-accent focus:outline-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50 disabled:pointer-events-none transition-colors rounded-md inline-flex items-center justify-center",nl=Te(tl),rl="relative ml-1 top-[1px] w-3 h-3 group-data-[state=open]:rotate-180 transition duration-300 ",ol=f.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(Pr,{ref:r,className:v(nl(),"group",e),...n,children:[t," ",o.jsx(cn,{className:rl,"aria-hidden":"true"})]}));ol.displayName=Pr.displayName;const sl="left-0 top-0 w-full md:absolute md:w-auto data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out data-[motion=from-start]:slide-in-from-left-52 data-[motion=from-end]:slide-in-from-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion=to-end]:slide-out-to-right-52",al=f.forwardRef(({className:e,...t},n)=>o.jsx(Fr,{ref:n,className:v(sl,e),...t}));al.displayName=Fr.displayName;const il="relative mt-1.5 w-full h-[var(--radix-navigation-menu-viewport-height)] text-popover-foreground bg-popover data-[state=open]:animate-in data-[state=open]:zoom-in-90 data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 md:w-[var(--radix-navigation-menu-viewport-width)] overflow-hidden origin-top-center border rounded-md shadow",To=f.forwardRef(({className:e,...t},n)=>o.jsx("div",{className:v("absolute left-0 top-full flex justify-center"),children:o.jsx(Dr,{ref:n,className:v(il,e),...t})}));To.displayName=Dr.displayName;const ll="z-[1] top-full h-1.5 data-[state=visible]:animate-in data-[state=visible]:fade-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out overflow-hidden flex items-end justify-center",dl=f.forwardRef(({className:e,...t},n)=>o.jsx(Ir,{ref:n,className:v(ll,e),...t,children:o.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));dl.displayName=Ir.displayName;const cl="peer w-4 h-4 shrink-0 border-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground border rounded-sm shadow",ze=f.forwardRef(({className:e,...t},n)=>o.jsx(Vr,{ref:n,className:v(cl,e),...t,children:o.jsx(ca,{className:v("flex items-center justify-center text-current"),children:o.jsx(_e,{className:"h-4 w-4"})})}));ze.displayName=Vr.displayName;const ul=f.forwardRef(({className:e,...t},n)=>o.jsx(Or,{className:v("grid gap-2",e),...t,ref:n}));ul.displayName=Or.displayName;const fl="h-4 w-4 aspect-square text-primary border-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 border rounded-full shadow",gl=f.forwardRef(({className:e,children:t,...n},r)=>o.jsx(Lr,{ref:r,className:v(fl,e),...n,children:o.jsx(ua,{className:"flex items-center justify-center",children:o.jsx(_e,{className:"h-3.5 w-3.5 fill-primary"})})}));gl.displayName=Lr.displayName;const pl="px-3 py-2 h-9 w-full text-sm border-input bg-transparent ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 border rounded-md shadow-sm flex items-center justify-between",ml=f.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(zr,{ref:r,className:v(pl,e),...n,children:[t,o.jsx(fa,{asChild:!0,children:o.jsx(Tr,{className:"h-4 w-4 opacity-50"})})]}));ml.displayName=zr.displayName;const hl="z-50 relative min-w-[8rem] bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 overflow-hidden border rounded-md shadow-md",xl="data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",vl="w-full h-[var(--radix-select-trigger-height)] min-w-[var(--radix-select-trigger-width)]",bl=f.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>o.jsx(ga,{children:o.jsx(Gr,{ref:s,className:v(hl,n==="popper"&&xl,e),position:n,...r,children:o.jsx(pa,{className:v("p-1",n==="popper"&&vl),children:t})})}));bl.displayName=Gr.displayName;const wl=f.forwardRef(({className:e,...t},n)=>o.jsx(Hr,{ref:n,className:v("px-2 py-1.5 text-sm font-semibold",e),...t}));wl.displayName=Hr.displayName;const yl="relative pl-2 pr-8 py-1.5 w-full text-sm focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",jl=f.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(Br,{ref:r,className:v(yl,e),...n,children:[o.jsx("span",{className:"absolute right-2 h-3.5 w-3.5 flex items-center justify-center",children:o.jsx(ma,{children:o.jsx(_e,{className:"h-4 w-4"})})}),o.jsx(ha,{children:t})]}));jl.displayName=Br.displayName;const Sl=f.forwardRef(({className:e,...t},n)=>o.jsx(Ur,{ref:n,className:v("-mx-1 my-1 h-px bg-muted",e),...t}));Sl.displayName=Ur.displayName;const Cl=va,$l=ba,Rl=`p-4 w-72 z-50 text-popover-foreground bg-popover border rounded-md shadow-md outline-none ${Ge}`,Go=f.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>o.jsx(xa,{children:o.jsx(qr,{ref:s,align:t,sideOffset:n,className:v(Rl,e),...r})}));Go.displayName=qr.displayName;const Nl=wa,_l=un,Al="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",Ho=f.forwardRef(({className:e,...t},n)=>o.jsx(ut,{ref:n,className:v(Al,e),...t}));Ho.displayName=ut.displayName;const Ml="fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] z-50 p-6 w-full md:w-full max-w-lg bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] border sm:rounded-lg shadow-lg duration-200 grid gap-4",El="absolute right-4 top-4 opacity-70 transition-opacityhover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground ring-offset-background rounded-sm disabled:pointer-events-none",Bo=f.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(_l,{children:[o.jsx(Ho,{}),o.jsxs(ft,{ref:r,className:v(Ml,e),...n,children:[t,o.jsxs(Wr,{className:El,children:[o.jsx(Kr,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Bo.displayName=ft.displayName;const Uo=({className:e,...t})=>o.jsx("div",{className:v("text-center sm:text-left flex flex-col space-y-1.5",e),...t});Uo.displayName="DialogHeader";const qo=({className:e,...t})=>o.jsx("div",{className:v("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});qo.displayName="DialogFooter";const Wo=f.forwardRef(({className:e,...t},n)=>o.jsx(gt,{ref:n,className:v("text-lg font-semibold leading-none tracking-tight",e),...t}));Wo.displayName=gt.displayName;const Ko=f.forwardRef(({className:e,...t},n)=>o.jsx(pt,{ref:n,className:v("text-sm text-muted-foreground",e),...t}));Ko.displayName=pt.displayName;var Dn=1,kl=.9,Pl=.3,Ct=.1,Fl=0,$t=.999,Dl=.9999,Il=.99,In=/[\\\/\-_+.# \t"@\[\(\{&]/,Vl=/[\\\/\-_+.# \t"@\[\(\{&]/g;function Ht(e,t,n,r,s,a){if(a===t.length)return s===e.length?Dn:Il;for(var i=r.charAt(a),l=n.indexOf(i,s),c=0,d,u,g;l>=0;)d=Ht(e,t,n,r,l+1,a+1),d>c&&(l===s?d*=Dn:In.test(e.charAt(l-1))?(d*=kl,g=e.slice(s,l-1).match(Vl),g&&s>0&&(d*=Math.pow($t,g.length))):In.test(e.slice(s,l-1))?(d*=Fl,s>0&&(d*=Math.pow($t,l-s))):(d*=Pl,s>0&&(d*=Math.pow($t,l-s))),e.charAt(l)!==t.charAt(a)&&(d*=Dl)),dd&&(d=u*Ct)),d>c&&(c=d),l=n.indexOf(i,l+1);return c}function Ol(e,t){return Ht(e,t,e.toLowerCase(),t.toLowerCase(),0,0)}var Ll=Ol;const zl=Jr(Ll);var Tl='[cmdk-list-sizer=""]',Pe='[cmdk-group=""]',Rt='[cmdk-group-items=""]',Gl='[cmdk-group-heading=""]',Jo='[cmdk-item=""]',Vn=`${Jo}:not([aria-disabled="true"])`,Bt="cmdk-item-select",ce="data-value",Hl=(e,t)=>zl(e,t),Xo=f.createContext(void 0),He=()=>f.useContext(Xo),Zo=f.createContext(void 0),bn=()=>f.useContext(Zo),Yo=f.createContext(void 0),Qo=f.forwardRef((e,t)=>{let n=f.useRef(null),r=Se(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),s=Se(()=>new Set),a=Se(()=>new Map),i=Se(()=>new Map),l=Se(()=>new Set),c=es(e),{label:d,children:u,value:g,onValueChange:m,filter:p,shouldFilter:x,...h}=e,R=f.useId(),$=f.useId(),A=f.useId(),E=ed();Ae(()=>{if(g!==void 0){let y=g.trim().toLowerCase();r.current.value=y,E(6,C),D.emit()}},[g]);let D=f.useMemo(()=>({subscribe:y=>(l.current.add(y),()=>l.current.delete(y)),snapshot:()=>r.current,setState:(y,F,T)=>{var M,z,ee;if(!Object.is(r.current[y],F)){if(r.current[y]=F,y==="search")j(),W(),E(1,w);else if(y==="value")if(((M=c.current)==null?void 0:M.value)!==void 0){(ee=(z=c.current).onValueChange)==null||ee.call(z,F);return}else T||E(5,C);D.emit()}},emit:()=>{l.current.forEach(y=>y())}}),[]),G=f.useMemo(()=>({value:(y,F)=>{F!==i.current.get(y)&&(i.current.set(y,F),r.current.filtered.items.set(y,q(F)),E(2,()=>{W(),D.emit()}))},item:(y,F)=>(s.current.add(y),F&&(a.current.has(F)?a.current.get(F).add(y):a.current.set(F,new Set([y]))),E(3,()=>{j(),W(),r.current.value||w(),D.emit()}),()=>{i.current.delete(y),s.current.delete(y),r.current.filtered.items.delete(y),E(4,()=>{j(),w(),D.emit()})}),group:y=>(a.current.has(y)||a.current.set(y,new Set),()=>{i.current.delete(y),a.current.delete(y)}),filter:()=>c.current.shouldFilter,label:d||e["aria-label"],listId:R,inputId:A,labelId:$}),[]);function q(y){var F;let T=((F=c.current)==null?void 0:F.filter)??Hl;return y?T(y,r.current.search):0}function W(){if(!n.current||!r.current.search||c.current.shouldFilter===!1)return;let y=r.current.filtered.items,F=[];r.current.filtered.groups.forEach(M=>{let z=a.current.get(M),ee=0;z.forEach(Me=>{let aa=y.get(Me);ee=Math.max(aa,ee)}),F.push([M,ee])});let T=n.current.querySelector(Tl);S().sort((M,z)=>{let ee=M.getAttribute(ce),Me=z.getAttribute(ce);return(y.get(Me)??0)-(y.get(ee)??0)}).forEach(M=>{let z=M.closest(Rt);z?z.appendChild(M.parentElement===z?M:M.closest(`${Rt} > *`)):T.appendChild(M.parentElement===T?M:M.closest(`${Rt} > *`))}),F.sort((M,z)=>z[1]-M[1]).forEach(M=>{let z=n.current.querySelector(`${Pe}[${ce}="${M[0]}"]`);z?.parentElement.appendChild(z)})}function w(){let y=S().find(T=>!T.ariaDisabled),F=y?.getAttribute(ce);D.setState("value",F||void 0)}function j(){if(!r.current.search||c.current.shouldFilter===!1){r.current.filtered.count=s.current.size;return}r.current.filtered.groups=new Set;let y=0;for(let F of s.current){let T=i.current.get(F),M=q(T);r.current.filtered.items.set(F,M),M>0&&y++}for(let[F,T]of a.current)for(let M of T)if(r.current.filtered.items.get(M)>0){r.current.filtered.groups.add(F);break}r.current.filtered.count=y}function C(){var y,F,T;let M=b();M&&(((y=M.parentElement)==null?void 0:y.firstChild)===M&&((T=(F=M.closest(Pe))==null?void 0:F.querySelector(Gl))==null||T.scrollIntoView({block:"nearest"})),M.scrollIntoView({block:"nearest"}))}function b(){return n.current.querySelector(`${Jo}[aria-selected="true"]`)}function S(){return Array.from(n.current.querySelectorAll(Vn))}function _(y){let F=S()[y];F&&D.setState("value",F.getAttribute(ce))}function N(y){var F;let T=b(),M=S(),z=M.findIndex(Me=>Me===T),ee=M[z+y];(F=c.current)!=null&&F.loop&&(ee=z+y<0?M[M.length-1]:z+y===M.length?M[0]:M[z+y]),ee&&D.setState("value",ee.getAttribute(ce))}function P(y){let F=b(),T=F?.closest(Pe),M;for(;T&&!M;)T=y>0?Yl(T,Pe):Ql(T,Pe),M=T?.querySelector(Vn);M?D.setState("value",M.getAttribute(ce)):N(y)}let V=()=>_(S().length-1),I=y=>{y.preventDefault(),y.metaKey?V():y.altKey?P(1):N(1)},L=y=>{y.preventDefault(),y.metaKey?_(0):y.altKey?P(-1):N(-1)};return f.createElement("div",{ref:Be([n,t]),...h,"cmdk-root":"",onKeyDown:y=>{var F;if((F=h.onKeyDown)==null||F.call(h,y),!y.defaultPrevented)switch(y.key){case"n":case"j":{y.ctrlKey&&I(y);break}case"ArrowDown":{I(y);break}case"p":case"k":{y.ctrlKey&&L(y);break}case"ArrowUp":{L(y);break}case"Home":{y.preventDefault(),_(0);break}case"End":{y.preventDefault(),V();break}case"Enter":{y.preventDefault();let T=b();if(T){let M=new Event(Bt);T.dispatchEvent(M)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:G.inputId,id:G.labelId,style:td},d),f.createElement(Zo.Provider,{value:D},f.createElement(Xo.Provider,{value:G},u)))}),Bl=f.forwardRef((e,t)=>{let n=f.useId(),r=f.useRef(null),s=f.useContext(Yo),a=He(),i=es(e);Ae(()=>a.item(n,s),[]);let l=ts(n,r,[e.value,e.children,r]),c=bn(),d=$e($=>$.value&&$.value===l.current),u=$e($=>a.filter()===!1?!0:$.search?$.filtered.items.get(n)>0:!0);f.useEffect(()=>{let $=r.current;if(!(!$||e.disabled))return $.addEventListener(Bt,g),()=>$.removeEventListener(Bt,g)},[u,e.onSelect,e.disabled]);function g(){var $,A;(A=($=i.current).onSelect)==null||A.call($,l.current)}function m(){c.setState("value",l.current,!0)}if(!u)return null;let{disabled:p,value:x,onSelect:h,...R}=e;return f.createElement("div",{ref:Be([r,t]),...R,"cmdk-item":"",role:"option","aria-disabled":p||void 0,"aria-selected":d||void 0,"data-selected":d||void 0,onPointerMove:p?void 0:m,onClick:p?void 0:g},e.children)}),Ul=f.forwardRef((e,t)=>{let{heading:n,children:r,...s}=e,a=f.useId(),i=f.useRef(null),l=f.useRef(null),c=f.useId(),d=He(),u=$e(m=>d.filter()===!1?!0:m.search?m.filtered.groups.has(a):!0);Ae(()=>d.group(a),[]),ts(a,i,[e.value,e.heading,l]);let g=f.createElement(Yo.Provider,{value:a},r);return f.createElement("div",{ref:Be([i,t]),...s,"cmdk-group":"",role:"presentation",hidden:u?void 0:!0},n&&f.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),f.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},g))}),ql=f.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,s=f.useRef(null),a=$e(i=>!i.search);return!n&&!a?null:f.createElement("div",{ref:Be([s,t]),...r,"cmdk-separator":"",role:"separator"})}),Wl=f.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,s=e.value!=null,a=bn(),i=$e(c=>c.search),l=He();return f.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),f.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:s?e.value:i,onChange:c=>{s||a.setState("search",c.target.value),n?.(c.target.value)}})}),Kl=f.forwardRef((e,t)=>{let{children:n,...r}=e,s=f.useRef(null),a=f.useRef(null),i=He();return f.useEffect(()=>{if(a.current&&s.current){let l=a.current,c=s.current,d,u=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let g=l.getBoundingClientRect().height;c.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return u.observe(l),()=>{cancelAnimationFrame(d),u.unobserve(l)}}},[]),f.createElement("div",{ref:Be([s,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:i.listId,"aria-labelledby":i.inputId},f.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),Jl=f.forwardRef((e,t)=>{let{open:n,onOpenChange:r,container:s,...a}=e;return f.createElement(ya,{open:n,onOpenChange:r},f.createElement(ja,{container:s},f.createElement(Sa,{"cmdk-overlay":""}),f.createElement(Ca,{"aria-label":e.label,"cmdk-dialog":""},f.createElement(Qo,{ref:t,...a}))))}),Xl=f.forwardRef((e,t)=>{let n=f.useRef(!0),r=$e(s=>s.filtered.count===0);return f.useEffect(()=>{n.current=!1},[]),n.current||!r?null:f.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Zl=f.forwardRef((e,t)=>{let{progress:n,children:r,...s}=e;return f.createElement("div",{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},f.createElement("div",{"aria-hidden":!0},r))}),X=Object.assign(Qo,{List:Kl,Item:Bl,Input:Wl,Group:Ul,Separator:ql,Dialog:Jl,Empty:Xl,Loading:Zl});function Yl(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Ql(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function es(e){let t=f.useRef(e);return Ae(()=>{t.current=e}),t}var Ae=typeof window>"u"?f.useEffect:f.useLayoutEffect;function Se(e){let t=f.useRef();return t.current===void 0&&(t.current=e()),t}function Be(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function $e(e){let t=bn(),n=()=>e(t.snapshot());return f.useSyncExternalStore(t.subscribe,n,n)}function ts(e,t,n){let r=f.useRef(),s=He();return Ae(()=>{var a;let i=(()=>{var l;for(let c of n){if(typeof c=="string")return c.trim().toLowerCase();if(typeof c=="object"&&"current"in c&&c.current)return(l=c.current.textContent)==null?void 0:l.trim().toLowerCase()}})();s.value(e,i),(a=t.current)==null||a.setAttribute(ce,i),r.current=i}),r}var ed=()=>{let[e,t]=f.useState(),n=Se(()=>new Map);return Ae(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,s)=>{n.current.set(r,s),t({})}},td={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const nd="w-full h-full text-popover-foreground bg-popover overflow-hidden rounded-md flex flex-col",rd=f.forwardRef(({className:e,...t},n)=>o.jsx(X,{ref:n,className:v(nd,e),...t}));rd.displayName=X.displayName;const od="py-3 w-full h-10 text-sm bg-transparent placeholder:text-muted-foreground disabled:opacity-50 disabled:cursor-not-allowed rounded-md outline-none flex",sd=f.forwardRef(({className:e,...t},n)=>o.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[o.jsx($a,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),o.jsx(X.Input,{ref:n,className:v(od,e),...t})]}));sd.displayName=X.Input.displayName;const ad=f.forwardRef(({className:e,...t},n)=>o.jsx(X.List,{ref:n,className:v("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ad.displayName=X.List.displayName;const id=f.forwardRef((e,t)=>o.jsx(X.Empty,{ref:t,className:"py-6 text-sm text-center",...e}));id.displayName=X.Empty.displayName;const ld="p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden ",dd=f.forwardRef(({className:e,...t},n)=>o.jsx(X.Group,{ref:n,className:v(ld,e),...t}));dd.displayName=X.Group.displayName;const cd=f.forwardRef(({className:e,...t},n)=>o.jsx(X.Separator,{ref:n,className:v("-mx-1 h-px bg-border",e),...t}));cd.displayName=X.Separator.displayName;const ud="relative px-2 py-1.5 text-sm aria-selected:text-accent-foreground aria-selected:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",fd=f.forwardRef(({className:e,...t},n)=>o.jsx(X.Item,{ref:n,className:v(ud,e),...t}));fd.displayName=X.Item.displayName;var gd={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"};const pd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ye=(e,t)=>{const n=f.forwardRef(({color:r="currentColor",size:s=24,strokeWidth:a=2,absoluteStrokeWidth:i,children:l,...c},d)=>f.createElement("svg",{ref:d,...gd,width:s,height:s,stroke:r,strokeWidth:i?Number(a)*24/Number(s):a,className:`lucide lucide-${pd(e)}`,...c},[...t.map(([u,g])=>f.createElement(u,g)),...(Array.isArray(l)?l:[l])||[]]));return n.displayName=`${e}`,n},md=ye("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),hd=ye("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),ns=ye("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),xd=ye("Folder",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}]]),On=ye("Layout",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"9",x2:"9",y1:"21",y2:"9",key:"wpwpyp"}]]),vd=ye("Paintbrush",[["path",{d:"M18.37 2.63 14 7l-1.59-1.59a2 2 0 0 0-2.82 0L8 7l9 9 1.59-1.59a2 2 0 0 0 0-2.82L17 10l4.37-4.37a2.12 2.12 0 1 0-3-3Z",key:"m6k5sh"}],["path",{d:"M9 8c-2 3-4 3.5-7 4l8 10c2-1 6-5 6-7",key:"arzq70"}],["path",{d:"M14.5 17.5 4.5 15",key:"s7fvrz"}]]),bd=ye("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),wd="block h-4 w-4 bg-background border-primary/50 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none transition-colors border rounded-full shadow",yd=f.forwardRef(({className:e,...t},n)=>o.jsxs(Xr,{ref:n,className:v("relative w-full touch-none select-none flex items-center",e),...t,children:[o.jsx(Ra,{className:"relative w-full h-1.5 bg-primary/20 rounded-full grow overflow-hidden",children:o.jsx(Na,{className:"absolute h-full bg-primary"})}),o.jsx(_a,{className:wd})]}));yd.displayName=Xr.displayName;const jd="peer w-[36px] h-[20px] border-transparent focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background focus-visible:outline-none disabled:opacity-50 disabled:cursor-not-allowed data-[state=checked]:bg-primary data-[state=unchecked]:bg-input transition-colors border-2 rounded-full shadow-sm cursor-pointer shrink-0 inline-flex items-center",Sd="block w-4 h-4 bg-background data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0 transition-transform pointer-events-none ring-0 rounded-full shadow-lg",Cd=f.forwardRef(({className:e,...t},n)=>o.jsx(Zr,{ref:n,className:v(jd,e),...t,children:o.jsx(Aa,{className:v(Sd)})}));Cd.displayName=Zr.displayName;const $d="text-sm font-medium hover:text-muted-foreground hover:bg-muted focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none data-[state=on]:text-accent-foreground data-[state=on]:bg-accent transition-colors rounded-md inline-flex items-center justify-center",Rd=Te($d,{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground shadow-sm"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),Nd=f.forwardRef(({className:e,variant:t,size:n,...r},s)=>o.jsx(Yr,{ref:s,className:v(Rd({variant:t,size:n,className:e})),...r}));Nd.displayName=Yr.displayName;const _d="z-50 px-3 py-1.5 text-xs text-primary-foreground bg-primary animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 overflow-hidden rounded-md",Ad=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>o.jsx(Qr,{ref:r,sideOffset:t,className:v(_d,e),...n}));Ad.displayName=Qr.displayName;const Md="p-1 h-9 bg-background border rounded-md shadow-sm flex items-center space-x-1",Ed=f.forwardRef(({className:e,...t},n)=>o.jsx(eo,{ref:n,className:v(Md,e),...t}));Ed.displayName=eo.displayName;const kd="px-3 py-1 text-sm font-medium focus:text-accent-foreground focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",Pd=f.forwardRef(({className:e,...t},n)=>o.jsx(to,{ref:n,className:v(kd,e),...t}));Pd.displayName=to.displayName;const Fd="px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",Dd=f.forwardRef(({className:e,inset:t,children:n,...r},s)=>o.jsxs(no,{ref:s,className:v(Fd,t&&"pl-8",e),...r,children:[n,o.jsx(sn,{className:"ml-auto h-4 w-4"})]}));Dd.displayName=no.displayName;const Id="p-1 min-w-[8rem] z-50 text-popover-foreground bg-popover data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border rounded-md shadow-lg overflow-hidden",Vd=f.forwardRef(({className:e,...t},n)=>o.jsx(ro,{ref:n,className:v(Id,e),...t}));Vd.displayName=ro.displayName;const Od="p-1 min-w-[12rem] z-50 text-popover-foreground bg-popover data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border rounded-md shadow-md overflow-hidden",Ld=f.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...s},a)=>o.jsx(Ma,{children:o.jsx(oo,{ref:a,align:t,alignOffset:n,sideOffset:r,className:v(Od,e),...s})}));Ld.displayName=oo.displayName;const zd="relative px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm select-none outline-none cursor-default flex items-center",Td=f.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(so,{ref:r,className:v(zd,t&&"pl-8",e),...n}));Td.displayName=so.displayName;const rs="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",Gd=f.forwardRef(({className:e,children:t,checked:n,...r},s)=>o.jsxs(ao,{ref:s,className:v(rs,e),checked:n,...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(io,{children:o.jsx(_e,{className:"h-4 w-4"})})}),t]}));Gd.displayName=ao.displayName;const Hd=f.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(lo,{ref:r,className:v(rs,e),...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(io,{children:o.jsx(dn,{className:"h-4 w-4 fill-current"})})}),t]}));Hd.displayName=lo.displayName;const Bd=f.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(co,{ref:r,className:v("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Bd.displayName=co.displayName;const Ud=f.forwardRef(({className:e,...t},n)=>o.jsx(uo,{ref:n,className:v("-mx-1 my-1 h-px bg-muted",e),...t}));Ud.displayName=uo.displayName;const qd=pn,os=f.forwardRef(({className:e,...t},n)=>o.jsx(fn,{ref:n,className:v("border-b",e),...t}));os.displayName="AccordionItem";const Wd="flex-1 py-4 text-sm font-medium hover:underline [&[data-state=open]>svg]:rotate-180 transition-all flex items-center justify-between",ss=f.forwardRef(({className:e,children:t,...n},r)=>o.jsx(gn,{className:"flex",children:o.jsxs(mt,{ref:r,className:v(Wd,e),...n,children:[o.jsx("div",{children:t}),o.jsx(cn,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));ss.displayName=mt.displayName;const Kd="text-sm overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",as=f.forwardRef(({className:e,children:t,...n},r)=>o.jsx(ht,{ref:r,className:v(Kd,e),...n,children:o.jsx("div",{className:"pb-4 pt-0",children:t})}));as.displayName=ht.displayName;const bt=f.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(fo,{ref:r,className:v("relative overflow-hidden","[&[data-fixed-width]>div>div]:![display:block]",e),...n,children:[o.jsx(Ea,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(is,{}),o.jsx(ka,{})]}));bt.displayName=fo.displayName;const is=f.forwardRef(({className:e,orientation:t="vertical",...n},r)=>o.jsx(go,{ref:r,orientation:t,className:v("flex touch-none select-none transition-colors",t==="vertical"&&"w-2.5 h-full border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...n,children:o.jsx(Pa,{className:v("relative rounded-full bg-border",t==="vertical"&&"flex-1")})}));is.displayName=go.displayName;const Jd=Fa,Xd="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",ls=f.forwardRef(({className:e,...t},n)=>o.jsx(po,{ref:n,className:v(Xd,e),...t}));ls.displayName=po.displayName;const Zd="fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] w-full md:w-full max-w-lg p-6 z-50 bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] duration-200 border sm:rounded-lg shadow-lg grid gap-4",Yd=f.forwardRef(({className:e,...t},n)=>o.jsxs(Jd,{children:[o.jsx(ls,{}),o.jsx(mo,{ref:n,className:v(Zd,e),...t})]}));Yd.displayName=mo.displayName;const Qd=f.forwardRef(({className:e,...t},n)=>o.jsx(ho,{ref:n,className:v("text-lg font-semibold",e),...t}));Qd.displayName=ho.displayName;const ec=f.forwardRef(({className:e,...t},n)=>o.jsx(xo,{ref:n,className:v("text-sm text-muted-foreground",e),...t}));ec.displayName=xo.displayName;const tc=f.forwardRef(({className:e,...t},n)=>o.jsx(vo,{ref:n,className:v(hn(),e),...t}));tc.displayName=vo.displayName;const nc=f.forwardRef(({className:e,...t},n)=>o.jsx(bo,{ref:n,className:v(hn({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));nc.displayName=bo.displayName;const ds=un;ds.displayName=un.displayName;const rc="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",cs=f.forwardRef(({className:e,...t},n)=>o.jsx(ut,{ref:n,className:v(rc,e),...t}));cs.displayName=ut.displayName;const oc="fixed z-50 p-6 bg-background data-[state=open]:animate-in data-[state=open]:duration-500 data-[state=closed]:animate-out data-[state=closed]:duration-300 transition ease-in-out shadow-lg gap-4",sc="inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",ac="inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",ic="inset-y-0 left-0 h-full w-3/4 sm:max-w-sm border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",lc="inset-y-0 right-0 h-full w-3/4 sm:max-w-sm border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",dc=Te(oc,{variants:{side:{top:sc,bottom:ac,left:ic,right:lc}},defaultVariants:{side:"right"}}),cc="absolute right-4 top-4 opacity-70 hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary ring-offset-background transition-opacity rounded-sm",uc=f.forwardRef(({side:e="right",className:t,children:n,...r},s)=>o.jsxs(ds,{children:[o.jsx(cs,{}),o.jsxs(ft,{ref:s,className:v(dc({side:e}),t),...r,children:[n,o.jsxs(Wr,{className:cc,children:[o.jsx(Kr,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));uc.displayName=ft.displayName;const fc=f.forwardRef(({className:e,...t},n)=>o.jsx(gt,{ref:n,className:v("text-lg font-semibold text-foreground",e),...t}));fc.displayName=gt.displayName;const gc=f.forwardRef(({className:e,...t},n)=>o.jsx(pt,{ref:n,className:v("text-sm text-muted-foreground",e),...t}));gc.displayName=pt.displayName;const wn=f.forwardRef(({className:e,...t},n)=>o.jsx("div",{className:"relative w-full overflow-auto",children:o.jsx("table",{ref:n,className:v("w-full caption-bottom text-sm",e),...t})}));wn.displayName="Table";const yn=f.forwardRef(({className:e,...t},n)=>o.jsx("thead",{ref:n,className:v("[&_tr]:border-b",e),...t}));yn.displayName="TableHeader";const jn=f.forwardRef(({className:e,...t},n)=>o.jsx("tbody",{ref:n,className:v("[&_tr:last-child]:border-0",e),...t}));jn.displayName="TableBody";const us=f.forwardRef(({className:e,...t},n)=>o.jsx("tfoot",{ref:n,className:v("text-primary-foreground bg-primary font-medium",e),...t}));us.displayName="TableFooter";const be=f.forwardRef(({className:e,...t},n)=>o.jsx("tr",{ref:n,className:v("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));be.displayName="TableRow";const Ce=f.forwardRef(({className:e,...t},n)=>o.jsx("th",{ref:n,className:v("h-10 px-2 text-left font-medium align-middle text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Ce.displayName="TableHead";const ie=f.forwardRef(({className:e,...t},n)=>o.jsx("td",{ref:n,className:v("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));ie.displayName="TableCell";const fs=f.forwardRef(({className:e,...t},n)=>o.jsx("caption",{ref:n,className:v("mt-4 text-sm text-muted-foreground",e),...t}));fs.displayName="TableCaption";const wt=Da,pc="p-1 h-9 text-muted-foreground bg-muted rounded-lg inline-flex items-center justify-center",Ue=f.forwardRef(({className:e,...t},n)=>o.jsx(wo,{ref:n,className:v(pc,e),...t}));Ue.displayName=wo.displayName;const mc="px-3 py-1 text-sm font-medium whitespace-nowrapfocus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none data-[state=active]:text-foreground data-[state=active]:bg-background data-[state=active]:shadow ring-offset-background transition-all rounded-md inline-flex items-center justify-center",K=f.forwardRef(({className:e,...t},n)=>o.jsx(yo,{ref:n,className:v(mc,e),...t}));K.displayName=yo.displayName;const hc="mt-2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none ring-offset-background",J=f.forwardRef(({className:e,...t},n)=>o.jsx(jo,{ref:n,className:v(hc,e),...t}));J.displayName=jo.displayName;const xc=`z-50 p-4 w-64 text-popover-foreground bg-popover border rounded-md shadow-md outline-none ${Ge}`,vc=f.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>o.jsx(So,{ref:s,align:t,sideOffset:n,className:v(xc,e),...r}));vc.displayName=So.displayName;const bc=f.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:v("rounded-xl border bg-card text-card-foreground shadow",e),...t}));bc.displayName="Card";const wc=f.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:v("flex flex-col space-y-1.5 p-6",e),...t}));wc.displayName="CardHeader";const yc=f.forwardRef(({className:e,...t},n)=>o.jsx("h3",{ref:n,className:v("font-semibold leading-none tracking-tight",e),...t}));yc.displayName="CardTitle";const jc=f.forwardRef(({className:e,...t},n)=>o.jsx("p",{ref:n,className:v("text-sm text-muted-foreground",e),...t}));jc.displayName="CardDescription";const Sc=f.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:v("p-6 pt-0",e),...t}));Sc.displayName="CardContent";const Cc=f.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:v("flex items-center p-6 pt-0",e),...t}));Cc.displayName="CardFooter";function Nt({className:e,...t}){return o.jsx("div",{className:v("animate-pulse rounded-md bg-primary/10",e),...t})}const $c=f.forwardRef(({className:e,value:t,...n},r)=>o.jsx(Co,{ref:r,className:v("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:o.jsx(Ia,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));$c.displayName=Co.displayName;var Oe=function(){return Oe=Object.assign||function(t){for(var n,r=1,s=arguments.length;r({...t,children:t.children?hs(t.children):void 0}))}function xe(e,t){if(t&&e){!Array.isArray(e)&&(e=[e]);for(const n of e){if(n.id===t)return n;if(n.children){const r=xe(n.children,t);if(r)return r}}}}function xs(e,t,n){const r=[];return t&&s(e,t),r;function s(a,i){if(a)if(a instanceof Array)for(let l=0;l({id:i.dataset.treeId,el:i}));if(!s.length)return;if(t.preventDefault(),t.stopPropagation(),!n)return s[0].id;const a=s.findIndex(i=>i.id===n);if(a!==-1)switch(t.key){case"ArrowDown":case"ArrowUp":{const i=t.key==="ArrowDown"?a+1:a-1;if(i>=0&&i{const[d,u]=f.useState(t),g=f.useCallback(($,A)=>{$.stopPropagation(),u(A?.id),n?.(A)},[n]),m=f.useMemo(()=>xs(e,t,r),[e,t,r]),p=f.useRef(null),{ref:x,width:h,height:R}=gs();return o.jsx("div",{ref:$=>{x($),p.current=$},className:v("overflow-hidden",i),tabIndex:0,onKeyDown:$=>{const A=vs(p.current,$,d);A&&g($,xe(e,A))},children:o.jsx(bt,{style:{width:h,height:R},onClick:$=>g($,void 0),children:o.jsx("div",{className:"relative z-0 px-2 py-1",children:o.jsx($s,{ref:c,data:e,selectedItemId:d,handleSelectChange:g,expandedItemIds:m,IconForFolder:s,IconForItem:a,...l})})})})});const $s=f.forwardRef(({className:e,data:t,selectedItemId:n,handleSelectChange:r,expandedItemIds:s,IconForFolder:a,IconForItem:i,...l},c)=>o.jsx("div",{ref:c,role:"tree",className:e,...l,children:o.jsx("ul",{children:t instanceof Array?t.map(d=>o.jsx("li",{children:d.children?o.jsx(pn,{type:"multiple",defaultValue:s,children:o.jsxs(fn,{value:d.id,"data-tree-id":d.id,"data-tree-folder":ps,children:[o.jsx(Rs,{item:d,isSelected:n===d.id,Icon:a,onClick:u=>r(u,d)}),o.jsx(_s,{className:"pl-6",children:o.jsx($s,{data:d.children,selectedItemId:n,handleSelectChange:r,expandedItemIds:s,IconForFolder:a,IconForItem:i})})]})}):o.jsx(qt,{item:d,isSelected:n===d.id,onClick:u=>r(u,d),Icon:i})},d.id)):o.jsx("li",{children:o.jsx(qt,{item:t,isSelected:n===t.id,onClick:d=>r(d,t),Icon:i})})})})),qt=f.forwardRef(({className:e,item:t,isSelected:n,Icon:r,...s},a)=>o.jsx("div",{ref:a,className:v(js,e,n&&Ss),"data-tree-id":t.id,...s,children:o.jsx(As,{item:t,Icon:r,classes:Cs})}));qt.displayName="Tree.Leaf";const Rs=f.forwardRef(({className:e,item:t,isSelected:n,Icon:r,...s},a)=>o.jsx(Ns,{className:v(bs,n&&ws),"data-tree-folder-trigger":ms,ref:a,...s,children:o.jsx(As,{item:t,Icon:r,classes:ys})}));Rs.displayName="Tree.Folder";const Ns=f.forwardRef(({className:e,children:t,...n},r)=>o.jsx(gn,{children:o.jsx(mt,{ref:r,asChild:!0,className:v("flex-1 py-1 w-full transition-all last:[&[data-state=open]>svg]:rotate-90 outline-none cursor-pointer flex items-center",e),...n,children:o.jsxs("div",{children:[t,o.jsx(ns,{className:"shrink-0 ml-auto h-4 w-4 text-accent-foreground/50 transition-transform duration-200"})]})})}));Ns.displayName="Tree.Folder.Trigger";const _s=f.forwardRef(({className:e,children:t,...n},r)=>o.jsx(ht,{ref:r,className:v("text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down transition-all overflow-hidden",e),...n,children:o.jsx("div",{children:t})}));_s.displayName="Tree.Folder.Content";function As({item:e,Icon:t,classes:n}){return o.jsxs(o.Fragment,{children:[e.icon&&o.jsx(e.icon,{className:n,"aria-hidden":"true"}),!e.icon&&t&&o.jsx(t,{className:n,"aria-hidden":"true"}),o.jsx("span",{className:"flex-grow text-sm truncate",children:e.name})]})}const Ec=Symbol(),Sn=Symbol(),Fe="a",rt="w";let kc=(e,t)=>new Proxy(e,t);const Wt=Object.getPrototypeOf,Kt=new WeakMap,Ms=e=>e&&(Kt.has(e)?Kt.get(e):Wt(e)===Object.prototype||Wt(e)===Array.prototype),zn=e=>typeof e=="object"&&e!==null,Pc=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(Wt(e),t)},Es=e=>e[Sn]||e,ks=(e,t,n,r)=>{if(!Ms(e))return e;let s=r&&r.get(e);if(!s){const c=Es(e);s=(d=>Object.values(Object.getOwnPropertyDescriptors(d)).some(u=>!u.configurable&&!u.writable))(c)?[c,Pc(c)]:[c],r?.set(e,s)}const[a,i]=s;let l=n&&n.get(a);return l&&l[1].f===!!i||(l=((c,d)=>{const u={f:d};let g=!1;const m=(x,h)=>{if(!g){let R=u[Fe].get(c);if(R||(R={},u[Fe].set(c,R)),x===rt)R[rt]=!0;else{let $=R[x];$||($=new Set,R[x]=$),$.add(h)}}},p={get:(x,h)=>h===Sn?c:(m("k",h),ks(Reflect.get(x,h),u[Fe],u.c,u.t)),has:(x,h)=>h===Ec?(g=!0,u[Fe].delete(c),!0):(m("h",h),Reflect.has(x,h)),getOwnPropertyDescriptor:(x,h)=>(m("o",h),Reflect.getOwnPropertyDescriptor(x,h)),ownKeys:x=>(m(rt),Reflect.ownKeys(x))};return d&&(p.set=p.deleteProperty=()=>!1),[p,u]})(a,!!i),l[1].p=kc(i||a,l[0]),n&&n.set(a,l)),l[1][Fe]=t,l[1].c=n,l[1].t=r,l[1].p},Ps=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!zn(e)||!zn(t))return!0;const s=n.get(Es(e));if(!s)return!0;if(r){const i=r.get(e);if(i&&i.n===t)return i.g;r.set(e,{n:t,g:!1})}let a=null;try{for(const i of s.h||[])if(a=Reflect.has(e,i)!==Reflect.has(t,i),a)return a;if(s[rt]===!0){if(a=((i,l)=>{const c=Reflect.ownKeys(i),d=Reflect.ownKeys(l);return c.length!==d.length||c.some((u,g)=>u!==d[g])})(e,t),a)return a}else for(const i of s.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),a)return a;for(const i of s.k||[])if(a=Ps(e[i],t[i],n,r),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a})}},Fc=e=>Ms(e)&&e[Sn]||null,Tn=(e,t=!0)=>{Kt.set(e,t)};const _t=e=>typeof e=="object"&&e!==null,ue=new WeakMap,Je=new WeakSet,Dc=(e=Object.is,t=(d,u)=>new Proxy(d,u),n=d=>_t(d)&&!Je.has(d)&&(Array.isArray(d)||!(Symbol.iterator in d))&&!(d instanceof WeakMap)&&!(d instanceof WeakSet)&&!(d instanceof Error)&&!(d instanceof Number)&&!(d instanceof Date)&&!(d instanceof String)&&!(d instanceof RegExp)&&!(d instanceof ArrayBuffer),r=d=>{switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:throw d}},s=new WeakMap,a=(d,u,g=r)=>{const m=s.get(d);if(m?.[0]===u)return m[1];const p=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d));return Tn(p,!0),s.set(d,[u,p]),Reflect.ownKeys(d).forEach(x=>{if(Object.getOwnPropertyDescriptor(p,x))return;const h=Reflect.get(d,x),R={value:h,enumerable:!0,configurable:!0};if(Je.has(h))Tn(h,!1);else if(h instanceof Promise)delete R.value,R.get=()=>g(h);else if(ue.has(h)){const[$,A]=ue.get(h);R.value=a($,A(),g)}Object.defineProperty(p,x,R)}),Object.preventExtensions(p)},i=new WeakMap,l=[1,1],c=d=>{if(!_t(d))throw new Error("object required");const u=i.get(d);if(u)return u;let g=l[0];const m=new Set,p=(j,C=++l[0])=>{g!==C&&(g=C,m.forEach(b=>b(j,C)))};let x=l[1];const h=(j=++l[1])=>(x!==j&&!m.size&&(x=j,$.forEach(([C])=>{const b=C[1](j);b>g&&(g=b)})),g),R=j=>(C,b)=>{const S=[...C];S[1]=[j,...S[1]],p(S,b)},$=new Map,A=(j,C)=>{if(m.size){const b=C[3](R(j));$.set(j,[C,b])}else $.set(j,[C])},E=j=>{var C;const b=$.get(j);b&&($.delete(j),(C=b[1])==null||C.call(b))},D=j=>(m.add(j),m.size===1&&$.forEach(([b,S],_)=>{const N=b[3](R(_));$.set(_,[b,N])}),()=>{m.delete(j),m.size===0&&$.forEach(([b,S],_)=>{S&&(S(),$.set(_,[b]))})}),G=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d)),W=t(G,{deleteProperty(j,C){const b=Reflect.get(j,C);E(C);const S=Reflect.deleteProperty(j,C);return S&&p(["delete",[C],b]),S},set(j,C,b,S){const _=Reflect.has(j,C),N=Reflect.get(j,C,S);if(_&&(e(N,b)||i.has(b)&&e(N,i.get(b))))return!0;E(C),_t(b)&&(b=Fc(b)||b);let P=b;if(b instanceof Promise)b.then(V=>{b.status="fulfilled",b.value=V,p(["resolve",[C],V])}).catch(V=>{b.status="rejected",b.reason=V,p(["reject",[C],V])});else{!ue.has(b)&&n(b)&&(P=c(b));const V=!Je.has(P)&&ue.get(P);V&&A(C,V)}return Reflect.set(j,C,P,S),p(["set",[C],b,N]),!0}});i.set(d,W);const w=[G,h,a,D];return ue.set(W,w),Reflect.ownKeys(d).forEach(j=>{const C=Object.getOwnPropertyDescriptor(d,j);"value"in C&&(W[j]=d[j],delete C.value,delete C.writable),Object.defineProperty(G,j,C)}),W})=>[c,ue,Je,e,t,n,r,s,a,i,l],[Ic]=Dc();function qe(e={}){return Ic(e)}function yt(e,t,n){const r=ue.get(e);let s;const a=[],i=r[3];let l=!1;const d=i(u=>{if(a.push(u),n){t(a.splice(0));return}s||(s=Promise.resolve().then(()=>{s=void 0,l&&t(a.splice(0))}))});return l=!0,()=>{l=!1,d()}}function Gn(e,t){const n=ue.get(e),[r,s,a]=n;return a(r,s(),t)}var Fs={exports:{}},Ds={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Re=f;function Vc(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oc=typeof Object.is=="function"?Object.is:Vc,Lc=Re.useState,zc=Re.useEffect,Tc=Re.useLayoutEffect,Gc=Re.useDebugValue;function Hc(e,t){var n=t(),r=Lc({inst:{value:n,getSnapshot:t}}),s=r[0].inst,a=r[1];return Tc(function(){s.value=n,s.getSnapshot=t,At(s)&&a({inst:s})},[e,n,t]),zc(function(){return At(s)&&a({inst:s}),e(function(){At(s)&&a({inst:s})})},[e]),Gc(n),n}function At(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Oc(e,n)}catch{return!0}}function Bc(e,t){return t()}var Uc=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Bc:Hc;Ds.useSyncExternalStore=Re.useSyncExternalStore!==void 0?Re.useSyncExternalStore:Uc;Fs.exports=Ds;var qc=Fs.exports;const Wc=Jr(qc),{use:Hn}=ve,{useSyncExternalStore:Kc}=Wc;const Jc=new WeakMap;function jt(e,t){const n=t?.sync,r=f.useRef(),s=f.useRef();let a=!0;const i=Kc(f.useCallback(d=>{const u=yt(e,d,n);return d(),u},[e,n]),()=>{const d=Gn(e,Hn);try{if(!a&&r.current&&s.current&&!Ps(r.current,d,s.current,new WeakMap))return r.current}catch{}return d},()=>Gn(e,Hn));a=!1;const l=new WeakMap;f.useEffect(()=>{r.current=i,s.current=l});const c=f.useMemo(()=>new WeakMap,[]);return ks(i,l,c,Jc)}const Xc={splitterPos:30},Zc={theme:"light",treeState:Xc},Is="shadcn-tv-app-settings",te=qe(Yc());function Yc(){const e=localStorage.getItem(Is);if(e)try{return JSON.parse(e)}catch{}return Zc}Po(te.theme);yt(te,()=>{Po(te.theme)});yt(te,()=>{localStorage.setItem(Is,JSON.stringify(te))});function Qc({className:e,title:t,...n}){return o.jsxs("svg",{className:U("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",...n,children:[t&&o.jsx("title",{children:t}),o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"})]})}function eu({className:e,title:t,...n}){return o.jsxs("svg",{className:U("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",...n,children:[t&&o.jsx("title",{children:t}),o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})]})}function tu({className:e,title:t,...n}){return o.jsxs("svg",{className:U("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[t&&o.jsx("title",{children:t}),o.jsx("path",{d:"M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4"}),o.jsx("path",{d:"M12 2v2"}),o.jsx("path",{d:"M12 20v2"}),o.jsx("path",{d:"m4.9 4.9 1.4 1.4"}),o.jsx("path",{d:"m17.7 17.7 1.4 1.4"}),o.jsx("path",{d:"M2 12h2"}),o.jsx("path",{d:"M20 12h2"}),o.jsx("path",{d:"m6.3 17.7-1.4 1.4"}),o.jsx("path",{d:"m19.1 4.9-1.4 1.4"})]})}function nu({title:e,...t}){return o.jsxs("svg",{viewBox:"0 0 21 21",strokeLinecap:"round",fill:"none",stroke:"currentColor",strokeWidth:1.2,...t,children:[e&&o.jsx("title",{children:e}),o.jsx("path",{d:"M4.5 6.5h12"}),o.jsx("path",{d:"M4.498 10.5h11.997"}),o.jsx("path",{d:"M4.5 14.5h11.995"})]})}function ru({title:e,...t}){return o.jsxs("svg",{viewBox:"0 0 422 422",strokeLinecap:"round",fill:"none",stroke:"currentColor",strokeWidth:1.2,...t,children:[e&&o.jsx("title",{children:e}),o.jsx("path",{d:"M364.35 116.86h-32.97v-27a8 8 0 0 0-8-8h-22V8a8 8 0 0 0-8-8h-215a8 8 0 0 0-8 8v73.86h-22a8 8 0 0 0-8 8v27h-13.3a8 8 0 0 0 0 16h13.3v27a8 8 0 0 0 8 8h22V293a8 8 0 0 0 8 8h44.5v13a8 8 0 0 0 8 8h17v92a8 8 0 0 0 8 8h60a8 8 0 0 0 8-8v-92h17a8 8 0 0 0 8-8v-13h44.5a8 8 0 0 0 8-8v-64.05l69.28-11.48a38.45 38.45 0 0 0 32.26-38.06v-23.98a38.62 38.62 0 0 0-38.57-38.57zM86.38 16h199v65.86h-199V16zm121.5 390h-44v-84h44v84zm25-100h-94v-24h94v24zm52.5-21h-36.5v-11a8 8 0 0 0-8-8h-47v-.08a22.5 22.5 0 0 1 18.88-22.27l72.62-12.04V285zm0-69.61-75.23 12.48a38.45 38.45 0 0 0-32.27 38.05v.08h-47a8 8 0 0 0-8 8v11h-36.5V167.86h27.7v69.64a8 8 0 0 0 16 0v-69.64h39V201a8 8 0 0 0 16 0v-33.14h100.3v47.53zm-229-63.53v-54h259v54h-259zm330.54 27.55a22.5 22.5 0 0 1-18.88 22.27l-66.66 11.06v-44.88h22a8 8 0 0 0 8-8v-27h32.97a22.6 22.6 0 0 1 22.57 22.57v23.98z"})]})}function Mt({label:e,theme:t,current:n}){return o.jsxs(Ve,{className:"grid grid-cols-[16px,1fr] items-center gap-x-2",onClick:()=>te.theme=t,children:[n===t&&o.jsx(md,{className:"w-4 h-4"}),o.jsx("div",{className:"col-start-2",children:e})]})}function ou(){const{theme:e}=jt(te),t=e==="dark",n=e==="system",r=!t&&!n;return o.jsxs("div",{className:"focus-within:ring-1 focus-within:ring-ring rounded-md flex items-center",children:[o.jsxs(Y,{variant:"ghost",size:"sm",tabIndex:-1,className:"py-0 border-y border-l border-input rounded-r-none",onClick:()=>te.theme=te.theme==="dark"?"light":"dark",children:[n&&o.jsx(tu,{className:"w-4 h-4"}),r&&o.jsx(Qc,{className:"w-4 h-4"}),t&&o.jsx(eu,{className:"w-4 h-4 p-0.5"})]}),o.jsxs(xn,{children:[o.jsx(vn,{asChild:!0,children:o.jsx(Y,{variant:"ghost",size:"sm",className:"px-1 py-0 border border-input rounded-l-none focus-visible:ring-0",onClick:()=>te.theme="system",children:o.jsx(hd,{className:"w-3 h-3"})})}),o.jsxs(vt,{align:"end",children:[o.jsx(Mt,{label:"Light",theme:"light",current:e}),o.jsx(Mt,{label:"Dark",theme:"dark",current:e}),o.jsx(Mt,{label:"System",theme:"system",current:e})]})]})]})}const su={theme:"system",setTheme:()=>null};f.createContext(su);function au(){return o.jsxs("div",{className:"px-2 py-3 flex items-center justify-between bg-primary-foreground",children:[o.jsxs("div",{className:"flex items-center gap-x-1",children:[o.jsx("div",{className:"ml-2 pt-1.5",children:o.jsx(ru,{className:"w-7 h-7 stroke-none fill-slate-600 -rotate-90"})}),o.jsx("div",{className:"text-2xl font-extralight tracking-tighter text-blue-600",children:"shradcn"}),o.jsx("div",{className:"text-2xl font-extralight tracking-tighter text-slate-600",children:"components template"})]}),o.jsx("div",{className:"flex items-center justify-end gap-x-1",children:o.jsx(ou,{})})]})}const iu=`p-1 bg-background border rounded-md shadow-md ${Ge}`,lu=" px-2 py-2 text-xs focus:bg-accent focus:text-accent-foreground outline-none rounded-md select-none cursor-default flex items-center ",du=({trigger:e,onCommand:t,items:n,containerClasses:r,menuContentProps:s})=>o.jsx("div",{className:"relative inline-block text-left",children:o.jsxs(wr,{children:[o.jsx(yr,{asChild:!0,children:e}),o.jsx(pr,{children:o.jsx(an,{align:"end",...s,className:U(iu,r),children:n.map(({id:a,label:i,icon:l,shortcut:c},d)=>o.jsxs(ln,{className:lu,onClick:()=>t(a),children:[l,o.jsx("span",{className:"flex-grow",children:i}),c&&o.jsx("span",{className:"text-xs",children:c})]},a))})})]})}),cu=[{id:"new-file",label:"New File"},{id:"open-settings",label:"Settings"}],uu="w-20";function fu(){function e(t){switch(t){case"new-file":console.log(t);break;case"open-settings":console.log(t);break}}return o.jsxs("div",{className:"py-1 select-none flex items-center justify-between",children:[o.jsx("div",{className:"self-end",children:"Demo app"}),o.jsx("div",{className:"",children:o.jsx(du,{trigger:o.jsx(Y,{variant:"outline",size:"sm",className:"px-2",children:o.jsx(nu,{className:"w-4 h-4"})}),items:cu,containerClasses:uu,menuContentProps:{sideOffset:1},onCommand:e})})]})}function gu(){const[e,t]=f.useState(!1);return o.jsxs(o.Fragment,{children:[o.jsx(Y,{variant:"outline",onClick:()=>t(!0),children:"Demo dialog"}),o.jsx(Nl,{open:e,onOpenChange:()=>t(!1),children:o.jsxs(Bo,{className:"sm:max-w-[425px]",children:[o.jsxs(Uo,{children:[o.jsx(Wo,{children:"Demo dialog"}),o.jsx(Ko,{children:"Make changes to your profile here. Click save when you're done."})]}),o.jsxs("div",{className:"grid gap-4 py-4",children:[o.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[o.jsx(Gt,{htmlFor:"name",className:"text-right",children:"Name"}),o.jsx(Le,{id:"name",className:"col-span-3",value:"Pedro Duarte",onChange:n=>{}})]}),o.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[o.jsx(Gt,{htmlFor:"username",className:"text-right",children:"Username"}),o.jsx(Le,{id:"username",className:"col-span-3",value:"@peduarte",onChange:n=>{}})]})]}),o.jsx(qo,{children:o.jsx(Y,{type:"submit",onClick:()=>t(!1),children:"Save changes"})})]})})]})}function Cn({maskId:e="p1loader"}={}){return o.jsxs("defs",{children:[o.jsxs("linearGradient",{id:`${e}-grad`,x1:0,y1:0,x2:1,y2:1,children:[o.jsx("stop",{offset:"0%"}),o.jsx("stop",{offset:"100%",stopColor:"#fff"})]}),o.jsx("mask",{id:`${e}`,children:o.jsx("rect",{x:"0",y:"0",width:"128",height:"128",fill:`url(#${e}-grad)`})})]})}const pu="[--hue1:223] [--hue2:343] [--primary:hsl(var(--hue1),90%,50%)] [--secondary:hsl(var(--hue2),90%,50%)] ",Bn="p1loader";function mu({className:e,...t}){return o.jsxs("svg",{className:U(pu,e),viewBox:"0 0 128 128",...t,children:[o.jsx(Cn,{maskId:Bn}),o.jsxs("g",{className:"pl1__g",fill:"var(--primary)",children:[o.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20)",children:[o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]}),o.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20) rotate(180 44 44)",children:[o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]})]}),o.jsxs("g",{className:"pl1__g",fill:"var(--secondary)",mask:`url(#${Bn})`,children:[o.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20)",children:[o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]}),o.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20) rotate(180 44 44)",children:[o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]})]})]})}const hu="[--hue1:223] [--hue2:283] [--primary:hsl(var(--hue1),90%,50%)] [--secondary:hsl(var(--hue2),90%,50%)] ",Un="p2loader";function xu({className:e,...t}){return o.jsxs("svg",{className:U(hu,e),viewBox:"0 0 128 128",...t,children:[o.jsx(Cn,{maskId:Un}),o.jsxs("g",{fill:"var(--primary)",children:[o.jsx("g",{className:"pl2__rect-g",children:o.jsx("rect",{className:"pl2__rect",rx:8,ry:8,y:128,width:40,height:24,transform:"rotate(180)"})}),o.jsx("g",{className:"pl2__rect-g",children:o.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:44,y:128,width:40,height:24,transform:"rotate(180)"})}),o.jsx("g",{className:"pl2__rect-g",children:o.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:88,y:128,width:40,height:24,transform:"rotate(180)"})})]}),o.jsxs("g",{fill:"var(--secondary)",mask:`url(#${Un})`,children:[o.jsx("g",{className:"pl2__rect-g",children:o.jsx("rect",{className:"pl2__rect",rx:8,ry:8,y:128,width:40,height:24,transform:"rotate(180)"})}),o.jsx("g",{className:"pl2__rect-g",children:o.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:44,y:128,width:40,height:24,transform:"rotate(180)"})}),o.jsx("g",{className:"pl2__rect-g",children:o.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:88,y:128,width:40,height:24,transform:"rotate(180)"})})]})]})}const vu="[--hue1:223] [--hue2:163] [--primary:hsl(var(--hue1),90%,50%)] [--secondary:hsl(var(--hue2),90%,50%)] ",qn="p3loader";function bu({className:e,...t}){return o.jsxs("svg",{className:U(vu,e),viewBox:"0 0 128 128",...t,children:[o.jsx(Cn,{maskId:qn}),o.jsxs("g",{fill:"var(--primary)",children:[o.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"}),o.jsx("g",{className:"pl3__rect-g",transform:"scale(-1)",children:o.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"})})]}),o.jsxs("g",{fill:"var(--secondary)",mask:`url(#${qn})`,children:[o.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"}),o.jsx("g",{className:"pl3__rect-g",transform:"scale(-1)",children:o.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"})})]})]})}const wu="_content_d2oym_51",yu="_dots_d2oym_5",ju="_spin_d2oym_1",Su="_control_d2oym_87",Cu="_bg_d2oym_113",$u="_ring_d2oym_185",Ru="_dot_d2oym_5",Nu="_ball_d2oym_1",B={"dots-ring":"_dots-ring_d2oym_5",content:wu,dots:yu,spin:ju,control:Su,bg:Cu,ring:$u,dot:Ru,"over-ring":"_over-ring_d2oym_1",ball:Nu};function _u(){return o.jsxs("div",{className:`qw-64 qh-64 ${B["dots-ring"]}`,children:[o.jsx("input",{className:B.control,type:"checkbox"}),o.jsx("div",{className:B.bg}),o.jsx("div",{className:B.content,children:o.jsxs("div",{className:B.dots,children:[o.jsxs("div",{className:B.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:B.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:B.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:B.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:B.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:B.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:B.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:B.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:B.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:B.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:B.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:B.dot,children:[" ",o.jsx("span",{})," "]}),o.jsx("div",{className:B.ring})]})})]})}const Au="_a_17o17_51",Mu="_b_17o17_79",Wn={a:Au,"rotate-clock-wise":"_rotate-clock-wise_17o17_1",b:Mu,"rotate-anti-clock-wise":"_rotate-anti-clock-wise_17o17_1"};function Eu(){return o.jsx("div",{className:"p-4 text-green-950 flex items-center justify-center",children:o.jsxs("div",{className:"relative w-32 h-32 border-current border-[14px] rounded-full",children:[o.jsx("div",{className:`${Wn.a} m-1 absolute inset-0 border-current border-[8px] border-y-transparent rounded-full`}),o.jsx("div",{className:`${Wn.b} m-4 absolute inset-0 border-current border-[20px] border-x-transparent rounded-full`})]})})}function ku({className:e,...t}){return o.jsxs("div",{className:U("flex items-center gap-2",e),...t,children:[o.jsx(mu,{className:"w-6 h-6 [--hue1:53] [--hue2:253]"}),o.jsx(xu,{className:"w-6 h-6 [--hue2:253]"}),o.jsx(bu,{className:"w-6 h-6 [--hue2:153]"})]})}function Pu(){return o.jsxs("svg",{className:"switch__base-neon",viewBox:"0 0 40 24",width:"40px",height:"24px",children:[o.jsxs("defs",{children:[o.jsxs("filter",{id:"switch-glow",children:[o.jsx("feGaussianBlur",{result:"coloredBlur",stdDeviation:1}),o.jsxs("feMerge",{children:[o.jsx("feMergeNode",{in:"coloredBlur"}),o.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),o.jsxs("linearGradient",{id:"switch-gradient1",x1:0,y1:0,x2:1,y2:0,children:[o.jsx("stop",{offset:"0%",stopColor:"hsl(var(--on-hue1),90%,70%)"}),o.jsx("stop",{offset:"100%",stopColor:"hsl(var(--on-hue2),90%,70%)"})]}),o.jsxs("linearGradient",{id:"switch-gradient2",x1:"0.7",y1:0,x2:"0.3",y2:1,children:[o.jsx("stop",{offset:"25%",stopColor:"hsla(var(--on-hue1),90%,70%,0)"}),o.jsx("stop",{offset:"50%",stopColor:"hsla(var(--on-hue1),90%,70%,0.3)"}),o.jsx("stop",{offset:"100%",stopColor:"hsla(var(--on-hue2),90%,70%,0.3)"})]})]}),o.jsx("path",{fill:"none",filter:"url(#switch-glow)",stroke:"url(#switch-gradient1)",strokeWidth:1,strokeDasharray:"0 104.26 0",strokeDashoffset:"0.01",strokeLinecap:"round",d:"m.5,12C.5,5.649,5.649.5,12,.5h16c6.351,0,11.5,5.149,11.5,11.5s-5.149,11.5-11.5,11.5H12C5.649,23.5.5,18.351.5,12Z"})]})}function Fu(){return o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"switch__knob-shadow"}),o.jsx("span",{className:"switch__knob-container",children:o.jsx("span",{className:"switch__knob",children:o.jsx("svg",{className:"switch__knob-neon",viewBox:"0 0 48 48",width:"48px",height:"48px",children:o.jsx("circle",{fill:"none",stroke:"url(#switch-gradient2)",strokeDasharray:"0 90.32 0 54.19",strokeLinecap:"round",strokeWidth:1,r:23,cx:24,cy:24,transform:"rotate(-112.5,24,24)"})})})})]})}const Du="[--hue:223] [--off-hue:3] [--on-hue1:123] [--on-hue2:168] [--primary:hsl(var(--hue),90%,50%)] [--trans-dur:0.2s] [--trans-timing:cubic-bezier(0.65,0,0.35,1)] ";function Iu(e){return o.jsxs("label",{className:U(Du,"switch"),children:[o.jsx("input",{className:"switch__input",type:"checkbox",role:"switch",...e}),o.jsx("span",{className:"switch__base-outer"}),o.jsx("span",{className:"switch__base-inner"}),o.jsx(Pu,{}),o.jsx(Fu,{}),o.jsx("span",{className:"switch__led"}),o.jsx("span",{className:"switch__text",children:"Power"})]})}function Kn({className:e,...t}){return o.jsxs("div",{className:U("toggle-wrapper",e),children:[o.jsx("input",{className:"toggle-checkbox",type:"checkbox",...t}),o.jsx("svg",{className:"toggle-icon off",viewBox:"0 0 16 16",children:o.jsx("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8Z"})}),o.jsx("div",{className:"toggle-container",children:o.jsx("div",{className:"toggle-button"})}),o.jsx("svg",{className:"toggle-icon on",viewBox:"0 0 16 16",children:o.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 1 1 16 0zM2 8a6 6 0 1 0 12 0A6 6 0 1 0 2 8zm10 0a4 4 0 1 1-8 0 4 4 0 1 1 8 0z"})})]})}function Vu(){return o.jsxs("div",{className:"flex flex-col space-y-2 text-3xl",children:[o.jsx(Kn,{}),o.jsx(Kn,{defaultChecked:!0})]})}const Ou="_container_1xrdi_1",Ne={container:Ou,"sticky-header-row":"_sticky-header-row_1xrdi_47","sticky-first-column":"_sticky-first-column_1xrdi_73","sticky-header-and-first-column":"_sticky-header-and-first-column_1xrdi_99"};function Lu(){return o.jsx(o.Fragment,{children:o.jsxs("section",{className:`${Ne["sticky-header-row"]}`,children:[o.jsx("h2",{children:"Sticky Header"}),o.jsx("div",{className:`${Ne.container}`,children:o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{scope:"col",children:"ID"}),o.jsx("th",{scope:"col",children:"Name"}),o.jsx("th",{scope:"col",children:"Email"}),o.jsx("th",{scope:"col",children:"Role"}),o.jsx("th",{scope:"col",children:"Country"})]})}),o.jsxs("tbody",{children:[o.jsxs("tr",{children:[o.jsx("td",{children:"1"}),o.jsx("td",{children:"John Doe"}),o.jsx("td",{children:"john@example.com"}),o.jsx("td",{children:"Developer"}),o.jsx("td",{children:"USA"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"2"}),o.jsx("td",{children:"Jane Smith"}),o.jsx("td",{children:"jane@example.com"}),o.jsx("td",{children:"Manager"}),o.jsx("td",{children:"Canada"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"3"}),o.jsx("td",{children:"Bob Johnson"}),o.jsx("td",{children:"bob@example.com"}),o.jsx("td",{children:"Designer"}),o.jsx("td",{children:"UK"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"4"}),o.jsx("td",{children:"Alice Brown"}),o.jsx("td",{children:"alice@example.com"}),o.jsx("td",{children:"Analyst"}),o.jsx("td",{children:"Australia"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"5"}),o.jsx("td",{children:"Mike Wilson"}),o.jsx("td",{children:"mike@example.com"}),o.jsx("td",{children:"Engineer"}),o.jsx("td",{children:"Germany"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"6"}),o.jsx("td",{children:"Sara Davis"}),o.jsx("td",{children:"sara@example.com"}),o.jsx("td",{children:"Consultant"}),o.jsx("td",{children:"France"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"7"}),o.jsx("td",{children:"David Lee"}),o.jsx("td",{children:"david@example.com"}),o.jsx("td",{children:"Coordinator"}),o.jsx("td",{children:"Japan"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"8"}),o.jsx("td",{children:"Linda Chen"}),o.jsx("td",{children:"linda@example.com"}),o.jsx("td",{children:"Tester"}),o.jsx("td",{children:"China"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"9"}),o.jsx("td",{children:"Ryan Miller"}),o.jsx("td",{children:"ryan@example.com"}),o.jsx("td",{children:"Architect"}),o.jsx("td",{children:"Brazil"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"10"}),o.jsx("td",{children:"Emily White"}),o.jsx("td",{children:"emily@example.com"}),o.jsx("td",{children:"Administrator"}),o.jsx("td",{children:"India"})]})]})]})})]})})}function zu(){return o.jsx(o.Fragment,{children:o.jsxs("section",{className:`${Ne["sticky-first-column"]}`,children:[o.jsx("h2",{children:"Sticky First Column"}),o.jsx("div",{className:`${Ne.container}`,children:o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{scope:"col",children:"ID"}),o.jsx("th",{scope:"col",children:"Name"}),o.jsx("th",{scope:"col",children:"Email"}),o.jsx("th",{scope:"col",children:"Role"}),o.jsx("th",{scope:"col",children:"Country"})]})}),o.jsxs("tbody",{children:[o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"1"}),o.jsx("td",{children:"John Doe"}),o.jsx("td",{children:"john@example.com"}),o.jsx("td",{children:"Developer"}),o.jsx("td",{children:"USA"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"2"}),o.jsx("td",{children:"Jane Smith"}),o.jsx("td",{children:"jane@example.com"}),o.jsx("td",{children:"Manager"}),o.jsx("td",{children:"Canada"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"3"}),o.jsx("td",{children:"Bob Johnson"}),o.jsx("td",{children:"bob@example.com"}),o.jsx("td",{children:"Designer"}),o.jsx("td",{children:"UK"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"4"}),o.jsx("td",{children:"Alice Brown"}),o.jsx("td",{children:"alice@example.com"}),o.jsx("td",{children:"Analyst"}),o.jsx("td",{children:"Australia"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"5"}),o.jsx("td",{children:"Mike Wilson"}),o.jsx("td",{children:"mike@example.com"}),o.jsx("td",{children:"Engineer"}),o.jsx("td",{children:"Germany"})]})]})]})})]})})}function Tu(){return o.jsx(o.Fragment,{children:o.jsxs("section",{className:`${Ne["sticky-header-and-first-column"]}`,children:[o.jsx("h2",{children:"Sticky Header and First Column"}),o.jsx("div",{className:`${Ne.container}`,children:o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{scope:"col",children:"ID"}),o.jsx("th",{scope:"col",children:"Name"}),o.jsx("th",{scope:"col",children:"Email"}),o.jsx("th",{scope:"col",children:"Role"}),o.jsx("th",{scope:"col",children:"Country"})]})}),o.jsxs("tbody",{children:[o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"1"}),o.jsx("td",{children:"John Doe"}),o.jsx("td",{children:"john@example.com"}),o.jsx("td",{children:"Developer"}),o.jsx("td",{children:"USA"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"2"}),o.jsx("td",{children:"Jane Smith"}),o.jsx("td",{children:"jane@example.com"}),o.jsx("td",{children:"Manager"}),o.jsx("td",{children:"Canada"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"3"}),o.jsx("td",{children:"Bob Johnson"}),o.jsx("td",{children:"bob@example.com"}),o.jsx("td",{children:"Designer"}),o.jsx("td",{children:"UK"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"4"}),o.jsx("td",{children:"Alice Brown"}),o.jsx("td",{children:"alice@example.com"}),o.jsx("td",{children:"Analyst"}),o.jsx("td",{children:"Australia"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"5"}),o.jsx("td",{children:"Mike Wilson"}),o.jsx("td",{children:"mike@example.com"}),o.jsx("td",{children:"Engineer"}),o.jsx("td",{children:"Germany"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"6"}),o.jsx("td",{children:"Sara Davis"}),o.jsx("td",{children:"sara@example.com"}),o.jsx("td",{children:"Consultant"}),o.jsx("td",{children:"France"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"7"}),o.jsx("td",{children:"David Lee"}),o.jsx("td",{children:"david@example.com"}),o.jsx("td",{children:"Coordinator"}),o.jsx("td",{children:"Japan"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"8"}),o.jsx("td",{children:"Linda Chen"}),o.jsx("td",{children:"linda@example.com"}),o.jsx("td",{children:"Tester"}),o.jsx("td",{children:"China"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"9"}),o.jsx("td",{children:"Ryan Miller"}),o.jsx("td",{children:"ryan@example.com"}),o.jsx("td",{children:"Architect"}),o.jsx("td",{children:"Brazil"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"10"}),o.jsx("td",{children:"Emily White"}),o.jsx("td",{children:"emily@example.com"}),o.jsx("td",{children:"Administrator"}),o.jsx("td",{children:"India"})]})]})]})})]})})}function Gu(){return o.jsxs("div",{className:"text-xs flex flex-col space-y-4",children:[o.jsx(Lu,{}),o.jsx(zu,{}),o.jsx(Tu,{})]})}/** - * table-core - * - * Copyright (c) TanStack - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ge(e,t){return typeof e=="function"?e(t):e}function Q(e,t){return n=>{t.setState(r=>({...r,[e]:ge(n,r[e])}))}}function lt(e){return e instanceof Function}function Hu(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Bu(e,t){const n=[],r=s=>{s.forEach(a=>{n.push(a);const i=t(a);i!=null&&i.length&&r(i)})};return r(e),n}function k(e,t,n){let r=[],s;return()=>{let a;n.key&&n.debug&&(a=Date.now());const i=e();if(!(i.length!==r.length||i.some((d,u)=>r[u]!==d)))return s;r=i;let c;if(n.key&&n.debug&&(c=Date.now()),s=t(...i),n==null||n.onChange==null||n.onChange(s),n.key&&n.debug&&n!=null&&n.debug()){const d=Math.round((Date.now()-a)*100)/100,u=Math.round((Date.now()-c)*100)/100,g=u/16,m=(p,x)=>{for(p=String(p);p.length{let p=m;for(const h of c.split(".")){var x;p=(x=p)==null?void 0:x[h]}return p}:u=m=>m[l.accessorKey]),!d)throw new Error;let g={id:`${String(d)}`,accessorFn:u,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:k(()=>[!0],()=>{var m;return[g,...(m=g.columns)==null?void 0:m.flatMap(p=>p.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var m;return(m=e.options.debugAll)!=null?m:e.options.debugColumns}}),getLeafColumns:k(()=>[e._getOrderColumnsFn()],m=>{var p;if((p=g.columns)!=null&&p.length){let x=g.columns.flatMap(h=>h.getLeafColumns());return m(x)}return[g]},{key:"column.getLeafColumns",debug:()=>{var m;return(m=e.options.debugAll)!=null?m:e.options.debugColumns}})};for(const m of e._features)m.createColumn==null||m.createColumn(g,e);return g}function Jn(e,t,n){var r;let a={id:(r=n.id)!=null?r: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=[],l=c=>{c.subHeaders&&c.subHeaders.length&&c.subHeaders.map(l),i.push(c)};return l(a),i},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(i=>{i.createHeader==null||i.createHeader(a,e)}),a}const qu={createTable:e=>{e.getHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,s)=>{var a,i;const l=(a=r?.map(g=>n.find(m=>m.id===g)).filter(Boolean))!=null?a:[],c=(i=s?.map(g=>n.find(m=>m.id===g)).filter(Boolean))!=null?i:[],d=n.filter(g=>!(r!=null&&r.includes(g.id))&&!(s!=null&&s.includes(g.id)));return Xe(t,[...l,...d,...c],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,s)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(s!=null&&s.includes(a.id))),Xe(t,n,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var s;const a=(s=r?.map(i=>n.find(l=>l.id===i)).filter(Boolean))!=null?s:[];return Xe(t,a,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var s;const a=(s=r?.map(i=>n.find(l=>l.id===i)).filter(Boolean))!=null?s:[];return Xe(t,a,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFooterGroups=k(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFooterGroups=k(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFooterGroups=k(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFooterGroups=k(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFlatHeaders=k(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=k(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=k(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFlatHeaders=k(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=k(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=k(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightLeafHeaders=k(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeafHeaders=k(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var s,a,i,l,c,d;return[...(s=(a=t[0])==null?void 0:a.headers)!=null?s:[],...(i=(l=n[0])==null?void 0:l.headers)!=null?i:[],...(c=(d=r[0])==null?void 0:d.headers)!=null?c:[]].map(u=>u.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})}};function Xe(e,t,n,r){var s,a;let i=0;const l=function(m,p){p===void 0&&(p=1),i=Math.max(i,p),m.filter(x=>x.getIsVisible()).forEach(x=>{var h;(h=x.columns)!=null&&h.length&&l(x.columns,p+1)},0)};l(e);let c=[];const d=(m,p)=>{const x={depth:p,id:[r,`${p}`].filter(Boolean).join("_"),headers:[]},h=[];m.forEach(R=>{const $=[...h].reverse()[0],A=R.column.depth===x.depth;let E,D=!1;if(A&&R.column.parent?E=R.column.parent:(E=R.column,D=!0),$&&$?.column===E)$.subHeaders.push(R);else{const G=Jn(n,E,{id:[r,p,E.id,R?.id].filter(Boolean).join("_"),isPlaceholder:D,placeholderId:D?`${h.filter(q=>q.column===E).length}`:void 0,depth:p,index:h.length});G.subHeaders.push(R),h.push(G)}x.headers.push(R),R.headerGroup=x}),c.push(x),p>0&&d(h,p-1)},u=t.map((m,p)=>Jn(n,m,{depth:i,index:p}));d(u,i-1),c.reverse();const g=m=>m.filter(x=>x.column.getIsVisible()).map(x=>{let h=0,R=0,$=[0];x.subHeaders&&x.subHeaders.length?($=[],g(x.subHeaders).forEach(E=>{let{colSpan:D,rowSpan:G}=E;h+=D,$.push(G)})):h=1;const A=Math.min(...$);return R=R+A,x.colSpan=h,x.rowSpan=R,{colSpan:h,rowSpan:R}});return g((s=(a=c[0])==null?void 0:a.headers)!=null?s:[]),c}const Ze={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Et=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Wu={getDefaultColumnDef:()=>Ze,getInitialState:e=>({columnSizing:{},columnSizingInfo:Et(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:Q("columnSizing",e),onColumnSizingInfoChange:Q("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,s;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Ze.minSize,(r=a??e.columnDef.size)!=null?r:Ze.size),(s=e.columnDef.maxSize)!=null?s:Ze.maxSize)},e.getStart=n=>{const r=n?n==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),s=r.findIndex(a=>a.id===e.id);if(s>0){const a=r[s-1];return a.getStart(n)+a.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...s}=n;return s})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=s=>{if(s.subHeaders.length)s.subHeaders.forEach(r);else{var a;n+=(a=s.column.getSize())!=null?a:0}};return r(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=()=>{const n=t.getColumn(e.column.id),r=n?.getCanResize();return s=>{if(!n||!r||(s.persist==null||s.persist(),kt(s)&&s.touches&&s.touches.length>1))return;const a=e.getSize(),i=e?e.getLeafHeaders().map(h=>[h.column.id,h.column.getSize()]):[[n.id,n.getSize()]],l=kt(s)?Math.round(s.touches[0].clientX):s.clientX,c={},d=(h,R)=>{typeof R=="number"&&(t.setColumnSizingInfo($=>{var A,E;const D=R-((A=$?.startOffset)!=null?A:0),G=Math.max(D/((E=$?.startSize)!=null?E:0),-.999999);return $.columnSizingStart.forEach(q=>{let[W,w]=q;c[W]=Math.round(Math.max(w+w*G,0)*100)/100}),{...$,deltaOffset:D,deltaPercentage:G}}),(t.options.columnResizeMode==="onChange"||h==="end")&&t.setColumnSizing($=>({...$,...c})))},u=h=>d("move",h),g=h=>{d("end",h),t.setColumnSizingInfo(R=>({...R,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},m={moveHandler:h=>u(h.clientX),upHandler:h=>{document.removeEventListener("mousemove",m.moveHandler),document.removeEventListener("mouseup",m.upHandler),g(h.clientX)}},p={moveHandler:h=>(h.cancelable&&(h.preventDefault(),h.stopPropagation()),u(h.touches[0].clientX),!1),upHandler:h=>{var R;document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),h.cancelable&&(h.preventDefault(),h.stopPropagation()),g((R=h.touches[0])==null?void 0:R.clientX)}},x=Ku()?{passive:!1}:!1;kt(s)?(document.addEventListener("touchmove",p.moveHandler,x),document.addEventListener("touchend",p.upHandler,x)):(document.addEventListener("mousemove",m.moveHandler,x),document.addEventListener("mouseup",m.upHandler,x)),t.setColumnSizingInfo(h=>({...h,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:i,isResizingColumn:n.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?Et():(n=e.initialState.columnSizingInfo)!=null?n:Et())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,s)=>r+s.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,s)=>r+s.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,s)=>r+s.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,s)=>r+s.getSize(),0))!=null?t:0}}};let Ye=null;function Ku(){if(typeof Ye=="boolean")return Ye;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 Ye=e,Ye}function kt(e){return e.type==="touchstart"}const Ju={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Q("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,s;if(!t){e._queue(()=>{t=!0});return}if((r=(s=e.options.autoResetAll)!=null?s:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var s,a;e.setExpanded(r?{}:(s=(a=e.initialState)==null?void 0:a.expanded)!=null?s:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(s=>!s.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const i=a.split(".");r=Math.max(r,i.length)}),r},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(r=>{var s;const a=r===!0?!0:!!(r!=null&&r[e.id]);let i={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{i[l]=!0}):i=r,n=(s=n)!=null?s:!a,!a&&n)return{...i,[e.id]:!0};if(a&&!n){const{[e.id]:l,...c}=i;return c}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r?.[e.id])},e.getCanExpand=()=>{var n,r,s;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((s=e.subRows)!=null&&s.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Vs=(e,t,n)=>{var r;const s=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(s))};Vs.autoRemove=e=>re(e);const Os=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};Os.autoRemove=e=>re(e);const Ls=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};Ls.autoRemove=e=>re(e);const zs=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};zs.autoRemove=e=>re(e)||!(e!=null&&e.length);const Ts=(e,t,n)=>!n.some(r=>{var s;return!((s=e.getValue(t))!=null&&s.includes(r))});Ts.autoRemove=e=>re(e)||!(e!=null&&e.length);const Gs=(e,t,n)=>n.some(r=>{var s;return(s=e.getValue(t))==null?void 0:s.includes(r)});Gs.autoRemove=e=>re(e)||!(e!=null&&e.length);const Hs=(e,t,n)=>e.getValue(t)===n;Hs.autoRemove=e=>re(e);const Bs=(e,t,n)=>e.getValue(t)==n;Bs.autoRemove=e=>re(e);const $n=(e,t,n)=>{let[r,s]=n;const a=e.getValue(t);return a>=r&&a<=s};$n.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,s=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(r)?-1/0:r,i=n===null||Number.isNaN(s)?1/0:s;if(a>i){const l=a;a=i,i=l}return[a,i]};$n.autoRemove=e=>re(e)||re(e[0])&&re(e[1]);const se={includesString:Vs,includesStringSensitive:Os,equalsString:Ls,arrIncludes:zs,arrIncludesAll:Ts,arrIncludesSome:Gs,equals:Hs,weakEquals:Bs,inNumberRange:$n};function re(e){return e==null||e===""}const Xu={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Q("columnFilters",e),onGlobalFilterChange:Q("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);return typeof r=="string"?se.includesString:typeof r=="number"?se.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?se.equals:Array.isArray(r)?se.arrIncludes:se.weakEquals},e.getFilterFn=()=>{var n,r;return lt(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:se[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,s;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((s=t.options.enableFilters)!=null?s:!0)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,s,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((s=t.options.enableFilters)!=null?s:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(s=>s.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const s=e.getFilterFn(),a=r?.find(u=>u.id===e.id),i=ge(n,a?a.value:void 0);if(Xn(s,i,e)){var l;return(l=r?.filter(u=>u.id!==e.id))!=null?l:[]}const c={id:e.id,value:i};if(a){var d;return(d=r?.map(u=>u.id===e.id?c:u))!=null?d:[]}return r!=null&&r.length?[...r,c]:[c]})},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()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>se.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return lt(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:se[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=s=>{var a;return(a=ge(t,s))==null?void 0:a.filter(i=>{const l=n.find(c=>c.id===i.id);if(l){const c=l.getFilterFn();if(Xn(c,i.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.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()),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()}}};function Xn(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Zu=(e,t,n)=>n.reduce((r,s)=>{const a=s.getValue(e);return r+(typeof a=="number"?a:0)},0),Yu=(e,t,n)=>{let r;return n.forEach(s=>{const a=s.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},Qu=(e,t,n)=>{let r;return n.forEach(s=>{const a=s.getValue(e);a!=null&&(r=a)&&(r=a)}),r},ef=(e,t,n)=>{let r,s;return n.forEach(a=>{const i=a.getValue(e);i!=null&&(r===void 0?i>=i&&(r=s=i):(r>i&&(r=i),s{let n=0,r=0;if(t.forEach(s=>{let a=s.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},nf=(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!Hu(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),s=n.sort((a,i)=>a-i);return n.length%2!==0?s[r]:(s[r-1]+s[r])/2},rf=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),of=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,sf=(e,t)=>t.length,Pt={sum:Zu,min:Yu,max:Qu,extent:ef,mean:tf,median:nf,unique:rf,uniqueCount:of,count:sf},af={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:Q("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r,s,a;return(n=(r=(s=(a=e.columnDef.enableGrouping)!=null?a:!0)!=null?s:t.options.enableGrouping)!=null?r:!0)!=null?n:!!e.accessorFn},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],r=n?.getValue(e.id);if(typeof r=="number")return Pt.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Pt.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return lt(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Pt[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.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 r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var s;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((s=n.subRows)!=null&&s.length)}}};function lf(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(i=>i.id===a)).filter(Boolean),...r]}const df={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Q("columnOrder",e)}),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=k(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>s=>{let a=[];if(!(t!=null&&t.length))a=s;else{const i=[...t],l=[...s];for(;l.length&&i.length;){const c=i.shift(),d=l.findIndex(u=>u.id===c);d>-1&&a.push(l.splice(d,1)[0])}a=[...a,...l]}return lf(a,n,r)},{key:!1})}},Jt=0,Xt=10,Ft=()=>({pageIndex:Jt,pageSize:Xt}),cf={getInitialState:e=>({...e,pagination:{...Ft(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Q("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,s;if(!t){e._queue(()=>{t=!0});return}if((r=(s=e.options.autoResetAll)!=null?s:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const s=a=>ge(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(s)},e.resetPagination=r=>{var s;e.setPagination(r?Ft():(s=e.initialState.pagination)!=null?s:Ft())},e.setPageIndex=r=>{e.setPagination(s=>{let a=ge(r,s.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,i)),{...s,pageIndex:a}})},e.resetPageIndex=r=>{var s,a;e.setPageIndex(r?Jt:(s=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?s:Jt)},e.resetPageSize=r=>{var s,a;e.setPageSize(r?Xt:(s=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?s:Xt)},e.setPageSize=r=>{e.setPagination(s=>{const a=Math.max(1,ge(r,s.pageSize)),i=s.pageSize*s.pageIndex,l=Math.floor(i/a);return{...s,pageIndex:l,pageSize:a}})},e.setPageCount=r=>e.setPagination(s=>{var a;let i=ge(r,(a=e.options.pageCount)!=null?a:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...s,pageCount:i}}),e.getPageOptions=k(()=>[e.getPageCount()],r=>{let s=[];return r&&r>0&&(s=[...new Array(r)].fill(null).map((a,i)=>i)),s},{key:!1,debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,s=e.getPageCount();return s===-1?!0:s===0?!1:re.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+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 r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},Dt=()=>({left:[],right:[]}),It=()=>({top:[],bottom:[]}),uf={getInitialState:e=>({columnPinning:Dt(),rowPinning:It(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Q("columnPinning",e),onRowPinningChange:Q("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(s=>s.id).filter(Boolean);t.setColumnPinning(s=>{var a,i;if(n==="right"){var l,c;return{left:((l=s?.left)!=null?l:[]).filter(g=>!(r!=null&&r.includes(g))),right:[...((c=s?.right)!=null?c:[]).filter(g=>!(r!=null&&r.includes(g))),...r]}}if(n==="left"){var d,u;return{left:[...((d=s?.left)!=null?d:[]).filter(g=>!(r!=null&&r.includes(g))),...r],right:((u=s?.right)!=null?u:[]).filter(g=>!(r!=null&&r.includes(g)))}}return{left:((a=s?.left)!=null?a:[]).filter(g=>!(r!=null&&r.includes(g))),right:((i=s?.right)!=null?i:[]).filter(g=>!(r!=null&&r.includes(g)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var s,a,i;return((s=r.columnDef.enablePinning)!=null?s:!0)&&((a=(i=t.options.enableColumnPinning)!=null?i:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(l=>l.id),{left:r,right:s}=t.getState().columnPinning,a=n.some(l=>r?.includes(l)),i=n.some(l=>s?.includes(l));return a?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,r;const s=e.getIsPinned();return s?(n=(r=t.getState().columnPinning)==null||(r=r[s])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,s)=>{const a=r?e.getLeafRows().map(c=>{let{id:d}=c;return d}):[],i=s?e.getParentRows().map(c=>{let{id:d}=c;return d}):[],l=new Set([...i,e.id,...a]);t.setRowPinning(c=>{var d,u;if(n==="bottom"){var g,m;return{top:((g=c?.top)!=null?g:[]).filter(h=>!(l!=null&&l.has(h))),bottom:[...((m=c?.bottom)!=null?m:[]).filter(h=>!(l!=null&&l.has(h))),...Array.from(l)]}}if(n==="top"){var p,x;return{top:[...((p=c?.top)!=null?p:[]).filter(h=>!(l!=null&&l.has(h))),...Array.from(l)],bottom:((x=c?.bottom)!=null?x:[]).filter(h=>!(l!=null&&l.has(h)))}}return{top:((d=c?.top)!=null?d:[]).filter(h=>!(l!=null&&l.has(h))),bottom:((u=c?.bottom)!=null?u:[]).filter(h=>!(l!=null&&l.has(h)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:s}=t.options;return typeof r=="function"?r(e):(n=r??s)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:s}=t.getState().rowPinning,a=n.some(l=>r?.includes(l)),i=n.some(l=>s?.includes(l));return a?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const s=e.getIsPinned();if(!s)return-1;const a=(n=t._getPinnedRows(s))==null?void 0:n.map(i=>{let{id:l}=i;return l});return(r=a?.indexOf(e.id))!=null?r:-1},e.getCenterVisibleCells=k(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,s)=>{const a=[...r??[],...s??[]];return n.filter(i=>!a.includes(i.column.id))},{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getLeftVisibleCells=k(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(n,r)=>(r??[]).map(a=>n.find(i=>i.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getRightVisibleCells=k(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(i=>i.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Dt():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Dt())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var s,a;return!!((s=r.left)!=null&&s.length||(a=r.right)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=k(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(s=>s.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getRightLeafColumns=k(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(s=>s.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getCenterLeafColumns=k(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const s=[...n??[],...r??[]];return t.filter(a=>!s.includes(a.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?It():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:It())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var s,a;return!!((s=r.top)!=null&&s.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=t=>k(()=>[e.getRowModel().rows,e.getState().rowPinning[t]],(n,r)=>{var s;return((s=e.options.keepPinnedRows)==null||s?(r??[]).map(i=>{const l=e.getRow(i,!0);return l.getIsAllParentsExpanded()?l:null}):(r??[]).map(i=>n.find(l=>l.id===i))).filter(Boolean).map(i=>({...i,position:t}))},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=k(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const s=new Set([...n??[],...r??[]]);return t.filter(a=>!s.has(a.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}})}},ff={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Q("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 r={...n},s=e.getPreGroupedRowModel().flatRows;return t?s.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):s.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),s={...n};return e.getRowModel().rows.forEach(a=>{Zt(s,a.id,r,!0,e)}),s}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=k(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Vt(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=k(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Vt(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=k(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Vt(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(s=>s.getCanSelect()&&!n[s.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(s=>s.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(s=>!n[s.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{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,r)=>{const s=e.getIsSelected();t.setRowSelection(a=>{var i;if(n=typeof n<"u"?n:!s,e.getCanSelect()&&s===n)return a;const l={...a};return Zt(l,e.id,n,(i=r?.selectChildren)!=null?i:!0,t),l})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Rn(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Yt(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Yt(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 r=>{var s;n&&e.toggleSelected((s=r.target)==null?void 0:s.checked)}}}},Zt=(e,t,n,r,s)=>{var a;const i=s.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=i.subRows)!=null&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach(l=>Zt(e,l.id,n,r,s))};function Vt(e,t){const n=e.getState().rowSelection,r=[],s={},a=function(i,l){return i.map(c=>{var d;const u=Rn(c,n);if(u&&(r.push(c),s[c.id]=c),(d=c.subRows)!=null&&d.length&&(c={...c,subRows:a(c.subRows)}),u)return c}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:s}}function Rn(e,t){var n;return(n=t[e.id])!=null?n:!1}function Yt(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let s=!0,a=!1;return e.subRows.forEach(i=>{if(!(a&&!s)&&(i.getCanSelect()&&(Rn(i,t)?a=!0:s=!1),i.subRows&&i.subRows.length)){const l=Yt(i,t);l==="all"?a=!0:(l==="some"&&(a=!0),s=!1)}}),s?"all":a?"some":!1}const Qt=/([0-9]+)/gm,gf=(e,t,n)=>Us(pe(e.getValue(n)).toLowerCase(),pe(t.getValue(n)).toLowerCase()),pf=(e,t,n)=>Us(pe(e.getValue(n)),pe(t.getValue(n))),mf=(e,t,n)=>Nn(pe(e.getValue(n)).toLowerCase(),pe(t.getValue(n)).toLowerCase()),hf=(e,t,n)=>Nn(pe(e.getValue(n)),pe(t.getValue(n))),xf=(e,t,n)=>{const r=e.getValue(n),s=t.getValue(n);return r>s?1:rNn(e.getValue(n),t.getValue(n));function Nn(e,t){return e===t?0:e>t?1:-1}function pe(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Us(e,t){const n=e.split(Qt).filter(Boolean),r=t.split(Qt).filter(Boolean);for(;n.length&&r.length;){const s=n.shift(),a=r.shift(),i=parseInt(s,10),l=parseInt(a,10),c=[i,l].sort();if(isNaN(c[0])){if(s>a)return 1;if(a>s)return-1;continue}if(isNaN(c[1]))return isNaN(i)?-1:1;if(i>l)return 1;if(l>i)return-1}return n.length-r.length}const De={alphanumeric:gf,alphanumericCaseSensitive:pf,text:mf,textCaseSensitive:hf,datetime:xf,basic:vf},bf={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Q("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const s of n){const a=s?.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return De.datetime;if(typeof a=="string"&&(r=!0,a.split(Qt).length>1))return De.alphanumeric}return r?De.text:De.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return lt(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:De[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const s=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(i=>{const l=i?.find(p=>p.id===e.id),c=i?.findIndex(p=>p.id===e.id);let d=[],u,g=a?n:s==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&r?l?u="toggle":u="add":i!=null&&i.length&&c!==i.length-1?u="replace":l?u="toggle":u="replace",u==="toggle"&&(a||s||(u="remove")),u==="add"){var m;d=[...i,{id:e.id,desc:g}],d.splice(0,d.length-((m=t.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else u==="toggle"?d=i.map(p=>p.id===e.id?{...p,desc:g}:p):u==="remove"?d=i.filter(p=>p.id!==e.id):d=[{id:e.id,desc:g}];return d})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,s;const a=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(s=t.options.enableMultiRemove)!=null)||s)?!1:i==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(s=>s.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(s=>s.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.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())}},wf={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Q("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;return(n=(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=k(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getVisibleCells=k(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,s)=>[...n,...r,...s],{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})},createTable:e=>{const t=(n,r)=>k(()=>[r(),r().filter(s=>s.getIsVisible()).map(s=>s.id).join("_")],s=>s.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),{key:n,debug:()=>{var s;return(s=e.options.debugAll)!=null?s:e.options.debugColumns}});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 r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((s,a)=>({...s,[a.id]:n||!(a.getCanHide!=null&&a.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 r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}},Zn=[qu,wf,df,uf,Xu,bf,af,Ju,cf,ff,Wu];function yf(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:Zn};const r=n._features.reduce((u,g)=>Object.assign(u,g.getDefaultOptions==null?void 0:g.getDefaultOptions(n)),{}),s=u=>n.options.mergeOptions?n.options.mergeOptions(r,u):{...r,...u};let i={...{},...(t=e.initialState)!=null?t:{}};n._features.forEach(u=>{var g;i=(g=u.getInitialState==null?void 0:u.getInitialState(i))!=null?g:i});const l=[];let c=!1;const d={_features:Zn,options:{...r,...e},initialState:i,_queue:u=>{l.push(u),c||(c=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();c=!1}).catch(g=>setTimeout(()=>{throw g})))},reset:()=>{n.setState(n.initialState)},setOptions:u=>{const g=ge(u,n.options);n.options=s(g)},getState:()=>n.options.state,setState:u=>{n.options.onStateChange==null||n.options.onStateChange(u)},_getRowId:(u,g,m)=>{var p;return(p=n.options.getRowId==null?void 0:n.options.getRowId(u,g,m))!=null?p:`${m?[m.id,g].join("."):g}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(u,g)=>{const m=(g?n.getCoreRowModel():n.getRowModel()).rowsById[u];if(!m)throw new Error;return m},_getDefaultColumnDef:k(()=>[n.options.defaultColumn],u=>{var g;return u=(g=u)!=null?g:{},{header:m=>{const p=m.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:m=>{var p,x;return(p=(x=m.renderValue())==null||x.toString==null?void 0:x.toString())!=null?p:null},...n._features.reduce((m,p)=>Object.assign(m,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...u}},{debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:k(()=>[n._getColumnDefs()],u=>{const g=function(m,p,x){return x===void 0&&(x=0),m.map(h=>{const R=Uu(n,h,x,p),$=h;return R.columns=$.columns?g($.columns,R,x+1):[],R})};return g(u)},{key:!1,debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns}}),getAllFlatColumns:k(()=>[n.getAllColumns()],u=>u.flatMap(g=>g.getFlatColumns()),{key:!1,debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns}}),_getAllFlatColumnsById:k(()=>[n.getAllFlatColumns()],u=>u.reduce((g,m)=>(g[m.id]=m,g),{}),{key:!1,debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns}}),getAllLeafColumns:k(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(u,g)=>{let m=u.flatMap(p=>p.getLeafColumns());return g(m)},{key:!1,debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns}}),getColumn:u=>n._getAllFlatColumnsById()[u]};Object.assign(n,d);for(let u=0;u{var i;return(i=a.getValue())!=null?i:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:s,getContext:k(()=>[e,n,t,a],(i,l,c,d)=>({table:i,column:l,row:c,cell:d,getValue:d.getValue,renderValue:d.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(i=>{i.createCell==null||i.createCell(a,n,t,e)},{}),a}const _n=(e,t,n,r,s,a,i)=>{let l={id:t,index:r,original:n,depth:s,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:c=>{if(l._valuesCache.hasOwnProperty(c))return l._valuesCache[c];const d=e.getColumn(c);if(d!=null&&d.accessorFn)return l._valuesCache[c]=d.accessorFn(l.original,r),l._valuesCache[c]},getUniqueValues:c=>{if(l._uniqueValuesCache.hasOwnProperty(c))return l._uniqueValuesCache[c];const d=e.getColumn(c);if(d!=null&&d.accessorFn)return d.columnDef.getUniqueValues?(l._uniqueValuesCache[c]=d.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[c]):(l._uniqueValuesCache[c]=[l.getValue(c)],l._uniqueValuesCache[c])},renderValue:c=>{var d;return(d=l.getValue(c))!=null?d:e.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>Bu(l.subRows,c=>c.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let c=[],d=l;for(;;){const u=d.getParentRow();if(!u)break;c.push(u),d=u}return c.reverse()},getAllCells:k(()=>[e.getAllLeafColumns()],c=>c.map(d=>jf(e,l,d,d.id)),{key:!1,debug:()=>{var c;return(c=e.options.debugAll)!=null?c:e.options.debugRows}}),_getAllCellsByColumnId:k(()=>[l.getAllCells()],c=>c.reduce((d,u)=>(d[u.column.id]=u,d),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var c;return(c=e.options.debugAll)!=null?c:e.options.debugRows}})};for(let c=0;ck(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(s,a,i){a===void 0&&(a=0);const l=[];for(let d=0;d{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function Cf(e,t,n){return n.options.filterFromLeafRows?$f(e,t,n):Rf(e,t,n)}function $f(e,t,n){var r;const s=[],a={},i=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,l=function(c,d){d===void 0&&(d=0);const u=[];for(let m=0;mk(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let m=0;m{var p;const x=e.getColumn(m.id);if(!x)return;const h=x.getFilterFn();h&&s.push({id:m.id,filterFn:h,resolvedValue:(p=h.resolveFilterValue==null?void 0:h.resolveFilterValue(m.value))!=null?p:m.value})});const i=n.map(m=>m.id),l=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(m=>m.getCanGlobalFilter());r&&l&&c.length&&(i.push("__global__"),c.forEach(m=>{var p;a.push({id:m.id,filterFn:l,resolvedValue:(p=l.resolveFilterValue==null?void 0:l.resolveFilterValue(r))!=null?p:r})}));let d,u;for(let m=0;m{p.columnFiltersMeta[h]=R})}if(a.length){for(let x=0;x{p.columnFiltersMeta[h]=R})){p.columnFilters.__global__=!0;break}}p.columnFilters.__global__!==!0&&(p.columnFilters.__global__=!1)}}const g=m=>{for(let p=0;p{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function _f(){return e=>k(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,s=[],a=r.filter(c=>{var d;return(d=e.getColumn(c.id))==null?void 0:d.getCanSort()}),i={};a.forEach(c=>{const d=e.getColumn(c.id);d&&(i[c.id]={sortUndefined:d.columnDef.sortUndefined,invertSorting:d.columnDef.invertSorting,sortingFn:d.getSortingFn()})});const l=c=>{const d=c.map(u=>({...u}));return d.sort((u,g)=>{for(let p=0;p{var g;s.push(u),(g=u.subRows)!=null&&g.length&&(u.subRows=l(u.subRows))}),d};return{rows:l(n.rows),flatRows:s,rowsById:n.rowsById}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function Af(e){const t=[],n=r=>{var s;t.push(r),(s=r.subRows)!=null&&s.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Mf(e){return t=>k(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:s,pageIndex:a}=n;let{rows:i,flatRows:l,rowsById:c}=r;const d=s*a,u=d+s;i=i.slice(d,u);let g;t.options.paginateExpandedRows?g={rows:i,flatRows:l,rowsById:c}:g=Af({rows:i,flatRows:l,rowsById:c}),g.flatRows=[];const m=p=>{g.flatRows.push(p),p.subRows.length&&p.subRows.forEach(m)};return g.rows.forEach(m),g},{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugTable}})}/** - * react-table - * - * Copyright (c) TanStack - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Yn(e,t){return e?Ef(e)?f.createElement(e,t):e:null}function Ef(e){return kf(e)||typeof e=="function"||Pf(e)}function kf(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Pf(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Ff(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=f.useState(()=>({current:yf(t)})),[r,s]=f.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:i=>{s(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}const Df=[{id:"m5gr84i9",amount:316,status:"success",email:"ken99@yahoo.com"},{id:"3u1reuv4",amount:242,status:"success",email:"Abe45@gmail.com"},{id:"derv1ws0",amount:837,status:"processing",email:"Monserrat44@gmail.com"},{id:"5kma53ae",amount:874,status:"success",email:"Silas22@gmail.com"},{id:"bhqecj4p",amount:721,status:"failed",email:"carmella@hotmail.com"}],Qn=[{id:"select",header:({table:e})=>o.jsx(ze,{checked:e.getIsAllPageRowsSelected()||e.getIsSomePageRowsSelected()&&"indeterminate",onCheckedChange:t=>e.toggleAllPageRowsSelected(!!t),"aria-label":"Select all"}),cell:({row:e})=>o.jsx(ze,{checked:e.getIsSelected(),onCheckedChange:t=>e.toggleSelected(!!t),"aria-label":"Select row"}),enableSorting:!1,enableHiding:!1},{accessorKey:"status",header:"Status",cell:({row:e})=>o.jsx("div",{className:"capitalize",children:e.getValue("status")})},{accessorKey:"email",header:({column:e})=>o.jsxs(Y,{variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:["Email",o.jsx(Tr,{className:"ml-2 h-4 w-4"})]}),cell:({row:e})=>o.jsx("div",{className:"lowercase",children:e.getValue("email")})},{accessorKey:"amount",header:()=>o.jsx("div",{className:"text-right",children:"Amount"}),cell:({row:e})=>{const t=parseFloat(e.getValue("amount")),n=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(t);return o.jsx("div",{className:"text-right font-medium",children:n})}},{id:"actions",enableHiding:!1,cell:({row:e})=>{const t=e.original;return o.jsxs(xn,{children:[o.jsx(vn,{asChild:!0,children:o.jsxs(Y,{className:"h-8 w-8 p-0",variant:"ghost",children:[o.jsx("span",{className:"sr-only",children:"Open menu"}),o.jsx(Va,{className:"h-4 w-4"})]})}),o.jsxs(vt,{align:"end",children:[o.jsx(Vo,{children:"Actions"}),o.jsx(Ve,{onClick:()=>navigator.clipboard.writeText(t.id),children:"Copy payment ID"}),o.jsx(Oo,{}),o.jsx(Ve,{children:"View customer"}),o.jsx(Ve,{children:"View payment details"})]})]})}}];function If(){const[e,t]=f.useState([]),[n,r]=f.useState([]),[s,a]=f.useState({}),[i,l]=f.useState({}),c=Ff({data:Df,columns:Qn,onSortingChange:t,onColumnFiltersChange:r,getCoreRowModel:Sf(),getPaginationRowModel:Mf(),getSortedRowModel:_f(),getFilteredRowModel:Nf(),onColumnVisibilityChange:a,onRowSelectionChange:l,state:{sorting:e,columnFilters:n,columnVisibility:s,rowSelection:i}});return o.jsxs("div",{className:"w-full",children:[o.jsxs("div",{className:"flex items-center py-4",children:[o.jsx(Le,{className:"max-w-sm",placeholder:"Filter emails...",value:c.getColumn("email")?.getFilterValue()??"",onChange:d=>c.getColumn("email")?.setFilterValue(d.target.value)}),o.jsxs(xn,{children:[o.jsx(vn,{asChild:!0,children:o.jsxs(Y,{className:"ml-auto",variant:"outline",children:["Columns",o.jsx(cn,{className:"ml-2 h-4 w-4"})]})}),o.jsx(vt,{align:"end",children:c.getAllColumns().filter(d=>d.getCanHide()).map(d=>o.jsx(Io,{className:"capitalize",checked:d.getIsVisible(),onCheckedChange:u=>d.toggleVisibility(!!u),children:d.id},d.id))})]})]}),o.jsx("div",{className:"rounded-md border",children:o.jsxs(wn,{children:[o.jsx(yn,{children:c.getHeaderGroups().map(d=>o.jsx(be,{children:d.headers.map(u=>o.jsx(Ce,{children:u.isPlaceholder?null:Yn(u.column.columnDef.header,u.getContext())},u.id))},d.id))}),o.jsx(jn,{children:c.getRowModel().rows?.length?c.getRowModel().rows.map(d=>o.jsx(be,{"data-state":d.getIsSelected()&&"selected",children:d.getVisibleCells().map(u=>o.jsx(ie,{children:Yn(u.column.columnDef.cell,u.getContext())},u.id))},d.id)):o.jsx(be,{children:o.jsx(ie,{className:"h-24 text-center",colSpan:Qn.length,children:"No results."})})})]})}),o.jsxs("div",{className:"flex items-center justify-end space-x-2 py-4",children:[o.jsxs("div",{className:"flex-1 text-sm text-muted-foreground",children:[c.getFilteredSelectedRowModel().rows.length," of"," ",c.getFilteredRowModel().rows.length," row(s) selected."]}),o.jsxs("div",{className:"space-x-2",children:[o.jsx(Y,{variant:"outline",size:"sm",onClick:()=>c.previousPage(),disabled:!c.getCanPreviousPage(),children:"Previous"}),o.jsx(Y,{variant:"outline",size:"sm",onClick:()=>c.nextPage(),disabled:!c.getCanNextPage(),children:"Next"})]})]})]})}const Vf=[{invoice:"INV001",paymentStatus:"Paid",totalAmount:"$250.00",paymentMethod:"Credit Card"},{invoice:"INV002",paymentStatus:"Pending",totalAmount:"$150.00",paymentMethod:"PayPal"},{invoice:"INV003",paymentStatus:"Unpaid",totalAmount:"$350.00",paymentMethod:"Bank Transfer"},{invoice:"INV004",paymentStatus:"Paid",totalAmount:"$450.00",paymentMethod:"Credit Card"},{invoice:"INV005",paymentStatus:"Paid",totalAmount:"$550.00",paymentMethod:"PayPal"},{invoice:"INV006",paymentStatus:"Pending",totalAmount:"$200.00",paymentMethod:"Bank Transfer"},{invoice:"INV007",paymentStatus:"Unpaid",totalAmount:"$300.00",paymentMethod:"Credit Card"}];function Of(e){return o.jsxs(wn,{...e,children:[o.jsx(fs,{children:"A list of your recent invoices."}),o.jsx(yn,{children:o.jsxs(be,{children:[o.jsx(Ce,{className:"w-[100px]",children:"Invoice"}),o.jsx(Ce,{children:"Status"}),o.jsx(Ce,{children:"Method"}),o.jsx(Ce,{className:"text-right",children:"Amount"})]})}),o.jsx(jn,{children:Vf.map(t=>o.jsxs(be,{children:[o.jsx(ie,{className:"font-medium",children:t.invoice}),o.jsx(ie,{children:t.paymentStatus}),o.jsx(ie,{children:t.paymentMethod}),o.jsx(ie,{className:"text-right",children:t.totalAmount})]},t.invoice))}),o.jsx(us,{className:"text-muted-foreground bg-muted",children:o.jsxs(be,{children:[o.jsx(ie,{colSpan:3,children:"Total"}),o.jsx(ie,{className:"text-right",children:"$2,500.00"})]})})]})}function Lf(){return o.jsxs("div",{className:"flex items-center space-x-4",children:[o.jsx(Nt,{className:"h-12 w-12 rounded-full"}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(Nt,{className:"h-4 w-[250px]"}),o.jsx(Nt,{className:"h-4 w-[200px]"})]})]})}const en="focus:ring-primary-600 dark:focus:ring-primary-400 focus:ring-offset-primary-200 dark:focus:ring-offset-primary-800 focus:ring-1 focus:ring-offset-1 focus:outline-none",zf=[{id:"1",name:"Unread"},{id:"2",name:"Threads"},{id:"3",name:"Chat Rooms",children:[{id:"3.1",name:"General"},{id:"3.2",name:"Random"},{id:"3.3",name:"Open Source Projects"}]},{id:"4",name:"Direct Messages",children:[{id:"4.1",name:"Alice",children:[{id:"4.1.1",name:"Alice2",icon:On},{id:"4.1.2",name:"Bob2"},{id:"4.1.3",name:"Charlie2"}]},{id:"4.2",name:"Bob",icon:On},{id:"4.3",name:"Charlie"}]},{id:"5",name:"Direct Messages",children:[{id:"5.1",name:"Alice",children:[{id:"5.1.1",name:"Alice2"},{id:"5.1.2",name:"Bob2"},{id:"5.1.3",name:"Charlie2"}]},{id:"5.2",name:"Bob"},{id:"5.3",name:"Charlie"}]},{id:"6",name:"Direct Messages",children:[{id:"6.1",name:"Alice",children:[{id:"6.1.1",name:"Alice2"},{id:"6.1.2",name:"Bob2"},{id:"6.1.3",name:"Charlie2"}]},{id:"6.2",name:"Bob"},{id:"6.3",name:"Charlie"}]}],Tf=f.forwardRef(({data:e,initialSelectedItemId:t,onSelectChange:n,expandAll:r,IconForFolder:s,IconForItem:a,arrowFirst:i,hideFolderIcon:l,className:c,...d},u)=>{const[g]=f.useState(()=>qe({selectedId:void 0})),m=f.useMemo(()=>{const A=xs(e,t,r),E=xe(e,g.selectedId);E&&(E.state.selected=!1);const D=xe(e,A[A.length-1]);return D&&(D.state.selected=!0,g.selectedId=D.id),A},[e,t,r]),p=f.useCallback((A,E)=>{if(A.stopPropagation(),g.selectedId){const D=xe(e,g.selectedId);D&&(D.state.selected=!1)}E?(E.state.selected=!E.state.selected,g.selectedId=E.id):g.selectedId=void 0,n?.(E)},[g,n]),x=f.useRef(null),{ref:h,width:R,height:$}=gs();return o.jsx("div",{ref:A=>{h(A),x.current=A},className:v("_overflow-hidden",c),tabIndex:0,onKeyDown:A=>{const E=vs(x.current,A,g.selectedId);E&&p(A,xe(e,E))},children:o.jsx(bt,{className:"tree-scroll",style:{width:R,height:$},onClick:A=>p(A,void 0),children:o.jsx("div",{className:"relative z-0 px-2 py-1",children:o.jsx(qs,{ref:u,data:e,handleSelectChange:p,expandedItemIds:m,IconForFolder:s,IconForItem:a,arrowFirst:i,hideFolderIcon:l,...d})})})})}),qs=f.forwardRef(({className:e,data:t,handleSelectChange:n,expandedItemIds:r,IconForFolder:s,IconForItem:a,arrowFirst:i,hideFolderIcon:l,...c},d)=>o.jsx("div",{ref:d,role:"tree",className:e,...c,children:o.jsx("ul",{children:t instanceof Array?t.map(u=>o.jsx("li",{children:u.children?o.jsx(pn,{type:"multiple",defaultValue:r,children:o.jsxs(fn,{value:u.id,"data-tree-id":u.id,"data-tree-folder":ps,children:[o.jsx(Ws,{item:u,Icon:s,arrowFirst:i,hideFolderIcon:l,onClick:g=>n(g,u)}),o.jsx(Js,{className:"pl-6",children:o.jsx(qs,{data:u.children,handleSelectChange:n,expandedItemIds:r,IconForFolder:s,IconForItem:a})})]})}):o.jsx(tn,{item:u,onClick:g=>n(g,u),Icon:a})},u.id)):o.jsx("li",{children:o.jsx(tn,{item:t,onClick:u=>n(u,t),Icon:a})})})})),tn=f.forwardRef(({className:e,item:t,Icon:n,...r},s)=>{const{selected:a}=jt(t.state);return o.jsx("div",{ref:s,className:v(js,e,a&&Ss),"data-tree-id":t.id,...r,children:o.jsx(Xs,{item:t,Icon:n,classes:Cs,hideFolderIcon:!1})})});tn.displayName="Tree.Leaf";const Ws=f.forwardRef(({className:e,item:t,Icon:n,arrowFirst:r=!0,hideFolderIcon:s,...a},i)=>{const{selected:l}=jt(t.state);return o.jsx(Ks,{className:v(bs,l&&ws),"data-tree-folder-trigger":ms,arrowFirst:r,ref:i,...a,children:o.jsx(Xs,{item:t,Icon:n,hideFolderIcon:s,classes:ys})})});Ws.displayName="Tree.Folder";const Ks=f.forwardRef(({className:e,children:t,arrowFirst:n,...r},s)=>{const a=o.jsx(ns,{className:U("shrink-0 ml-auto h-4 w-4 text-accent-foreground/50 transition-transform duration-200",n&&"mr-2")});return o.jsx(gn,{children:o.jsx(mt,{asChild:!0,className:v("flex-1 py-1 w-full transition-all outline-none cursor-pointer flex items-center",n?"first:[&[data-state=open]>svg]:rotate-90":"last:[&[data-state=open]>svg]:rotate-90",e),ref:s,...r,children:o.jsxs("div",{children:[n&&o.jsx(o.Fragment,{children:a}),t,!n&&o.jsx(o.Fragment,{children:a})]})})})});Ks.displayName="Tree.Folder.Trigger";const Js=f.forwardRef(({className:e,children:t,...n},r)=>o.jsx(ht,{ref:r,className:v("text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down transition-all overflow-hidden",e),...n,children:o.jsx("div",{children:t})}));Js.displayName="Tree.Folder.Content";function Xs({item:e,Icon:t,classes:n,hideFolderIcon:r}){return o.jsxs(o.Fragment,{children:[e.icon&&o.jsx(e.icon,{className:n,"aria-hidden":"true"}),!e.icon&&t&&!r&&o.jsx(t,{className:n,"aria-hidden":"true"}),o.jsx("span",{className:"flex-grow text-sm truncate",children:e.name})]})}const Zs={display:"flex",flex:"1"},Gf=(e,t)=>{const n={...Zs};return e?n.minHeight=n.maxHeight=t+"%":n.minWidth=n.maxWidth=t+"%",n},Hf={...Zs,minWidth:0,minHeight:0};function Bf(e){const{vertical:t=!0,min:n=0,max:r=100,className:s,children:a,position:i,setPosition:l,onResize:c}=e,d=ve.useRef(null),u=ve.useCallback(m=>{if(!d.current)return;m.preventDefault();const{current:p}=d,x=p.getBoundingClientRect(),h=t?window.scrollY+x.y:window.scrollX+x.x,R=t?p.offsetHeight:p.offsetWidth,$=E=>{E.preventDefault();const D=((t?E.pageY:E.pageX)-h)/R*100,G=+wi(yi(D,n,r));l(G)},A=()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",A),c?.()};document.addEventListener("mousemove",$),document.addEventListener("mouseup",A)},[d,t]);let g=ve.Children.toArray(a);return g.length<2?o.jsx("div",{className:s,style:{display:"flex"},children:g}):o.jsxs("div",{ref:d,className:s,style:{display:"flex",flexDirection:t?"column":"row"},children:[o.jsx("div",{style:Gf(t,i),children:g[0]}),o.jsx("div",{className:U("splitpane-divider",t?"vertical":"horizontal"),onMouseDown:u}),o.jsx("div",{style:Hf,children:g[1]})]})}const Uf="d09GMgABAAAAAADcAAoAAAAAAggAAACWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk4ALAoUNAE2AiQDCAsGAAQgBSAHIBtvAcieB3aD8wURQ+TZazbRE9HvF5vde4KCYGhiCgq/NKPF0i6UIsZynbP+Xi9Ng+XLbNlmNz/xIBBqq61FIQRJhC/+QA/08PJQJ3sK5TZFMlWzC/iK5GUN40psgqvxwBjBOg6JUSJ7ewyKE2AAaXZrfUB4v+hze37ugJ9d+DeYqiDwVgCawviwVFGnuttkLqIMGivmDg",qf=`data:application/font-woff2;base64,${Uf}`,ot=qe({text:qf}),Qe=qe({fontText:ot.text,xmlText:"",glyphs:[]});function Wf(){const e=/^\s*data:(?[\w\/\+-]*);?(?(?:charset=[\w-]+)?);?(?base64?),(?[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%]*)\s*$/i;t();function t(){Qe.dataUri=e.exec(ot.text)?.groups}yt(ot,()=>{Qe.fontText=ot.text,t(),Qe.isUrl=!1,Qe.dataUri})}Wf();let Kf=0;function Ys(e,t){const n=`atom${++Kf}`,r={toString:()=>n};return typeof e=="function"?r.read=e:(r.init=e,r.read=s=>s(r),r.write=(s,a,i)=>a(r,typeof i=="function"?i(s(r)):i)),t&&(r.write=t),r}const er=e=>"init"in e,tr=e=>!!e.write,dt=new WeakMap,Jf=(e,t)=>{dt.set(e,t),e.catch(()=>{}).finally(()=>dt.delete(e))},nr=(e,t)=>{const n=dt.get(e);n&&(dt.delete(e),n(t))},rr=(e,t)=>{e.status="fulfilled",e.value=t},or=(e,t)=>{e.status="rejected",e.reason=t},Xf=e=>typeof e?.then=="function",et=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),sr=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),Ie=e=>"v"in e&&e.v instanceof Promise,Zf=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,tt=e=>{if("e"in e)throw e.e;return e.v},Yf=()=>{const e=new WeakMap,t=new WeakMap,n=new Map;let r,s;const a=w=>e.get(w),i=(w,j)=>{const C=e.get(w);if(e.set(w,j),n.has(w)||n.set(w,C),C&&Ie(C)){const b="v"in j?j.v instanceof Promise?j.v:Promise.resolve(j.v):Promise.reject(j.e);C.v!==b&&nr(C.v,b)}},l=(w,j,C)=>{const b=new Map;let S=!1;C.forEach((_,N)=>{!_&&N===w&&(_=j),_&&(b.set(N,_),j.d.get(N)!==_&&(S=!0))}),(S||j.d.size!==b.size)&&(j.d=b)},c=(w,j,C)=>{const b=a(w),S={d:b?.d||new Map,v:j};if(C&&l(w,S,C),b&&et(b,S)&&b.d===S.d)return b;if(b&&Ie(b)&&Ie(S)&&Zf(b,S)){if(b.d===S.d)return b;S.v=b.v}return i(w,S),S},d=(w,j,C,b)=>{if(Xf(j)){let S;const _=new Promise((N,P)=>{let V=!1;j.then(I=>{if(!V){V=!0;const L=a(w),y=c(w,_,C);rr(_,I),N(I),t.has(w)&&L?.d!==y.d&&G(w,y,L?.d)}},I=>{if(!V){V=!0;const L=a(w),y=c(w,_,C);or(_,I),P(I),t.has(w)&&L?.d!==y.d&&G(w,y,L?.d)}}),S=I=>{V||(V=!0,I.then(L=>rr(_,L),L=>or(_,L)),N(I))}});return _.orig=j,_.status="pending",Jf(_,N=>{N&&S(N),b?.()}),c(w,_,C)}return c(w,j,C)},u=(w,j,C)=>{const b=a(w),S={d:b?.d||new Map,e:j};return C&&l(w,S,C),b&&sr(b,S)&&b.d===S.d?b:(i(w,S),S)},g=(w,j)=>{const C=a(w);if(!j&&C&&(t.has(w)||Array.from(C.d).every(([I,L])=>I===w||g(I)===L)))return C;const b=new Map;let S=!0;const _=I=>{if(I===w){const y=a(I);if(y)return b.set(I,y),tt(y);if(er(I))return b.set(I,void 0),I.init;throw new Error("no atom init")}const L=g(I);return b.set(I,L),tt(L)};let N,P;const V={get signal(){return N||(N=new AbortController),N.signal},get setSelf(){return!P&&tr(w)&&(P=(...I)=>{if(!S)return A(w,...I)}),P}};try{const I=w.read(_,V);return d(w,I,b,()=>N?.abort())}catch(I){return u(w,I,b)}finally{S=!1}},m=w=>tt(g(w)),p=w=>{let j=t.get(w);return j||(j=E(w)),j},x=(w,j)=>!j.l.size&&(!j.t.size||j.t.size===1&&j.t.has(w)),h=w=>{const j=t.get(w);j&&x(w,j)&&D(w)},R=w=>{const j=new Map,C=new WeakMap,b=N=>{var P;const V=new Set((P=t.get(N))==null?void 0:P.t);return n.forEach((I,L)=>{var y;(y=a(L))!=null&&y.d.has(N)&&V.add(L)}),V},S=N=>{b(N).forEach(P=>{P!==N&&(j.set(P,(j.get(P)||new Set).add(N)),C.set(P,(C.get(P)||0)+1),S(P))})};S(w);const _=N=>{b(N).forEach(P=>{var V;if(P!==N){let I=C.get(P);if(I&&C.set(P,--I),!I){let L=!!((V=j.get(P))!=null&&V.size);if(L){const y=a(P),F=g(P,!0);L=!y||!et(y,F)}L||j.forEach(y=>y.delete(P))}_(P)}})};_(w)},$=(w,...j)=>{let C=!0;const b=N=>tt(g(N)),S=(N,...P)=>{let V;if(N===w){if(!er(N))throw new Error("atom not writable");const I=a(N),L=d(N,P[0]);(!I||!et(I,L))&&R(N)}else V=$(N,...P);if(!C){const I=q()}return V},_=w.write(b,S,...j);return C=!1,_},A=(w,...j)=>{const C=$(w,...j),b=q();return C},E=(w,j,C)=>{var b;const S=C||[];(b=a(w))==null||b.d.forEach((N,P)=>{const V=t.get(P);V?V.t.add(w):P!==w&&E(P,w,S)}),g(w);const _={t:new Set(j&&[j]),l:new Set};if(t.set(w,_),tr(w)&&w.onMount){const{onMount:N}=w;S.push(()=>{const P=N((...V)=>A(w,...V));P&&(_.u=P)})}return C||S.forEach(N=>N()),_},D=w=>{var j;const C=(j=t.get(w))==null?void 0:j.u;C&&C(),t.delete(w);const b=a(w);b&&(Ie(b)&&nr(b.v),b.d.forEach((S,_)=>{if(_!==w){const N=t.get(_);N&&(N.t.delete(w),x(_,N)&&D(_))}}))},G=(w,j,C)=>{const b=new Set(j.d.keys());C?.forEach((S,_)=>{if(b.has(_)){b.delete(_);return}const N=t.get(_);N&&(N.t.delete(w),x(_,N)&&D(_))}),b.forEach(S=>{const _=t.get(S);_?_.t.add(w):t.has(w)&&E(S,w)})},q=()=>{let w;for(;n.size;){const j=Array.from(n);n.clear(),j.forEach(([C,b])=>{const S=a(C);if(S){const _=t.get(C);_&&S.d!==b?.d&&G(C,S,b?.d),_&&!(b&&!Ie(b)&&(et(b,S)||sr(b,S)))&&_.l.forEach(N=>N())}})}};return{get:m,set:A,sub:(w,j)=>{const C=p(w),b=q(),S=C.l;return S.add(j),()=>{S.delete(j),h(w)}}}};let Ot;const Qf=()=>(Ot||(Ot=Yf()),Ot),eg=f.createContext(void 0),Qs=e=>{const t=f.useContext(eg);return e?.store||t||Qf()},tg=e=>typeof e?.then=="function",ng=ve.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function rg(e,t){const n=Qs(t),[[r,s,a],i]=f.useReducer(d=>{const u=n.get(e);return Object.is(d[0],u)&&d[1]===n&&d[2]===e?d:[u,n,e]},void 0,()=>[n.get(e),n,e]);let l=r;(s!==n||a!==e)&&(i(),l=n.get(e));const c=t?.delay;return f.useEffect(()=>{const d=n.sub(e,()=>{if(typeof c=="number"){setTimeout(i,c);return}i()});return i(),d},[n,e,c]),f.useDebugValue(l),tg(l)?ng(l):l}function ar(e,t){const n=Qs(t);return f.useCallback((...s)=>n.set(e,...s),[n,e])}function og({doDroppedFilesAtom:e,activeAtom:t}){const n=ar(t),r=ar(e),s=f.useRef(0);return f.useEffect(()=>{function a(){s.current++||n(!0)}function i(u){u.preventDefault()}function l(){--s.current||n(!1)}function c(u){u.preventDefault(),s.current=0,n(!1),u.dataTransfer&&r(u.dataTransfer.files)}const d=document.addEventListener;return d("dragenter",a),d("dragover",i),d("dragleave",l),d("drop",c),()=>{const u=document.removeEventListener;u("dragenter",a),u("dragover",i),u("dragleave",l),u("drop",c)}},[]),null}function sg(){const[e]=f.useState(Ys(!1)),t=rg(e);return og({doDroppedFilesAtom:Qg,activeAtom:e}),o.jsx(o.Fragment,{children:t&&o.jsx("div",{className:"absolute inset-0 grid place-items-center text-5xl font-bold text-slate-50 bg-slate-800/90 z-10",children:"Drop it!"})})}let ag={data:""},ig=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||ag,lg=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,dg=/\/\*[^]*?\*\/| +/g,ir=/\n+/g,fe=(e,t)=>{let n="",r="",s="";for(let a in e){let i=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+i+";":r+=a[1]=="f"?fe(i,a):a+"{"+fe(i,a[1]=="k"?"":t)+"}":typeof i=="object"?r+=fe(i,t?t.replace(/([^,])+/g,l=>a.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,l):l?l+" "+c:c)):a):i!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=fe.p?fe.p(a,i):a+":"+i+";")}return n+(t&&s?t+"{"+s+"}":s)+r},ae={},ea=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+ea(e[n]);return t}return e},cg=(e,t,n,r,s)=>{let a=ea(e),i=ae[a]||(ae[a]=(c=>{let d=0,u=11;for(;d>>0;return"go"+u})(a));if(!ae[i]){let c=a!==e?e:(d=>{let u,g,m=[{}];for(;u=lg.exec(d.replace(dg,""));)u[4]?m.shift():u[3]?(g=u[3].replace(ir," ").trim(),m.unshift(m[0][g]=m[0][g]||{})):m[0][u[1]]=u[2].replace(ir," ").trim();return m[0]})(e);ae[i]=fe(s?{["@keyframes "+i]:c}:c,n?"":"."+i)}let l=n&&ae.g?ae.g:null;return n&&(ae.g=ae[i]),((c,d,u,g)=>{g?d.data=d.data.replace(g,c):d.data.indexOf(c)===-1&&(d.data=u?c+d.data:d.data+c)})(ae[i],t,r,l),i},ug=(e,t,n)=>e.reduce((r,s,a)=>{let i=t[a];if(i&&i.call){let l=i(n),c=l&&l.props&&l.props.className||/^go/.test(l)&&l;i=c?"."+c:l&&typeof l=="object"?l.props?"":fe(l,""):l===!1?"":l}return r+s+(i??"")},"");function St(e){let t=this||{},n=e.call?e(t.p):e;return cg(n.unshift?n.raw?ug(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,ig(t.target),t.g,t.o,t.k)}let ta,nn,rn;St.bind({g:1});let le=St.bind({k:1});function fg(e,t,n,r){fe.p=t,ta=e,nn=n,rn=r}function me(e,t){let n=this||{};return function(){let r=arguments;function s(a,i){let l=Object.assign({},a),c=l.className||s.className;n.p=Object.assign({theme:nn&&nn()},l),n.o=/ *go\d+/.test(c),l.className=St.apply(n,r)+(c?" "+c:""),t&&(l.ref=i);let d=e;return e[0]&&(d=l.as||e,delete l.as),rn&&d[0]&&rn(l),ta(d,l)}return t?t(s):s}}var gg=e=>typeof e=="function",ct=(e,t)=>gg(e)?e(t):e,pg=(()=>{let e=0;return()=>(++e).toString()})(),na=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),mg=20,st=new Map,hg=1e3,lr=e=>{if(st.has(e))return;let t=setTimeout(()=>{st.delete(e),je({type:4,toastId:e})},hg);st.set(e,t)},xg=e=>{let t=st.get(e);t&&clearTimeout(t)},on=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,mg)};case 1:return t.toast.id&&xg(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:n}=t;return e.toasts.find(a=>a.id===n.id)?on(e,{type:1,toast:n}):on(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?lr(r):e.toasts.forEach(a=>{lr(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===r||r===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+s}))}}},at=[],it={toasts:[],pausedAt:void 0},je=e=>{it=on(it,e),at.forEach(t=>{t(it)})},vg={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},bg=(e={})=>{let[t,n]=f.useState(it);f.useEffect(()=>(at.push(n),()=>{let s=at.indexOf(n);s>-1&&at.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var a,i;return{...e,...e[s.type],...s,duration:s.duration||((a=e[s.type])==null?void 0:a.duration)||e?.duration||vg[s.type],style:{...e.style,...(i=e[s.type])==null?void 0:i.style,...s.style}}});return{...t,toasts:r}},wg=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:n?.id||pg()}),We=e=>(t,n)=>{let r=wg(t,e,n);return je({type:2,toast:r}),r.id},Z=(e,t)=>We("blank")(e,t);Z.error=We("error");Z.success=We("success");Z.loading=We("loading");Z.custom=We("custom");Z.dismiss=e=>{je({type:3,toastId:e})};Z.remove=e=>je({type:4,toastId:e});Z.promise=(e,t,n)=>{let r=Z.loading(t.loading,{...n,...n?.loading});return e.then(s=>(Z.success(ct(t.success,s),{id:r,...n,...n?.success}),s)).catch(s=>{Z.error(ct(t.error,s),{id:r,...n,...n?.error})}),e};var yg=(e,t)=>{je({type:1,toast:{id:e,height:t}})},jg=()=>{je({type:5,time:Date.now()})},Sg=e=>{let{toasts:t,pausedAt:n}=bg(e);f.useEffect(()=>{if(n)return;let a=Date.now(),i=t.map(l=>{if(l.duration===1/0)return;let c=(l.duration||0)+l.pauseDuration-(a-l.createdAt);if(c<0){l.visible&&Z.dismiss(l.id);return}return setTimeout(()=>Z.dismiss(l.id),c)});return()=>{i.forEach(l=>l&&clearTimeout(l))}},[t,n]);let r=f.useCallback(()=>{n&&je({type:6,time:Date.now()})},[n]),s=f.useCallback((a,i)=>{let{reverseOrder:l=!1,gutter:c=8,defaultPosition:d}=i||{},u=t.filter(p=>(p.position||d)===(a.position||d)&&p.height),g=u.findIndex(p=>p.id===a.id),m=u.filter((p,x)=>xp.visible).slice(...l?[m+1]:[0,m]).reduce((p,x)=>p+(x.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:yg,startPause:jg,endPause:r,calculateOffset:s}}},Cg=le` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,$g=le` -from { - transform: scale(0); - opacity: 0; -} -to { - transform: scale(1); - opacity: 1; -}`,Rg=le` -from { - transform: scale(0) rotate(90deg); - opacity: 0; -} -to { - transform: scale(1) rotate(90deg); - opacity: 1; -}`,Ng=me("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${e=>e.primary||"#ff4b4b"}; - position: relative; - transform: rotate(45deg); - - animation: ${Cg} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - - &:after, - &:before { - content: ''; - animation: ${$g} 0.15s ease-out forwards; - animation-delay: 150ms; - position: absolute; - border-radius: 3px; - opacity: 0; - background: ${e=>e.secondary||"#fff"}; - bottom: 9px; - left: 4px; - height: 2px; - width: 12px; - } - - &:before { - animation: ${Rg} 0.15s ease-out forwards; - animation-delay: 180ms; - transform: rotate(90deg); - } -`,_g=le` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`,Ag=me("div")` - width: 12px; - height: 12px; - box-sizing: border-box; - border: 2px solid; - border-radius: 100%; - border-color: ${e=>e.secondary||"#e0e0e0"}; - border-right-color: ${e=>e.primary||"#616161"}; - animation: ${_g} 1s linear infinite; -`,Mg=le` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,Eg=le` -0% { - height: 0; - width: 0; - opacity: 0; -} -40% { - height: 0; - width: 6px; - opacity: 1; -} -100% { - opacity: 1; - height: 10px; -}`,kg=me("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${e=>e.primary||"#61d345"}; - position: relative; - transform: rotate(45deg); - - animation: ${Mg} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - &:after { - content: ''; - box-sizing: border-box; - animation: ${Eg} 0.2s ease-out forwards; - opacity: 0; - animation-delay: 200ms; - position: absolute; - border-right: 2px solid; - border-bottom: 2px solid; - border-color: ${e=>e.secondary||"#fff"}; - bottom: 6px; - left: 6px; - height: 10px; - width: 6px; - } -`,Pg=me("div")` - position: absolute; -`,Fg=me("div")` - position: relative; - display: flex; - justify-content: center; - align-items: center; - min-width: 20px; - min-height: 20px; -`,Dg=le` -from { - transform: scale(0.6); - opacity: 0.4; -} -to { - transform: scale(1); - opacity: 1; -}`,Ig=me("div")` - position: relative; - transform: scale(0.6); - opacity: 0.4; - min-width: 20px; - animation: ${Dg} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; -`,Vg=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?f.createElement(Ig,null,t):t:n==="blank"?null:f.createElement(Fg,null,f.createElement(Ag,{...r}),n!=="loading"&&f.createElement(Pg,null,n==="error"?f.createElement(Ng,{...r}):f.createElement(kg,{...r})))},Og=e=>` -0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} -100% {transform: translate3d(0,0,0) scale(1); opacity:1;} -`,Lg=e=>` -0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} -100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} -`,zg="0%{opacity:0;} 100%{opacity:1;}",Tg="0%{opacity:1;} 100%{opacity:0;}",Gg=me("div")` - display: flex; - align-items: center; - background: #fff; - color: #363636; - line-height: 1.3; - will-change: transform; - box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); - max-width: 350px; - pointer-events: auto; - padding: 8px 10px; - border-radius: 8px; -`,Hg=me("div")` - display: flex; - justify-content: center; - margin: 4px 10px; - color: inherit; - flex: 1 1 auto; - white-space: pre-line; -`,Bg=(e,t)=>{let n=e.includes("top")?1:-1,[r,s]=na()?[zg,Tg]:[Og(n),Lg(n)];return{animation:t?`${le(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${le(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Ug=f.memo(({toast:e,position:t,style:n,children:r})=>{let s=e.height?Bg(e.position||t||"top-center",e.visible):{opacity:0},a=f.createElement(Vg,{toast:e}),i=f.createElement(Hg,{...e.ariaProps},ct(e.message,e));return f.createElement(Gg,{className:e.className,style:{...s,...n,...e.style}},typeof r=="function"?r({icon:a,message:i}):f.createElement(f.Fragment,null,a,i))});fg(f.createElement);var qg=({id:e,className:t,style:n,onHeightUpdate:r,children:s})=>{let a=f.useCallback(i=>{if(i){let l=()=>{let c=i.getBoundingClientRect().height;r(e,c)};l(),new MutationObserver(l).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return f.createElement("div",{ref:a,className:t,style:n},s)},Wg=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:na()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...s}},Kg=St` - z-index: 9999; - > * { - pointer-events: auto; - } -`,nt=16,Jg=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:a,containerClassName:i})=>{let{toasts:l,handlers:c}=Sg(n);return f.createElement("div",{style:{position:"fixed",zIndex:9999,top:nt,left:nt,right:nt,bottom:nt,pointerEvents:"none",...a},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map(d=>{let u=d.position||t,g=c.calculateOffset(d,{reverseOrder:e,gutter:r,defaultPosition:t}),m=Wg(u,g);return f.createElement(qg,{id:d.id,key:d.id,onHeightUpdate:c.updateHeight,className:d.visible?Kg:"",style:m},d.type==="custom"?ct(d.message,d):s?s(d):f.createElement(Ug,{toast:d,position:u}))}))};function Xg(){return o.jsx("div",{className:"toaser",children:o.jsx(Jg,{position:"bottom-right",reverseOrder:!1,gutter:8,containerClassName:"",containerStyle:{},toastOptions:{className:"",duration:5e3,style:{background:"#363636",color:"#fff"},success:{duration:3e3,iconTheme:{primary:"green",secondary:"black"}}}})})}const Zg=(e,t)=>Z(e,{style:{backgroundColor:"red"},...t});f.forwardRef(({children:e,className:t,...n},r)=>o.jsx("button",{ref:r,className:U("bg-primary border-primary-foreground border rounded select-none",en,t),...n,children:e}));function Yg(e=""){return/[.]/.exec(e)&&/([^.]+$)/.exec(e)?.[0]||""}const Qg=Ys(null,async(e,t,n)=>{try{if(n.length!==1)throw new Error("Only one file can be dropped");if(Yg(n[0].name)!=="woff2")throw new Error(`Dropped file "${n[0].name}". -Only .woff2 files are supported`);const s=await ji(n[0],{asArrayBuffer:!1});console.log("files",n),console.log("blob",s)}catch(r){Zg(r?.message||"Failed to load image")}});function ep(e){const{splitterPos:t}=jt(te.treeState),n=f.useCallback(bi(r=>te.treeState.splitterPos=r,50),[]);return o.jsx(Bf,{position:t,setPosition:n,...e})}const dr="6.1.2";function tp(e){const t=hs(e);return Ut(t,n=>n.state=qe({selected:!1})),t}const cr=tp(zf);function ra(){const[e,t]=f.useState(()=>xe(cr,dr)?.name||"No content selected"),[n,r]=f.useState(!0),[s,a]=f.useState(!1),i=f.useMemo(()=>o.jsx(Tf,{data:cr,className:`w-full h-full border rounded-l-md ${en}`,initialSelectedItemId:dr,onSelectChange:l=>t(l?.name??""),IconForFolder:xd,IconForItem:bd,arrowFirst:n,hideFolderIcon:s}),[n,s]);return o.jsxs("div",{className:"mr-12 p-0.5 w-full h-full",children:[o.jsxs(ep,{vertical:!1,className:"splitpane h-full",children:[o.jsx("div",{className:"w-full",children:i}),o.jsx("div",{className:U("flex-1 w-full h-full min-w-0 border border-l rounded-r-md z-10",en),tabIndex:0,children:o.jsx("div",{className:"min-w-0 overflow-hidden",children:o.jsx("div",{className:"px-2 py-1",children:e})})})]}),o.jsxs("div",{className:"mt-2 text-sm text-muted-foreground",children:[o.jsxs("label",{className:"flex items-center",children:[o.jsx(ze,{className:"mr-2",checked:n,onCheckedChange:()=>r(!n)}),"Icons first"]}),o.jsxs("label",{className:"flex items-center",children:[o.jsx(ze,{className:"mr-2",checked:s,onCheckedChange:()=>a(!s)}),"Hide folder icons"]})]})]})}const np=["#e2e2e2","#ff75c3","#ffa647","#ffe83f","#9fff5b","#70e2ff","#cd93ff","#09203f"];function rp({background:e,setBackground:t}){return o.jsx(J,{value:"solid",className:"mt-0 flex flex-wrap gap-1",children:np.map(n=>o.jsx("div",{style:{background:n},className:"h-6 w-6 cursor-pointer rounded-md active:scale-105",onClick:()=>t(n)},n))})}const oa=({background:e,children:t})=>o.jsx("div",{className:"relative rounded-md !bg-cover !bg-center p-0.5 transition-all",style:{background:e},children:o.jsx("div",{className:"rounded-md bg-popover/80 p-1 text-center text-xs",children:t})}),op=["linear-gradient(to bottom right,#accbee,#e7f0fd)","linear-gradient(to bottom right,#d5d4d0,#d5d4d0,#eeeeec)","linear-gradient(to bottom right,#000000,#434343)","linear-gradient(to bottom right,#09203f,#537895)","linear-gradient(to bottom right,#ac32e4,#7918f2,#4801FF)","linear-gradient(to bottom right,#f953c6,#b91d73)","linear-gradient(to bottom right,#ee0979,#ff6a00)","linear-gradient(to bottom right,#f00000,#dc281e)","linear-gradient(to bottom right,#00c6ff,#0072ff)","linear-gradient(to bottom right,#4facfe,#00f2fe)","linear-gradient(to bottom right,#0ba360,#3cba92)","linear-gradient(to bottom right,#fdfc47,#24fe41)","linear-gradient(to bottom right,#8a2be2,#0000cd,#228b22,#ccff00)","linear-gradient(to bottom right,#40e0d0,#ff8c00,#ff0080)","linear-gradient(to bottom right,#fcc5e4,#fda34b,#ff7882,#c8699e,#7046aa,#0c1db8,#020f75)","linear-gradient(to bottom right,#ff75c3,#ffa647,#ffe83f,#9fff5b,#70e2ff,#cd93ff)"];function sp({background:e,setBackground:t}){return o.jsxs(J,{value:"gradient",className:"mt-0",children:[o.jsx("div",{className:"mb-2 flex flex-wrap gap-1",children:op.map(n=>o.jsx("div",{style:{background:n},className:"h-6 w-6 cursor-pointer rounded-md active:scale-105",onClick:()=>t(n)},n))}),o.jsxs(oa,{background:e,children:["💡 Get more at"," ",o.jsx("a",{href:"https://gradient.page/css/ui-gradients",className:"font-bold hover:underline",target:"_blank",children:"GradientPage"})]})]})}const ap=""+new URL("1_beautiful-blue-001-2259aa6a.jpg",import.meta.url).href,ip=""+new URL("2_pretty-in-pink-005-2359f332.jpg",import.meta.url).href,lp=""+new URL("3_vibrant-vista-004-b9ffc36d.jpg",import.meta.url).href,dp=""+new URL("4_deep-dusk-003-f4610ac8.jpg",import.meta.url).href,cp=[`url(${ap})`,`url(${ip})`,`url(${lp})`,`url(${dp})`];function up({background:e,setBackground:t}){return o.jsxs(J,{value:"image",className:"mt-0",children:[o.jsx("div",{className:"mb-2 grid grid-cols-2 gap-1",children:cp.map(n=>o.jsx("div",{style:{backgroundImage:n},className:"h-12 w-full cursor-pointer rounded-md bg-cover bg-center active:scale-105",onClick:()=>t(n)},n))}),o.jsxs(oa,{background:e,children:["🔓 Get more"," ",o.jsx("a",{href:"https://gradient.page/wallpapers",className:"font-bold hover:underline",target:"_blank",children:"wallpapers"}),o.jsx("br",{}),o.jsxs("div",{className:"text-[10px]",children:["App dev? Refer ",o.jsx("a",{href:"https://gradient.page/affiliate",className:"font-bold hover:underline",target:"_blank",children:"GradientPage"}),", get 80%"]})]})]})}function fp({background:e,className:t}){return o.jsx($l,{asChild:!0,children:o.jsx(Y,{variant:"outline",className:v("w-[220px] justify-start text-left font-normal",!e&&"text-muted-foreground",t),children:o.jsxs("div",{className:"flex w-full items-center gap-2",children:[e?o.jsx("div",{className:"h-4 w-4 rounded !bg-cover !bg-center transition-all",style:{background:e}}):o.jsx(vd,{className:"h-4 w-4"}),o.jsx("div",{className:"flex-1 truncate",children:e||"Pick a color"})]})})})}function gp({background:e,setBackground:t,className:n}){const r=f.useMemo(()=>e.includes("url")?"image":e.includes("gradient")?"gradient":"solid",[e]);return o.jsxs(Cl,{children:[o.jsx(fp,{className:n,background:e}),o.jsxs(Go,{className:"w-64",children:[o.jsxs(wt,{defaultValue:r,className:"w-full",children:[o.jsxs(Ue,{className:"mb-4 w-full",children:[o.jsx(K,{className:"flex-1",value:"solid",children:"Solid"}),o.jsx(K,{className:"flex-1",value:"gradient",children:"Gradient"}),o.jsx(K,{className:"flex-1",value:"image",children:"Image"})]}),o.jsx(rp,{background:e,setBackground:t}),o.jsx(sp,{background:e,setBackground:t}),o.jsx(up,{background:e,setBackground:t})]}),o.jsx(Le,{id:"custom",value:e,className:"col-span-2 mt-4 h-8",onChange:s=>t(s.currentTarget.value)})]})]})}const pp="linear-gradient(to bottom right,#ff75c3,#ffa647,#ffe83f,#9fff5b,#70e2ff,#cd93ff)";function mp(){const[e,t]=f.useState(pp);return o.jsx("div",{className:"preview flex items-center justify-center rounded !bg-cover !bg-center p-10 transition-all",style:{background:e},children:o.jsx(gp,{background:e,setBackground:t})})}function hp(){return o.jsxs(wt,{defaultValue:"table1",children:[o.jsxs(Ue,{children:[o.jsx(K,{value:"table1",children:"Simple table"}),o.jsx(K,{value:"table2",children:"Data table"}),o.jsx(K,{value:"table3",children:"Sticky headers table"})]}),o.jsx(J,{value:"table1",children:o.jsx(Of,{className:"m-auto max-w-sm"})}),o.jsx(J,{value:"table2",children:o.jsx(If,{})}),o.jsx(J,{value:"table3",children:o.jsx(Gu,{})})]})}function xp(){return o.jsxs(wt,{defaultValue:"loaders1",children:[o.jsxs(Ue,{children:[o.jsx(K,{value:"loaders1",children:"Loaders"}),o.jsx(K,{value:"loaders2",children:"Circle loader"}),o.jsx(K,{value:"loaders3",children:"Radial"}),o.jsx(K,{value:"loaders4",children:"Skeleton"})]}),o.jsx(J,{value:"loaders1",children:o.jsx(ku,{className:"m-auto max-w-sm flex items-center justify-between"})}),o.jsx(J,{value:"loaders2",children:o.jsx(_u,{})}),o.jsx(J,{value:"loaders3",children:o.jsx(Eu,{})}),o.jsx(J,{value:"loaders4",children:o.jsx(Lf,{})})]})}function vp(){return o.jsxs(wt,{defaultValue:"switch1",children:[o.jsxs(Ue,{children:[o.jsx(K,{value:"switch1",children:"Neon switch"}),o.jsx(K,{value:"switch2",children:"Styled switch"}),o.jsx(K,{value:"switch3",children:"Gradient color picker"})]}),o.jsx(J,{value:"switch1",children:o.jsx(Iu,{})}),o.jsx(J,{value:"switch2",children:o.jsx(Vu,{})}),o.jsx(J,{value:"switch3",children:o.jsx(mp,{})})]})}const bp=[{id:"10",name:"Tables",component:o.jsx(hp,{})},{id:"20",name:"Loaders",component:o.jsx(xp,{})},{id:"30",name:"Switches",component:o.jsx(vp,{})},{id:"41",name:"Tree",component:o.jsx(ra,{})}],wp="41";function yp({cases:e}){return o.jsx(qd,{className:"w-full",type:"single",collapsible:!0,defaultValue:wp,children:e.map(t=>o.jsxs(os,{className:"border-b-0",value:t.id,children:[o.jsx(ss,{children:t.name}),o.jsx(as,{className:"pt-4 border-t border-b",children:t.component})]},t.id))})}function jp(){return o.jsx("div",{className:"",children:o.jsx(fu,{})})}const sa="bg-muted/30 border-muted-foreground/30 border-t border-b";function Sp(){return o.jsxs("div",{className:`p-4 flex flex-col space-y-4 ${sa}`,children:[o.jsx("div",{className:"border-muted border-b",children:o.jsx(jp,{})}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Y,{variant:"outline",children:"OK"}),o.jsx(gu,{})]})]})}function Cp(){return o.jsxs("div",{className:`px-4 py-2 ${sa}`,children:[o.jsx("div",{className:"mb-1",children:"Fixed height non-scrollable area"}),o.jsx("div",{className:"h-[160px] overflow-hidden",children:o.jsx(ra,{})})]})}function $p(){return o.jsxs("div",{className:"min-h-0 grid grid-rows-[auto,1fr,auto]",children:[o.jsx(Sp,{}),o.jsx(bt,{className:"flex-1 p-4 min-w-0 overflow-hidden","data-fixed-width":!0,children:o.jsx(yp,{cases:bp})}),o.jsx(Cp,{})]})}function Rp(){return o.jsx("div",{className:"py-4 bg-primary-500/20"})}function Np(){return o.jsxs(o.Fragment,{children:[o.jsx(Xg,{}),o.jsxs("div",{className:"h-screen grid grid-rows-[auto,1fr,auto]",children:[o.jsx(au,{}),o.jsx($p,{}),o.jsx(Rp,{})]}),o.jsx(sg,{})]})}Lt.createRoot(document.getElementById("root")).render(o.jsx(ve.StrictMode,{children:o.jsx(Np,{})})); diff --git a/assets/index-7d7b1a43.js b/assets/index-7d7b1a43.js new file mode 100644 index 0000000..e1b4400 --- /dev/null +++ b/assets/index-7d7b1a43.js @@ -0,0 +1,215 @@ +import{r as p,a as Ya,$ as Kr,b as Qa,c as Jr,C as In,d as Xr,e as Zr,f as Dn,g as Fn,h as Yr,i as Qr,j as We,k as eo,D as zn,l as to,m as no,n as ro,o as oo,p as so,q as ao,s as ei,t as io,u as lo,v as co,w as uo,x as fo,y as po,z as go,A as mo,B as ho,E as xo,F as Ln,G as vo,H as bo,I as yo,J as wo,K as ti,L as So,M as jo,N as ni,O as Co,P as ri,Q as Ro,R as oi,S as $o,T as si,U as No,V as _o,W as ai,X as ii,Y as Ao,Z as li,_ as Eo,a0 as di,a1 as ci,a2 as Ot,a3 as Tt,a4 as Mo,a5 as ko,a6 as Gt,a7 as Ht,a8 as Vn,a9 as ui,aa as Po,ab as fi,ac as pi,ad as gi,ae as mi,af as hi,ag as Io,ah as xi,ai as vi,aj as bi,ak as Do,al as yi,am as Fo,an as zo,ao as Lo,ap as Vo,aq as Oo,ar as To,as as wi,at as Go,au as Ho,av as Bo,aw as Uo,ax as qo,ay as Wo,az as Ko,aA as Jo,aB as Xo,aC as On,aD as Tn,aE as Zo,aF as Yo,aG as Si,aH as ji,aI as Qo,aJ as Ci,aK as es,aL as ts,aM as ns,aN as rs,aO as os,aP as ss,aQ as Ri,aR as as,aS as is,aT as ls,aU as $i,aV as ds,aW as cs,aX as Ni,aY as Ee,aZ as us,a_ as _i,a$ as Ai}from"./radix-ui-c21f01d1.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();var fs={exports:{}},Bt={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ei=p,Mi=Symbol.for("react.element"),ki=Symbol.for("react.fragment"),Pi=Object.prototype.hasOwnProperty,Ii=Ei.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Di={key:!0,ref:!0,__self:!0,__source:!0};function ps(e,t,n){var r,s={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Pi.call(t,r)&&!Di.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Mi,type:e,key:a,ref:i,props:s,_owner:Ii.current}}Bt.Fragment=ki;Bt.jsx=ps;Bt.jsxs=ps;fs.exports=Bt;var o=fs.exports,gn={},sr=Ya;gn.createRoot=sr.createRoot,gn.hydrateRoot=sr.hydrateRoot;function gs(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,ir=Fi,ut=(e,t)=>n=>{var r;if(t?.variants==null)return ir(e,n?.class,n?.className);const{variants:s,defaultVariants:a}=t,i=Object.keys(s).map(d=>{const u=n?.[d],f=a?.[d];if(u===null)return null;const m=ar(u)||ar(f);return s[d][m]}),l=n&&Object.entries(n).reduce((d,u)=>{let[f,m]=u;return m===void 0||(d[f]=m),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:f,className:m,...g}=u;return Object.entries(g).every(x=>{let[h,w]=x;return Array.isArray(w)?w.includes({...a,...l}[h]):{...a,...l}[h]===w})?[...d,f,m]:d},[]);return ir(e,i,c,n?.class,n?.className)};function zi(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(i){var l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return s(i,l),l},set:function(i,l){n.has(i)?n.set(i,l):s(i,l)}}}var xs="!";function Bi(e){var t=e.separator||":",n=t.length===1,r=t[0],s=t.length;return function(i){for(var l=[],c=0,d=0,u,f=0;fd?u-d:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:h,maybePostfixModifierPosition:w}}}function Ui(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var s=r[0]==="[";s?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function qi(e){return{cache:Hi(e.cacheSize),splitModifiers:Bi(e),...Li(e)}}var Wi=/\s+/;function Ki(e,t){var n=t.splitModifiers,r=t.getClassGroupId,s=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Wi).map(function(i){var l=n(i),c=l.modifiers,d=l.hasImportantModifier,u=l.baseClassName,f=l.maybePostfixModifierPosition,m=r(f?u.substring(0,f):u),g=!!f;if(!m){if(!f)return{isTailwindClass:!1,originalClassName:i};if(m=r(u),!m)return{isTailwindClass:!1,originalClassName:i};g=!1}var x=Ui(c).join(":"),h=d?x+xs:x;return{isTailwindClass:!0,modifierId:h,classGroupId:m,originalClassName:i,hasPostfixModifier:g}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var l=i.modifierId,c=i.classGroupId,d=i.hasPostfixModifier,u=l+c;return a.has(u)?!1:(a.add(u),s(c,d).forEach(function(f){return a.add(l+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function Ji(){for(var e=arguments.length,t=new Array(e),n=0;n{n=null,e.apply(s,r)},t))}return a}function fl(e,t=2){return e.toFixed(Math.max(Math.min(t,20),0))}function pl(e,t,n){return Math.min(Math.max(e,t),n)}function gl(e,{asArrayBuffer:t}){return new Promise((n,r)=>{const s=new FileReader;s.onload=()=>n(s.result),s.onerror=()=>r(new Error("Failed to load file")),t?s.readAsArrayBuffer(e):s.readAsDataURL(e)})}function ys(e){const t=window.document.documentElement;if(t.classList.remove("light","dark"),e==="system"){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";t.classList.add(n);return}t.classList.add(e)}const ml="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",hl=ut(ml),xn=p.forwardRef(({className:e,...t},n)=>o.jsx(Kr,{ref:n,className:S(hl(),e),...t}));xn.displayName=Kr.displayName;const xl="px-3 py-1 w-full h-9 text-sm border-input bg-transparent file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed transition-colors border rounded-md shadow-sm flex",at=p.forwardRef(({className:e,type:t,...n},r)=>o.jsx("input",{type:t,className:S(xl,e),ref:r,...n}));at.displayName="Input";const vl="px-3 py-2 w-full min-h-[60px] text-sm border-input bg-transparent placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed border rounded-md shadow-sm flex",ws=p.forwardRef(({className:e,...t},n)=>o.jsx("textarea",{className:S(vl,e),ref:n,...t}));ws.displayName="Textarea";const bl='after:![content:attr(data-replicated)_"_"] after:whitespace-pre after:border-transparent after:invisible after:[grid-area:1/1/2/2] grid',yl="resize-none overflow-hidden [grid-area:1/1/2/2]",wl="after:px-3 after:py-2 after:text-sm after:border",Sl=p.forwardRef(({containerPaddingFont:e=wl,className:t,value:n,...r},s)=>o.jsx("div",{className:S(bl,e),"data-replicated":n,children:o.jsx(ws,{className:S(yl,t),value:n,ref:s,...r})}));Sl.displayName="TextareaAutoGrow";const jl="text-sm font-medium focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none transition-colors rounded-md inline-flex items-center justify-center",Hn=ut(jl,{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground shadow-sm",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ie=p.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},a)=>{const i=r?Qa:"button";return o.jsx(i,{className:S(Hn({variant:t,size:n,className:e})),ref:a,...s})});ie.displayName="Button";const ft=" data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",Bn=ro,Un=oo,Cl="px-2 py-1.5 text-sm focus:bg-accent data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",Rl=p.forwardRef(({className:e,inset:t,children:n,...r},s)=>o.jsxs(Jr,{ref:s,className:S(Cl,t&&"pl-8",e),...r,children:[n,o.jsx(In,{className:"ml-auto h-4 w-4"})]}));Rl.displayName=Jr.displayName;const Ss=`p-1 min-w-[8rem] z-50 text-popover-foreground bg-popover border rounded-md shadow-md overflow-hidden ${ft}`,$l=p.forwardRef(({className:e,...t},n)=>o.jsx(Xr,{ref:n,className:S(Ss,e),...t}));$l.displayName=Xr.displayName;const Nl=Ss,Ut=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>o.jsx(Zr,{children:o.jsx(Dn,{ref:r,className:S(Nl,e),sideOffset:t,...n})}));Ut.displayName=Dn.displayName;const _l="relative px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none transition-colors rounded-sm outline-none select-none cursor-default flex items-center",ot=p.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(Fn,{ref:r,className:S(_l,t&&"pl-8",e),...n}));ot.displayName=Fn.displayName;const Al="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none transition-colors rounded-sm outline-none select-none cursor-default flex items-center",js=p.forwardRef(({className:e,children:t,checked:n,...r},s)=>o.jsxs(Yr,{ref:s,className:S(Al,e),checked:n,...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(Qr,{children:o.jsx(We,{className:"h-4 w-4"})})}),t]}));js.displayName=Yr.displayName;const El="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none transition-colors rounded-sm outline-none select-none cursor-default flex items-center",Ml=p.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(eo,{ref:r,className:S(El,e),...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(Qr,{children:o.jsx(zn,{className:"h-4 w-4 fill-current"})})}),t]}));Ml.displayName=eo.displayName;const Cs=p.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(to,{ref:r,className:S("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Cs.displayName=to.displayName;const Rs=p.forwardRef(({className:e,...t},n)=>o.jsx(no,{ref:n,className:S("-mx-1 my-1 h-px bg-muted",e),...t}));Rs.displayName=no.displayName;const kl="px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",Pl=p.forwardRef(({className:e,inset:t,children:n,...r},s)=>o.jsxs(so,{ref:s,className:S(kl,t&&"pl-8",e),...r,children:[n,o.jsx(In,{className:"ml-auto h-4 w-4"})]}));Pl.displayName=so.displayName;const $s=`z-50 p-1 min-w-[8rem] text-popover-foreground bg-popover border rounded-md shadow-md overflow-hidden ${ft}`,Il=p.forwardRef(({className:e,...t},n)=>o.jsx(ao,{ref:n,className:S($s,e),...t}));Il.displayName=ao.displayName;const Dl=$s,Fl=p.forwardRef(({className:e,...t},n)=>o.jsx(ei,{children:o.jsx(io,{ref:n,className:S(Dl,e),...t})}));Fl.displayName=io.displayName;const zl="relative px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",Ll=p.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(lo,{ref:r,className:S(zl,t&&"pl-8",e),...n}));Ll.displayName=lo.displayName;const Ns="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",Vl=p.forwardRef(({className:e,children:t,checked:n,...r},s)=>o.jsxs(co,{ref:s,className:S(Ns,e),checked:n,...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(uo,{children:o.jsx(We,{className:"h-4 w-4"})})}),t]}));Vl.displayName=co.displayName;const Ol=p.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(fo,{ref:r,className:S(Ns,e),...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(uo,{children:o.jsx(zn,{className:"h-4 w-4 fill-current"})})}),t]}));Ol.displayName=fo.displayName;const Tl=p.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(po,{ref:r,className:S("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n}));Tl.displayName=po.displayName;const Gl=p.forwardRef(({className:e,...t},n)=>o.jsx(go,{ref:n,className:S("-mx-1 my-1 h-px bg-border",e),...t}));Gl.displayName=go.displayName;const Hl="z-10 relative max-w-max flex-1 flex items-center justify-center",Bl=p.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(mo,{ref:r,className:S(Hl,e),...n,children:[t,o.jsx(_s,{})]}));Bl.displayName=mo.displayName;const Ul="group flex-1list-none flex items-center justify-center space-x-1",ql=p.forwardRef(({className:e,...t},n)=>o.jsx(ho,{ref:n,className:S(Ul,e),...t}));ql.displayName=ho.displayName;const Wl="group px-4 py-2 w-max h-9 text-sm font-medium bg-background hover:text-accent-foreground hover:bg-accent focus:text-accent-foreground focus:bg-accent focus:outline-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50 disabled:pointer-events-none transition-colors rounded-md inline-flex items-center justify-center",Kl=ut(Wl),Jl="relative ml-1 top-[1px] w-3 h-3 group-data-[state=open]:rotate-180 transition duration-300 ",Xl=p.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(xo,{ref:r,className:S(Kl(),"group",e),...n,children:[t," ",o.jsx(Ln,{className:Jl,"aria-hidden":"true"})]}));Xl.displayName=xo.displayName;const Zl="left-0 top-0 w-full md:absolute md:w-auto data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out data-[motion=from-start]:slide-in-from-left-52 data-[motion=from-end]:slide-in-from-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion=to-end]:slide-out-to-right-52",Yl=p.forwardRef(({className:e,...t},n)=>o.jsx(vo,{ref:n,className:S(Zl,e),...t}));Yl.displayName=vo.displayName;const Ql="relative mt-1.5 w-full h-[var(--radix-navigation-menu-viewport-height)] text-popover-foreground bg-popover data-[state=open]:animate-in data-[state=open]:zoom-in-90 data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 md:w-[var(--radix-navigation-menu-viewport-width)] overflow-hidden origin-top-center border rounded-md shadow",_s=p.forwardRef(({className:e,...t},n)=>o.jsx("div",{className:S("absolute left-0 top-full flex justify-center"),children:o.jsx(bo,{ref:n,className:S(Ql,e),...t})}));_s.displayName=bo.displayName;const ed="z-[1] top-full h-1.5 data-[state=visible]:animate-in data-[state=visible]:fade-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out overflow-hidden flex items-end justify-center",td=p.forwardRef(({className:e,...t},n)=>o.jsx(yo,{ref:n,className:S(ed,e),...t,children:o.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));td.displayName=yo.displayName;const nd="peer w-4 h-4 shrink-0 border-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-accent data-[state=checked]:bg-muted-foreground border rounded-sm shadow",it=p.forwardRef(({className:e,...t},n)=>o.jsx(wo,{ref:n,className:S(nd,e),...t,children:o.jsx(ti,{className:S("flex items-center justify-center text-current"),children:o.jsx(We,{className:"h-4 w-4"})})}));it.displayName=wo.displayName;const rd=p.forwardRef(({className:e,...t},n)=>o.jsx(So,{className:S("grid gap-2",e),...t,ref:n}));rd.displayName=So.displayName;const od="h-4 w-4 aspect-square text-primary border-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 border rounded-full shadow",sd=p.forwardRef(({className:e,children:t,...n},r)=>o.jsx(jo,{ref:r,className:S(od,e),...n,children:o.jsx(ni,{className:"flex items-center justify-center",children:o.jsx(We,{className:"h-3.5 w-3.5 fill-primary"})})}));sd.displayName=jo.displayName;const ad="px-3 py-2 h-9 w-full text-sm border-input bg-transparent ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 border rounded-md shadow-sm flex items-center justify-between",id=p.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(Co,{ref:r,className:S(ad,e),...n,children:[t,o.jsx(ri,{asChild:!0,children:o.jsx(Ro,{className:"h-4 w-4 opacity-50"})})]}));id.displayName=Co.displayName;const ld="z-50 relative min-w-[8rem] bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 overflow-hidden border rounded-md shadow-md",dd="data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",cd="w-full h-[var(--radix-select-trigger-height)] min-w-[var(--radix-select-trigger-width)]",ud=p.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>o.jsx(oi,{children:o.jsx($o,{ref:s,className:S(ld,n==="popper"&&dd,e),position:n,...r,children:o.jsx(si,{className:S("p-1",n==="popper"&&cd),children:t})})}));ud.displayName=$o.displayName;const fd=p.forwardRef(({className:e,...t},n)=>o.jsx(No,{ref:n,className:S("px-2 py-1.5 text-sm font-semibold",e),...t}));fd.displayName=No.displayName;const pd="relative pl-2 pr-8 py-1.5 w-full text-sm focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",gd=p.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(_o,{ref:r,className:S(pd,e),...n,children:[o.jsx("span",{className:"absolute right-2 h-3.5 w-3.5 flex items-center justify-center",children:o.jsx(ai,{children:o.jsx(We,{className:"h-4 w-4"})})}),o.jsx(ii,{children:t})]}));gd.displayName=_o.displayName;const md=p.forwardRef(({className:e,...t},n)=>o.jsx(Ao,{ref:n,className:S("-mx-1 my-1 h-px bg-muted",e),...t}));md.displayName=Ao.displayName;const hd=di,xd=ci,vd=`p-4 w-72 z-50 text-popover-foreground bg-popover border rounded-md shadow-md outline-none ${ft}`,As=p.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>o.jsx(li,{children:o.jsx(Eo,{ref:s,align:t,sideOffset:n,className:S(vd,e),...r})}));As.displayName=Eo.displayName;const bd=ui,yd=Vn,wd="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",Es=p.forwardRef(({className:e,...t},n)=>o.jsx(Ot,{ref:n,className:S(wd,e),...t}));Es.displayName=Ot.displayName;const Sd="fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] z-50 p-6 w-full md:w-full max-w-lg bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] border sm:rounded-lg shadow-lg duration-200 grid gap-4",jd="absolute right-4 top-4 opacity-70 transition-opacityhover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground ring-offset-background rounded-sm disabled:pointer-events-none",Ms=p.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(yd,{children:[o.jsx(Es,{}),o.jsxs(Tt,{ref:r,className:S(Sd,e),...n,children:[t,o.jsxs(Mo,{className:jd,children:[o.jsx(ko,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ms.displayName=Tt.displayName;const ks=({className:e,...t})=>o.jsx("div",{className:S("text-center sm:text-left flex flex-col space-y-1.5",e),...t});ks.displayName="DialogHeader";const Ps=({className:e,...t})=>o.jsx("div",{className:S("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ps.displayName="DialogFooter";const Is=p.forwardRef(({className:e,...t},n)=>o.jsx(Gt,{ref:n,className:S("text-lg font-semibold leading-none tracking-tight",e),...t}));Is.displayName=Gt.displayName;const Ds=p.forwardRef(({className:e,...t},n)=>o.jsx(Ht,{ref:n,className:S("text-sm text-muted-foreground",e),...t}));Ds.displayName=Ht.displayName;var ur=1,Cd=.9,Rd=.3,Zt=.1,$d=0,Yt=.999,Nd=.9999,_d=.99,fr=/[\\\/\-_+.# \t"@\[\(\{&]/,Ad=/[\\\/\-_+.# \t"@\[\(\{&]/g;function vn(e,t,n,r,s,a){if(a===t.length)return s===e.length?ur:_d;for(var i=r.charAt(a),l=n.indexOf(i,s),c=0,d,u,f;l>=0;)d=vn(e,t,n,r,l+1,a+1),d>c&&(l===s?d*=ur:fr.test(e.charAt(l-1))?(d*=Cd,f=e.slice(s,l-1).match(Ad),f&&s>0&&(d*=Math.pow(Yt,f.length))):fr.test(e.slice(s,l-1))?(d*=$d,s>0&&(d*=Math.pow(Yt,l-s))):(d*=Rd,s>0&&(d*=Math.pow(Yt,l-s))),e.charAt(l)!==t.charAt(a)&&(d*=Nd)),dd&&(d=u*Zt)),d>c&&(c=d),l=n.indexOf(i,l+1);return c}function Ed(e,t){return vn(e,t,e.toLowerCase(),t.toLowerCase(),0,0)}var Md=Ed;const kd=Po(Md);var Pd='[cmdk-list-sizer=""]',Ye='[cmdk-group=""]',Qt='[cmdk-group-items=""]',Id='[cmdk-group-heading=""]',Fs='[cmdk-item=""]',pr=`${Fs}:not([aria-disabled="true"])`,bn="cmdk-item-select",Se="data-value",Dd=(e,t)=>kd(e,t),zs=p.createContext(void 0),pt=()=>p.useContext(zs),Ls=p.createContext(void 0),qn=()=>p.useContext(Ls),Vs=p.createContext(void 0),Os=p.forwardRef((e,t)=>{let n=p.useRef(null),r=Le(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),s=Le(()=>new Set),a=Le(()=>new Map),i=Le(()=>new Map),l=Le(()=>new Set),c=Ts(e),{label:d,children:u,value:f,onValueChange:m,filter:g,shouldFilter:x,...h}=e,w=p.useId(),j=p.useId(),M=p.useId(),I=qd();Ke(()=>{if(f!==void 0){let $=f.trim().toLowerCase();r.current.value=$,I(6,y),D.emit()}},[f]);let D=p.useMemo(()=>({subscribe:$=>(l.current.add($),()=>l.current.delete($)),snapshot:()=>r.current,setState:($,_,P)=>{var N,k,z;if(!Object.is(r.current[$],_)){if(r.current[$]=_,$==="search")R(),W(),I(1,b);else if($==="value")if(((N=c.current)==null?void 0:N.value)!==void 0){(z=(k=c.current).onValueChange)==null||z.call(k,_);return}else P||I(5,y);D.emit()}},emit:()=>{l.current.forEach($=>$())}}),[]),F=p.useMemo(()=>({value:($,_)=>{_!==i.current.get($)&&(i.current.set($,_),r.current.filtered.items.set($,q(_)),I(2,()=>{W(),D.emit()}))},item:($,_)=>(s.current.add($),_&&(a.current.has(_)?a.current.get(_).add($):a.current.set(_,new Set([$]))),I(3,()=>{R(),W(),r.current.value||b(),D.emit()}),()=>{i.current.delete($),s.current.delete($),r.current.filtered.items.delete($),I(4,()=>{R(),b(),D.emit()})}),group:$=>(a.current.has($)||a.current.set($,new Set),()=>{i.current.delete($),a.current.delete($)}),filter:()=>c.current.shouldFilter,label:d||e["aria-label"],listId:w,inputId:M,labelId:j}),[]);function q($){var _;let P=((_=c.current)==null?void 0:_.filter)??Dd;return $?P($,r.current.search):0}function W(){if(!n.current||!r.current.search||c.current.shouldFilter===!1)return;let $=r.current.filtered.items,_=[];r.current.filtered.groups.forEach(N=>{let k=a.current.get(N),z=0;k.forEach(U=>{let J=$.get(U);z=Math.max(J,z)}),_.push([N,z])});let P=n.current.querySelector(Pd);C().sort((N,k)=>{let z=N.getAttribute(Se),U=k.getAttribute(Se);return($.get(U)??0)-($.get(z)??0)}).forEach(N=>{let k=N.closest(Qt);k?k.appendChild(N.parentElement===k?N:N.closest(`${Qt} > *`)):P.appendChild(N.parentElement===P?N:N.closest(`${Qt} > *`))}),_.sort((N,k)=>k[1]-N[1]).forEach(N=>{let k=n.current.querySelector(`${Ye}[${Se}="${N[0]}"]`);k?.parentElement.appendChild(k)})}function b(){let $=C().find(P=>!P.ariaDisabled),_=$?.getAttribute(Se);D.setState("value",_||void 0)}function R(){if(!r.current.search||c.current.shouldFilter===!1){r.current.filtered.count=s.current.size;return}r.current.filtered.groups=new Set;let $=0;for(let _ of s.current){let P=i.current.get(_),N=q(P);r.current.filtered.items.set(_,N),N>0&&$++}for(let[_,P]of a.current)for(let N of P)if(r.current.filtered.items.get(N)>0){r.current.filtered.groups.add(_);break}r.current.filtered.count=$}function y(){var $,_,P;let N=v();N&&((($=N.parentElement)==null?void 0:$.firstChild)===N&&((P=(_=N.closest(Ye))==null?void 0:_.querySelector(Id))==null||P.scrollIntoView({block:"nearest"})),N.scrollIntoView({block:"nearest"}))}function v(){return n.current.querySelector(`${Fs}[aria-selected="true"]`)}function C(){return Array.from(n.current.querySelectorAll(pr))}function A($){let _=C()[$];_&&D.setState("value",_.getAttribute(Se))}function E($){var _;let P=v(),N=C(),k=N.findIndex(U=>U===P),z=N[k+$];(_=c.current)!=null&&_.loop&&(z=k+$<0?N[N.length-1]:k+$===N.length?N[0]:N[k+$]),z&&D.setState("value",z.getAttribute(Se))}function L($){let _=v(),P=_?.closest(Ye),N;for(;P&&!N;)P=$>0?Bd(P,Ye):Ud(P,Ye),N=P?.querySelector(pr);N?D.setState("value",N.getAttribute(Se)):E($)}let T=()=>A(C().length-1),O=$=>{$.preventDefault(),$.metaKey?T():$.altKey?L(1):E(1)},H=$=>{$.preventDefault(),$.metaKey?A(0):$.altKey?L(-1):E(-1)};return p.createElement("div",{ref:gt([n,t]),...h,"cmdk-root":"",onKeyDown:$=>{var _;if((_=h.onKeyDown)==null||_.call(h,$),!$.defaultPrevented)switch($.key){case"n":case"j":{$.ctrlKey&&O($);break}case"ArrowDown":{O($);break}case"p":case"k":{$.ctrlKey&&H($);break}case"ArrowUp":{H($);break}case"Home":{$.preventDefault(),A(0);break}case"End":{$.preventDefault(),T();break}case"Enter":{$.preventDefault();let P=v();if(P){let N=new Event(bn);P.dispatchEvent(N)}}}}},p.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:Wd},d),p.createElement(Ls.Provider,{value:D},p.createElement(zs.Provider,{value:F},u)))}),Fd=p.forwardRef((e,t)=>{let n=p.useId(),r=p.useRef(null),s=p.useContext(Vs),a=pt(),i=Ts(e);Ke(()=>a.item(n,s),[]);let l=Gs(n,r,[e.value,e.children,r]),c=qn(),d=He(j=>j.value&&j.value===l.current),u=He(j=>a.filter()===!1?!0:j.search?j.filtered.items.get(n)>0:!0);p.useEffect(()=>{let j=r.current;if(!(!j||e.disabled))return j.addEventListener(bn,f),()=>j.removeEventListener(bn,f)},[u,e.onSelect,e.disabled]);function f(){var j,M;(M=(j=i.current).onSelect)==null||M.call(j,l.current)}function m(){c.setState("value",l.current,!0)}if(!u)return null;let{disabled:g,value:x,onSelect:h,...w}=e;return p.createElement("div",{ref:gt([r,t]),...w,"cmdk-item":"",role:"option","aria-disabled":g||void 0,"aria-selected":d||void 0,"data-selected":d||void 0,onPointerMove:g?void 0:m,onClick:g?void 0:f},e.children)}),zd=p.forwardRef((e,t)=>{let{heading:n,children:r,...s}=e,a=p.useId(),i=p.useRef(null),l=p.useRef(null),c=p.useId(),d=pt(),u=He(m=>d.filter()===!1?!0:m.search?m.filtered.groups.has(a):!0);Ke(()=>d.group(a),[]),Gs(a,i,[e.value,e.heading,l]);let f=p.createElement(Vs.Provider,{value:a},r);return p.createElement("div",{ref:gt([i,t]),...s,"cmdk-group":"",role:"presentation",hidden:u?void 0:!0},n&&p.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),p.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},f))}),Ld=p.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,s=p.useRef(null),a=He(i=>!i.search);return!n&&!a?null:p.createElement("div",{ref:gt([s,t]),...r,"cmdk-separator":"",role:"separator"})}),Vd=p.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,s=e.value!=null,a=qn(),i=He(c=>c.search),l=pt();return p.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),p.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:s?e.value:i,onChange:c=>{s||a.setState("search",c.target.value),n?.(c.target.value)}})}),Od=p.forwardRef((e,t)=>{let{children:n,...r}=e,s=p.useRef(null),a=p.useRef(null),i=pt();return p.useEffect(()=>{if(a.current&&s.current){let l=a.current,c=s.current,d,u=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let f=l.getBoundingClientRect().height;c.style.setProperty("--cmdk-list-height",f.toFixed(1)+"px")})});return u.observe(l),()=>{cancelAnimationFrame(d),u.unobserve(l)}}},[]),p.createElement("div",{ref:gt([s,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:i.listId,"aria-labelledby":i.inputId},p.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),Td=p.forwardRef((e,t)=>{let{open:n,onOpenChange:r,container:s,...a}=e;return p.createElement(fi,{open:n,onOpenChange:r},p.createElement(pi,{container:s},p.createElement(gi,{"cmdk-overlay":""}),p.createElement(mi,{"aria-label":e.label,"cmdk-dialog":""},p.createElement(Os,{ref:t,...a}))))}),Gd=p.forwardRef((e,t)=>{let n=p.useRef(!0),r=He(s=>s.filtered.count===0);return p.useEffect(()=>{n.current=!1},[]),n.current||!r?null:p.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Hd=p.forwardRef((e,t)=>{let{progress:n,children:r,...s}=e;return p.createElement("div",{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},p.createElement("div",{"aria-hidden":!0},r))}),re=Object.assign(Os,{List:Od,Item:Fd,Input:Vd,Group:zd,Separator:Ld,Dialog:Td,Empty:Gd,Loading:Hd});function Bd(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Ud(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Ts(e){let t=p.useRef(e);return Ke(()=>{t.current=e}),t}var Ke=typeof window>"u"?p.useEffect:p.useLayoutEffect;function Le(e){let t=p.useRef();return t.current===void 0&&(t.current=e()),t}function gt(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function He(e){let t=qn(),n=()=>e(t.snapshot());return p.useSyncExternalStore(t.subscribe,n,n)}function Gs(e,t,n){let r=p.useRef(),s=pt();return Ke(()=>{var a;let i=(()=>{var l;for(let c of n){if(typeof c=="string")return c.trim().toLowerCase();if(typeof c=="object"&&"current"in c&&c.current)return(l=c.current.textContent)==null?void 0:l.trim().toLowerCase()}})();s.value(e,i),(a=t.current)==null||a.setAttribute(Se,i),r.current=i}),r}var qd=()=>{let[e,t]=p.useState(),n=Le(()=>new Map);return Ke(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,s)=>{n.current.set(r,s),t({})}},Wd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Kd="w-full h-full text-popover-foreground bg-popover overflow-hidden rounded-md flex flex-col",Jd=p.forwardRef(({className:e,...t},n)=>o.jsx(re,{ref:n,className:S(Kd,e),...t}));Jd.displayName=re.displayName;const Xd="py-3 w-full h-10 text-sm bg-transparent placeholder:text-muted-foreground disabled:opacity-50 disabled:cursor-not-allowed rounded-md outline-none flex",Zd=p.forwardRef(({className:e,...t},n)=>o.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[o.jsx(hi,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),o.jsx(re.Input,{ref:n,className:S(Xd,e),...t})]}));Zd.displayName=re.Input.displayName;const Yd=p.forwardRef(({className:e,...t},n)=>o.jsx(re.List,{ref:n,className:S("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Yd.displayName=re.List.displayName;const Qd=p.forwardRef((e,t)=>o.jsx(re.Empty,{ref:t,className:"py-6 text-sm text-center",...e}));Qd.displayName=re.Empty.displayName;const ec="p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden ",tc=p.forwardRef(({className:e,...t},n)=>o.jsx(re.Group,{ref:n,className:S(ec,e),...t}));tc.displayName=re.Group.displayName;const nc=p.forwardRef(({className:e,...t},n)=>o.jsx(re.Separator,{ref:n,className:S("-mx-1 h-px bg-border",e),...t}));nc.displayName=re.Separator.displayName;const rc="relative px-2 py-1.5 text-sm aria-selected:text-accent-foreground aria-selected:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",oc=p.forwardRef(({className:e,...t},n)=>o.jsx(re.Item,{ref:n,className:S(rc,e),...t}));oc.displayName=re.Item.displayName;var sc={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"};const ac=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ie=(e,t)=>{const n=p.forwardRef(({color:r="currentColor",size:s=24,strokeWidth:a=2,absoluteStrokeWidth:i,children:l,...c},d)=>p.createElement("svg",{ref:d,...sc,width:s,height:s,stroke:r,strokeWidth:i?Number(a)*24/Number(s):a,className:`lucide lucide-${ac(e)}`,...c},[...t.map(([u,f])=>p.createElement(u,f)),...(Array.isArray(l)?l:[l])||[]]));return n.displayName=`${e}`,n},ic=Ie("AppWindow",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]),lc=Ie("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),dc=Ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),cc=Ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),uc=Ie("Folder",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}]]),gr=Ie("Layout",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"9",x2:"9",y1:"21",y2:"9",key:"wpwpyp"}]]),fc=Ie("Paintbrush",[["path",{d:"M18.37 2.63 14 7l-1.59-1.59a2 2 0 0 0-2.82 0L8 7l9 9 1.59-1.59a2 2 0 0 0 0-2.82L17 10l4.37-4.37a2.12 2.12 0 1 0-3-3Z",key:"m6k5sh"}],["path",{d:"M9 8c-2 3-4 3.5-7 4l8 10c2-1 6-5 6-7",key:"arzq70"}],["path",{d:"M14.5 17.5 4.5 15",key:"s7fvrz"}]]),pc="block h-4 w-4 bg-background border-primary/50 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none transition-colors border rounded-full shadow",gc=p.forwardRef(({className:e,...t},n)=>o.jsxs(Io,{ref:n,className:S("relative w-full touch-none select-none flex items-center",e),...t,children:[o.jsx(xi,{className:"relative w-full h-1.5 bg-primary/20 rounded-full grow overflow-hidden",children:o.jsx(vi,{className:"absolute h-full bg-primary"})}),o.jsx(bi,{className:pc})]}));gc.displayName=Io.displayName;const mc="peer w-[36px] h-[20px] border-transparent focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-ring focus-visible:ring-offset-background focus-visible:outline-none disabled:opacity-50 disabled:cursor-not-allowed data-[state=checked]:bg-primary data-[state=unchecked]:bg-input transition-colors border-2 rounded-full shadow-sm cursor-pointer shrink-0 inline-flex items-center",hc="block w-4 h-4 bg-background data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0 transition-transform pointer-events-none ring-0 rounded-full shadow-lg",xc=p.forwardRef(({className:e,...t},n)=>o.jsx(Do,{ref:n,className:S(mc,e),...t,children:o.jsx(yi,{className:S(hc)})}));xc.displayName=Do.displayName;const vc="text-sm font-medium hover:text-muted-foreground hover:bg-muted focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none data-[state=on]:text-accent-foreground data-[state=on]:bg-accent transition-colors rounded-md inline-flex items-center justify-center",bc=ut(vc,{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground shadow-sm"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),yc=p.forwardRef(({className:e,variant:t,size:n,...r},s)=>o.jsx(Fo,{ref:s,className:S(bc({variant:t,size:n,className:e})),...r}));yc.displayName=Fo.displayName;const wc="z-50 px-3 py-1.5 text-xs text-primary-foreground bg-primary animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 overflow-hidden rounded-md",Sc=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>o.jsx(zo,{ref:r,sideOffset:t,className:S(wc,e),...n}));Sc.displayName=zo.displayName;const jc="p-1 h-9 bg-background border rounded-md shadow-sm flex items-center space-x-1",Cc=p.forwardRef(({className:e,...t},n)=>o.jsx(Lo,{ref:n,className:S(jc,e),...t}));Cc.displayName=Lo.displayName;const Rc="px-3 py-1 text-sm font-medium focus:text-accent-foreground focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",$c=p.forwardRef(({className:e,...t},n)=>o.jsx(Vo,{ref:n,className:S(Rc,e),...t}));$c.displayName=Vo.displayName;const Nc="px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:bg-accent rounded-sm outline-none select-none cursor-default flex items-center",_c=p.forwardRef(({className:e,inset:t,children:n,...r},s)=>o.jsxs(Oo,{ref:s,className:S(Nc,t&&"pl-8",e),...r,children:[n,o.jsx(In,{className:"ml-auto h-4 w-4"})]}));_c.displayName=Oo.displayName;const Ac="p-1 min-w-[8rem] z-50 text-popover-foreground bg-popover data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border rounded-md shadow-lg overflow-hidden",Ec=p.forwardRef(({className:e,...t},n)=>o.jsx(To,{ref:n,className:S(Ac,e),...t}));Ec.displayName=To.displayName;const Mc="p-1 min-w-[12rem] z-50 text-popover-foreground bg-popover data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border rounded-md shadow-md overflow-hidden",kc=p.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...s},a)=>o.jsx(wi,{children:o.jsx(Go,{ref:a,align:t,alignOffset:n,sideOffset:r,className:S(Mc,e),...s})}));kc.displayName=Go.displayName;const Pc="relative px-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm select-none outline-none cursor-default flex items-center",Ic=p.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(Ho,{ref:r,className:S(Pc,t&&"pl-8",e),...n}));Ic.displayName=Ho.displayName;const Hs="relative pl-8 pr-2 py-1.5 text-sm focus:text-accent-foreground focus:bg-accent data-[disabled]:opacity-50 data-[disabled]:pointer-events-none rounded-sm outline-none select-none cursor-default flex items-center",Dc=p.forwardRef(({className:e,children:t,checked:n,...r},s)=>o.jsxs(Bo,{ref:s,className:S(Hs,e),checked:n,...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(Uo,{children:o.jsx(We,{className:"h-4 w-4"})})}),t]}));Dc.displayName=Bo.displayName;const Fc=p.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(qo,{ref:r,className:S(Hs,e),...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(Uo,{children:o.jsx(zn,{className:"h-4 w-4 fill-current"})})}),t]}));Fc.displayName=qo.displayName;const zc=p.forwardRef(({className:e,inset:t,...n},r)=>o.jsx(Wo,{ref:r,className:S("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));zc.displayName=Wo.displayName;const Lc=p.forwardRef(({className:e,...t},n)=>o.jsx(Ko,{ref:n,className:S("-mx-1 my-1 h-px bg-muted",e),...t}));Lc.displayName=Ko.displayName;const Vc=Zo,Bs=p.forwardRef(({className:e,...t},n)=>o.jsx(Jo,{ref:n,className:S("border-b",e),...t}));Bs.displayName="AccordionItem";const Oc="flex-1 py-4 text-sm font-medium hover:underline [&[data-state=open]>svg]:rotate-180 transition-all flex items-center justify-between",Us=p.forwardRef(({className:e,children:t,...n},r)=>o.jsx(Xo,{className:"flex",children:o.jsxs(On,{ref:r,className:S(Oc,e),...n,children:[o.jsx("div",{children:t}),o.jsx(Ln,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Us.displayName=On.displayName;const Tc="text-sm overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",qs=p.forwardRef(({className:e,children:t,...n},r)=>o.jsx(Tn,{ref:r,className:S(Tc,e),...n,children:o.jsx("div",{className:"pb-4 pt-0",children:t})}));qs.displayName=Tn.displayName;const Wn=p.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(Yo,{ref:r,className:S("relative overflow-hidden","[&[data-fixed-width]>div>div]:![display:block]",e),...n,children:[o.jsx(Si,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(Ws,{}),o.jsx(ji,{})]}));Wn.displayName=Yo.displayName;const Ws=p.forwardRef(({className:e,orientation:t="vertical",...n},r)=>o.jsx(Qo,{ref:r,orientation:t,className:S("flex touch-none select-none transition-colors",t==="vertical"&&"w-2.5 h-full border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...n,children:o.jsx(Ci,{className:S("relative rounded-full bg-border",t==="vertical"&&"flex-1")})}));Ws.displayName=Qo.displayName;const Gc=Ri,Hc="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",Ks=p.forwardRef(({className:e,...t},n)=>o.jsx(es,{ref:n,className:S(Hc,e),...t}));Ks.displayName=es.displayName;const Bc="fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] w-full md:w-full max-w-lg p-6 z-50 bg-background data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] duration-200 border sm:rounded-lg shadow-lg grid gap-4",Uc=p.forwardRef(({className:e,...t},n)=>o.jsxs(Gc,{children:[o.jsx(Ks,{}),o.jsx(ts,{ref:n,className:S(Bc,e),...t})]}));Uc.displayName=ts.displayName;const qc=p.forwardRef(({className:e,...t},n)=>o.jsx(ns,{ref:n,className:S("text-lg font-semibold",e),...t}));qc.displayName=ns.displayName;const Wc=p.forwardRef(({className:e,...t},n)=>o.jsx(rs,{ref:n,className:S("text-sm text-muted-foreground",e),...t}));Wc.displayName=rs.displayName;const Kc=p.forwardRef(({className:e,...t},n)=>o.jsx(os,{ref:n,className:S(Hn(),e),...t}));Kc.displayName=os.displayName;const Jc=p.forwardRef(({className:e,...t},n)=>o.jsx(ss,{ref:n,className:S(Hn({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Jc.displayName=ss.displayName;const Js=Vn;Js.displayName=Vn.displayName;const Xc="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",Xs=p.forwardRef(({className:e,...t},n)=>o.jsx(Ot,{ref:n,className:S(Xc,e),...t}));Xs.displayName=Ot.displayName;const Zc="fixed z-50 p-6 bg-background data-[state=open]:animate-in data-[state=open]:duration-500 data-[state=closed]:animate-out data-[state=closed]:duration-300 transition ease-in-out shadow-lg gap-4",Yc="inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",Qc="inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",eu="inset-y-0 left-0 h-full w-3/4 sm:max-w-sm border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",tu="inset-y-0 right-0 h-full w-3/4 sm:max-w-sm border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",nu=ut(Zc,{variants:{side:{top:Yc,bottom:Qc,left:eu,right:tu}},defaultVariants:{side:"right"}}),ru="absolute right-4 top-4 opacity-70 hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary ring-offset-background transition-opacity rounded-sm",ou=p.forwardRef(({side:e="right",className:t,children:n,...r},s)=>o.jsxs(Js,{children:[o.jsx(Xs,{}),o.jsxs(Tt,{ref:s,className:S(nu({side:e}),t),...r,children:[n,o.jsxs(Mo,{className:ru,children:[o.jsx(ko,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ou.displayName=Tt.displayName;const su=p.forwardRef(({className:e,...t},n)=>o.jsx(Gt,{ref:n,className:S("text-lg font-semibold text-foreground",e),...t}));su.displayName=Gt.displayName;const au=p.forwardRef(({className:e,...t},n)=>o.jsx(Ht,{ref:n,className:S("text-sm text-muted-foreground",e),...t}));au.displayName=Ht.displayName;const Kn=p.forwardRef(({className:e,...t},n)=>o.jsx("div",{className:"relative w-full overflow-auto",children:o.jsx("table",{ref:n,className:S("w-full caption-bottom text-sm",e),...t})}));Kn.displayName="Table";const Jn=p.forwardRef(({className:e,...t},n)=>o.jsx("thead",{ref:n,className:S("[&_tr]:border-b",e),...t}));Jn.displayName="TableHeader";const Xn=p.forwardRef(({className:e,...t},n)=>o.jsx("tbody",{ref:n,className:S("[&_tr:last-child]:border-0",e),...t}));Xn.displayName="TableBody";const Zs=p.forwardRef(({className:e,...t},n)=>o.jsx("tfoot",{ref:n,className:S("text-primary-foreground bg-primary font-medium",e),...t}));Zs.displayName="TableFooter";const Me=p.forwardRef(({className:e,...t},n)=>o.jsx("tr",{ref:n,className:S("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Me.displayName="TableRow";const Oe=p.forwardRef(({className:e,...t},n)=>o.jsx("th",{ref:n,className:S("h-10 px-2 text-left font-medium align-middle text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Oe.displayName="TableHead";const ve=p.forwardRef(({className:e,...t},n)=>o.jsx("td",{ref:n,className:S("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));ve.displayName="TableCell";const Ys=p.forwardRef(({className:e,...t},n)=>o.jsx("caption",{ref:n,className:S("mt-4 text-sm text-muted-foreground",e),...t}));Ys.displayName="TableCaption";const qt=$i,iu="p-1 h-9 text-muted-foreground bg-muted rounded-lg inline-flex items-center justify-center",mt=p.forwardRef(({className:e,...t},n)=>o.jsx(as,{ref:n,className:S(iu,e),...t}));mt.displayName=as.displayName;const lu="px-3 py-1 text-sm font-medium whitespace-nowrapfocus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none data-[state=active]:text-foreground data-[state=active]:bg-background data-[state=active]:shadow ring-offset-background transition-all rounded-md inline-flex items-center justify-center",te=p.forwardRef(({className:e,...t},n)=>o.jsx(is,{ref:n,className:S(lu,e),...t}));te.displayName=is.displayName;const du="mt-2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none ring-offset-background",ne=p.forwardRef(({className:e,...t},n)=>o.jsx(ls,{ref:n,className:S(du,e),...t}));ne.displayName=ls.displayName;const cu=`z-50 p-4 w-64 text-popover-foreground bg-popover border rounded-md shadow-md outline-none ${ft}`,uu=p.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>o.jsx(ds,{ref:s,align:t,sideOffset:n,className:S(cu,e),...r}));uu.displayName=ds.displayName;const fu=p.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:S("rounded-xl border bg-card text-card-foreground shadow",e),...t}));fu.displayName="Card";const pu=p.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:S("flex flex-col space-y-1.5 p-6",e),...t}));pu.displayName="CardHeader";const gu=p.forwardRef(({className:e,...t},n)=>o.jsx("h3",{ref:n,className:S("font-semibold leading-none tracking-tight",e),...t}));gu.displayName="CardTitle";const mu=p.forwardRef(({className:e,...t},n)=>o.jsx("p",{ref:n,className:S("text-sm text-muted-foreground",e),...t}));mu.displayName="CardDescription";const hu=p.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:S("p-6 pt-0",e),...t}));hu.displayName="CardContent";const xu=p.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:S("flex items-center p-6 pt-0",e),...t}));xu.displayName="CardFooter";function en({className:e,...t}){return o.jsx("div",{className:S("animate-pulse rounded-md bg-primary/10",e),...t})}const vu=p.forwardRef(({className:e,value:t,...n},r)=>o.jsx(cs,{ref:r,className:S("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:o.jsx(Ni,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));vu.displayName=cs.displayName;var st=function(){return st=Object.assign||function(t){for(var n,r=1,s=arguments.length;r({...t,children:t.children?Qs(t.children):void 0}))}function Te(e,t){if(t&&e){!Array.isArray(e)&&(e=[e]);for(const n of e){if(n.id===t)return n;if(n.children){const r=Te(n.children,t);if(r)return r}}}}function Ru(e,t,n){const r=[];return t&&s(e,t),r;function s(a,i){if(a)if(a instanceof Array)for(let l=0;l({id:i.dataset.treeId,el:i}));if(!s.length)return;if(t.preventDefault(),t.stopPropagation(),!n)return s[0].id;const a=s.findIndex(i=>i.id===n);if(a!==-1)switch(t.key){case"ArrowDown":case"ArrowUp":{const i=t.key==="ArrowDown"?a+1:a-1;if(i>=0&&inew Proxy(e,t);const wn=Object.getPrototypeOf,Sn=new WeakMap,ea=e=>e&&(Sn.has(e)?Sn.get(e):wn(e)===Object.prototype||wn(e)===Array.prototype),mr=e=>typeof e=="object"&&e!==null,Au=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(wn(e),t)},ta=e=>e[Zn]||e,na=(e,t,n,r)=>{if(!ea(e))return e;let s=r&&r.get(e);if(!s){const c=ta(e);s=(d=>Object.values(Object.getOwnPropertyDescriptors(d)).some(u=>!u.configurable&&!u.writable))(c)?[c,Au(c)]:[c],r?.set(e,s)}const[a,i]=s;let l=n&&n.get(a);return l&&l[1].f===!!i||(l=((c,d)=>{const u={f:d};let f=!1;const m=(x,h)=>{if(!f){let w=u[Qe].get(c);if(w||(w={},u[Qe].set(c,w)),x===Mt)w[Mt]=!0;else{let j=w[x];j||(j=new Set,w[x]=j),j.add(h)}}},g={get:(x,h)=>h===Zn?c:(m("k",h),na(Reflect.get(x,h),u[Qe],u.c,u.t)),has:(x,h)=>h===Nu?(f=!0,u[Qe].delete(c),!0):(m("h",h),Reflect.has(x,h)),getOwnPropertyDescriptor:(x,h)=>(m("o",h),Reflect.getOwnPropertyDescriptor(x,h)),ownKeys:x=>(m(Mt),Reflect.ownKeys(x))};return d&&(g.set=g.deleteProperty=()=>!1),[g,u]})(a,!!i),l[1].p=_u(i||a,l[0]),n&&n.set(a,l)),l[1][Qe]=t,l[1].c=n,l[1].t=r,l[1].p},ra=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!mr(e)||!mr(t))return!0;const s=n.get(ta(e));if(!s)return!0;if(r){const i=r.get(e);if(i&&i.n===t)return i.g;r.set(e,{n:t,g:!1})}let a=null;try{for(const i of s.h||[])if(a=Reflect.has(e,i)!==Reflect.has(t,i),a)return a;if(s[Mt]===!0){if(a=((i,l)=>{const c=Reflect.ownKeys(i),d=Reflect.ownKeys(l);return c.length!==d.length||c.some((u,f)=>u!==d[f])})(e,t),a)return a}else for(const i of s.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),a)return a;for(const i of s.k||[])if(a=ra(e[i],t[i],n,r),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a})}},Eu=e=>ea(e)&&e[Zn]||null,hr=(e,t=!0)=>{Sn.set(e,t)};const tn=e=>typeof e=="object"&&e!==null,je=new WeakMap,wt=new WeakSet,Mu=(e=Object.is,t=(d,u)=>new Proxy(d,u),n=d=>tn(d)&&!wt.has(d)&&(Array.isArray(d)||!(Symbol.iterator in d))&&!(d instanceof WeakMap)&&!(d instanceof WeakSet)&&!(d instanceof Error)&&!(d instanceof Number)&&!(d instanceof Date)&&!(d instanceof String)&&!(d instanceof RegExp)&&!(d instanceof ArrayBuffer),r=d=>{switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:throw d}},s=new WeakMap,a=(d,u,f=r)=>{const m=s.get(d);if(m?.[0]===u)return m[1];const g=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d));return hr(g,!0),s.set(d,[u,g]),Reflect.ownKeys(d).forEach(x=>{if(Object.getOwnPropertyDescriptor(g,x))return;const h=Reflect.get(d,x),w={value:h,enumerable:!0,configurable:!0};if(wt.has(h))hr(h,!1);else if(h instanceof Promise)delete w.value,w.get=()=>f(h);else if(je.has(h)){const[j,M]=je.get(h);w.value=a(j,M(),f)}Object.defineProperty(g,x,w)}),Object.preventExtensions(g)},i=new WeakMap,l=[1,1],c=d=>{if(!tn(d))throw new Error("object required");const u=i.get(d);if(u)return u;let f=l[0];const m=new Set,g=(R,y=++l[0])=>{f!==y&&(f=y,m.forEach(v=>v(R,y)))};let x=l[1];const h=(R=++l[1])=>(x!==R&&!m.size&&(x=R,j.forEach(([y])=>{const v=y[1](R);v>f&&(f=v)})),f),w=R=>(y,v)=>{const C=[...y];C[1]=[R,...C[1]],g(C,v)},j=new Map,M=(R,y)=>{if(m.size){const v=y[3](w(R));j.set(R,[y,v])}else j.set(R,[y])},I=R=>{var y;const v=j.get(R);v&&(j.delete(R),(y=v[1])==null||y.call(v))},D=R=>(m.add(R),m.size===1&&j.forEach(([v,C],A)=>{const E=v[3](w(A));j.set(A,[v,E])}),()=>{m.delete(R),m.size===0&&j.forEach(([v,C],A)=>{C&&(C(),j.set(A,[v]))})}),F=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d)),W=t(F,{deleteProperty(R,y){const v=Reflect.get(R,y);I(y);const C=Reflect.deleteProperty(R,y);return C&&g(["delete",[y],v]),C},set(R,y,v,C){const A=Reflect.has(R,y),E=Reflect.get(R,y,C);if(A&&(e(E,v)||i.has(v)&&e(E,i.get(v))))return!0;I(y),tn(v)&&(v=Eu(v)||v);let L=v;if(v instanceof Promise)v.then(T=>{v.status="fulfilled",v.value=T,g(["resolve",[y],T])}).catch(T=>{v.status="rejected",v.reason=T,g(["reject",[y],T])});else{!je.has(v)&&n(v)&&(L=c(v));const T=!wt.has(L)&&je.get(L);T&&M(y,T)}return Reflect.set(R,y,L,C),g(["set",[y],v,E]),!0}});i.set(d,W);const b=[F,h,a,D];return je.set(W,b),Reflect.ownKeys(d).forEach(R=>{const y=Object.getOwnPropertyDescriptor(d,R);"value"in y&&(W[R]=d[R],delete y.value,delete y.writable),Object.defineProperty(F,R,y)}),W})=>[c,je,wt,e,t,n,r,s,a,i,l],[ku]=Mu();function ht(e={}){return ku(e)}function Wt(e,t,n){const r=je.get(e);let s;const a=[],i=r[3];let l=!1;const d=i(u=>{if(a.push(u),n){t(a.splice(0));return}s||(s=Promise.resolve().then(()=>{s=void 0,l&&t(a.splice(0))}))});return l=!0,()=>{l=!1,d()}}function xr(e,t){const n=je.get(e),[r,s,a]=n;return a(r,s(),t)}var oa={exports:{}},sa={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Be=p;function Pu(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Iu=typeof Object.is=="function"?Object.is:Pu,Du=Be.useState,Fu=Be.useEffect,zu=Be.useLayoutEffect,Lu=Be.useDebugValue;function Vu(e,t){var n=t(),r=Du({inst:{value:n,getSnapshot:t}}),s=r[0].inst,a=r[1];return zu(function(){s.value=n,s.getSnapshot=t,nn(s)&&a({inst:s})},[e,n,t]),Fu(function(){return nn(s)&&a({inst:s}),e(function(){nn(s)&&a({inst:s})})},[e]),Lu(n),n}function nn(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Iu(e,n)}catch{return!0}}function Ou(e,t){return t()}var Tu=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ou:Vu;sa.useSyncExternalStore=Be.useSyncExternalStore!==void 0?Be.useSyncExternalStore:Tu;oa.exports=sa;var Gu=oa.exports;const Hu=Po(Gu),{use:vr}=Ee,{useSyncExternalStore:Bu}=Hu;const Uu=new WeakMap;function xt(e,t){const n=t?.sync,r=p.useRef(),s=p.useRef();let a=!0;const i=Bu(p.useCallback(d=>{const u=Wt(e,d,n);return d(),u},[e,n]),()=>{const d=xr(e,vr);try{if(!a&&r.current&&s.current&&!ra(r.current,d,s.current,new WeakMap))return r.current}catch{}return d},()=>xr(e,vr));a=!1;const l=new WeakMap;p.useEffect(()=>{r.current=i,s.current=l});const c=p.useMemo(()=>new WeakMap,[]);return na(i,l,c,Uu)}function qu(e,t){var n=p.useRef(null),r=p.useRef(null);r.current=t;var s=p.useRef(null);p.useEffect(function(){a()});var a=p.useCallback(function(){var i=s.current,l=r.current,c=i||(l?l instanceof Element?l:l.current:null);n.current&&n.current.element===c&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:c,subscriber:e,cleanup:c?e(c):void 0})},[e]);return p.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),p.useCallback(function(i){s.current=i,a()},[a])}function br(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function Wu(e){e===void 0&&(e={});var t=e.onResize,n=p.useRef(void 0);n.current=t;var r=e.round||Math.round,s=p.useRef(),a=p.useState({width:void 0,height:void 0}),i=a[0],l=a[1],c=p.useRef(!1);p.useEffect(function(){return c.current=!1,function(){c.current=!0}},[]);var d=p.useRef({width:void 0,height:void 0}),u=qu(p.useCallback(function(f){return(!s.current||s.current.box!==e.box||s.current.round!==r)&&(s.current={box:e.box,round:r,instance:new ResizeObserver(function(m){var g=m[0],x=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=br(g,x,"inlineSize"),w=br(g,x,"blockSize"),j=h?r(h):void 0,M=w?r(w):void 0;if(d.current.width!==j||d.current.height!==M){var I={width:j,height:M};d.current.width=j,d.current.height=M,n.current?n.current(I):c.current||l(I)}})}),s.current.instance.observe(f,{box:e.box}),function(){s.current&&s.current.instance.unobserve(f)}},[e.box,r]),e.ref);return p.useMemo(function(){return{ref:u,width:i.width,height:i.height}},[u,i.width,i.height])}const Ku="px-2 before:absolute before:left-0 before:w-full before:h-[1.75rem] before:bg-muted/80 before:opacity-0 hover:before:opacity-100 before:-z-10 ",Ju="text-accent-foreground dark:before:border-0 before:bg-accent before:opacity-100 before:border-l-2 before:border-l-accent-foreground/50 ",Xu="shrink-0 mr-2 w-4 h-4 text-accent-foreground/50",Zu="px-2 py-1 r1elative before:absolute before:left-0 before:right-1 before:w-full before:h-[1.75rem] before:bg-muted/80 before:opacity-0 hover:before:opacity-100 before:-z-10 cursor-pointer flex items-center ",Yu="text-accent-foreground dark:before:border-0 before:bg-accent before:opacity-100 before:border-l-2 before:border-l-accent-foreground/50 ",Qu="shrink-0 mr-2 w-4 h-4 text-accent-foreground/50",ef=p.forwardRef(({data:e,initialSelectedItemId:t,onSelectChange:n,expandAll:r,IconForFolder:s,IconForItem:a,arrowFirst:i,hideFolderIcon:l,className:c,...d},u)=>{const[f]=p.useState(()=>ht({selectedId:void 0})),m=p.useMemo(()=>{const M=Ru(e,t,r),I=Te(e,f.selectedId);I&&(I.state.selected=!1);const D=Te(e,M[M.length-1]);return D&&(D.state.selected=!0,f.selectedId=D.id),M},[e,t,r]),g=p.useCallback((M,I)=>{if(M.stopPropagation(),f.selectedId){const D=Te(e,f.selectedId);D&&(D.state.selected=!1)}I?(I.state.selected=!I.state.selected,f.selectedId=I.id):f.selectedId=void 0,n?.(I)},[f,n]),x=p.useRef(null),{ref:h,width:w,height:j}=Wu();return o.jsx("div",{ref:M=>{h(M),x.current=M},className:S("_overflow-hidden",c),tabIndex:0,onKeyDown:M=>{const I=$u(x.current,M,f.selectedId);I&&g(M,Te(e,I))},children:o.jsx(Wn,{className:"tree-scroll",style:{width:w,height:j},onClick:M=>g(M,void 0),children:o.jsx("div",{className:"relative z-0 px-2 py-1",children:o.jsx(aa,{ref:u,data:e,handleSelectChange:g,expandedItemIds:m,IconForFolder:s,IconForItem:a,arrowFirst:i,hideFolderIcon:l,...d})})})})}),aa=p.forwardRef(({className:e,data:t,handleSelectChange:n,expandedItemIds:r,IconForFolder:s,IconForItem:a,arrowFirst:i,hideFolderIcon:l,...c},d)=>o.jsx("div",{ref:d,role:"tree",className:e,...c,children:o.jsx("ul",{children:t instanceof Array?t.map(u=>o.jsx("li",{children:u.children?o.jsx(Zo,{type:"multiple",defaultValue:r,children:o.jsxs(Jo,{value:u.id,"data-tree-id":u.id,"data-tree-folder":ju,children:[o.jsx(ia,{item:u,Icon:s,arrowFirst:i,hideFolderIcon:l,onClick:f=>n(f,u)}),o.jsx(da,{className:"pl-6",children:o.jsx(aa,{data:u.children,handleSelectChange:n,expandedItemIds:r,IconForFolder:s,IconForItem:a,arrowFirst:i,hideFolderIcon:l})})]})}):o.jsx(jn,{item:u,onClick:f=>n(f,u),Icon:a})},u.id)):o.jsx("li",{children:o.jsx(jn,{item:t,onClick:u=>n(u,t),Icon:a})})})})),jn=p.forwardRef(({className:e,item:t,Icon:n,...r},s)=>{const{selected:a}=xt(t.state);return o.jsx("div",{ref:s,className:S(Zu,e,a&&Yu),"data-tree-id":t.id,...r,children:o.jsx(ca,{item:t,Icon:n,classes:Qu,hideFolderIcon:!1})})});jn.displayName="Tree.Leaf";const ia=p.forwardRef(({className:e,item:t,Icon:n,arrowFirst:r=!0,hideFolderIcon:s,...a},i)=>{const{selected:l}=xt(t.state);return o.jsx(la,{className:S(Ku,l&&Ju),"data-tree-folder-trigger":Cu,arrowFirst:r,ref:i,...a,children:o.jsx(ca,{item:t,Icon:n,hideFolderIcon:s,classes:Xu})})});ia.displayName="Tree.Folder";const la=p.forwardRef(({className:e,children:t,arrowFirst:n,...r},s)=>{const a=o.jsx(cc,{className:ee("shrink-0 ml-auto h-4 w-4 text-accent-foreground/50 transition-transform duration-200",n&&"mr-2")});return o.jsx(Xo,{children:o.jsx(On,{asChild:!0,className:S("flex-1 py-1 w-full transition-all outline-none cursor-pointer flex items-center",n?"first:[&[data-state=open]>svg]:rotate-90":"last:[&[data-state=open]>svg]:rotate-90",e),ref:s,...r,children:o.jsxs("div",{children:[n&&o.jsx(o.Fragment,{children:a}),t,!n&&o.jsx(o.Fragment,{children:a})]})})})});la.displayName="Tree.Folder.Trigger";const da=p.forwardRef(({className:e,children:t,...n},r)=>o.jsx(Tn,{ref:r,className:S("text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down transition-all overflow-hidden",e),...n,children:o.jsx("div",{children:t})}));da.displayName="Tree.Folder.Content";function ca({item:e,Icon:t,classes:n,hideFolderIcon:r}){return o.jsxs(o.Fragment,{children:[e.icon&&o.jsx(e.icon,{className:n,"aria-hidden":"true"}),!e.icon&&t&&!r&&o.jsx(t,{className:n,"aria-hidden":"true"}),o.jsx("span",{className:"flex-grow text-sm truncate",children:e.name})]})}const tf={splitterPos:30,arrowFirst:!0,hideFolderIcon:!0},nf={theme:"light",treeState:tf},ua="shadcn-tv-app-settings",Y=ht(rf());function rf(){const e=localStorage.getItem(ua);if(e)try{return JSON.parse(e)}catch{}return nf}ys(Y.theme);Wt(Y,()=>{ys(Y.theme)});Wt(Y,()=>{localStorage.setItem(ua,JSON.stringify(Y))});function of({className:e,title:t,...n}){return o.jsxs("svg",{className:ee("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",...n,children:[t&&o.jsx("title",{children:t}),o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"})]})}function sf({className:e,title:t,...n}){return o.jsxs("svg",{className:ee("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",...n,children:[t&&o.jsx("title",{children:t}),o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})]})}function af({className:e,title:t,...n}){return o.jsxs("svg",{className:ee("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[t&&o.jsx("title",{children:t}),o.jsx("path",{d:"M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4"}),o.jsx("path",{d:"M12 2v2"}),o.jsx("path",{d:"M12 20v2"}),o.jsx("path",{d:"m4.9 4.9 1.4 1.4"}),o.jsx("path",{d:"m17.7 17.7 1.4 1.4"}),o.jsx("path",{d:"M2 12h2"}),o.jsx("path",{d:"M20 12h2"}),o.jsx("path",{d:"m6.3 17.7-1.4 1.4"}),o.jsx("path",{d:"m19.1 4.9-1.4 1.4"})]})}function lf({title:e,...t}){return o.jsxs("svg",{viewBox:"0 0 21 21",strokeLinecap:"round",fill:"none",stroke:"currentColor",strokeWidth:1.2,...t,children:[e&&o.jsx("title",{children:e}),o.jsx("path",{d:"M4.5 6.5h12"}),o.jsx("path",{d:"M4.498 10.5h11.997"}),o.jsx("path",{d:"M4.5 14.5h11.995"})]})}function df({title:e,...t}){return o.jsxs("svg",{viewBox:"0 0 422 422",strokeLinecap:"round",fill:"none",stroke:"currentColor",strokeWidth:1.2,...t,children:[e&&o.jsx("title",{children:e}),o.jsx("path",{d:"M364.35 116.86h-32.97v-27a8 8 0 0 0-8-8h-22V8a8 8 0 0 0-8-8h-215a8 8 0 0 0-8 8v73.86h-22a8 8 0 0 0-8 8v27h-13.3a8 8 0 0 0 0 16h13.3v27a8 8 0 0 0 8 8h22V293a8 8 0 0 0 8 8h44.5v13a8 8 0 0 0 8 8h17v92a8 8 0 0 0 8 8h60a8 8 0 0 0 8-8v-92h17a8 8 0 0 0 8-8v-13h44.5a8 8 0 0 0 8-8v-64.05l69.28-11.48a38.45 38.45 0 0 0 32.26-38.06v-23.98a38.62 38.62 0 0 0-38.57-38.57zM86.38 16h199v65.86h-199V16zm121.5 390h-44v-84h44v84zm25-100h-94v-24h94v24zm52.5-21h-36.5v-11a8 8 0 0 0-8-8h-47v-.08a22.5 22.5 0 0 1 18.88-22.27l72.62-12.04V285zm0-69.61-75.23 12.48a38.45 38.45 0 0 0-32.27 38.05v.08h-47a8 8 0 0 0-8 8v11h-36.5V167.86h27.7v69.64a8 8 0 0 0 16 0v-69.64h39V201a8 8 0 0 0 16 0v-33.14h100.3v47.53zm-229-63.53v-54h259v54h-259zm330.54 27.55a22.5 22.5 0 0 1-18.88 22.27l-66.66 11.06v-44.88h22a8 8 0 0 0 8-8v-27h32.97a22.6 22.6 0 0 1 22.57 22.57v23.98z"})]})}function rn({label:e,theme:t,current:n}){return o.jsxs(ot,{className:"grid grid-cols-[16px,1fr] items-center gap-x-2",onClick:()=>Y.theme=t,children:[n===t&&o.jsx(lc,{className:"w-4 h-4"}),o.jsx("div",{className:"col-start-2",children:e})]})}function cf(){const{theme:e}=xt(Y),t=e==="dark",n=e==="system",r=!t&&!n;return o.jsxs("div",{className:"focus-within:ring-1 focus-within:ring-ring rounded-md flex items-center",children:[o.jsxs(ie,{variant:"ghost",size:"sm",tabIndex:-1,className:"py-0 border-y border-l border-input rounded-r-none",onClick:()=>Y.theme=Y.theme==="dark"?"light":"dark",children:[n&&o.jsx(af,{className:"w-4 h-4"}),r&&o.jsx(of,{className:"w-4 h-4"}),t&&o.jsx(sf,{className:"w-4 h-4 p-0.5"})]}),o.jsxs(Bn,{children:[o.jsx(Un,{asChild:!0,children:o.jsx(ie,{variant:"ghost",size:"sm",className:"px-1 py-0 border border-input rounded-l-none focus-visible:ring-0",onClick:()=>Y.theme="system",children:o.jsx(dc,{className:"w-3 h-3"})})}),o.jsxs(Ut,{align:"end",children:[o.jsx(rn,{label:"Light",theme:"light",current:e}),o.jsx(rn,{label:"Dark",theme:"dark",current:e}),o.jsx(rn,{label:"System",theme:"system",current:e})]})]})]})}const uf={theme:"system",setTheme:()=>null};p.createContext(uf);const{createElement:Ue,createContext:ff,createRef:Qm,forwardRef:fa,useCallback:oe,useContext:pa,useEffect:ke,useImperativeHandle:ga,useLayoutEffect:pf,useMemo:gf,useRef:ce,useState:Ft}=us,yr=us["useId".toString()],Kt=ff(null);Kt.displayName="PanelGroupContext";const lt=pf,mf=typeof yr=="function"?yr:()=>null;let hf=0;function Yn(e=null){const t=mf(),n=ce(e||t||null);return n.current===null&&(n.current=""+hf++),e??n.current}function ma({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:s,forwardedRef:a,id:i,maxSize:l,minSize:c,onCollapse:d,onExpand:u,onResize:f,order:m,style:g,tagName:x="div",...h}){const w=pa(Kt);if(w===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:j,expandPanel:M,getPanelSize:I,getPanelStyle:D,groupId:F,isPanelCollapsed:q,registerPanel:W,resizePanel:b,unregisterPanel:R}=w,y=Yn(i),v=ce({callbacks:{onCollapse:d,onExpand:u,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:s,maxSize:l,minSize:c},id:y,idIsFromProps:i!==void 0,order:m});ce({didLogMissingDefaultSizeWarning:!1}),lt(()=>{const{callbacks:A,constraints:E}=v.current;v.current.id=y,v.current.idIsFromProps=i!==void 0,v.current.order=m,A.onCollapse=d,A.onExpand=u,A.onResize=f,E.collapsedSize=n,E.collapsible=r,E.defaultSize=s,E.maxSize=l,E.minSize=c}),lt(()=>{const A=v.current;return W(A),()=>{R(A)}},[m,y,W,R]),ga(a,()=>({collapse:()=>{j(v.current)},expand:()=>{M(v.current)},getId(){return y},getSize(){return I(v.current)},isCollapsed(){return q(v.current)},isExpanded(){return!q(v.current)},resize:A=>{b(v.current,A)}}),[j,M,I,q,y,b]);const C=D(v.current,s);return Ue(x,{...h,children:e,className:t,style:{...C,...g},"data-panel":"","data-panel-id":y,"data-panel-group-id":F,"data-panel-collapsible":void 0,"data-panel-size":void 0})}const ha=fa((e,t)=>Ue(ma,{...e,forwardedRef:t}));ma.displayName="Panel";ha.displayName="forwardRef(Panel)";function G(e,t="Assertion failed!"){if(!e)throw console.error(t),Error(t)}const xa=10;function dt(e,t,n=xa){e=parseFloat(e.toFixed(n)),t=parseFloat(t.toFixed(n));const r=e-t;return r===0?0:r>0?1:-1}function se(e,t,n){return dt(e,t,n)===0}function Ge({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];G(r!=null);let{collapsedSize:s=0,collapsible:a,maxSize:i=100,minSize:l=0}=r;if(dt(n,l)<0)if(a){const c=(s+l)/2;dt(n,c)<0?n=s:n=l}else n=l;return n=Math.min(i,n),n=parseFloat(n.toFixed(xa)),n}function nt({delta:e,layout:t,panelConstraints:n,pivotIndices:r,trigger:s}){if(se(e,0))return t;const a=[...t],[i,l]=r;G(i!=null),G(l!=null);let c=0;if(s==="keyboard"){{const u=e<0?l:i,f=n[u];if(G(f),f.collapsible){const m=t[u];G(m!=null);const g=n[u];G(g);const{collapsedSize:x=0,minSize:h=0}=g;if(se(m,x)){const w=h-m;dt(w,Math.abs(e))>0&&(e=e<0?0-w:w)}}}{const u=e<0?i:l,f=n[u];G(f);const{collapsible:m}=f;if(m){const g=t[u];G(g!=null);const x=n[u];G(x);const{collapsedSize:h=0,minSize:w=0}=x;if(se(g,w)){const j=g-h;dt(j,Math.abs(e))>0&&(e=e<0?0-j:j)}}}}{const u=e<0?1:-1;let f=e<0?l:i,m=0;for(;;){const x=t[f];G(x!=null);const w=Ge({panelConstraints:n,panelIndex:f,size:100})-x;if(m+=w,f+=u,f<0||f>=n.length)break}const g=Math.min(Math.abs(e),Math.abs(m));e=e<0?0-g:g}{let f=e<0?i:l;for(;f>=0&&f=0))break;e<0?f--:f++}}if(se(c,0))return t;{const u=e<0?l:i,f=t[u];G(f!=null);const m=f+c,g=Ge({panelConstraints:n,panelIndex:u,size:m});if(a[u]=g,!se(g,m)){let x=m-g,w=e<0?l:i;for(;w>=0&&w0?w--:w++}}}const d=a.reduce((u,f)=>f+u,0);return se(d,100)?a:t}function xf({layout:e,panelsArray:t,pivotIndices:n}){let r=0,s=100,a=0,i=0;const l=n[0];G(l!=null),t.forEach((f,m)=>{const{constraints:g}=f,{maxSize:x=100,minSize:h=0}=g;m===l?(r=h,s=x):(a+=h,i+=x)});const c=Math.min(s,100-a),d=Math.max(r,100-i),u=e[l];return{valueMax:c,valueMin:d,valueNow:u}}function ct(e){return Array.from(document.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function va(e,t){const r=ct(e).findIndex(s=>s.getAttribute("data-panel-resize-handle-id")===t);return r??null}function ba(e,t){const n=va(e,t);return n!=null?[n,n+1]:[-1,-1]}function ya(e){const t=document.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return t||null}function Jt(e){const t=document.querySelector(`[data-panel-resize-handle-id="${e}"]`);return t||null}function vf(e,t,n){var r,s,a,i;const l=Jt(t),c=ct(e),d=l?c.indexOf(l):-1,u=(r=(s=n[d])===null||s===void 0?void 0:s.id)!==null&&r!==void 0?r:null,f=(a=(i=n[d+1])===null||i===void 0?void 0:i.id)!==null&&a!==void 0?a:null;return[u,f]}function bf({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:s,setLayout:a}){ce({didWarnAboutMissingResizeHandle:!1}),lt(()=>{const i=ct(n);for(let l=0;l{i.forEach((l,c)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,r,s]),ke(()=>{const i=t.current;G(i);const{panelDataArray:l}=i,c=ya(n);G(c!=null,`No group found for id "${n}"`);const d=ct(n);G(d);const u=d.map(f=>{const m=f.getAttribute("data-panel-resize-handle-id");G(m);const[g,x]=vf(n,m,l);if(g==null||x==null)return()=>{};const h=w=>{if(!w.defaultPrevented)switch(w.key){case"Enter":{w.preventDefault();const j=l.findIndex(M=>M.id===g);if(j>=0){const M=l[j];G(M);const I=r[j],{collapsedSize:D=0,collapsible:F,minSize:q=0}=M.constraints;if(I!=null&&F){const W=nt({delta:se(I,D)?q-D:D-I,layout:r,panelConstraints:l.map(b=>b.constraints),pivotIndices:ba(n,m),trigger:"keyboard"});r!==W&&a(W)}}break}}};return f.addEventListener("keydown",h),()=>{f.removeEventListener("keydown",h)}});return()=>{u.forEach(f=>f())}},[e,t,n,r,s,a])}function wr(e,t){if(e.length!==t.length)return!1;for(let n=0;na.constraints);let r=0,s=100;for(let a=0;a{const a=e[s];G(a);const{callbacks:i,constraints:l,id:c}=a,{collapsedSize:d=0,collapsible:u}=l,f=n[c];if(f==null||r!==f){n[c]=r;const{onCollapse:m,onExpand:g,onResize:x}=i;x&&x(r,f),u&&(m||g)&&(g&&(f==null||f===d)&&r!==d&&g(),m&&(f==null||f!==d)&&r===d&&m())}})}function St(e,t){if(e.length!==t.length)return!1;for(let n=0;n{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...s)},t)}}function Sr(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 $a(e){return`react-resizable-panels:${e}`}function Na(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:s,order:a}=t;return s?r:a?`${a}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function _a(e,t){try{const n=$a(e),r=t.getItem(n);if(r){const s=JSON.parse(r);if(typeof s=="object"&&s!=null)return s}}catch{}return null}function $f(e,t,n){var r,s;const a=(r=_a(e,n))!==null&&r!==void 0?r:{},i=Na(t);return(s=a[i])!==null&&s!==void 0?s:null}function Nf(e,t,n,r,s){var a;const i=$a(e),l=Na(t),c=(a=_a(e,s))!==null&&a!==void 0?a:{};c[l]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{s.setItem(i,JSON.stringify(c))}catch(d){console.error(d)}}function jr({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((a,i)=>a+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(a=>`${a}%`).join(", ")}`);if(!se(r,100))for(let a=0;a(Sr(rt),rt.getItem(e)),setItem:(e,t)=>{Sr(rt),rt.setItem(e,t)}},Cr={};function Aa({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:s,id:a=null,onLayout:i=null,keyboardResizeBy:l=null,storage:c=rt,style:d,tagName:u="div",...f}){const m=Yn(a),[g,x]=Ft(null),[h,w]=Ft([]),j=ce({}),M=ce(new Map),I=ce(0),D=ce({autoSaveId:e,direction:r,dragState:g,id:m,keyboardResizeBy:l,onLayout:i,storage:c}),F=ce({layout:h,panelDataArray:[],panelDataArrayChanged:!1});ce({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),ga(s,()=>({getId:()=>D.current.id,getLayout:()=>{const{layout:_}=F.current;return _},setLayout:_=>{const{onLayout:P}=D.current,{layout:N,panelDataArray:k}=F.current,z=jr({layout:_,panelConstraints:k.map(U=>U.constraints)});wr(N,z)||(w(z),F.current.layout=z,P&&P(z),Fe(k,z,j.current))}}),[]),lt(()=>{D.current.autoSaveId=e,D.current.direction=r,D.current.dragState=g,D.current.id=m,D.current.onLayout=i,D.current.storage=c}),bf({committedValuesRef:D,eagerValuesRef:F,groupId:m,layout:h,panelDataArray:F.current.panelDataArray,setLayout:w}),ke(()=>{const{panelDataArray:_}=F.current;if(e){if(h.length===0||h.length!==_.length)return;let P=Cr[e];P==null&&(P=Rf(Nf,_f),Cr[e]=P);const N=[..._],k=new Map(M.current);P(e,N,k,h,c)}},[e,h,c]),ke(()=>{});const q=oe(_=>{const{onLayout:P}=D.current,{layout:N,panelDataArray:k}=F.current;if(_.constraints.collapsible){const z=k.map(ye=>ye.constraints),{collapsedSize:U=0,panelSize:J,pivotIndices:Q}=ze(k,_,N);if(G(J!=null),J!==U){M.current.set(_.id,J);const de=Ve(k,_)===k.length-1?J-U:U-J,X=nt({delta:de,layout:N,panelConstraints:z,pivotIndices:Q,trigger:"imperative-api"});St(N,X)||(w(X),F.current.layout=X,P&&P(X),Fe(k,X,j.current))}}},[]),W=oe(_=>{const{onLayout:P}=D.current,{layout:N,panelDataArray:k}=F.current;if(_.constraints.collapsible){const z=k.map(de=>de.constraints),{collapsedSize:U=0,panelSize:J,minSize:Q=0,pivotIndices:ye}=ze(k,_,N);if(J===U){const de=M.current.get(_.id),X=de!=null&&de>=Q?de:Q,pe=Ve(k,_)===k.length-1?J-X:X-J,me=nt({delta:pe,layout:N,panelConstraints:z,pivotIndices:ye,trigger:"imperative-api"});St(N,me)||(w(me),F.current.layout=me,P&&P(me),Fe(k,me,j.current))}}},[]),b=oe(_=>{const{layout:P,panelDataArray:N}=F.current,{panelSize:k}=ze(N,_,P);return G(k!=null),k},[]),R=oe((_,P)=>{const{panelDataArray:N}=F.current,k=Ve(N,_);return jf({defaultSize:P,dragState:g,layout:h,panelData:N,panelIndex:k})},[g,h]),y=oe(_=>{const{layout:P,panelDataArray:N}=F.current,{collapsedSize:k=0,collapsible:z,panelSize:U}=ze(N,_,P);return z===!0&&U===k},[]),v=oe(_=>{const{layout:P,panelDataArray:N}=F.current,{collapsedSize:k=0,collapsible:z,panelSize:U}=ze(N,_,P);return G(U!=null),!z||U>k},[]),C=oe(_=>{const{panelDataArray:P}=F.current;P.push(_),P.sort((N,k)=>{const z=N.order,U=k.order;return z==null&&U==null?0:z==null?-1:U==null?1:z-U}),F.current.panelDataArrayChanged=!0},[]);lt(()=>{if(F.current.panelDataArrayChanged){F.current.panelDataArrayChanged=!1;const{autoSaveId:_,onLayout:P,storage:N}=D.current,{layout:k,panelDataArray:z}=F.current;let U=null;if(_){const Q=$f(_,z,N);Q&&(M.current=new Map(Object.entries(Q.expandToSizes)),U=Q.layout)}U==null&&(U=Sf({panelDataArray:z}));const J=jr({layout:U,panelConstraints:z.map(Q=>Q.constraints)});wr(k,J)||(w(J),F.current.layout=J,P&&P(J),Fe(z,J,j.current))}});const A=oe(_=>function(N){N.preventDefault();const{direction:k,dragState:z,id:U,keyboardResizeBy:J,onLayout:Q}=D.current,{layout:ye,panelDataArray:de}=F.current,{initialLayout:X}=z??{},bt=ba(U,_);let pe=wf(N,_,k,z,J);if(pe===0)return;const me=k==="horizontal";document.dir==="rtl"&&me&&(pe=-pe);const Xa=de.map(Za=>Za.constraints),Je=nt({delta:pe,layout:X??ye,panelConstraints:Xa,pivotIndices:bt,trigger:wa(N)?"keyboard":"mouse-or-touch"}),or=!St(ye,Je);(Sa(N)||ja(N))&&I.current!=pe&&(I.current=pe,on(or?me?"horizontal":"vertical":me?pe<0?"horizontal-min":"horizontal-max":pe<0?"vertical-min":"vertical-max")),or&&(w(Je),F.current.layout=Je,Q&&Q(Je),Fe(de,Je,j.current))},[]),E=oe((_,P)=>{const{onLayout:N}=D.current,{layout:k,panelDataArray:z}=F.current,U=z.map(bt=>bt.constraints),{panelSize:J,pivotIndices:Q}=ze(z,_,k);G(J!=null);const de=Ve(z,_)===z.length-1?J-P:P-J,X=nt({delta:de,layout:k,panelConstraints:U,pivotIndices:Q,trigger:"imperative-api"});St(k,X)||(w(X),F.current.layout=X,N&&N(X),Fe(z,X,j.current))},[]),L=oe((_,P)=>{const{direction:N}=D.current,{layout:k}=F.current,z=Jt(_);G(z);const U=Ca(N,P);x({dragHandleId:_,dragHandleRect:z.getBoundingClientRect(),initialCursorPosition:U,initialLayout:k})},[]),T=oe(()=>{Cf(),x(null)},[]),O=oe(_=>{const{panelDataArray:P}=F.current,N=Ve(P,_);N>=0&&(P.splice(N,1),delete j.current[_.id],F.current.panelDataArrayChanged=!0)},[]),H=gf(()=>({collapsePanel:q,direction:r,dragState:g,expandPanel:W,getPanelSize:b,getPanelStyle:R,groupId:m,isPanelCollapsed:y,isPanelExpanded:v,registerPanel:C,registerResizeHandle:A,resizePanel:E,startDragging:L,stopDragging:T,unregisterPanel:O}),[q,g,r,W,b,R,m,y,v,C,A,E,L,T,O]),$={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Ue(Kt.Provider,{value:H},Ue(u,{...f,children:t,className:n,style:{...$,...d},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":m}))}const Ea=fa((e,t)=>Ue(Aa,{...e,forwardedRef:t}));Aa.displayName="PanelGroup";Ea.displayName="forwardRef(PanelGroup)";function Ve(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function ze(e,t,n){const r=e.map(d=>d.constraints),s=Ve(e,t),a=r[s],l=s===e.length-1?[s-1,s]:[s,s+1],c=n[s];return{...a,panelSize:c,pivotIndices:l}}function Af({disabled:e,handleId:t,resizeHandler:n}){ke(()=>{if(e||n==null)return;const r=Jt(t);if(r==null)return;const s=a=>{if(!a.defaultPrevented)switch(a.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{a.preventDefault(),n(a);break}case"F6":{a.preventDefault();const i=r.getAttribute("data-panel-group-id");G(i);const l=ct(i),c=va(i,t);G(c!==null);const d=a.shiftKey?c>0?c-1:l.length-1:c+1{r.removeEventListener("keydown",s)}},[e,t,n])}function Ma({children:e=null,className:t="",disabled:n=!1,id:r,onDragging:s,style:a={},tabIndex:i=0,tagName:l="div",...c}){const d=ce(null),u=ce({onDragging:s});ke(()=>{u.current.onDragging=s});const f=pa(Kt);if(f===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,dragState:g,groupId:x,registerResizeHandle:h,startDragging:w,stopDragging:j}=f,M=Yn(r),I=g?.dragHandleId===M,[D,F]=Ft(!1),[q,W]=Ft(null),b=oe(()=>{const y=d.current;G(y),y.blur(),j();const{onDragging:v}=u.current;v&&v(!1)},[j]);ke(()=>{if(n)W(null);else{const y=h(M);W(()=>y)}},[n,M,h]),ke(()=>{if(n||q==null||!I)return;const y=E=>{q(E)},v=E=>{q(E)},C=d.current;G(C);const A=C.ownerDocument;return A.body.addEventListener("contextmenu",b),A.body.addEventListener("mousemove",y),A.body.addEventListener("touchmove",y),A.body.addEventListener("mouseleave",v),window.addEventListener("mouseup",b),window.addEventListener("touchend",b),()=>{A.body.removeEventListener("contextmenu",b),A.body.removeEventListener("mousemove",y),A.body.removeEventListener("touchmove",y),A.body.removeEventListener("mouseleave",v),window.removeEventListener("mouseup",b),window.removeEventListener("touchend",b)}},[m,n,I,q,b]),Af({disabled:n,handleId:M,resizeHandler:q});const R={cursor:Ra(m),touchAction:"none",userSelect:"none"};return Ue(l,{...c,children:e,className:t,onBlur:()=>F(!1),onFocus:()=>F(!0),onMouseDown:y=>{w(M,y.nativeEvent);const v=u.current;G(v);const{onDragging:C}=v;C&&C(!0)},onMouseUp:b,onTouchCancel:b,onTouchEnd:b,onTouchStart:y=>{w(M,y.nativeEvent);const v=u.current;G(v);const{onDragging:C}=v;C&&C(!0)},ref:d,role:"separator",style:{...R,...a},tabIndex:i,"data-panel-group-direction":m,"data-panel-group-id":x,"data-resize-handle":"","data-resize-handle-active":I?"pointer":D?"keyboard":void 0,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":M})}Ma.displayName="PanelResizeHandle";const Rr=({className:e,...t})=>o.jsx(Ea,{className:S("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),jt=ha,Ef="relative w-px bg-border after:absolute after:left-1/2 after:-translate-x-1/2 after:w-1 after:inset-y-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:h-1 [&[data-panel-group-direction=vertical]>div]:rotate-90 flex items-center justify-center ",$r=({withHandle:e,className:t,...n})=>o.jsx(Ma,{className:S(Ef,t),...n,children:e&&o.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:o.jsx(_i,{className:"h-2.5 w-2.5"})})});function Mf(){return o.jsxs("div",{className:"px-2 py-3 flex items-center justify-between bg-primary-foreground",children:[o.jsxs("div",{className:"flex items-center gap-x-1",children:[o.jsx("div",{className:"ml-2 pt-1.5",children:o.jsx(df,{className:"w-7 h-7 stroke-none fill-slate-600 -rotate-90"})}),o.jsx("div",{className:"text-2xl font-extralight tracking-tighter text-blue-600",children:"shradcn"}),o.jsx("div",{className:"text-2xl font-extralight tracking-tighter text-slate-600",children:"components template"})]}),o.jsx("div",{className:"flex items-center justify-end gap-x-1",children:o.jsx(cf,{})})]})}const kf=`p-1 bg-background border rounded-md shadow-md ${ft}`,Pf=" px-2 py-2 text-xs focus:bg-accent focus:text-accent-foreground outline-none rounded-md select-none cursor-default flex items-center ",If=({trigger:e,onCommand:t,items:n,containerClasses:r,menuContentProps:s})=>o.jsx("div",{className:"relative inline-block text-left",children:o.jsxs(ro,{children:[o.jsx(oo,{asChild:!0,children:e}),o.jsx(Zr,{children:o.jsx(Dn,{align:"end",...s,className:ee(kf,r),children:n.map(({id:a,label:i,icon:l,shortcut:c},d)=>o.jsxs(Fn,{className:Pf,onClick:()=>t(a),children:[l,o.jsx("span",{className:"flex-grow",children:i}),c&&o.jsx("span",{className:"text-xs",children:c})]},a))})})]})}),Df=[{id:"new-file",label:"New File"},{id:"open-settings",label:"Settings"}],Ff="w-20";function zf(){function e(t){switch(t){case"new-file":console.log(t);break;case"open-settings":console.log(t);break}}return o.jsxs("div",{className:"py-1 select-none flex items-center justify-between",children:[o.jsx("div",{className:"self-end",children:"Demo app"}),o.jsx("div",{className:"",children:o.jsx(If,{trigger:o.jsx(ie,{variant:"outline",size:"sm",className:"px-2",children:o.jsx(lf,{className:"w-4 h-4"})}),items:Df,containerClasses:Ff,menuContentProps:{sideOffset:1},onCommand:e})})]})}function Lf(){const[e,t]=p.useState(!1);return o.jsxs(o.Fragment,{children:[o.jsx(ie,{variant:"outline",onClick:()=>t(!0),children:"Demo dialog"}),o.jsx(bd,{open:e,onOpenChange:()=>t(!1),children:o.jsxs(Ms,{className:"sm:max-w-[425px]",children:[o.jsxs(ks,{children:[o.jsx(Is,{children:"Demo dialog"}),o.jsx(Ds,{children:"Make changes to your profile here. Click save when you're done."})]}),o.jsxs("div",{className:"grid gap-4 py-4",children:[o.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[o.jsx(xn,{htmlFor:"name",className:"text-right",children:"Name"}),o.jsx(at,{id:"name",className:"col-span-3",value:"Pedro Duarte",onChange:n=>{}})]}),o.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[o.jsx(xn,{htmlFor:"username",className:"text-right",children:"Username"}),o.jsx(at,{id:"username",className:"col-span-3",value:"@peduarte",onChange:n=>{}})]})]}),o.jsx(Ps,{children:o.jsx(ie,{type:"submit",onClick:()=>t(!1),children:"Save changes"})})]})})]})}/** + * table-core + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Re(e,t){return typeof e=="function"?e(t):e}function le(e,t){return n=>{t.setState(r=>({...r,[e]:Re(n,r[e])}))}}function zt(e){return e instanceof Function}function Vf(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Of(e,t){const n=[],r=s=>{s.forEach(a=>{n.push(a);const i=t(a);i!=null&&i.length&&r(i)})};return r(e),n}function V(e,t,n){let r=[],s;return()=>{let a;n.key&&n.debug&&(a=Date.now());const i=e();if(!(i.length!==r.length||i.some((d,u)=>r[u]!==d)))return s;r=i;let c;if(n.key&&n.debug&&(c=Date.now()),s=t(...i),n==null||n.onChange==null||n.onChange(s),n.key&&n.debug&&n!=null&&n.debug()){const d=Math.round((Date.now()-a)*100)/100,u=Math.round((Date.now()-c)*100)/100,f=u/16,m=(g,x)=>{for(g=String(g);g.length{let g=m;for(const h of c.split(".")){var x;g=(x=g)==null?void 0:x[h]}return g}:u=m=>m[l.accessorKey]),!d)throw new Error;let f={id:`${String(d)}`,accessorFn:u,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:V(()=>[!0],()=>{var m;return[f,...(m=f.columns)==null?void 0:m.flatMap(g=>g.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var m;return(m=e.options.debugAll)!=null?m:e.options.debugColumns}}),getLeafColumns:V(()=>[e._getOrderColumnsFn()],m=>{var g;if((g=f.columns)!=null&&g.length){let x=f.columns.flatMap(h=>h.getLeafColumns());return m(x)}return[f]},{key:"column.getLeafColumns",debug:()=>{var m;return(m=e.options.debugAll)!=null?m:e.options.debugColumns}})};for(const m of e._features)m.createColumn==null||m.createColumn(f,e);return f}function Nr(e,t,n){var r;let a={id:(r=n.id)!=null?r: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=[],l=c=>{c.subHeaders&&c.subHeaders.length&&c.subHeaders.map(l),i.push(c)};return l(a),i},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(i=>{i.createHeader==null||i.createHeader(a,e)}),a}const Gf={createTable:e=>{e.getHeaderGroups=V(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,s)=>{var a,i;const l=(a=r?.map(f=>n.find(m=>m.id===f)).filter(Boolean))!=null?a:[],c=(i=s?.map(f=>n.find(m=>m.id===f)).filter(Boolean))!=null?i:[],d=n.filter(f=>!(r!=null&&r.includes(f.id))&&!(s!=null&&s.includes(f.id)));return Ct(t,[...l,...d,...c],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=V(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,s)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(s!=null&&s.includes(a.id))),Ct(t,n,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=V(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var s;const a=(s=r?.map(i=>n.find(l=>l.id===i)).filter(Boolean))!=null?s:[];return Ct(t,a,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightHeaderGroups=V(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var s;const a=(s=r?.map(i=>n.find(l=>l.id===i)).filter(Boolean))!=null?s:[];return Ct(t,a,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFooterGroups=V(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFooterGroups=V(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFooterGroups=V(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFooterGroups=V(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFlatHeaders=V(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=V(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=V(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFlatHeaders=V(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=V(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=V(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightLeafHeaders=V(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeafHeaders=V(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var s,a,i,l,c,d;return[...(s=(a=t[0])==null?void 0:a.headers)!=null?s:[],...(i=(l=n[0])==null?void 0:l.headers)!=null?i:[],...(c=(d=r[0])==null?void 0:d.headers)!=null?c:[]].map(u=>u.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})}};function Ct(e,t,n,r){var s,a;let i=0;const l=function(m,g){g===void 0&&(g=1),i=Math.max(i,g),m.filter(x=>x.getIsVisible()).forEach(x=>{var h;(h=x.columns)!=null&&h.length&&l(x.columns,g+1)},0)};l(e);let c=[];const d=(m,g)=>{const x={depth:g,id:[r,`${g}`].filter(Boolean).join("_"),headers:[]},h=[];m.forEach(w=>{const j=[...h].reverse()[0],M=w.column.depth===x.depth;let I,D=!1;if(M&&w.column.parent?I=w.column.parent:(I=w.column,D=!0),j&&j?.column===I)j.subHeaders.push(w);else{const F=Nr(n,I,{id:[r,g,I.id,w?.id].filter(Boolean).join("_"),isPlaceholder:D,placeholderId:D?`${h.filter(q=>q.column===I).length}`:void 0,depth:g,index:h.length});F.subHeaders.push(w),h.push(F)}x.headers.push(w),w.headerGroup=x}),c.push(x),g>0&&d(h,g-1)},u=t.map((m,g)=>Nr(n,m,{depth:i,index:g}));d(u,i-1),c.reverse();const f=m=>m.filter(x=>x.column.getIsVisible()).map(x=>{let h=0,w=0,j=[0];x.subHeaders&&x.subHeaders.length?(j=[],f(x.subHeaders).forEach(I=>{let{colSpan:D,rowSpan:F}=I;h+=D,j.push(F)})):h=1;const M=Math.min(...j);return w=w+M,x.colSpan=h,x.rowSpan=w,{colSpan:h,rowSpan:w}});return f((s=(a=c[0])==null?void 0:a.headers)!=null?s:[]),c}const Rt={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},sn=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Hf={getDefaultColumnDef:()=>Rt,getInitialState:e=>({columnSizing:{},columnSizingInfo:sn(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:le("columnSizing",e),onColumnSizingInfoChange:le("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,s;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Rt.minSize,(r=a??e.columnDef.size)!=null?r:Rt.size),(s=e.columnDef.maxSize)!=null?s:Rt.maxSize)},e.getStart=n=>{const r=n?n==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),s=r.findIndex(a=>a.id===e.id);if(s>0){const a=r[s-1];return a.getStart(n)+a.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...s}=n;return s})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=s=>{if(s.subHeaders.length)s.subHeaders.forEach(r);else{var a;n+=(a=s.column.getSize())!=null?a:0}};return r(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=()=>{const n=t.getColumn(e.column.id),r=n?.getCanResize();return s=>{if(!n||!r||(s.persist==null||s.persist(),an(s)&&s.touches&&s.touches.length>1))return;const a=e.getSize(),i=e?e.getLeafHeaders().map(h=>[h.column.id,h.column.getSize()]):[[n.id,n.getSize()]],l=an(s)?Math.round(s.touches[0].clientX):s.clientX,c={},d=(h,w)=>{typeof w=="number"&&(t.setColumnSizingInfo(j=>{var M,I;const D=w-((M=j?.startOffset)!=null?M:0),F=Math.max(D/((I=j?.startSize)!=null?I:0),-.999999);return j.columnSizingStart.forEach(q=>{let[W,b]=q;c[W]=Math.round(Math.max(b+b*F,0)*100)/100}),{...j,deltaOffset:D,deltaPercentage:F}}),(t.options.columnResizeMode==="onChange"||h==="end")&&t.setColumnSizing(j=>({...j,...c})))},u=h=>d("move",h),f=h=>{d("end",h),t.setColumnSizingInfo(w=>({...w,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},m={moveHandler:h=>u(h.clientX),upHandler:h=>{document.removeEventListener("mousemove",m.moveHandler),document.removeEventListener("mouseup",m.upHandler),f(h.clientX)}},g={moveHandler:h=>(h.cancelable&&(h.preventDefault(),h.stopPropagation()),u(h.touches[0].clientX),!1),upHandler:h=>{var w;document.removeEventListener("touchmove",g.moveHandler),document.removeEventListener("touchend",g.upHandler),h.cancelable&&(h.preventDefault(),h.stopPropagation()),f((w=h.touches[0])==null?void 0:w.clientX)}},x=Bf()?{passive:!1}:!1;an(s)?(document.addEventListener("touchmove",g.moveHandler,x),document.addEventListener("touchend",g.upHandler,x)):(document.addEventListener("mousemove",m.moveHandler,x),document.addEventListener("mouseup",m.upHandler,x)),t.setColumnSizingInfo(h=>({...h,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:i,isResizingColumn:n.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?sn():(n=e.initialState.columnSizingInfo)!=null?n:sn())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,s)=>r+s.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,s)=>r+s.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,s)=>r+s.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,s)=>r+s.getSize(),0))!=null?t:0}}};let $t=null;function Bf(){if(typeof $t=="boolean")return $t;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 $t=e,$t}function an(e){return e.type==="touchstart"}const Uf={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:le("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,s;if(!t){e._queue(()=>{t=!0});return}if((r=(s=e.options.autoResetAll)!=null?s:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var s,a;e.setExpanded(r?{}:(s=(a=e.initialState)==null?void 0:a.expanded)!=null?s:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(s=>!s.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const i=a.split(".");r=Math.max(r,i.length)}),r},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(r=>{var s;const a=r===!0?!0:!!(r!=null&&r[e.id]);let i={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{i[l]=!0}):i=r,n=(s=n)!=null?s:!a,!a&&n)return{...i,[e.id]:!0};if(a&&!n){const{[e.id]:l,...c}=i;return c}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r?.[e.id])},e.getCanExpand=()=>{var n,r,s;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((s=e.subRows)!=null&&s.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},ka=(e,t,n)=>{var r;const s=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(s))};ka.autoRemove=e=>fe(e);const Pa=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};Pa.autoRemove=e=>fe(e);const Ia=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};Ia.autoRemove=e=>fe(e);const Da=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};Da.autoRemove=e=>fe(e)||!(e!=null&&e.length);const Fa=(e,t,n)=>!n.some(r=>{var s;return!((s=e.getValue(t))!=null&&s.includes(r))});Fa.autoRemove=e=>fe(e)||!(e!=null&&e.length);const za=(e,t,n)=>n.some(r=>{var s;return(s=e.getValue(t))==null?void 0:s.includes(r)});za.autoRemove=e=>fe(e)||!(e!=null&&e.length);const La=(e,t,n)=>e.getValue(t)===n;La.autoRemove=e=>fe(e);const Va=(e,t,n)=>e.getValue(t)==n;Va.autoRemove=e=>fe(e);const Qn=(e,t,n)=>{let[r,s]=n;const a=e.getValue(t);return a>=r&&a<=s};Qn.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,s=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(r)?-1/0:r,i=n===null||Number.isNaN(s)?1/0:s;if(a>i){const l=a;a=i,i=l}return[a,i]};Qn.autoRemove=e=>fe(e)||fe(e[0])&&fe(e[1]);const he={includesString:ka,includesStringSensitive:Pa,equalsString:Ia,arrIncludes:Da,arrIncludesAll:Fa,arrIncludesSome:za,equals:La,weakEquals:Va,inNumberRange:Qn};function fe(e){return e==null||e===""}const qf={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:le("columnFilters",e),onGlobalFilterChange:le("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);return typeof r=="string"?he.includesString:typeof r=="number"?he.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?he.equals:Array.isArray(r)?he.arrIncludes:he.weakEquals},e.getFilterFn=()=>{var n,r;return zt(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:he[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,s;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((s=t.options.enableFilters)!=null?s:!0)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,s,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((s=t.options.enableFilters)!=null?s:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(s=>s.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const s=e.getFilterFn(),a=r?.find(u=>u.id===e.id),i=Re(n,a?a.value:void 0);if(_r(s,i,e)){var l;return(l=r?.filter(u=>u.id!==e.id))!=null?l:[]}const c={id:e.id,value:i};if(a){var d;return(d=r?.map(u=>u.id===e.id?c:u))!=null?d:[]}return r!=null&&r.length?[...r,c]:[c]})},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()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>he.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return zt(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:he[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=s=>{var a;return(a=Re(t,s))==null?void 0:a.filter(i=>{const l=n.find(c=>c.id===i.id);if(l){const c=l.getFilterFn();if(_r(c,i.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.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()),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()}}};function _r(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Wf=(e,t,n)=>n.reduce((r,s)=>{const a=s.getValue(e);return r+(typeof a=="number"?a:0)},0),Kf=(e,t,n)=>{let r;return n.forEach(s=>{const a=s.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},Jf=(e,t,n)=>{let r;return n.forEach(s=>{const a=s.getValue(e);a!=null&&(r=a)&&(r=a)}),r},Xf=(e,t,n)=>{let r,s;return n.forEach(a=>{const i=a.getValue(e);i!=null&&(r===void 0?i>=i&&(r=s=i):(r>i&&(r=i),s{let n=0,r=0;if(t.forEach(s=>{let a=s.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},Yf=(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!Vf(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),s=n.sort((a,i)=>a-i);return n.length%2!==0?s[r]:(s[r-1]+s[r])/2},Qf=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),ep=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,tp=(e,t)=>t.length,ln={sum:Wf,min:Kf,max:Jf,extent:Xf,mean:Zf,median:Yf,unique:Qf,uniqueCount:ep,count:tp},np={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:le("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r,s,a;return(n=(r=(s=(a=e.columnDef.enableGrouping)!=null?a:!0)!=null?s:t.options.enableGrouping)!=null?r:!0)!=null?n:!!e.accessorFn},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],r=n?.getValue(e.id);if(typeof r=="number")return ln.sum;if(Object.prototype.toString.call(r)==="[object Date]")return ln.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return zt(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:ln[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.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 r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var s;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((s=n.subRows)!=null&&s.length)}}};function rp(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(i=>i.id===a)).filter(Boolean),...r]}const op={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:le("columnOrder",e)}),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=V(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>s=>{let a=[];if(!(t!=null&&t.length))a=s;else{const i=[...t],l=[...s];for(;l.length&&i.length;){const c=i.shift(),d=l.findIndex(u=>u.id===c);d>-1&&a.push(l.splice(d,1)[0])}a=[...a,...l]}return rp(a,n,r)},{key:!1})}},Rn=0,$n=10,dn=()=>({pageIndex:Rn,pageSize:$n}),sp={getInitialState:e=>({...e,pagination:{...dn(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:le("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,s;if(!t){e._queue(()=>{t=!0});return}if((r=(s=e.options.autoResetAll)!=null?s:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const s=a=>Re(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(s)},e.resetPagination=r=>{var s;e.setPagination(r?dn():(s=e.initialState.pagination)!=null?s:dn())},e.setPageIndex=r=>{e.setPagination(s=>{let a=Re(r,s.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,i)),{...s,pageIndex:a}})},e.resetPageIndex=r=>{var s,a;e.setPageIndex(r?Rn:(s=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?s:Rn)},e.resetPageSize=r=>{var s,a;e.setPageSize(r?$n:(s=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?s:$n)},e.setPageSize=r=>{e.setPagination(s=>{const a=Math.max(1,Re(r,s.pageSize)),i=s.pageSize*s.pageIndex,l=Math.floor(i/a);return{...s,pageIndex:l,pageSize:a}})},e.setPageCount=r=>e.setPagination(s=>{var a;let i=Re(r,(a=e.options.pageCount)!=null?a:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...s,pageCount:i}}),e.getPageOptions=V(()=>[e.getPageCount()],r=>{let s=[];return r&&r>0&&(s=[...new Array(r)].fill(null).map((a,i)=>i)),s},{key:!1,debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,s=e.getPageCount();return s===-1?!0:s===0?!1:re.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+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 r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},cn=()=>({left:[],right:[]}),un=()=>({top:[],bottom:[]}),ap={getInitialState:e=>({columnPinning:cn(),rowPinning:un(),...e}),getDefaultOptions:e=>({onColumnPinningChange:le("columnPinning",e),onRowPinningChange:le("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(s=>s.id).filter(Boolean);t.setColumnPinning(s=>{var a,i;if(n==="right"){var l,c;return{left:((l=s?.left)!=null?l:[]).filter(f=>!(r!=null&&r.includes(f))),right:[...((c=s?.right)!=null?c:[]).filter(f=>!(r!=null&&r.includes(f))),...r]}}if(n==="left"){var d,u;return{left:[...((d=s?.left)!=null?d:[]).filter(f=>!(r!=null&&r.includes(f))),...r],right:((u=s?.right)!=null?u:[]).filter(f=>!(r!=null&&r.includes(f)))}}return{left:((a=s?.left)!=null?a:[]).filter(f=>!(r!=null&&r.includes(f))),right:((i=s?.right)!=null?i:[]).filter(f=>!(r!=null&&r.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var s,a,i;return((s=r.columnDef.enablePinning)!=null?s:!0)&&((a=(i=t.options.enableColumnPinning)!=null?i:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(l=>l.id),{left:r,right:s}=t.getState().columnPinning,a=n.some(l=>r?.includes(l)),i=n.some(l=>s?.includes(l));return a?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,r;const s=e.getIsPinned();return s?(n=(r=t.getState().columnPinning)==null||(r=r[s])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,s)=>{const a=r?e.getLeafRows().map(c=>{let{id:d}=c;return d}):[],i=s?e.getParentRows().map(c=>{let{id:d}=c;return d}):[],l=new Set([...i,e.id,...a]);t.setRowPinning(c=>{var d,u;if(n==="bottom"){var f,m;return{top:((f=c?.top)!=null?f:[]).filter(h=>!(l!=null&&l.has(h))),bottom:[...((m=c?.bottom)!=null?m:[]).filter(h=>!(l!=null&&l.has(h))),...Array.from(l)]}}if(n==="top"){var g,x;return{top:[...((g=c?.top)!=null?g:[]).filter(h=>!(l!=null&&l.has(h))),...Array.from(l)],bottom:((x=c?.bottom)!=null?x:[]).filter(h=>!(l!=null&&l.has(h)))}}return{top:((d=c?.top)!=null?d:[]).filter(h=>!(l!=null&&l.has(h))),bottom:((u=c?.bottom)!=null?u:[]).filter(h=>!(l!=null&&l.has(h)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:s}=t.options;return typeof r=="function"?r(e):(n=r??s)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:s}=t.getState().rowPinning,a=n.some(l=>r?.includes(l)),i=n.some(l=>s?.includes(l));return a?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const s=e.getIsPinned();if(!s)return-1;const a=(n=t._getPinnedRows(s))==null?void 0:n.map(i=>{let{id:l}=i;return l});return(r=a?.indexOf(e.id))!=null?r:-1},e.getCenterVisibleCells=V(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,s)=>{const a=[...r??[],...s??[]];return n.filter(i=>!a.includes(i.column.id))},{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getLeftVisibleCells=V(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(n,r)=>(r??[]).map(a=>n.find(i=>i.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getRightVisibleCells=V(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(i=>i.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?cn():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:cn())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var s,a;return!!((s=r.left)!=null&&s.length||(a=r.right)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=V(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(s=>s.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getRightLeafColumns=V(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(s=>s.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getCenterLeafColumns=V(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const s=[...n??[],...r??[]];return t.filter(a=>!s.includes(a.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?un():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:un())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var s,a;return!!((s=r.top)!=null&&s.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=t=>V(()=>[e.getRowModel().rows,e.getState().rowPinning[t]],(n,r)=>{var s;return((s=e.options.keepPinnedRows)==null||s?(r??[]).map(i=>{const l=e.getRow(i,!0);return l.getIsAllParentsExpanded()?l:null}):(r??[]).map(i=>n.find(l=>l.id===i))).filter(Boolean).map(i=>({...i,position:t}))},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=V(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const s=new Set([...n??[],...r??[]]);return t.filter(a=>!s.has(a.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}})}},ip={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:le("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 r={...n},s=e.getPreGroupedRowModel().flatRows;return t?s.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):s.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),s={...n};return e.getRowModel().rows.forEach(a=>{Nn(s,a.id,r,!0,e)}),s}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=V(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?fn(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=V(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?fn(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=V(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?fn(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(s=>s.getCanSelect()&&!n[s.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(s=>s.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(s=>!n[s.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{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,r)=>{const s=e.getIsSelected();t.setRowSelection(a=>{var i;if(n=typeof n<"u"?n:!s,e.getCanSelect()&&s===n)return a;const l={...a};return Nn(l,e.id,n,(i=r?.selectChildren)!=null?i:!0,t),l})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return er(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return _n(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return _n(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 r=>{var s;n&&e.toggleSelected((s=r.target)==null?void 0:s.checked)}}}},Nn=(e,t,n,r,s)=>{var a;const i=s.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=i.subRows)!=null&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach(l=>Nn(e,l.id,n,r,s))};function fn(e,t){const n=e.getState().rowSelection,r=[],s={},a=function(i,l){return i.map(c=>{var d;const u=er(c,n);if(u&&(r.push(c),s[c.id]=c),(d=c.subRows)!=null&&d.length&&(c={...c,subRows:a(c.subRows)}),u)return c}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:s}}function er(e,t){var n;return(n=t[e.id])!=null?n:!1}function _n(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let s=!0,a=!1;return e.subRows.forEach(i=>{if(!(a&&!s)&&(i.getCanSelect()&&(er(i,t)?a=!0:s=!1),i.subRows&&i.subRows.length)){const l=_n(i,t);l==="all"?a=!0:(l==="some"&&(a=!0),s=!1)}}),s?"all":a?"some":!1}const An=/([0-9]+)/gm,lp=(e,t,n)=>Oa($e(e.getValue(n)).toLowerCase(),$e(t.getValue(n)).toLowerCase()),dp=(e,t,n)=>Oa($e(e.getValue(n)),$e(t.getValue(n))),cp=(e,t,n)=>tr($e(e.getValue(n)).toLowerCase(),$e(t.getValue(n)).toLowerCase()),up=(e,t,n)=>tr($e(e.getValue(n)),$e(t.getValue(n))),fp=(e,t,n)=>{const r=e.getValue(n),s=t.getValue(n);return r>s?1:rtr(e.getValue(n),t.getValue(n));function tr(e,t){return e===t?0:e>t?1:-1}function $e(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Oa(e,t){const n=e.split(An).filter(Boolean),r=t.split(An).filter(Boolean);for(;n.length&&r.length;){const s=n.shift(),a=r.shift(),i=parseInt(s,10),l=parseInt(a,10),c=[i,l].sort();if(isNaN(c[0])){if(s>a)return 1;if(a>s)return-1;continue}if(isNaN(c[1]))return isNaN(i)?-1:1;if(i>l)return 1;if(l>i)return-1}return n.length-r.length}const et={alphanumeric:lp,alphanumericCaseSensitive:dp,text:cp,textCaseSensitive:up,datetime:fp,basic:pp},gp={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:le("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const s of n){const a=s?.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return et.datetime;if(typeof a=="string"&&(r=!0,a.split(An).length>1))return et.alphanumeric}return r?et.text:et.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return zt(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:et[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const s=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(i=>{const l=i?.find(g=>g.id===e.id),c=i?.findIndex(g=>g.id===e.id);let d=[],u,f=a?n:s==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&r?l?u="toggle":u="add":i!=null&&i.length&&c!==i.length-1?u="replace":l?u="toggle":u="replace",u==="toggle"&&(a||s||(u="remove")),u==="add"){var m;d=[...i,{id:e.id,desc:f}],d.splice(0,d.length-((m=t.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else u==="toggle"?d=i.map(g=>g.id===e.id?{...g,desc:f}:g):u==="remove"?d=i.filter(g=>g.id!==e.id):d=[{id:e.id,desc:f}];return d})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,s;const a=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(s=t.options.enableMultiRemove)!=null)||s)?!1:i==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(s=>s.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(s=>s.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.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())}},mp={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:le("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;return(n=(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=V(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getVisibleCells=V(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,s)=>[...n,...r,...s],{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})},createTable:e=>{const t=(n,r)=>V(()=>[r(),r().filter(s=>s.getIsVisible()).map(s=>s.id).join("_")],s=>s.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),{key:n,debug:()=>{var s;return(s=e.options.debugAll)!=null?s:e.options.debugColumns}});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 r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((s,a)=>({...s,[a.id]:n||!(a.getCanHide!=null&&a.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 r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}},Ar=[Gf,mp,op,ap,qf,gp,np,Uf,sp,ip,Hf];function hp(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:Ar};const r=n._features.reduce((u,f)=>Object.assign(u,f.getDefaultOptions==null?void 0:f.getDefaultOptions(n)),{}),s=u=>n.options.mergeOptions?n.options.mergeOptions(r,u):{...r,...u};let i={...{},...(t=e.initialState)!=null?t:{}};n._features.forEach(u=>{var f;i=(f=u.getInitialState==null?void 0:u.getInitialState(i))!=null?f:i});const l=[];let c=!1;const d={_features:Ar,options:{...r,...e},initialState:i,_queue:u=>{l.push(u),c||(c=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();c=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{n.setState(n.initialState)},setOptions:u=>{const f=Re(u,n.options);n.options=s(f)},getState:()=>n.options.state,setState:u=>{n.options.onStateChange==null||n.options.onStateChange(u)},_getRowId:(u,f,m)=>{var g;return(g=n.options.getRowId==null?void 0:n.options.getRowId(u,f,m))!=null?g:`${m?[m.id,f].join("."):f}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(u,f)=>{const m=(f?n.getCoreRowModel():n.getRowModel()).rowsById[u];if(!m)throw new Error;return m},_getDefaultColumnDef:V(()=>[n.options.defaultColumn],u=>{var f;return u=(f=u)!=null?f:{},{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},...n._features.reduce((m,g)=>Object.assign(m,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...u}},{debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:V(()=>[n._getColumnDefs()],u=>{const f=function(m,g,x){return x===void 0&&(x=0),m.map(h=>{const w=Tf(n,h,x,g),j=h;return w.columns=j.columns?f(j.columns,w,x+1):[],w})};return f(u)},{key:!1,debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns}}),getAllFlatColumns:V(()=>[n.getAllColumns()],u=>u.flatMap(f=>f.getFlatColumns()),{key:!1,debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns}}),_getAllFlatColumnsById:V(()=>[n.getAllFlatColumns()],u=>u.reduce((f,m)=>(f[m.id]=m,f),{}),{key:!1,debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns}}),getAllLeafColumns:V(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(u,f)=>{let m=u.flatMap(g=>g.getLeafColumns());return f(m)},{key:!1,debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns}}),getColumn:u=>n._getAllFlatColumnsById()[u]};Object.assign(n,d);for(let u=0;u{var i;return(i=a.getValue())!=null?i:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:s,getContext:V(()=>[e,n,t,a],(i,l,c,d)=>({table:i,column:l,row:c,cell:d,getValue:d.getValue,renderValue:d.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(i=>{i.createCell==null||i.createCell(a,n,t,e)},{}),a}const nr=(e,t,n,r,s,a,i)=>{let l={id:t,index:r,original:n,depth:s,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:c=>{if(l._valuesCache.hasOwnProperty(c))return l._valuesCache[c];const d=e.getColumn(c);if(d!=null&&d.accessorFn)return l._valuesCache[c]=d.accessorFn(l.original,r),l._valuesCache[c]},getUniqueValues:c=>{if(l._uniqueValuesCache.hasOwnProperty(c))return l._uniqueValuesCache[c];const d=e.getColumn(c);if(d!=null&&d.accessorFn)return d.columnDef.getUniqueValues?(l._uniqueValuesCache[c]=d.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[c]):(l._uniqueValuesCache[c]=[l.getValue(c)],l._uniqueValuesCache[c])},renderValue:c=>{var d;return(d=l.getValue(c))!=null?d:e.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>Of(l.subRows,c=>c.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let c=[],d=l;for(;;){const u=d.getParentRow();if(!u)break;c.push(u),d=u}return c.reverse()},getAllCells:V(()=>[e.getAllLeafColumns()],c=>c.map(d=>xp(e,l,d,d.id)),{key:!1,debug:()=>{var c;return(c=e.options.debugAll)!=null?c:e.options.debugRows}}),_getAllCellsByColumnId:V(()=>[l.getAllCells()],c=>c.reduce((d,u)=>(d[u.column.id]=u,d),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var c;return(c=e.options.debugAll)!=null?c:e.options.debugRows}})};for(let c=0;cV(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(s,a,i){a===void 0&&(a=0);const l=[];for(let d=0;d{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function bp(e,t,n){return n.options.filterFromLeafRows?yp(e,t,n):wp(e,t,n)}function yp(e,t,n){var r;const s=[],a={},i=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,l=function(c,d){d===void 0&&(d=0);const u=[];for(let m=0;mV(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let m=0;m{var g;const x=e.getColumn(m.id);if(!x)return;const h=x.getFilterFn();h&&s.push({id:m.id,filterFn:h,resolvedValue:(g=h.resolveFilterValue==null?void 0:h.resolveFilterValue(m.value))!=null?g:m.value})});const i=n.map(m=>m.id),l=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(m=>m.getCanGlobalFilter());r&&l&&c.length&&(i.push("__global__"),c.forEach(m=>{var g;a.push({id:m.id,filterFn:l,resolvedValue:(g=l.resolveFilterValue==null?void 0:l.resolveFilterValue(r))!=null?g:r})}));let d,u;for(let m=0;m{g.columnFiltersMeta[h]=w})}if(a.length){for(let x=0;x{g.columnFiltersMeta[h]=w})){g.columnFilters.__global__=!0;break}}g.columnFilters.__global__!==!0&&(g.columnFilters.__global__=!1)}}const f=m=>{for(let g=0;g{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function jp(){return e=>V(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,s=[],a=r.filter(c=>{var d;return(d=e.getColumn(c.id))==null?void 0:d.getCanSort()}),i={};a.forEach(c=>{const d=e.getColumn(c.id);d&&(i[c.id]={sortUndefined:d.columnDef.sortUndefined,invertSorting:d.columnDef.invertSorting,sortingFn:d.getSortingFn()})});const l=c=>{const d=c.map(u=>({...u}));return d.sort((u,f)=>{for(let g=0;g{var f;s.push(u),(f=u.subRows)!=null&&f.length&&(u.subRows=l(u.subRows))}),d};return{rows:l(n.rows),flatRows:s,rowsById:n.rowsById}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function Cp(e){const t=[],n=r=>{var s;t.push(r),(s=r.subRows)!=null&&s.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Rp(e){return t=>V(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:s,pageIndex:a}=n;let{rows:i,flatRows:l,rowsById:c}=r;const d=s*a,u=d+s;i=i.slice(d,u);let f;t.options.paginateExpandedRows?f={rows:i,flatRows:l,rowsById:c}:f=Cp({rows:i,flatRows:l,rowsById:c}),f.flatRows=[];const m=g=>{f.flatRows.push(g),g.subRows.length&&g.subRows.forEach(m)};return f.rows.forEach(m),f},{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugTable}})}/** + * react-table + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Er(e,t){return e?$p(e)?p.createElement(e,t):e:null}function $p(e){return Np(e)||typeof e=="function"||_p(e)}function Np(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function _p(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Ap(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=p.useState(()=>({current:hp(t)})),[r,s]=p.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:i=>{s(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}const Ep=[{id:"m5gr84i9",amount:316,status:"success",email:"ken99@yahoo.com"},{id:"3u1reuv4",amount:242,status:"success",email:"Abe45@gmail.com"},{id:"derv1ws0",amount:837,status:"processing",email:"Monserrat44@gmail.com"},{id:"5kma53ae",amount:874,status:"success",email:"Silas22@gmail.com"},{id:"bhqecj4p",amount:721,status:"failed",email:"carmella@hotmail.com"}],Mr=[{id:"select",header:({table:e})=>o.jsx(it,{checked:e.getIsAllPageRowsSelected()||e.getIsSomePageRowsSelected()&&"indeterminate",onCheckedChange:t=>e.toggleAllPageRowsSelected(!!t),"aria-label":"Select all"}),cell:({row:e})=>o.jsx(it,{checked:e.getIsSelected(),onCheckedChange:t=>e.toggleSelected(!!t),"aria-label":"Select row"}),enableSorting:!1,enableHiding:!1},{accessorKey:"status",header:"Status",cell:({row:e})=>o.jsx("div",{className:"capitalize",children:e.getValue("status")})},{accessorKey:"email",header:({column:e})=>o.jsxs(ie,{variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:["Email",o.jsx(Ro,{className:"ml-2 h-4 w-4"})]}),cell:({row:e})=>o.jsx("div",{className:"lowercase",children:e.getValue("email")})},{accessorKey:"amount",header:()=>o.jsx("div",{className:"text-right",children:"Amount"}),cell:({row:e})=>{const t=parseFloat(e.getValue("amount")),n=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(t);return o.jsx("div",{className:"text-right font-medium",children:n})}},{id:"actions",enableHiding:!1,cell:({row:e})=>{const t=e.original;return o.jsxs(Bn,{children:[o.jsx(Un,{asChild:!0,children:o.jsxs(ie,{className:"h-8 w-8 p-0",variant:"ghost",children:[o.jsx("span",{className:"sr-only",children:"Open menu"}),o.jsx(Ai,{className:"h-4 w-4"})]})}),o.jsxs(Ut,{align:"end",children:[o.jsx(Cs,{children:"Actions"}),o.jsx(ot,{onClick:()=>navigator.clipboard.writeText(t.id),children:"Copy payment ID"}),o.jsx(Rs,{}),o.jsx(ot,{children:"View customer"}),o.jsx(ot,{children:"View payment details"})]})]})}}];function Mp(){const[e,t]=p.useState([]),[n,r]=p.useState([]),[s,a]=p.useState({}),[i,l]=p.useState({}),c=Ap({data:Ep,columns:Mr,onSortingChange:t,onColumnFiltersChange:r,getCoreRowModel:vp(),getPaginationRowModel:Rp(),getSortedRowModel:jp(),getFilteredRowModel:Sp(),onColumnVisibilityChange:a,onRowSelectionChange:l,state:{sorting:e,columnFilters:n,columnVisibility:s,rowSelection:i}});return o.jsxs("div",{className:"w-full",children:[o.jsxs("div",{className:"flex items-center py-4",children:[o.jsx(at,{className:"max-w-sm",placeholder:"Filter emails...",value:c.getColumn("email")?.getFilterValue()??"",onChange:d=>c.getColumn("email")?.setFilterValue(d.target.value)}),o.jsxs(Bn,{children:[o.jsx(Un,{asChild:!0,children:o.jsxs(ie,{className:"ml-auto",variant:"outline",children:["Columns",o.jsx(Ln,{className:"ml-2 h-4 w-4"})]})}),o.jsx(Ut,{align:"end",children:c.getAllColumns().filter(d=>d.getCanHide()).map(d=>o.jsx(js,{className:"capitalize",checked:d.getIsVisible(),onCheckedChange:u=>d.toggleVisibility(!!u),children:d.id},d.id))})]})]}),o.jsx("div",{className:"rounded-md border",children:o.jsxs(Kn,{children:[o.jsx(Jn,{children:c.getHeaderGroups().map(d=>o.jsx(Me,{children:d.headers.map(u=>o.jsx(Oe,{children:u.isPlaceholder?null:Er(u.column.columnDef.header,u.getContext())},u.id))},d.id))}),o.jsx(Xn,{children:c.getRowModel().rows?.length?c.getRowModel().rows.map(d=>o.jsx(Me,{"data-state":d.getIsSelected()&&"selected",children:d.getVisibleCells().map(u=>o.jsx(ve,{children:Er(u.column.columnDef.cell,u.getContext())},u.id))},d.id)):o.jsx(Me,{children:o.jsx(ve,{className:"h-24 text-center",colSpan:Mr.length,children:"No results."})})})]})}),o.jsxs("div",{className:"flex items-center justify-end space-x-2 py-4",children:[o.jsxs("div",{className:"flex-1 text-sm text-muted-foreground",children:[c.getFilteredSelectedRowModel().rows.length," of"," ",c.getFilteredRowModel().rows.length," row(s) selected."]}),o.jsxs("div",{className:"space-x-2",children:[o.jsx(ie,{variant:"outline",size:"sm",onClick:()=>c.previousPage(),disabled:!c.getCanPreviousPage(),children:"Previous"}),o.jsx(ie,{variant:"outline",size:"sm",onClick:()=>c.nextPage(),disabled:!c.getCanNextPage(),children:"Next"})]})]})]})}const kp=[{invoice:"INV001",paymentStatus:"Paid",totalAmount:"$250.00",paymentMethod:"Credit Card"},{invoice:"INV002",paymentStatus:"Pending",totalAmount:"$150.00",paymentMethod:"PayPal"},{invoice:"INV003",paymentStatus:"Unpaid",totalAmount:"$350.00",paymentMethod:"Bank Transfer"},{invoice:"INV004",paymentStatus:"Paid",totalAmount:"$450.00",paymentMethod:"Credit Card"},{invoice:"INV005",paymentStatus:"Paid",totalAmount:"$550.00",paymentMethod:"PayPal"},{invoice:"INV006",paymentStatus:"Pending",totalAmount:"$200.00",paymentMethod:"Bank Transfer"},{invoice:"INV007",paymentStatus:"Unpaid",totalAmount:"$300.00",paymentMethod:"Credit Card"}];function Pp(e){return o.jsxs(Kn,{...e,children:[o.jsx(Ys,{children:"A list of your recent invoices."}),o.jsx(Jn,{children:o.jsxs(Me,{children:[o.jsx(Oe,{className:"w-[100px]",children:"Invoice"}),o.jsx(Oe,{children:"Status"}),o.jsx(Oe,{children:"Method"}),o.jsx(Oe,{className:"text-right",children:"Amount"})]})}),o.jsx(Xn,{children:kp.map(t=>o.jsxs(Me,{children:[o.jsx(ve,{className:"font-medium",children:t.invoice}),o.jsx(ve,{children:t.paymentStatus}),o.jsx(ve,{children:t.paymentMethod}),o.jsx(ve,{className:"text-right",children:t.totalAmount})]},t.invoice))}),o.jsx(Zs,{className:"text-muted-foreground bg-muted",children:o.jsxs(Me,{children:[o.jsx(ve,{colSpan:3,children:"Total"}),o.jsx(ve,{className:"text-right",children:"$2,500.00"})]})})]})}function rr({maskId:e="p1loader"}={}){return o.jsxs("defs",{children:[o.jsxs("linearGradient",{id:`${e}-grad`,x1:0,y1:0,x2:1,y2:1,children:[o.jsx("stop",{offset:"0%"}),o.jsx("stop",{offset:"100%",stopColor:"#fff"})]}),o.jsx("mask",{id:`${e}`,children:o.jsx("rect",{x:"0",y:"0",width:"128",height:"128",fill:`url(#${e}-grad)`})})]})}const Ip="[--hue1:223] [--hue2:343] [--primary:hsl(var(--hue1),90%,50%)] [--secondary:hsl(var(--hue2),90%,50%)] ",kr="p1loader";function Dp({className:e,...t}){return o.jsxs("svg",{className:ee(Ip,e),viewBox:"0 0 128 128",...t,children:[o.jsx(rr,{maskId:kr}),o.jsxs("g",{className:"pl1__g",fill:"var(--primary)",children:[o.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20)",children:[o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]}),o.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20) rotate(180 44 44)",children:[o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]})]}),o.jsxs("g",{className:"pl1__g",fill:"var(--secondary)",mask:`url(#${kr})`,children:[o.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20)",children:[o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]}),o.jsxs("g",{className:"pl1__rect-g",transform:"translate(20 20) rotate(180 44 44)",children:[o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40}),o.jsx("rect",{className:"pl1__rect",rx:8,ry:8,width:40,height:40,transform:"translate(0 48)"})]})]})]})}const Fp="[--hue1:223] [--hue2:283] [--primary:hsl(var(--hue1),90%,50%)] [--secondary:hsl(var(--hue2),90%,50%)] ",Pr="p2loader";function zp({className:e,...t}){return o.jsxs("svg",{className:ee(Fp,e),viewBox:"0 0 128 128",...t,children:[o.jsx(rr,{maskId:Pr}),o.jsxs("g",{fill:"var(--primary)",children:[o.jsx("g",{className:"pl2__rect-g",children:o.jsx("rect",{className:"pl2__rect",rx:8,ry:8,y:128,width:40,height:24,transform:"rotate(180)"})}),o.jsx("g",{className:"pl2__rect-g",children:o.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:44,y:128,width:40,height:24,transform:"rotate(180)"})}),o.jsx("g",{className:"pl2__rect-g",children:o.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:88,y:128,width:40,height:24,transform:"rotate(180)"})})]}),o.jsxs("g",{fill:"var(--secondary)",mask:`url(#${Pr})`,children:[o.jsx("g",{className:"pl2__rect-g",children:o.jsx("rect",{className:"pl2__rect",rx:8,ry:8,y:128,width:40,height:24,transform:"rotate(180)"})}),o.jsx("g",{className:"pl2__rect-g",children:o.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:44,y:128,width:40,height:24,transform:"rotate(180)"})}),o.jsx("g",{className:"pl2__rect-g",children:o.jsx("rect",{className:"pl2__rect",rx:8,ry:8,x:88,y:128,width:40,height:24,transform:"rotate(180)"})})]})]})}const Lp="[--hue1:223] [--hue2:163] [--primary:hsl(var(--hue1),90%,50%)] [--secondary:hsl(var(--hue2),90%,50%)] ",Ir="p3loader";function Vp({className:e,...t}){return o.jsxs("svg",{className:ee(Lp,e),viewBox:"0 0 128 128",...t,children:[o.jsx(rr,{maskId:Ir}),o.jsxs("g",{fill:"var(--primary)",children:[o.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"}),o.jsx("g",{className:"pl3__rect-g",transform:"scale(-1)",children:o.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"})})]}),o.jsxs("g",{fill:"var(--secondary)",mask:`url(#${Ir})`,children:[o.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"}),o.jsx("g",{className:"pl3__rect-g",transform:"scale(-1)",children:o.jsx("rect",{className:"pl3__rect",rx:8,ry:8,width:64,height:64,transform:"translate(64)"})})]})]})}const Op="_content_d2oym_51",Tp="_dots_d2oym_5",Gp="_spin_d2oym_1",Hp="_control_d2oym_87",Bp="_bg_d2oym_113",Up="_ring_d2oym_185",qp="_dot_d2oym_5",Wp="_ball_d2oym_1",Z={"dots-ring":"_dots-ring_d2oym_5",content:Op,dots:Tp,spin:Gp,control:Hp,bg:Bp,ring:Up,dot:qp,"over-ring":"_over-ring_d2oym_1",ball:Wp};function Kp(){return o.jsxs("div",{className:`qw-64 qh-64 ${Z["dots-ring"]}`,children:[o.jsx("input",{className:Z.control,type:"checkbox"}),o.jsx("div",{className:Z.bg}),o.jsx("div",{className:Z.content,children:o.jsxs("div",{className:Z.dots,children:[o.jsxs("div",{className:Z.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:Z.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:Z.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:Z.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:Z.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:Z.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:Z.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:Z.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:Z.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:Z.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:Z.dot,children:[" ",o.jsx("span",{})," "]}),o.jsxs("div",{className:Z.dot,children:[" ",o.jsx("span",{})," "]}),o.jsx("div",{className:Z.ring})]})})]})}const Jp="_a_17o17_51",Xp="_b_17o17_79",Dr={a:Jp,"rotate-clock-wise":"_rotate-clock-wise_17o17_1",b:Xp,"rotate-anti-clock-wise":"_rotate-anti-clock-wise_17o17_1"};function Zp(){return o.jsx("div",{className:"p-4 text-green-950 flex items-center justify-center",children:o.jsxs("div",{className:"relative w-32 h-32 border-current border-[14px] rounded-full",children:[o.jsx("div",{className:`${Dr.a} m-1 absolute inset-0 border-current border-[8px] border-y-transparent rounded-full`}),o.jsx("div",{className:`${Dr.b} m-4 absolute inset-0 border-current border-[20px] border-x-transparent rounded-full`})]})})}function Yp({className:e,...t}){return o.jsxs("div",{className:ee("flex items-center gap-2",e),...t,children:[o.jsx(Dp,{className:"w-6 h-6 [--hue1:53] [--hue2:253]"}),o.jsx(zp,{className:"w-6 h-6 [--hue2:253]"}),o.jsx(Vp,{className:"w-6 h-6 [--hue2:153]"})]})}function Qp(){return o.jsxs("svg",{className:"switch__base-neon",viewBox:"0 0 40 24",width:"40px",height:"24px",children:[o.jsxs("defs",{children:[o.jsxs("filter",{id:"switch-glow",children:[o.jsx("feGaussianBlur",{result:"coloredBlur",stdDeviation:1}),o.jsxs("feMerge",{children:[o.jsx("feMergeNode",{in:"coloredBlur"}),o.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),o.jsxs("linearGradient",{id:"switch-gradient1",x1:0,y1:0,x2:1,y2:0,children:[o.jsx("stop",{offset:"0%",stopColor:"hsl(var(--on-hue1),90%,70%)"}),o.jsx("stop",{offset:"100%",stopColor:"hsl(var(--on-hue2),90%,70%)"})]}),o.jsxs("linearGradient",{id:"switch-gradient2",x1:"0.7",y1:0,x2:"0.3",y2:1,children:[o.jsx("stop",{offset:"25%",stopColor:"hsla(var(--on-hue1),90%,70%,0)"}),o.jsx("stop",{offset:"50%",stopColor:"hsla(var(--on-hue1),90%,70%,0.3)"}),o.jsx("stop",{offset:"100%",stopColor:"hsla(var(--on-hue2),90%,70%,0.3)"})]})]}),o.jsx("path",{fill:"none",filter:"url(#switch-glow)",stroke:"url(#switch-gradient1)",strokeWidth:1,strokeDasharray:"0 104.26 0",strokeDashoffset:"0.01",strokeLinecap:"round",d:"m.5,12C.5,5.649,5.649.5,12,.5h16c6.351,0,11.5,5.149,11.5,11.5s-5.149,11.5-11.5,11.5H12C5.649,23.5.5,18.351.5,12Z"})]})}function eg(){return o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"switch__knob-shadow"}),o.jsx("span",{className:"switch__knob-container",children:o.jsx("span",{className:"switch__knob",children:o.jsx("svg",{className:"switch__knob-neon",viewBox:"0 0 48 48",width:"48px",height:"48px",children:o.jsx("circle",{fill:"none",stroke:"url(#switch-gradient2)",strokeDasharray:"0 90.32 0 54.19",strokeLinecap:"round",strokeWidth:1,r:23,cx:24,cy:24,transform:"rotate(-112.5,24,24)"})})})})]})}const tg="[--hue:223] [--off-hue:3] [--on-hue1:123] [--on-hue2:168] [--primary:hsl(var(--hue),90%,50%)] [--trans-dur:0.2s] [--trans-timing:cubic-bezier(0.65,0,0.35,1)] ";function ng(e){return o.jsxs("label",{className:ee(tg,"switch"),children:[o.jsx("input",{className:"switch__input",type:"checkbox",role:"switch",...e}),o.jsx("span",{className:"switch__base-outer"}),o.jsx("span",{className:"switch__base-inner"}),o.jsx(Qp,{}),o.jsx(eg,{}),o.jsx("span",{className:"switch__led"}),o.jsx("span",{className:"switch__text",children:"Power"})]})}function Fr({className:e,...t}){return o.jsxs("div",{className:ee("toggle-wrapper",e),children:[o.jsx("input",{className:"toggle-checkbox",type:"checkbox",...t}),o.jsx("svg",{className:"toggle-icon off",viewBox:"0 0 16 16",children:o.jsx("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8Z"})}),o.jsx("div",{className:"toggle-container",children:o.jsx("div",{className:"toggle-button"})}),o.jsx("svg",{className:"toggle-icon on",viewBox:"0 0 16 16",children:o.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 1 1 16 0zM2 8a6 6 0 1 0 12 0A6 6 0 1 0 2 8zm10 0a4 4 0 1 1-8 0 4 4 0 1 1 8 0z"})})]})}function rg(){return o.jsxs("div",{className:"flex flex-col space-y-2 text-3xl",children:[o.jsx(Fr,{}),o.jsx(Fr,{defaultChecked:!0})]})}const og="_container_1xrdi_1",qe={container:og,"sticky-header-row":"_sticky-header-row_1xrdi_47","sticky-first-column":"_sticky-first-column_1xrdi_73","sticky-header-and-first-column":"_sticky-header-and-first-column_1xrdi_99"};function sg(){return o.jsx(o.Fragment,{children:o.jsxs("section",{className:`${qe["sticky-header-row"]}`,children:[o.jsx("h2",{children:"Sticky Header"}),o.jsx("div",{className:`${qe.container}`,children:o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{scope:"col",children:"ID"}),o.jsx("th",{scope:"col",children:"Name"}),o.jsx("th",{scope:"col",children:"Email"}),o.jsx("th",{scope:"col",children:"Role"}),o.jsx("th",{scope:"col",children:"Country"})]})}),o.jsxs("tbody",{children:[o.jsxs("tr",{children:[o.jsx("td",{children:"1"}),o.jsx("td",{children:"John Doe"}),o.jsx("td",{children:"john@example.com"}),o.jsx("td",{children:"Developer"}),o.jsx("td",{children:"USA"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"2"}),o.jsx("td",{children:"Jane Smith"}),o.jsx("td",{children:"jane@example.com"}),o.jsx("td",{children:"Manager"}),o.jsx("td",{children:"Canada"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"3"}),o.jsx("td",{children:"Bob Johnson"}),o.jsx("td",{children:"bob@example.com"}),o.jsx("td",{children:"Designer"}),o.jsx("td",{children:"UK"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"4"}),o.jsx("td",{children:"Alice Brown"}),o.jsx("td",{children:"alice@example.com"}),o.jsx("td",{children:"Analyst"}),o.jsx("td",{children:"Australia"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"5"}),o.jsx("td",{children:"Mike Wilson"}),o.jsx("td",{children:"mike@example.com"}),o.jsx("td",{children:"Engineer"}),o.jsx("td",{children:"Germany"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"6"}),o.jsx("td",{children:"Sara Davis"}),o.jsx("td",{children:"sara@example.com"}),o.jsx("td",{children:"Consultant"}),o.jsx("td",{children:"France"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"7"}),o.jsx("td",{children:"David Lee"}),o.jsx("td",{children:"david@example.com"}),o.jsx("td",{children:"Coordinator"}),o.jsx("td",{children:"Japan"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"8"}),o.jsx("td",{children:"Linda Chen"}),o.jsx("td",{children:"linda@example.com"}),o.jsx("td",{children:"Tester"}),o.jsx("td",{children:"China"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"9"}),o.jsx("td",{children:"Ryan Miller"}),o.jsx("td",{children:"ryan@example.com"}),o.jsx("td",{children:"Architect"}),o.jsx("td",{children:"Brazil"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"10"}),o.jsx("td",{children:"Emily White"}),o.jsx("td",{children:"emily@example.com"}),o.jsx("td",{children:"Administrator"}),o.jsx("td",{children:"India"})]})]})]})})]})})}function ag(){return o.jsx(o.Fragment,{children:o.jsxs("section",{className:`${qe["sticky-first-column"]}`,children:[o.jsx("h2",{children:"Sticky First Column"}),o.jsx("div",{className:`${qe.container}`,children:o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{scope:"col",children:"ID"}),o.jsx("th",{scope:"col",children:"Name"}),o.jsx("th",{scope:"col",children:"Email"}),o.jsx("th",{scope:"col",children:"Role"}),o.jsx("th",{scope:"col",children:"Country"})]})}),o.jsxs("tbody",{children:[o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"1"}),o.jsx("td",{children:"John Doe"}),o.jsx("td",{children:"john@example.com"}),o.jsx("td",{children:"Developer"}),o.jsx("td",{children:"USA"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"2"}),o.jsx("td",{children:"Jane Smith"}),o.jsx("td",{children:"jane@example.com"}),o.jsx("td",{children:"Manager"}),o.jsx("td",{children:"Canada"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"3"}),o.jsx("td",{children:"Bob Johnson"}),o.jsx("td",{children:"bob@example.com"}),o.jsx("td",{children:"Designer"}),o.jsx("td",{children:"UK"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"4"}),o.jsx("td",{children:"Alice Brown"}),o.jsx("td",{children:"alice@example.com"}),o.jsx("td",{children:"Analyst"}),o.jsx("td",{children:"Australia"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"5"}),o.jsx("td",{children:"Mike Wilson"}),o.jsx("td",{children:"mike@example.com"}),o.jsx("td",{children:"Engineer"}),o.jsx("td",{children:"Germany"})]})]})]})})]})})}function ig(){return o.jsx(o.Fragment,{children:o.jsxs("section",{className:`${qe["sticky-header-and-first-column"]}`,children:[o.jsx("h2",{children:"Sticky Header and First Column"}),o.jsx("div",{className:`${qe.container}`,children:o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{scope:"col",children:"ID"}),o.jsx("th",{scope:"col",children:"Name"}),o.jsx("th",{scope:"col",children:"Email"}),o.jsx("th",{scope:"col",children:"Role"}),o.jsx("th",{scope:"col",children:"Country"})]})}),o.jsxs("tbody",{children:[o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"1"}),o.jsx("td",{children:"John Doe"}),o.jsx("td",{children:"john@example.com"}),o.jsx("td",{children:"Developer"}),o.jsx("td",{children:"USA"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"2"}),o.jsx("td",{children:"Jane Smith"}),o.jsx("td",{children:"jane@example.com"}),o.jsx("td",{children:"Manager"}),o.jsx("td",{children:"Canada"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"3"}),o.jsx("td",{children:"Bob Johnson"}),o.jsx("td",{children:"bob@example.com"}),o.jsx("td",{children:"Designer"}),o.jsx("td",{children:"UK"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"4"}),o.jsx("td",{children:"Alice Brown"}),o.jsx("td",{children:"alice@example.com"}),o.jsx("td",{children:"Analyst"}),o.jsx("td",{children:"Australia"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"5"}),o.jsx("td",{children:"Mike Wilson"}),o.jsx("td",{children:"mike@example.com"}),o.jsx("td",{children:"Engineer"}),o.jsx("td",{children:"Germany"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"6"}),o.jsx("td",{children:"Sara Davis"}),o.jsx("td",{children:"sara@example.com"}),o.jsx("td",{children:"Consultant"}),o.jsx("td",{children:"France"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"7"}),o.jsx("td",{children:"David Lee"}),o.jsx("td",{children:"david@example.com"}),o.jsx("td",{children:"Coordinator"}),o.jsx("td",{children:"Japan"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"8"}),o.jsx("td",{children:"Linda Chen"}),o.jsx("td",{children:"linda@example.com"}),o.jsx("td",{children:"Tester"}),o.jsx("td",{children:"China"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"9"}),o.jsx("td",{children:"Ryan Miller"}),o.jsx("td",{children:"ryan@example.com"}),o.jsx("td",{children:"Architect"}),o.jsx("td",{children:"Brazil"})]}),o.jsxs("tr",{children:[o.jsx("th",{scope:"row",children:"10"}),o.jsx("td",{children:"Emily White"}),o.jsx("td",{children:"emily@example.com"}),o.jsx("td",{children:"Administrator"}),o.jsx("td",{children:"India"})]})]})]})})]})})}function lg(){return o.jsxs("div",{className:"text-xs flex flex-col space-y-4",children:[o.jsx(sg,{}),o.jsx(ag,{}),o.jsx(ig,{})]})}function dg(){return o.jsxs(qt,{defaultValue:"table1",children:[o.jsxs(mt,{children:[o.jsx(te,{value:"table1",children:"Simple table"}),o.jsx(te,{value:"table2",children:"Data table"}),o.jsx(te,{value:"table3",children:"Sticky headers table"})]}),o.jsx(ne,{value:"table1",children:o.jsx(Pp,{className:"m-auto max-w-sm"})}),o.jsx(ne,{value:"table2",children:o.jsx(Mp,{})}),o.jsx(ne,{value:"table3",children:o.jsx(lg,{})})]})}function cg(){return o.jsxs("div",{className:"flex items-center space-x-4",children:[o.jsx(en,{className:"h-12 w-12 rounded-full"}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(en,{className:"h-4 w-[250px]"}),o.jsx(en,{className:"h-4 w-[200px]"})]})]})}function ug(){return o.jsxs(qt,{defaultValue:"loaders1",children:[o.jsxs(mt,{children:[o.jsx(te,{value:"loaders1",children:"Loaders"}),o.jsx(te,{value:"loaders2",children:"Circle loader"}),o.jsx(te,{value:"loaders3",children:"Radial"}),o.jsx(te,{value:"loaders4",children:"Skeleton"})]}),o.jsx(ne,{value:"loaders1",children:o.jsx(Yp,{className:"m-auto max-w-sm flex items-center justify-between"})}),o.jsx(ne,{value:"loaders2",children:o.jsx(Kp,{})}),o.jsx(ne,{value:"loaders3",children:o.jsx(Zp,{})}),o.jsx(ne,{value:"loaders4",children:o.jsx(cg,{})})]})}const fg=["#e2e2e2","#ff75c3","#ffa647","#ffe83f","#9fff5b","#70e2ff","#cd93ff","#09203f"];function pg({background:e,setBackground:t}){return o.jsx(ne,{value:"solid",className:"mt-0 flex flex-wrap gap-1",children:fg.map(n=>o.jsx("div",{style:{background:n},className:"h-6 w-6 cursor-pointer rounded-md active:scale-105",onClick:()=>t(n)},n))})}const Ta=({background:e,children:t})=>o.jsx("div",{className:"relative rounded-md !bg-cover !bg-center p-0.5 transition-all",style:{background:e},children:o.jsx("div",{className:"rounded-md bg-popover/80 p-1 text-center text-xs",children:t})}),gg=["linear-gradient(to bottom right,#accbee,#e7f0fd)","linear-gradient(to bottom right,#d5d4d0,#d5d4d0,#eeeeec)","linear-gradient(to bottom right,#000000,#434343)","linear-gradient(to bottom right,#09203f,#537895)","linear-gradient(to bottom right,#ac32e4,#7918f2,#4801FF)","linear-gradient(to bottom right,#f953c6,#b91d73)","linear-gradient(to bottom right,#ee0979,#ff6a00)","linear-gradient(to bottom right,#f00000,#dc281e)","linear-gradient(to bottom right,#00c6ff,#0072ff)","linear-gradient(to bottom right,#4facfe,#00f2fe)","linear-gradient(to bottom right,#0ba360,#3cba92)","linear-gradient(to bottom right,#fdfc47,#24fe41)","linear-gradient(to bottom right,#8a2be2,#0000cd,#228b22,#ccff00)","linear-gradient(to bottom right,#40e0d0,#ff8c00,#ff0080)","linear-gradient(to bottom right,#fcc5e4,#fda34b,#ff7882,#c8699e,#7046aa,#0c1db8,#020f75)","linear-gradient(to bottom right,#ff75c3,#ffa647,#ffe83f,#9fff5b,#70e2ff,#cd93ff)"];function mg({background:e,setBackground:t}){return o.jsxs(ne,{value:"gradient",className:"mt-0",children:[o.jsx("div",{className:"mb-2 flex flex-wrap gap-1",children:gg.map(n=>o.jsx("div",{style:{background:n},className:"h-6 w-6 cursor-pointer rounded-md active:scale-105",onClick:()=>t(n)},n))}),o.jsxs(Ta,{background:e,children:["💡 Get more at"," ",o.jsx("a",{href:"https://gradient.page/css/ui-gradients",className:"font-bold hover:underline",target:"_blank",children:"GradientPage"})]})]})}const hg=""+new URL("1_beautiful-blue-001-2259aa6a.jpg",import.meta.url).href,xg=""+new URL("2_pretty-in-pink-005-2359f332.jpg",import.meta.url).href,vg=""+new URL("3_vibrant-vista-004-b9ffc36d.jpg",import.meta.url).href,bg=""+new URL("4_deep-dusk-003-f4610ac8.jpg",import.meta.url).href,yg=[`url(${hg})`,`url(${xg})`,`url(${vg})`,`url(${bg})`];function wg({background:e,setBackground:t}){return o.jsxs(ne,{value:"image",className:"mt-0",children:[o.jsx("div",{className:"mb-2 grid grid-cols-2 gap-1",children:yg.map(n=>o.jsx("div",{style:{backgroundImage:n},className:"h-12 w-full cursor-pointer rounded-md bg-cover bg-center active:scale-105",onClick:()=>t(n)},n))}),o.jsxs(Ta,{background:e,children:["🔓 Get more"," ",o.jsx("a",{href:"https://gradient.page/wallpapers",className:"font-bold hover:underline",target:"_blank",children:"wallpapers"}),o.jsx("br",{}),o.jsxs("div",{className:"text-[10px]",children:["App dev? Refer ",o.jsx("a",{href:"https://gradient.page/affiliate",className:"font-bold hover:underline",target:"_blank",children:"GradientPage"}),", get 80%"]})]})]})}function Sg({background:e,className:t}){return o.jsx(xd,{asChild:!0,children:o.jsx(ie,{variant:"outline",className:S("w-[220px] justify-start text-left font-normal",!e&&"text-muted-foreground",t),children:o.jsxs("div",{className:"flex w-full items-center gap-2",children:[e?o.jsx("div",{className:"h-4 w-4 rounded !bg-cover !bg-center transition-all",style:{background:e}}):o.jsx(fc,{className:"h-4 w-4"}),o.jsx("div",{className:"flex-1 truncate",children:e||"Pick a color"})]})})})}function jg({background:e,setBackground:t,className:n}){const r=p.useMemo(()=>e.includes("url")?"image":e.includes("gradient")?"gradient":"solid",[e]);return o.jsxs(hd,{children:[o.jsx(Sg,{className:n,background:e}),o.jsxs(As,{className:"w-64",children:[o.jsxs(qt,{defaultValue:r,className:"w-full",children:[o.jsxs(mt,{className:"mb-4 w-full",children:[o.jsx(te,{className:"flex-1",value:"solid",children:"Solid"}),o.jsx(te,{className:"flex-1",value:"gradient",children:"Gradient"}),o.jsx(te,{className:"flex-1",value:"image",children:"Image"})]}),o.jsx(pg,{background:e,setBackground:t}),o.jsx(mg,{background:e,setBackground:t}),o.jsx(wg,{background:e,setBackground:t})]}),o.jsx(at,{id:"custom",value:e,className:"col-span-2 mt-4 h-8",onChange:s=>t(s.currentTarget.value)})]})]})}const Cg="linear-gradient(to bottom right,#ff75c3,#ffa647,#ffe83f,#9fff5b,#70e2ff,#cd93ff)";function Rg(){const[e,t]=p.useState(Cg);return o.jsx("div",{className:"preview flex items-center justify-center rounded !bg-cover !bg-center p-10 transition-all",style:{background:e},children:o.jsx(jg,{background:e,setBackground:t})})}function $g(){return o.jsxs(qt,{defaultValue:"switch1",children:[o.jsxs(mt,{children:[o.jsx(te,{value:"switch1",children:"Neon switch"}),o.jsx(te,{value:"switch2",children:"Styled switch"}),o.jsx(te,{value:"switch3",children:"Gradient color picker"})]}),o.jsx(ne,{value:"switch1",children:o.jsx(ng,{})}),o.jsx(ne,{value:"switch2",children:o.jsx(rg,{})}),o.jsx(ne,{value:"switch3",children:o.jsx(Rg,{})})]})}const Ng=[{id:"1",name:"Unread"},{id:"2",name:"Threads"},{id:"3",name:"Chat Rooms",children:[{id:"3.1",name:"General"},{id:"3.2",name:"Random"},{id:"3.3",name:"Open Source Projects"}]},{id:"4",name:"Direct Messages",children:[{id:"4.1",name:"Alice",children:[{id:"4.1.1",name:"Alice2",icon:gr},{id:"4.1.2",name:"Bob2"},{id:"4.1.3",name:"Charlie2"}]},{id:"4.2",name:"Bob",icon:gr},{id:"4.3",name:"Charlie"}]},{id:"5",name:"Direct Messages",children:[{id:"5.1",name:"Alice",children:[{id:"5.1.1",name:"Alice2"},{id:"5.1.2",name:"Bob2"},{id:"5.1.3",name:"Charlie2"}]},{id:"5.2",name:"Bob"},{id:"5.3",name:"Charlie"}]},{id:"6",name:"Direct Messages",children:[{id:"6.1",name:"Alice",children:[{id:"6.1.1",name:"Alice2"},{id:"6.1.2",name:"Bob2"},{id:"6.1.3",name:"Charlie2"}]},{id:"6.2",name:"Bob"},{id:"6.3",name:"Charlie"}]}],En="focus:ring-primary-600 dark:focus:ring-primary-400 focus:ring-offset-primary-200 dark:focus:ring-offset-primary-800 focus:ring-1 focus:ring-offset-1 focus:outline-none";const Ga={display:"flex",flex:"1"},_g=(e,t)=>{const n={...Ga};return e?n.minHeight=n.maxHeight=t+"%":n.minWidth=n.maxWidth=t+"%",n},Ag={...Ga,minWidth:0,minHeight:0};function Eg(e){const{vertical:t=!0,min:n=0,max:r=100,className:s,children:a,position:i,setPosition:l,onResize:c}=e,d=Ee.useRef(null),u=Ee.useCallback(m=>{if(!d.current)return;m.preventDefault();const{current:g}=d,x=g.getBoundingClientRect(),h=t?window.scrollY+x.y:window.scrollX+x.x,w=t?g.offsetHeight:g.offsetWidth,j=I=>{I.preventDefault();const D=((t?I.pageY:I.pageX)-h)/w*100,F=+fl(pl(D,n,r));l(F)},M=()=>{document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",M),c?.()};document.addEventListener("mousemove",j),document.addEventListener("mouseup",M)},[d,t]);let f=Ee.Children.toArray(a);return f.length<2?o.jsx("div",{className:s,style:{display:"flex"},children:f}):o.jsxs("div",{ref:d,className:s,style:{display:"flex",flexDirection:t?"column":"row"},children:[o.jsx("div",{style:_g(t,i),children:f[0]}),o.jsx("div",{className:ee("splitpane-divider",t?"vertical":"horizontal"),onMouseDown:u}),o.jsx("div",{style:Ag,children:f[1]})]})}const Mg="d09GMgABAAAAAADcAAoAAAAAAggAAACWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk4ALAoUNAE2AiQDCAsGAAQgBSAHIBtvAcieB3aD8wURQ+TZazbRE9HvF5vde4KCYGhiCgq/NKPF0i6UIsZynbP+Xi9Ng+XLbNlmNz/xIBBqq61FIQRJhC/+QA/08PJQJ3sK5TZFMlWzC/iK5GUN40psgqvxwBjBOg6JUSJ7ewyKE2AAaXZrfUB4v+hze37ugJ9d+DeYqiDwVgCawviwVFGnuttkLqIMGivmDg",kg=`data:application/font-woff2;base64,${Mg}`,kt=ht({text:kg}),Nt=ht({fontText:kt.text,xmlText:"",glyphs:[]});function Pg(){const e=/^\s*data:(?[\w\/\+-]*);?(?(?:charset=[\w-]+)?);?(?base64?),(?[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%]*)\s*$/i;t();function t(){Nt.dataUri=e.exec(kt.text)?.groups}Wt(kt,()=>{Nt.fontText=kt.text,t(),Nt.isUrl=!1,Nt.dataUri})}Pg();let Ig=0;function Ha(e,t){const n=`atom${++Ig}`,r={toString:()=>n};return typeof e=="function"?r.read=e:(r.init=e,r.read=s=>s(r),r.write=(s,a,i)=>a(r,typeof i=="function"?i(s(r)):i)),t&&(r.write=t),r}const zr=e=>"init"in e,Lr=e=>!!e.write,Lt=new WeakMap,Dg=(e,t)=>{Lt.set(e,t),e.catch(()=>{}).finally(()=>Lt.delete(e))},Vr=(e,t)=>{const n=Lt.get(e);n&&(Lt.delete(e),n(t))},Or=(e,t)=>{e.status="fulfilled",e.value=t},Tr=(e,t)=>{e.status="rejected",e.reason=t},Fg=e=>typeof e?.then=="function",_t=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),Gr=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),tt=e=>"v"in e&&e.v instanceof Promise,zg=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,At=e=>{if("e"in e)throw e.e;return e.v},Lg=()=>{const e=new WeakMap,t=new WeakMap,n=new Map;let r,s;const a=b=>e.get(b),i=(b,R)=>{const y=e.get(b);if(e.set(b,R),n.has(b)||n.set(b,y),y&&tt(y)){const v="v"in R?R.v instanceof Promise?R.v:Promise.resolve(R.v):Promise.reject(R.e);y.v!==v&&Vr(y.v,v)}},l=(b,R,y)=>{const v=new Map;let C=!1;y.forEach((A,E)=>{!A&&E===b&&(A=R),A&&(v.set(E,A),R.d.get(E)!==A&&(C=!0))}),(C||R.d.size!==v.size)&&(R.d=v)},c=(b,R,y)=>{const v=a(b),C={d:v?.d||new Map,v:R};if(y&&l(b,C,y),v&&_t(v,C)&&v.d===C.d)return v;if(v&&tt(v)&&tt(C)&&zg(v,C)){if(v.d===C.d)return v;C.v=v.v}return i(b,C),C},d=(b,R,y,v)=>{if(Fg(R)){let C;const A=new Promise((E,L)=>{let T=!1;R.then(O=>{if(!T){T=!0;const H=a(b),$=c(b,A,y);Or(A,O),E(O),t.has(b)&&H?.d!==$.d&&F(b,$,H?.d)}},O=>{if(!T){T=!0;const H=a(b),$=c(b,A,y);Tr(A,O),L(O),t.has(b)&&H?.d!==$.d&&F(b,$,H?.d)}}),C=O=>{T||(T=!0,O.then(H=>Or(A,H),H=>Tr(A,H)),E(O))}});return A.orig=R,A.status="pending",Dg(A,E=>{E&&C(E),v?.()}),c(b,A,y)}return c(b,R,y)},u=(b,R,y)=>{const v=a(b),C={d:v?.d||new Map,e:R};return y&&l(b,C,y),v&&Gr(v,C)&&v.d===C.d?v:(i(b,C),C)},f=(b,R)=>{const y=a(b);if(!R&&y&&(t.has(b)||Array.from(y.d).every(([O,H])=>O===b||f(O)===H)))return y;const v=new Map;let C=!0;const A=O=>{if(O===b){const $=a(O);if($)return v.set(O,$),At($);if(zr(O))return v.set(O,void 0),O.init;throw new Error("no atom init")}const H=f(O);return v.set(O,H),At(H)};let E,L;const T={get signal(){return E||(E=new AbortController),E.signal},get setSelf(){return!L&&Lr(b)&&(L=(...O)=>{if(!C)return M(b,...O)}),L}};try{const O=b.read(A,T);return d(b,O,v,()=>E?.abort())}catch(O){return u(b,O,v)}finally{C=!1}},m=b=>At(f(b)),g=b=>{let R=t.get(b);return R||(R=I(b)),R},x=(b,R)=>!R.l.size&&(!R.t.size||R.t.size===1&&R.t.has(b)),h=b=>{const R=t.get(b);R&&x(b,R)&&D(b)},w=b=>{const R=new Map,y=new WeakMap,v=E=>{var L;const T=new Set((L=t.get(E))==null?void 0:L.t);return n.forEach((O,H)=>{var $;($=a(H))!=null&&$.d.has(E)&&T.add(H)}),T},C=E=>{v(E).forEach(L=>{L!==E&&(R.set(L,(R.get(L)||new Set).add(E)),y.set(L,(y.get(L)||0)+1),C(L))})};C(b);const A=E=>{v(E).forEach(L=>{var T;if(L!==E){let O=y.get(L);if(O&&y.set(L,--O),!O){let H=!!((T=R.get(L))!=null&&T.size);if(H){const $=a(L),_=f(L,!0);H=!$||!_t($,_)}H||R.forEach($=>$.delete(L))}A(L)}})};A(b)},j=(b,...R)=>{let y=!0;const v=E=>At(f(E)),C=(E,...L)=>{let T;if(E===b){if(!zr(E))throw new Error("atom not writable");const O=a(E),H=d(E,L[0]);(!O||!_t(O,H))&&w(E)}else T=j(E,...L);if(!y){const O=q()}return T},A=b.write(v,C,...R);return y=!1,A},M=(b,...R)=>{const y=j(b,...R),v=q();return y},I=(b,R,y)=>{var v;const C=y||[];(v=a(b))==null||v.d.forEach((E,L)=>{const T=t.get(L);T?T.t.add(b):L!==b&&I(L,b,C)}),f(b);const A={t:new Set(R&&[R]),l:new Set};if(t.set(b,A),Lr(b)&&b.onMount){const{onMount:E}=b;C.push(()=>{const L=E((...T)=>M(b,...T));L&&(A.u=L)})}return y||C.forEach(E=>E()),A},D=b=>{var R;const y=(R=t.get(b))==null?void 0:R.u;y&&y(),t.delete(b);const v=a(b);v&&(tt(v)&&Vr(v.v),v.d.forEach((C,A)=>{if(A!==b){const E=t.get(A);E&&(E.t.delete(b),x(A,E)&&D(A))}}))},F=(b,R,y)=>{const v=new Set(R.d.keys());y?.forEach((C,A)=>{if(v.has(A)){v.delete(A);return}const E=t.get(A);E&&(E.t.delete(b),x(A,E)&&D(A))}),v.forEach(C=>{const A=t.get(C);A?A.t.add(b):t.has(b)&&I(C,b)})},q=()=>{let b;for(;n.size;){const R=Array.from(n);n.clear(),R.forEach(([y,v])=>{const C=a(y);if(C){const A=t.get(y);A&&C.d!==v?.d&&F(y,C,v?.d),A&&!(v&&!tt(v)&&(_t(v,C)||Gr(v,C)))&&A.l.forEach(E=>E())}})}};return{get:m,set:M,sub:(b,R)=>{const y=g(b),v=q(),C=y.l;return C.add(R),()=>{C.delete(R),h(b)}}}};let pn;const Vg=()=>(pn||(pn=Lg()),pn),Og=p.createContext(void 0),Ba=e=>{const t=p.useContext(Og);return e?.store||t||Vg()},Tg=e=>typeof e?.then=="function",Gg=Ee.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function Hg(e,t){const n=Ba(t),[[r,s,a],i]=p.useReducer(d=>{const u=n.get(e);return Object.is(d[0],u)&&d[1]===n&&d[2]===e?d:[u,n,e]},void 0,()=>[n.get(e),n,e]);let l=r;(s!==n||a!==e)&&(i(),l=n.get(e));const c=t?.delay;return p.useEffect(()=>{const d=n.sub(e,()=>{if(typeof c=="number"){setTimeout(i,c);return}i()});return i(),d},[n,e,c]),p.useDebugValue(l),Tg(l)?Gg(l):l}function Hr(e,t){const n=Ba(t);return p.useCallback((...s)=>n.set(e,...s),[n,e])}function Bg({doDroppedFilesAtom:e,activeAtom:t}){const n=Hr(t),r=Hr(e),s=p.useRef(0);return p.useEffect(()=>{function a(){s.current++||n(!0)}function i(u){u.preventDefault()}function l(){--s.current||n(!1)}function c(u){u.preventDefault(),s.current=0,n(!1),u.dataTransfer&&r(u.dataTransfer.files)}const d=document.addEventListener;return d("dragenter",a),d("dragover",i),d("dragleave",l),d("drop",c),()=>{const u=document.removeEventListener;u("dragenter",a),u("dragover",i),u("dragleave",l),u("drop",c)}},[]),null}function Ug(){const[e]=p.useState(Ha(!1)),t=Hg(e);return Bg({doDroppedFilesAtom:Vm,activeAtom:e}),o.jsx(o.Fragment,{children:t&&o.jsx("div",{className:"absolute inset-0 grid place-items-center text-5xl font-bold text-slate-50 bg-slate-800/90 z-10",children:"Drop it!"})})}let qg={data:""},Wg=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||qg,Kg=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Jg=/\/\*[^]*?\*\/| +/g,Br=/\n+/g,Ce=(e,t)=>{let n="",r="",s="";for(let a in e){let i=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+i+";":r+=a[1]=="f"?Ce(i,a):a+"{"+Ce(i,a[1]=="k"?"":t)+"}":typeof i=="object"?r+=Ce(i,t?t.replace(/([^,])+/g,l=>a.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,l):l?l+" "+c:c)):a):i!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=Ce.p?Ce.p(a,i):a+":"+i+";")}return n+(t&&s?t+"{"+s+"}":s)+r},xe={},Ua=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Ua(e[n]);return t}return e},Xg=(e,t,n,r,s)=>{let a=Ua(e),i=xe[a]||(xe[a]=(c=>{let d=0,u=11;for(;d>>0;return"go"+u})(a));if(!xe[i]){let c=a!==e?e:(d=>{let u,f,m=[{}];for(;u=Kg.exec(d.replace(Jg,""));)u[4]?m.shift():u[3]?(f=u[3].replace(Br," ").trim(),m.unshift(m[0][f]=m[0][f]||{})):m[0][u[1]]=u[2].replace(Br," ").trim();return m[0]})(e);xe[i]=Ce(s?{["@keyframes "+i]:c}:c,n?"":"."+i)}let l=n&&xe.g?xe.g:null;return n&&(xe.g=xe[i]),((c,d,u,f)=>{f?d.data=d.data.replace(f,c):d.data.indexOf(c)===-1&&(d.data=u?c+d.data:d.data+c)})(xe[i],t,r,l),i},Zg=(e,t,n)=>e.reduce((r,s,a)=>{let i=t[a];if(i&&i.call){let l=i(n),c=l&&l.props&&l.props.className||/^go/.test(l)&&l;i=c?"."+c:l&&typeof l=="object"?l.props?"":Ce(l,""):l===!1?"":l}return r+s+(i??"")},"");function Xt(e){let t=this||{},n=e.call?e(t.p):e;return Xg(n.unshift?n.raw?Zg(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,Wg(t.target),t.g,t.o,t.k)}let qa,Mn,kn;Xt.bind({g:1});let be=Xt.bind({k:1});function Yg(e,t,n,r){Ce.p=t,qa=e,Mn=n,kn=r}function Ne(e,t){let n=this||{};return function(){let r=arguments;function s(a,i){let l=Object.assign({},a),c=l.className||s.className;n.p=Object.assign({theme:Mn&&Mn()},l),n.o=/ *go\d+/.test(c),l.className=Xt.apply(n,r)+(c?" "+c:""),t&&(l.ref=i);let d=e;return e[0]&&(d=l.as||e,delete l.as),kn&&d[0]&&kn(l),qa(d,l)}return t?t(s):s}}var Qg=e=>typeof e=="function",Vt=(e,t)=>Qg(e)?e(t):e,em=(()=>{let e=0;return()=>(++e).toString()})(),Wa=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),tm=20,Pt=new Map,nm=1e3,Ur=e=>{if(Pt.has(e))return;let t=setTimeout(()=>{Pt.delete(e),De({type:4,toastId:e})},nm);Pt.set(e,t)},rm=e=>{let t=Pt.get(e);t&&clearTimeout(t)},Pn=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,tm)};case 1:return t.toast.id&&rm(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:n}=t;return e.toasts.find(a=>a.id===n.id)?Pn(e,{type:1,toast:n}):Pn(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Ur(r):e.toasts.forEach(a=>{Ur(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===r||r===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+s}))}}},It=[],Dt={toasts:[],pausedAt:void 0},De=e=>{Dt=Pn(Dt,e),It.forEach(t=>{t(Dt)})},om={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},sm=(e={})=>{let[t,n]=p.useState(Dt);p.useEffect(()=>(It.push(n),()=>{let s=It.indexOf(n);s>-1&&It.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var a,i;return{...e,...e[s.type],...s,duration:s.duration||((a=e[s.type])==null?void 0:a.duration)||e?.duration||om[s.type],style:{...e.style,...(i=e[s.type])==null?void 0:i.style,...s.style}}});return{...t,toasts:r}},am=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:n?.id||em()}),vt=e=>(t,n)=>{let r=am(t,e,n);return De({type:2,toast:r}),r.id},ae=(e,t)=>vt("blank")(e,t);ae.error=vt("error");ae.success=vt("success");ae.loading=vt("loading");ae.custom=vt("custom");ae.dismiss=e=>{De({type:3,toastId:e})};ae.remove=e=>De({type:4,toastId:e});ae.promise=(e,t,n)=>{let r=ae.loading(t.loading,{...n,...n?.loading});return e.then(s=>(ae.success(Vt(t.success,s),{id:r,...n,...n?.success}),s)).catch(s=>{ae.error(Vt(t.error,s),{id:r,...n,...n?.error})}),e};var im=(e,t)=>{De({type:1,toast:{id:e,height:t}})},lm=()=>{De({type:5,time:Date.now()})},dm=e=>{let{toasts:t,pausedAt:n}=sm(e);p.useEffect(()=>{if(n)return;let a=Date.now(),i=t.map(l=>{if(l.duration===1/0)return;let c=(l.duration||0)+l.pauseDuration-(a-l.createdAt);if(c<0){l.visible&&ae.dismiss(l.id);return}return setTimeout(()=>ae.dismiss(l.id),c)});return()=>{i.forEach(l=>l&&clearTimeout(l))}},[t,n]);let r=p.useCallback(()=>{n&&De({type:6,time:Date.now()})},[n]),s=p.useCallback((a,i)=>{let{reverseOrder:l=!1,gutter:c=8,defaultPosition:d}=i||{},u=t.filter(g=>(g.position||d)===(a.position||d)&&g.height),f=u.findIndex(g=>g.id===a.id),m=u.filter((g,x)=>xg.visible).slice(...l?[m+1]:[0,m]).reduce((g,x)=>g+(x.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:im,startPause:lm,endPause:r,calculateOffset:s}}},cm=be` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,um=be` +from { + transform: scale(0); + opacity: 0; +} +to { + transform: scale(1); + opacity: 1; +}`,fm=be` +from { + transform: scale(0) rotate(90deg); + opacity: 0; +} +to { + transform: scale(1) rotate(90deg); + opacity: 1; +}`,pm=Ne("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#ff4b4b"}; + position: relative; + transform: rotate(45deg); + + animation: ${cm} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + + &:after, + &:before { + content: ''; + animation: ${um} 0.15s ease-out forwards; + animation-delay: 150ms; + position: absolute; + border-radius: 3px; + opacity: 0; + background: ${e=>e.secondary||"#fff"}; + bottom: 9px; + left: 4px; + height: 2px; + width: 12px; + } + + &:before { + animation: ${fm} 0.15s ease-out forwards; + animation-delay: 180ms; + transform: rotate(90deg); + } +`,gm=be` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,mm=Ne("div")` + width: 12px; + height: 12px; + box-sizing: border-box; + border: 2px solid; + border-radius: 100%; + border-color: ${e=>e.secondary||"#e0e0e0"}; + border-right-color: ${e=>e.primary||"#616161"}; + animation: ${gm} 1s linear infinite; +`,hm=be` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,xm=be` +0% { + height: 0; + width: 0; + opacity: 0; +} +40% { + height: 0; + width: 6px; + opacity: 1; +} +100% { + opacity: 1; + height: 10px; +}`,vm=Ne("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#61d345"}; + position: relative; + transform: rotate(45deg); + + animation: ${hm} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + &:after { + content: ''; + box-sizing: border-box; + animation: ${xm} 0.2s ease-out forwards; + opacity: 0; + animation-delay: 200ms; + position: absolute; + border-right: 2px solid; + border-bottom: 2px solid; + border-color: ${e=>e.secondary||"#fff"}; + bottom: 6px; + left: 6px; + height: 10px; + width: 6px; + } +`,bm=Ne("div")` + position: absolute; +`,ym=Ne("div")` + position: relative; + display: flex; + justify-content: center; + align-items: center; + min-width: 20px; + min-height: 20px; +`,wm=be` +from { + transform: scale(0.6); + opacity: 0.4; +} +to { + transform: scale(1); + opacity: 1; +}`,Sm=Ne("div")` + position: relative; + transform: scale(0.6); + opacity: 0.4; + min-width: 20px; + animation: ${wm} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; +`,jm=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?p.createElement(Sm,null,t):t:n==="blank"?null:p.createElement(ym,null,p.createElement(mm,{...r}),n!=="loading"&&p.createElement(bm,null,n==="error"?p.createElement(pm,{...r}):p.createElement(vm,{...r})))},Cm=e=>` +0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} +100% {transform: translate3d(0,0,0) scale(1); opacity:1;} +`,Rm=e=>` +0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} +100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} +`,$m="0%{opacity:0;} 100%{opacity:1;}",Nm="0%{opacity:1;} 100%{opacity:0;}",_m=Ne("div")` + display: flex; + align-items: center; + background: #fff; + color: #363636; + line-height: 1.3; + will-change: transform; + box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); + max-width: 350px; + pointer-events: auto; + padding: 8px 10px; + border-radius: 8px; +`,Am=Ne("div")` + display: flex; + justify-content: center; + margin: 4px 10px; + color: inherit; + flex: 1 1 auto; + white-space: pre-line; +`,Em=(e,t)=>{let n=e.includes("top")?1:-1,[r,s]=Wa()?[$m,Nm]:[Cm(n),Rm(n)];return{animation:t?`${be(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${be(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Mm=p.memo(({toast:e,position:t,style:n,children:r})=>{let s=e.height?Em(e.position||t||"top-center",e.visible):{opacity:0},a=p.createElement(jm,{toast:e}),i=p.createElement(Am,{...e.ariaProps},Vt(e.message,e));return p.createElement(_m,{className:e.className,style:{...s,...n,...e.style}},typeof r=="function"?r({icon:a,message:i}):p.createElement(p.Fragment,null,a,i))});Yg(p.createElement);var km=({id:e,className:t,style:n,onHeightUpdate:r,children:s})=>{let a=p.useCallback(i=>{if(i){let l=()=>{let c=i.getBoundingClientRect().height;r(e,c)};l(),new MutationObserver(l).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return p.createElement("div",{ref:a,className:t,style:n},s)},Pm=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Wa()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...s}},Im=Xt` + z-index: 9999; + > * { + pointer-events: auto; + } +`,Et=16,Dm=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:a,containerClassName:i})=>{let{toasts:l,handlers:c}=dm(n);return p.createElement("div",{style:{position:"fixed",zIndex:9999,top:Et,left:Et,right:Et,bottom:Et,pointerEvents:"none",...a},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map(d=>{let u=d.position||t,f=c.calculateOffset(d,{reverseOrder:e,gutter:r,defaultPosition:t}),m=Pm(u,f);return p.createElement(km,{id:d.id,key:d.id,onHeightUpdate:c.updateHeight,className:d.visible?Im:"",style:m},d.type==="custom"?Vt(d.message,d):s?s(d):p.createElement(Mm,{toast:d,position:u}))}))};function Fm(){return o.jsx("div",{className:"toaser",children:o.jsx(Dm,{position:"bottom-right",reverseOrder:!1,gutter:8,containerClassName:"",containerStyle:{},toastOptions:{className:"",duration:5e3,style:{background:"#363636",color:"#fff"},success:{duration:3e3,iconTheme:{primary:"green",secondary:"black"}}}})})}const zm=(e,t)=>ae(e,{style:{backgroundColor:"red"},...t});p.forwardRef(({children:e,className:t,...n},r)=>o.jsx("button",{ref:r,className:ee("bg-primary border-primary-foreground border rounded select-none",En,t),...n,children:e}));function Lm(e=""){return/[.]/.exec(e)&&/([^.]+$)/.exec(e)?.[0]||""}const Vm=Ha(null,async(e,t,n)=>{try{if(n.length!==1)throw new Error("Only one file can be dropped");if(Lm(n[0].name)!=="woff2")throw new Error(`Dropped file "${n[0].name}". +Only .woff2 files are supported`);const s=await gl(n[0],{asArrayBuffer:!1});console.log("files",n),console.log("blob",s)}catch(r){zm(r?.message||"Failed to load image")}});function Om(e){const{splitterPos:t}=xt(Y.treeState),n=p.useCallback(ul(r=>Y.treeState.splitterPos=r,50),[]);return o.jsx(Eg,{position:t,setPosition:n,...e})}const qr="6.1.2";function Tm(e){const t=Qs(e);return yn(t,n=>n.state=ht({selected:!1})),t}const Wr=Tm(Ng);function Ka(){const[e,t]=p.useState(()=>Te(Wr,qr)?.name||"No content selected"),{arrowFirst:n,hideFolderIcon:r}=xt(Y.treeState),s=p.useMemo(()=>o.jsx(ef,{data:Wr,className:`w-full h-full border rounded-l-md ${En}`,initialSelectedItemId:qr,onSelectChange:a=>t(a?.name??""),IconForFolder:uc,IconForItem:ic,arrowFirst:n,hideFolderIcon:r}),[n,r]);return o.jsxs("div",{className:"mr-12 p-0.5 w-full h-full",children:[o.jsxs(Om,{vertical:!1,className:"splitpane h-full",children:[o.jsx("div",{className:"w-full",children:s}),o.jsx("div",{className:ee("flex-1 w-full h-full min-w-0 border border-l rounded-r-md z-10",En),tabIndex:0,children:o.jsx("div",{className:"min-w-0 overflow-hidden",children:o.jsx("div",{className:"px-2 py-1",children:e})})})]}),o.jsxs("div",{className:"mt-2 text-sm text-muted-foreground",children:[o.jsxs("label",{className:"flex items-center",children:[o.jsx(it,{className:"mr-2",checked:n,onCheckedChange:()=>Y.treeState.arrowFirst=!Y.treeState.arrowFirst}),"Icons first"]}),o.jsxs("label",{className:"flex items-center",children:[o.jsx(it,{className:"mr-2",checked:r,onCheckedChange:()=>Y.treeState.hideFolderIcon=!Y.treeState.hideFolderIcon}),"Hide folder icons"]})]})]})}function Gm(){return o.jsxs(Rr,{direction:"horizontal",className:"w-full _max-w-md rounded-lg border",children:[o.jsx(jt,{defaultSize:50,children:o.jsx("div",{className:"p-6 h-[200px] flex items-center justify-center",children:o.jsx("span",{className:"font-semibold",children:"One"})})}),o.jsx($r,{withHandle:!0}),o.jsx(jt,{defaultSize:50,children:o.jsxs(Rr,{direction:"vertical",children:[o.jsx(jt,{defaultSize:25,children:o.jsx("div",{className:"p-6 h-full flex items-center justify-center",children:o.jsx("span",{className:"font-semibold",children:"Two"})})}),o.jsx($r,{}),o.jsx(jt,{defaultSize:75,children:o.jsx("div",{className:"p-6 h-full flex items-center justify-center",children:o.jsx("span",{className:"font-semibold",children:"Three"})})})]})})]})}function Hm({cases:e,initialCase:t}){return o.jsx(Vc,{className:"w-full",type:"single",collapsible:!0,defaultValue:t,children:e.map(n=>o.jsxs(Bs,{className:"border-b-0",value:n.id,children:[o.jsx(Us,{children:n.name}),o.jsx(qs,{className:"pt-4 border-t border-b",children:n.component})]},n.id))})}const Bm=[{id:"10",name:"Tables",component:o.jsx(dg,{})},{id:"20",name:"Loaders",component:o.jsx(ug,{})},{id:"30",name:"Switches",component:o.jsx($g,{})},{id:"41",name:"Tree",component:o.jsx(Ka,{})},{id:"51",name:"Resizable",component:o.jsx(Gm,{})}],Um="51";function qm(){return o.jsx("div",{className:"",children:o.jsx(zf,{})})}const Ja="bg-muted/30 border-muted-foreground/30 border-t border-b";function Wm(){return o.jsxs("div",{className:`p-4 flex flex-col space-y-4 ${Ja}`,children:[o.jsx("div",{className:"border-muted border-b",children:o.jsx(qm,{})}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(ie,{variant:"outline",children:"OK"}),o.jsx(Lf,{})]})]})}function Km(){return o.jsxs("div",{className:`px-4 py-2 ${Ja}`,children:[o.jsx("div",{className:"mb-1",children:"Fixed height non-scrollable area"}),o.jsx("div",{className:"h-[160px] overflow-hidden",children:o.jsx(Ka,{})})]})}function Jm(){return o.jsxs("div",{className:"min-h-0 grid grid-rows-[auto,1fr,auto]",children:[o.jsx(Wm,{}),o.jsx(Wn,{className:"flex-1 p-4 min-w-0 overflow-hidden","data-fixed-width":!0,children:o.jsx(Hm,{cases:Bm,initialCase:Um})}),o.jsx(Km,{})]})}function Xm(){return o.jsx("div",{className:"py-4 bg-primary-500/20"})}function Zm(){return o.jsxs(o.Fragment,{children:[o.jsx(Fm,{}),o.jsxs("div",{className:"h-screen grid grid-rows-[auto,1fr,auto]",children:[o.jsx(Mf,{}),o.jsx(Jm,{}),o.jsx(Xm,{})]}),o.jsx(Ug,{})]})}gn.createRoot(document.getElementById("root")).render(o.jsx(Ee.StrictMode,{children:o.jsx(Zm,{})})); diff --git a/assets/index-d76a6584.css b/assets/index-d76a6584.css new file mode 100644 index 0000000..343a5a1 --- /dev/null +++ b/assets/index-d76a6584.css @@ -0,0 +1 @@ +.pl1__g,.pl1__rect{animation:pl1-a 1.5s cubic-bezier(.65,0,.35,1) infinite}.pl1__g{transform-origin:64px 64px}.pl1__rect:first-child{animation-name:pl1-b}.pl1__rect:nth-child(2){animation-name:pl1-c}@keyframes pl1-b{0%{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:40px}20%{animation-timing-function:steps(1,start);width:40px;height:0}60%{animation-timing-function:cubic-bezier(.65,0,.35,1);width:0;height:40px}80%,to{width:40px;height:40px}}@keyframes pl1-c{0%{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:40px;transform:translateY(48px)}20%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:40px;height:88px;transform:translate(0)}40%{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:40px;transform:translate(0)}60%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:88px;height:40px;transform:translate(0)}80%,to{width:40px;height:40px;transform:translate(48px)}}.pl2__rect,.pl2__rect-g{animation:pl1-a 1.5s cubic-bezier(.65,0,.35,1) infinite;animation-name:pl2-a}.pl2__rect{animation-name:pl2-b}.pl2__rect-g .pl2__rect{transform-origin:20px 128px}.pl2__rect-g:first-child,.pl2__rect-g:first-child .pl2__rect{animation-delay:-.25s}.pl2__rect-g:nth-child(2),.pl2__rect-g:nth-child(2) .pl2__rect{animation-delay:-.125s}.pl2__rect-g:nth-child(2) .pl2__rect{transform-origin:64px 128px}.pl2__rect-g:nth-child(3) .pl2__rect{transform-origin:108px 128px}@keyframes pl2-a{0%,25%,66.67%,to{transform:translateY(0)}50%{animation-timing-function:cubic-bezier(.33,0,.67,0);transform:translateY(-80px)}}@keyframes pl2-b{0%,to{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:24px;transform:rotate(180deg) translate(0)}33.33%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:20px;height:64px;transform:rotate(180deg) translate(10px)}66.67%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:28px;height:44px;transform:rotate(180deg) translate(6px)}}.pl3__rect{animation:pl1-a 1.5s cubic-bezier(.65,0,.35,1) infinite;animation-name:pl3}.pl3__rect-g{transform-origin:64px 64px}@keyframes pl1-a{0%{transform:rotate(0)}80%,to{animation-timing-function:steps(1,start);transform:rotate(90deg)}}@keyframes pl3{0%{transform:translate(64px);width:64px;height:64px}25%{transform:translate(0);width:128px;height:32px}50%{transform:translate(0);width:64px;height:64px}75%{transform:translate(0);width:32px;height:128px}to{transform:translateY(64px);width:64px;height:64px}}._dots-ring_d2oym_5{--w: #fafafa;--b: #141414;--s: 1s;--d: calc(var(--s) / 6);--dot-size: 1vmin;position:relative}._content_d2oym_51,._dots_d2oym_5{display:flex;align-items:center;justify-content:center}._content_d2oym_51{width:50vmin;height:50vmin;background:#f000;animation:_spin_d2oym_1 8s linear 0s infinite}._control_d2oym_87{position:absolute;inset:0;opacity:0;cursor:pointer;z-index:4}._control_d2oym_87:checked~div{filter:invert(1)}._control_d2oym_87:checked+._bg_d2oym_113:before{content:"CLICK TO DARK"}._bg_d2oym_113{position:absolute;background:var(--b);z-index:-2;inset:0}._bg_d2oym_113:before{content:"CLICK TO LIGHT";position:absolute;top:100px;left:0;color:var(--w);font-family:Arial,Helvetica,serif;font-size:12px;text-shadow:0 0 1px var(--w);opacity:.25}._ring_d2oym_185{width:64%;height:64%;border:1.5vmin solid var(--w);border-radius:100%;box-shadow:0 0 0 1vmin var(--b),0 0 0 1vmin var(--b) inset;animation:_spin_d2oym_1 8s linear 0s infinite reverse;z-index:0}._dots_d2oym_5{background:#0ff0;width:100%;height:100%;position:relative}._dot_d2oym_5{position:absolute;left:0;width:50%;height:7vmin;background:#f000;transform-origin:100% 50%;z-index:-1;animation:_over-ring_d2oym_1 calc(var(--s) * 2) linear 0s infinite}._dot_d2oym_5 span{position:absolute;left:0;width:5.5vmin;height:5.5vmin;background:var(--w);border:1vmin solid var(--b);border-radius:100%;animation:_ball_d2oym_1 var(--s) ease-in-out 0s infinite alternate}._dot_d2oym_5:nth-child(1){transform:rotate(-30deg);animation-delay:calc(var(--d) * 0)}._dot_d2oym_5:nth-child(1) span{animation-delay:calc(var(--d) * 0)}._dot_d2oym_5:nth-child(2){transform:rotate(-60deg);animation-delay:calc(var(--d) * -1)}._dot_d2oym_5:nth-child(2) span{animation-delay:calc(var(--d) * -1)}._dot_d2oym_5:nth-child(3){transform:rotate(-90deg);animation-delay:calc(var(--d) * -2)}._dot_d2oym_5:nth-child(3) span{animation-delay:calc(var(--d) * -2)}._dot_d2oym_5:nth-child(4){transform:rotate(-120deg);animation-delay:calc(var(--d) * -3)}._dot_d2oym_5:nth-child(4) span{animation-delay:calc(var(--d) * -3)}._dot_d2oym_5:nth-child(5){transform:rotate(-150deg);animation-delay:calc(var(--d) * -4)}._dot_d2oym_5:nth-child(5) span{animation-delay:calc(var(--d) * -4)}._dot_d2oym_5:nth-child(6){transform:rotate(-180deg);animation-delay:calc(var(--d) * -5)}._dot_d2oym_5:nth-child(6) span{animation-delay:calc(var(--d) * -5)}._dot_d2oym_5:nth-child(7){transform:rotate(-210deg);animation-delay:calc(var(--d) * -6)}._dot_d2oym_5:nth-child(7) span{animation-delay:calc(var(--d) * -6)}._dot_d2oym_5:nth-child(8){transform:rotate(-240deg);animation-delay:calc(var(--d) * -7)}._dot_d2oym_5:nth-child(8) span{animation-delay:calc(var(--d) * -7)}._dot_d2oym_5:nth-child(9){transform:rotate(-270deg);animation-delay:calc(var(--d) * -8)}._dot_d2oym_5:nth-child(9) span{animation-delay:calc(var(--d) * -8)}._dot_d2oym_5:nth-child(10){transform:rotate(-300deg);animation-delay:calc(var(--d) * -9)}._dot_d2oym_5:nth-child(10) span{animation-delay:calc(var(--d) * -9)}._dot_d2oym_5:nth-child(11){transform:rotate(-330deg);animation-delay:calc(var(--d) * -10)}._dot_d2oym_5:nth-child(11) span{animation-delay:calc(var(--d) * -10)}._dot_d2oym_5:nth-child(12){transform:rotate(-360deg);animation-delay:calc(var(--d) * -11)}._dot_d2oym_5:nth-child(12) span{animation-delay:calc(var(--d) * -11)}@keyframes _spin_d2oym_1{to{transform:rotate(-360deg)}}@keyframes _ball_d2oym_1{to{left:calc(var(--dot-size) * 12);width:calc(var(--dot-size) * 4);height:calc(var(--dot-size) * 4)}}@keyframes _over-ring_d2oym_1{0%,50%{z-index:-1}51%,to{z-index:1}}._a_17o17_51{animation:_rotate-clock-wise_17o17_1 3s infinite linear}@keyframes _rotate-clock-wise_17o17_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._b_17o17_79{animation:_rotate-anti-clock-wise_17o17_1 .9s infinite linear}@keyframes _rotate-anti-clock-wise_17o17_1{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.switch,.switch__input{-webkit-tap-highlight-color:#0000}.switch{margin:auto;position:relative;width:5em;height:3em;display:block}.switch__base-outer,.switch__base-inner{position:absolute;display:block}.switch__base-outer{left:.125em;top:.125em;width:4.75em;height:2.75em;border-radius:1.25em;box-shadow:-.125em -.125em .25em hsl(var(--hue),10%,30%),.125em .125em .125em hsl(var(--hue),10%,30%) inset,.125em .125em .25em #000,-.125em -.125em .125em hsl(var(--hue),10%,5%) inset}.switch__base-inner{left:.375em;top:.375em;width:4.25em;height:2.25em;border-radius:1.125em;box-shadow:-.25em -.25em .25em hsl(var(--hue),10%,30%) inset,.0625em .0625em .125em hsla(var(--hue),10%,30%),.125em .25em .25em hsl(var(--hue),10%,5%) inset,-.0625em -.0625em .125em hsla(var(--hue),10%,5%)}.switch__base-neon{position:absolute;left:0;top:0;width:100%;height:auto;display:block;overflow:visible}.switch__base-neon path{stroke-dasharray:0 104.26 0;transition:stroke-dasharray var(--trans-dur) var(--trans-timing)}.switch__input{position:relative;width:100%;height:100%;outline:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.switch__input:before{content:"";position:absolute;inset:-.125em;display:block;border-radius:.125em;box-shadow:0 0 0 .125em hsla(var(--hue),90%,50%,0);transition:box-shadow .15s linear}.switch__input:focus-visible:before{box-shadow:0 0 0 .125em var(--primary)}.switch__knob,.switch__knob-container{display:block;position:absolute;border-radius:1em}.switch__knob{width:2em;height:2em;background-color:hsl(var(--hue),10%,15%);background-image:radial-gradient(88% 88% at 50% 50%,hsl(var(--hue),10%,20%) 47%,hsla(var(--hue),10%,20%,0) 50%),radial-gradient(88% 88% at 47% 47%,hsl(var(--hue),10%,85%) 45%,hsla(var(--hue),10%,85%,0) 50%),radial-gradient(65% 70% at 40% 60%,hsl(var(--hue),10%,20%) 46%,hsla(var(--hue),10%,20%,0) 50%);box-shadow:-.0625em -.0625em .0625em hsl(var(--hue),10%,15%) inset,-.125em -.125em .0625em hsl(var(--hue),10%,5%) inset,.75em .25em .125em #000c;transition:transform var(--trans-dur) var(--trans-timing)}.switch__knob-container{left:.5em;top:.5em;width:4em;height:2em;overflow:hidden}.switch__knob-neon{display:block;width:2em;height:auto}.switch__knob-neon circle{opacity:0;stroke-dasharray:0 90.32 0 54.19;transition:opacity var(--trans-dur) steps(1,end),stroke-dasharray var(--trans-dur) var(--trans-timing)}.switch__knob-shadow{position:absolute;left:.5em;top:.5em;width:2em;height:2em;display:block;border-radius:50%;box-shadow:.125em .125em .125em #000000e6;transition:transform var(--trans-dur) var(--trans-timing)}.switch__led{position:absolute;left:0;top:0;width:.25em;height:.25em;display:block;background-color:hsl(var(--off-hue),90%,70%);border-radius:50%;box-shadow:0 -.0625em .0625em hsl(var(--off-hue),90%,40%) inset,0 0 .125em hsla(var(--off-hue),90%,70%,.3),0 0 .125em hsla(var(--off-hue),90%,70%,.3),.125em .125em .125em #00000080;transition:background-color var(--trans-dur) var(--trans-timing),box-shadow var(--trans-dur) var(--trans-timing)}.switch__text{position:absolute;width:1px;height:1px;overflow:hidden}.switch__input:checked~.switch__led{background-color:hsl(var(--on-hue1),90%,70%);box-shadow:0 -.0625em .0625em hsl(var(--on-hue1),90%,40%) inset,0 -.125em .125em hsla(var(--on-hue1),90%,70%,.3),0 .125em .125em hsla(var(--on-hue1),90%,70%,.3),.125em .125em .125em #00000080}.switch__input:checked~.switch__base-neon path{stroke-dasharray:52.13 0 52.13}.switch__input:checked~.switch__knob-shadow,.switch__input:checked~.switch__knob-container .switch__knob{transform:translate(100%)}.switch__input:checked~.switch__knob-container .switch__knob-neon circle{opacity:1;stroke-dasharray:45.16 0 45.16 54.19;transition-timing-function:steps(1,start),var(--trans-timing)}.toggle-wrapper{position:relative;display:flex;justify-content:center;align-items:center;-moz-column-gap:.25em;column-gap:.25em}.toggle-icon{width:.5em;height:.5em;fill:#4c9bab;filter:drop-shadow(0 1px 1px rgba(255,255,255,.4));transition:fill .4s}.toggle-checkbox:not(:checked)+.toggle-icon.off,.toggle-checkbox:checked~.toggle-icon.on{fill:#e0f9fc}.toggle-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;z-index:1;border-radius:3.125em;width:4.05em;height:100%;opacity:0;cursor:pointer}.toggle-container{position:relative;border-radius:3.125em;width:4.05em;height:1.5em;background-image:repeating-conic-gradient(#0b66a0 0% 25%,#1093a8 0% 50%);background-size:.125em .125em;box-shadow:inset 0 .125em .25em #00092699,inset -1.5em 0 .0625em #00092680,inset .5em 0 .5em #00092680,0 1px 1px #fff6}.toggle-button{display:flex;justify-content:center;align-items:center;position:absolute;top:.0625em;left:.0625em;border-radius:inherit;width:2.55em;height:calc(100% - .125em);background-image:linear-gradient(to right,#86e2fa,#125e79);box-shadow:0 .125em .25em #0009;transition:left .4s}.toggle-checkbox:checked~.toggle-container>.toggle-button{left:1.4375em}.toggle-button:before{content:"";position:absolute;top:inherit;border-radius:inherit;width:calc(100% - .375em);height:inherit;background-image:linear-gradient(to right,#0f73a8,#57cfe2,#b3f0ff)}.toggle-button:after{content:"";position:absolute;width:.5em;height:38%;background-image:repeating-linear-gradient(to right,#d2f2f6 0 .0625em,#4ea0ae .0625em .125em,transparent .125em .1875em)}._container_1xrdi_1 table{border-spacing:0;--sticky-cell-border-color: #545d9e}._container_1xrdi_1 th,._container_1xrdi_1 td{border:1px solid #2e3252;padding:8px;text-align:left}._container_1xrdi_1 th{background-color:#272a3f}._container_1xrdi_1 td{background-color:#212335;color:#bdbddb}._sticky-header-row_1xrdi_47 ._container_1xrdi_1{width:-moz-fit-content;width:fit-content;height:300px;overflow:auto}._sticky-header-row_1xrdi_47 th[scope=col]{position:sticky;top:0;border-bottom-color:var(--sticky-cell-border-color)}._sticky-first-column_1xrdi_73 ._container_1xrdi_1{width:300px;overflow:auto}._sticky-first-column_1xrdi_73 th[scope=col]:first-child,._sticky-first-column_1xrdi_73 th[scope=row]{position:sticky;left:0;border-right-color:var(--sticky-cell-border-color)}._sticky-header-and-first-column_1xrdi_99 ._container_1xrdi_1{width:400px;height:400px;overflow:auto}._sticky-header-and-first-column_1xrdi_99 th[scope=col]{position:sticky;top:0;border-bottom-color:var(--sticky-cell-border-color)}._sticky-header-and-first-column_1xrdi_99 th[scope=row]{position:sticky;left:0;border-right-color:var(--sticky-cell-border-color)}._sticky-header-and-first-column_1xrdi_99 th[scope=col]:first-child{left:0;z-index:1;border-right-color:var(--sticky-cell-border-color);border-bottom-color:var(--sticky-cell-border-color)}._container_1xrdi_1::-webkit-scrollbar{width:6px;height:6px}._container_1xrdi_1::-webkit-scrollbar-track{background:black}._container_1xrdi_1::-webkit-scrollbar-thumb{background-color:#9f9ec7;border-radius:10px}._container_1xrdi_1::-webkit-scrollbar-thumb:hover{background-color:#8988aa}.splitpane-content,.splitpane{flex:1;min-height:0;min-width:0}.splitpane-divider{flex-shrink:0;z-index:1000;transition:background-color .1s ease .4s}.splitpane-divider.horizontal{width:3px}.splitpane-divider.vertical{height:3px}.splitpane-divider:hover{background-color:#2e8fff;cursor:ew-resize}.splitpane-divider.vertical:hover{cursor:ns-resize}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 47.4% 11.2%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--card: 0 0% 100%;--card-foreground: 222.2 47.4% 11.2%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 100% 50%;--destructive-foreground: 210 40% 98%;--ring: 215 20.2% 65.1%;--radius: .5rem}.dark{--background: 224 71% 4%;--foreground: 213 31% 91%;--muted: 223 47% 11%;--muted-foreground: 215.4 16.3% 56.9%;--accent: 216 34% 17%;--accent-foreground: 210 40% 98%;--popover: 224 71% 4%;--popover-foreground: 215 20.2% 65.1%;--border: 216 34% 17%;--input: 216 34% 17%;--card: 224 71% 4%;--card-foreground: 213 31% 91%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 1.2%;--secondary: 222.2 47.4% 11.2%;--secondary-foreground: 210 40% 98%;--destructive: 0 63% 31%;--destructive-foreground: 210 40% 98%;--ring: 216 34% 17%;--radius: .5rem}*{border-color:hsl(var(--border))}html,body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.left-1{left:.25rem}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.col-start-2{grid-column-start:2}.m-1{margin:.25rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-12{margin-right:3rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.\!table{display:table!important}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[160px\]{height:160px}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[20px\]{height:20px}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[300px\]{max-height:300px}.max-h-screen{max-height:100vh}.min-h-0{min-height:0px}.min-h-\[60px\]{min-height:60px}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[280px\]{width:280px}.w-\[36px\]{width:36px}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\[12rem\]{min-width:12rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[16px\,1fr\]{grid-template-columns:16px 1fr}.grid-rows-\[auto\,1fr\,auto\]{grid-template-rows:auto 1fr auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.self-end{align-self:flex-end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-\[14px\]{border-width:14px}.border-\[20px\]{border-width:20px}.border-\[8px\]{border-width:8px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-current{border-color:currentColor}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-input{border-color:hsl(var(--input))}.border-muted{border-color:hsl(var(--muted))}.border-muted-foreground{border-color:hsl(var(--muted-foreground))}.border-muted-foreground\/30{border-color:hsl(var(--muted-foreground) / .3)}.border-primary{border-color:hsl(var(--primary))}.border-primary-400{--tw-border-opacity: 1;border-color:rgb(161 161 170 / var(--tw-border-opacity))}.border-primary-foreground{border-color:hsl(var(--primary-foreground))}.border-primary\/50{border-color:hsl(var(--primary) / .5)}.border-transparent{border-color:transparent}.border-x-transparent{border-left-color:transparent;border-right-color:transparent}.border-y-transparent{border-top-color:transparent;border-bottom-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:hsl(var(--accent))}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-popover{background-color:hsl(var(--popover))}.bg-popover\/80{background-color:hsl(var(--popover) / .8)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.bg-primary-500\/20{background-color:#71717a33}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-800\/90{background-color:#1e293be6}.bg-transparent{background-color:transparent}.\!bg-cover{background-size:cover!important}.bg-cover{background-size:cover}.\!bg-center{background-position:center!important}.bg-center{background-position:center}.fill-current{fill:currentColor}.fill-none{fill:none}.fill-primary{fill:hsl(var(--primary))}.fill-slate-600{fill:#475569}.stroke-current{stroke:currentColor}.stroke-none{stroke:none}.stroke-\[1\.5\]{stroke-width:1.5}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-5xl{font-size:3rem;line-height:1}.text-\[0\.8rem\]{font-size:.8rem}.text-\[10px\]{font-size:10px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extralight{font-weight:200}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-accent-foreground\/50{color:hsl(var(--accent-foreground) / .5)}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground) / .5)}.text-green-950{--tw-text-opacity: 1;color:rgb(5 46 22 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.resizer::-webkit-resizer{background-color:transparent;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsSAAALEgHS3X78AAAAIGNIUk0AAG11AABzoAAA9q8AAIWZAABumgAA57sAADF9AAAXvQF2CngAAABESURBVHjajM67DQAgDENBw6x0WZDtHi3KR4klF5ausAAVvf8u0TGjgwFlMEUeepR+DCj72CJAC9AkW8OM4QMAAP//AwD5ltVB1vqf0gAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:bottom right;background-size:95% 95%}.\[--bg\:hsl\(var\(--hue1\)\,90\%\,90\%\)\]{--bg: hsl(var(--hue1),90%,90%)}.\[--fg\:hsl\(var\(--hue1\)\,90\%\,10\%\)\]{--fg: hsl(var(--hue1),90%,10%)}.\[--hue1\:223\]{--hue1: 223}.\[--hue1\:53\]{--hue1: 53}.\[--hue2\:153\]{--hue2: 153}.\[--hue2\:163\]{--hue2: 163}.\[--hue2\:253\]{--hue2: 253}.\[--hue2\:283\]{--hue2: 283}.\[--hue2\:343\]{--hue2: 343}.\[--hue\:223\]{--hue: 223}.\[--off-hue\:3\]{--off-hue: 3}.\[--on-hue1\:123\]{--on-hue1: 123}.\[--on-hue2\:168\]{--on-hue2: 168}.\[--primary\:hsl\(var\(--hue\)\,90\%\,50\%\)\]{--primary: hsl(var(--hue),90%,50%)}.\[--primary\:hsl\(var\(--hue1\)\,90\%\,50\%\)\]{--primary: hsl(var(--hue1),90%,50%)}.\[--secondary\:hsl\(var\(--hue2\)\,90\%\,50\%\)\]{--secondary: hsl(var(--hue2),90%,50%)}.\[--trans-dur\:0\.2s\]{--trans-dur: .2s}.\[--trans-timing\:cubic-bezier\(0\.65\,0\,0\.35\,1\)\]{--trans-timing: cubic-bezier(.65,0,.35,1)}.\[grid-area\:1\/1\/2\/2\]{grid-area:1/1/2/2}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-0:before{content:var(--tw-content);left:0}.before\:right-1:before{content:var(--tw-content);right:.25rem}.before\:-z-10:before{content:var(--tw-content);z-index:-10}.before\:h-\[1\.75rem\]:before{content:var(--tw-content);height:1.75rem}.before\:w-full:before{content:var(--tw-content);width:100%}.before\:border-l-2:before{content:var(--tw-content);border-left-width:2px}.before\:border-l-accent-foreground\/50:before{content:var(--tw-content);border-left-color:hsl(var(--accent-foreground) / .5)}.before\:bg-accent:before{content:var(--tw-content);background-color:hsl(var(--accent))}.before\:bg-muted\/80:before{content:var(--tw-content);background-color:hsl(var(--muted) / .8)}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:opacity-100:before{content:var(--tw-content);opacity:1}.after\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.after\:visible:after{content:var(--tw-content);visibility:visible}.after\:invisible:after{content:var(--tw-content);visibility:hidden}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-1:after{content:var(--tw-content);width:.25rem}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.after\:whitespace-pre:after{content:var(--tw-content);white-space:pre}.after\:border:after{content:var(--tw-content);border-width:1px}.after\:border-transparent:after{content:var(--tw-content);border-color:transparent}.after\:px-3:after{content:var(--tw-content);padding-left:.75rem;padding-right:.75rem}.after\:py-2:after{content:var(--tw-content);padding-top:.5rem;padding-bottom:.5rem}.after\:text-sm:after{content:var(--tw-content);font-size:.875rem;line-height:1.25rem}.after\:text-red-500:after{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.after\:\!\[content\:attr\(data-replicated\)_\"_\"\]:after{content:attr(data-replicated) " "!important}.after\:\[grid-area\:1\/1\/2\/2\]:after{content:var(--tw-content);grid-area:1/1/2/2}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.focus-within\:ring-1:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-within\:ring-ring:focus-within{--tw-ring-color: hsl(var(--ring))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:before\:opacity-100:hover:before{content:var(--tw-content);opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-primary-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(82 82 91 / var(--tw-ring-opacity))}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\:ring-offset-primary-200:focus{--tw-ring-offset-color: #e4e4e7}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-0:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.active\:scale-105:active{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted) / .4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive) / .3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color: hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-muted-foreground[data-state=checked]{background-color:hsl(var(--muted-foreground))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-accent[data-state=checked]{color:hsl(var(--accent))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on],.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:-rotate-90){--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:rotate-0){--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:scale-0){--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:scale-100){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:border-destructive){border-color:hsl(var(--destructive))}:is(.dark .dark\:\[--bg\:hsl\(var\(--hue1\)\,90\%\,10\%\)\]){--bg: hsl(var(--hue1),90%,10%)}:is(.dark .dark\:\[--fg\:hsl\(var\(--hue1\)\,90\%\,90\%\)\]){--fg: hsl(var(--hue1),90%,90%)}:is(.dark .dark\:before\:border-0):before{content:var(--tw-content);border-width:0px}:is(.dark .dark\:focus\:ring-primary-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(161 161 170 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-offset-primary-800:focus){--tw-ring-offset-color: #27272a}@media (min-width: 640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-\[425px\]{max-width:425px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){.md\:absolute{position:absolute}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:w-full{width:100%}.md\:max-w-\[420px\]{max-width:420px}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:has\(\>\.day-range-end\)\]\:rounded-r-md:has(>.day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\>\.day-range-start\)\]\:rounded-l-md:has(>.day-range-start){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:rounded-md:has([aria-selected]){border-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y: 2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>div\]\:w-full>div{width:100%}.\[\&\>div\]\:text-left>div{text-align:left}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\[data-fixed-width\]\>div\>div\]\:\!\[display\:block\][data-fixed-width]>div>div{display:block!important}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.first\:\[\&\[data-state\=open\]\>svg\]\:rotate-90[data-state=open]>svg:first-child{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.last\:\[\&\[data-state\=open\]\>svg\]\:rotate-90[data-state=open]>svg:last-child{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/assets/index-f111b7bb.css b/assets/index-f111b7bb.css deleted file mode 100644 index 3e31b26..0000000 --- a/assets/index-f111b7bb.css +++ /dev/null @@ -1 +0,0 @@ -.pl1__g,.pl1__rect{animation:pl1-a 1.5s cubic-bezier(.65,0,.35,1) infinite}.pl1__g{transform-origin:64px 64px}.pl1__rect:first-child{animation-name:pl1-b}.pl1__rect:nth-child(2){animation-name:pl1-c}@keyframes pl1-b{0%{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:40px}20%{animation-timing-function:steps(1,start);width:40px;height:0}60%{animation-timing-function:cubic-bezier(.65,0,.35,1);width:0;height:40px}80%,to{width:40px;height:40px}}@keyframes pl1-c{0%{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:40px;transform:translateY(48px)}20%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:40px;height:88px;transform:translate(0)}40%{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:40px;transform:translate(0)}60%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:88px;height:40px;transform:translate(0)}80%,to{width:40px;height:40px;transform:translate(48px)}}.pl2__rect,.pl2__rect-g{animation:pl1-a 1.5s cubic-bezier(.65,0,.35,1) infinite;animation-name:pl2-a}.pl2__rect{animation-name:pl2-b}.pl2__rect-g .pl2__rect{transform-origin:20px 128px}.pl2__rect-g:first-child,.pl2__rect-g:first-child .pl2__rect{animation-delay:-.25s}.pl2__rect-g:nth-child(2),.pl2__rect-g:nth-child(2) .pl2__rect{animation-delay:-.125s}.pl2__rect-g:nth-child(2) .pl2__rect{transform-origin:64px 128px}.pl2__rect-g:nth-child(3) .pl2__rect{transform-origin:108px 128px}@keyframes pl2-a{0%,25%,66.67%,to{transform:translateY(0)}50%{animation-timing-function:cubic-bezier(.33,0,.67,0);transform:translateY(-80px)}}@keyframes pl2-b{0%,to{animation-timing-function:cubic-bezier(.33,0,.67,0);width:40px;height:24px;transform:rotate(180deg) translate(0)}33.33%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:20px;height:64px;transform:rotate(180deg) translate(10px)}66.67%{animation-timing-function:cubic-bezier(.33,1,.67,1);width:28px;height:44px;transform:rotate(180deg) translate(6px)}}.pl3__rect{animation:pl1-a 1.5s cubic-bezier(.65,0,.35,1) infinite;animation-name:pl3}.pl3__rect-g{transform-origin:64px 64px}@keyframes pl1-a{0%{transform:rotate(0)}80%,to{animation-timing-function:steps(1,start);transform:rotate(90deg)}}@keyframes pl3{0%{transform:translate(64px);width:64px;height:64px}25%{transform:translate(0);width:128px;height:32px}50%{transform:translate(0);width:64px;height:64px}75%{transform:translate(0);width:32px;height:128px}to{transform:translateY(64px);width:64px;height:64px}}._dots-ring_d2oym_5{--w: #fafafa;--b: #141414;--s: 1s;--d: calc(var(--s) / 6);--dot-size: 1vmin;position:relative}._content_d2oym_51,._dots_d2oym_5{display:flex;align-items:center;justify-content:center}._content_d2oym_51{width:50vmin;height:50vmin;background:#f000;animation:_spin_d2oym_1 8s linear 0s infinite}._control_d2oym_87{position:absolute;inset:0;opacity:0;cursor:pointer;z-index:4}._control_d2oym_87:checked~div{filter:invert(1)}._control_d2oym_87:checked+._bg_d2oym_113:before{content:"CLICK TO DARK"}._bg_d2oym_113{position:absolute;background:var(--b);z-index:-2;inset:0}._bg_d2oym_113:before{content:"CLICK TO LIGHT";position:absolute;top:100px;left:0;color:var(--w);font-family:Arial,Helvetica,serif;font-size:12px;text-shadow:0 0 1px var(--w);opacity:.25}._ring_d2oym_185{width:64%;height:64%;border:1.5vmin solid var(--w);border-radius:100%;box-shadow:0 0 0 1vmin var(--b),0 0 0 1vmin var(--b) inset;animation:_spin_d2oym_1 8s linear 0s infinite reverse;z-index:0}._dots_d2oym_5{background:#0ff0;width:100%;height:100%;position:relative}._dot_d2oym_5{position:absolute;left:0;width:50%;height:7vmin;background:#f000;transform-origin:100% 50%;z-index:-1;animation:_over-ring_d2oym_1 calc(var(--s) * 2) linear 0s infinite}._dot_d2oym_5 span{position:absolute;left:0;width:5.5vmin;height:5.5vmin;background:var(--w);border:1vmin solid var(--b);border-radius:100%;animation:_ball_d2oym_1 var(--s) ease-in-out 0s infinite alternate}._dot_d2oym_5:nth-child(1){transform:rotate(-30deg);animation-delay:calc(var(--d) * 0)}._dot_d2oym_5:nth-child(1) span{animation-delay:calc(var(--d) * 0)}._dot_d2oym_5:nth-child(2){transform:rotate(-60deg);animation-delay:calc(var(--d) * -1)}._dot_d2oym_5:nth-child(2) span{animation-delay:calc(var(--d) * -1)}._dot_d2oym_5:nth-child(3){transform:rotate(-90deg);animation-delay:calc(var(--d) * -2)}._dot_d2oym_5:nth-child(3) span{animation-delay:calc(var(--d) * -2)}._dot_d2oym_5:nth-child(4){transform:rotate(-120deg);animation-delay:calc(var(--d) * -3)}._dot_d2oym_5:nth-child(4) span{animation-delay:calc(var(--d) * -3)}._dot_d2oym_5:nth-child(5){transform:rotate(-150deg);animation-delay:calc(var(--d) * -4)}._dot_d2oym_5:nth-child(5) span{animation-delay:calc(var(--d) * -4)}._dot_d2oym_5:nth-child(6){transform:rotate(-180deg);animation-delay:calc(var(--d) * -5)}._dot_d2oym_5:nth-child(6) span{animation-delay:calc(var(--d) * -5)}._dot_d2oym_5:nth-child(7){transform:rotate(-210deg);animation-delay:calc(var(--d) * -6)}._dot_d2oym_5:nth-child(7) span{animation-delay:calc(var(--d) * -6)}._dot_d2oym_5:nth-child(8){transform:rotate(-240deg);animation-delay:calc(var(--d) * -7)}._dot_d2oym_5:nth-child(8) span{animation-delay:calc(var(--d) * -7)}._dot_d2oym_5:nth-child(9){transform:rotate(-270deg);animation-delay:calc(var(--d) * -8)}._dot_d2oym_5:nth-child(9) span{animation-delay:calc(var(--d) * -8)}._dot_d2oym_5:nth-child(10){transform:rotate(-300deg);animation-delay:calc(var(--d) * -9)}._dot_d2oym_5:nth-child(10) span{animation-delay:calc(var(--d) * -9)}._dot_d2oym_5:nth-child(11){transform:rotate(-330deg);animation-delay:calc(var(--d) * -10)}._dot_d2oym_5:nth-child(11) span{animation-delay:calc(var(--d) * -10)}._dot_d2oym_5:nth-child(12){transform:rotate(-360deg);animation-delay:calc(var(--d) * -11)}._dot_d2oym_5:nth-child(12) span{animation-delay:calc(var(--d) * -11)}@keyframes _spin_d2oym_1{to{transform:rotate(-360deg)}}@keyframes _ball_d2oym_1{to{left:calc(var(--dot-size) * 12);width:calc(var(--dot-size) * 4);height:calc(var(--dot-size) * 4)}}@keyframes _over-ring_d2oym_1{0%,50%{z-index:-1}51%,to{z-index:1}}._a_17o17_51{animation:_rotate-clock-wise_17o17_1 3s infinite linear}@keyframes _rotate-clock-wise_17o17_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._b_17o17_79{animation:_rotate-anti-clock-wise_17o17_1 .9s infinite linear}@keyframes _rotate-anti-clock-wise_17o17_1{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.switch,.switch__input{-webkit-tap-highlight-color:#0000}.switch{margin:auto;position:relative;width:5em;height:3em;display:block}.switch__base-outer,.switch__base-inner{position:absolute;display:block}.switch__base-outer{left:.125em;top:.125em;width:4.75em;height:2.75em;border-radius:1.25em;box-shadow:-.125em -.125em .25em hsl(var(--hue),10%,30%),.125em .125em .125em hsl(var(--hue),10%,30%) inset,.125em .125em .25em #000,-.125em -.125em .125em hsl(var(--hue),10%,5%) inset}.switch__base-inner{left:.375em;top:.375em;width:4.25em;height:2.25em;border-radius:1.125em;box-shadow:-.25em -.25em .25em hsl(var(--hue),10%,30%) inset,.0625em .0625em .125em hsla(var(--hue),10%,30%),.125em .25em .25em hsl(var(--hue),10%,5%) inset,-.0625em -.0625em .125em hsla(var(--hue),10%,5%)}.switch__base-neon{position:absolute;left:0;top:0;width:100%;height:auto;display:block;overflow:visible}.switch__base-neon path{stroke-dasharray:0 104.26 0;transition:stroke-dasharray var(--trans-dur) var(--trans-timing)}.switch__input{position:relative;width:100%;height:100%;outline:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.switch__input:before{content:"";position:absolute;inset:-.125em;display:block;border-radius:.125em;box-shadow:0 0 0 .125em hsla(var(--hue),90%,50%,0);transition:box-shadow .15s linear}.switch__input:focus-visible:before{box-shadow:0 0 0 .125em var(--primary)}.switch__knob,.switch__knob-container{display:block;position:absolute;border-radius:1em}.switch__knob{width:2em;height:2em;background-color:hsl(var(--hue),10%,15%);background-image:radial-gradient(88% 88% at 50% 50%,hsl(var(--hue),10%,20%) 47%,hsla(var(--hue),10%,20%,0) 50%),radial-gradient(88% 88% at 47% 47%,hsl(var(--hue),10%,85%) 45%,hsla(var(--hue),10%,85%,0) 50%),radial-gradient(65% 70% at 40% 60%,hsl(var(--hue),10%,20%) 46%,hsla(var(--hue),10%,20%,0) 50%);box-shadow:-.0625em -.0625em .0625em hsl(var(--hue),10%,15%) inset,-.125em -.125em .0625em hsl(var(--hue),10%,5%) inset,.75em .25em .125em #000c;transition:transform var(--trans-dur) var(--trans-timing)}.switch__knob-container{left:.5em;top:.5em;width:4em;height:2em;overflow:hidden}.switch__knob-neon{display:block;width:2em;height:auto}.switch__knob-neon circle{opacity:0;stroke-dasharray:0 90.32 0 54.19;transition:opacity var(--trans-dur) steps(1,end),stroke-dasharray var(--trans-dur) var(--trans-timing)}.switch__knob-shadow{position:absolute;left:.5em;top:.5em;width:2em;height:2em;display:block;border-radius:50%;box-shadow:.125em .125em .125em #000000e6;transition:transform var(--trans-dur) var(--trans-timing)}.switch__led{position:absolute;left:0;top:0;width:.25em;height:.25em;display:block;background-color:hsl(var(--off-hue),90%,70%);border-radius:50%;box-shadow:0 -.0625em .0625em hsl(var(--off-hue),90%,40%) inset,0 0 .125em hsla(var(--off-hue),90%,70%,.3),0 0 .125em hsla(var(--off-hue),90%,70%,.3),.125em .125em .125em #00000080;transition:background-color var(--trans-dur) var(--trans-timing),box-shadow var(--trans-dur) var(--trans-timing)}.switch__text{position:absolute;width:1px;height:1px;overflow:hidden}.switch__input:checked~.switch__led{background-color:hsl(var(--on-hue1),90%,70%);box-shadow:0 -.0625em .0625em hsl(var(--on-hue1),90%,40%) inset,0 -.125em .125em hsla(var(--on-hue1),90%,70%,.3),0 .125em .125em hsla(var(--on-hue1),90%,70%,.3),.125em .125em .125em #00000080}.switch__input:checked~.switch__base-neon path{stroke-dasharray:52.13 0 52.13}.switch__input:checked~.switch__knob-shadow,.switch__input:checked~.switch__knob-container .switch__knob{transform:translate(100%)}.switch__input:checked~.switch__knob-container .switch__knob-neon circle{opacity:1;stroke-dasharray:45.16 0 45.16 54.19;transition-timing-function:steps(1,start),var(--trans-timing)}.toggle-wrapper{position:relative;display:flex;justify-content:center;align-items:center;-moz-column-gap:.25em;column-gap:.25em}.toggle-icon{width:.5em;height:.5em;fill:#4c9bab;filter:drop-shadow(0 1px 1px rgba(255,255,255,.4));transition:fill .4s}.toggle-checkbox:not(:checked)+.toggle-icon.off,.toggle-checkbox:checked~.toggle-icon.on{fill:#e0f9fc}.toggle-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;z-index:1;border-radius:3.125em;width:4.05em;height:100%;opacity:0;cursor:pointer}.toggle-container{position:relative;border-radius:3.125em;width:4.05em;height:1.5em;background-image:repeating-conic-gradient(#0b66a0 0% 25%,#1093a8 0% 50%);background-size:.125em .125em;box-shadow:inset 0 .125em .25em #00092699,inset -1.5em 0 .0625em #00092680,inset .5em 0 .5em #00092680,0 1px 1px #fff6}.toggle-button{display:flex;justify-content:center;align-items:center;position:absolute;top:.0625em;left:.0625em;border-radius:inherit;width:2.55em;height:calc(100% - .125em);background-image:linear-gradient(to right,#86e2fa,#125e79);box-shadow:0 .125em .25em #0009;transition:left .4s}.toggle-checkbox:checked~.toggle-container>.toggle-button{left:1.4375em}.toggle-button:before{content:"";position:absolute;top:inherit;border-radius:inherit;width:calc(100% - .375em);height:inherit;background-image:linear-gradient(to right,#0f73a8,#57cfe2,#b3f0ff)}.toggle-button:after{content:"";position:absolute;width:.5em;height:38%;background-image:repeating-linear-gradient(to right,#d2f2f6 0 .0625em,#4ea0ae .0625em .125em,transparent .125em .1875em)}._container_1xrdi_1 table{border-spacing:0;--sticky-cell-border-color: #545d9e}._container_1xrdi_1 th,._container_1xrdi_1 td{border:1px solid #2e3252;padding:8px;text-align:left}._container_1xrdi_1 th{background-color:#272a3f}._container_1xrdi_1 td{background-color:#212335;color:#bdbddb}._sticky-header-row_1xrdi_47 ._container_1xrdi_1{width:-moz-fit-content;width:fit-content;height:300px;overflow:auto}._sticky-header-row_1xrdi_47 th[scope=col]{position:sticky;top:0;border-bottom-color:var(--sticky-cell-border-color)}._sticky-first-column_1xrdi_73 ._container_1xrdi_1{width:300px;overflow:auto}._sticky-first-column_1xrdi_73 th[scope=col]:first-child,._sticky-first-column_1xrdi_73 th[scope=row]{position:sticky;left:0;border-right-color:var(--sticky-cell-border-color)}._sticky-header-and-first-column_1xrdi_99 ._container_1xrdi_1{width:400px;height:400px;overflow:auto}._sticky-header-and-first-column_1xrdi_99 th[scope=col]{position:sticky;top:0;border-bottom-color:var(--sticky-cell-border-color)}._sticky-header-and-first-column_1xrdi_99 th[scope=row]{position:sticky;left:0;border-right-color:var(--sticky-cell-border-color)}._sticky-header-and-first-column_1xrdi_99 th[scope=col]:first-child{left:0;z-index:1;border-right-color:var(--sticky-cell-border-color);border-bottom-color:var(--sticky-cell-border-color)}._container_1xrdi_1::-webkit-scrollbar{width:6px;height:6px}._container_1xrdi_1::-webkit-scrollbar-track{background:black}._container_1xrdi_1::-webkit-scrollbar-thumb{background-color:#9f9ec7;border-radius:10px}._container_1xrdi_1::-webkit-scrollbar-thumb:hover{background-color:#8988aa}.splitpane-content,.splitpane{flex:1;min-height:0;min-width:0}.splitpane-divider{flex-shrink:0;z-index:1000;transition:background-color .1s ease .4s}.splitpane-divider.horizontal{width:3px}.splitpane-divider.vertical{height:3px}.splitpane-divider:hover{background-color:#2e8fff;cursor:ew-resize}.splitpane-divider.vertical:hover{cursor:ns-resize}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 47.4% 11.2%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--card: 0 0% 100%;--card-foreground: 222.2 47.4% 11.2%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 100% 50%;--destructive-foreground: 210 40% 98%;--ring: 215 20.2% 65.1%;--radius: .5rem}.dark{--background: 224 71% 4%;--foreground: 213 31% 91%;--muted: 223 47% 11%;--muted-foreground: 215.4 16.3% 56.9%;--accent: 216 34% 17%;--accent-foreground: 210 40% 98%;--popover: 224 71% 4%;--popover-foreground: 215 20.2% 65.1%;--border: 216 34% 17%;--input: 216 34% 17%;--card: 224 71% 4%;--card-foreground: 213 31% 91%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 1.2%;--secondary: 222.2 47.4% 11.2%;--secondary-foreground: 210 40% 98%;--destructive: 0 63% 31%;--destructive-foreground: 210 40% 98%;--ring: 216 34% 17%;--radius: .5rem}*{border-color:hsl(var(--border))}html,body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.left-1{left:.25rem}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.col-start-2{grid-column-start:2}.m-0{margin:0}.m-0\.5{margin:.125rem}.m-1{margin:.25rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-12{margin-right:3rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.\!table{display:table!important}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[160px\]{height:160px}.h-\[1px\]{height:1px}.h-\[20px\]{height:20px}.h-\[460px\]{height:460px}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[300px\]{max-height:300px}.max-h-screen{max-height:100vh}.min-h-0{min-height:0px}.min-h-\[60px\]{min-height:60px}.min-h-full{min-height:100%}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[100px\]{width:100px}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[220px\]{width:220px}.w-\[230px\]{width:230px}.w-\[250px\]{width:250px}.w-\[280px\]{width:280px}.w-\[36px\]{width:36px}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-0{min-width:0px}.min-w-\[12rem\]{min-width:12rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[16px\,1fr\]{grid-template-columns:16px 1fr}.grid-rows-\[auto\,1fr\,auto\]{grid-template-rows:auto 1fr auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.self-end{align-self:flex-end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-\[14px\]{border-width:14px}.border-\[1px\]{border-width:1px}.border-\[20px\]{border-width:20px}.border-\[8px\]{border-width:8px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-current{border-color:currentColor}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-input{border-color:hsl(var(--input))}.border-muted{border-color:hsl(var(--muted))}.border-muted-foreground\/30{border-color:hsl(var(--muted-foreground) / .3)}.border-primary{border-color:hsl(var(--primary))}.border-primary-400{--tw-border-opacity: 1;border-color:rgb(161 161 170 / var(--tw-border-opacity))}.border-primary-foreground{border-color:hsl(var(--primary-foreground))}.border-primary\/50{border-color:hsl(var(--primary) / .5)}.border-transparent{border-color:transparent}.border-x-transparent{border-left-color:transparent;border-right-color:transparent}.border-y-transparent{border-top-color:transparent;border-bottom-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:hsl(var(--accent))}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-popover{background-color:hsl(var(--popover))}.bg-popover\/80{background-color:hsl(var(--popover) / .8)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.bg-primary-500\/20{background-color:#71717a33}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-800\/90{background-color:#1e293be6}.bg-transparent{background-color:transparent}.\!bg-cover{background-size:cover!important}.bg-cover{background-size:cover}.\!bg-center{background-position:center!important}.bg-center{background-position:center}.fill-current{fill:currentColor}.fill-none{fill:none}.fill-primary{fill:hsl(var(--primary))}.fill-slate-600{fill:#475569}.stroke-current{stroke:currentColor}.stroke-none{stroke:none}.stroke-\[1\.5\]{stroke-width:1.5}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-5xl{font-size:3rem;line-height:1}.text-\[0\.8rem\]{font-size:.8rem}.text-\[10px\]{font-size:10px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extralight{font-weight:200}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-accent-foreground\/50{color:hsl(var(--accent-foreground) / .5)}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground) / .5)}.text-green-950{--tw-text-opacity: 1;color:rgb(5 46 22 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.resizer::-webkit-resizer{background-color:transparent;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsSAAALEgHS3X78AAAAIGNIUk0AAG11AABzoAAA9q8AAIWZAABumgAA57sAADF9AAAXvQF2CngAAABESURBVHjajM67DQAgDENBw6x0WZDtHi3KR4klF5ausAAVvf8u0TGjgwFlMEUeepR+DCj72CJAC9AkW8OM4QMAAP//AwD5ltVB1vqf0gAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:bottom right;background-size:95% 95%}.\[--bg\:hsl\(var\(--hue1\)\,90\%\,90\%\)\]{--bg: hsl(var(--hue1),90%,90%)}.\[--fg\:hsl\(var\(--hue1\)\,90\%\,10\%\)\]{--fg: hsl(var(--hue1),90%,10%)}.\[--hue1\:223\]{--hue1: 223}.\[--hue1\:53\]{--hue1: 53}.\[--hue2\:153\]{--hue2: 153}.\[--hue2\:163\]{--hue2: 163}.\[--hue2\:253\]{--hue2: 253}.\[--hue2\:283\]{--hue2: 283}.\[--hue2\:343\]{--hue2: 343}.\[--hue\:223\]{--hue: 223}.\[--off-hue\:3\]{--off-hue: 3}.\[--on-hue1\:123\]{--on-hue1: 123}.\[--on-hue2\:168\]{--on-hue2: 168}.\[--primary\:hsl\(var\(--hue\)\,90\%\,50\%\)\]{--primary: hsl(var(--hue),90%,50%)}.\[--primary\:hsl\(var\(--hue1\)\,90\%\,50\%\)\]{--primary: hsl(var(--hue1),90%,50%)}.\[--secondary\:hsl\(var\(--hue2\)\,90\%\,50\%\)\]{--secondary: hsl(var(--hue2),90%,50%)}.\[--trans-dur\:0\.2s\]{--trans-dur: .2s}.\[--trans-timing\:cubic-bezier\(0\.65\,0\,0\.35\,1\)\]{--trans-timing: cubic-bezier(.65,0,.35,1)}.\[grid-area\:1\/1\/2\/2\]{grid-area:1/1/2/2}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-0:before{content:var(--tw-content);left:0}.before\:right-1:before{content:var(--tw-content);right:.25rem}.before\:-z-10:before{content:var(--tw-content);z-index:-10}.before\:h-\[1\.75rem\]:before{content:var(--tw-content);height:1.75rem}.before\:w-full:before{content:var(--tw-content);width:100%}.before\:border-l-2:before{content:var(--tw-content);border-left-width:2px}.before\:border-l-accent-foreground\/50:before{content:var(--tw-content);border-left-color:hsl(var(--accent-foreground) / .5)}.before\:bg-accent:before{content:var(--tw-content);background-color:hsl(var(--accent))}.before\:bg-muted\/80:before{content:var(--tw-content);background-color:hsl(var(--muted) / .8)}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:opacity-100:before{content:var(--tw-content);opacity:1}.after\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.after\:visible:after{content:var(--tw-content);visibility:visible}.after\:invisible:after{content:var(--tw-content);visibility:hidden}.after\:whitespace-pre:after{content:var(--tw-content);white-space:pre}.after\:border:after{content:var(--tw-content);border-width:1px}.after\:border-transparent:after{content:var(--tw-content);border-color:transparent}.after\:px-3:after{content:var(--tw-content);padding-left:.75rem;padding-right:.75rem}.after\:py-2:after{content:var(--tw-content);padding-top:.5rem;padding-bottom:.5rem}.after\:text-sm:after{content:var(--tw-content);font-size:.875rem;line-height:1.25rem}.after\:text-red-500:after{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.after\:\!\[content\:attr\(data-replicated\)_\"_\"\]:after{content:attr(data-replicated) " "!important}.after\:\[grid-area\:1\/1\/2\/2\]:after{content:var(--tw-content);grid-area:1/1/2/2}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.focus-within\:ring-1:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-within\:ring-ring:focus-within{--tw-ring-color: hsl(var(--ring))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:before\:opacity-100:hover:before{content:var(--tw-content);opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-primary-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(82 82 91 / var(--tw-ring-opacity))}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\:ring-offset-primary-200:focus{--tw-ring-offset-color: #e4e4e7}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-0:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.active\:scale-105:active{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted) / .4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive) / .3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color: hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on],.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:-rotate-90){--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:rotate-0){--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:scale-0){--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:scale-100){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:border-destructive){border-color:hsl(var(--destructive))}:is(.dark .dark\:\[--bg\:hsl\(var\(--hue1\)\,90\%\,10\%\)\]){--bg: hsl(var(--hue1),90%,10%)}:is(.dark .dark\:\[--fg\:hsl\(var\(--hue1\)\,90\%\,90\%\)\]){--fg: hsl(var(--hue1),90%,90%)}:is(.dark .dark\:before\:border-0):before{content:var(--tw-content);border-width:0px}:is(.dark .dark\:focus\:ring-primary-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(161 161 170 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-offset-primary-800:focus){--tw-ring-offset-color: #27272a}@media (min-width: 640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-\[425px\]{max-width:425px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){.md\:absolute{position:absolute}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:w-full{width:100%}.md\:max-w-\[420px\]{max-width:420px}}.\[\&\+div\]\:text-xs+div{font-size:.75rem;line-height:1rem}.\[\&\:has\(\>\.day-range-end\)\]\:rounded-r-md:has(>.day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\>\.day-range-start\)\]\:rounded-l-md:has(>.day-range-start){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:rounded-md:has([aria-selected]){border-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y: 2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>div\]\:w-full>div{width:100%}.\[\&\>div\]\:text-left>div{text-align:left}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\[data-fixed-width\]\>div\>div\]\:\!\[display\:block\][data-fixed-width]>div>div{display:block!important}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.first\:\[\&\[data-state\=open\]\>svg\]\:rotate-90[data-state=open]>svg:first-child{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.last\:\[\&\[data-state\=open\]\>svg\]\:rotate-90[data-state=open]>svg:last-child{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/assets/radix-ui-f68920fa.js b/assets/radix-ui-c21f01d1.js similarity index 61% rename from assets/radix-ui-f68920fa.js rename to assets/radix-ui-c21f01d1.js index 5f541e3..012cefb 100644 --- a/assets/radix-ui-f68920fa.js +++ b/assets/radix-ui-c21f01d1.js @@ -14,7 +14,7 @@ function D1(e,t){for(var n=0;n>>1,j=T[V];if(0>>1;Vo(Se,O))reo(L,Se)?(T[V]=L,T[re]=O,V=re):(T[V]=Se,T[me]=O,V=me);else if(reo(L,O))T[V]=L,T[re]=O,V=re;else break e}}return k}function o(T,k){var O=T.sortIndex-k.sortIndex;return O!==0?O:T.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,l=c.now();e.unstable_now=function(){return c.now()-l}}var s=[],u=[],f=1,d=null,p=3,$=!1,y=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(T){for(var k=n(u);k!==null;){if(k.callback===null)r(u);else if(k.startTime<=T)r(u),k.sortIndex=k.expirationTime,t(s,k);else break;k=n(u)}}function b(T){if(m=!1,g(T),!y)if(n(s)!==null)y=!0,U(E);else{var k=n(u);k!==null&&X(b,k.startTime-T)}}function E(T,k){y=!1,m&&(m=!1,h(_),_=-1),$=!0;var O=p;try{for(g(k),d=n(s);d!==null&&(!(d.expirationTime>k)||T&&!F());){var V=d.callback;if(typeof V=="function"){d.callback=null,p=d.priorityLevel;var j=V(d.expirationTime<=k);k=e.unstable_now(),typeof j=="function"?d.callback=j:d===n(s)&&r(s),g(k)}else r(s);d=n(s)}if(d!==null)var be=!0;else{var me=n(u);me!==null&&X(b,me.startTime-k),be=!1}return be}finally{d=null,p=O,$=!1}}var S=!1,C=null,_=-1,P=5,D=-1;function F(){return!(e.unstable_now()-DT||125V?(T.sortIndex=O,t(u,T),n(s)===null&&T===n(u)&&(m?(h(_),_=-1):m=!0,X(b,O-V))):(T.sortIndex=j,t(s,T),y||$||(y=!0,U(E))),T},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(T){var k=p;return function(){var O=p;p=k;try{return T.apply(this,arguments)}finally{p=O}}}})(Yf);Gf.exports=Yf;var Y1=Gf.exports;/** + */(function(e){function t(T,k){var O=T.length;T.push(k);e:for(;0>>1,j=T[V];if(0>>1;Vo(Se,O))reo(L,Se)?(T[V]=L,T[re]=O,V=re):(T[V]=Se,T[me]=O,V=me);else if(reo(L,O))T[V]=L,T[re]=O,V=re;else break e}}return k}function o(T,k){var O=T.sortIndex-k.sortIndex;return O!==0?O:T.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,l=c.now();e.unstable_now=function(){return c.now()-l}}var s=[],u=[],f=1,d=null,p=3,g=!1,y=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(T){for(var k=n(u);k!==null;){if(k.callback===null)r(u);else if(k.startTime<=T)r(u),k.sortIndex=k.expirationTime,t(s,k);else break;k=n(u)}}function b(T){if(m=!1,$(T),!y)if(n(s)!==null)y=!0,U(E);else{var k=n(u);k!==null&&X(b,k.startTime-T)}}function E(T,k){y=!1,m&&(m=!1,h(_),_=-1),g=!0;var O=p;try{for($(k),d=n(s);d!==null&&(!(d.expirationTime>k)||T&&!F());){var V=d.callback;if(typeof V=="function"){d.callback=null,p=d.priorityLevel;var j=V(d.expirationTime<=k);k=e.unstable_now(),typeof j=="function"?d.callback=j:d===n(s)&&r(s),$(k)}else r(s);d=n(s)}if(d!==null)var be=!0;else{var me=n(u);me!==null&&X(b,me.startTime-k),be=!1}return be}finally{d=null,p=O,g=!1}}var S=!1,C=null,_=-1,P=5,D=-1;function F(){return!(e.unstable_now()-DT||125V?(T.sortIndex=O,t(u,T),n(s)===null&&T===n(u)&&(m?(h(_),_=-1):m=!0,X(b,O-V))):(T.sortIndex=j,t(s,T),y||g||(y=!0,U(E))),T},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(T){var k=p;return function(){var O=p;p=k;try{return T.apply(this,arguments)}finally{p=O}}}})(Yf);Gf.exports=Yf;var Y1=Gf.exports;/** * @license React * react-dom.production.min.js * @@ -22,14 +22,14 @@ function D1(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zi=Object.prototype.hasOwnProperty,X1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Bu={},Uu={};function Q1(e){return zi.call(Uu,e)?!0:zi.call(Bu,e)?!1:X1.test(e)?Uu[e]=!0:(Bu[e]=!0,!1)}function Z1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function q1(e,t,n,r){if(t===null||typeof t>"u"||Z1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ae(e,t,n,r,o,a,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=c}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new Ae(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Ae(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ce[e]=new Ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var os=/[\-:]([a-z])/g;function as(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(os,as);Ce[t]=new Ae(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(os,as);Ce[t]=new Ae(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(os,as);Ce[t]=new Ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Ae(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function cs(e,t,n,r){var o=Ce.hasOwnProperty(t)?Ce[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zi=Object.prototype.hasOwnProperty,X1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Bu={},Uu={};function Q1(e){return zi.call(Uu,e)?!0:zi.call(Bu,e)?!1:X1.test(e)?Uu[e]=!0:(Bu[e]=!0,!1)}function Z1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function q1(e,t,n,r){if(t===null||typeof t>"u"||Z1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ae(e,t,n,r,o,a,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=c}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new Ae(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Ae(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ce[e]=new Ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var os=/[\-:]([a-z])/g;function as(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(os,as);Ce[t]=new Ae(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(os,as);Ce[t]=new Ae(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(os,as);Ce[t]=new Ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Ae(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function cs(e,t,n,r){var o=Ce.hasOwnProperty(t)?Ce[t]:null;(o!==null?o.type!==0:r||!(2l||o[c]!==a[l]){var s=` -`+o[c].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=c&&0<=l);break}}}finally{ti=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gr(e):""}function J1(e){switch(e.tag){case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return e=ni(e.type,!1),e;case 11:return e=ni(e.type.render,!1),e;case 1:return e=ni(e.type,!0),e;default:return""}}function Hi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Jn:return"Fragment";case qn:return"Portal";case Vi:return"Profiler";case is:return"StrictMode";case Bi:return"Suspense";case Ui:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qf:return(e.displayName||"Context")+".Consumer";case Zf:return(e._context.displayName||"Context")+".Provider";case ls:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ss:return t=e.displayName||null,t!==null?t:Hi(e.type)||"Memo";case Gt:t=e._payload,e=e._init;try{return Hi(e(t))}catch{}}return null}function eh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Hi(t);case 8:return t===is?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ep(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function th(e){var t=ep(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(c){r=""+c,a.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(c){r=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jo(e){e._valueTracker||(e._valueTracker=th(e))}function tp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ep(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wi(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Wu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function np(e,t){t=t.checked,t!=null&&cs(e,"checked",t,!1)}function Ki(e,t){np(e,t);var n=ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ji(e,t.type,n):t.hasOwnProperty("defaultValue")&&ji(e,t.type,ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ku(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ji(e,t,n){(t!=="number"||Fa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yr=Array.isArray;function ur(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ea.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function so(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nh=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){nh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function cp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function ip(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=cp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var rh=fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xi(e,t){if(t){if(rh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Qi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zi=null;function us(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qi=null,dr=null,fr=null;function Yu(e){if(e=Fo(e)){if(typeof qi!="function")throw Error(M(280));var t=e.stateNode;t&&(t=wc(t),qi(e.stateNode,e.type,t))}}function lp(e){dr?fr?fr.push(e):fr=[e]:dr=e}function sp(){if(dr){var e=dr,t=fr;if(fr=dr=null,Yu(e),t)for(e=0;e>>=0,e===0?32:31-(vh(e)/mh|0)|0}var ta=64,na=4194304;function Xr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ua(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,c=n&268435455;if(c!==0){var l=c&~o;l!==0?r=Xr(l):(a&=c,a!==0&&(r=Xr(a)))}else c=n&~o,c!==0?r=Xr(c):a!==0&&(r=Xr(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function No(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ft(t),e[t]=n}function yh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Jr),rd=String.fromCharCode(32),od=!1;function kp(e,t){switch(e){case"keyup":return Gh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var er=!1;function Xh(e,t){switch(e){case"compositionend":return Tp(t);case"keypress":return t.which!==32?null:(od=!0,rd);case"textInput":return e=t.data,e===rd&&od?null:e;default:return null}}function Qh(e,t){if(er)return e==="compositionend"||!gs&&kp(e,t)?(e=Pp(),Ra=ms=Zt=null,er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ld(n)}}function Ip(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ip(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ap(){for(var e=window,t=Fa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fa(e.document)}return t}function ys(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function a$(e){var t=Ap(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ip(n.ownerDocument.documentElement,n)){if(r!==null&&ys(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=sd(n,a);var c=sd(n,r);o&&c&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,tr=null,ol=null,to=null,al=!1;function ud(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;al||tr==null||tr!==Fa(r)||(r=tr,"selectionStart"in r&&ys(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),to&&ho(to,r)||(to=r,r=Ka(ol,"onSelect"),0or||(e.current=dl[or],dl[or]=null,or--)}function ne(e,t){or++,dl[or]=e.current,e.current=t}var sn={},Te=mn(sn),ze=mn(!1),Mn=sn;function yr(e,t){var n=e.type.contextTypes;if(!n)return sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ve(e){return e=e.childContextTypes,e!=null}function Ga(){ce(ze),ce(Te)}function $d(e,t,n){if(Te.current!==sn)throw Error(M(168));ne(Te,t),ne(ze,n)}function Wp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(M(108,eh(e)||"Unknown",o));return fe({},n,r)}function Ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,Mn=Te.current,ne(Te,e),ne(ze,ze.current),!0}function gd(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Wp(e,t,Mn),r.__reactInternalMemoizedMergedChildContext=e,ce(ze),ce(Te),ne(Te,e)):ce(ze),ne(ze,n)}var Tt=null,bc=!1,hi=!1;function Kp(e){Tt===null?Tt=[e]:Tt.push(e)}function $$(e){bc=!0,Kp(e)}function hn(){if(!hi&&Tt!==null){hi=!0;var e=0,t=Q;try{var n=Tt;for(Q=1;e>=c,o-=c,Mt=1<<32-ft(t)+o|n<_?(P=C,C=null):P=C.sibling;var D=p(h,C,g[_],b);if(D===null){C===null&&(C=P);break}e&&C&&D.alternate===null&&t(h,C),v=a(D,v,_),S===null?E=D:S.sibling=D,S=D,C=P}if(_===g.length)return n(h,C),ie&&En(h,_),E;if(C===null){for(;__?(P=C,C=null):P=C.sibling;var F=p(h,C,D.value,b);if(F===null){C===null&&(C=P);break}e&&C&&F.alternate===null&&t(h,C),v=a(F,v,_),S===null?E=F:S.sibling=F,S=F,C=P}if(D.done)return n(h,C),ie&&En(h,_),E;if(C===null){for(;!D.done;_++,D=g.next())D=d(h,D.value,b),D!==null&&(v=a(D,v,_),S===null?E=D:S.sibling=D,S=D);return ie&&En(h,_),E}for(C=r(h,C);!D.done;_++,D=g.next())D=$(C,h,_,D.value,b),D!==null&&(e&&D.alternate!==null&&C.delete(D.key===null?_:D.key),v=a(D,v,_),S===null?E=D:S.sibling=D,S=D);return e&&C.forEach(function(H){return t(h,H)}),ie&&En(h,_),E}function w(h,v,g,b){if(typeof g=="object"&&g!==null&&g.type===Jn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case qo:e:{for(var E=g.key,S=v;S!==null;){if(S.key===E){if(E=g.type,E===Jn){if(S.tag===7){n(h,S.sibling),v=o(S,g.props.children),v.return=h,h=v;break e}}else if(S.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Gt&&Sd(E)===S.type){n(h,S.sibling),v=o(S,g.props),v.ref=Wr(h,S,g),v.return=h,h=v;break e}n(h,S);break}else t(h,S);S=S.sibling}g.type===Jn?(v=kn(g.props.children,h.mode,b,g.key),v.return=h,h=v):(b=Na(g.type,g.key,g.props,null,h.mode,b),b.ref=Wr(h,v,g),b.return=h,h=b)}return c(h);case qn:e:{for(S=g.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===g.containerInfo&&v.stateNode.implementation===g.implementation){n(h,v.sibling),v=o(v,g.children||[]),v.return=h,h=v;break e}else{n(h,v);break}else t(h,v);v=v.sibling}v=Ci(g,h.mode,b),v.return=h,h=v}return c(h);case Gt:return S=g._init,w(h,v,S(g._payload),b)}if(Yr(g))return y(h,v,g,b);if(zr(g))return m(h,v,g,b);sa(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,v!==null&&v.tag===6?(n(h,v.sibling),v=o(v,g),v.return=h,h=v):(n(h,v),v=xi(g,h.mode,b),v.return=h,h=v),c(h)):n(h,v)}return w}var br=Jp(!0),ev=Jp(!1),zo={},Et=mn(zo),wo=mn(zo),bo=mn(zo);function Pn(e){if(e===zo)throw Error(M(174));return e}function Rs(e,t){switch(ne(bo,t),ne(wo,e),ne(Et,zo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yi(t,e)}ce(Et),ne(Et,t)}function Er(){ce(Et),ce(wo),ce(bo)}function tv(e){Pn(bo.current);var t=Pn(Et.current),n=Yi(t,e.type);t!==n&&(ne(wo,e),ne(Et,n))}function ks(e){wo.current===e&&(ce(Et),ce(wo))}var ue=mn(0);function ec(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $i=[];function Ts(){for(var e=0;e<$i.length;e++)$i[e]._workInProgressVersionPrimary=null;$i.length=0}var Ma=Bt.ReactCurrentDispatcher,gi=Bt.ReactCurrentBatchConfig,On=0,de=null,$e=null,ye=null,tc=!1,no=!1,Eo=0,y$=0;function _e(){throw Error(M(321))}function Ms(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=gi.transition;gi.transition={};try{e(!1),t()}finally{Q=n,gi.transition=r}}function $v(){return ot().memoizedState}function b$(e,t,n){var r=an(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gv(e))yv(t,n);else if(n=Xp(e,t,n,r),n!==null){var o=De();pt(n,e,r,o),wv(n,t,r)}}function E$(e,t,n){var r=an(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gv(e))yv(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var c=t.lastRenderedState,l=a(c,n);if(o.hasEagerState=!0,o.eagerState=l,mt(l,c)){var s=t.interleaved;s===null?(o.next=o,_s(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Xp(e,t,o,r),n!==null&&(o=De(),pt(n,e,r,o),wv(n,t,r))}}function gv(e){var t=e.alternate;return e===de||t!==null&&t===de}function yv(e,t){no=tc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fs(e,n)}}var nc={readContext:rt,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useInsertionEffect:_e,useLayoutEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useMutableSource:_e,useSyncExternalStore:_e,useId:_e,unstable_isNewReconciler:!1},x$={readContext:rt,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:Pd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Da(4194308,4,fv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var n=yt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=b$.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:_d,useDebugValue:As,useDeferredValue:function(e){return yt().memoizedState=e},useTransition:function(){var e=_d(!1),t=e[0];return e=w$.bind(null,e[1]),yt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,o=yt();if(ie){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),we===null)throw Error(M(349));On&30||ov(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Pd(cv.bind(null,r,a,e),[e]),r.flags|=2048,Co(9,av.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=yt(),t=we.identifierPrefix;if(ie){var n=Dt,r=Mt;n=(r&~(1<<32-ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Eo++,0")&&(s=s.replace("",e.displayName)),s}while(1<=c&&0<=l);break}}}finally{ti=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gr(e):""}function J1(e){switch(e.tag){case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return e=ni(e.type,!1),e;case 11:return e=ni(e.type.render,!1),e;case 1:return e=ni(e.type,!0),e;default:return""}}function Hi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Jn:return"Fragment";case qn:return"Portal";case Vi:return"Profiler";case is:return"StrictMode";case Bi:return"Suspense";case Ui:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qf:return(e.displayName||"Context")+".Consumer";case Zf:return(e._context.displayName||"Context")+".Provider";case ls:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ss:return t=e.displayName||null,t!==null?t:Hi(e.type)||"Memo";case Yt:t=e._payload,e=e._init;try{return Hi(e(t))}catch{}}return null}function eh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Hi(t);case 8:return t===is?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ep(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function th(e){var t=ep(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(c){r=""+c,a.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(c){r=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jo(e){e._valueTracker||(e._valueTracker=th(e))}function tp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ep(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wi(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Wu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function np(e,t){t=t.checked,t!=null&&cs(e,"checked",t,!1)}function Ki(e,t){np(e,t);var n=sn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ji(e,t.type,n):t.hasOwnProperty("defaultValue")&&ji(e,t.type,sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ku(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ji(e,t,n){(t!=="number"||Fa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yr=Array.isArray;function ur(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ea.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function so(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nh=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){nh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function cp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function ip(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=cp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var rh=fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xi(e,t){if(t){if(rh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Qi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zi=null;function us(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qi=null,dr=null,fr=null;function Yu(e){if(e=Fo(e)){if(typeof qi!="function")throw Error(M(280));var t=e.stateNode;t&&(t=wc(t),qi(e.stateNode,e.type,t))}}function lp(e){dr?fr?fr.push(e):fr=[e]:dr=e}function sp(){if(dr){var e=dr,t=fr;if(fr=dr=null,Yu(e),t)for(e=0;e>>=0,e===0?32:31-(vh(e)/mh|0)|0}var ta=64,na=4194304;function Xr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ua(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,c=n&268435455;if(c!==0){var l=c&~o;l!==0?r=Xr(l):(a&=c,a!==0&&(r=Xr(a)))}else c=n&~o,c!==0?r=Xr(c):a!==0&&(r=Xr(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function No(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ft(t),e[t]=n}function yh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Jr),rd=String.fromCharCode(32),od=!1;function kp(e,t){switch(e){case"keyup":return Gh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var er=!1;function Xh(e,t){switch(e){case"compositionend":return Tp(t);case"keypress":return t.which!==32?null:(od=!0,rd);case"textInput":return e=t.data,e===rd&&od?null:e;default:return null}}function Qh(e,t){if(er)return e==="compositionend"||!$s&&kp(e,t)?(e=Pp(),Ra=ms=qt=null,er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ld(n)}}function Ip(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ip(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ap(){for(var e=window,t=Fa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fa(e.document)}return t}function ys(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ag(e){var t=Ap(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ip(n.ownerDocument.documentElement,n)){if(r!==null&&ys(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=sd(n,a);var c=sd(n,r);o&&c&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,tr=null,ol=null,to=null,al=!1;function ud(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;al||tr==null||tr!==Fa(r)||(r=tr,"selectionStart"in r&&ys(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),to&&ho(to,r)||(to=r,r=Ka(ol,"onSelect"),0or||(e.current=dl[or],dl[or]=null,or--)}function ne(e,t){or++,dl[or]=e.current,e.current=t}var un={},Te=hn(un),ze=hn(!1),Mn=un;function yr(e,t){var n=e.type.contextTypes;if(!n)return un;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ve(e){return e=e.childContextTypes,e!=null}function Ga(){ce(ze),ce(Te)}function gd(e,t,n){if(Te.current!==un)throw Error(M(168));ne(Te,t),ne(ze,n)}function Wp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(M(108,eh(e)||"Unknown",o));return fe({},n,r)}function Ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||un,Mn=Te.current,ne(Te,e),ne(ze,ze.current),!0}function $d(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Wp(e,t,Mn),r.__reactInternalMemoizedMergedChildContext=e,ce(ze),ce(Te),ne(Te,e)):ce(ze),ne(ze,n)}var Tt=null,bc=!1,hi=!1;function Kp(e){Tt===null?Tt=[e]:Tt.push(e)}function gg(e){bc=!0,Kp(e)}function gn(){if(!hi&&Tt!==null){hi=!0;var e=0,t=Q;try{var n=Tt;for(Q=1;e>=c,o-=c,Mt=1<<32-ft(t)+o|n<_?(P=C,C=null):P=C.sibling;var D=p(h,C,$[_],b);if(D===null){C===null&&(C=P);break}e&&C&&D.alternate===null&&t(h,C),v=a(D,v,_),S===null?E=D:S.sibling=D,S=D,C=P}if(_===$.length)return n(h,C),ie&&En(h,_),E;if(C===null){for(;_<$.length;_++)C=d(h,$[_],b),C!==null&&(v=a(C,v,_),S===null?E=C:S.sibling=C,S=C);return ie&&En(h,_),E}for(C=r(h,C);_<$.length;_++)P=g(C,h,_,$[_],b),P!==null&&(e&&P.alternate!==null&&C.delete(P.key===null?_:P.key),v=a(P,v,_),S===null?E=P:S.sibling=P,S=P);return e&&C.forEach(function(F){return t(h,F)}),ie&&En(h,_),E}function m(h,v,$,b){var E=zr($);if(typeof E!="function")throw Error(M(150));if($=E.call($),$==null)throw Error(M(151));for(var S=E=null,C=v,_=v=0,P=null,D=$.next();C!==null&&!D.done;_++,D=$.next()){C.index>_?(P=C,C=null):P=C.sibling;var F=p(h,C,D.value,b);if(F===null){C===null&&(C=P);break}e&&C&&F.alternate===null&&t(h,C),v=a(F,v,_),S===null?E=F:S.sibling=F,S=F,C=P}if(D.done)return n(h,C),ie&&En(h,_),E;if(C===null){for(;!D.done;_++,D=$.next())D=d(h,D.value,b),D!==null&&(v=a(D,v,_),S===null?E=D:S.sibling=D,S=D);return ie&&En(h,_),E}for(C=r(h,C);!D.done;_++,D=$.next())D=g(C,h,_,D.value,b),D!==null&&(e&&D.alternate!==null&&C.delete(D.key===null?_:D.key),v=a(D,v,_),S===null?E=D:S.sibling=D,S=D);return e&&C.forEach(function(H){return t(h,H)}),ie&&En(h,_),E}function w(h,v,$,b){if(typeof $=="object"&&$!==null&&$.type===Jn&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case qo:e:{for(var E=$.key,S=v;S!==null;){if(S.key===E){if(E=$.type,E===Jn){if(S.tag===7){n(h,S.sibling),v=o(S,$.props.children),v.return=h,h=v;break e}}else if(S.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Yt&&Sd(E)===S.type){n(h,S.sibling),v=o(S,$.props),v.ref=Wr(h,S,$),v.return=h,h=v;break e}n(h,S);break}else t(h,S);S=S.sibling}$.type===Jn?(v=kn($.props.children,h.mode,b,$.key),v.return=h,h=v):(b=Na($.type,$.key,$.props,null,h.mode,b),b.ref=Wr(h,v,$),b.return=h,h=b)}return c(h);case qn:e:{for(S=$.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===$.containerInfo&&v.stateNode.implementation===$.implementation){n(h,v.sibling),v=o(v,$.children||[]),v.return=h,h=v;break e}else{n(h,v);break}else t(h,v);v=v.sibling}v=Ci($,h.mode,b),v.return=h,h=v}return c(h);case Yt:return S=$._init,w(h,v,S($._payload),b)}if(Yr($))return y(h,v,$,b);if(zr($))return m(h,v,$,b);sa(h,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,v!==null&&v.tag===6?(n(h,v.sibling),v=o(v,$),v.return=h,h=v):(n(h,v),v=xi($,h.mode,b),v.return=h,h=v),c(h)):n(h,v)}return w}var br=Jp(!0),ev=Jp(!1),zo={},Et=hn(zo),wo=hn(zo),bo=hn(zo);function Pn(e){if(e===zo)throw Error(M(174));return e}function Rs(e,t){switch(ne(bo,t),ne(wo,e),ne(Et,zo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yi(t,e)}ce(Et),ne(Et,t)}function Er(){ce(Et),ce(wo),ce(bo)}function tv(e){Pn(bo.current);var t=Pn(Et.current),n=Yi(t,e.type);t!==n&&(ne(wo,e),ne(Et,n))}function ks(e){wo.current===e&&(ce(Et),ce(wo))}var ue=hn(0);function ec(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gi=[];function Ts(){for(var e=0;en?n:4,e(!0);var r=$i.transition;$i.transition={};try{e(!1),t()}finally{Q=n,$i.transition=r}}function gv(){return ot().memoizedState}function bg(e,t,n){var r=cn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$v(e))yv(t,n);else if(n=Xp(e,t,n,r),n!==null){var o=De();pt(n,e,r,o),wv(n,t,r)}}function Eg(e,t,n){var r=cn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($v(e))yv(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var c=t.lastRenderedState,l=a(c,n);if(o.hasEagerState=!0,o.eagerState=l,mt(l,c)){var s=t.interleaved;s===null?(o.next=o,_s(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Xp(e,t,o,r),n!==null&&(o=De(),pt(n,e,r,o),wv(n,t,r))}}function $v(e){var t=e.alternate;return e===de||t!==null&&t===de}function yv(e,t){no=tc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fs(e,n)}}var nc={readContext:rt,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useInsertionEffect:_e,useLayoutEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useMutableSource:_e,useSyncExternalStore:_e,useId:_e,unstable_isNewReconciler:!1},xg={readContext:rt,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:Pd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Da(4194308,4,fv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var n=yt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bg.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:_d,useDebugValue:As,useDeferredValue:function(e){return yt().memoizedState=e},useTransition:function(){var e=_d(!1),t=e[0];return e=wg.bind(null,e[1]),yt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,o=yt();if(ie){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),we===null)throw Error(M(349));On&30||ov(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Pd(cv.bind(null,r,a,e),[e]),r.flags|=2048,Co(9,av.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=yt(),t=we.identifierPrefix;if(ie){var n=Dt,r=Mt;n=(r&~(1<<32-ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Eo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),n==="select"&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[wt]=t,e[yo]=r,kv(e,t,!1,!1),t.stateNode=e;e:{switch(c=Qi(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oCr&&(t.flags|=128,r=!0,Kr(a,!1),t.lanes=4194304)}else{if(!r)if(e=ec(c),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!ie)return Pe(t),null}else 2*ve()-a.renderingStartTime>Cr&&n!==1073741824&&(t.flags|=128,r=!0,Kr(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(n=a.last,n!==null?n.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ve(),t.sibling=null,n=ue.current,ne(ue,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return Bs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?We&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function M$(e,t){switch(bs(t),t.tag){case 1:return Ve(t.type)&&Ga(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Er(),ce(ze),ce(Te),Ts(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ks(t),null;case 13:if(ce(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(ue),null;case 4:return Er(),null;case 10:return Ss(t.type._context),null;case 22:case 23:return Bs(),null;case 24:return null;default:return null}}var da=!1,Re=!1,D$=typeof WeakSet=="function"?WeakSet:Set,I=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function xl(e,t,n){try{n()}catch(r){pe(e,t,r)}}var Nd=!1;function O$(e,t){if(cl=Ha,e=Ap(),ys(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var c=0,l=-1,s=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var $;d!==n||o!==0&&d.nodeType!==3||(l=c+o),d!==a||r!==0&&d.nodeType!==3||(s=c+r),d.nodeType===3&&(c+=d.nodeValue.length),($=d.firstChild)!==null;)p=d,d=$;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=c),p===a&&++f===r&&(s=c),($=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=$}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(il={focusedElem:e,selectionRange:n},Ha=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,w=y.memoizedState,h=t.stateNode,v=h.getSnapshotBeforeUpdate(t.elementType===t.type?m:st(t.type,m),w);h.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(b){pe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return y=Nd,Nd=!1,y}function ro(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&xl(t,n,a)}o=o.next}while(o!==r)}}function Cc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Cl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Dv(e){var t=e.alternate;t!==null&&(e.alternate=null,Dv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wt],delete t[yo],delete t[ul],delete t[m$],delete t[h$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ov(e){return e.tag===5||e.tag===3||e.tag===4}function Ld(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ov(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Sl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ja));else if(r!==4&&(e=e.child,e!==null))for(Sl(e,t,n),e=e.sibling;e!==null;)Sl(e,t,n),e=e.sibling}function _l(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_l(e,t,n),e=e.sibling;e!==null;)_l(e,t,n),e=e.sibling}var Ee=null,ut=!1;function Kt(e,t,n){for(n=n.child;n!==null;)Iv(e,t,n),n=n.sibling}function Iv(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(hc,n)}catch{}switch(n.tag){case 5:Re||lr(n,t);case 6:var r=Ee,o=ut;Ee=null,Kt(e,t,n),Ee=r,ut=o,Ee!==null&&(ut?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(ut?(e=Ee,n=n.stateNode,e.nodeType===8?mi(e.parentNode,n):e.nodeType===1&&mi(e,n),vo(e)):mi(Ee,n.stateNode));break;case 4:r=Ee,o=ut,Ee=n.stateNode.containerInfo,ut=!0,Kt(e,t,n),Ee=r,ut=o;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,c=a.destroy;a=a.tag,c!==void 0&&(a&2||a&4)&&xl(n,t,c),o=o.next}while(o!==r)}Kt(e,t,n);break;case 1:if(!Re&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){pe(n,t,l)}Kt(e,t,n);break;case 21:Kt(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,Kt(e,t,n),Re=r):Kt(e,t,n);break;default:Kt(e,t,n)}}function Fd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new D$),t.forEach(function(r){var o=U$.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function lt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=c),r&=~a}if(r=o,r=ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*A$(r/1960))-r,10e?16:e,qt===null)var r=!1;else{if(e=qt,qt=null,ac=0,G&6)throw Error(M(331));var o=G;for(G|=4,I=e.current;I!==null;){var a=I,c=a.child;if(I.flags&16){var l=a.deletions;if(l!==null){for(var s=0;sve()-zs?Rn(e,0):Fs|=n),Be(e,t)}function Uv(e,t){t===0&&(e.mode&1?(t=na,na<<=1,!(na&130023424)&&(na=4194304)):t=1);var n=De();e=Nt(e,t),e!==null&&(No(e,t,n),Be(e,n))}function B$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Uv(e,n)}function U$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),Uv(e,n)}var Hv;Hv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ze.current)Fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fe=!1,k$(e,t,n);Fe=!!(e.flags&131072)}else Fe=!1,ie&&t.flags&1048576&&jp(t,Qa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oa(e,t),e=t.pendingProps;var o=yr(t,Te.current);vr(t,n),o=Ds(null,t,r,e,o,n);var a=Os();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(r)?(a=!0,Ya(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ps(t),o.updater=Ec,t.stateNode=o,o._reactInternals=t,hl(t,r,e,n),t=yl(null,t,r,!0,a,n)):(t.tag=0,ie&&a&&ws(t),Me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=W$(r),e=st(r,e),o){case 0:t=gl(null,t,r,e,n);break e;case 1:t=Od(null,t,r,e,n);break e;case 11:t=Md(null,t,r,e,n);break e;case 14:t=Dd(null,t,r,st(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),gl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),Od(e,t,r,o,n);case 3:e:{if(_v(t),e===null)throw Error(M(387));r=t.pendingProps,a=t.memoizedState,o=a.element,Qp(e,t),Ja(t,r,null,n);var c=t.memoizedState;if(r=c.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=xr(Error(M(423)),t),t=Id(e,t,r,n,o);break e}else if(r!==o){o=xr(Error(M(424)),t),t=Id(e,t,r,n,o);break e}else for(je=nn(t.stateNode.containerInfo.firstChild),Ge=t,ie=!0,dt=null,n=ev(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wr(),r===o){t=Lt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return tv(t),e===null&&pl(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,c=o.children,ll(r,o)?c=null:a!==null&&ll(r,a)&&(t.flags|=32),Sv(e,t),Me(e,t,c,n),t.child;case 6:return e===null&&pl(t),null;case 13:return Pv(e,t,n);case 4:return Rs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=br(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),Md(e,t,r,o,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,c=o.value,ne(Za,r._currentValue),r._currentValue=c,a!==null)if(mt(a.value,c)){if(a.children===o.children&&!ze.current){t=Lt(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){c=a.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=Ot(-1,n&-n),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),vl(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)c=a.type===t.type?null:a.child;else if(a.tag===18){if(c=a.return,c===null)throw Error(M(341));c.lanes|=n,l=c.alternate,l!==null&&(l.lanes|=n),vl(c,n,t),c=a.sibling}else c=a.child;if(c!==null)c.return=a;else for(c=a;c!==null;){if(c===t){c=null;break}if(a=c.sibling,a!==null){a.return=c.return,c=a;break}c=c.return}a=c}Me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,vr(t,n),o=rt(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=st(r,t.pendingProps),o=st(r.type,o),Dd(e,t,r,o,n);case 15:return xv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),Oa(e,t),t.tag=1,Ve(r)?(e=!0,Ya(t)):e=!1,vr(t,n),qp(t,r,o),hl(t,r,o,n),yl(null,t,r,!0,e,n);case 19:return Rv(e,t,n);case 22:return Cv(e,t,n)}throw Error(M(156,t.tag))};function Wv(e,t){return hp(e,t)}function H$(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function et(e,t,n,r){return new H$(e,t,n,r)}function Hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function W$(e){if(typeof e=="function")return Hs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ls)return 11;if(e===ss)return 14}return 2}function cn(e,t){var n=e.alternate;return n===null?(n=et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Na(e,t,n,r,o,a){var c=2;if(r=e,typeof e=="function")Hs(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case Jn:return kn(n.children,o,a,t);case is:c=8,o|=8;break;case Vi:return e=et(12,n,t,o|2),e.elementType=Vi,e.lanes=a,e;case Bi:return e=et(13,n,t,o),e.elementType=Bi,e.lanes=a,e;case Ui:return e=et(19,n,t,o),e.elementType=Ui,e.lanes=a,e;case Jf:return _c(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zf:c=10;break e;case qf:c=9;break e;case ls:c=11;break e;case ss:c=14;break e;case Gt:c=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=et(c,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function kn(e,t,n,r){return e=et(7,e,r,t),e.lanes=n,e}function _c(e,t,n,r){return e=et(22,e,r,t),e.elementType=Jf,e.lanes=n,e.stateNode={isHidden:!1},e}function xi(e,t,n){return e=et(6,e,null,t),e.lanes=n,e}function Ci(e,t,n){return t=et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function K$(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oi(0),this.expirationTimes=oi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ws(e,t,n,r,o,a,c,l,s){return e=new K$(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=et(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ps(a),e}function j$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yv)}catch(e){console.error(e)}}Yv(),jf.exports=Qe;var $n=jf.exports;const Ys=Nf($n);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>Z$(n,t))}function z(...e){return i.useCallback(Vo(...e),e)}const un=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(q$);if(a){const c=a.props.children,l=o.map(s=>s===a?i.Children.count(c)>1?i.Children.only(null):i.isValidElement(c)?c.props.children:null:s);return i.createElement(Ml,x({},r,{ref:t}),i.isValidElement(c)?i.cloneElement(c,void 0,l):null)}return i.createElement(Ml,x({},r,{ref:t}),n)});un.displayName="Slot";const Ml=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...J$(r,n.props),ref:t?Vo(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});Ml.displayName="SlotClone";const Xs=({children:e})=>i.createElement(i.Fragment,null,e);function q$(e){return i.isValidElement(e)&&e.type===Xs}function J$(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{a(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const eg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],A=eg.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...c}=r,l=a?un:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(l,x({},c,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Xv(e,t){e&&$n.flushSync(()=>e.dispatchEvent(t))}const tg=i.forwardRef((e,t)=>i.createElement(A.label,x({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),z5=tg;function R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function ng(e,t){const n=i.createContext(t);function r(a){const{children:c,...l}=a,s=i.useMemo(()=>l,Object.values(l));return i.createElement(n.Provider,{value:s},c)}function o(a){const c=i.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function le(e,t=[]){let n=[];function r(a,c){const l=i.createContext(c),s=n.length;n=[...n,c];function u(d){const{scope:p,children:$,...y}=d,m=p?.[e][s]||l,w=i.useMemo(()=>y,Object.values(y));return i.createElement(m.Provider,{value:w},$)}function f(d,p){const $=p?.[e][s]||l,y=i.useContext($);if(y)return y;if(c!==void 0)return c;throw new Error(`\`${d}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,f]}const o=()=>{const a=n.map(c=>i.createContext(c));return function(l){const s=l?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,rg(o,...t)]}function rg(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const c=r.reduce((l,{useScope:s,scopeName:u})=>{const d=s(a)[`__scope${u}`];return{...l,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function ae(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ne({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=og({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r,l=ae(n),s=i.useCallback(u=>{if(a){const d=typeof u=="function"?u(e):u;d!==e&&l(d)}else o(u)},[a,e,o,l]);return[c,s]}function og({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=ae(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function gn(e){const t=e+"CollectionProvider",[n,r]=le(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=$=>{const{scope:y,children:m}=$,w=W.useRef(null),h=W.useRef(new Map).current;return W.createElement(o,{scope:y,itemMap:h,collectionRef:w},m)},l=e+"CollectionSlot",s=W.forwardRef(($,y)=>{const{scope:m,children:w}=$,h=a(l,m),v=z(y,h.collectionRef);return W.createElement(un,{ref:v},w)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",d=W.forwardRef(($,y)=>{const{scope:m,children:w,...h}=$,v=W.useRef(null),g=z(y,v),b=a(u,m);return W.useEffect(()=>(b.itemMap.set(v,{ref:v,...h}),()=>void b.itemMap.delete(v))),W.createElement(un,{[f]:"",ref:g},w)});function p($){const y=a(e+"CollectionConsumer",$);return W.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const h=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((b,E)=>h.indexOf(b.ref.current)-h.indexOf(E.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:c,Slot:s,ItemSlot:d},p,r]}const ag=i.createContext(void 0);function Ut(e){const t=i.useContext(ag);return e||t||"ltr"}function cg(e,t=globalThis?.document){const n=ae(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Dl="dismissableLayer.update",ig="dismissableLayer.pointerDownOutside",lg="dismissableLayer.focusOutside";let jd;const sg=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vn=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:l,onDismiss:s,...u}=e,f=i.useContext(sg),[d,p]=i.useState(null),$=(n=d?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,y]=i.useState({}),m=z(t,_=>p(_)),w=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=w.indexOf(h),g=d?w.indexOf(d):-1,b=f.layersWithOutsidePointerEventsDisabled.size>0,E=g>=v,S=ug(_=>{const P=_.target,D=[...f.branches].some(F=>F.contains(P));!E||D||(a?.(_),l?.(_),_.defaultPrevented||s?.())},$),C=dg(_=>{const P=_.target;[...f.branches].some(F=>F.contains(P))||(c?.(_),l?.(_),_.defaultPrevented||s?.())},$);return cg(_=>{g===f.layers.size-1&&(o?.(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},$),i.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(jd=$.body.style.pointerEvents,$.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Gd(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&($.body.style.pointerEvents=jd)}},[d,$,r,f]),i.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Gd())},[d,f]),i.useEffect(()=>{const _=()=>y({});return document.addEventListener(Dl,_),()=>document.removeEventListener(Dl,_)},[]),i.createElement(A.div,x({},u,{ref:m,style:{pointerEvents:b?E?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,C.onFocusCapture),onBlurCapture:R(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,S.onPointerDownCapture)}))});function ug(e,t=globalThis?.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let u=function(){Qv(ig,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function dg(e,t=globalThis?.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&Qv(lg,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Gd(){const e=new CustomEvent(Dl);document.dispatchEvent(e)}function Qv(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Xv(o,a):o.dispatchEvent(a)}let Si=0;function Mc(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Yd()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Yd()),Si++,()=>{Si===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Si--}},[])}function Yd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const _i="focusScope.autoFocusOnMount",Pi="focusScope.autoFocusOnUnmount",Xd={bubbles:!1,cancelable:!0},Dc=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[l,s]=i.useState(null),u=ae(o),f=ae(a),d=i.useRef(null),p=z(t,m=>s(m)),$=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let m=function(g){if($.paused||!l)return;const b=g.target;l.contains(b)?d.current=b:jt(d.current,{select:!0})},w=function(g){if($.paused||!l)return;const b=g.relatedTarget;b!==null&&(l.contains(b)||jt(d.current,{select:!0}))},h=function(g){if(document.activeElement===document.body)for(const E of g)E.removedNodes.length>0&&jt(l)};document.addEventListener("focusin",m),document.addEventListener("focusout",w);const v=new MutationObserver(h);return l&&v.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",w),v.disconnect()}}},[r,l,$.paused]),i.useEffect(()=>{if(l){Zd.add($);const m=document.activeElement;if(!l.contains(m)){const h=new CustomEvent(_i,Xd);l.addEventListener(_i,u),l.dispatchEvent(h),h.defaultPrevented||(fg($g(Zv(l)),{select:!0}),document.activeElement===m&&jt(l))}return()=>{l.removeEventListener(_i,u),setTimeout(()=>{const h=new CustomEvent(Pi,Xd);l.addEventListener(Pi,f),l.dispatchEvent(h),h.defaultPrevented||jt(m??document.body,{select:!0}),l.removeEventListener(Pi,f),Zd.remove($)},0)}}},[l,u,f,$]);const y=i.useCallback(m=>{if(!n&&!r||$.paused)return;const w=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,h=document.activeElement;if(w&&h){const v=m.currentTarget,[g,b]=pg(v);g&&b?!m.shiftKey&&h===b?(m.preventDefault(),n&&jt(g,{select:!0})):m.shiftKey&&h===g&&(m.preventDefault(),n&&jt(b,{select:!0})):h===v&&m.preventDefault()}},[n,r,$.paused]);return i.createElement(A.div,x({tabIndex:-1},c,{ref:p,onKeyDown:y}))});function fg(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(jt(r,{select:t}),document.activeElement!==n)return}function pg(e){const t=Zv(e),n=Qd(t,e),r=Qd(t.reverse(),e);return[n,r]}function Zv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Qd(e,t){for(const n of e)if(!vg(n,{upTo:t}))return n}function vg(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}function mg(e){return e instanceof HTMLInputElement&&"select"in e}function jt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&mg(e)&&t&&e.select()}}const Zd=hg();function hg(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=qd(e,t),e.unshift(t)},remove(t){var n;e=qd(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function qd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $g(e){return e.filter(t=>t.tagName!=="A")}const Oe=globalThis?.document?i.useLayoutEffect:()=>{},gg=Kf["useId".toString()]||(()=>{});let yg=0;function nt(e){const[t,n]=i.useState(gg());return Oe(()=>{e||n(r=>r??String(yg++))},[e]),e||(t?`radix-${t}`:"")}const wg=["top","right","bottom","left"],dn=Math.min,Ke=Math.max,lc=Math.round,va=Math.floor,fn=e=>({x:e,y:e}),bg={left:"right",right:"left",bottom:"top",top:"bottom"},Eg={start:"end",end:"start"};function Ol(e,t,n){return Ke(e,dn(t,n))}function Ft(e,t){return typeof e=="function"?e(t):e}function zt(e){return e.split("-")[0]}function Dr(e){return e.split("-")[1]}function Qs(e){return e==="x"?"y":"x"}function Zs(e){return e==="y"?"height":"width"}function Or(e){return["top","bottom"].includes(zt(e))?"y":"x"}function qs(e){return Qs(Or(e))}function xg(e,t,n){n===void 0&&(n=!1);const r=Dr(e),o=qs(e),a=Zs(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(c=sc(c)),[c,sc(c)]}function Cg(e){const t=sc(e);return[Il(e),t,Il(t)]}function Il(e){return e.replace(/start|end/g,t=>Eg[t])}function Sg(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:c;default:return[]}}function _g(e,t,n,r){const o=Dr(e);let a=Sg(zt(e),n==="start",r);return o&&(a=a.map(c=>c+"-"+o),t&&(a=a.concat(a.map(Il)))),a}function sc(e){return e.replace(/left|right|bottom|top/g,t=>bg[t])}function Pg(e){return{top:0,right:0,bottom:0,left:0,...e}}function qv(e){return typeof e!="number"?Pg(e):{top:e,right:e,bottom:e,left:e}}function uc(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Jd(e,t,n){let{reference:r,floating:o}=e;const a=Or(t),c=qs(t),l=Zs(c),s=zt(t),u=a==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let $;switch(s){case"top":$={x:f,y:r.y-o.height};break;case"bottom":$={x:f,y:r.y+r.height};break;case"right":$={x:r.x+r.width,y:d};break;case"left":$={x:r.x-o.width,y:d};break;default:$={x:r.x,y:r.y}}switch(Dr(t)){case"start":$[c]-=p*(n&&u?-1:1);break;case"end":$[c]+=p*(n&&u?-1:1);break}return $}const Rg=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:c}=n,l=a.filter(Boolean),s=await(c.isRTL==null?void 0:c.isRTL(t));let u=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Jd(u,r,s),p=r,$={},y=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:c,elements:l,middlewareData:s}=t,{element:u,padding:f=0}=Ft(e,t)||{};if(u==null)return{};const d=qv(f),p={x:n,y:r},$=qs(o),y=Zs($),m=await c.getDimensions(u),w=$==="y",h=w?"top":"left",v=w?"bottom":"right",g=w?"clientHeight":"clientWidth",b=a.reference[y]+a.reference[$]-p[$]-a.floating[y],E=p[$]-a.reference[$],S=await(c.getOffsetParent==null?void 0:c.getOffsetParent(u));let C=S?S[g]:0;(!C||!await(c.isElement==null?void 0:c.isElement(S)))&&(C=l.floating[g]||a.floating[y]);const _=b/2-E/2,P=C/2-m[y]/2-1,D=dn(d[h],P),F=dn(d[v],P),H=D,Y=C-m[y]-F,N=C/2-m[y]/2+_,B=Ol(H,N,Y),U=!s.arrow&&Dr(o)!=null&&N!=B&&a.reference[y]/2-(NH<=0)){var P,D;const H=(((P=a.flip)==null?void 0:P.index)||0)+1,Y=E[H];if(Y)return{data:{index:H,overflows:_},reset:{placement:Y}};let N=(D=_.filter(B=>B.overflows[0]<=0).sort((B,U)=>B.overflows[1]-U.overflows[1])[0])==null?void 0:D.placement;if(!N)switch($){case"bestFit":{var F;const B=(F=_.map(U=>[U.placement,U.overflows.filter(X=>X>0).reduce((X,T)=>X+T,0)]).sort((U,X)=>U[1]-X[1])[0])==null?void 0:F[0];B&&(N=B);break}case"initialPlacement":N=l;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function tf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nf(e){return wg.some(t=>e[t]>=0)}const Tg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ft(e,t);switch(r){case"referenceHidden":{const a=await _o(t,{...o,elementContext:"reference"}),c=tf(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:nf(c)}}}case"escaped":{const a=await _o(t,{...o,altBoundary:!0}),c=tf(a,n.floating);return{data:{escapedOffsets:c,escaped:nf(c)}}}default:return{}}}}};async function Mg(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=zt(n),l=Dr(n),s=Or(n)==="y",u=["left","top"].includes(c)?-1:1,f=a&&s?-1:1,d=Ft(t,e);let{mainAxis:p,crossAxis:$,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof y=="number"&&($=l==="end"?y*-1:y),s?{x:$*f,y:p*u}:{x:p*u,y:$*f}}const Dg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await Mg(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Og=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:w=>{let{x:h,y:v}=w;return{x:h,y:v}}},...s}=Ft(e,t),u={x:n,y:r},f=await _o(t,s),d=Or(zt(o)),p=Qs(d);let $=u[p],y=u[d];if(a){const w=p==="y"?"top":"left",h=p==="y"?"bottom":"right",v=$+f[w],g=$-f[h];$=Ol(v,$,g)}if(c){const w=d==="y"?"top":"left",h=d==="y"?"bottom":"right",v=y+f[w],g=y-f[h];y=Ol(v,y,g)}const m=l.fn({...t,[p]:$,[d]:y});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Ig=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:c}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=Ft(e,t),f={x:n,y:r},d=Or(o),p=Qs(d);let $=f[p],y=f[d];const m=Ft(l,t),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const g=p==="y"?"height":"width",b=a.reference[p]-a.floating[g]+w.mainAxis,E=a.reference[p]+a.reference[g]-w.mainAxis;$E&&($=E)}if(u){var h,v;const g=p==="y"?"width":"height",b=["top","left"].includes(zt(o)),E=a.reference[d]-a.floating[g]+(b&&((h=c.offset)==null?void 0:h[d])||0)+(b?0:w.crossAxis),S=a.reference[d]+a.reference[g]+(b?0:((v=c.offset)==null?void 0:v[d])||0)-(b?w.crossAxis:0);yS&&(y=S)}return{[p]:$,[d]:y}}}},Ag=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:c=()=>{},...l}=Ft(e,t),s=await _o(t,l),u=zt(n),f=Dr(n),d=Or(n)==="y",{width:p,height:$}=r.floating;let y,m;u==="top"||u==="bottom"?(y=u,m=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=u,y=f==="end"?"top":"bottom");const w=$-s[y],h=p-s[m],v=!t.middlewareData.shift;let g=w,b=h;if(d){const S=p-s.left-s.right;b=f||v?dn(h,S):S}else{const S=$-s.top-s.bottom;g=f||v?dn(w,S):S}if(v&&!f){const S=Ke(s.left,0),C=Ke(s.right,0),_=Ke(s.top,0),P=Ke(s.bottom,0);d?b=p-2*(S!==0||C!==0?S+C:Ke(s.left,s.right)):g=$-2*(_!==0||P!==0?_+P:Ke(s.top,s.bottom))}await c({...t,availableWidth:b,availableHeight:g});const E=await o.getDimensions(a.floating);return p!==E.width||$!==E.height?{reset:{rects:!0}}:{}}}};function pn(e){return Jv(e)?(e.nodeName||"").toLowerCase():"#document"}function Ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ht(e){var t;return(t=(Jv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jv(e){return e instanceof Node||e instanceof Ye(e).Node}function Vt(e){return e instanceof Element||e instanceof Ye(e).Element}function xt(e){return e instanceof HTMLElement||e instanceof Ye(e).HTMLElement}function rf(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ye(e).ShadowRoot}function Bo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ng(e){return["table","td","th"].includes(pn(e))}function Js(e){const t=eu(),n=at(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Lg(e){let t=Sr(e);for(;xt(t)&&!Oc(t);){if(Js(t))return t;t=Sr(t)}return null}function eu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Oc(e){return["html","body","#document"].includes(pn(e))}function at(e){return Ye(e).getComputedStyle(e)}function Ic(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Sr(e){if(pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rf(e)&&e.host||Ht(e);return rf(t)?t.host:t}function em(e){const t=Sr(e);return Oc(t)?e.ownerDocument?e.ownerDocument.body:e.body:xt(t)&&Bo(t)?t:em(t)}function Po(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=em(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),c=Ye(o);return a?t.concat(c,c.visualViewport||[],Bo(o)?o:[],c.frameElement&&n?Po(c.frameElement):[]):t.concat(o,Po(o,[],n))}function tm(e){const t=at(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xt(e),a=o?e.offsetWidth:n,c=o?e.offsetHeight:r,l=lc(n)!==a||lc(r)!==c;return l&&(n=a,r=c),{width:n,height:r,$:l}}function tu(e){return Vt(e)?e:e.contextElement}function hr(e){const t=tu(e);if(!xt(t))return fn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=tm(t);let c=(a?lc(n.width):n.width)/r,l=(a?lc(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}const Fg=fn(0);function nm(e){const t=Ye(e);return!eu()||!t.visualViewport?Fg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ye(e)?!1:t}function Nn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=tu(e);let c=fn(1);t&&(r?Vt(r)&&(c=hr(r)):c=hr(e));const l=zg(a,n,r)?nm(a):fn(0);let s=(o.left+l.x)/c.x,u=(o.top+l.y)/c.y,f=o.width/c.x,d=o.height/c.y;if(a){const p=Ye(a),$=r&&Vt(r)?Ye(r):r;let y=p.frameElement;for(;y&&r&&$!==p;){const m=hr(y),w=y.getBoundingClientRect(),h=at(y),v=w.left+(y.clientLeft+parseFloat(h.paddingLeft))*m.x,g=w.top+(y.clientTop+parseFloat(h.paddingTop))*m.y;s*=m.x,u*=m.y,f*=m.x,d*=m.y,s+=v,u+=g,y=Ye(y).frameElement}}return uc({width:f,height:d,x:s,y:u})}function Vg(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=xt(n),a=Ht(n);if(n===a)return t;let c={scrollLeft:0,scrollTop:0},l=fn(1);const s=fn(0);if((o||!o&&r!=="fixed")&&((pn(n)!=="body"||Bo(a))&&(c=Ic(n)),xt(n))){const u=Nn(n);l=hr(n),s.x=u.x+n.clientLeft,s.y=u.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-c.scrollLeft*l.x+s.x,y:t.y*l.y-c.scrollTop*l.y+s.y}}function Bg(e){return Array.from(e.getClientRects())}function rm(e){return Nn(Ht(e)).left+Ic(e).scrollLeft}function Ug(e){const t=Ht(e),n=Ic(e),r=e.ownerDocument.body,o=Ke(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ke(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+rm(e);const l=-n.scrollTop;return at(r).direction==="rtl"&&(c+=Ke(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:c,y:l}}function Hg(e,t){const n=Ye(e),r=Ht(e),o=n.visualViewport;let a=r.clientWidth,c=r.clientHeight,l=0,s=0;if(o){a=o.width,c=o.height;const u=eu();(!u||u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:c,x:l,y:s}}function Wg(e,t){const n=Nn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=xt(e)?hr(e):fn(1),c=e.clientWidth*a.x,l=e.clientHeight*a.y,s=o*a.x,u=r*a.y;return{width:c,height:l,x:s,y:u}}function of(e,t,n){let r;if(t==="viewport")r=Hg(e,n);else if(t==="document")r=Ug(Ht(e));else if(Vt(t))r=Wg(t,n);else{const o=nm(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return uc(r)}function om(e,t){const n=Sr(e);return n===t||!Vt(n)||Oc(n)?!1:at(n).position==="fixed"||om(n,t)}function Kg(e,t){const n=t.get(e);if(n)return n;let r=Po(e,[],!1).filter(l=>Vt(l)&&pn(l)!=="body"),o=null;const a=at(e).position==="fixed";let c=a?Sr(e):e;for(;Vt(c)&&!Oc(c);){const l=at(c),s=Js(c);!s&&l.position==="fixed"&&(o=null),(a?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Bo(c)&&!s&&om(e,c))?r=r.filter(f=>f!==c):o=l,c=Sr(c)}return t.set(e,r),r}function jg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?Kg(t,this._c):[].concat(n),r],l=c[0],s=c.reduce((u,f)=>{const d=of(t,f,o);return u.top=Ke(d.top,u.top),u.right=dn(d.right,u.right),u.bottom=dn(d.bottom,u.bottom),u.left=Ke(d.left,u.left),u},of(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Gg(e){return tm(e)}function Yg(e,t,n){const r=xt(t),o=Ht(t),a=n==="fixed",c=Nn(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=fn(0);if(r||!r&&!a)if((pn(t)!=="body"||Bo(o))&&(l=Ic(t)),r){const u=Nn(t,!0,a,t);s.x=u.x+t.clientLeft,s.y=u.y+t.clientTop}else o&&(s.x=rm(o));return{x:c.left+l.scrollLeft-s.x,y:c.top+l.scrollTop-s.y,width:c.width,height:c.height}}function af(e,t){return!xt(e)||at(e).position==="fixed"?null:t?t(e):e.offsetParent}function am(e,t){const n=Ye(e);if(!xt(e))return n;let r=af(e,t);for(;r&&Ng(r)&&at(r).position==="static";)r=af(r,t);return r&&(pn(r)==="html"||pn(r)==="body"&&at(r).position==="static"&&!Js(r))?n:r||Lg(e)||n}const Xg=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||am,a=this.getDimensions;return{reference:Yg(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}};function Qg(e){return at(e).direction==="rtl"}const Zg={convertOffsetParentRelativeRectToViewportRelativeRect:Vg,getDocumentElement:Ht,getClippingRect:jg,getOffsetParent:am,getElementRects:Xg,getClientRects:Bg,getDimensions:Gg,getScale:hr,isElement:Vt,isRTL:Qg};function qg(e,t){let n=null,r;const o=Ht(e);function a(){clearTimeout(r),n&&n.disconnect(),n=null}function c(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),a();const{left:u,top:f,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;const $=va(f),y=va(o.clientWidth-(u+d)),m=va(o.clientHeight-(f+p)),w=va(u),v={rootMargin:-$+"px "+-y+"px "+-m+"px "+-w+"px",threshold:Ke(0,dn(1,s))||1};let g=!0;function b(E){const S=E[0].intersectionRatio;if(S!==s){if(!g)return c();S?c(!1,S):r=setTimeout(()=>{c(!1,1e-7)},100)}g=!1}try{n=new IntersectionObserver(b,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return c(!0),a}function Jg(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=tu(e),f=o||a?[...u?Po(u):[],...Po(t)]:[];f.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),a&&h.addEventListener("resize",n)});const d=u&&l?qg(u,n):null;let p=-1,$=null;c&&($=new ResizeObserver(h=>{let[v]=h;v&&v.target===u&&$&&($.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{$&&$.observe(t)})),n()}),u&&!s&&$.observe(u),$.observe(t));let y,m=s?Nn(e):null;s&&w();function w(){const h=Nn(e);m&&(h.x!==m.x||h.y!==m.y||h.width!==m.width||h.height!==m.height)&&n(),m=h,y=requestAnimationFrame(w)}return n(),()=>{f.forEach(h=>{o&&h.removeEventListener("scroll",n),a&&h.removeEventListener("resize",n)}),d&&d(),$&&$.disconnect(),$=null,s&&cancelAnimationFrame(y)}}const ey=(e,t,n)=>{const r=new Map,o={platform:Zg,...n},a={...o.platform,_c:r};return Rg(e,t,{...o,platform:a})},ty=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ef({element:r.current,padding:o}).fn(n):{}:r?ef({element:r,padding:o}).fn(n):{}}}};var La=typeof document<"u"?i.useLayoutEffect:i.useEffect;function dc(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,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!dc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!dc(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function cm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cf(e,t){const n=cm(e);return Math.round(t*n)/n}function lf(e){const t=i.useRef(e);return La(()=>{t.current=e}),t}function ny(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:c}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[f,d]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,$]=i.useState(r);dc(p,r)||$(r);const[y,m]=i.useState(null),[w,h]=i.useState(null),v=i.useCallback(U=>{U!=S.current&&(S.current=U,m(U))},[m]),g=i.useCallback(U=>{U!==C.current&&(C.current=U,h(U))},[h]),b=a||y,E=c||w,S=i.useRef(null),C=i.useRef(null),_=i.useRef(f),P=lf(s),D=lf(o),F=i.useCallback(()=>{if(!S.current||!C.current)return;const U={placement:t,strategy:n,middleware:p};D.current&&(U.platform=D.current),ey(S.current,C.current,U).then(X=>{const T={...X,isPositioned:!0};H.current&&!dc(_.current,T)&&(_.current=T,$n.flushSync(()=>{d(T)}))})},[p,t,n,D]);La(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(U=>({...U,isPositioned:!1})))},[u]);const H=i.useRef(!1);La(()=>(H.current=!0,()=>{H.current=!1}),[]),La(()=>{if(b&&(S.current=b),E&&(C.current=E),b&&E){if(P.current)return P.current(b,E,F);F()}},[b,E,F,P]);const Y=i.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:g}),[v,g]),N=i.useMemo(()=>({reference:b,floating:E}),[b,E]),B=i.useMemo(()=>{const U={position:n,left:0,top:0};if(!N.floating)return U;const X=cf(N.floating,f.x),T=cf(N.floating,f.y);return l?{...U,transform:"translate("+X+"px, "+T+"px)",...cm(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:T}},[n,l,N.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:F,refs:Y,elements:N,floatingStyles:B}),[f,F,Y,N,B])}function Uo(e){const[t,n]=i.useState(void 0);return Oe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let c,l;if("borderBoxSize"in a){const s=a.borderBoxSize,u=Array.isArray(s)?s[0]:s;c=u.inlineSize,l=u.blockSize}else c=e.offsetWidth,l=e.offsetHeight;n({width:c,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const im="Popper",[lm,Ct]=le(im),[ry,sm]=lm(im),oy=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return i.createElement(ry,{scope:t,anchor:r,onAnchorChange:o},n)},ay="PopperAnchor",cy=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=sm(ay,n),c=i.useRef(null),l=z(t,c);return i.useEffect(()=>{a.onAnchorChange(r?.current||c.current)}),r?null:i.createElement(A.div,x({},o,{ref:l}))}),um="PopperContent",[iy,V5]=lm(um),ly=i.forwardRef((e,t)=>{var n,r,o,a,c,l,s,u;const{__scopePopper:f,side:d="bottom",sideOffset:p=0,align:$="center",alignOffset:y=0,arrowPadding:m=0,avoidCollisions:w=!0,collisionBoundary:h=[],collisionPadding:v=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:E="optimized",onPlaced:S,...C}=e,_=sm(um,f),[P,D]=i.useState(null),F=z(t,Pt=>D(Pt)),[H,Y]=i.useState(null),N=Uo(H),B=(n=N?.width)!==null&&n!==void 0?n:0,U=(r=N?.height)!==null&&r!==void 0?r:0,X=d+($!=="center"?"-"+$:""),T=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},k=Array.isArray(h)?h:[h],O=k.length>0,V={padding:T,boundary:k.filter(sy),altBoundary:O},{refs:j,floatingStyles:be,placement:me,isPositioned:Se,middlewareData:re}=ny({strategy:"fixed",placement:X,whileElementsMounted:(...Pt)=>Jg(...Pt,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[Dg({mainAxis:p+U,alignmentAxis:y}),w&&Og({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?Ig():void 0,...V}),w&&kg({...V}),Ag({...V,apply:({elements:Pt,rects:Kn,availableWidth:Fr,availableHeight:k1})=>{const{width:T1,height:M1}=Kn.reference,Qo=Pt.floating.style;Qo.setProperty("--radix-popper-available-width",`${Fr}px`),Qo.setProperty("--radix-popper-available-height",`${k1}px`),Qo.setProperty("--radix-popper-anchor-width",`${T1}px`),Qo.setProperty("--radix-popper-anchor-height",`${M1}px`)}}),H&&ty({element:H,padding:m}),uy({arrowWidth:B,arrowHeight:U}),b&&Tg({strategy:"referenceHidden",...V})]}),[L,Z]=dm(me),q=ae(S);Oe(()=>{Se&&q?.()},[Se,q]);const J=(o=re.arrow)===null||o===void 0?void 0:o.x,ee=(a=re.arrow)===null||a===void 0?void 0:a.y,te=((c=re.arrow)===null||c===void 0?void 0:c.centerOffset)!==0,[Ue,He]=i.useState();return Oe(()=>{P&&He(window.getComputedStyle(P).zIndex)},[P]),i.createElement("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...be,transform:Se?be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ue,"--radix-popper-transform-origin":[(l=re.transformOrigin)===null||l===void 0?void 0:l.x,(s=re.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},i.createElement(iy,{scope:f,placedSide:L,onArrowChange:Y,arrowX:J,arrowY:ee,shouldHideArrow:te},i.createElement(A.div,x({"data-side":L,"data-align":Z},C,{ref:F,style:{...C.style,animation:Se?void 0:"none",opacity:(u=re.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function sy(e){return e!==null}const uy=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,c;const{placement:l,rects:s,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=d?0:e.arrowWidth,$=d?0:e.arrowHeight,[y,m]=dm(l),w={start:"0%",center:"50%",end:"100%"}[m],h=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,v=((a=(c=u.arrow)===null||c===void 0?void 0:c.y)!==null&&a!==void 0?a:0)+$/2;let g="",b="";return y==="bottom"?(g=d?w:`${h}px`,b=`${-$}px`):y==="top"?(g=d?w:`${h}px`,b=`${s.floating.height+$}px`):y==="right"?(g=`${-$}px`,b=d?w:`${v}px`):y==="left"&&(g=`${s.floating.width+$}px`,b=d?w:`${v}px`),{data:{x:g,y:b}}}});function dm(e){const[t,n="center"]=e.split("-");return[t,n]}const fm=oy,nu=cy,Ho=ly,Ac=i.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Ys.createPortal(i.createElement(A.div,x({},o,{ref:t})),r):null});function dy(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const se=e=>{const{present:t,children:n}=e,r=fy(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=z(r.ref,o.ref);return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};se.displayName="Presence";function fy(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[l,s]=dy(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=ma(r.current);a.current=l==="mounted"?u:"none"},[l]),Oe(()=>{const u=r.current,f=o.current;if(f!==e){const p=a.current,$=ma(u);e?s("MOUNT"):$==="none"||u?.display==="none"?s("UNMOUNT"):s(f&&p!==$?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Oe(()=>{if(t){const u=d=>{const $=ma(r.current).includes(d.animationName);d.target===t&&$&&$n.flushSync(()=>s("ANIMATION_END"))},f=d=>{d.target===t&&(a.current=ma(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ma(e){return e?.animationName||"none"}const Ri="rovingFocusGroup.onEntryFocus",py={bubbles:!1,cancelable:!0},ru="RovingFocusGroup",[Al,pm,vy]=gn(ru),[my,yn]=le(ru,[vy]),[hy,$y]=my(ru),gy=i.forwardRef((e,t)=>i.createElement(Al.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(Al.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(yy,x({},e,{ref:t}))))),yy=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...f}=e,d=i.useRef(null),p=z(t,d),$=Ut(a),[y=null,m]=Ne({prop:c,defaultProp:l,onChange:s}),[w,h]=i.useState(!1),v=ae(u),g=pm(n),b=i.useRef(!1),[E,S]=i.useState(0);return i.useEffect(()=>{const C=d.current;if(C)return C.addEventListener(Ri,v),()=>C.removeEventListener(Ri,v)},[v]),i.createElement(hy,{scope:n,orientation:r,dir:$,loop:o,currentTabStopId:y,onItemFocus:i.useCallback(C=>m(C),[m]),onItemShiftTab:i.useCallback(()=>h(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(C=>C+1),[]),onFocusableItemRemove:i.useCallback(()=>S(C=>C-1),[])},i.createElement(A.div,x({tabIndex:w||E===0?-1:0,"data-orientation":r},f,{ref:p,style:{outline:"none",...e.style},onMouseDown:R(e.onMouseDown,()=>{b.current=!0}),onFocus:R(e.onFocus,C=>{const _=!b.current;if(C.target===C.currentTarget&&_&&!w){const P=new CustomEvent(Ri,py);if(C.currentTarget.dispatchEvent(P),!P.defaultPrevented){const D=g().filter(B=>B.focusable),F=D.find(B=>B.active),H=D.find(B=>B.id===y),N=[F,H,...D].filter(Boolean).map(B=>B.ref.current);vm(N)}}b.current=!1}),onBlur:R(e.onBlur,()=>h(!1))})))}),wy="RovingFocusGroupItem",by=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...c}=e,l=nt(),s=a||l,u=$y(wy,n),f=u.currentTabStopId===s,d=pm(n),{onFocusableItemAdd:p,onFocusableItemRemove:$}=u;return i.useEffect(()=>{if(r)return p(),()=>$()},[r,p,$]),i.createElement(Al.ItemSlot,{scope:n,id:s,focusable:r,active:o},i.createElement(A.span,x({tabIndex:f?0:-1,"data-orientation":u.orientation},c,{ref:t,onMouseDown:R(e.onMouseDown,y=>{r?u.onItemFocus(s):y.preventDefault()}),onFocus:R(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:R(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){u.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const m=Cy(y,u.orientation,u.dir);if(m!==void 0){y.preventDefault();let h=d().filter(v=>v.focusable).map(v=>v.ref.current);if(m==="last")h.reverse();else if(m==="prev"||m==="next"){m==="prev"&&h.reverse();const v=h.indexOf(y.currentTarget);h=u.loop?Sy(h,v+1):h.slice(v+1)}setTimeout(()=>vm(h))}})})))}),Ey={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xy(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Cy(e,t,n){const r=xy(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Ey[r]}function vm(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Sy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Nc=gy,Lc=by;var _y=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Gn=new WeakMap,ha=new WeakMap,$a={},ki=0,mm=function(e){return e&&(e.host||mm(e.parentNode))},Py=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=mm(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ry=function(e,t,n,r){var o=Py(t,Array.isArray(e)?e:[e]);$a[n]||($a[n]=new WeakMap);var a=$a[n],c=[],l=new Set,s=new Set(o),u=function(d){!d||l.has(d)||(l.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||s.has(d)||Array.prototype.forEach.call(d.children,function(p){if(l.has(p))f(p);else{var $=p.getAttribute(r),y=$!==null&&$!=="false",m=(Gn.get(p)||0)+1,w=(a.get(p)||0)+1;Gn.set(p,m),a.set(p,w),c.push(p),m===1&&y&&ha.set(p,!0),w===1&&p.setAttribute(n,"true"),y||p.setAttribute(r,"true")}})};return f(t),l.clear(),ki++,function(){c.forEach(function(d){var p=Gn.get(d)-1,$=a.get(d)-1;Gn.set(d,p),a.set(d,$),p||(ha.has(d)||d.removeAttribute(r),ha.delete(d)),$||d.removeAttribute(n)}),ki--,ki||(Gn=new WeakMap,Gn=new WeakMap,ha=new WeakMap,$a={})}},Wo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||_y(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Ry(r,o,n,"aria-hidden")):function(){return null}},ke=function(){return ke=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return By;var t=Uy(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Wy=au(),Ky=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,l=e.gap;return n===void 0&&(n="margin"),` +`+a.stack}return{value:e,source:t,stack:o,digest:null}}function bi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _g=typeof WeakMap=="function"?WeakMap:Map;function bv(e,t,n){n=Ot(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oc||(oc=!0,Pl=r),gl(e,t)},n}function Ev(e,t,n){n=Ot(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){gl(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){gl(e,t),typeof r!="function"&&(an===null?an=new Set([this]):an.add(this));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:""})}),n}function Rd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _g;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Vg.bind(null,e,t,n),t.then(e,e))}function kd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Td(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ot(-1,1),t.tag=2,on(n,t,1))),n.lanes|=1),e)}var Pg=Bt.ReactCurrentOwner,Fe=!1;function Me(e,t,n,r){t.child=e===null?ev(t,null,n,r):br(t,e.child,n,r)}function Md(e,t,n,r,o){n=n.render;var a=t.ref;return vr(t,o),r=Ds(e,t,n,r,a,o),n=Os(),e!==null&&!Fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Lt(e,t,o)):(ie&&n&&ws(t),t.flags|=1,Me(e,t,r,o),t.child)}function Dd(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!Hs(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,xv(e,t,a,r,o)):(e=Na(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var c=a.memoizedProps;if(n=n.compare,n=n!==null?n:ho,n(c,r)&&e.ref===t.ref)return Lt(e,t,o)}return t.flags|=1,e=ln(a,r),e.ref=t.ref,e.return=t,t.child=e}function xv(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(ho(a,r)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=r=a,(e.lanes&o)!==0)e.flags&131072&&(Fe=!0);else return t.lanes=e.lanes,Lt(e,t,o)}return $l(e,t,n,r,o)}function Cv(e,t,n){var r=t.pendingProps,o=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(sr,We),We|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ne(sr,We),We|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,ne(sr,We),We|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,ne(sr,We),We|=r;return Me(e,t,o,n),t.child}function Sv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $l(e,t,n,r,o){var a=Ve(n)?Mn:Te.current;return a=yr(t,a),vr(t,o),n=Ds(e,t,n,r,a,o),r=Os(),e!==null&&!Fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Lt(e,t,o)):(ie&&r&&ws(t),t.flags|=1,Me(e,t,n,o),t.child)}function Od(e,t,n,r,o){if(Ve(n)){var a=!0;Ya(t)}else a=!1;if(vr(t,o),t.stateNode===null)Oa(e,t),qp(t,n,r),hl(t,n,r,o),r=!0;else if(e===null){var c=t.stateNode,l=t.memoizedProps;c.props=l;var s=c.context,u=n.contextType;typeof u=="object"&&u!==null?u=rt(u):(u=Ve(n)?Mn:Te.current,u=yr(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof c.getSnapshotBeforeUpdate=="function";d||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(l!==r||s!==u)&&Cd(t,c,r,u),Xt=!1;var p=t.memoizedState;c.state=p,Ja(t,r,c,o),s=t.memoizedState,l!==r||p!==s||ze.current||Xt?(typeof f=="function"&&(ml(t,n,f,r),s=t.memoizedState),(l=Xt||xd(t,n,l,r,p,s,u))?(d||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),c.props=r,c.state=s,c.context=u,r=l):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,Qp(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:st(t.type,l),c.props=u,d=t.pendingProps,p=c.context,s=n.contextType,typeof s=="object"&&s!==null?s=rt(s):(s=Ve(n)?Mn:Te.current,s=yr(t,s));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(l!==d||p!==s)&&Cd(t,c,r,s),Xt=!1,p=t.memoizedState,c.state=p,Ja(t,r,c,o);var y=t.memoizedState;l!==d||p!==y||ze.current||Xt?(typeof g=="function"&&(ml(t,n,g,r),y=t.memoizedState),(u=Xt||xd(t,n,u,r,p,y,s)||!1)?(f||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,y,s),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,y,s)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),c.props=r,c.state=y,c.context=s,r=u):(typeof c.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return yl(e,t,n,r,a,o)}function yl(e,t,n,r,o,a){Sv(e,t);var c=(t.flags&128)!==0;if(!r&&!c)return o&&$d(t,n,!1),Lt(e,t,a);r=t.stateNode,Pg.current=t;var l=c&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&c?(t.child=br(t,e.child,null,a),t.child=br(t,null,l,a)):Me(e,t,l,a),t.memoizedState=r.state,o&&$d(t,n,!0),t.child}function _v(e){var t=e.stateNode;t.pendingContext?gd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gd(e,t.context,!1),Rs(e,t.containerInfo)}function Id(e,t,n,r,o){return wr(),Es(o),t.flags|=256,Me(e,t,n,r),t.child}var wl={dehydrated:null,treeContext:null,retryLane:0};function bl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Pv(e,t,n){var r=t.pendingProps,o=ue.current,a=!1,c=(t.flags&128)!==0,l;if((l=c)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ne(ue,o&1),e===null)return pl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=r.children,e=r.fallback,a?(r=t.mode,a=t.child,c={mode:"hidden",children:c},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=c):a=_c(c,r,0,null),e=kn(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=bl(n),t.memoizedState=wl,e):Ns(t,c));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return Rg(e,t,c,r,l,o,n);if(a){a=r.fallback,c=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return!(c&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=ln(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?a=ln(l,a):(a=kn(a,c,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,c=e.child.memoizedState,c=c===null?bl(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},a.memoizedState=c,a.childLanes=e.childLanes&~n,t.memoizedState=wl,r}return a=e.child,e=a.sibling,r=ln(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ns(e,t){return t=_c({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ua(e,t,n,r){return r!==null&&Es(r),br(t,e.child,null,n),e=Ns(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Rg(e,t,n,r,o,a,c){if(n)return t.flags&256?(t.flags&=-257,r=bi(Error(M(422))),ua(e,t,c,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=_c({mode:"visible",children:r.children},o,0,null),a=kn(a,o,c,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&br(t,e.child,null,c),t.child.memoizedState=bl(c),t.memoizedState=wl,a);if(!(t.mode&1))return ua(e,t,c,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,a=Error(M(419)),r=bi(a,r,void 0),ua(e,t,c,r)}if(l=(c&e.childLanes)!==0,Fe||l){if(r=we,r!==null){switch(c&-c){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|c)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,Nt(e,o),pt(r,e,o,-1))}return Us(),r=bi(Error(M(421))),ua(e,t,c,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Bg.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,je=rn(o.nextSibling),Ge=t,ie=!0,dt=null,e!==null&&(qe[Je++]=Mt,qe[Je++]=Dt,qe[Je++]=Dn,Mt=e.id,Dt=e.overflow,Dn=t),t=Ns(t,r.children),t.flags|=4096,t)}function Ad(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vl(e.return,t,n)}function Ei(e,t,n,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Rv(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Me(e,t,r.children,n),r=ue.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ad(e,n,t);else if(e.tag===19)Ad(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ne(ue,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ec(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ei(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ec(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ei(t,!0,n,null,a);break;case"together":Ei(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),In|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=ln(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ln(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kg(e,t,n){switch(t.tag){case 3:_v(t),wr();break;case 5:tv(t);break;case 1:Ve(t.type)&&Ya(t);break;case 4:Rs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ne(Za,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ne(ue,ue.current&1),t.flags|=128,null):n&t.child.childLanes?Pv(e,t,n):(ne(ue,ue.current&1),e=Lt(e,t,n),e!==null?e.sibling:null);ne(ue,ue.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Rv(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ne(ue,ue.current),r)break;return null;case 22:case 23:return t.lanes=0,Cv(e,t,n)}return Lt(e,t,n)}var kv,El,Tv,Mv;kv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};El=function(){};Tv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Pn(Et.current);var a=null;switch(n){case"input":o=Wi(e,o),r=Wi(e,r),a=[];break;case"select":o=fe({},o,{value:void 0}),r=fe({},r,{value:void 0}),a=[];break;case"textarea":o=Gi(e,o),r=Gi(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ja)}Xi(n,r);var c;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(c in l)l.hasOwnProperty(c)&&(n||(n={}),n[c]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(lo.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=o?.[u],r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(c in l)!l.hasOwnProperty(c)||s&&s.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in s)s.hasOwnProperty(c)&&l[c]!==s[c]&&(n||(n={}),n[c]=s[c])}else n||(a||(a=[]),a.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(lo.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&oe("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};Mv=function(e,t,n,r){n!==r&&(t.flags|=4)};function Kr(e,t){if(!ie)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Tg(e,t,n){var r=t.pendingProps;switch(bs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Ve(t.type)&&Ga(),Pe(t),null;case 3:return r=t.stateNode,Er(),ce(ze),ce(Te),Ts(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(la(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,dt!==null&&(Tl(dt),dt=null))),El(e,t),Pe(t),null;case 5:ks(t);var o=Pn(bo.current);if(n=t.type,e!==null&&t.stateNode!=null)Tv(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return Pe(t),null}if(e=Pn(Et.current),la(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[wt]=t,r[yo]=a,e=(t.mode&1)!==0,n){case"dialog":oe("cancel",r),oe("close",r);break;case"iframe":case"object":case"embed":oe("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),n==="select"&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[wt]=t,e[yo]=r,kv(e,t,!1,!1),t.stateNode=e;e:{switch(c=Qi(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oCr&&(t.flags|=128,r=!0,Kr(a,!1),t.lanes=4194304)}else{if(!r)if(e=ec(c),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!ie)return Pe(t),null}else 2*ve()-a.renderingStartTime>Cr&&n!==1073741824&&(t.flags|=128,r=!0,Kr(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(n=a.last,n!==null?n.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ve(),t.sibling=null,n=ue.current,ne(ue,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return Bs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?We&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function Mg(e,t){switch(bs(t),t.tag){case 1:return Ve(t.type)&&Ga(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Er(),ce(ze),ce(Te),Ts(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ks(t),null;case 13:if(ce(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(ue),null;case 4:return Er(),null;case 10:return Ss(t.type._context),null;case 22:case 23:return Bs(),null;case 24:return null;default:return null}}var da=!1,Re=!1,Dg=typeof WeakSet=="function"?WeakSet:Set,I=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function xl(e,t,n){try{n()}catch(r){pe(e,t,r)}}var Nd=!1;function Og(e,t){if(cl=Ha,e=Ap(),ys(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var c=0,l=-1,s=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(l=c+o),d!==a||r!==0&&d.nodeType!==3||(s=c+r),d.nodeType===3&&(c+=d.nodeValue.length),(g=d.firstChild)!==null;)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=c),p===a&&++f===r&&(s=c),(g=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=g}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(il={focusedElem:e,selectionRange:n},Ha=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,w=y.memoizedState,h=t.stateNode,v=h.getSnapshotBeforeUpdate(t.elementType===t.type?m:st(t.type,m),w);h.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var $=t.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(b){pe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return y=Nd,Nd=!1,y}function ro(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&xl(t,n,a)}o=o.next}while(o!==r)}}function Cc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Cl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Dv(e){var t=e.alternate;t!==null&&(e.alternate=null,Dv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wt],delete t[yo],delete t[ul],delete t[mg],delete t[hg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ov(e){return e.tag===5||e.tag===3||e.tag===4}function Ld(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ov(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Sl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ja));else if(r!==4&&(e=e.child,e!==null))for(Sl(e,t,n),e=e.sibling;e!==null;)Sl(e,t,n),e=e.sibling}function _l(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_l(e,t,n),e=e.sibling;e!==null;)_l(e,t,n),e=e.sibling}var Ee=null,ut=!1;function jt(e,t,n){for(n=n.child;n!==null;)Iv(e,t,n),n=n.sibling}function Iv(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(hc,n)}catch{}switch(n.tag){case 5:Re||lr(n,t);case 6:var r=Ee,o=ut;Ee=null,jt(e,t,n),Ee=r,ut=o,Ee!==null&&(ut?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(ut?(e=Ee,n=n.stateNode,e.nodeType===8?mi(e.parentNode,n):e.nodeType===1&&mi(e,n),vo(e)):mi(Ee,n.stateNode));break;case 4:r=Ee,o=ut,Ee=n.stateNode.containerInfo,ut=!0,jt(e,t,n),Ee=r,ut=o;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,c=a.destroy;a=a.tag,c!==void 0&&(a&2||a&4)&&xl(n,t,c),o=o.next}while(o!==r)}jt(e,t,n);break;case 1:if(!Re&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){pe(n,t,l)}jt(e,t,n);break;case 21:jt(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,jt(e,t,n),Re=r):jt(e,t,n);break;default:jt(e,t,n)}}function Fd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dg),t.forEach(function(r){var o=Ug.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function lt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=c),r&=~a}if(r=o,r=ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ag(r/1960))-r,10e?16:e,Jt===null)var r=!1;else{if(e=Jt,Jt=null,ac=0,G&6)throw Error(M(331));var o=G;for(G|=4,I=e.current;I!==null;){var a=I,c=a.child;if(I.flags&16){var l=a.deletions;if(l!==null){for(var s=0;sve()-zs?Rn(e,0):Fs|=n),Be(e,t)}function Uv(e,t){t===0&&(e.mode&1?(t=na,na<<=1,!(na&130023424)&&(na=4194304)):t=1);var n=De();e=Nt(e,t),e!==null&&(No(e,t,n),Be(e,n))}function Bg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Uv(e,n)}function Ug(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),Uv(e,n)}var Hv;Hv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ze.current)Fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fe=!1,kg(e,t,n);Fe=!!(e.flags&131072)}else Fe=!1,ie&&t.flags&1048576&&jp(t,Qa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oa(e,t),e=t.pendingProps;var o=yr(t,Te.current);vr(t,n),o=Ds(null,t,r,e,o,n);var a=Os();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(r)?(a=!0,Ya(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ps(t),o.updater=Ec,t.stateNode=o,o._reactInternals=t,hl(t,r,e,n),t=yl(null,t,r,!0,a,n)):(t.tag=0,ie&&a&&ws(t),Me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Wg(r),e=st(r,e),o){case 0:t=$l(null,t,r,e,n);break e;case 1:t=Od(null,t,r,e,n);break e;case 11:t=Md(null,t,r,e,n);break e;case 14:t=Dd(null,t,r,st(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),$l(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),Od(e,t,r,o,n);case 3:e:{if(_v(t),e===null)throw Error(M(387));r=t.pendingProps,a=t.memoizedState,o=a.element,Qp(e,t),Ja(t,r,null,n);var c=t.memoizedState;if(r=c.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=xr(Error(M(423)),t),t=Id(e,t,r,n,o);break e}else if(r!==o){o=xr(Error(M(424)),t),t=Id(e,t,r,n,o);break e}else for(je=rn(t.stateNode.containerInfo.firstChild),Ge=t,ie=!0,dt=null,n=ev(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wr(),r===o){t=Lt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return tv(t),e===null&&pl(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,c=o.children,ll(r,o)?c=null:a!==null&&ll(r,a)&&(t.flags|=32),Sv(e,t),Me(e,t,c,n),t.child;case 6:return e===null&&pl(t),null;case 13:return Pv(e,t,n);case 4:return Rs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=br(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),Md(e,t,r,o,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,c=o.value,ne(Za,r._currentValue),r._currentValue=c,a!==null)if(mt(a.value,c)){if(a.children===o.children&&!ze.current){t=Lt(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){c=a.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=Ot(-1,n&-n),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),vl(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)c=a.type===t.type?null:a.child;else if(a.tag===18){if(c=a.return,c===null)throw Error(M(341));c.lanes|=n,l=c.alternate,l!==null&&(l.lanes|=n),vl(c,n,t),c=a.sibling}else c=a.child;if(c!==null)c.return=a;else for(c=a;c!==null;){if(c===t){c=null;break}if(a=c.sibling,a!==null){a.return=c.return,c=a;break}c=c.return}a=c}Me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,vr(t,n),o=rt(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=st(r,t.pendingProps),o=st(r.type,o),Dd(e,t,r,o,n);case 15:return xv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:st(r,o),Oa(e,t),t.tag=1,Ve(r)?(e=!0,Ya(t)):e=!1,vr(t,n),qp(t,r,o),hl(t,r,o,n),yl(null,t,r,!0,e,n);case 19:return Rv(e,t,n);case 22:return Cv(e,t,n)}throw Error(M(156,t.tag))};function Wv(e,t){return hp(e,t)}function Hg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function et(e,t,n,r){return new Hg(e,t,n,r)}function Hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wg(e){if(typeof e=="function")return Hs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ls)return 11;if(e===ss)return 14}return 2}function ln(e,t){var n=e.alternate;return n===null?(n=et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Na(e,t,n,r,o,a){var c=2;if(r=e,typeof e=="function")Hs(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case Jn:return kn(n.children,o,a,t);case is:c=8,o|=8;break;case Vi:return e=et(12,n,t,o|2),e.elementType=Vi,e.lanes=a,e;case Bi:return e=et(13,n,t,o),e.elementType=Bi,e.lanes=a,e;case Ui:return e=et(19,n,t,o),e.elementType=Ui,e.lanes=a,e;case Jf:return _c(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zf:c=10;break e;case qf:c=9;break e;case ls:c=11;break e;case ss:c=14;break e;case Yt:c=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=et(c,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function kn(e,t,n,r){return e=et(7,e,r,t),e.lanes=n,e}function _c(e,t,n,r){return e=et(22,e,r,t),e.elementType=Jf,e.lanes=n,e.stateNode={isHidden:!1},e}function xi(e,t,n){return e=et(6,e,null,t),e.lanes=n,e}function Ci(e,t,n){return t=et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kg(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oi(0),this.expirationTimes=oi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ws(e,t,n,r,o,a,c,l,s){return e=new Kg(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=et(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ps(a),e}function jg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yv)}catch(e){console.error(e)}}Yv(),jf.exports=Qe;var $n=jf.exports;const Ys=Nf($n);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>Zg(n,t))}function z(...e){return i.useCallback(Vo(...e),e)}const dn=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(qg);if(a){const c=a.props.children,l=o.map(s=>s===a?i.Children.count(c)>1?i.Children.only(null):i.isValidElement(c)?c.props.children:null:s);return i.createElement(Ml,x({},r,{ref:t}),i.isValidElement(c)?i.cloneElement(c,void 0,l):null)}return i.createElement(Ml,x({},r,{ref:t}),n)});dn.displayName="Slot";const Ml=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...Jg(r,n.props),ref:t?Vo(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});Ml.displayName="SlotClone";const Xs=({children:e})=>i.createElement(i.Fragment,null,e);function qg(e){return i.isValidElement(e)&&e.type===Xs}function Jg(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{a(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const e$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],A=e$.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...c}=r,l=a?dn:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(l,x({},c,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Xv(e,t){e&&$n.flushSync(()=>e.dispatchEvent(t))}const t$=i.forwardRef((e,t)=>i.createElement(A.label,x({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),VE=t$;function R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function n$(e,t){const n=i.createContext(t);function r(a){const{children:c,...l}=a,s=i.useMemo(()=>l,Object.values(l));return i.createElement(n.Provider,{value:s},c)}function o(a){const c=i.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function le(e,t=[]){let n=[];function r(a,c){const l=i.createContext(c),s=n.length;n=[...n,c];function u(d){const{scope:p,children:g,...y}=d,m=p?.[e][s]||l,w=i.useMemo(()=>y,Object.values(y));return i.createElement(m.Provider,{value:w},g)}function f(d,p){const g=p?.[e][s]||l,y=i.useContext(g);if(y)return y;if(c!==void 0)return c;throw new Error(`\`${d}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,f]}const o=()=>{const a=n.map(c=>i.createContext(c));return function(l){const s=l?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,r$(o,...t)]}function r$(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const c=r.reduce((l,{useScope:s,scopeName:u})=>{const d=s(a)[`__scope${u}`];return{...l,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function ae(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ne({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=o$({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r,l=ae(n),s=i.useCallback(u=>{if(a){const d=typeof u=="function"?u(e):u;d!==e&&l(d)}else o(u)},[a,e,o,l]);return[c,s]}function o$({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=ae(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function yn(e){const t=e+"CollectionProvider",[n,r]=le(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=g=>{const{scope:y,children:m}=g,w=W.useRef(null),h=W.useRef(new Map).current;return W.createElement(o,{scope:y,itemMap:h,collectionRef:w},m)},l=e+"CollectionSlot",s=W.forwardRef((g,y)=>{const{scope:m,children:w}=g,h=a(l,m),v=z(y,h.collectionRef);return W.createElement(dn,{ref:v},w)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",d=W.forwardRef((g,y)=>{const{scope:m,children:w,...h}=g,v=W.useRef(null),$=z(y,v),b=a(u,m);return W.useEffect(()=>(b.itemMap.set(v,{ref:v,...h}),()=>void b.itemMap.delete(v))),W.createElement(dn,{[f]:"",ref:$},w)});function p(g){const y=a(e+"CollectionConsumer",g);return W.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const h=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((b,E)=>h.indexOf(b.ref.current)-h.indexOf(E.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:c,Slot:s,ItemSlot:d},p,r]}const a$=i.createContext(void 0);function Ut(e){const t=i.useContext(a$);return e||t||"ltr"}function c$(e,t=globalThis?.document){const n=ae(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Dl="dismissableLayer.update",i$="dismissableLayer.pointerDownOutside",l$="dismissableLayer.focusOutside";let jd;const s$=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vn=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:l,onDismiss:s,...u}=e,f=i.useContext(s$),[d,p]=i.useState(null),g=(n=d?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,y]=i.useState({}),m=z(t,_=>p(_)),w=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=w.indexOf(h),$=d?w.indexOf(d):-1,b=f.layersWithOutsidePointerEventsDisabled.size>0,E=$>=v,S=u$(_=>{const P=_.target,D=[...f.branches].some(F=>F.contains(P));!E||D||(a?.(_),l?.(_),_.defaultPrevented||s?.())},g),C=d$(_=>{const P=_.target;[...f.branches].some(F=>F.contains(P))||(c?.(_),l?.(_),_.defaultPrevented||s?.())},g);return c$(_=>{$===f.layers.size-1&&(o?.(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},g),i.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(jd=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Gd(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=jd)}},[d,g,r,f]),i.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Gd())},[d,f]),i.useEffect(()=>{const _=()=>y({});return document.addEventListener(Dl,_),()=>document.removeEventListener(Dl,_)},[]),i.createElement(A.div,x({},u,{ref:m,style:{pointerEvents:b?E?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,C.onFocusCapture),onBlurCapture:R(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,S.onPointerDownCapture)}))});function u$(e,t=globalThis?.document){const n=ae(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let u=function(){Qv(i$,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function d$(e,t=globalThis?.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&Qv(l$,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Gd(){const e=new CustomEvent(Dl);document.dispatchEvent(e)}function Qv(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Xv(o,a):o.dispatchEvent(a)}let Si=0;function Mc(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Yd()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Yd()),Si++,()=>{Si===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Si--}},[])}function Yd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const _i="focusScope.autoFocusOnMount",Pi="focusScope.autoFocusOnUnmount",Xd={bubbles:!1,cancelable:!0},Dc=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[l,s]=i.useState(null),u=ae(o),f=ae(a),d=i.useRef(null),p=z(t,m=>s(m)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let m=function($){if(g.paused||!l)return;const b=$.target;l.contains(b)?d.current=b:Gt(d.current,{select:!0})},w=function($){if(g.paused||!l)return;const b=$.relatedTarget;b!==null&&(l.contains(b)||Gt(d.current,{select:!0}))},h=function($){if(document.activeElement===document.body)for(const E of $)E.removedNodes.length>0&&Gt(l)};document.addEventListener("focusin",m),document.addEventListener("focusout",w);const v=new MutationObserver(h);return l&&v.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",w),v.disconnect()}}},[r,l,g.paused]),i.useEffect(()=>{if(l){Zd.add(g);const m=document.activeElement;if(!l.contains(m)){const h=new CustomEvent(_i,Xd);l.addEventListener(_i,u),l.dispatchEvent(h),h.defaultPrevented||(f$(g$(Zv(l)),{select:!0}),document.activeElement===m&&Gt(l))}return()=>{l.removeEventListener(_i,u),setTimeout(()=>{const h=new CustomEvent(Pi,Xd);l.addEventListener(Pi,f),l.dispatchEvent(h),h.defaultPrevented||Gt(m??document.body,{select:!0}),l.removeEventListener(Pi,f),Zd.remove(g)},0)}}},[l,u,f,g]);const y=i.useCallback(m=>{if(!n&&!r||g.paused)return;const w=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,h=document.activeElement;if(w&&h){const v=m.currentTarget,[$,b]=p$(v);$&&b?!m.shiftKey&&h===b?(m.preventDefault(),n&&Gt($,{select:!0})):m.shiftKey&&h===$&&(m.preventDefault(),n&&Gt(b,{select:!0})):h===v&&m.preventDefault()}},[n,r,g.paused]);return i.createElement(A.div,x({tabIndex:-1},c,{ref:p,onKeyDown:y}))});function f$(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Gt(r,{select:t}),document.activeElement!==n)return}function p$(e){const t=Zv(e),n=Qd(t,e),r=Qd(t.reverse(),e);return[n,r]}function Zv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Qd(e,t){for(const n of e)if(!v$(n,{upTo:t}))return n}function v$(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}function m$(e){return e instanceof HTMLInputElement&&"select"in e}function Gt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&m$(e)&&t&&e.select()}}const Zd=h$();function h$(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=qd(e,t),e.unshift(t)},remove(t){var n;e=qd(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function qd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function g$(e){return e.filter(t=>t.tagName!=="A")}const Oe=globalThis?.document?i.useLayoutEffect:()=>{},$$=Kf["useId".toString()]||(()=>{});let y$=0;function nt(e){const[t,n]=i.useState($$());return Oe(()=>{e||n(r=>r??String(y$++))},[e]),e||(t?`radix-${t}`:"")}const w$=["top","right","bottom","left"],fn=Math.min,Ke=Math.max,lc=Math.round,va=Math.floor,pn=e=>({x:e,y:e}),b$={left:"right",right:"left",bottom:"top",top:"bottom"},E$={start:"end",end:"start"};function Ol(e,t,n){return Ke(e,fn(t,n))}function Ft(e,t){return typeof e=="function"?e(t):e}function zt(e){return e.split("-")[0]}function Dr(e){return e.split("-")[1]}function Qs(e){return e==="x"?"y":"x"}function Zs(e){return e==="y"?"height":"width"}function Or(e){return["top","bottom"].includes(zt(e))?"y":"x"}function qs(e){return Qs(Or(e))}function x$(e,t,n){n===void 0&&(n=!1);const r=Dr(e),o=qs(e),a=Zs(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(c=sc(c)),[c,sc(c)]}function C$(e){const t=sc(e);return[Il(e),t,Il(t)]}function Il(e){return e.replace(/start|end/g,t=>E$[t])}function S$(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:c;default:return[]}}function _$(e,t,n,r){const o=Dr(e);let a=S$(zt(e),n==="start",r);return o&&(a=a.map(c=>c+"-"+o),t&&(a=a.concat(a.map(Il)))),a}function sc(e){return e.replace(/left|right|bottom|top/g,t=>b$[t])}function P$(e){return{top:0,right:0,bottom:0,left:0,...e}}function qv(e){return typeof e!="number"?P$(e):{top:e,right:e,bottom:e,left:e}}function uc(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Jd(e,t,n){let{reference:r,floating:o}=e;const a=Or(t),c=qs(t),l=Zs(c),s=zt(t),u=a==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let g;switch(s){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(Dr(t)){case"start":g[c]-=p*(n&&u?-1:1);break;case"end":g[c]+=p*(n&&u?-1:1);break}return g}const R$=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:c}=n,l=a.filter(Boolean),s=await(c.isRTL==null?void 0:c.isRTL(t));let u=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Jd(u,r,s),p=r,g={},y=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:c,elements:l,middlewareData:s}=t,{element:u,padding:f=0}=Ft(e,t)||{};if(u==null)return{};const d=qv(f),p={x:n,y:r},g=qs(o),y=Zs(g),m=await c.getDimensions(u),w=g==="y",h=w?"top":"left",v=w?"bottom":"right",$=w?"clientHeight":"clientWidth",b=a.reference[y]+a.reference[g]-p[g]-a.floating[y],E=p[g]-a.reference[g],S=await(c.getOffsetParent==null?void 0:c.getOffsetParent(u));let C=S?S[$]:0;(!C||!await(c.isElement==null?void 0:c.isElement(S)))&&(C=l.floating[$]||a.floating[y]);const _=b/2-E/2,P=C/2-m[y]/2-1,D=fn(d[h],P),F=fn(d[v],P),H=D,Y=C-m[y]-F,N=C/2-m[y]/2+_,B=Ol(H,N,Y),U=!s.arrow&&Dr(o)!=null&&N!=B&&a.reference[y]/2-(NH<=0)){var P,D;const H=(((P=a.flip)==null?void 0:P.index)||0)+1,Y=E[H];if(Y)return{data:{index:H,overflows:_},reset:{placement:Y}};let N=(D=_.filter(B=>B.overflows[0]<=0).sort((B,U)=>B.overflows[1]-U.overflows[1])[0])==null?void 0:D.placement;if(!N)switch(g){case"bestFit":{var F;const B=(F=_.map(U=>[U.placement,U.overflows.filter(X=>X>0).reduce((X,T)=>X+T,0)]).sort((U,X)=>U[1]-X[1])[0])==null?void 0:F[0];B&&(N=B);break}case"initialPlacement":N=l;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function tf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nf(e){return w$.some(t=>e[t]>=0)}const T$=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ft(e,t);switch(r){case"referenceHidden":{const a=await _o(t,{...o,elementContext:"reference"}),c=tf(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:nf(c)}}}case"escaped":{const a=await _o(t,{...o,altBoundary:!0}),c=tf(a,n.floating);return{data:{escapedOffsets:c,escaped:nf(c)}}}default:return{}}}}};async function M$(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=zt(n),l=Dr(n),s=Or(n)==="y",u=["left","top"].includes(c)?-1:1,f=a&&s?-1:1,d=Ft(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof y=="number"&&(g=l==="end"?y*-1:y),s?{x:g*f,y:p*u}:{x:p*u,y:g*f}}const D$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await M$(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},O$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:w=>{let{x:h,y:v}=w;return{x:h,y:v}}},...s}=Ft(e,t),u={x:n,y:r},f=await _o(t,s),d=Or(zt(o)),p=Qs(d);let g=u[p],y=u[d];if(a){const w=p==="y"?"top":"left",h=p==="y"?"bottom":"right",v=g+f[w],$=g-f[h];g=Ol(v,g,$)}if(c){const w=d==="y"?"top":"left",h=d==="y"?"bottom":"right",v=y+f[w],$=y-f[h];y=Ol(v,y,$)}const m=l.fn({...t,[p]:g,[d]:y});return{...m,data:{x:m.x-n,y:m.y-r}}}}},I$=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:c}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=Ft(e,t),f={x:n,y:r},d=Or(o),p=Qs(d);let g=f[p],y=f[d];const m=Ft(l,t),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const $=p==="y"?"height":"width",b=a.reference[p]-a.floating[$]+w.mainAxis,E=a.reference[p]+a.reference[$]-w.mainAxis;gE&&(g=E)}if(u){var h,v;const $=p==="y"?"width":"height",b=["top","left"].includes(zt(o)),E=a.reference[d]-a.floating[$]+(b&&((h=c.offset)==null?void 0:h[d])||0)+(b?0:w.crossAxis),S=a.reference[d]+a.reference[$]+(b?0:((v=c.offset)==null?void 0:v[d])||0)-(b?w.crossAxis:0);yS&&(y=S)}return{[p]:g,[d]:y}}}},A$=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:c=()=>{},...l}=Ft(e,t),s=await _o(t,l),u=zt(n),f=Dr(n),d=Or(n)==="y",{width:p,height:g}=r.floating;let y,m;u==="top"||u==="bottom"?(y=u,m=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=u,y=f==="end"?"top":"bottom");const w=g-s[y],h=p-s[m],v=!t.middlewareData.shift;let $=w,b=h;if(d){const S=p-s.left-s.right;b=f||v?fn(h,S):S}else{const S=g-s.top-s.bottom;$=f||v?fn(w,S):S}if(v&&!f){const S=Ke(s.left,0),C=Ke(s.right,0),_=Ke(s.top,0),P=Ke(s.bottom,0);d?b=p-2*(S!==0||C!==0?S+C:Ke(s.left,s.right)):$=g-2*(_!==0||P!==0?_+P:Ke(s.top,s.bottom))}await c({...t,availableWidth:b,availableHeight:$});const E=await o.getDimensions(a.floating);return p!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function vn(e){return Jv(e)?(e.nodeName||"").toLowerCase():"#document"}function Ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ht(e){var t;return(t=(Jv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jv(e){return e instanceof Node||e instanceof Ye(e).Node}function Vt(e){return e instanceof Element||e instanceof Ye(e).Element}function xt(e){return e instanceof HTMLElement||e instanceof Ye(e).HTMLElement}function rf(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ye(e).ShadowRoot}function Bo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function N$(e){return["table","td","th"].includes(vn(e))}function Js(e){const t=eu(),n=at(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function L$(e){let t=Sr(e);for(;xt(t)&&!Oc(t);){if(Js(t))return t;t=Sr(t)}return null}function eu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Oc(e){return["html","body","#document"].includes(vn(e))}function at(e){return Ye(e).getComputedStyle(e)}function Ic(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Sr(e){if(vn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rf(e)&&e.host||Ht(e);return rf(t)?t.host:t}function em(e){const t=Sr(e);return Oc(t)?e.ownerDocument?e.ownerDocument.body:e.body:xt(t)&&Bo(t)?t:em(t)}function Po(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=em(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),c=Ye(o);return a?t.concat(c,c.visualViewport||[],Bo(o)?o:[],c.frameElement&&n?Po(c.frameElement):[]):t.concat(o,Po(o,[],n))}function tm(e){const t=at(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xt(e),a=o?e.offsetWidth:n,c=o?e.offsetHeight:r,l=lc(n)!==a||lc(r)!==c;return l&&(n=a,r=c),{width:n,height:r,$:l}}function tu(e){return Vt(e)?e:e.contextElement}function hr(e){const t=tu(e);if(!xt(t))return pn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=tm(t);let c=(a?lc(n.width):n.width)/r,l=(a?lc(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}const F$=pn(0);function nm(e){const t=Ye(e);return!eu()||!t.visualViewport?F$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function z$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ye(e)?!1:t}function Nn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=tu(e);let c=pn(1);t&&(r?Vt(r)&&(c=hr(r)):c=hr(e));const l=z$(a,n,r)?nm(a):pn(0);let s=(o.left+l.x)/c.x,u=(o.top+l.y)/c.y,f=o.width/c.x,d=o.height/c.y;if(a){const p=Ye(a),g=r&&Vt(r)?Ye(r):r;let y=p.frameElement;for(;y&&r&&g!==p;){const m=hr(y),w=y.getBoundingClientRect(),h=at(y),v=w.left+(y.clientLeft+parseFloat(h.paddingLeft))*m.x,$=w.top+(y.clientTop+parseFloat(h.paddingTop))*m.y;s*=m.x,u*=m.y,f*=m.x,d*=m.y,s+=v,u+=$,y=Ye(y).frameElement}}return uc({width:f,height:d,x:s,y:u})}function V$(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=xt(n),a=Ht(n);if(n===a)return t;let c={scrollLeft:0,scrollTop:0},l=pn(1);const s=pn(0);if((o||!o&&r!=="fixed")&&((vn(n)!=="body"||Bo(a))&&(c=Ic(n)),xt(n))){const u=Nn(n);l=hr(n),s.x=u.x+n.clientLeft,s.y=u.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-c.scrollLeft*l.x+s.x,y:t.y*l.y-c.scrollTop*l.y+s.y}}function B$(e){return Array.from(e.getClientRects())}function rm(e){return Nn(Ht(e)).left+Ic(e).scrollLeft}function U$(e){const t=Ht(e),n=Ic(e),r=e.ownerDocument.body,o=Ke(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ke(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+rm(e);const l=-n.scrollTop;return at(r).direction==="rtl"&&(c+=Ke(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:c,y:l}}function H$(e,t){const n=Ye(e),r=Ht(e),o=n.visualViewport;let a=r.clientWidth,c=r.clientHeight,l=0,s=0;if(o){a=o.width,c=o.height;const u=eu();(!u||u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:c,x:l,y:s}}function W$(e,t){const n=Nn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=xt(e)?hr(e):pn(1),c=e.clientWidth*a.x,l=e.clientHeight*a.y,s=o*a.x,u=r*a.y;return{width:c,height:l,x:s,y:u}}function of(e,t,n){let r;if(t==="viewport")r=H$(e,n);else if(t==="document")r=U$(Ht(e));else if(Vt(t))r=W$(t,n);else{const o=nm(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return uc(r)}function om(e,t){const n=Sr(e);return n===t||!Vt(n)||Oc(n)?!1:at(n).position==="fixed"||om(n,t)}function K$(e,t){const n=t.get(e);if(n)return n;let r=Po(e,[],!1).filter(l=>Vt(l)&&vn(l)!=="body"),o=null;const a=at(e).position==="fixed";let c=a?Sr(e):e;for(;Vt(c)&&!Oc(c);){const l=at(c),s=Js(c);!s&&l.position==="fixed"&&(o=null),(a?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Bo(c)&&!s&&om(e,c))?r=r.filter(f=>f!==c):o=l,c=Sr(c)}return t.set(e,r),r}function j$(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?K$(t,this._c):[].concat(n),r],l=c[0],s=c.reduce((u,f)=>{const d=of(t,f,o);return u.top=Ke(d.top,u.top),u.right=fn(d.right,u.right),u.bottom=fn(d.bottom,u.bottom),u.left=Ke(d.left,u.left),u},of(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function G$(e){return tm(e)}function Y$(e,t,n){const r=xt(t),o=Ht(t),a=n==="fixed",c=Nn(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=pn(0);if(r||!r&&!a)if((vn(t)!=="body"||Bo(o))&&(l=Ic(t)),r){const u=Nn(t,!0,a,t);s.x=u.x+t.clientLeft,s.y=u.y+t.clientTop}else o&&(s.x=rm(o));return{x:c.left+l.scrollLeft-s.x,y:c.top+l.scrollTop-s.y,width:c.width,height:c.height}}function af(e,t){return!xt(e)||at(e).position==="fixed"?null:t?t(e):e.offsetParent}function am(e,t){const n=Ye(e);if(!xt(e))return n;let r=af(e,t);for(;r&&N$(r)&&at(r).position==="static";)r=af(r,t);return r&&(vn(r)==="html"||vn(r)==="body"&&at(r).position==="static"&&!Js(r))?n:r||L$(e)||n}const X$=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||am,a=this.getDimensions;return{reference:Y$(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}};function Q$(e){return at(e).direction==="rtl"}const Z$={convertOffsetParentRelativeRectToViewportRelativeRect:V$,getDocumentElement:Ht,getClippingRect:j$,getOffsetParent:am,getElementRects:X$,getClientRects:B$,getDimensions:G$,getScale:hr,isElement:Vt,isRTL:Q$};function q$(e,t){let n=null,r;const o=Ht(e);function a(){clearTimeout(r),n&&n.disconnect(),n=null}function c(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),a();const{left:u,top:f,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;const g=va(f),y=va(o.clientWidth-(u+d)),m=va(o.clientHeight-(f+p)),w=va(u),v={rootMargin:-g+"px "+-y+"px "+-m+"px "+-w+"px",threshold:Ke(0,fn(1,s))||1};let $=!0;function b(E){const S=E[0].intersectionRatio;if(S!==s){if(!$)return c();S?c(!1,S):r=setTimeout(()=>{c(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(b,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return c(!0),a}function J$(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=tu(e),f=o||a?[...u?Po(u):[],...Po(t)]:[];f.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),a&&h.addEventListener("resize",n)});const d=u&&l?q$(u,n):null;let p=-1,g=null;c&&(g=new ResizeObserver(h=>{let[v]=h;v&&v.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),u&&!s&&g.observe(u),g.observe(t));let y,m=s?Nn(e):null;s&&w();function w(){const h=Nn(e);m&&(h.x!==m.x||h.y!==m.y||h.width!==m.width||h.height!==m.height)&&n(),m=h,y=requestAnimationFrame(w)}return n(),()=>{f.forEach(h=>{o&&h.removeEventListener("scroll",n),a&&h.removeEventListener("resize",n)}),d&&d(),g&&g.disconnect(),g=null,s&&cancelAnimationFrame(y)}}const ey=(e,t,n)=>{const r=new Map,o={platform:Z$,...n},a={...o.platform,_c:r};return R$(e,t,{...o,platform:a})},ty=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ef({element:r.current,padding:o}).fn(n):{}:r?ef({element:r,padding:o}).fn(n):{}}}};var La=typeof document<"u"?i.useLayoutEffect:i.useEffect;function dc(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,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!dc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!dc(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function cm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cf(e,t){const n=cm(e);return Math.round(t*n)/n}function lf(e){const t=i.useRef(e);return La(()=>{t.current=e}),t}function ny(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:c}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[f,d]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=i.useState(r);dc(p,r)||g(r);const[y,m]=i.useState(null),[w,h]=i.useState(null),v=i.useCallback(U=>{U!=S.current&&(S.current=U,m(U))},[m]),$=i.useCallback(U=>{U!==C.current&&(C.current=U,h(U))},[h]),b=a||y,E=c||w,S=i.useRef(null),C=i.useRef(null),_=i.useRef(f),P=lf(s),D=lf(o),F=i.useCallback(()=>{if(!S.current||!C.current)return;const U={placement:t,strategy:n,middleware:p};D.current&&(U.platform=D.current),ey(S.current,C.current,U).then(X=>{const T={...X,isPositioned:!0};H.current&&!dc(_.current,T)&&(_.current=T,$n.flushSync(()=>{d(T)}))})},[p,t,n,D]);La(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(U=>({...U,isPositioned:!1})))},[u]);const H=i.useRef(!1);La(()=>(H.current=!0,()=>{H.current=!1}),[]),La(()=>{if(b&&(S.current=b),E&&(C.current=E),b&&E){if(P.current)return P.current(b,E,F);F()}},[b,E,F,P]);const Y=i.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:$}),[v,$]),N=i.useMemo(()=>({reference:b,floating:E}),[b,E]),B=i.useMemo(()=>{const U={position:n,left:0,top:0};if(!N.floating)return U;const X=cf(N.floating,f.x),T=cf(N.floating,f.y);return l?{...U,transform:"translate("+X+"px, "+T+"px)",...cm(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:T}},[n,l,N.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:F,refs:Y,elements:N,floatingStyles:B}),[f,F,Y,N,B])}function Uo(e){const[t,n]=i.useState(void 0);return Oe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let c,l;if("borderBoxSize"in a){const s=a.borderBoxSize,u=Array.isArray(s)?s[0]:s;c=u.inlineSize,l=u.blockSize}else c=e.offsetWidth,l=e.offsetHeight;n({width:c,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const im="Popper",[lm,Ct]=le(im),[ry,sm]=lm(im),oy=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return i.createElement(ry,{scope:t,anchor:r,onAnchorChange:o},n)},ay="PopperAnchor",cy=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=sm(ay,n),c=i.useRef(null),l=z(t,c);return i.useEffect(()=>{a.onAnchorChange(r?.current||c.current)}),r?null:i.createElement(A.div,x({},o,{ref:l}))}),um="PopperContent",[iy,BE]=lm(um),ly=i.forwardRef((e,t)=>{var n,r,o,a,c,l,s,u;const{__scopePopper:f,side:d="bottom",sideOffset:p=0,align:g="center",alignOffset:y=0,arrowPadding:m=0,avoidCollisions:w=!0,collisionBoundary:h=[],collisionPadding:v=0,sticky:$="partial",hideWhenDetached:b=!1,updatePositionStrategy:E="optimized",onPlaced:S,...C}=e,_=sm(um,f),[P,D]=i.useState(null),F=z(t,Pt=>D(Pt)),[H,Y]=i.useState(null),N=Uo(H),B=(n=N?.width)!==null&&n!==void 0?n:0,U=(r=N?.height)!==null&&r!==void 0?r:0,X=d+(g!=="center"?"-"+g:""),T=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},k=Array.isArray(h)?h:[h],O=k.length>0,V={padding:T,boundary:k.filter(sy),altBoundary:O},{refs:j,floatingStyles:be,placement:me,isPositioned:Se,middlewareData:re}=ny({strategy:"fixed",placement:X,whileElementsMounted:(...Pt)=>J$(...Pt,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[D$({mainAxis:p+U,alignmentAxis:y}),w&&O$({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?I$():void 0,...V}),w&&k$({...V}),A$({...V,apply:({elements:Pt,rects:Kn,availableWidth:Fr,availableHeight:k1})=>{const{width:T1,height:M1}=Kn.reference,Qo=Pt.floating.style;Qo.setProperty("--radix-popper-available-width",`${Fr}px`),Qo.setProperty("--radix-popper-available-height",`${k1}px`),Qo.setProperty("--radix-popper-anchor-width",`${T1}px`),Qo.setProperty("--radix-popper-anchor-height",`${M1}px`)}}),H&&ty({element:H,padding:m}),uy({arrowWidth:B,arrowHeight:U}),b&&T$({strategy:"referenceHidden",...V})]}),[L,Z]=dm(me),q=ae(S);Oe(()=>{Se&&q?.()},[Se,q]);const J=(o=re.arrow)===null||o===void 0?void 0:o.x,ee=(a=re.arrow)===null||a===void 0?void 0:a.y,te=((c=re.arrow)===null||c===void 0?void 0:c.centerOffset)!==0,[Ue,He]=i.useState();return Oe(()=>{P&&He(window.getComputedStyle(P).zIndex)},[P]),i.createElement("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...be,transform:Se?be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ue,"--radix-popper-transform-origin":[(l=re.transformOrigin)===null||l===void 0?void 0:l.x,(s=re.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},i.createElement(iy,{scope:f,placedSide:L,onArrowChange:Y,arrowX:J,arrowY:ee,shouldHideArrow:te},i.createElement(A.div,x({"data-side":L,"data-align":Z},C,{ref:F,style:{...C.style,animation:Se?void 0:"none",opacity:(u=re.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function sy(e){return e!==null}const uy=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,c;const{placement:l,rects:s,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=d?0:e.arrowWidth,g=d?0:e.arrowHeight,[y,m]=dm(l),w={start:"0%",center:"50%",end:"100%"}[m],h=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,v=((a=(c=u.arrow)===null||c===void 0?void 0:c.y)!==null&&a!==void 0?a:0)+g/2;let $="",b="";return y==="bottom"?($=d?w:`${h}px`,b=`${-g}px`):y==="top"?($=d?w:`${h}px`,b=`${s.floating.height+g}px`):y==="right"?($=`${-g}px`,b=d?w:`${v}px`):y==="left"&&($=`${s.floating.width+g}px`,b=d?w:`${v}px`),{data:{x:$,y:b}}}});function dm(e){const[t,n="center"]=e.split("-");return[t,n]}const fm=oy,nu=cy,Ho=ly,Ac=i.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Ys.createPortal(i.createElement(A.div,x({},o,{ref:t})),r):null});function dy(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const se=e=>{const{present:t,children:n}=e,r=fy(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=z(r.ref,o.ref);return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};se.displayName="Presence";function fy(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[l,s]=dy(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=ma(r.current);a.current=l==="mounted"?u:"none"},[l]),Oe(()=>{const u=r.current,f=o.current;if(f!==e){const p=a.current,g=ma(u);e?s("MOUNT"):g==="none"||u?.display==="none"?s("UNMOUNT"):s(f&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Oe(()=>{if(t){const u=d=>{const g=ma(r.current).includes(d.animationName);d.target===t&&g&&$n.flushSync(()=>s("ANIMATION_END"))},f=d=>{d.target===t&&(a.current=ma(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ma(e){return e?.animationName||"none"}const Ri="rovingFocusGroup.onEntryFocus",py={bubbles:!1,cancelable:!0},ru="RovingFocusGroup",[Al,pm,vy]=yn(ru),[my,wn]=le(ru,[vy]),[hy,gy]=my(ru),$y=i.forwardRef((e,t)=>i.createElement(Al.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(Al.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(yy,x({},e,{ref:t}))))),yy=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...f}=e,d=i.useRef(null),p=z(t,d),g=Ut(a),[y=null,m]=Ne({prop:c,defaultProp:l,onChange:s}),[w,h]=i.useState(!1),v=ae(u),$=pm(n),b=i.useRef(!1),[E,S]=i.useState(0);return i.useEffect(()=>{const C=d.current;if(C)return C.addEventListener(Ri,v),()=>C.removeEventListener(Ri,v)},[v]),i.createElement(hy,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:y,onItemFocus:i.useCallback(C=>m(C),[m]),onItemShiftTab:i.useCallback(()=>h(!0),[]),onFocusableItemAdd:i.useCallback(()=>S(C=>C+1),[]),onFocusableItemRemove:i.useCallback(()=>S(C=>C-1),[])},i.createElement(A.div,x({tabIndex:w||E===0?-1:0,"data-orientation":r},f,{ref:p,style:{outline:"none",...e.style},onMouseDown:R(e.onMouseDown,()=>{b.current=!0}),onFocus:R(e.onFocus,C=>{const _=!b.current;if(C.target===C.currentTarget&&_&&!w){const P=new CustomEvent(Ri,py);if(C.currentTarget.dispatchEvent(P),!P.defaultPrevented){const D=$().filter(B=>B.focusable),F=D.find(B=>B.active),H=D.find(B=>B.id===y),N=[F,H,...D].filter(Boolean).map(B=>B.ref.current);vm(N)}}b.current=!1}),onBlur:R(e.onBlur,()=>h(!1))})))}),wy="RovingFocusGroupItem",by=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...c}=e,l=nt(),s=a||l,u=gy(wy,n),f=u.currentTabStopId===s,d=pm(n),{onFocusableItemAdd:p,onFocusableItemRemove:g}=u;return i.useEffect(()=>{if(r)return p(),()=>g()},[r,p,g]),i.createElement(Al.ItemSlot,{scope:n,id:s,focusable:r,active:o},i.createElement(A.span,x({tabIndex:f?0:-1,"data-orientation":u.orientation},c,{ref:t,onMouseDown:R(e.onMouseDown,y=>{r?u.onItemFocus(s):y.preventDefault()}),onFocus:R(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:R(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){u.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const m=Cy(y,u.orientation,u.dir);if(m!==void 0){y.preventDefault();let h=d().filter(v=>v.focusable).map(v=>v.ref.current);if(m==="last")h.reverse();else if(m==="prev"||m==="next"){m==="prev"&&h.reverse();const v=h.indexOf(y.currentTarget);h=u.loop?Sy(h,v+1):h.slice(v+1)}setTimeout(()=>vm(h))}})})))}),Ey={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xy(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Cy(e,t,n){const r=xy(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Ey[r]}function vm(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Sy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Nc=$y,Lc=by;var _y=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Gn=new WeakMap,ha=new WeakMap,ga={},ki=0,mm=function(e){return e&&(e.host||mm(e.parentNode))},Py=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=mm(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ry=function(e,t,n,r){var o=Py(t,Array.isArray(e)?e:[e]);ga[n]||(ga[n]=new WeakMap);var a=ga[n],c=[],l=new Set,s=new Set(o),u=function(d){!d||l.has(d)||(l.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||s.has(d)||Array.prototype.forEach.call(d.children,function(p){if(l.has(p))f(p);else{var g=p.getAttribute(r),y=g!==null&&g!=="false",m=(Gn.get(p)||0)+1,w=(a.get(p)||0)+1;Gn.set(p,m),a.set(p,w),c.push(p),m===1&&y&&ha.set(p,!0),w===1&&p.setAttribute(n,"true"),y||p.setAttribute(r,"true")}})};return f(t),l.clear(),ki++,function(){c.forEach(function(d){var p=Gn.get(d)-1,g=a.get(d)-1;Gn.set(d,p),a.set(d,g),p||(ha.has(d)||d.removeAttribute(r),ha.delete(d)),g||d.removeAttribute(n)}),ki--,ki||(Gn=new WeakMap,Gn=new WeakMap,ha=new WeakMap,ga={})}},Wo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||_y(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Ry(r,o,n,"aria-hidden")):function(){return null}},ke=function(){return ke=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return By;var t=Uy(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Wy=au(),Ky=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,l=e.gap;return n===void 0&&(n="margin"),` .`.concat(ky,` { overflow: hidden `).concat(r,`; padding-right: `).concat(l,"px ").concat(r,`; @@ -66,15 +66,15 @@ Error generating stack: `+a.message+` body { `).concat(Ty,": ").concat(l,`px; } -`)},Em=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=i.useMemo(function(){return Hy(o)},[o]);return i.createElement(Wy,{styles:Ky(a,!t,o,n?"":"!important")})},Nl=!1;if(typeof window<"u")try{var ga=Object.defineProperty({},"passive",{get:function(){return Nl=!0,!0}});window.addEventListener("test",ga,ga),window.removeEventListener("test",ga,ga)}catch{Nl=!1}var Yn=Nl?{passive:!1}:!1,jy=function(e){return e.tagName==="TEXTAREA"},xm=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!jy(e)&&n[t]==="visible")},Gy=function(e){return xm(e,"overflowY")},Yy=function(e){return xm(e,"overflowX")},uf=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Cm(e,n);if(r){var o=Sm(e,n),a=o[1],c=o[2];if(a>c)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Xy=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Qy=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Cm=function(e,t){return e==="v"?Gy(t):Yy(t)},Sm=function(e,t){return e==="v"?Xy(t):Qy(t)},Zy=function(e,t){return e==="h"&&t==="rtl"?-1:1},qy=function(e,t,n,r,o){var a=Zy(e,window.getComputedStyle(t).direction),c=a*r,l=n.target,s=t.contains(l),u=!1,f=c>0,d=0,p=0;do{var $=Sm(e,l),y=$[0],m=$[1],w=$[2],h=m-w-a*y;(y||h)&&Cm(e,l)&&(d+=h,p+=y),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(o&&d===0||!o&&c>d)||!f&&(o&&p===0||!o&&-c>p))&&(u=!0),u},ya=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},df=function(e){return[e.deltaX,e.deltaY]},ff=function(e){return e&&"current"in e?e.current:e},Jy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ew=function(e){return` +`)},Em=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=i.useMemo(function(){return Hy(o)},[o]);return i.createElement(Wy,{styles:Ky(a,!t,o,n?"":"!important")})},Nl=!1;if(typeof window<"u")try{var $a=Object.defineProperty({},"passive",{get:function(){return Nl=!0,!0}});window.addEventListener("test",$a,$a),window.removeEventListener("test",$a,$a)}catch{Nl=!1}var Yn=Nl?{passive:!1}:!1,jy=function(e){return e.tagName==="TEXTAREA"},xm=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!jy(e)&&n[t]==="visible")},Gy=function(e){return xm(e,"overflowY")},Yy=function(e){return xm(e,"overflowX")},uf=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Cm(e,n);if(r){var o=Sm(e,n),a=o[1],c=o[2];if(a>c)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Xy=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Qy=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Cm=function(e,t){return e==="v"?Gy(t):Yy(t)},Sm=function(e,t){return e==="v"?Xy(t):Qy(t)},Zy=function(e,t){return e==="h"&&t==="rtl"?-1:1},qy=function(e,t,n,r,o){var a=Zy(e,window.getComputedStyle(t).direction),c=a*r,l=n.target,s=t.contains(l),u=!1,f=c>0,d=0,p=0;do{var g=Sm(e,l),y=g[0],m=g[1],w=g[2],h=m-w-a*y;(y||h)&&Cm(e,l)&&(d+=h,p+=y),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(o&&d===0||!o&&c>d)||!f&&(o&&p===0||!o&&-c>p))&&(u=!0),u},ya=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},df=function(e){return[e.deltaX,e.deltaY]},ff=function(e){return e&&"current"in e?e.current:e},Jy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},e2=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},tw=0,Xn=[];function nw(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(tw++)[0],a=i.useState(function(){return au()})[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=hm([e.lockRef.current],(e.shards||[]).map(ff),!0).filter(Boolean);return m.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(m,w){if("touches"in m&&m.touches.length===2)return!c.current.allowPinchZoom;var h=ya(m),v=n.current,g="deltaX"in m?m.deltaX:v[0]-h[0],b="deltaY"in m?m.deltaY:v[1]-h[1],E,S=m.target,C=Math.abs(g)>Math.abs(b)?"h":"v";if("touches"in m&&C==="h"&&S.type==="range")return!1;var _=uf(C,S);if(!_)return!0;if(_?E=C:(E=C==="v"?"h":"v",_=uf(C,S)),!_)return!1;if(!r.current&&"changedTouches"in m&&(g||b)&&(r.current=E),!E)return!0;var P=r.current||E;return qy(P,w,m,P==="h"?g:b,!0)},[]),s=i.useCallback(function(m){var w=m;if(!(!Xn.length||Xn[Xn.length-1]!==a)){var h="deltaY"in w?df(w):ya(w),v=t.current.filter(function(E){return E.name===w.type&&E.target===w.target&&Jy(E.delta,h)})[0];if(v&&v.should){w.cancelable&&w.preventDefault();return}if(!v){var g=(c.current.shards||[]).map(ff).filter(Boolean).filter(function(E){return E.contains(w.target)}),b=g.length>0?l(w,g[0]):!c.current.noIsolation;b&&w.cancelable&&w.preventDefault()}}},[]),u=i.useCallback(function(m,w,h,v){var g={name:m,delta:w,target:h,should:v};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(b){return b!==g})},1)},[]),f=i.useCallback(function(m){n.current=ya(m),r.current=void 0},[]),d=i.useCallback(function(m){u(m.type,df(m),m.target,l(m,e.lockRef.current))},[]),p=i.useCallback(function(m){u(m.type,ya(m),m.target,l(m,e.lockRef.current))},[]);i.useEffect(function(){return Xn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Yn),document.addEventListener("touchmove",s,Yn),document.addEventListener("touchstart",f,Yn),function(){Xn=Xn.filter(function(m){return m!==a}),document.removeEventListener("wheel",s,Yn),document.removeEventListener("touchmove",s,Yn),document.removeEventListener("touchstart",f,Yn)}},[]);var $=e.removeScrollBar,y=e.inert;return i.createElement(i.Fragment,null,y?i.createElement(a,{styles:ew(o)}):null,$?i.createElement(Em,{gapMode:"margin"}):null)}const rw=wm(bm,nw);var _m=i.forwardRef(function(e,t){return i.createElement(Fc,ke({},e,{ref:t,sideCar:rw}))});_m.classNames=Fc.classNames;const zc=_m,Ll=["Enter"," "],ow=["ArrowDown","PageUp","Home"],Pm=["ArrowUp","PageDown","End"],aw=[...ow,...Pm],cw={ltr:[...Ll,"ArrowRight"],rtl:[...Ll,"ArrowLeft"]},iw={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Vc="Menu",[Ro,lw,sw]=gn(Vc),[Bn,Ko]=le(Vc,[sw,Ct,yn]),cu=Ct(),Rm=yn(),[uw,Un]=Bn(Vc),[dw,jo]=Bn(Vc),fw=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:c=!0}=e,l=cu(t),[s,u]=i.useState(null),f=i.useRef(!1),d=ae(a),p=Ut(o);return i.useEffect(()=>{const $=()=>{f.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>f.current=!1;return document.addEventListener("keydown",$,{capture:!0}),()=>{document.removeEventListener("keydown",$,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),i.createElement(fm,l,i.createElement(uw,{scope:t,open:n,onOpenChange:d,content:s,onContentChange:u},i.createElement(dw,{scope:t,onClose:i.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:p,modal:c},r)))},km=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=cu(n);return i.createElement(nu,x({},o,r,{ref:t}))}),Tm="MenuPortal",[pw,Mm]=Bn(Tm,{forceMount:void 0}),vw=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Un(Tm,t);return i.createElement(pw,{scope:t,forceMount:n},i.createElement(se,{present:n||a.open},i.createElement(Ac,{asChild:!0,container:o},r)))},vt="MenuContent",[mw,iu]=Bn(vt),hw=i.forwardRef((e,t)=>{const n=Mm(vt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Un(vt,e.__scopeMenu),c=jo(vt,e.__scopeMenu);return i.createElement(Ro.Provider,{scope:e.__scopeMenu},i.createElement(se,{present:r||a.open},i.createElement(Ro.Slot,{scope:e.__scopeMenu},c.modal?i.createElement($w,x({},o,{ref:t})):i.createElement(gw,x({},o,{ref:t})))))}),$w=i.forwardRef((e,t)=>{const n=Un(vt,e.__scopeMenu),r=i.useRef(null),o=z(t,r);return i.useEffect(()=>{const a=r.current;if(a)return Wo(a)},[]),i.createElement(lu,x({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:R(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),gw=i.forwardRef((e,t)=>{const n=Un(vt,e.__scopeMenu);return i.createElement(lu,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),lu=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:c,disableOutsidePointerEvents:l,onEntryFocus:s,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:$,disableOutsideScroll:y,...m}=e,w=Un(vt,n),h=jo(vt,n),v=cu(n),g=Rm(n),b=lw(n),[E,S]=i.useState(null),C=i.useRef(null),_=z(t,C,w.onContentChange),P=i.useRef(0),D=i.useRef(""),F=i.useRef(0),H=i.useRef(null),Y=i.useRef("right"),N=i.useRef(0),B=y?zc:i.Fragment,U=y?{as:un,allowPinchZoom:!0}:void 0,X=k=>{var O,V;const j=D.current+k,be=b().filter(q=>!q.disabled),me=document.activeElement,Se=(O=be.find(q=>q.ref.current===me))===null||O===void 0?void 0:O.textValue,re=be.map(q=>q.textValue),L=Iw(re,j,Se),Z=(V=be.find(q=>q.textValue===L))===null||V===void 0?void 0:V.ref.current;(function q(J){D.current=J,window.clearTimeout(P.current),J!==""&&(P.current=window.setTimeout(()=>q(""),1e3))})(j),Z&&setTimeout(()=>Z.focus())};i.useEffect(()=>()=>window.clearTimeout(P.current),[]),Mc();const T=i.useCallback(k=>{var O,V;return Y.current===((O=H.current)===null||O===void 0?void 0:O.side)&&Nw(k,(V=H.current)===null||V===void 0?void 0:V.area)},[]);return i.createElement(mw,{scope:n,searchRef:D,onItemEnter:i.useCallback(k=>{T(k)&&k.preventDefault()},[T]),onItemLeave:i.useCallback(k=>{var O;T(k)||((O=C.current)===null||O===void 0||O.focus(),S(null))},[T]),onTriggerLeave:i.useCallback(k=>{T(k)&&k.preventDefault()},[T]),pointerGraceTimerRef:F,onPointerGraceIntentChange:i.useCallback(k=>{H.current=k},[])},i.createElement(B,U,i.createElement(Dc,{asChild:!0,trapped:o,onMountAutoFocus:R(a,k=>{var O;k.preventDefault(),(O=C.current)===null||O===void 0||O.focus()}),onUnmountAutoFocus:c},i.createElement(Vn,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:$},i.createElement(Nc,x({asChild:!0},g,{dir:h.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:S,onEntryFocus:R(s,k=>{h.isUsingKeyboardRef.current||k.preventDefault()})}),i.createElement(Ho,x({role:"menu","aria-orientation":"vertical","data-state":Nm(w.open),"data-radix-menu-content":"",dir:h.dir},v,m,{ref:_,style:{outline:"none",...m.style},onKeyDown:R(m.onKeyDown,k=>{const V=k.target.closest("[data-radix-menu-content]")===k.currentTarget,j=k.ctrlKey||k.altKey||k.metaKey,be=k.key.length===1;V&&(k.key==="Tab"&&k.preventDefault(),!j&&be&&X(k.key));const me=C.current;if(k.target!==me||!aw.includes(k.key))return;k.preventDefault();const re=b().filter(L=>!L.disabled).map(L=>L.ref.current);Pm.includes(k.key)&&re.reverse(),Dw(re)}),onBlur:R(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(P.current),D.current="")}),onPointerMove:R(e.onPointerMove,ko(k=>{const O=k.target,V=N.current!==k.clientX;if(k.currentTarget.contains(O)&&V){const j=k.clientX>N.current?"right":"left";Y.current=j,N.current=k.clientX}}))})))))))}),yw=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(A.div,x({},r,{ref:t}))}),Fl="MenuItem",pf="menu.itemSelect",su=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=i.useRef(null),c=jo(Fl,e.__scopeMenu),l=iu(Fl,e.__scopeMenu),s=z(t,a),u=i.useRef(!1),f=()=>{const d=a.current;if(!n&&d){const p=new CustomEvent(pf,{bubbles:!0,cancelable:!0});d.addEventListener(pf,$=>r?.($),{once:!0}),Xv(d,p),p.defaultPrevented?u.current=!1:c.onClose()}};return i.createElement(Dm,x({},o,{ref:s,disabled:n,onClick:R(e.onClick,f),onPointerDown:d=>{var p;(p=e.onPointerDown)===null||p===void 0||p.call(e,d),u.current=!0},onPointerUp:R(e.onPointerUp,d=>{var p;u.current||(p=d.currentTarget)===null||p===void 0||p.click()}),onKeyDown:R(e.onKeyDown,d=>{const p=l.searchRef.current!=="";n||p&&d.key===" "||Ll.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),Dm=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,c=iu(Fl,n),l=Rm(n),s=i.useRef(null),u=z(t,s),[f,d]=i.useState(!1),[p,$]=i.useState("");return i.useEffect(()=>{const y=s.current;if(y){var m;$(((m=y.textContent)!==null&&m!==void 0?m:"").trim())}},[a.children]),i.createElement(Ro.ItemSlot,{scope:n,disabled:r,textValue:o??p},i.createElement(Lc,x({asChild:!0},l,{focusable:!r}),i.createElement(A.div,x({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:u,onPointerMove:R(e.onPointerMove,ko(y=>{r?c.onItemLeave(y):(c.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus())})),onPointerLeave:R(e.onPointerLeave,ko(y=>c.onItemLeave(y))),onFocus:R(e.onFocus,()=>d(!0)),onBlur:R(e.onBlur,()=>d(!1))}))))}),ww=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.createElement(Im,{scope:e.__scopeMenu,checked:n},i.createElement(su,x({role:"menuitemcheckbox","aria-checked":fc(n)?"mixed":n},o,{ref:t,"data-state":uu(n),onSelect:R(o.onSelect,()=>r?.(fc(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),bw="MenuRadioGroup",[B5,Ew]=Bn(bw,{value:void 0,onValueChange:()=>{}}),xw="MenuRadioItem",Cw=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=Ew(xw,e.__scopeMenu),a=n===o.value;return i.createElement(Im,{scope:e.__scopeMenu,checked:a},i.createElement(su,x({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":uu(a),onSelect:R(r.onSelect,()=>{var c;return(c=o.onValueChange)===null||c===void 0?void 0:c.call(o,n)},{checkForDefaultPrevented:!1})})))}),Om="MenuItemIndicator",[Im,Sw]=Bn(Om,{checked:!1}),_w=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Sw(Om,n);return i.createElement(se,{present:r||fc(a.checked)||a.checked===!0},i.createElement(A.span,x({},o,{ref:t,"data-state":uu(a.checked)})))}),Pw=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(A.div,x({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),Rw="MenuSub",[U5,Am]=Bn(Rw),wa="MenuSubTrigger",kw=i.forwardRef((e,t)=>{const n=Un(wa,e.__scopeMenu),r=jo(wa,e.__scopeMenu),o=Am(wa,e.__scopeMenu),a=iu(wa,e.__scopeMenu),c=i.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:s}=a,u={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const d=l.current;return()=>{window.clearTimeout(d),s(null)}},[l,s]),i.createElement(km,x({asChild:!0},u),i.createElement(Dm,x({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Nm(n.open)},e,{ref:Vo(t,o.onTriggerChange),onClick:d=>{var p;(p=e.onClick)===null||p===void 0||p.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:R(e.onPointerMove,ko(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(a.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:R(e.onPointerLeave,ko(d=>{var p;f();const $=(p=n.content)===null||p===void 0?void 0:p.getBoundingClientRect();if($){var y;const m=(y=n.content)===null||y===void 0?void 0:y.dataset.side,w=m==="right",h=w?-5:5,v=$[w?"left":"right"],g=$[w?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+h,y:d.clientY},{x:v,y:$.top},{x:g,y:$.top},{x:g,y:$.bottom},{x:v,y:$.bottom}],side:m}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:R(e.onKeyDown,d=>{const p=a.searchRef.current!=="";if(!(e.disabled||p&&d.key===" ")&&cw[r.dir].includes(d.key)){var $;n.onOpenChange(!0),($=n.content)===null||$===void 0||$.focus(),d.preventDefault()}})})))}),Tw="MenuSubContent",Mw=i.forwardRef((e,t)=>{const n=Mm(vt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Un(vt,e.__scopeMenu),c=jo(vt,e.__scopeMenu),l=Am(Tw,e.__scopeMenu),s=i.useRef(null),u=z(t,s);return i.createElement(Ro.Provider,{scope:e.__scopeMenu},i.createElement(se,{present:r||a.open},i.createElement(Ro.Slot,{scope:e.__scopeMenu},i.createElement(lu,x({id:l.contentId,"aria-labelledby":l.triggerId},o,{ref:u,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;c.isUsingKeyboardRef.current&&((d=s.current)===null||d===void 0||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:R(e.onFocusOutside,f=>{f.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:R(e.onEscapeKeyDown,f=>{c.onClose(),f.preventDefault()}),onKeyDown:R(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),p=iw[c.dir].includes(f.key);if(d&&p){var $;a.onOpenChange(!1),($=l.trigger)===null||$===void 0||$.focus(),f.preventDefault()}})})))))});function Nm(e){return e?"open":"closed"}function fc(e){return e==="indeterminate"}function uu(e){return fc(e)?"indeterminate":e?"checked":"unchecked"}function Dw(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ow(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Iw(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let c=Ow(e,Math.max(a,0));o.length===1&&(c=c.filter(u=>u!==n));const s=c.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function Aw(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,c=t.length-1;ar!=f>r&&n<(u-l)*(r-s)/(f-s)+l&&(o=!o)}return o}function Nw(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Aw(n,t)}function ko(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Lw=fw,Lm=km,du=vw,fu=hw,pu=yw,vu=su,mu=ww,hu=Cw,$u=_w,gu=Pw,yu=kw,wu=Mw,Fm="DropdownMenu",[Fw,H5]=le(Fm,[Ko]),ct=Ko(),[zw,zm]=Fw(Fm),Vw=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:c,modal:l=!0}=e,s=ct(t),u=i.useRef(null),[f=!1,d]=Ne({prop:o,defaultProp:a,onChange:c});return i.createElement(zw,{scope:t,triggerId:nt(),triggerRef:u,contentId:nt(),open:f,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(p=>!p),[d]),modal:l},i.createElement(Lw,x({},s,{open:f,onOpenChange:d,dir:r,modal:l}),n))},Bw="DropdownMenuTrigger",Uw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=zm(Bw,n),c=ct(n);return i.createElement(Lm,x({asChild:!0},c),i.createElement(A.button,x({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:Vo(t,a.triggerRef),onPointerDown:R(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:R(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),Hw=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ct(t);return i.createElement(du,x({},r,n))},Ww="DropdownMenuContent",Kw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zm(Ww,n),a=ct(n),c=i.useRef(!1);return i.createElement(fu,x({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:R(e.onCloseAutoFocus,l=>{var s;c.current||(s=o.triggerRef.current)===null||s===void 0||s.focus(),c.current=!1,l.preventDefault()}),onInteractOutside:R(e.onInteractOutside,l=>{const s=l.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0,f=s.button===2||u;(!o.modal||f)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),jw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(pu,x({},o,r,{ref:t}))}),Gw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(vu,x({},o,r,{ref:t}))}),Yw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(mu,x({},o,r,{ref:t}))}),Xw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(hu,x({},o,r,{ref:t}))}),Qw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement($u,x({},o,r,{ref:t}))}),Zw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(gu,x({},o,r,{ref:t}))}),qw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(yu,x({},o,r,{ref:t}))}),Jw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(wu,x({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),W5=Vw,K5=Uw,j5=Hw,G5=Kw,Y5=jw,X5=Gw,Q5=Yw,Z5=Xw,q5=Qw,J5=Zw,ex=qw,tx=Jw;function wn(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}var e2=["color"],nx=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=wn(e,e2);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),t2=["color"],rx=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=wn(e,t2);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),n2=["color"],ox=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=wn(e,n2);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),r2=["color"],ax=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=wn(e,r2);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),o2=["color"],cx=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=wn(e,o2);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),a2=["color"],ix=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=wn(e,a2);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))}),c2=["color"],lx=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=wn(e,c2);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),i2=["color"],sx=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=wn(e,i2);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const Vm="ContextMenu",[l2,ux]=le(Vm,[Ko]),St=Ko(),[dx,s2]=l2(Vm),u2=e=>{const{__scopeContextMenu:t,...n}=e,r=St(t);return i.createElement(du,x({},r,n))},d2="ContextMenuContent",f2=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=s2(d2,n),a=St(n),c=i.useRef(!1);return i.createElement(fu,x({},a,r,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:l=>{var s;(s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,l),!l.defaultPrevented&&c.current&&l.preventDefault(),c.current=!1},onInteractOutside:l=>{var s;(s=e.onInteractOutside)===null||s===void 0||s.call(e,l),!l.defaultPrevented&&!o.modal&&(c.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),p2=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(pu,x({},o,r,{ref:t}))}),v2=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(vu,x({},o,r,{ref:t}))}),m2=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(mu,x({},o,r,{ref:t}))}),h2=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(hu,x({},o,r,{ref:t}))}),$2=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement($u,x({},o,r,{ref:t}))}),g2=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(gu,x({},o,r,{ref:t}))}),y2=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(yu,x({},o,r,{ref:t}))}),w2=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(wu,x({},o,r,{ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),fx=u2,px=f2,vx=p2,mx=v2,hx=m2,$x=h2,gx=$2,yx=g2,wx=y2,bx=w2;function Ir(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Bm=i.forwardRef((e,t)=>i.createElement(A.span,x({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Um=Bm,Go="NavigationMenu",[bu,Hm,b2]=gn(Go),[zl,E2,x2]=gn(Go),[Eu,Ex]=le(Go,[b2,x2]),[C2,ht]=Eu(Go),[S2,_2]=Eu(Go),P2=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:c=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:u,...f}=e,[d,p]=i.useState(null),$=z(t,P=>p(P)),y=Ut(u),m=i.useRef(0),w=i.useRef(0),h=i.useRef(0),[v,g]=i.useState(!0),[b="",E]=Ne({prop:r,onChange:P=>{const D=P!=="",F=l>0;D?(window.clearTimeout(h.current),F&&g(!1)):(window.clearTimeout(h.current),h.current=window.setTimeout(()=>g(!0),l)),o?.(P)},defaultProp:a}),S=i.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>E(""),150)},[E]),C=i.useCallback(P=>{window.clearTimeout(w.current),E(P)},[E]),_=i.useCallback(P=>{b===P?window.clearTimeout(w.current):m.current=window.setTimeout(()=>{window.clearTimeout(w.current),E(P)},c)},[b,E,c]);return i.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(w.current),window.clearTimeout(h.current)},[]),i.createElement(R2,{scope:n,isRootMenu:!0,value:b,dir:y,orientation:s,rootNavigationMenu:d,onTriggerEnter:P=>{window.clearTimeout(m.current),v?_(P):C(P)},onTriggerLeave:()=>{window.clearTimeout(m.current),S()},onContentEnter:()=>window.clearTimeout(w.current),onContentLeave:S,onItemSelect:P=>{E(D=>D===P?"":P)},onItemDismiss:()=>E("")},i.createElement(A.nav,x({"aria-label":"Main","data-orientation":s,dir:y},f,{ref:$})))}),R2=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:c,value:l,onItemSelect:s,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:d,onContentEnter:p,onContentLeave:$}=e,[y,m]=i.useState(null),[w,h]=i.useState(new Map),[v,g]=i.useState(null);return i.createElement(C2,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:Ir(l),baseId:nt(),dir:o,orientation:a,viewport:y,onViewportChange:m,indicatorTrack:v,onIndicatorTrackChange:g,onTriggerEnter:ae(f),onTriggerLeave:ae(d),onContentEnter:ae(p),onContentLeave:ae($),onItemSelect:ae(s),onItemDismiss:ae(u),onViewportContentChange:i.useCallback((b,E)=>{h(S=>(S.set(b,E),new Map(S)))},[]),onViewportContentRemove:i.useCallback(b=>{h(E=>E.has(b)?(E.delete(b),new Map(E)):E)},[])},i.createElement(bu.Provider,{scope:t},i.createElement(S2,{scope:t,items:w},c)))},k2="NavigationMenuList",T2=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=ht(k2,n),a=i.createElement(A.ul,x({"data-orientation":o.orientation},r,{ref:t}));return i.createElement(A.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},i.createElement(bu.Slot,{scope:n},o.isRootMenu?i.createElement(Ym,{asChild:!0},a):a))}),M2="NavigationMenuItem",[xx,Wm]=Eu(M2),vf="NavigationMenuTrigger",D2=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=ht(vf,e.__scopeNavigationMenu),c=Wm(vf,e.__scopeNavigationMenu),l=i.useRef(null),s=z(l,c.triggerRef,t),u=Qm(a.baseId,c.value),f=Zm(a.baseId,c.value),d=i.useRef(!1),p=i.useRef(!1),$=c.value===a.value;return i.createElement(i.Fragment,null,i.createElement(bu.ItemSlot,{scope:n,value:c.value},i.createElement(B2,{asChild:!0},i.createElement(A.button,x({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":xu($),"aria-expanded":$,"aria-controls":f},o,{ref:s,onPointerEnter:R(e.onPointerEnter,()=>{p.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:R(e.onPointerMove,pc(()=>{r||p.current||c.wasEscapeCloseRef.current||d.current||(a.onTriggerEnter(c.value),d.current=!0)})),onPointerLeave:R(e.onPointerLeave,pc(()=>{r||(a.onTriggerLeave(),d.current=!1)})),onClick:R(e.onClick,()=>{a.onItemSelect(c.value),p.current=$}),onKeyDown:R(e.onKeyDown,y=>{const w={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];$&&y.key===w&&(c.onEntryKeyDown(),y.preventDefault())})})))),$&&i.createElement(i.Fragment,null,i.createElement(Um,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:y=>{const m=c.contentRef.current,w=y.relatedTarget,h=w===l.current,v=m?.contains(w);(h||!v)&&c.onFocusProxyEnter(h?"start":"end")}}),a.viewport&&i.createElement("span",{"aria-owns":f})))}),Km="NavigationMenuIndicator",O2=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ht(Km,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?Ys.createPortal(i.createElement(se,{present:n||a},i.createElement(I2,x({},r,{ref:t}))),o.indicatorTrack):null}),I2=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=ht(Km,n),a=Hm(n),[c,l]=i.useState(null),[s,u]=i.useState(null),f=o.orientation==="horizontal",d=!!o.value;i.useEffect(()=>{var $;const m=($=a().find(w=>w.value===o.value))===null||$===void 0?void 0:$.ref.current;m&&l(m)},[a,o.value]);const p=()=>{c&&u({size:f?c.offsetWidth:c.offsetHeight,offset:f?c.offsetLeft:c.offsetTop})};return Vl(c,p),Vl(o.indicatorTrack,p),s?i.createElement(A.div,x({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":o.orientation},r,{ref:t,style:{position:"absolute",...f?{left:0,width:s.size+"px",transform:`translateX(${s.offset}px)`}:{top:0,height:s.size+"px",transform:`translateY(${s.offset}px)`},...r.style}})):null}),To="NavigationMenuContent",A2=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ht(To,e.__scopeNavigationMenu),a=Wm(To,e.__scopeNavigationMenu),c=z(a.contentRef,t),l=a.value===o.value,s={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?i.createElement(N2,x({forceMount:n},s,{ref:c})):i.createElement(se,{present:n||l},i.createElement(jm,x({"data-state":xu(l)},s,{ref:c,onPointerEnter:R(e.onPointerEnter,o.onContentEnter),onPointerLeave:R(e.onPointerLeave,pc(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),N2=i.forwardRef((e,t)=>{const n=ht(To,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Oe(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Oe(()=>()=>o(e.value),[e.value,o]),null}),Di="navigationMenu.rootContentDismiss",jm=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:c,onRootContentClose:l,onContentFocusOutside:s,...u}=e,f=ht(To,n),d=i.useRef(null),p=z(d,t),$=Qm(f.baseId,r),y=Zm(f.baseId,r),m=Hm(n),w=i.useRef(null),{onItemDismiss:h}=f;i.useEffect(()=>{const g=d.current;if(f.isRootMenu&&g){const b=()=>{var E;h(),l(),g.contains(document.activeElement)&&((E=o.current)===null||E===void 0||E.focus())};return g.addEventListener(Di,b),()=>g.removeEventListener(Di,b)}},[f.isRootMenu,e.value,o,h,l]);const v=i.useMemo(()=>{const b=m().map(D=>D.value);f.dir==="rtl"&&b.reverse();const E=b.indexOf(f.value),S=b.indexOf(f.previousValue),C=r===f.value,_=S===b.indexOf(r);if(!C&&!_)return w.current;const P=(()=>{if(E!==S){if(C&&S!==-1)return E>S?"from-end":"from-start";if(_&&E!==-1)return E>S?"to-start":"to-end"}return null})();return w.current=P,P},[f.previousValue,f.value,f.dir,m,r]);return i.createElement(Ym,{asChild:!0},i.createElement(Vn,x({id:y,"aria-labelledby":$,"data-motion":v,"data-orientation":f.orientation},u,{ref:p,onDismiss:()=>{var g;const b=new Event(Di,{bubbles:!0,cancelable:!0});(g=d.current)===null||g===void 0||g.dispatchEvent(b)},onFocusOutside:R(e.onFocusOutside,g=>{var b;s();const E=g.target;(b=f.rootNavigationMenu)!==null&&b!==void 0&&b.contains(E)&&g.preventDefault()}),onPointerDownOutside:R(e.onPointerDownOutside,g=>{var b;const E=g.target,S=m().some(_=>{var P;return(P=_.ref.current)===null||P===void 0?void 0:P.contains(E)}),C=f.isRootMenu&&((b=f.viewport)===null||b===void 0?void 0:b.contains(E));(S||C||!f.isRootMenu)&&g.preventDefault()}),onKeyDown:R(e.onKeyDown,g=>{const b=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!b){const C=U2(g.currentTarget),_=document.activeElement,P=C.findIndex(H=>H===_),F=g.shiftKey?C.slice(0,P).reverse():C.slice(P+1,C.length);if(Xm(F))g.preventDefault();else{var S;(S=a.current)===null||S===void 0||S.focus()}}}),onEscapeKeyDown:R(e.onEscapeKeyDown,g=>{c.current=!0})})))}),Gm="NavigationMenuViewport",L2=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!ht(Gm,e.__scopeNavigationMenu).value;return i.createElement(se,{present:n||a},i.createElement(F2,x({},r,{ref:t})))}),F2=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=ht(Gm,n),c=z(t,a.onViewportChange),l=_2(To,e.__scopeNavigationMenu),[s,u]=i.useState(null),[f,d]=i.useState(null),p=s?s?.width+"px":void 0,$=s?s?.height+"px":void 0,y=!!a.value,m=y?a.value:a.previousValue;return Vl(f,()=>{f&&u({width:f.offsetWidth,height:f.offsetHeight})}),i.createElement(A.div,x({"data-state":xu(y),"data-orientation":a.orientation},o,{ref:c,style:{pointerEvents:!y&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":$,...o.style},onPointerEnter:R(e.onPointerEnter,a.onContentEnter),onPointerLeave:R(e.onPointerLeave,pc(a.onContentLeave))}),Array.from(l.items).map(([h,{ref:v,forceMount:g,...b}])=>{const E=m===h;return i.createElement(se,{key:h,present:g||E},i.createElement(jm,x({},b,{ref:Vo(v,S=>{E&&S&&d(S)})})))}))}),z2="FocusGroup",Ym=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=ht(z2,n);return i.createElement(zl.Provider,{scope:n},i.createElement(zl.Slot,{scope:n},i.createElement(A.div,x({dir:o.dir},r,{ref:t}))))}),mf=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],V2="FocusGroupItem",B2=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=E2(n),a=ht(V2,n);return i.createElement(zl.ItemSlot,{scope:n},i.createElement(A.button,x({},r,{ref:t,onKeyDown:R(e.onKeyDown,c=>{if(["Home","End",...mf].includes(c.key)){let s=o().map(d=>d.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(c.key)&&s.reverse(),mf.includes(c.key)){const d=s.indexOf(c.currentTarget);s=s.slice(d+1)}setTimeout(()=>Xm(s)),c.preventDefault()}})})))});function U2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Xm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function Vl(e,t){const n=ae(t);Oe(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function xu(e){return e?"open":"closed"}function Qm(e,t){return`${e}-trigger-${t}`}function Zm(e,t){return`${e}-content-${t}`}function pc(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Cx=P2,Sx=T2,_x=D2,Px=O2,Rx=A2,kx=L2,qm="Checkbox",[H2,Tx]=le(qm),[W2,K2]=H2(qm),j2=i.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:c,disabled:l,value:s="on",onCheckedChange:u,...f}=e,[d,p]=i.useState(null),$=z(t,g=>p(g)),y=i.useRef(!1),m=d?!!d.closest("form"):!0,[w=!1,h]=Ne({prop:o,defaultProp:a,onChange:u}),v=i.useRef(w);return i.useEffect(()=>{const g=d?.form;if(g){const b=()=>h(v.current);return g.addEventListener("reset",b),()=>g.removeEventListener("reset",b)}},[d,h]),i.createElement(W2,{scope:n,state:w,disabled:l},i.createElement(A.button,x({type:"button",role:"checkbox","aria-checked":Tn(w)?"mixed":w,"aria-required":c,"data-state":Jm(w),"data-disabled":l?"":void 0,disabled:l,value:s},f,{ref:$,onKeyDown:R(e.onKeyDown,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:R(e.onClick,g=>{h(b=>Tn(b)?!0:!b),m&&(y.current=g.isPropagationStopped(),y.current||g.stopPropagation())})})),m&&i.createElement(X2,{control:d,bubbles:!y.current,name:r,value:s,checked:w,required:c,disabled:l,style:{transform:"translateX(-100%)"}}))}),G2="CheckboxIndicator",Y2=i.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=K2(G2,n);return i.createElement(se,{present:r||Tn(a.state)||a.state===!0},i.createElement(A.span,x({"data-state":Jm(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),X2=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=i.useRef(null),c=Ir(n),l=Uo(t);return i.useEffect(()=>{const s=a.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(c!==n&&d){const p=new Event("click",{bubbles:r});s.indeterminate=Tn(n),d.call(s,Tn(n)?!1:n),s.dispatchEvent(p)}},[c,n,r]),i.createElement("input",x({type:"checkbox","aria-hidden":!0,defaultChecked:Tn(n)?!1:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Tn(e){return e==="indeterminate"}function Jm(e){return Tn(e)?"indeterminate":e?"checked":"unchecked"}const Mx=j2,Dx=Y2,e0="Radio",[Q2,t0]=le(e0),[Z2,q2]=Q2(e0),J2=i.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:c,value:l="on",onCheck:s,...u}=e,[f,d]=i.useState(null),p=z(t,m=>d(m)),$=i.useRef(!1),y=f?!!f.closest("form"):!0;return i.createElement(Z2,{scope:n,checked:o,disabled:c},i.createElement(A.button,x({type:"button",role:"radio","aria-checked":o,"data-state":n0(o),"data-disabled":c?"":void 0,disabled:c,value:l},u,{ref:p,onClick:R(e.onClick,m=>{o||s?.(),y&&($.current=m.isPropagationStopped(),$.current||m.stopPropagation())})})),y&&i.createElement(nb,{control:f,bubbles:!$.current,name:r,value:l,checked:o,required:a,disabled:c,style:{transform:"translateX(-100%)"}}))}),eb="RadioIndicator",tb=i.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=q2(eb,n);return i.createElement(se,{present:r||a.checked},i.createElement(A.span,x({"data-state":n0(a.checked),"data-disabled":a.disabled?"":void 0},o,{ref:t})))}),nb=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=i.useRef(null),c=Ir(n),l=Uo(t);return i.useEffect(()=>{const s=a.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(c!==n&&d){const p=new Event("click",{bubbles:r});d.call(s,n),s.dispatchEvent(p)}},[c,n,r]),i.createElement("input",x({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function n0(e){return e?"checked":"unchecked"}const rb=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],r0="RadioGroup",[ob,Ox]=le(r0,[yn,t0]),o0=yn(),a0=t0(),[ab,cb]=ob(r0),ib=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:c=!1,disabled:l=!1,orientation:s,dir:u,loop:f=!0,onValueChange:d,...p}=e,$=o0(n),y=Ut(u),[m,w]=Ne({prop:a,defaultProp:o,onChange:d});return i.createElement(ab,{scope:n,name:r,required:c,disabled:l,value:m,onValueChange:w},i.createElement(Nc,x({asChild:!0},$,{orientation:s,dir:y,loop:f}),i.createElement(A.div,x({role:"radiogroup","aria-required":c,"aria-orientation":s,"data-disabled":l?"":void 0,dir:y},p,{ref:t}))))}),lb="RadioGroupItem",sb=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=cb(lb,n),c=a.disabled||r,l=o0(n),s=a0(n),u=i.useRef(null),f=z(t,u),d=a.value===o.value,p=i.useRef(!1);return i.useEffect(()=>{const $=m=>{rb.includes(m.key)&&(p.current=!0)},y=()=>p.current=!1;return document.addEventListener("keydown",$),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",$),document.removeEventListener("keyup",y)}},[]),i.createElement(Lc,x({asChild:!0},l,{focusable:!c,active:d}),i.createElement(J2,x({disabled:c,required:a.required,checked:d},s,o,{name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:R($=>{$.key==="Enter"&&$.preventDefault()}),onFocus:R(o.onFocus,()=>{var $;p.current&&(($=u.current)===null||$===void 0||$.click())})})))}),ub=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=a0(n);return i.createElement(tb,x({},o,r,{ref:t}))}),Ix=ib,Ax=sb,Nx=ub;function Mo(e,[t,n]){return Math.min(n,Math.max(t,e))}const db=[" ","Enter","ArrowUp","ArrowDown"],fb=[" ","Enter"],Bc="Select",[Cu,Su,pb]=gn(Bc),[Ar,Lx]=le(Bc,[pb,Ct]),c0=Ct(),[Fx,Nr]=Ar(Bc),[zx,vb]=Ar(Bc),mb="SelectTrigger",hb=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=c0(n),c=Nr(mb,n),l=c.disabled||r,s=z(t,c.onTriggerChange),u=Su(n),[f,d,p]=s0(y=>{const m=u().filter(v=>!v.disabled),w=m.find(v=>v.value===c.value),h=u0(m,y,w);h!==void 0&&c.onValueChange(h.value)}),$=()=>{l||(c.onOpenChange(!0),p())};return i.createElement(nu,x({asChild:!0},a),i.createElement(A.button,x({type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Ab(c.value)?"":void 0},o,{ref:s,onClick:R(o.onClick,y=>{y.currentTarget.focus()}),onPointerDown:R(o.onPointerDown,y=>{const m=y.target;m.hasPointerCapture(y.pointerId)&&m.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&($(),c.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)},y.preventDefault())}),onKeyDown:R(o.onKeyDown,y=>{const m=f.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&d(y.key),!(m&&y.key===" ")&&db.includes(y.key)&&($(),y.preventDefault())})})))}),$b=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.createElement(A.span,x({"aria-hidden":!0},o,{ref:t}),r||"▼")}),gb=e=>i.createElement(Ac,x({asChild:!0},e)),_r="SelectContent",yb=i.forwardRef((e,t)=>{const n=Nr(_r,e.__scopeSelect),[r,o]=i.useState();if(Oe(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?$n.createPortal(i.createElement(i0,{scope:e.__scopeSelect},i.createElement(Cu.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),a):null}return i.createElement(wb,x({},e,{ref:t}))}),kt=10,[i0,Uc]=Ar(_r),wb=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:c,side:l,sideOffset:s,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:$,sticky:y,hideWhenDetached:m,avoidCollisions:w,...h}=e,v=Nr(_r,n),[g,b]=i.useState(null),[E,S]=i.useState(null),C=z(t,L=>b(L)),[_,P]=i.useState(null),[D,F]=i.useState(null),H=Su(n),[Y,N]=i.useState(!1),B=i.useRef(!1);i.useEffect(()=>{if(g)return Wo(g)},[g]),Mc();const U=i.useCallback(L=>{const[Z,...q]=H().map(te=>te.ref.current),[J]=q.slice(-1),ee=document.activeElement;for(const te of L)if(te===ee||(te?.scrollIntoView({block:"nearest"}),te===Z&&E&&(E.scrollTop=0),te===J&&E&&(E.scrollTop=E.scrollHeight),te?.focus(),document.activeElement!==ee))return},[H,E]),X=i.useCallback(()=>U([_,g]),[U,_,g]);i.useEffect(()=>{Y&&X()},[Y,X]);const{onOpenChange:T,triggerPointerDownPosRef:k}=v;i.useEffect(()=>{if(g){let L={x:0,y:0};const Z=J=>{var ee,te,Ue,He;L={x:Math.abs(Math.round(J.pageX)-((ee=(te=k.current)===null||te===void 0?void 0:te.x)!==null&&ee!==void 0?ee:0)),y:Math.abs(Math.round(J.pageY)-((Ue=(He=k.current)===null||He===void 0?void 0:He.y)!==null&&Ue!==void 0?Ue:0))}},q=J=>{L.x<=10&&L.y<=10?J.preventDefault():g.contains(J.target)||T(!1),document.removeEventListener("pointermove",Z),k.current=null};return k.current!==null&&(document.addEventListener("pointermove",Z),document.addEventListener("pointerup",q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",q,{capture:!0})}}},[g,T,k]),i.useEffect(()=>{const L=()=>T(!1);return window.addEventListener("blur",L),window.addEventListener("resize",L),()=>{window.removeEventListener("blur",L),window.removeEventListener("resize",L)}},[T]);const[O,V]=s0(L=>{const Z=H().filter(ee=>!ee.disabled),q=Z.find(ee=>ee.ref.current===document.activeElement),J=u0(Z,L,q);J&&setTimeout(()=>J.ref.current.focus())}),j=i.useCallback((L,Z,q)=>{const J=!B.current&&!q;(v.value!==void 0&&v.value===Z||J)&&(P(L),J&&(B.current=!0))},[v.value]),be=i.useCallback(()=>g?.focus(),[g]),me=i.useCallback((L,Z,q)=>{const J=!B.current&&!q;(v.value!==void 0&&v.value===Z||J)&&F(L)},[v.value]),Se=r==="popper"?hf:bb,re=Se===hf?{side:l,sideOffset:s,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:$,sticky:y,hideWhenDetached:m,avoidCollisions:w}:{};return i.createElement(i0,{scope:n,content:g,viewport:E,onViewportChange:S,itemRefCallback:j,selectedItem:_,onItemLeave:be,itemTextRefCallback:me,focusSelectedItem:X,selectedItemText:D,position:r,isPositioned:Y,searchRef:O},i.createElement(zc,{as:un,allowPinchZoom:!0},i.createElement(Dc,{asChild:!0,trapped:v.open,onMountAutoFocus:L=>{L.preventDefault()},onUnmountAutoFocus:R(o,L=>{var Z;(Z=v.trigger)===null||Z===void 0||Z.focus({preventScroll:!0}),L.preventDefault()})},i.createElement(Vn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:L=>L.preventDefault(),onDismiss:()=>v.onOpenChange(!1)},i.createElement(Se,x({role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:L=>L.preventDefault()},h,re,{onPlaced:()=>N(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:R(h.onKeyDown,L=>{const Z=L.ctrlKey||L.altKey||L.metaKey;if(L.key==="Tab"&&L.preventDefault(),!Z&&L.key.length===1&&V(L.key),["ArrowUp","ArrowDown","Home","End"].includes(L.key)){let J=H().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(L.key)&&(J=J.slice().reverse()),["ArrowUp","ArrowDown"].includes(L.key)){const ee=L.target,te=J.indexOf(ee);J=J.slice(te+1)}setTimeout(()=>U(J)),L.preventDefault()}})}))))))}),bb=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Nr(_r,n),c=Uc(_r,n),[l,s]=i.useState(null),[u,f]=i.useState(null),d=z(t,C=>f(C)),p=Su(n),$=i.useRef(!1),y=i.useRef(!0),{viewport:m,selectedItem:w,selectedItemText:h,focusSelectedItem:v}=c,g=i.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&m&&w&&h){const C=a.trigger.getBoundingClientRect(),_=u.getBoundingClientRect(),P=a.valueNode.getBoundingClientRect(),D=h.getBoundingClientRect();if(a.dir!=="rtl"){const ee=D.left-_.left,te=P.left-ee,Ue=C.left-te,He=C.width+Ue,Pt=Math.max(He,_.width),Kn=window.innerWidth-kt,Fr=Mo(te,[kt,Kn-Pt]);l.style.minWidth=He+"px",l.style.left=Fr+"px"}else{const ee=_.right-D.right,te=window.innerWidth-P.right-ee,Ue=window.innerWidth-C.right-te,He=C.width+Ue,Pt=Math.max(He,_.width),Kn=window.innerWidth-kt,Fr=Mo(te,[kt,Kn-Pt]);l.style.minWidth=He+"px",l.style.right=Fr+"px"}const F=p(),H=window.innerHeight-kt*2,Y=m.scrollHeight,N=window.getComputedStyle(u),B=parseInt(N.borderTopWidth,10),U=parseInt(N.paddingTop,10),X=parseInt(N.borderBottomWidth,10),T=parseInt(N.paddingBottom,10),k=B+U+Y+T+X,O=Math.min(w.offsetHeight*5,k),V=window.getComputedStyle(m),j=parseInt(V.paddingTop,10),be=parseInt(V.paddingBottom,10),me=C.top+C.height/2-kt,Se=H-me,re=w.offsetHeight/2,L=w.offsetTop+re,Z=B+U+L,q=k-Z;if(Z<=me){const ee=w===F[F.length-1].ref.current;l.style.bottom="0px";const te=u.clientHeight-m.offsetTop-m.offsetHeight,Ue=Math.max(Se,re+(ee?be:0)+te+X),He=Z+Ue;l.style.height=He+"px"}else{const ee=w===F[0].ref.current;l.style.top="0px";const Ue=Math.max(me,B+m.offsetTop+(ee?j:0)+re)+q;l.style.height=Ue+"px",m.scrollTop=Z-me+m.offsetTop}l.style.margin=`${kt}px 0`,l.style.minHeight=O+"px",l.style.maxHeight=H+"px",r?.(),requestAnimationFrame(()=>$.current=!0)}},[p,a.trigger,a.valueNode,l,u,m,w,h,a.dir,r]);Oe(()=>g(),[g]);const[b,E]=i.useState();Oe(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const S=i.useCallback(C=>{C&&y.current===!0&&(g(),v?.(),y.current=!1)},[g,v]);return i.createElement(Eb,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:$,onScrollButtonChange:S},i.createElement("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b}},i.createElement(A.div,x({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),hf=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=kt,...a}=e,c=c0(n);return i.createElement(Ho,x({},c,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.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)"}}))}),[Eb,xb]=Ar(_r,{}),$f="SelectViewport",Cb=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Uc($f,n),a=xb($f,n),c=z(t,o.onViewportChange),l=i.useRef(0);return i.createElement(i.Fragment,null,i.createElement("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}"}}),i.createElement(Cu.Slot,{scope:n},i.createElement(A.div,x({"data-radix-select-viewport":"",role:"presentation"},r,{ref:c,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:R(r.onScroll,s=>{const u=s.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=a;if(d!=null&&d.current&&f){const p=Math.abs(l.current-u.scrollTop);if(p>0){const $=window.innerHeight-kt*2,y=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),w=Math.max(y,m);if(w<$){const h=w+p,v=Math.min($,h),g=h-v;f.style.height=v+"px",f.style.bottom==="0px"&&(u.scrollTop=g>0?g:0,f.style.justifyContent="flex-end")}}}l.current=u.scrollTop})}))))}),Sb="SelectGroup",[Vx,_b]=Ar(Sb),Pb="SelectLabel",Rb=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_b(Pb,n);return i.createElement(A.div,x({id:o.id},r,{ref:t}))}),Bl="SelectItem",[kb,l0]=Ar(Bl),Tb=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...c}=e,l=Nr(Bl,n),s=Uc(Bl,n),u=l.value===r,[f,d]=i.useState(a??""),[p,$]=i.useState(!1),y=z(t,h=>{var v;return(v=s.itemRefCallback)===null||v===void 0?void 0:v.call(s,h,r,o)}),m=nt(),w=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.createElement(kb,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:i.useCallback(h=>{d(v=>{var g;return v||((g=h?.textContent)!==null&&g!==void 0?g:"").trim()})},[])},i.createElement(Cu.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},i.createElement(A.div,x({role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},c,{ref:y,onFocus:R(c.onFocus,()=>$(!0)),onBlur:R(c.onBlur,()=>$(!1)),onPointerUp:R(c.onPointerUp,w),onPointerMove:R(c.onPointerMove,h=>{if(o){var v;(v=s.onItemLeave)===null||v===void 0||v.call(s)}else h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:R(c.onPointerLeave,h=>{if(h.currentTarget===document.activeElement){var v;(v=s.onItemLeave)===null||v===void 0||v.call(s)}}),onKeyDown:R(c.onKeyDown,h=>{var v;((v=s.searchRef)===null||v===void 0?void 0:v.current)!==""&&h.key===" "||(fb.includes(h.key)&&w(),h.key===" "&&h.preventDefault())})}))))}),ba="SelectItemText",Mb=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,c=Nr(ba,n),l=Uc(ba,n),s=l0(ba,n),u=vb(ba,n),[f,d]=i.useState(null),p=z(t,h=>d(h),s.onItemTextChange,h=>{var v;return(v=l.itemTextRefCallback)===null||v===void 0?void 0:v.call(l,h,s.value,s.disabled)}),$=f?.textContent,y=i.useMemo(()=>i.createElement("option",{key:s.value,value:s.value,disabled:s.disabled},$),[s.disabled,s.value,$]),{onNativeOptionAdd:m,onNativeOptionRemove:w}=u;return Oe(()=>(m(y),()=>w(y)),[m,w,y]),i.createElement(i.Fragment,null,i.createElement(A.span,x({id:s.textId},a,{ref:p})),s.isSelected&&c.valueNode&&!c.valueNodeHasChildren?$n.createPortal(a.children,c.valueNode):null)}),Db="SelectItemIndicator",Ob=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l0(Db,n).isSelected?i.createElement(A.span,x({"aria-hidden":!0},r,{ref:t})):null}),Ib=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.createElement(A.div,x({"aria-hidden":!0},r,{ref:t}))});function Ab(e){return e===""||e===void 0}const Nb=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),a=z(t,o),c=Ir(n);return i.useEffect(()=>{const l=o.current,s=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(s,"value").set;if(c!==n&&f){const d=new Event("change",{bubbles:!0});f.call(l,n),l.dispatchEvent(d)}},[c,n]),i.createElement(Bm,{asChild:!0},i.createElement("select",x({},r,{ref:a,defaultValue:n})))});Nb.displayName="BubbleSelect";function s0(e){const t=ae(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(c=>{const l=n.current+c;t(l),function s(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>s(""),1e3))}(l)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function u0(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let c=Lb(e,Math.max(a,0));o.length===1&&(c=c.filter(u=>u!==n));const s=c.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function Lb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Bx=hb,Ux=$b,Hx=gb,Wx=yb,Kx=Cb,jx=Rb,Gx=Tb,Yx=Mb,Xx=Ob,Qx=Ib,d0="Popover",[f0,Zx]=le(d0,[Ct]),_u=Ct(),[Fb,Lr]=f0(d0),zb=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:c=!1}=e,l=_u(t),s=i.useRef(null),[u,f]=i.useState(!1),[d=!1,p]=Ne({prop:r,defaultProp:o,onChange:a});return i.createElement(fm,l,i.createElement(Fb,{scope:t,contentId:nt(),triggerRef:s,open:d,onOpenChange:p,onOpenToggle:i.useCallback(()=>p($=>!$),[p]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>f(!0),[]),onCustomAnchorRemove:i.useCallback(()=>f(!1),[]),modal:c},n))},Vb="PopoverTrigger",Bb=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Lr(Vb,n),a=_u(n),c=z(t,o.triggerRef),l=i.createElement(A.button,x({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":m0(o.open)},r,{ref:c,onClick:R(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:i.createElement(nu,x({asChild:!0},a),l)}),p0="PopoverPortal",[Ub,Hb]=f0(p0,{forceMount:void 0}),Wb=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Lr(p0,t);return i.createElement(Ub,{scope:t,forceMount:n},i.createElement(se,{present:n||a.open},i.createElement(Ac,{asChild:!0,container:o},r)))},Do="PopoverContent",Kb=i.forwardRef((e,t)=>{const n=Hb(Do,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Lr(Do,e.__scopePopover);return i.createElement(se,{present:r||a.open},a.modal?i.createElement(jb,x({},o,{ref:t})):i.createElement(Gb,x({},o,{ref:t})))}),jb=i.forwardRef((e,t)=>{const n=Lr(Do,e.__scopePopover),r=i.useRef(null),o=z(t,r),a=i.useRef(!1);return i.useEffect(()=>{const c=r.current;if(c)return Wo(c)},[]),i.createElement(zc,{as:un,allowPinchZoom:!0},i.createElement(v0,x({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,c=>{var l;c.preventDefault(),a.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,c=>{const l=c.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,u=l.button===2||s;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:R(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})))}),Gb=i.forwardRef((e,t)=>{const n=Lr(Do,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return i.createElement(v0,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var c;if((c=e.onCloseAutoFocus)===null||c===void 0||c.call(e,a),!a.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)===null||c===void 0||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),v0=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:f,...d}=e,p=Lr(Do,n),$=_u(n);return Mc(),i.createElement(Dc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},i.createElement(Vn,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1)},i.createElement(Ho,x({"data-state":m0(p.open),role:"dialog",id:p.contentId},$,d,{ref:t,style:{...d.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)"}}))))});function m0(e){return e?"open":"closed"}const qx=zb,Jx=Bb,eC=Wb,tC=Kb,h0="Dialog",[$0,g0]=le(h0),[Yb,_t]=$0(h0),Xb=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,l=i.useRef(null),s=i.useRef(null),[u=!1,f]=Ne({prop:r,defaultProp:o,onChange:a});return i.createElement(Yb,{scope:t,triggerRef:l,contentRef:s,contentId:nt(),titleId:nt(),descriptionId:nt(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(d=>!d),[f]),modal:c},n)},y0="DialogPortal",[Qb,w0]=$0(y0,{forceMount:void 0}),Zb=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=_t(y0,t);return i.createElement(Qb,{scope:t,forceMount:n},i.Children.map(r,c=>i.createElement(se,{present:n||a.open},i.createElement(Ac,{asChild:!0,container:o},c))))},Ul="DialogOverlay",qb=i.forwardRef((e,t)=>{const n=w0(Ul,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=_t(Ul,e.__scopeDialog);return a.modal?i.createElement(se,{present:r||a.open},i.createElement(Jb,x({},o,{ref:t}))):null}),Jb=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(Ul,n);return i.createElement(zc,{as:un,allowPinchZoom:!0,shards:[o.contentRef]},i.createElement(A.div,x({"data-state":x0(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Pr="DialogContent",eE=i.forwardRef((e,t)=>{const n=w0(Pr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=_t(Pr,e.__scopeDialog);return i.createElement(se,{present:r||a.open},a.modal?i.createElement(tE,x({},o,{ref:t})):i.createElement(nE,x({},o,{ref:t})))}),tE=i.forwardRef((e,t)=>{const n=_t(Pr,e.__scopeDialog),r=i.useRef(null),o=z(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return Wo(a)},[]),i.createElement(b0,x({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,a=>{var c;a.preventDefault(),(c=n.triggerRef.current)===null||c===void 0||c.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&a.preventDefault()}),onFocusOutside:R(e.onFocusOutside,a=>a.preventDefault())}))}),nE=i.forwardRef((e,t)=>{const n=_t(Pr,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return i.createElement(b0,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var c;if((c=e.onCloseAutoFocus)===null||c===void 0||c.call(e,a),!a.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)===null||c===void 0||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),b0=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,l=_t(Pr,n),s=i.useRef(null),u=z(t,s);return Mc(),i.createElement(i.Fragment,null,i.createElement(Dc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},i.createElement(Vn,x({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":x0(l.open)},c,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),E0="DialogTitle",rE=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(E0,n);return i.createElement(A.h2,x({id:o.titleId},r,{ref:t}))}),oE="DialogDescription",aE=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(oE,n);return i.createElement(A.p,x({id:o.descriptionId},r,{ref:t}))}),cE="DialogClose",iE=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(cE,n);return i.createElement(A.button,x({type:"button"},r,{ref:t,onClick:R(e.onClick,()=>o.onOpenChange(!1))}))});function x0(e){return e?"open":"closed"}const lE="DialogTitleWarning",[sE,nC]=ng(lE,{contentName:Pr,titleName:E0,docsSlug:"dialog"}),rC=Xb,uE=Zb,dE=qb,fE=eE,pE=rE,vE=aE,C0=iE;function $r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function mE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function S0(...e){return t=>e.forEach(n=>mE(n,t))}function Yo(...e){return i.useCallback(S0(...e),e)}function hE(e,t=[]){let n=[];function r(a,c){const l=i.createContext(c),s=n.length;n=[...n,c];function u(d){const{scope:p,children:$,...y}=d,m=p?.[e][s]||l,w=i.useMemo(()=>y,Object.values(y));return i.createElement(m.Provider,{value:w},$)}function f(d,p){const $=p?.[e][s]||l,y=i.useContext($);if(y)return y;if(c!==void 0)return c;throw new Error(`\`${d}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,f]}const o=()=>{const a=n.map(c=>i.createContext(c));return function(l){const s=l?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,$E(o,...t)]}function $E(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const c=r.reduce((l,{useScope:s,scopeName:u})=>{const d=s(a)[`__scope${u}`];return{...l,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}const Hl=globalThis?.document?i.useLayoutEffect:()=>{},gE=Kf["useId".toString()]||(()=>{});let yE=0;function Oi(e){const[t,n]=i.useState(gE());return Hl(()=>{e||n(r=>r??String(yE++))},[e]),e||(t?`radix-${t}`:"")}function Ln(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function wE({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=bE({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r,l=Ln(n),s=i.useCallback(u=>{if(a){const d=typeof u=="function"?u(e):u;d!==e&&l(d)}else o(u)},[a,e,o,l]);return[c,s]}function bE({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=Ln(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Pu=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(xE);if(a){const c=a.props.children,l=o.map(s=>s===a?i.Children.count(c)>1?i.Children.only(null):i.isValidElement(c)?c.props.children:null:s);return i.createElement(Wl,x({},r,{ref:t}),i.isValidElement(c)?i.cloneElement(c,void 0,l):null)}return i.createElement(Wl,x({},r,{ref:t}),n)});Pu.displayName="Slot";const Wl=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...CE(r,n.props),ref:S0(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});Wl.displayName="SlotClone";const EE=({children:e})=>i.createElement(i.Fragment,null,e);function xE(e){return i.isValidElement(e)&&e.type===EE}function CE(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?n[r]=(...l)=>{a?.(...l),o?.(...l)}:r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const SE=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Hc=SE.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...c}=r,l=a?Pu:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(l,x({},c,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function _E(e,t){e&&$n.flushSync(()=>e.dispatchEvent(t))}function PE(e){const t=Ln(e);i.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}const Kl="dismissableLayer.update",RE="dismissableLayer.pointerDownOutside",kE="dismissableLayer.focusOutside";let gf;const TE=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ME=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:l,...s}=e,u=i.useContext(TE),[f,d]=i.useState(null),[,p]=i.useState({}),$=Yo(t,S=>d(S)),y=Array.from(u.layers),[m]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=y.indexOf(m),h=f?y.indexOf(f):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,g=h>=w,b=DE(S=>{const C=S.target,_=[...u.branches].some(P=>P.contains(C));!g||_||(o?.(S),c?.(S),S.defaultPrevented||l?.())}),E=OE(S=>{const C=S.target;[...u.branches].some(P=>P.contains(C))||(a?.(S),c?.(S),S.defaultPrevented||l?.())});return PE(S=>{h===u.layers.size-1&&(r?.(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))}),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(gf=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),yf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=gf)}},[f,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),yf())},[f,u]),i.useEffect(()=>{const S=()=>p({});return document.addEventListener(Kl,S),()=>document.removeEventListener(Kl,S)},[]),i.createElement(Hc.div,x({},s,{ref:$,style:{pointerEvents:v?g?"auto":"none":void 0,...e.style},onFocusCapture:$r(e.onFocusCapture,E.onFocusCapture),onBlurCapture:$r(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:$r(e.onPointerDownCapture,b.onPointerDownCapture)}))});function DE(e){const t=Ln(e),n=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const o=c=>{if(c.target&&!n.current){let s=function(){_0(RE,t,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(document.removeEventListener("click",r.current),r.current=s,document.addEventListener("click",r.current,{once:!0})):s()}n.current=!1},a=window.setTimeout(()=>{document.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),document.removeEventListener("pointerdown",o),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}function OE(e){const t=Ln(e),n=i.useRef(!1);return i.useEffect(()=>{const r=o=>{o.target&&!n.current&&_0(kE,t,{originalEvent:o},{discrete:!1})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function yf(){const e=new CustomEvent(Kl);document.dispatchEvent(e)}function _0(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?_E(o,a):o.dispatchEvent(a)}const Ii="focusScope.autoFocusOnMount",Ai="focusScope.autoFocusOnUnmount",wf={bubbles:!1,cancelable:!0},IE=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[l,s]=i.useState(null),u=Ln(o),f=Ln(a),d=i.useRef(null),p=Yo(t,m=>s(m)),$=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let m=function(h){if($.paused||!l)return;const v=h.target;l.contains(v)?d.current=v:Cn(d.current,{select:!0})},w=function(h){$.paused||!l||l.contains(h.relatedTarget)||Cn(d.current,{select:!0})};return document.addEventListener("focusin",m),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",w)}}},[r,l,$.paused]),i.useEffect(()=>{if(l){Ef.add($);const m=document.activeElement;if(!l.contains(m)){const h=new CustomEvent(Ii,wf);l.addEventListener(Ii,u),l.dispatchEvent(h),h.defaultPrevented||(AE(VE(P0(l)),{select:!0}),document.activeElement===m&&Cn(l))}return()=>{l.removeEventListener(Ii,u),setTimeout(()=>{const h=new CustomEvent(Ai,wf);l.addEventListener(Ai,f),l.dispatchEvent(h),h.defaultPrevented||Cn(m??document.body,{select:!0}),l.removeEventListener(Ai,f),Ef.remove($)},0)}}},[l,u,f,$]);const y=i.useCallback(m=>{if(!n&&!r||$.paused)return;const w=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,h=document.activeElement;if(w&&h){const v=m.currentTarget,[g,b]=NE(v);g&&b?!m.shiftKey&&h===b?(m.preventDefault(),n&&Cn(g,{select:!0})):m.shiftKey&&h===g&&(m.preventDefault(),n&&Cn(b,{select:!0})):h===v&&m.preventDefault()}},[n,r,$.paused]);return i.createElement(Hc.div,x({tabIndex:-1},c,{ref:p,onKeyDown:y}))});function AE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Cn(r,{select:t}),document.activeElement!==n)return}function NE(e){const t=P0(e),n=bf(t,e),r=bf(t.reverse(),e);return[n,r]}function P0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function bf(e,t){for(const n of e)if(!LE(n,{upTo:t}))return n}function LE(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}function FE(e){return e instanceof HTMLInputElement&&"select"in e}function Cn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&FE(e)&&t&&e.select()}}const Ef=zE();function zE(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=xf(e,t),e.unshift(t)},remove(t){var n;e=xf(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function xf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function VE(e){return e.filter(t=>t.tagName!=="A")}const BE=i.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Ys.createPortal(i.createElement(Hc.div,x({},o,{ref:t})),r):null});function UE(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Wc=e=>{const{present:t,children:n}=e,r=HE(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=Yo(r.ref,o.ref);return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};Wc.displayName="Presence";function HE(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[l,s]=UE(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Ea(r.current);a.current=l==="mounted"?u:"none"},[l]),Hl(()=>{const u=r.current,f=o.current;if(f!==e){const p=a.current,$=Ea(u);e?s("MOUNT"):$==="none"||u?.display==="none"?s("UNMOUNT"):s(f&&p!==$?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Hl(()=>{if(t){const u=d=>{const $=Ea(r.current).includes(d.animationName);d.target===t&&$&&$n.flushSync(()=>s("ANIMATION_END"))},f=d=>{d.target===t&&(a.current=Ea(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ea(e){return e?.animationName||"none"}let Ni=0;function WE(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Cf()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Cf()),Ni++,()=>{Ni===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ni--}},[])}function Cf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var R0=gm(),Li=function(){},Kc=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Li,onWheelCapture:Li,onTouchMoveCapture:Li}),o=r[0],a=r[1],c=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,$=e.noIsolation,y=e.inert,m=e.allowPinchZoom,w=e.as,h=w===void 0?"div":w,v=ou(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),g=p,b=$m([n,t]),E=ke(ke({},v),o);return i.createElement(i.Fragment,null,f&&i.createElement(g,{sideCar:R0,removeScrollBar:u,shards:d,noIsolation:$,inert:y,setCallbacks:a,allowPinchZoom:!!m,lockRef:n}),c?i.cloneElement(i.Children.only(l),ke(ke({},E),{ref:b})):i.createElement(h,ke({},E,{className:s,ref:b}),l))});Kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kc.classNames={fullWidth:io,zeroRight:co};var jl=!1;if(typeof window<"u")try{var xa=Object.defineProperty({},"passive",{get:function(){return jl=!0,!0}});window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{jl=!1}var Qn=jl?{passive:!1}:!1,KE=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},jE=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},Sf=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=k0(e,n);if(r){var o=T0(e,n),a=o[1],c=o[2];if(a>c)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},GE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},YE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},k0=function(e,t){return e==="v"?KE(t):jE(t)},T0=function(e,t){return e==="v"?GE(t):YE(t)},XE=function(e,t){return e==="h"&&t==="rtl"?-1:1},QE=function(e,t,n,r,o){var a=XE(e,window.getComputedStyle(t).direction),c=a*r,l=n.target,s=t.contains(l),u=!1,f=c>0,d=0,p=0;do{var $=T0(e,l),y=$[0],m=$[1],w=$[2],h=m-w-a*y;(y||h)&&k0(e,l)&&(d+=h,p+=y),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(o&&d===0||!o&&c>d)||!f&&(o&&p===0||!o&&-c>p))&&(u=!0),u},Ca=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_f=function(e){return[e.deltaX,e.deltaY]},Pf=function(e){return e&&"current"in e?e.current:e},ZE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qE=function(e){return` +`)},t2=0,Xn=[];function n2(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(t2++)[0],a=i.useState(function(){return au()})[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=hm([e.lockRef.current],(e.shards||[]).map(ff),!0).filter(Boolean);return m.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(m,w){if("touches"in m&&m.touches.length===2)return!c.current.allowPinchZoom;var h=ya(m),v=n.current,$="deltaX"in m?m.deltaX:v[0]-h[0],b="deltaY"in m?m.deltaY:v[1]-h[1],E,S=m.target,C=Math.abs($)>Math.abs(b)?"h":"v";if("touches"in m&&C==="h"&&S.type==="range")return!1;var _=uf(C,S);if(!_)return!0;if(_?E=C:(E=C==="v"?"h":"v",_=uf(C,S)),!_)return!1;if(!r.current&&"changedTouches"in m&&($||b)&&(r.current=E),!E)return!0;var P=r.current||E;return qy(P,w,m,P==="h"?$:b,!0)},[]),s=i.useCallback(function(m){var w=m;if(!(!Xn.length||Xn[Xn.length-1]!==a)){var h="deltaY"in w?df(w):ya(w),v=t.current.filter(function(E){return E.name===w.type&&E.target===w.target&&Jy(E.delta,h)})[0];if(v&&v.should){w.cancelable&&w.preventDefault();return}if(!v){var $=(c.current.shards||[]).map(ff).filter(Boolean).filter(function(E){return E.contains(w.target)}),b=$.length>0?l(w,$[0]):!c.current.noIsolation;b&&w.cancelable&&w.preventDefault()}}},[]),u=i.useCallback(function(m,w,h,v){var $={name:m,delta:w,target:h,should:v};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(b){return b!==$})},1)},[]),f=i.useCallback(function(m){n.current=ya(m),r.current=void 0},[]),d=i.useCallback(function(m){u(m.type,df(m),m.target,l(m,e.lockRef.current))},[]),p=i.useCallback(function(m){u(m.type,ya(m),m.target,l(m,e.lockRef.current))},[]);i.useEffect(function(){return Xn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Yn),document.addEventListener("touchmove",s,Yn),document.addEventListener("touchstart",f,Yn),function(){Xn=Xn.filter(function(m){return m!==a}),document.removeEventListener("wheel",s,Yn),document.removeEventListener("touchmove",s,Yn),document.removeEventListener("touchstart",f,Yn)}},[]);var g=e.removeScrollBar,y=e.inert;return i.createElement(i.Fragment,null,y?i.createElement(a,{styles:e2(o)}):null,g?i.createElement(Em,{gapMode:"margin"}):null)}const r2=wm(bm,n2);var _m=i.forwardRef(function(e,t){return i.createElement(Fc,ke({},e,{ref:t,sideCar:r2}))});_m.classNames=Fc.classNames;const zc=_m,Ll=["Enter"," "],o2=["ArrowDown","PageUp","Home"],Pm=["ArrowUp","PageDown","End"],a2=[...o2,...Pm],c2={ltr:[...Ll,"ArrowRight"],rtl:[...Ll,"ArrowLeft"]},i2={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Vc="Menu",[Ro,l2,s2]=yn(Vc),[Bn,Ko]=le(Vc,[s2,Ct,wn]),cu=Ct(),Rm=wn(),[u2,Un]=Bn(Vc),[d2,jo]=Bn(Vc),f2=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:c=!0}=e,l=cu(t),[s,u]=i.useState(null),f=i.useRef(!1),d=ae(a),p=Ut(o);return i.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),i.createElement(fm,l,i.createElement(u2,{scope:t,open:n,onOpenChange:d,content:s,onContentChange:u},i.createElement(d2,{scope:t,onClose:i.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:p,modal:c},r)))},km=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=cu(n);return i.createElement(nu,x({},o,r,{ref:t}))}),Tm="MenuPortal",[p2,Mm]=Bn(Tm,{forceMount:void 0}),v2=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Un(Tm,t);return i.createElement(p2,{scope:t,forceMount:n},i.createElement(se,{present:n||a.open},i.createElement(Ac,{asChild:!0,container:o},r)))},vt="MenuContent",[m2,iu]=Bn(vt),h2=i.forwardRef((e,t)=>{const n=Mm(vt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Un(vt,e.__scopeMenu),c=jo(vt,e.__scopeMenu);return i.createElement(Ro.Provider,{scope:e.__scopeMenu},i.createElement(se,{present:r||a.open},i.createElement(Ro.Slot,{scope:e.__scopeMenu},c.modal?i.createElement(g2,x({},o,{ref:t})):i.createElement($2,x({},o,{ref:t})))))}),g2=i.forwardRef((e,t)=>{const n=Un(vt,e.__scopeMenu),r=i.useRef(null),o=z(t,r);return i.useEffect(()=>{const a=r.current;if(a)return Wo(a)},[]),i.createElement(lu,x({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:R(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),$2=i.forwardRef((e,t)=>{const n=Un(vt,e.__scopeMenu);return i.createElement(lu,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),lu=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:c,disableOutsidePointerEvents:l,onEntryFocus:s,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:g,disableOutsideScroll:y,...m}=e,w=Un(vt,n),h=jo(vt,n),v=cu(n),$=Rm(n),b=l2(n),[E,S]=i.useState(null),C=i.useRef(null),_=z(t,C,w.onContentChange),P=i.useRef(0),D=i.useRef(""),F=i.useRef(0),H=i.useRef(null),Y=i.useRef("right"),N=i.useRef(0),B=y?zc:i.Fragment,U=y?{as:dn,allowPinchZoom:!0}:void 0,X=k=>{var O,V;const j=D.current+k,be=b().filter(q=>!q.disabled),me=document.activeElement,Se=(O=be.find(q=>q.ref.current===me))===null||O===void 0?void 0:O.textValue,re=be.map(q=>q.textValue),L=I2(re,j,Se),Z=(V=be.find(q=>q.textValue===L))===null||V===void 0?void 0:V.ref.current;(function q(J){D.current=J,window.clearTimeout(P.current),J!==""&&(P.current=window.setTimeout(()=>q(""),1e3))})(j),Z&&setTimeout(()=>Z.focus())};i.useEffect(()=>()=>window.clearTimeout(P.current),[]),Mc();const T=i.useCallback(k=>{var O,V;return Y.current===((O=H.current)===null||O===void 0?void 0:O.side)&&N2(k,(V=H.current)===null||V===void 0?void 0:V.area)},[]);return i.createElement(m2,{scope:n,searchRef:D,onItemEnter:i.useCallback(k=>{T(k)&&k.preventDefault()},[T]),onItemLeave:i.useCallback(k=>{var O;T(k)||((O=C.current)===null||O===void 0||O.focus(),S(null))},[T]),onTriggerLeave:i.useCallback(k=>{T(k)&&k.preventDefault()},[T]),pointerGraceTimerRef:F,onPointerGraceIntentChange:i.useCallback(k=>{H.current=k},[])},i.createElement(B,U,i.createElement(Dc,{asChild:!0,trapped:o,onMountAutoFocus:R(a,k=>{var O;k.preventDefault(),(O=C.current)===null||O===void 0||O.focus()}),onUnmountAutoFocus:c},i.createElement(Vn,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:g},i.createElement(Nc,x({asChild:!0},$,{dir:h.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:S,onEntryFocus:R(s,k=>{h.isUsingKeyboardRef.current||k.preventDefault()})}),i.createElement(Ho,x({role:"menu","aria-orientation":"vertical","data-state":Nm(w.open),"data-radix-menu-content":"",dir:h.dir},v,m,{ref:_,style:{outline:"none",...m.style},onKeyDown:R(m.onKeyDown,k=>{const V=k.target.closest("[data-radix-menu-content]")===k.currentTarget,j=k.ctrlKey||k.altKey||k.metaKey,be=k.key.length===1;V&&(k.key==="Tab"&&k.preventDefault(),!j&&be&&X(k.key));const me=C.current;if(k.target!==me||!a2.includes(k.key))return;k.preventDefault();const re=b().filter(L=>!L.disabled).map(L=>L.ref.current);Pm.includes(k.key)&&re.reverse(),D2(re)}),onBlur:R(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(P.current),D.current="")}),onPointerMove:R(e.onPointerMove,ko(k=>{const O=k.target,V=N.current!==k.clientX;if(k.currentTarget.contains(O)&&V){const j=k.clientX>N.current?"right":"left";Y.current=j,N.current=k.clientX}}))})))))))}),y2=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(A.div,x({},r,{ref:t}))}),Fl="MenuItem",pf="menu.itemSelect",su=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=i.useRef(null),c=jo(Fl,e.__scopeMenu),l=iu(Fl,e.__scopeMenu),s=z(t,a),u=i.useRef(!1),f=()=>{const d=a.current;if(!n&&d){const p=new CustomEvent(pf,{bubbles:!0,cancelable:!0});d.addEventListener(pf,g=>r?.(g),{once:!0}),Xv(d,p),p.defaultPrevented?u.current=!1:c.onClose()}};return i.createElement(Dm,x({},o,{ref:s,disabled:n,onClick:R(e.onClick,f),onPointerDown:d=>{var p;(p=e.onPointerDown)===null||p===void 0||p.call(e,d),u.current=!0},onPointerUp:R(e.onPointerUp,d=>{var p;u.current||(p=d.currentTarget)===null||p===void 0||p.click()}),onKeyDown:R(e.onKeyDown,d=>{const p=l.searchRef.current!=="";n||p&&d.key===" "||Ll.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),Dm=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,c=iu(Fl,n),l=Rm(n),s=i.useRef(null),u=z(t,s),[f,d]=i.useState(!1),[p,g]=i.useState("");return i.useEffect(()=>{const y=s.current;if(y){var m;g(((m=y.textContent)!==null&&m!==void 0?m:"").trim())}},[a.children]),i.createElement(Ro.ItemSlot,{scope:n,disabled:r,textValue:o??p},i.createElement(Lc,x({asChild:!0},l,{focusable:!r}),i.createElement(A.div,x({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:u,onPointerMove:R(e.onPointerMove,ko(y=>{r?c.onItemLeave(y):(c.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus())})),onPointerLeave:R(e.onPointerLeave,ko(y=>c.onItemLeave(y))),onFocus:R(e.onFocus,()=>d(!0)),onBlur:R(e.onBlur,()=>d(!1))}))))}),w2=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.createElement(Im,{scope:e.__scopeMenu,checked:n},i.createElement(su,x({role:"menuitemcheckbox","aria-checked":fc(n)?"mixed":n},o,{ref:t,"data-state":uu(n),onSelect:R(o.onSelect,()=>r?.(fc(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),b2="MenuRadioGroup",[UE,E2]=Bn(b2,{value:void 0,onValueChange:()=>{}}),x2="MenuRadioItem",C2=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=E2(x2,e.__scopeMenu),a=n===o.value;return i.createElement(Im,{scope:e.__scopeMenu,checked:a},i.createElement(su,x({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":uu(a),onSelect:R(r.onSelect,()=>{var c;return(c=o.onValueChange)===null||c===void 0?void 0:c.call(o,n)},{checkForDefaultPrevented:!1})})))}),Om="MenuItemIndicator",[Im,S2]=Bn(Om,{checked:!1}),_2=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=S2(Om,n);return i.createElement(se,{present:r||fc(a.checked)||a.checked===!0},i.createElement(A.span,x({},o,{ref:t,"data-state":uu(a.checked)})))}),P2=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(A.div,x({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),R2="MenuSub",[HE,Am]=Bn(R2),wa="MenuSubTrigger",k2=i.forwardRef((e,t)=>{const n=Un(wa,e.__scopeMenu),r=jo(wa,e.__scopeMenu),o=Am(wa,e.__scopeMenu),a=iu(wa,e.__scopeMenu),c=i.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:s}=a,u={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const d=l.current;return()=>{window.clearTimeout(d),s(null)}},[l,s]),i.createElement(km,x({asChild:!0},u),i.createElement(Dm,x({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Nm(n.open)},e,{ref:Vo(t,o.onTriggerChange),onClick:d=>{var p;(p=e.onClick)===null||p===void 0||p.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:R(e.onPointerMove,ko(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(a.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:R(e.onPointerLeave,ko(d=>{var p;f();const g=(p=n.content)===null||p===void 0?void 0:p.getBoundingClientRect();if(g){var y;const m=(y=n.content)===null||y===void 0?void 0:y.dataset.side,w=m==="right",h=w?-5:5,v=g[w?"left":"right"],$=g[w?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+h,y:d.clientY},{x:v,y:g.top},{x:$,y:g.top},{x:$,y:g.bottom},{x:v,y:g.bottom}],side:m}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:R(e.onKeyDown,d=>{const p=a.searchRef.current!=="";if(!(e.disabled||p&&d.key===" ")&&c2[r.dir].includes(d.key)){var g;n.onOpenChange(!0),(g=n.content)===null||g===void 0||g.focus(),d.preventDefault()}})})))}),T2="MenuSubContent",M2=i.forwardRef((e,t)=>{const n=Mm(vt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Un(vt,e.__scopeMenu),c=jo(vt,e.__scopeMenu),l=Am(T2,e.__scopeMenu),s=i.useRef(null),u=z(t,s);return i.createElement(Ro.Provider,{scope:e.__scopeMenu},i.createElement(se,{present:r||a.open},i.createElement(Ro.Slot,{scope:e.__scopeMenu},i.createElement(lu,x({id:l.contentId,"aria-labelledby":l.triggerId},o,{ref:u,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;c.isUsingKeyboardRef.current&&((d=s.current)===null||d===void 0||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:R(e.onFocusOutside,f=>{f.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:R(e.onEscapeKeyDown,f=>{c.onClose(),f.preventDefault()}),onKeyDown:R(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),p=i2[c.dir].includes(f.key);if(d&&p){var g;a.onOpenChange(!1),(g=l.trigger)===null||g===void 0||g.focus(),f.preventDefault()}})})))))});function Nm(e){return e?"open":"closed"}function fc(e){return e==="indeterminate"}function uu(e){return fc(e)?"indeterminate":e?"checked":"unchecked"}function D2(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function O2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function I2(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let c=O2(e,Math.max(a,0));o.length===1&&(c=c.filter(u=>u!==n));const s=c.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function A2(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,c=t.length-1;ar!=f>r&&n<(u-l)*(r-s)/(f-s)+l&&(o=!o)}return o}function N2(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return A2(n,t)}function ko(e){return t=>t.pointerType==="mouse"?e(t):void 0}const L2=f2,Lm=km,du=v2,fu=h2,pu=y2,vu=su,mu=w2,hu=C2,gu=_2,$u=P2,yu=k2,wu=M2,Fm="DropdownMenu",[F2,WE]=le(Fm,[Ko]),ct=Ko(),[z2,zm]=F2(Fm),V2=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:c,modal:l=!0}=e,s=ct(t),u=i.useRef(null),[f=!1,d]=Ne({prop:o,defaultProp:a,onChange:c});return i.createElement(z2,{scope:t,triggerId:nt(),triggerRef:u,contentId:nt(),open:f,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(p=>!p),[d]),modal:l},i.createElement(L2,x({},s,{open:f,onOpenChange:d,dir:r,modal:l}),n))},B2="DropdownMenuTrigger",U2=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=zm(B2,n),c=ct(n);return i.createElement(Lm,x({asChild:!0},c),i.createElement(A.button,x({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:Vo(t,a.triggerRef),onPointerDown:R(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:R(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),H2=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ct(t);return i.createElement(du,x({},r,n))},W2="DropdownMenuContent",K2=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zm(W2,n),a=ct(n),c=i.useRef(!1);return i.createElement(fu,x({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:R(e.onCloseAutoFocus,l=>{var s;c.current||(s=o.triggerRef.current)===null||s===void 0||s.focus(),c.current=!1,l.preventDefault()}),onInteractOutside:R(e.onInteractOutside,l=>{const s=l.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0,f=s.button===2||u;(!o.modal||f)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),j2=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(pu,x({},o,r,{ref:t}))}),G2=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(vu,x({},o,r,{ref:t}))}),Y2=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(mu,x({},o,r,{ref:t}))}),X2=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(hu,x({},o,r,{ref:t}))}),Q2=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(gu,x({},o,r,{ref:t}))}),Z2=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement($u,x({},o,r,{ref:t}))}),q2=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(yu,x({},o,r,{ref:t}))}),J2=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return i.createElement(wu,x({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),KE=V2,jE=U2,GE=H2,YE=K2,XE=j2,QE=G2,ZE=Y2,qE=X2,JE=Q2,e8=Z2,t8=q2,n8=J2;function Wt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}var ew=["color"],r8=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Wt(e,ew);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),tw=["color"],o8=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Wt(e,tw);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),nw=["color"],a8=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Wt(e,nw);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),rw=["color"],c8=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Wt(e,rw);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ow=["color"],i8=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Wt(e,ow);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),aw=["color"],l8=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Wt(e,aw);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))}),cw=["color"],s8=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Wt(e,cw);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),iw=["color"],u8=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Wt(e,iw);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M5.5 4.625C6.12132 4.625 6.625 4.12132 6.625 3.5C6.625 2.87868 6.12132 2.375 5.5 2.375C4.87868 2.375 4.375 2.87868 4.375 3.5C4.375 4.12132 4.87868 4.625 5.5 4.625ZM9.5 4.625C10.1213 4.625 10.625 4.12132 10.625 3.5C10.625 2.87868 10.1213 2.375 9.5 2.375C8.87868 2.375 8.375 2.87868 8.375 3.5C8.375 4.12132 8.87868 4.625 9.5 4.625ZM10.625 7.5C10.625 8.12132 10.1213 8.625 9.5 8.625C8.87868 8.625 8.375 8.12132 8.375 7.5C8.375 6.87868 8.87868 6.375 9.5 6.375C10.1213 6.375 10.625 6.87868 10.625 7.5ZM5.5 8.625C6.12132 8.625 6.625 8.12132 6.625 7.5C6.625 6.87868 6.12132 6.375 5.5 6.375C4.87868 6.375 4.375 6.87868 4.375 7.5C4.375 8.12132 4.87868 8.625 5.5 8.625ZM10.625 11.5C10.625 12.1213 10.1213 12.625 9.5 12.625C8.87868 12.625 8.375 12.1213 8.375 11.5C8.375 10.8787 8.87868 10.375 9.5 10.375C10.1213 10.375 10.625 10.8787 10.625 11.5ZM5.5 12.625C6.12132 12.625 6.625 12.1213 6.625 11.5C6.625 10.8787 6.12132 10.375 5.5 10.375C4.87868 10.375 4.375 10.8787 4.375 11.5C4.375 12.1213 4.87868 12.625 5.5 12.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),lw=["color"],d8=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Wt(e,lw);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const Vm="ContextMenu",[sw,f8]=le(Vm,[Ko]),St=Ko(),[p8,uw]=sw(Vm),dw=e=>{const{__scopeContextMenu:t,...n}=e,r=St(t);return i.createElement(du,x({},r,n))},fw="ContextMenuContent",pw=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=uw(fw,n),a=St(n),c=i.useRef(!1);return i.createElement(fu,x({},a,r,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:l=>{var s;(s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,l),!l.defaultPrevented&&c.current&&l.preventDefault(),c.current=!1},onInteractOutside:l=>{var s;(s=e.onInteractOutside)===null||s===void 0||s.call(e,l),!l.defaultPrevented&&!o.modal&&(c.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),vw=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(pu,x({},o,r,{ref:t}))}),mw=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(vu,x({},o,r,{ref:t}))}),hw=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(mu,x({},o,r,{ref:t}))}),gw=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(hu,x({},o,r,{ref:t}))}),$w=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(gu,x({},o,r,{ref:t}))}),yw=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement($u,x({},o,r,{ref:t}))}),ww=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(yu,x({},o,r,{ref:t}))}),bw=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(wu,x({},o,r,{ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),v8=dw,m8=pw,h8=vw,g8=mw,$8=hw,y8=gw,w8=$w,b8=yw,E8=ww,x8=bw;function Ir(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Bm=i.forwardRef((e,t)=>i.createElement(A.span,x({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Um=Bm,Go="NavigationMenu",[bu,Hm,Ew]=yn(Go),[zl,xw,Cw]=yn(Go),[Eu,C8]=le(Go,[Ew,Cw]),[Sw,ht]=Eu(Go),[_w,Pw]=Eu(Go),Rw=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:c=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:u,...f}=e,[d,p]=i.useState(null),g=z(t,P=>p(P)),y=Ut(u),m=i.useRef(0),w=i.useRef(0),h=i.useRef(0),[v,$]=i.useState(!0),[b="",E]=Ne({prop:r,onChange:P=>{const D=P!=="",F=l>0;D?(window.clearTimeout(h.current),F&&$(!1)):(window.clearTimeout(h.current),h.current=window.setTimeout(()=>$(!0),l)),o?.(P)},defaultProp:a}),S=i.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>E(""),150)},[E]),C=i.useCallback(P=>{window.clearTimeout(w.current),E(P)},[E]),_=i.useCallback(P=>{b===P?window.clearTimeout(w.current):m.current=window.setTimeout(()=>{window.clearTimeout(w.current),E(P)},c)},[b,E,c]);return i.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(w.current),window.clearTimeout(h.current)},[]),i.createElement(kw,{scope:n,isRootMenu:!0,value:b,dir:y,orientation:s,rootNavigationMenu:d,onTriggerEnter:P=>{window.clearTimeout(m.current),v?_(P):C(P)},onTriggerLeave:()=>{window.clearTimeout(m.current),S()},onContentEnter:()=>window.clearTimeout(w.current),onContentLeave:S,onItemSelect:P=>{E(D=>D===P?"":P)},onItemDismiss:()=>E("")},i.createElement(A.nav,x({"aria-label":"Main","data-orientation":s,dir:y},f,{ref:g})))}),kw=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:c,value:l,onItemSelect:s,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:d,onContentEnter:p,onContentLeave:g}=e,[y,m]=i.useState(null),[w,h]=i.useState(new Map),[v,$]=i.useState(null);return i.createElement(Sw,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:Ir(l),baseId:nt(),dir:o,orientation:a,viewport:y,onViewportChange:m,indicatorTrack:v,onIndicatorTrackChange:$,onTriggerEnter:ae(f),onTriggerLeave:ae(d),onContentEnter:ae(p),onContentLeave:ae(g),onItemSelect:ae(s),onItemDismiss:ae(u),onViewportContentChange:i.useCallback((b,E)=>{h(S=>(S.set(b,E),new Map(S)))},[]),onViewportContentRemove:i.useCallback(b=>{h(E=>E.has(b)?(E.delete(b),new Map(E)):E)},[])},i.createElement(bu.Provider,{scope:t},i.createElement(_w,{scope:t,items:w},c)))},Tw="NavigationMenuList",Mw=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=ht(Tw,n),a=i.createElement(A.ul,x({"data-orientation":o.orientation},r,{ref:t}));return i.createElement(A.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},i.createElement(bu.Slot,{scope:n},o.isRootMenu?i.createElement(Ym,{asChild:!0},a):a))}),Dw="NavigationMenuItem",[S8,Wm]=Eu(Dw),vf="NavigationMenuTrigger",Ow=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=ht(vf,e.__scopeNavigationMenu),c=Wm(vf,e.__scopeNavigationMenu),l=i.useRef(null),s=z(l,c.triggerRef,t),u=Qm(a.baseId,c.value),f=Zm(a.baseId,c.value),d=i.useRef(!1),p=i.useRef(!1),g=c.value===a.value;return i.createElement(i.Fragment,null,i.createElement(bu.ItemSlot,{scope:n,value:c.value},i.createElement(Uw,{asChild:!0},i.createElement(A.button,x({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":xu(g),"aria-expanded":g,"aria-controls":f},o,{ref:s,onPointerEnter:R(e.onPointerEnter,()=>{p.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:R(e.onPointerMove,pc(()=>{r||p.current||c.wasEscapeCloseRef.current||d.current||(a.onTriggerEnter(c.value),d.current=!0)})),onPointerLeave:R(e.onPointerLeave,pc(()=>{r||(a.onTriggerLeave(),d.current=!1)})),onClick:R(e.onClick,()=>{a.onItemSelect(c.value),p.current=g}),onKeyDown:R(e.onKeyDown,y=>{const w={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];g&&y.key===w&&(c.onEntryKeyDown(),y.preventDefault())})})))),g&&i.createElement(i.Fragment,null,i.createElement(Um,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:y=>{const m=c.contentRef.current,w=y.relatedTarget,h=w===l.current,v=m?.contains(w);(h||!v)&&c.onFocusProxyEnter(h?"start":"end")}}),a.viewport&&i.createElement("span",{"aria-owns":f})))}),Km="NavigationMenuIndicator",Iw=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ht(Km,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?Ys.createPortal(i.createElement(se,{present:n||a},i.createElement(Aw,x({},r,{ref:t}))),o.indicatorTrack):null}),Aw=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=ht(Km,n),a=Hm(n),[c,l]=i.useState(null),[s,u]=i.useState(null),f=o.orientation==="horizontal",d=!!o.value;i.useEffect(()=>{var g;const m=(g=a().find(w=>w.value===o.value))===null||g===void 0?void 0:g.ref.current;m&&l(m)},[a,o.value]);const p=()=>{c&&u({size:f?c.offsetWidth:c.offsetHeight,offset:f?c.offsetLeft:c.offsetTop})};return Vl(c,p),Vl(o.indicatorTrack,p),s?i.createElement(A.div,x({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":o.orientation},r,{ref:t,style:{position:"absolute",...f?{left:0,width:s.size+"px",transform:`translateX(${s.offset}px)`}:{top:0,height:s.size+"px",transform:`translateY(${s.offset}px)`},...r.style}})):null}),To="NavigationMenuContent",Nw=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ht(To,e.__scopeNavigationMenu),a=Wm(To,e.__scopeNavigationMenu),c=z(a.contentRef,t),l=a.value===o.value,s={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?i.createElement(Lw,x({forceMount:n},s,{ref:c})):i.createElement(se,{present:n||l},i.createElement(jm,x({"data-state":xu(l)},s,{ref:c,onPointerEnter:R(e.onPointerEnter,o.onContentEnter),onPointerLeave:R(e.onPointerLeave,pc(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),Lw=i.forwardRef((e,t)=>{const n=ht(To,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Oe(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Oe(()=>()=>o(e.value),[e.value,o]),null}),Di="navigationMenu.rootContentDismiss",jm=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:c,onRootContentClose:l,onContentFocusOutside:s,...u}=e,f=ht(To,n),d=i.useRef(null),p=z(d,t),g=Qm(f.baseId,r),y=Zm(f.baseId,r),m=Hm(n),w=i.useRef(null),{onItemDismiss:h}=f;i.useEffect(()=>{const $=d.current;if(f.isRootMenu&&$){const b=()=>{var E;h(),l(),$.contains(document.activeElement)&&((E=o.current)===null||E===void 0||E.focus())};return $.addEventListener(Di,b),()=>$.removeEventListener(Di,b)}},[f.isRootMenu,e.value,o,h,l]);const v=i.useMemo(()=>{const b=m().map(D=>D.value);f.dir==="rtl"&&b.reverse();const E=b.indexOf(f.value),S=b.indexOf(f.previousValue),C=r===f.value,_=S===b.indexOf(r);if(!C&&!_)return w.current;const P=(()=>{if(E!==S){if(C&&S!==-1)return E>S?"from-end":"from-start";if(_&&E!==-1)return E>S?"to-start":"to-end"}return null})();return w.current=P,P},[f.previousValue,f.value,f.dir,m,r]);return i.createElement(Ym,{asChild:!0},i.createElement(Vn,x({id:y,"aria-labelledby":g,"data-motion":v,"data-orientation":f.orientation},u,{ref:p,onDismiss:()=>{var $;const b=new Event(Di,{bubbles:!0,cancelable:!0});($=d.current)===null||$===void 0||$.dispatchEvent(b)},onFocusOutside:R(e.onFocusOutside,$=>{var b;s();const E=$.target;(b=f.rootNavigationMenu)!==null&&b!==void 0&&b.contains(E)&&$.preventDefault()}),onPointerDownOutside:R(e.onPointerDownOutside,$=>{var b;const E=$.target,S=m().some(_=>{var P;return(P=_.ref.current)===null||P===void 0?void 0:P.contains(E)}),C=f.isRootMenu&&((b=f.viewport)===null||b===void 0?void 0:b.contains(E));(S||C||!f.isRootMenu)&&$.preventDefault()}),onKeyDown:R(e.onKeyDown,$=>{const b=$.altKey||$.ctrlKey||$.metaKey;if($.key==="Tab"&&!b){const C=Hw($.currentTarget),_=document.activeElement,P=C.findIndex(H=>H===_),F=$.shiftKey?C.slice(0,P).reverse():C.slice(P+1,C.length);if(Xm(F))$.preventDefault();else{var S;(S=a.current)===null||S===void 0||S.focus()}}}),onEscapeKeyDown:R(e.onEscapeKeyDown,$=>{c.current=!0})})))}),Gm="NavigationMenuViewport",Fw=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!ht(Gm,e.__scopeNavigationMenu).value;return i.createElement(se,{present:n||a},i.createElement(zw,x({},r,{ref:t})))}),zw=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=ht(Gm,n),c=z(t,a.onViewportChange),l=Pw(To,e.__scopeNavigationMenu),[s,u]=i.useState(null),[f,d]=i.useState(null),p=s?s?.width+"px":void 0,g=s?s?.height+"px":void 0,y=!!a.value,m=y?a.value:a.previousValue;return Vl(f,()=>{f&&u({width:f.offsetWidth,height:f.offsetHeight})}),i.createElement(A.div,x({"data-state":xu(y),"data-orientation":a.orientation},o,{ref:c,style:{pointerEvents:!y&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":g,...o.style},onPointerEnter:R(e.onPointerEnter,a.onContentEnter),onPointerLeave:R(e.onPointerLeave,pc(a.onContentLeave))}),Array.from(l.items).map(([h,{ref:v,forceMount:$,...b}])=>{const E=m===h;return i.createElement(se,{key:h,present:$||E},i.createElement(jm,x({},b,{ref:Vo(v,S=>{E&&S&&d(S)})})))}))}),Vw="FocusGroup",Ym=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=ht(Vw,n);return i.createElement(zl.Provider,{scope:n},i.createElement(zl.Slot,{scope:n},i.createElement(A.div,x({dir:o.dir},r,{ref:t}))))}),mf=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Bw="FocusGroupItem",Uw=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=xw(n),a=ht(Bw,n);return i.createElement(zl.ItemSlot,{scope:n},i.createElement(A.button,x({},r,{ref:t,onKeyDown:R(e.onKeyDown,c=>{if(["Home","End",...mf].includes(c.key)){let s=o().map(d=>d.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(c.key)&&s.reverse(),mf.includes(c.key)){const d=s.indexOf(c.currentTarget);s=s.slice(d+1)}setTimeout(()=>Xm(s)),c.preventDefault()}})})))});function Hw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Xm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function Vl(e,t){const n=ae(t);Oe(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function xu(e){return e?"open":"closed"}function Qm(e,t){return`${e}-trigger-${t}`}function Zm(e,t){return`${e}-content-${t}`}function pc(e){return t=>t.pointerType==="mouse"?e(t):void 0}const _8=Rw,P8=Mw,R8=Ow,k8=Iw,T8=Nw,M8=Fw,qm="Checkbox",[Ww,D8]=le(qm),[Kw,jw]=Ww(qm),Gw=i.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:c,disabled:l,value:s="on",onCheckedChange:u,...f}=e,[d,p]=i.useState(null),g=z(t,$=>p($)),y=i.useRef(!1),m=d?!!d.closest("form"):!0,[w=!1,h]=Ne({prop:o,defaultProp:a,onChange:u}),v=i.useRef(w);return i.useEffect(()=>{const $=d?.form;if($){const b=()=>h(v.current);return $.addEventListener("reset",b),()=>$.removeEventListener("reset",b)}},[d,h]),i.createElement(Kw,{scope:n,state:w,disabled:l},i.createElement(A.button,x({type:"button",role:"checkbox","aria-checked":Tn(w)?"mixed":w,"aria-required":c,"data-state":Jm(w),"data-disabled":l?"":void 0,disabled:l,value:s},f,{ref:g,onKeyDown:R(e.onKeyDown,$=>{$.key==="Enter"&&$.preventDefault()}),onClick:R(e.onClick,$=>{h(b=>Tn(b)?!0:!b),m&&(y.current=$.isPropagationStopped(),y.current||$.stopPropagation())})})),m&&i.createElement(Qw,{control:d,bubbles:!y.current,name:r,value:s,checked:w,required:c,disabled:l,style:{transform:"translateX(-100%)"}}))}),Yw="CheckboxIndicator",Xw=i.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=jw(Yw,n);return i.createElement(se,{present:r||Tn(a.state)||a.state===!0},i.createElement(A.span,x({"data-state":Jm(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),Qw=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=i.useRef(null),c=Ir(n),l=Uo(t);return i.useEffect(()=>{const s=a.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(c!==n&&d){const p=new Event("click",{bubbles:r});s.indeterminate=Tn(n),d.call(s,Tn(n)?!1:n),s.dispatchEvent(p)}},[c,n,r]),i.createElement("input",x({type:"checkbox","aria-hidden":!0,defaultChecked:Tn(n)?!1:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Tn(e){return e==="indeterminate"}function Jm(e){return Tn(e)?"indeterminate":e?"checked":"unchecked"}const O8=Gw,I8=Xw,e0="Radio",[Zw,t0]=le(e0),[qw,Jw]=Zw(e0),eb=i.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:c,value:l="on",onCheck:s,...u}=e,[f,d]=i.useState(null),p=z(t,m=>d(m)),g=i.useRef(!1),y=f?!!f.closest("form"):!0;return i.createElement(qw,{scope:n,checked:o,disabled:c},i.createElement(A.button,x({type:"button",role:"radio","aria-checked":o,"data-state":n0(o),"data-disabled":c?"":void 0,disabled:c,value:l},u,{ref:p,onClick:R(e.onClick,m=>{o||s?.(),y&&(g.current=m.isPropagationStopped(),g.current||m.stopPropagation())})})),y&&i.createElement(rb,{control:f,bubbles:!g.current,name:r,value:l,checked:o,required:a,disabled:c,style:{transform:"translateX(-100%)"}}))}),tb="RadioIndicator",nb=i.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=Jw(tb,n);return i.createElement(se,{present:r||a.checked},i.createElement(A.span,x({"data-state":n0(a.checked),"data-disabled":a.disabled?"":void 0},o,{ref:t})))}),rb=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=i.useRef(null),c=Ir(n),l=Uo(t);return i.useEffect(()=>{const s=a.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(c!==n&&d){const p=new Event("click",{bubbles:r});d.call(s,n),s.dispatchEvent(p)}},[c,n,r]),i.createElement("input",x({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function n0(e){return e?"checked":"unchecked"}const ob=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],r0="RadioGroup",[ab,A8]=le(r0,[wn,t0]),o0=wn(),a0=t0(),[cb,ib]=ab(r0),lb=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:c=!1,disabled:l=!1,orientation:s,dir:u,loop:f=!0,onValueChange:d,...p}=e,g=o0(n),y=Ut(u),[m,w]=Ne({prop:a,defaultProp:o,onChange:d});return i.createElement(cb,{scope:n,name:r,required:c,disabled:l,value:m,onValueChange:w},i.createElement(Nc,x({asChild:!0},g,{orientation:s,dir:y,loop:f}),i.createElement(A.div,x({role:"radiogroup","aria-required":c,"aria-orientation":s,"data-disabled":l?"":void 0,dir:y},p,{ref:t}))))}),sb="RadioGroupItem",ub=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=ib(sb,n),c=a.disabled||r,l=o0(n),s=a0(n),u=i.useRef(null),f=z(t,u),d=a.value===o.value,p=i.useRef(!1);return i.useEffect(()=>{const g=m=>{ob.includes(m.key)&&(p.current=!0)},y=()=>p.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",y)}},[]),i.createElement(Lc,x({asChild:!0},l,{focusable:!c,active:d}),i.createElement(eb,x({disabled:c,required:a.required,checked:d},s,o,{name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:R(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:R(o.onFocus,()=>{var g;p.current&&((g=u.current)===null||g===void 0||g.click())})})))}),db=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=a0(n);return i.createElement(nb,x({},o,r,{ref:t}))}),N8=lb,L8=ub,F8=db;function Mo(e,[t,n]){return Math.min(n,Math.max(t,e))}const fb=[" ","Enter","ArrowUp","ArrowDown"],pb=[" ","Enter"],Bc="Select",[Cu,Su,vb]=yn(Bc),[Ar,z8]=le(Bc,[vb,Ct]),c0=Ct(),[V8,Nr]=Ar(Bc),[B8,mb]=Ar(Bc),hb="SelectTrigger",gb=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=c0(n),c=Nr(hb,n),l=c.disabled||r,s=z(t,c.onTriggerChange),u=Su(n),[f,d,p]=s0(y=>{const m=u().filter(v=>!v.disabled),w=m.find(v=>v.value===c.value),h=u0(m,y,w);h!==void 0&&c.onValueChange(h.value)}),g=()=>{l||(c.onOpenChange(!0),p())};return i.createElement(nu,x({asChild:!0},a),i.createElement(A.button,x({type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Nb(c.value)?"":void 0},o,{ref:s,onClick:R(o.onClick,y=>{y.currentTarget.focus()}),onPointerDown:R(o.onPointerDown,y=>{const m=y.target;m.hasPointerCapture(y.pointerId)&&m.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&(g(),c.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)},y.preventDefault())}),onKeyDown:R(o.onKeyDown,y=>{const m=f.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&d(y.key),!(m&&y.key===" ")&&fb.includes(y.key)&&(g(),y.preventDefault())})})))}),$b=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.createElement(A.span,x({"aria-hidden":!0},o,{ref:t}),r||"▼")}),yb=e=>i.createElement(Ac,x({asChild:!0},e)),_r="SelectContent",wb=i.forwardRef((e,t)=>{const n=Nr(_r,e.__scopeSelect),[r,o]=i.useState();if(Oe(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?$n.createPortal(i.createElement(i0,{scope:e.__scopeSelect},i.createElement(Cu.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),a):null}return i.createElement(bb,x({},e,{ref:t}))}),kt=10,[i0,Uc]=Ar(_r),bb=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:c,side:l,sideOffset:s,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:g,sticky:y,hideWhenDetached:m,avoidCollisions:w,...h}=e,v=Nr(_r,n),[$,b]=i.useState(null),[E,S]=i.useState(null),C=z(t,L=>b(L)),[_,P]=i.useState(null),[D,F]=i.useState(null),H=Su(n),[Y,N]=i.useState(!1),B=i.useRef(!1);i.useEffect(()=>{if($)return Wo($)},[$]),Mc();const U=i.useCallback(L=>{const[Z,...q]=H().map(te=>te.ref.current),[J]=q.slice(-1),ee=document.activeElement;for(const te of L)if(te===ee||(te?.scrollIntoView({block:"nearest"}),te===Z&&E&&(E.scrollTop=0),te===J&&E&&(E.scrollTop=E.scrollHeight),te?.focus(),document.activeElement!==ee))return},[H,E]),X=i.useCallback(()=>U([_,$]),[U,_,$]);i.useEffect(()=>{Y&&X()},[Y,X]);const{onOpenChange:T,triggerPointerDownPosRef:k}=v;i.useEffect(()=>{if($){let L={x:0,y:0};const Z=J=>{var ee,te,Ue,He;L={x:Math.abs(Math.round(J.pageX)-((ee=(te=k.current)===null||te===void 0?void 0:te.x)!==null&&ee!==void 0?ee:0)),y:Math.abs(Math.round(J.pageY)-((Ue=(He=k.current)===null||He===void 0?void 0:He.y)!==null&&Ue!==void 0?Ue:0))}},q=J=>{L.x<=10&&L.y<=10?J.preventDefault():$.contains(J.target)||T(!1),document.removeEventListener("pointermove",Z),k.current=null};return k.current!==null&&(document.addEventListener("pointermove",Z),document.addEventListener("pointerup",q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",q,{capture:!0})}}},[$,T,k]),i.useEffect(()=>{const L=()=>T(!1);return window.addEventListener("blur",L),window.addEventListener("resize",L),()=>{window.removeEventListener("blur",L),window.removeEventListener("resize",L)}},[T]);const[O,V]=s0(L=>{const Z=H().filter(ee=>!ee.disabled),q=Z.find(ee=>ee.ref.current===document.activeElement),J=u0(Z,L,q);J&&setTimeout(()=>J.ref.current.focus())}),j=i.useCallback((L,Z,q)=>{const J=!B.current&&!q;(v.value!==void 0&&v.value===Z||J)&&(P(L),J&&(B.current=!0))},[v.value]),be=i.useCallback(()=>$?.focus(),[$]),me=i.useCallback((L,Z,q)=>{const J=!B.current&&!q;(v.value!==void 0&&v.value===Z||J)&&F(L)},[v.value]),Se=r==="popper"?hf:Eb,re=Se===hf?{side:l,sideOffset:s,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:g,sticky:y,hideWhenDetached:m,avoidCollisions:w}:{};return i.createElement(i0,{scope:n,content:$,viewport:E,onViewportChange:S,itemRefCallback:j,selectedItem:_,onItemLeave:be,itemTextRefCallback:me,focusSelectedItem:X,selectedItemText:D,position:r,isPositioned:Y,searchRef:O},i.createElement(zc,{as:dn,allowPinchZoom:!0},i.createElement(Dc,{asChild:!0,trapped:v.open,onMountAutoFocus:L=>{L.preventDefault()},onUnmountAutoFocus:R(o,L=>{var Z;(Z=v.trigger)===null||Z===void 0||Z.focus({preventScroll:!0}),L.preventDefault()})},i.createElement(Vn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:L=>L.preventDefault(),onDismiss:()=>v.onOpenChange(!1)},i.createElement(Se,x({role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:L=>L.preventDefault()},h,re,{onPlaced:()=>N(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:R(h.onKeyDown,L=>{const Z=L.ctrlKey||L.altKey||L.metaKey;if(L.key==="Tab"&&L.preventDefault(),!Z&&L.key.length===1&&V(L.key),["ArrowUp","ArrowDown","Home","End"].includes(L.key)){let J=H().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(L.key)&&(J=J.slice().reverse()),["ArrowUp","ArrowDown"].includes(L.key)){const ee=L.target,te=J.indexOf(ee);J=J.slice(te+1)}setTimeout(()=>U(J)),L.preventDefault()}})}))))))}),Eb=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Nr(_r,n),c=Uc(_r,n),[l,s]=i.useState(null),[u,f]=i.useState(null),d=z(t,C=>f(C)),p=Su(n),g=i.useRef(!1),y=i.useRef(!0),{viewport:m,selectedItem:w,selectedItemText:h,focusSelectedItem:v}=c,$=i.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&m&&w&&h){const C=a.trigger.getBoundingClientRect(),_=u.getBoundingClientRect(),P=a.valueNode.getBoundingClientRect(),D=h.getBoundingClientRect();if(a.dir!=="rtl"){const ee=D.left-_.left,te=P.left-ee,Ue=C.left-te,He=C.width+Ue,Pt=Math.max(He,_.width),Kn=window.innerWidth-kt,Fr=Mo(te,[kt,Kn-Pt]);l.style.minWidth=He+"px",l.style.left=Fr+"px"}else{const ee=_.right-D.right,te=window.innerWidth-P.right-ee,Ue=window.innerWidth-C.right-te,He=C.width+Ue,Pt=Math.max(He,_.width),Kn=window.innerWidth-kt,Fr=Mo(te,[kt,Kn-Pt]);l.style.minWidth=He+"px",l.style.right=Fr+"px"}const F=p(),H=window.innerHeight-kt*2,Y=m.scrollHeight,N=window.getComputedStyle(u),B=parseInt(N.borderTopWidth,10),U=parseInt(N.paddingTop,10),X=parseInt(N.borderBottomWidth,10),T=parseInt(N.paddingBottom,10),k=B+U+Y+T+X,O=Math.min(w.offsetHeight*5,k),V=window.getComputedStyle(m),j=parseInt(V.paddingTop,10),be=parseInt(V.paddingBottom,10),me=C.top+C.height/2-kt,Se=H-me,re=w.offsetHeight/2,L=w.offsetTop+re,Z=B+U+L,q=k-Z;if(Z<=me){const ee=w===F[F.length-1].ref.current;l.style.bottom="0px";const te=u.clientHeight-m.offsetTop-m.offsetHeight,Ue=Math.max(Se,re+(ee?be:0)+te+X),He=Z+Ue;l.style.height=He+"px"}else{const ee=w===F[0].ref.current;l.style.top="0px";const Ue=Math.max(me,B+m.offsetTop+(ee?j:0)+re)+q;l.style.height=Ue+"px",m.scrollTop=Z-me+m.offsetTop}l.style.margin=`${kt}px 0`,l.style.minHeight=O+"px",l.style.maxHeight=H+"px",r?.(),requestAnimationFrame(()=>g.current=!0)}},[p,a.trigger,a.valueNode,l,u,m,w,h,a.dir,r]);Oe(()=>$(),[$]);const[b,E]=i.useState();Oe(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const S=i.useCallback(C=>{C&&y.current===!0&&($(),v?.(),y.current=!1)},[$,v]);return i.createElement(xb,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:g,onScrollButtonChange:S},i.createElement("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b}},i.createElement(A.div,x({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),hf=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=kt,...a}=e,c=c0(n);return i.createElement(Ho,x({},c,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.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)"}}))}),[xb,Cb]=Ar(_r,{}),gf="SelectViewport",Sb=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Uc(gf,n),a=Cb(gf,n),c=z(t,o.onViewportChange),l=i.useRef(0);return i.createElement(i.Fragment,null,i.createElement("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}"}}),i.createElement(Cu.Slot,{scope:n},i.createElement(A.div,x({"data-radix-select-viewport":"",role:"presentation"},r,{ref:c,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:R(r.onScroll,s=>{const u=s.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=a;if(d!=null&&d.current&&f){const p=Math.abs(l.current-u.scrollTop);if(p>0){const g=window.innerHeight-kt*2,y=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),w=Math.max(y,m);if(w0?$:0,f.style.justifyContent="flex-end")}}}l.current=u.scrollTop})}))))}),_b="SelectGroup",[U8,Pb]=Ar(_b),Rb="SelectLabel",kb=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Pb(Rb,n);return i.createElement(A.div,x({id:o.id},r,{ref:t}))}),Bl="SelectItem",[Tb,l0]=Ar(Bl),Mb=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...c}=e,l=Nr(Bl,n),s=Uc(Bl,n),u=l.value===r,[f,d]=i.useState(a??""),[p,g]=i.useState(!1),y=z(t,h=>{var v;return(v=s.itemRefCallback)===null||v===void 0?void 0:v.call(s,h,r,o)}),m=nt(),w=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.createElement(Tb,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:i.useCallback(h=>{d(v=>{var $;return v||(($=h?.textContent)!==null&&$!==void 0?$:"").trim()})},[])},i.createElement(Cu.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},i.createElement(A.div,x({role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},c,{ref:y,onFocus:R(c.onFocus,()=>g(!0)),onBlur:R(c.onBlur,()=>g(!1)),onPointerUp:R(c.onPointerUp,w),onPointerMove:R(c.onPointerMove,h=>{if(o){var v;(v=s.onItemLeave)===null||v===void 0||v.call(s)}else h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:R(c.onPointerLeave,h=>{if(h.currentTarget===document.activeElement){var v;(v=s.onItemLeave)===null||v===void 0||v.call(s)}}),onKeyDown:R(c.onKeyDown,h=>{var v;((v=s.searchRef)===null||v===void 0?void 0:v.current)!==""&&h.key===" "||(pb.includes(h.key)&&w(),h.key===" "&&h.preventDefault())})}))))}),ba="SelectItemText",Db=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,c=Nr(ba,n),l=Uc(ba,n),s=l0(ba,n),u=mb(ba,n),[f,d]=i.useState(null),p=z(t,h=>d(h),s.onItemTextChange,h=>{var v;return(v=l.itemTextRefCallback)===null||v===void 0?void 0:v.call(l,h,s.value,s.disabled)}),g=f?.textContent,y=i.useMemo(()=>i.createElement("option",{key:s.value,value:s.value,disabled:s.disabled},g),[s.disabled,s.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:w}=u;return Oe(()=>(m(y),()=>w(y)),[m,w,y]),i.createElement(i.Fragment,null,i.createElement(A.span,x({id:s.textId},a,{ref:p})),s.isSelected&&c.valueNode&&!c.valueNodeHasChildren?$n.createPortal(a.children,c.valueNode):null)}),Ob="SelectItemIndicator",Ib=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l0(Ob,n).isSelected?i.createElement(A.span,x({"aria-hidden":!0},r,{ref:t})):null}),Ab=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.createElement(A.div,x({"aria-hidden":!0},r,{ref:t}))});function Nb(e){return e===""||e===void 0}const Lb=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),a=z(t,o),c=Ir(n);return i.useEffect(()=>{const l=o.current,s=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(s,"value").set;if(c!==n&&f){const d=new Event("change",{bubbles:!0});f.call(l,n),l.dispatchEvent(d)}},[c,n]),i.createElement(Bm,{asChild:!0},i.createElement("select",x({},r,{ref:a,defaultValue:n})))});Lb.displayName="BubbleSelect";function s0(e){const t=ae(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(c=>{const l=n.current+c;t(l),function s(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>s(""),1e3))}(l)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function u0(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let c=Fb(e,Math.max(a,0));o.length===1&&(c=c.filter(u=>u!==n));const s=c.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function Fb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const H8=gb,W8=$b,K8=yb,j8=wb,G8=Sb,Y8=kb,X8=Mb,Q8=Db,Z8=Ib,q8=Ab,d0="Popover",[f0,J8]=le(d0,[Ct]),_u=Ct(),[zb,Lr]=f0(d0),Vb=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:c=!1}=e,l=_u(t),s=i.useRef(null),[u,f]=i.useState(!1),[d=!1,p]=Ne({prop:r,defaultProp:o,onChange:a});return i.createElement(fm,l,i.createElement(zb,{scope:t,contentId:nt(),triggerRef:s,open:d,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(g=>!g),[p]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>f(!0),[]),onCustomAnchorRemove:i.useCallback(()=>f(!1),[]),modal:c},n))},Bb="PopoverTrigger",Ub=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Lr(Bb,n),a=_u(n),c=z(t,o.triggerRef),l=i.createElement(A.button,x({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":m0(o.open)},r,{ref:c,onClick:R(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:i.createElement(nu,x({asChild:!0},a),l)}),p0="PopoverPortal",[Hb,Wb]=f0(p0,{forceMount:void 0}),Kb=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Lr(p0,t);return i.createElement(Hb,{scope:t,forceMount:n},i.createElement(se,{present:n||a.open},i.createElement(Ac,{asChild:!0,container:o},r)))},Do="PopoverContent",jb=i.forwardRef((e,t)=>{const n=Wb(Do,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Lr(Do,e.__scopePopover);return i.createElement(se,{present:r||a.open},a.modal?i.createElement(Gb,x({},o,{ref:t})):i.createElement(Yb,x({},o,{ref:t})))}),Gb=i.forwardRef((e,t)=>{const n=Lr(Do,e.__scopePopover),r=i.useRef(null),o=z(t,r),a=i.useRef(!1);return i.useEffect(()=>{const c=r.current;if(c)return Wo(c)},[]),i.createElement(zc,{as:dn,allowPinchZoom:!0},i.createElement(v0,x({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,c=>{var l;c.preventDefault(),a.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,c=>{const l=c.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,u=l.button===2||s;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:R(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})))}),Yb=i.forwardRef((e,t)=>{const n=Lr(Do,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return i.createElement(v0,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var c;if((c=e.onCloseAutoFocus)===null||c===void 0||c.call(e,a),!a.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)===null||c===void 0||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),v0=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:f,...d}=e,p=Lr(Do,n),g=_u(n);return Mc(),i.createElement(Dc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},i.createElement(Vn,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1)},i.createElement(Ho,x({"data-state":m0(p.open),role:"dialog",id:p.contentId},g,d,{ref:t,style:{...d.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)"}}))))});function m0(e){return e?"open":"closed"}const ex=Vb,tx=Ub,nx=Kb,rx=jb,h0="Dialog",[g0,$0]=le(h0),[Xb,_t]=g0(h0),Qb=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,l=i.useRef(null),s=i.useRef(null),[u=!1,f]=Ne({prop:r,defaultProp:o,onChange:a});return i.createElement(Xb,{scope:t,triggerRef:l,contentRef:s,contentId:nt(),titleId:nt(),descriptionId:nt(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(d=>!d),[f]),modal:c},n)},y0="DialogPortal",[Zb,w0]=g0(y0,{forceMount:void 0}),qb=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=_t(y0,t);return i.createElement(Zb,{scope:t,forceMount:n},i.Children.map(r,c=>i.createElement(se,{present:n||a.open},i.createElement(Ac,{asChild:!0,container:o},c))))},Ul="DialogOverlay",Jb=i.forwardRef((e,t)=>{const n=w0(Ul,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=_t(Ul,e.__scopeDialog);return a.modal?i.createElement(se,{present:r||a.open},i.createElement(e5,x({},o,{ref:t}))):null}),e5=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(Ul,n);return i.createElement(zc,{as:dn,allowPinchZoom:!0,shards:[o.contentRef]},i.createElement(A.div,x({"data-state":x0(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Pr="DialogContent",t5=i.forwardRef((e,t)=>{const n=w0(Pr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=_t(Pr,e.__scopeDialog);return i.createElement(se,{present:r||a.open},a.modal?i.createElement(n5,x({},o,{ref:t})):i.createElement(r5,x({},o,{ref:t})))}),n5=i.forwardRef((e,t)=>{const n=_t(Pr,e.__scopeDialog),r=i.useRef(null),o=z(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return Wo(a)},[]),i.createElement(b0,x({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,a=>{var c;a.preventDefault(),(c=n.triggerRef.current)===null||c===void 0||c.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&a.preventDefault()}),onFocusOutside:R(e.onFocusOutside,a=>a.preventDefault())}))}),r5=i.forwardRef((e,t)=>{const n=_t(Pr,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return i.createElement(b0,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var c;if((c=e.onCloseAutoFocus)===null||c===void 0||c.call(e,a),!a.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)===null||c===void 0||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),b0=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,l=_t(Pr,n),s=i.useRef(null),u=z(t,s);return Mc(),i.createElement(i.Fragment,null,i.createElement(Dc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},i.createElement(Vn,x({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":x0(l.open)},c,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),E0="DialogTitle",o5=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(E0,n);return i.createElement(A.h2,x({id:o.titleId},r,{ref:t}))}),a5="DialogDescription",c5=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(a5,n);return i.createElement(A.p,x({id:o.descriptionId},r,{ref:t}))}),i5="DialogClose",l5=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(i5,n);return i.createElement(A.button,x({type:"button"},r,{ref:t,onClick:R(e.onClick,()=>o.onOpenChange(!1))}))});function x0(e){return e?"open":"closed"}const s5="DialogTitleWarning",[u5,ox]=n$(s5,{contentName:Pr,titleName:E0,docsSlug:"dialog"}),ax=Qb,d5=qb,f5=Jb,p5=t5,v5=o5,m5=c5,C0=l5;function gr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function h5(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function S0(...e){return t=>e.forEach(n=>h5(n,t))}function Yo(...e){return i.useCallback(S0(...e),e)}function g5(e,t=[]){let n=[];function r(a,c){const l=i.createContext(c),s=n.length;n=[...n,c];function u(d){const{scope:p,children:g,...y}=d,m=p?.[e][s]||l,w=i.useMemo(()=>y,Object.values(y));return i.createElement(m.Provider,{value:w},g)}function f(d,p){const g=p?.[e][s]||l,y=i.useContext(g);if(y)return y;if(c!==void 0)return c;throw new Error(`\`${d}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,f]}const o=()=>{const a=n.map(c=>i.createContext(c));return function(l){const s=l?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,$5(o,...t)]}function $5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const c=r.reduce((l,{useScope:s,scopeName:u})=>{const d=s(a)[`__scope${u}`];return{...l,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}const Hl=globalThis?.document?i.useLayoutEffect:()=>{},y5=Kf["useId".toString()]||(()=>{});let w5=0;function Oi(e){const[t,n]=i.useState(y5());return Hl(()=>{e||n(r=>r??String(w5++))},[e]),e||(t?`radix-${t}`:"")}function Ln(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function b5({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=E5({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r,l=Ln(n),s=i.useCallback(u=>{if(a){const d=typeof u=="function"?u(e):u;d!==e&&l(d)}else o(u)},[a,e,o,l]);return[c,s]}function E5({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=Ln(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Pu=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(C5);if(a){const c=a.props.children,l=o.map(s=>s===a?i.Children.count(c)>1?i.Children.only(null):i.isValidElement(c)?c.props.children:null:s);return i.createElement(Wl,x({},r,{ref:t}),i.isValidElement(c)?i.cloneElement(c,void 0,l):null)}return i.createElement(Wl,x({},r,{ref:t}),n)});Pu.displayName="Slot";const Wl=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...S5(r,n.props),ref:S0(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});Wl.displayName="SlotClone";const x5=({children:e})=>i.createElement(i.Fragment,null,e);function C5(e){return i.isValidElement(e)&&e.type===x5}function S5(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?n[r]=(...l)=>{a?.(...l),o?.(...l)}:r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const _5=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Hc=_5.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...c}=r,l=a?Pu:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(l,x({},c,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function P5(e,t){e&&$n.flushSync(()=>e.dispatchEvent(t))}function R5(e){const t=Ln(e);i.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}const Kl="dismissableLayer.update",k5="dismissableLayer.pointerDownOutside",T5="dismissableLayer.focusOutside";let $f;const M5=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),D5=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:l,...s}=e,u=i.useContext(M5),[f,d]=i.useState(null),[,p]=i.useState({}),g=Yo(t,S=>d(S)),y=Array.from(u.layers),[m]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=y.indexOf(m),h=f?y.indexOf(f):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,$=h>=w,b=O5(S=>{const C=S.target,_=[...u.branches].some(P=>P.contains(C));!$||_||(o?.(S),c?.(S),S.defaultPrevented||l?.())}),E=I5(S=>{const C=S.target;[...u.branches].some(P=>P.contains(C))||(a?.(S),c?.(S),S.defaultPrevented||l?.())});return R5(S=>{h===u.layers.size-1&&(r?.(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))}),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&($f=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),yf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=$f)}},[f,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),yf())},[f,u]),i.useEffect(()=>{const S=()=>p({});return document.addEventListener(Kl,S),()=>document.removeEventListener(Kl,S)},[]),i.createElement(Hc.div,x({},s,{ref:g,style:{pointerEvents:v?$?"auto":"none":void 0,...e.style},onFocusCapture:gr(e.onFocusCapture,E.onFocusCapture),onBlurCapture:gr(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:gr(e.onPointerDownCapture,b.onPointerDownCapture)}))});function O5(e){const t=Ln(e),n=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const o=c=>{if(c.target&&!n.current){let s=function(){_0(k5,t,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(document.removeEventListener("click",r.current),r.current=s,document.addEventListener("click",r.current,{once:!0})):s()}n.current=!1},a=window.setTimeout(()=>{document.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),document.removeEventListener("pointerdown",o),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}function I5(e){const t=Ln(e),n=i.useRef(!1);return i.useEffect(()=>{const r=o=>{o.target&&!n.current&&_0(T5,t,{originalEvent:o},{discrete:!1})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function yf(){const e=new CustomEvent(Kl);document.dispatchEvent(e)}function _0(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?P5(o,a):o.dispatchEvent(a)}const Ii="focusScope.autoFocusOnMount",Ai="focusScope.autoFocusOnUnmount",wf={bubbles:!1,cancelable:!0},A5=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[l,s]=i.useState(null),u=Ln(o),f=Ln(a),d=i.useRef(null),p=Yo(t,m=>s(m)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let m=function(h){if(g.paused||!l)return;const v=h.target;l.contains(v)?d.current=v:Cn(d.current,{select:!0})},w=function(h){g.paused||!l||l.contains(h.relatedTarget)||Cn(d.current,{select:!0})};return document.addEventListener("focusin",m),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",w)}}},[r,l,g.paused]),i.useEffect(()=>{if(l){Ef.add(g);const m=document.activeElement;if(!l.contains(m)){const h=new CustomEvent(Ii,wf);l.addEventListener(Ii,u),l.dispatchEvent(h),h.defaultPrevented||(N5(B5(P0(l)),{select:!0}),document.activeElement===m&&Cn(l))}return()=>{l.removeEventListener(Ii,u),setTimeout(()=>{const h=new CustomEvent(Ai,wf);l.addEventListener(Ai,f),l.dispatchEvent(h),h.defaultPrevented||Cn(m??document.body,{select:!0}),l.removeEventListener(Ai,f),Ef.remove(g)},0)}}},[l,u,f,g]);const y=i.useCallback(m=>{if(!n&&!r||g.paused)return;const w=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,h=document.activeElement;if(w&&h){const v=m.currentTarget,[$,b]=L5(v);$&&b?!m.shiftKey&&h===b?(m.preventDefault(),n&&Cn($,{select:!0})):m.shiftKey&&h===$&&(m.preventDefault(),n&&Cn(b,{select:!0})):h===v&&m.preventDefault()}},[n,r,g.paused]);return i.createElement(Hc.div,x({tabIndex:-1},c,{ref:p,onKeyDown:y}))});function N5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Cn(r,{select:t}),document.activeElement!==n)return}function L5(e){const t=P0(e),n=bf(t,e),r=bf(t.reverse(),e);return[n,r]}function P0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function bf(e,t){for(const n of e)if(!F5(n,{upTo:t}))return n}function F5(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}function z5(e){return e instanceof HTMLInputElement&&"select"in e}function Cn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&z5(e)&&t&&e.select()}}const Ef=V5();function V5(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=xf(e,t),e.unshift(t)},remove(t){var n;e=xf(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function xf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function B5(e){return e.filter(t=>t.tagName!=="A")}const U5=i.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Ys.createPortal(i.createElement(Hc.div,x({},o,{ref:t})),r):null});function H5(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Wc=e=>{const{present:t,children:n}=e,r=W5(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=Yo(r.ref,o.ref);return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};Wc.displayName="Presence";function W5(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[l,s]=H5(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Ea(r.current);a.current=l==="mounted"?u:"none"},[l]),Hl(()=>{const u=r.current,f=o.current;if(f!==e){const p=a.current,g=Ea(u);e?s("MOUNT"):g==="none"||u?.display==="none"?s("UNMOUNT"):s(f&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Hl(()=>{if(t){const u=d=>{const g=Ea(r.current).includes(d.animationName);d.target===t&&g&&$n.flushSync(()=>s("ANIMATION_END"))},f=d=>{d.target===t&&(a.current=Ea(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:i.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ea(e){return e?.animationName||"none"}let Ni=0;function K5(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Cf()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Cf()),Ni++,()=>{Ni===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ni--}},[])}function Cf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var R0=$m(),Li=function(){},Kc=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Li,onWheelCapture:Li,onTouchMoveCapture:Li}),o=r[0],a=r[1],c=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,g=e.noIsolation,y=e.inert,m=e.allowPinchZoom,w=e.as,h=w===void 0?"div":w,v=ou(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),$=p,b=gm([n,t]),E=ke(ke({},v),o);return i.createElement(i.Fragment,null,f&&i.createElement($,{sideCar:R0,removeScrollBar:u,shards:d,noIsolation:g,inert:y,setCallbacks:a,allowPinchZoom:!!m,lockRef:n}),c?i.cloneElement(i.Children.only(l),ke(ke({},E),{ref:b})):i.createElement(h,ke({},E,{className:s,ref:b}),l))});Kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kc.classNames={fullWidth:io,zeroRight:co};var jl=!1;if(typeof window<"u")try{var xa=Object.defineProperty({},"passive",{get:function(){return jl=!0,!0}});window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{jl=!1}var Qn=jl?{passive:!1}:!1,j5=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},G5=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},Sf=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=k0(e,n);if(r){var o=T0(e,n),a=o[1],c=o[2];if(a>c)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Y5=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},X5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},k0=function(e,t){return e==="v"?j5(t):G5(t)},T0=function(e,t){return e==="v"?Y5(t):X5(t)},Q5=function(e,t){return e==="h"&&t==="rtl"?-1:1},Z5=function(e,t,n,r,o){var a=Q5(e,window.getComputedStyle(t).direction),c=a*r,l=n.target,s=t.contains(l),u=!1,f=c>0,d=0,p=0;do{var g=T0(e,l),y=g[0],m=g[1],w=g[2],h=m-w-a*y;(y||h)&&k0(e,l)&&(d+=h,p+=y),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(o&&d===0||!o&&c>d)||!f&&(o&&p===0||!o&&-c>p))&&(u=!0),u},Ca=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_f=function(e){return[e.deltaX,e.deltaY]},Pf=function(e){return e&&"current"in e?e.current:e},q5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},J5=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},JE=0,Zn=[];function e6(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(JE++)[0],a=i.useState(function(){return au()})[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=hm([e.lockRef.current],(e.shards||[]).map(Pf),!0).filter(Boolean);return m.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(m,w){if("touches"in m&&m.touches.length===2)return!c.current.allowPinchZoom;var h=Ca(m),v=n.current,g="deltaX"in m?m.deltaX:v[0]-h[0],b="deltaY"in m?m.deltaY:v[1]-h[1],E,S=m.target,C=Math.abs(g)>Math.abs(b)?"h":"v";if("touches"in m&&C==="h"&&S.type==="range")return!1;var _=Sf(C,S);if(!_)return!0;if(_?E=C:(E=C==="v"?"h":"v",_=Sf(C,S)),!_)return!1;if(!r.current&&"changedTouches"in m&&(g||b)&&(r.current=E),!E)return!0;var P=r.current||E;return QE(P,w,m,P==="h"?g:b,!0)},[]),s=i.useCallback(function(m){var w=m;if(!(!Zn.length||Zn[Zn.length-1]!==a)){var h="deltaY"in w?_f(w):Ca(w),v=t.current.filter(function(E){return E.name===w.type&&E.target===w.target&&ZE(E.delta,h)})[0];if(v&&v.should){w.preventDefault();return}if(!v){var g=(c.current.shards||[]).map(Pf).filter(Boolean).filter(function(E){return E.contains(w.target)}),b=g.length>0?l(w,g[0]):!c.current.noIsolation;b&&w.preventDefault()}}},[]),u=i.useCallback(function(m,w,h,v){var g={name:m,delta:w,target:h,should:v};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(b){return b!==g})},1)},[]),f=i.useCallback(function(m){n.current=Ca(m),r.current=void 0},[]),d=i.useCallback(function(m){u(m.type,_f(m),m.target,l(m,e.lockRef.current))},[]),p=i.useCallback(function(m){u(m.type,Ca(m),m.target,l(m,e.lockRef.current))},[]);i.useEffect(function(){return Zn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Qn),document.addEventListener("touchmove",s,Qn),document.addEventListener("touchstart",f,Qn),function(){Zn=Zn.filter(function(m){return m!==a}),document.removeEventListener("wheel",s,Qn),document.removeEventListener("touchmove",s,Qn),document.removeEventListener("touchstart",f,Qn)}},[]);var $=e.removeScrollBar,y=e.inert;return i.createElement(i.Fragment,null,y?i.createElement(a,{styles:qE(o)}):null,$?i.createElement(Em,{gapMode:"margin"}):null)}const t6=wm(R0,e6);var M0=i.forwardRef(function(e,t){return i.createElement(Kc,ke({},e,{ref:t,sideCar:t6}))});M0.classNames=Kc.classNames;const n6=M0,D0="Dialog",[O0,oC]=hE(D0),[r6,Hn]=O0(D0),o6=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,l=i.useRef(null),s=i.useRef(null),[u=!1,f]=wE({prop:r,defaultProp:o,onChange:a});return i.createElement(r6,{scope:t,triggerRef:l,contentRef:s,contentId:Oi(),titleId:Oi(),descriptionId:Oi(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(d=>!d),[f]),modal:c},n)},I0="DialogPortal",[a6,A0]=O0(I0,{forceMount:void 0}),c6=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Hn(I0,t);return i.createElement(a6,{scope:t,forceMount:n},i.Children.map(r,c=>i.createElement(Wc,{present:n||a.open},i.createElement(BE,{asChild:!0,container:o},c))))},Gl="DialogOverlay",i6=i.forwardRef((e,t)=>{const n=A0(Gl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Hn(Gl,e.__scopeDialog);return a.modal?i.createElement(Wc,{present:r||a.open},i.createElement(l6,x({},o,{ref:t}))):null}),l6=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Hn(Gl,n);return i.createElement(n6,{as:Pu,allowPinchZoom:!0,shards:[o.contentRef]},i.createElement(Hc.div,x({"data-state":L0(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Oo="DialogContent",s6=i.forwardRef((e,t)=>{const n=A0(Oo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Hn(Oo,e.__scopeDialog);return i.createElement(Wc,{present:r||a.open},a.modal?i.createElement(u6,x({},o,{ref:t})):i.createElement(d6,x({},o,{ref:t})))}),u6=i.forwardRef((e,t)=>{const n=Hn(Oo,e.__scopeDialog),r=i.useRef(null),o=Yo(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return Wo(a)},[]),i.createElement(N0,x({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$r(e.onCloseAutoFocus,a=>{var c;a.preventDefault(),(c=n.triggerRef.current)===null||c===void 0||c.focus()}),onPointerDownOutside:$r(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&a.preventDefault()}),onFocusOutside:$r(e.onFocusOutside,a=>a.preventDefault())}))}),d6=i.forwardRef((e,t)=>{const n=Hn(Oo,e.__scopeDialog),r=i.useRef(!1);return i.createElement(N0,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,o),!o.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),o.preventDefault()}r.current=!1},onInteractOutside:o=>{var a,c;(a=e.onInteractOutside)===null||a===void 0||a.call(e,o),o.defaultPrevented||(r.current=!0);const l=o.target;((c=n.triggerRef.current)===null||c===void 0?void 0:c.contains(l))&&o.preventDefault()}}))}),N0=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,l=Hn(Oo,n),s=i.useRef(null),u=Yo(t,s);return WE(),i.createElement(i.Fragment,null,i.createElement(IE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},i.createElement(ME,x({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":L0(l.open)},c,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)});function L0(e){return e?"open":"closed"}const aC=o6,cC=c6,iC=i6,lC=s6,F0=["PageUp","PageDown"],z0=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],V0={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Xo="Slider",[Yl,f6,p6]=gn(Xo),[B0,sC]=le(Xo,[p6]),[v6,jc]=B0(Xo),m6=i.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:c="horizontal",disabled:l=!1,minStepsBetweenThumbs:s=0,defaultValue:u=[r],value:f,onValueChange:d=()=>{},onValueCommit:p=()=>{},inverted:$=!1,...y}=e,[m,w]=i.useState(null),h=z(t,N=>w(N)),v=i.useRef(new Set),g=i.useRef(0),b=c==="horizontal",E=m?!!m.closest("form"):!0,S=b?h6:$6,[C=[],_]=Ne({prop:f,defaultProp:u,onChange:N=>{var B;(B=[...v.current][g.current])===null||B===void 0||B.focus(),d(N)}}),P=i.useRef(C);function D(N){const B=_6(C,N);Y(N,B)}function F(N){Y(N,g.current)}function H(){const N=P.current[g.current];C[g.current]!==N&&p(C)}function Y(N,B,{commit:U}={commit:!1}){const X=T6(a),T=M6(Math.round((N-r)/a)*a+r,X),k=Mo(T,[r,o]);_((O=[])=>{const V=C6(O,k,B);if(k6(V,s*a)){g.current=V.indexOf(k);const j=String(V)!==String(O);return j&&U&&p(V),j?V:O}else return O})}return i.createElement(v6,{scope:e.__scopeSlider,disabled:l,min:r,max:o,valueIndexToChangeRef:g,thumbs:v.current,values:C,orientation:c},i.createElement(Yl.Provider,{scope:e.__scopeSlider},i.createElement(Yl.Slot,{scope:e.__scopeSlider},i.createElement(S,x({"aria-disabled":l,"data-disabled":l?"":void 0},y,{ref:h,onPointerDown:R(y.onPointerDown,()=>{l||(P.current=C)}),min:r,max:o,inverted:$,onSlideStart:l?void 0:D,onSlideMove:l?void 0:F,onSlideEnd:l?void 0:H,onHomeKeyDown:()=>!l&&Y(r,0,{commit:!0}),onEndKeyDown:()=>!l&&Y(o,C.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:B})=>{if(!l){const T=F0.includes(N.key)||N.shiftKey&&z0.includes(N.key)?10:1,k=g.current,O=C[k],V=a*T*B;Y(O+V,k,{commit:!0})}}})))),E&&C.map((N,B)=>i.createElement(x6,{key:B,name:n?n+(C.length>1?"[]":""):void 0,value:N})))}),[U0,H0]=B0(Xo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),h6=i.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:c,onSlideMove:l,onSlideEnd:s,onStepKeyDown:u,...f}=e,[d,p]=i.useState(null),$=z(t,g=>p(g)),y=i.useRef(),m=Ut(o),w=m==="ltr",h=w&&!a||!w&&a;function v(g){const b=y.current||d.getBoundingClientRect(),E=[0,b.width],C=Ru(E,h?[n,r]:[r,n]);return y.current=b,C(g-b.left)}return i.createElement(U0,{scope:e.__scopeSlider,startEdge:h?"left":"right",endEdge:h?"right":"left",direction:h?1:-1,size:"width"},i.createElement(W0,x({dir:m,"data-orientation":"horizontal"},f,{ref:$,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:g=>{const b=v(g.clientX);c?.(b)},onSlideMove:g=>{const b=v(g.clientX);l?.(b)},onSlideEnd:()=>{y.current=void 0,s?.()},onStepKeyDown:g=>{const E=V0[h?"from-left":"from-right"].includes(g.key);u?.({event:g,direction:E?-1:1})}})))}),$6=i.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:c,onSlideEnd:l,onStepKeyDown:s,...u}=e,f=i.useRef(null),d=z(t,f),p=i.useRef(),$=!o;function y(m){const w=p.current||f.current.getBoundingClientRect(),h=[0,w.height],g=Ru(h,$?[r,n]:[n,r]);return p.current=w,g(m-w.top)}return i.createElement(U0,{scope:e.__scopeSlider,startEdge:$?"bottom":"top",endEdge:$?"top":"bottom",size:"height",direction:$?1:-1},i.createElement(W0,x({"data-orientation":"vertical"},u,{ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const w=y(m.clientY);a?.(w)},onSlideMove:m=>{const w=y(m.clientY);c?.(w)},onSlideEnd:()=>{p.current=void 0,l?.()},onStepKeyDown:m=>{const h=V0[$?"from-bottom":"from-top"].includes(m.key);s?.({event:m,direction:h?-1:1})}})))}),W0=i.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:c,onEndKeyDown:l,onStepKeyDown:s,...u}=e,f=jc(Xo,n);return i.createElement(A.span,x({},u,{ref:t,onKeyDown:R(e.onKeyDown,d=>{d.key==="Home"?(c(d),d.preventDefault()):d.key==="End"?(l(d),d.preventDefault()):F0.concat(z0).includes(d.key)&&(s(d),d.preventDefault())}),onPointerDown:R(e.onPointerDown,d=>{const p=d.target;p.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(p)?p.focus():r(d)}),onPointerMove:R(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:R(e.onPointerUp,d=>{const p=d.target;p.hasPointerCapture(d.pointerId)&&(p.releasePointerCapture(d.pointerId),a(d))})}))}),g6="SliderTrack",y6=i.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=jc(g6,n);return i.createElement(A.span,x({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))}),Rf="SliderRange",w6=i.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=jc(Rf,n),a=H0(Rf,n),c=i.useRef(null),l=z(t,c),s=o.values.length,u=o.values.map(p=>K0(p,o.min,o.max)),f=s>1?Math.min(...u):0,d=100-Math.max(...u);return i.createElement(A.span,x({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:l,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:d+"%"}}))}),kf="SliderThumb",b6=i.forwardRef((e,t)=>{const n=f6(e.__scopeSlider),[r,o]=i.useState(null),a=z(t,l=>o(l)),c=i.useMemo(()=>r?n().findIndex(l=>l.ref.current===r):-1,[n,r]);return i.createElement(E6,x({},e,{ref:a,index:c}))}),E6=i.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,a=jc(kf,n),c=H0(kf,n),[l,s]=i.useState(null),u=z(t,w=>s(w)),f=Uo(l),d=a.values[r],p=d===void 0?0:K0(d,a.min,a.max),$=S6(r,a.values.length),y=f?.[c.size],m=y?P6(y,p,c.direction):0;return i.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),i.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${p}% + ${m}px)`}},i.createElement(Yl.ItemSlot,{scope:e.__scopeSlider},i.createElement(A.span,x({role:"slider","aria-label":e["aria-label"]||$,"aria-valuemin":a.min,"aria-valuenow":d,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},o,{ref:u,style:d===void 0?{display:"none"}:e.style,onFocus:R(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})}))))}),x6=e=>{const{value:t,...n}=e,r=i.useRef(null),o=Ir(t);return i.useEffect(()=>{const a=r.current,c=window.HTMLInputElement.prototype,s=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&s){const u=new Event("input",{bubbles:!0});s.call(a,t),a.dispatchEvent(u)}},[o,t]),i.createElement("input",x({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function C6(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function K0(e,t,n){const a=100/(n-t)*(e-t);return Mo(a,[0,100])}function S6(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function _6(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function P6(e,t,n){const r=e/2,a=Ru([0,50],[0,r]);return(r-a(t)*n)*n}function R6(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function k6(e,t){if(t>0){const n=R6(e);return Math.min(...n)>=t}return!0}function Ru(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function T6(e){return(String(e).split(".")[1]||"").length}function M6(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const uC=m6,dC=y6,fC=w6,pC=b6,j0="Switch",[D6,vC]=le(j0),[O6,I6]=D6(j0),A6=i.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:c,disabled:l,value:s="on",onCheckedChange:u,...f}=e,[d,p]=i.useState(null),$=z(t,v=>p(v)),y=i.useRef(!1),m=d?!!d.closest("form"):!0,[w=!1,h]=Ne({prop:o,defaultProp:a,onChange:u});return i.createElement(O6,{scope:n,checked:w,disabled:l},i.createElement(A.button,x({type:"button",role:"switch","aria-checked":w,"aria-required":c,"data-state":G0(w),"data-disabled":l?"":void 0,disabled:l,value:s},f,{ref:$,onClick:R(e.onClick,v=>{h(g=>!g),m&&(y.current=v.isPropagationStopped(),y.current||v.stopPropagation())})})),m&&i.createElement(F6,{control:d,bubbles:!y.current,name:r,value:s,checked:w,required:c,disabled:l,style:{transform:"translateX(-100%)"}}))}),N6="SwitchThumb",L6=i.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=I6(N6,n);return i.createElement(A.span,x({"data-state":G0(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))}),F6=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=i.useRef(null),c=Ir(n),l=Uo(t);return i.useEffect(()=>{const s=a.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(c!==n&&d){const p=new Event("click",{bubbles:r});d.call(s,n),s.dispatchEvent(p)}},[c,n,r]),i.createElement("input",x({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function G0(e){return e?"checked":"unchecked"}const mC=A6,hC=L6,z6=i.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[c=!1,l]=Ne({prop:n,onChange:o,defaultProp:r});return i.createElement(A.button,x({type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:R(e.onClick,()=>{e.disabled||l(!c)})}))}),$C=z6,[Gc,gC]=le("Tooltip",[Ct]),V6=Ct(),B6="TooltipProvider",Tf="tooltip.open",[yC,U6]=Gc(B6),Y0="Tooltip",[wC,ku]=Gc(Y0),H6="TooltipPortal",[bC,W6]=Gc(H6,{forceMount:void 0}),Io="TooltipContent",K6=i.forwardRef((e,t)=>{const n=W6(Io,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,c=ku(Io,e.__scopeTooltip);return i.createElement(se,{present:r||c.open},c.disableHoverableContent?i.createElement(X0,x({side:o},a,{ref:t})):i.createElement(j6,x({side:o},a,{ref:t})))}),j6=i.forwardRef((e,t)=>{const n=ku(Io,e.__scopeTooltip),r=U6(Io,e.__scopeTooltip),o=i.useRef(null),a=z(t,o),[c,l]=i.useState(null),{trigger:s,onClose:u}=n,f=o.current,{onPointerInTransitChange:d}=r,p=i.useCallback(()=>{l(null),d(!1)},[d]),$=i.useCallback((y,m)=>{const w=y.currentTarget,h={x:y.clientX,y:y.clientY},v=Y6(h,w.getBoundingClientRect()),g=X6(h,v),b=Q6(m.getBoundingClientRect()),E=q6([...g,...b]);l(E),d(!0)},[d]);return i.useEffect(()=>()=>p(),[p]),i.useEffect(()=>{if(s&&f){const y=w=>$(w,f),m=w=>$(w,s);return s.addEventListener("pointerleave",y),f.addEventListener("pointerleave",m),()=>{s.removeEventListener("pointerleave",y),f.removeEventListener("pointerleave",m)}}},[s,f,$,p]),i.useEffect(()=>{if(c){const y=m=>{const w=m.target,h={x:m.clientX,y:m.clientY},v=s?.contains(w)||f?.contains(w),g=!Z6(h,c);v?p():g&&(p(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[s,f,c,u,p]),i.createElement(X0,x({},e,{ref:a}))}),[G6,EC]=Gc(Y0,{isInside:!1}),X0=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:c,...l}=e,s=ku(Io,n),u=V6(n),{onClose:f}=s;return i.useEffect(()=>(document.addEventListener(Tf,f),()=>document.removeEventListener(Tf,f)),[f]),i.useEffect(()=>{if(s.trigger){const d=p=>{const $=p.target;$!=null&&$.contains(s.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[s.trigger,f]),i.createElement(Vn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:d=>d.preventDefault(),onDismiss:f},i.createElement(Ho,x({"data-state":s.stateAttribute},u,l,{ref:t,style:{...l.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)"}}),i.createElement(Xs,null,r),i.createElement(G6,{scope:n,isInside:!0},i.createElement(Um,{id:s.contentId,role:"tooltip"},o||r))))});function Y6(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function X6(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Q6(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Z6(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,c=t.length-1;ar!=f>r&&n<(u-l)*(r-s)/(f-s)+l&&(o=!o)}return o}function q6(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),J6(t)}function J6(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const a=t[t.length-1],c=t[t.length-2];if((a.x-c.x)*(o.y-c.y)>=(a.y-c.y)*(o.x-c.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],c=n[n.length-2];if((a.x-c.x)*(o.y-c.y)>=(a.y-c.y)*(o.x-c.x))n.pop();else break}n.push(o)}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)}const xC=K6,Q0="Collapsible",[e3,Z0]=le(Q0),[t3,Tu]=e3(Q0),n3=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:c,...l}=e,[s=!1,u]=Ne({prop:r,defaultProp:o,onChange:c});return i.createElement(t3,{scope:n,disabled:a,contentId:nt(),open:s,onOpenToggle:i.useCallback(()=>u(f=>!f),[u])},i.createElement(A.div,x({"data-state":Mu(s),"data-disabled":a?"":void 0},l,{ref:t})))}),r3="CollapsibleTrigger",o3=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Tu(r3,n);return i.createElement(A.button,x({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Mu(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:R(e.onClick,o.onOpenToggle)}))}),q0="CollapsibleContent",a3=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Tu(q0,e.__scopeCollapsible);return i.createElement(se,{present:n||o.open},({present:a})=>i.createElement(c3,x({},r,{ref:t,present:a})))}),c3=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,c=Tu(q0,n),[l,s]=i.useState(r),u=i.useRef(null),f=z(t,u),d=i.useRef(0),p=d.current,$=i.useRef(0),y=$.current,m=c.open||l,w=i.useRef(m),h=i.useRef();return i.useEffect(()=>{const v=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(v)},[]),Oe(()=>{const v=u.current;if(v){h.current=h.current||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const g=v.getBoundingClientRect();d.current=g.height,$.current=g.width,w.current||(v.style.transitionDuration=h.current.transitionDuration,v.style.animationName=h.current.animationName),s(r)}},[c.open,r]),i.createElement(A.div,x({"data-state":Mu(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!m},a,{ref:f,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),m&&o)});function Mu(e){return e?"open":"closed"}const i3=n3,l3=o3,s3=a3,Du="Menubar",[Xl,u3,d3]=gn(Du),[J0,CC]=le(Du,[d3,yn]),$t=Ko(),e1=yn(),[f3,t1]=J0(Du),p3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:a,loop:c=!0,dir:l,...s}=e,u=Ut(l),f=e1(n),[d="",p]=Ne({prop:r,onChange:o,defaultProp:a}),[$,y]=i.useState(null);return i.createElement(f3,{scope:n,value:d,onMenuOpen:i.useCallback(m=>{p(m),y(m)},[p]),onMenuClose:i.useCallback(()=>p(""),[p]),onMenuToggle:i.useCallback(m=>{p(w=>w?"":m),y(m)},[p]),dir:u,loop:c},i.createElement(Xl.Provider,{scope:n},i.createElement(Xl.Slot,{scope:n},i.createElement(Nc,x({asChild:!0},f,{orientation:"horizontal",loop:c,dir:u,currentTabStopId:$,onCurrentTabStopIdChange:y}),i.createElement(A.div,x({role:"menubar"},s,{ref:t}))))))}),v3="MenubarMenu",[SC,n1]=J0(v3),Mf="MenubarTrigger",m3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,a=e1(n),c=$t(n),l=t1(Mf,n),s=n1(Mf,n),u=i.useRef(null),f=z(t,u,s.triggerRef),[d,p]=i.useState(!1),$=l.value===s.value;return i.createElement(Xl.ItemSlot,{scope:n,value:s.value,disabled:r},i.createElement(Lc,x({asChild:!0},a,{focusable:!r,tabStopId:s.value}),i.createElement(Lm,x({asChild:!0},c),i.createElement(A.button,x({type:"button",role:"menuitem",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":$,"aria-controls":$?s.contentId:void 0,"data-highlighted":d?"":void 0,"data-state":$?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:f,onPointerDown:R(e.onPointerDown,y=>{!r&&y.button===0&&y.ctrlKey===!1&&(l.onMenuOpen(s.value),$||y.preventDefault())}),onPointerEnter:R(e.onPointerEnter,()=>{if(!!l.value&&!$){var m;l.onMenuOpen(s.value),(m=u.current)===null||m===void 0||m.focus()}}),onKeyDown:R(e.onKeyDown,y=>{r||(["Enter"," "].includes(y.key)&&l.onMenuToggle(s.value),y.key==="ArrowDown"&&l.onMenuOpen(s.value),["Enter"," ","ArrowDown"].includes(y.key)&&(s.wasKeyboardTriggerOpenRef.current=!0,y.preventDefault()))}),onFocus:R(e.onFocus,()=>p(!0)),onBlur:R(e.onBlur,()=>p(!1))})))))}),h3=e=>{const{__scopeMenubar:t,...n}=e,r=$t(t);return i.createElement(du,x({},r,n))},Df="MenubarContent",$3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,a=$t(n),c=t1(Df,n),l=n1(Df,n),s=u3(n),u=i.useRef(!1);return i.createElement(fu,x({id:l.contentId,"aria-labelledby":l.triggerId,"data-radix-menubar-content":""},a,o,{ref:t,align:r,onCloseAutoFocus:R(e.onCloseAutoFocus,f=>{if(!!!c.value&&!u.current){var p;(p=l.triggerRef.current)===null||p===void 0||p.focus()}u.current=!1,f.preventDefault()}),onFocusOutside:R(e.onFocusOutside,f=>{const d=f.target;s().some($=>{var y;return(y=$.ref.current)===null||y===void 0?void 0:y.contains(d)})&&f.preventDefault()}),onInteractOutside:R(e.onInteractOutside,()=>{u.current=!0}),onEntryFocus:f=>{l.wasKeyboardTriggerOpenRef.current||f.preventDefault()},onKeyDown:R(e.onKeyDown,f=>{if(["ArrowRight","ArrowLeft"].includes(f.key)){const d=f.target,p=d.hasAttribute("data-radix-menubar-subtrigger"),$=d.closest("[data-radix-menubar-content]")!==f.currentTarget,m=(c.dir==="rtl"?"ArrowRight":"ArrowLeft")===f.key;if(!m&&p||$&&m)return;let v=s().filter(E=>!E.disabled).map(E=>E.value);m&&v.reverse();const g=v.indexOf(l.value);v=c.loop?_3(v,g+1):v.slice(g+1);const[b]=v;b&&c.onMenuOpen(b)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}),g3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=$t(n);return i.createElement(pu,x({},o,r,{ref:t}))}),y3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=$t(n);return i.createElement(vu,x({},o,r,{ref:t}))}),w3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=$t(n);return i.createElement(mu,x({},o,r,{ref:t}))}),b3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=$t(n);return i.createElement(hu,x({},o,r,{ref:t}))}),E3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=$t(n);return i.createElement($u,x({},o,r,{ref:t}))}),x3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=$t(n);return i.createElement(gu,x({},o,r,{ref:t}))}),C3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=$t(n);return i.createElement(yu,x({"data-radix-menubar-subtrigger":""},o,r,{ref:t}))}),S3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=$t(n);return i.createElement(wu,x({},o,{"data-radix-menubar-content":""},r,{ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))});function _3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const _C=p3,PC=m3,RC=h3,kC=$3,TC=g3,MC=y3,DC=w3,OC=b3,IC=E3,AC=x3,NC=C3,LC=S3,bn="Accordion",P3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ou,R3,k3]=gn(bn),[Yc,FC]=le(bn,[k3,Z0]),Iu=Z0(),r1=W.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return W.createElement(Ou.Provider,{scope:e.__scopeAccordion},n==="multiple"?W.createElement(O3,x({},a,{ref:t})):W.createElement(D3,x({},o,{ref:t})))});r1.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[o1,T3]=Yc(bn),[a1,M3]=Yc(bn,{collapsible:!1}),D3=W.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...c}=e,[l,s]=Ne({prop:n,defaultProp:r,onChange:o});return W.createElement(o1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:W.useCallback(()=>a&&s(""),[a,s])},W.createElement(a1,{scope:e.__scopeAccordion,collapsible:a},W.createElement(c1,x({},c,{ref:t}))))}),O3=W.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[c=[],l]=Ne({prop:n,defaultProp:r,onChange:o}),s=W.useCallback(f=>l((d=[])=>[...d,f]),[l]),u=W.useCallback(f=>l((d=[])=>d.filter(p=>p!==f)),[l]);return W.createElement(o1,{scope:e.__scopeAccordion,value:c,onItemOpen:s,onItemClose:u},W.createElement(a1,{scope:e.__scopeAccordion,collapsible:!0},W.createElement(c1,x({},a,{ref:t}))))}),[I3,Xc]=Yc(bn),c1=W.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...c}=e,l=W.useRef(null),s=z(l,t),u=R3(n),d=Ut(o)==="ltr",p=R(e.onKeyDown,$=>{var y;if(!P3.includes($.key))return;const m=$.target,w=u().filter(P=>{var D;return!((D=P.ref.current)!==null&&D!==void 0&&D.disabled)}),h=w.findIndex(P=>P.ref.current===m),v=w.length;if(h===-1)return;$.preventDefault();let g=h;const b=0,E=v-1,S=()=>{g=h+1,g>E&&(g=b)},C=()=>{g=h-1,g{const{__scopeAccordion:n,value:r,...o}=e,a=Xc(Ql,n),c=T3(Ql,n),l=Iu(n),s=nt(),u=r&&c.value.includes(r)||!1,f=a.disabled||e.disabled;return W.createElement(A3,{scope:n,open:u,disabled:f,triggerId:s},W.createElement(i3,x({"data-orientation":a.orientation,"data-state":i1(u)},l,o,{ref:t,disabled:f,open:u,onOpenChange:d=>{d?c.onItemOpen(r):c.onItemClose(r)}})))}),L3="AccordionHeader",F3=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xc(bn,n),a=Au(L3,n);return W.createElement(A.h3,x({"data-orientation":o.orientation,"data-state":i1(a.open),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}),Of="AccordionTrigger",z3=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xc(bn,n),a=Au(Of,n),c=M3(Of,n),l=Iu(n);return W.createElement(Ou.ItemSlot,{scope:n},W.createElement(l3,x({"aria-disabled":a.open&&!c.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId},l,r,{ref:t})))}),V3="AccordionContent",B3=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xc(bn,n),a=Au(V3,n),c=Iu(n);return W.createElement(s3,x({role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation},c,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function i1(e){return e?"open":"closed"}const zC=r1,VC=N3,BC=F3,UC=z3,HC=B3;function U3(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const l1="ScrollArea",[s1,WC]=le(l1),[H3,it]=s1(l1),W3=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...c}=e,[l,s]=i.useState(null),[u,f]=i.useState(null),[d,p]=i.useState(null),[$,y]=i.useState(null),[m,w]=i.useState(null),[h,v]=i.useState(0),[g,b]=i.useState(0),[E,S]=i.useState(!1),[C,_]=i.useState(!1),P=z(t,F=>s(F)),D=Ut(o);return i.createElement(H3,{scope:n,type:r,dir:D,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:f,content:d,onContentChange:p,scrollbarX:$,onScrollbarXChange:y,scrollbarXEnabled:E,onScrollbarXEnabledChange:S,scrollbarY:m,onScrollbarYChange:w,scrollbarYEnabled:C,onScrollbarYEnabledChange:_,onCornerWidthChange:v,onCornerHeightChange:b},i.createElement(A.div,x({dir:D},c,{ref:P,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":g+"px",...e.style}})))}),K3="ScrollAreaViewport",j3=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...o}=e,a=it(K3,n),c=i.useRef(null),l=z(t,c,a.onViewportChange);return i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),i.createElement(A.div,x({"data-radix-scroll-area-viewport":""},o,{ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),i.createElement("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),Wt="ScrollAreaScrollbar",KC=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=it(Wt,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:c}=o,l=e.orientation==="horizontal";return i.useEffect(()=>(l?a(!0):c(!0),()=>{l?a(!1):c(!1)}),[l,a,c]),o.type==="hover"?i.createElement(G3,x({},r,{ref:t,forceMount:n})):o.type==="scroll"?i.createElement(Y3,x({},r,{ref:t,forceMount:n})):o.type==="auto"?i.createElement(u1,x({},r,{ref:t,forceMount:n})):o.type==="always"?i.createElement(Nu,x({},r,{ref:t})):null}),G3=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=it(Wt,e.__scopeScrollArea),[a,c]=i.useState(!1);return i.useEffect(()=>{const l=o.scrollArea;let s=0;if(l){const u=()=>{window.clearTimeout(s),c(!0)},f=()=>{s=window.setTimeout(()=>c(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",f),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),i.createElement(se,{present:n||a},i.createElement(u1,x({"data-state":a?"visible":"hidden"},r,{ref:t})))}),Y3=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=it(Wt,e.__scopeScrollArea),a=e.orientation==="horizontal",c=Zc(()=>s("SCROLL_END"),100),[l,s]=U3("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return i.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),i.useEffect(()=>{const u=o.viewport,f=a?"scrollLeft":"scrollTop";if(u){let d=u[f];const p=()=>{const $=u[f];d!==$&&(s("SCROLL"),c()),d=$};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[o.viewport,a,s,c]),i.createElement(se,{present:n||l!=="hidden"},i.createElement(Nu,x({"data-state":l==="hidden"?"hidden":"visible"},r,{ref:t,onPointerEnter:R(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:R(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),u1=i.forwardRef((e,t)=>{const n=it(Wt,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,c]=i.useState(!1),l=e.orientation==="horizontal",s=Zc(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,o=it(Wt,e.__scopeScrollArea),a=i.useRef(null),c=i.useRef(0),[l,s]=i.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=v1(l.viewport,l.content),f={...r,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:p=>a.current=p,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:p=>c.current=p};function d(p,$){return t5(p,c.current,l,$)}return n==="horizontal"?i.createElement(X3,x({},f,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollLeft,$=If(p,l,o.dir);a.current.style.transform=`translate3d(${$}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=d(p,o.dir))}})):n==="vertical"?i.createElement(Q3,x({},f,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollTop,$=If(p,l);a.current.style.transform=`translate3d(0, ${$}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=d(p))}})):null}),X3=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=it(Wt,e.__scopeScrollArea),[c,l]=i.useState(),s=i.useRef(null),u=z(t,s,a.onScrollbarXChange);return i.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),i.createElement(f1,x({"data-orientation":"horizontal"},o,{ref:u,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Qc(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,d)=>{if(a.viewport){const p=a.viewport.scrollLeft+f.deltaX;e.onWheelScroll(p),h1(p,d)&&f.preventDefault()}},onResize:()=>{s.current&&a.viewport&&c&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:vc(c.paddingLeft),paddingEnd:vc(c.paddingRight)}})}}))}),Q3=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=it(Wt,e.__scopeScrollArea),[c,l]=i.useState(),s=i.useRef(null),u=z(t,s,a.onScrollbarYChange);return i.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),i.createElement(f1,x({"data-orientation":"vertical"},o,{ref:u,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Qc(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,d)=>{if(a.viewport){const p=a.viewport.scrollTop+f.deltaY;e.onWheelScroll(p),h1(p,d)&&f.preventDefault()}},onResize:()=>{s.current&&a.viewport&&c&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:vc(c.paddingTop),paddingEnd:vc(c.paddingBottom)}})}}))}),[Z3,d1]=s1(Wt),f1=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:c,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:f,onResize:d,...p}=e,$=it(Wt,n),[y,m]=i.useState(null),w=z(t,P=>m(P)),h=i.useRef(null),v=i.useRef(""),g=$.viewport,b=r.content-r.viewport,E=ae(f),S=ae(s),C=Zc(d,10);function _(P){if(h.current){const D=P.clientX-h.current.left,F=P.clientY-h.current.top;u({x:D,y:F})}}return i.useEffect(()=>{const P=D=>{const F=D.target;y?.contains(F)&&E(D,b)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[g,y,b,E]),i.useEffect(S,[r,S]),Rr(y,C),Rr($.content,C),i.createElement(Z3,{scope:n,scrollbar:y,hasThumb:o,onThumbChange:ae(a),onThumbPointerUp:ae(c),onThumbPositionChange:S,onThumbPointerDown:ae(l)},i.createElement(A.div,x({},p,{ref:w,style:{position:"absolute",...p.style},onPointerDown:R(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),h.current=y.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",$.viewport&&($.viewport.style.scrollBehavior="auto"),_(P))}),onPointerMove:R(e.onPointerMove,_),onPointerUp:R(e.onPointerUp,P=>{const D=P.target;D.hasPointerCapture(P.pointerId)&&D.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=v.current,$.viewport&&($.viewport.style.scrollBehavior=""),h.current=null})})))}),Zl="ScrollAreaThumb",jC=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=d1(Zl,e.__scopeScrollArea);return i.createElement(se,{present:n||o.hasThumb},i.createElement(q3,x({ref:t},r)))}),q3=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=it(Zl,n),c=d1(Zl,n),{onThumbPositionChange:l}=c,s=z(t,d=>c.onThumbChange(d)),u=i.useRef(),f=Zc(()=>{u.current&&(u.current(),u.current=void 0)},100);return i.useEffect(()=>{const d=a.viewport;if(d){const p=()=>{if(f(),!u.current){const $=n5(d,l);u.current=$,l()}};return l(),d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[a.viewport,f,l]),i.createElement(A.div,x({"data-state":c.hasThumb?"visible":"hidden"},o,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:R(e.onPointerDownCapture,d=>{const $=d.target.getBoundingClientRect(),y=d.clientX-$.left,m=d.clientY-$.top;c.onThumbPointerDown({x:y,y:m})}),onPointerUp:R(e.onPointerUp,c.onThumbPointerUp)}))}),p1="ScrollAreaCorner",J3=i.forwardRef((e,t)=>{const n=it(p1,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?i.createElement(e5,x({},e,{ref:t})):null}),e5=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=it(p1,n),[a,c]=i.useState(0),[l,s]=i.useState(0),u=!!(a&&l);return Rr(o.scrollbarX,()=>{var f;const d=((f=o.scrollbarX)===null||f===void 0?void 0:f.offsetHeight)||0;o.onCornerHeightChange(d),s(d)}),Rr(o.scrollbarY,()=>{var f;const d=((f=o.scrollbarY)===null||f===void 0?void 0:f.offsetWidth)||0;o.onCornerWidthChange(d),c(d)}),u?i.createElement(A.div,x({},r,{ref:t,style:{width:a,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function vc(e){return e?parseInt(e,10):0}function v1(e,t){const n=e/t;return isNaN(n)?0:n}function Qc(e){const t=v1(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function t5(e,t,n,r="ltr"){const o=Qc(n),a=o/2,c=t||a,l=o-c,s=n.scrollbar.paddingStart+c,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,f=n.content-n.viewport,d=r==="ltr"?[0,f]:[f*-1,0];return m1([s,u],d)(e)}function If(e,t,n="ltr"){const r=Qc(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,c=t.content-t.viewport,l=a-r,s=n==="ltr"?[0,c]:[c*-1,0],u=Mo(e,s);return m1([0,c],[0,l])(u)}function m1(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function h1(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},c=n.left!==a.left,l=n.top!==a.top;(c||l)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Zc(e,t){const n=ae(e),r=i.useRef(0);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),i.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Rr(e,t){const n=ae(t);Oe(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}const GC=W3,YC=j3,XC=J3,r5="AlertDialog",[o5,QC]=le(r5,[g0]),Wn=g0(),a5=e=>{const{__scopeAlertDialog:t,...n}=e,r=Wn(t);return i.createElement(uE,x({},r,n))},c5=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return i.createElement(dE,x({},o,r,{ref:t}))}),$1="AlertDialogContent",[i5,l5]=o5($1),s5=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=Wn(n),c=i.useRef(null),l=z(t,c),s=i.useRef(null);return i.createElement(sE,{contentName:$1,titleName:u5,docsSlug:"alert-dialog"},i.createElement(i5,{scope:n,cancelRef:s},i.createElement(fE,x({role:"alertdialog"},a,o,{ref:l,onOpenAutoFocus:R(o.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=s.current)===null||f===void 0||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault()}),i.createElement(Xs,null,r),!1)))}),u5="AlertDialogTitle",d5=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return i.createElement(pE,x({},o,r,{ref:t}))}),f5=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return i.createElement(vE,x({},o,r,{ref:t}))}),p5=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return i.createElement(C0,x({},o,r,{ref:t}))}),v5="AlertDialogCancel",m5=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=l5(v5,n),a=Wn(n),c=z(t,o);return i.createElement(C0,x({},a,r,{ref:c}))}),ZC=a5,qC=c5,JC=s5,e7=p5,t7=m5,n7=d5,r7=f5,g1="Tabs",[h5,o7]=le(g1,[yn]),y1=yn(),[$5,Lu]=h5(g1),g5=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:l,activationMode:s="automatic",...u}=e,f=Ut(l),[d,p]=Ne({prop:r,onChange:o,defaultProp:a});return i.createElement($5,{scope:n,baseId:nt(),value:d,onValueChange:p,orientation:c,dir:f,activationMode:s},i.createElement(A.div,x({dir:f,"data-orientation":c},u,{ref:t})))}),y5="TabsList",w5=i.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Lu(y5,n),c=y1(n);return i.createElement(Nc,x({asChild:!0},c,{orientation:a.orientation,dir:a.dir,loop:r}),i.createElement(A.div,x({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),b5="TabsTrigger",E5=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,c=Lu(b5,n),l=y1(n),s=w1(c.baseId,r),u=b1(c.baseId,r),f=r===c.value;return i.createElement(Lc,x({asChild:!0},l,{focusable:!o,active:f}),i.createElement(A.button,x({type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},a,{ref:t,onMouseDown:R(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?c.onValueChange(r):d.preventDefault()}),onKeyDown:R(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&c.onValueChange(r)}),onFocus:R(e.onFocus,()=>{const d=c.activationMode!=="manual";!f&&!o&&d&&c.onValueChange(r)})})))}),x5="TabsContent",C5=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...c}=e,l=Lu(x5,n),s=w1(l.baseId,r),u=b1(l.baseId,r),f=r===l.value,d=i.useRef(f);return i.useEffect(()=>{const p=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(p)},[]),i.createElement(se,{present:o||f},({present:p})=>i.createElement(A.div,x({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!p,id:u,tabIndex:0},c,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),p&&a))});function w1(e,t){return`${e}-trigger-${t}`}function b1(e,t){return`${e}-content-${t}`}const a7=g5,c7=w5,i7=E5,l7=C5;let Fi;const E1="HoverCard",[x1,s7]=le(E1,[Ct]),S5=Ct(),[u7,C1]=x1(E1),_5="HoverCardPortal",[d7,P5]=x1(_5,{forceMount:void 0}),ql="HoverCardContent",R5=i.forwardRef((e,t)=>{const n=P5(ql,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=C1(ql,e.__scopeHoverCard);return i.createElement(se,{present:r||a.open},i.createElement(k5,x({"data-state":a.open?"open":"closed"},o,{onPointerEnter:R(e.onPointerEnter,Af(a.onOpen)),onPointerLeave:R(e.onPointerLeave,Af(a.onClose)),ref:t})))}),k5=i.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,...l}=e,s=C1(ql,n),u=S5(n),f=i.useRef(null),d=z(t,f),[p,$]=i.useState(!1);return i.useEffect(()=>{if(p){const y=document.body;return Fi=y.style.userSelect||y.style.webkitUserSelect,y.style.userSelect="none",y.style.webkitUserSelect="none",()=>{y.style.userSelect=Fi,y.style.webkitUserSelect=Fi}}},[p]),i.useEffect(()=>{if(f.current){const y=()=>{$(!1),s.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var m;((m=document.getSelection())===null||m===void 0?void 0:m.toString())!==""&&(s.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",y),()=>{document.removeEventListener("pointerup",y),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!1}}},[s.isPointerDownOnContentRef,s.hasSelectionRef]),i.useEffect(()=>{f.current&&T5(f.current).forEach(m=>m.setAttribute("tabindex","-1"))}),i.createElement(Vn,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:c,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:R(a,y=>{y.preventDefault()}),onDismiss:s.onDismiss},i.createElement(Ho,x({},u,l,{onPointerDown:R(l.onPointerDown,y=>{y.currentTarget.contains(y.target)&&$(!0),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!0}),ref:d,style:{...l.style,userSelect:p?"text":void 0,WebkitUserSelect:p?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))});function Af(e){return t=>t.pointerType==="touch"?void 0:e()}function T5(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}const f7=R5,S1="Progress",qc=100,[M5,p7]=le(S1),[D5,O5]=M5(S1),_1=i.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:a=N5,...c}=e,l=Jl(o)?o:qc,s=R1(r,l)?r:null,u=mc(s)?a(s,l):void 0;return i.createElement(D5,{scope:n,value:s,max:l},i.createElement(A.div,x({"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":mc(s)?s:void 0,"aria-valuetext":u,role:"progressbar","data-state":P1(s,l),"data-value":s??void 0,"data-max":l},c,{ref:t})))});_1.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!Jl(r)?new Error(L5(o,n)):null},value(e,t,n){const r=e[t],o=String(r),a=Jl(e.max)?e.max:qc;return r!=null&&!R1(r,a)?new Error(F5(o,n)):null}};const I5="ProgressIndicator",A5=i.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...o}=e,a=O5(I5,r);return i.createElement(A.div,x({"data-state":P1(a.value,a.max),"data-value":(n=a.value)!==null&&n!==void 0?n:void 0,"data-max":a.max},o,{ref:t}))});function N5(e,t){return`${Math.round(e/t*100)}%`}function P1(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function mc(e){return typeof e=="number"}function Jl(e){return mc(e)&&!isNaN(e)&&e>0}function R1(e,t){return mc(e)&&!isNaN(e)&&e<=t&&e>=0}function L5(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${qc}\`.`}function F5(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: +`)},e6=0,Zn=[];function t6(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(e6++)[0],a=i.useState(function(){return au()})[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=hm([e.lockRef.current],(e.shards||[]).map(Pf),!0).filter(Boolean);return m.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(m,w){if("touches"in m&&m.touches.length===2)return!c.current.allowPinchZoom;var h=Ca(m),v=n.current,$="deltaX"in m?m.deltaX:v[0]-h[0],b="deltaY"in m?m.deltaY:v[1]-h[1],E,S=m.target,C=Math.abs($)>Math.abs(b)?"h":"v";if("touches"in m&&C==="h"&&S.type==="range")return!1;var _=Sf(C,S);if(!_)return!0;if(_?E=C:(E=C==="v"?"h":"v",_=Sf(C,S)),!_)return!1;if(!r.current&&"changedTouches"in m&&($||b)&&(r.current=E),!E)return!0;var P=r.current||E;return Z5(P,w,m,P==="h"?$:b,!0)},[]),s=i.useCallback(function(m){var w=m;if(!(!Zn.length||Zn[Zn.length-1]!==a)){var h="deltaY"in w?_f(w):Ca(w),v=t.current.filter(function(E){return E.name===w.type&&E.target===w.target&&q5(E.delta,h)})[0];if(v&&v.should){w.preventDefault();return}if(!v){var $=(c.current.shards||[]).map(Pf).filter(Boolean).filter(function(E){return E.contains(w.target)}),b=$.length>0?l(w,$[0]):!c.current.noIsolation;b&&w.preventDefault()}}},[]),u=i.useCallback(function(m,w,h,v){var $={name:m,delta:w,target:h,should:v};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(b){return b!==$})},1)},[]),f=i.useCallback(function(m){n.current=Ca(m),r.current=void 0},[]),d=i.useCallback(function(m){u(m.type,_f(m),m.target,l(m,e.lockRef.current))},[]),p=i.useCallback(function(m){u(m.type,Ca(m),m.target,l(m,e.lockRef.current))},[]);i.useEffect(function(){return Zn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Qn),document.addEventListener("touchmove",s,Qn),document.addEventListener("touchstart",f,Qn),function(){Zn=Zn.filter(function(m){return m!==a}),document.removeEventListener("wheel",s,Qn),document.removeEventListener("touchmove",s,Qn),document.removeEventListener("touchstart",f,Qn)}},[]);var g=e.removeScrollBar,y=e.inert;return i.createElement(i.Fragment,null,y?i.createElement(a,{styles:J5(o)}):null,g?i.createElement(Em,{gapMode:"margin"}):null)}const n6=wm(R0,t6);var M0=i.forwardRef(function(e,t){return i.createElement(Kc,ke({},e,{ref:t,sideCar:n6}))});M0.classNames=Kc.classNames;const r6=M0,D0="Dialog",[O0,cx]=g5(D0),[o6,Hn]=O0(D0),a6=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,l=i.useRef(null),s=i.useRef(null),[u=!1,f]=b5({prop:r,defaultProp:o,onChange:a});return i.createElement(o6,{scope:t,triggerRef:l,contentRef:s,contentId:Oi(),titleId:Oi(),descriptionId:Oi(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(d=>!d),[f]),modal:c},n)},I0="DialogPortal",[c6,A0]=O0(I0,{forceMount:void 0}),i6=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Hn(I0,t);return i.createElement(c6,{scope:t,forceMount:n},i.Children.map(r,c=>i.createElement(Wc,{present:n||a.open},i.createElement(U5,{asChild:!0,container:o},c))))},Gl="DialogOverlay",l6=i.forwardRef((e,t)=>{const n=A0(Gl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Hn(Gl,e.__scopeDialog);return a.modal?i.createElement(Wc,{present:r||a.open},i.createElement(s6,x({},o,{ref:t}))):null}),s6=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Hn(Gl,n);return i.createElement(r6,{as:Pu,allowPinchZoom:!0,shards:[o.contentRef]},i.createElement(Hc.div,x({"data-state":L0(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Oo="DialogContent",u6=i.forwardRef((e,t)=>{const n=A0(Oo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Hn(Oo,e.__scopeDialog);return i.createElement(Wc,{present:r||a.open},a.modal?i.createElement(d6,x({},o,{ref:t})):i.createElement(f6,x({},o,{ref:t})))}),d6=i.forwardRef((e,t)=>{const n=Hn(Oo,e.__scopeDialog),r=i.useRef(null),o=Yo(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return Wo(a)},[]),i.createElement(N0,x({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gr(e.onCloseAutoFocus,a=>{var c;a.preventDefault(),(c=n.triggerRef.current)===null||c===void 0||c.focus()}),onPointerDownOutside:gr(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&a.preventDefault()}),onFocusOutside:gr(e.onFocusOutside,a=>a.preventDefault())}))}),f6=i.forwardRef((e,t)=>{const n=Hn(Oo,e.__scopeDialog),r=i.useRef(!1);return i.createElement(N0,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,o),!o.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),o.preventDefault()}r.current=!1},onInteractOutside:o=>{var a,c;(a=e.onInteractOutside)===null||a===void 0||a.call(e,o),o.defaultPrevented||(r.current=!0);const l=o.target;((c=n.triggerRef.current)===null||c===void 0?void 0:c.contains(l))&&o.preventDefault()}}))}),N0=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,l=Hn(Oo,n),s=i.useRef(null),u=Yo(t,s);return K5(),i.createElement(i.Fragment,null,i.createElement(A5,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},i.createElement(D5,x({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":L0(l.open)},c,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)});function L0(e){return e?"open":"closed"}const ix=a6,lx=i6,sx=l6,ux=u6,F0=["PageUp","PageDown"],z0=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],V0={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Xo="Slider",[Yl,p6,v6]=yn(Xo),[B0,dx]=le(Xo,[v6]),[m6,jc]=B0(Xo),h6=i.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:c="horizontal",disabled:l=!1,minStepsBetweenThumbs:s=0,defaultValue:u=[r],value:f,onValueChange:d=()=>{},onValueCommit:p=()=>{},inverted:g=!1,...y}=e,[m,w]=i.useState(null),h=z(t,N=>w(N)),v=i.useRef(new Set),$=i.useRef(0),b=c==="horizontal",E=m?!!m.closest("form"):!0,S=b?g6:$6,[C=[],_]=Ne({prop:f,defaultProp:u,onChange:N=>{var B;(B=[...v.current][$.current])===null||B===void 0||B.focus(),d(N)}}),P=i.useRef(C);function D(N){const B=P6(C,N);Y(N,B)}function F(N){Y(N,$.current)}function H(){const N=P.current[$.current];C[$.current]!==N&&p(C)}function Y(N,B,{commit:U}={commit:!1}){const X=M6(a),T=D6(Math.round((N-r)/a)*a+r,X),k=Mo(T,[r,o]);_((O=[])=>{const V=S6(O,k,B);if(T6(V,s*a)){$.current=V.indexOf(k);const j=String(V)!==String(O);return j&&U&&p(V),j?V:O}else return O})}return i.createElement(m6,{scope:e.__scopeSlider,disabled:l,min:r,max:o,valueIndexToChangeRef:$,thumbs:v.current,values:C,orientation:c},i.createElement(Yl.Provider,{scope:e.__scopeSlider},i.createElement(Yl.Slot,{scope:e.__scopeSlider},i.createElement(S,x({"aria-disabled":l,"data-disabled":l?"":void 0},y,{ref:h,onPointerDown:R(y.onPointerDown,()=>{l||(P.current=C)}),min:r,max:o,inverted:g,onSlideStart:l?void 0:D,onSlideMove:l?void 0:F,onSlideEnd:l?void 0:H,onHomeKeyDown:()=>!l&&Y(r,0,{commit:!0}),onEndKeyDown:()=>!l&&Y(o,C.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:B})=>{if(!l){const T=F0.includes(N.key)||N.shiftKey&&z0.includes(N.key)?10:1,k=$.current,O=C[k],V=a*T*B;Y(O+V,k,{commit:!0})}}})))),E&&C.map((N,B)=>i.createElement(C6,{key:B,name:n?n+(C.length>1?"[]":""):void 0,value:N})))}),[U0,H0]=B0(Xo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),g6=i.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:c,onSlideMove:l,onSlideEnd:s,onStepKeyDown:u,...f}=e,[d,p]=i.useState(null),g=z(t,$=>p($)),y=i.useRef(),m=Ut(o),w=m==="ltr",h=w&&!a||!w&&a;function v($){const b=y.current||d.getBoundingClientRect(),E=[0,b.width],C=Ru(E,h?[n,r]:[r,n]);return y.current=b,C($-b.left)}return i.createElement(U0,{scope:e.__scopeSlider,startEdge:h?"left":"right",endEdge:h?"right":"left",direction:h?1:-1,size:"width"},i.createElement(W0,x({dir:m,"data-orientation":"horizontal"},f,{ref:g,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:$=>{const b=v($.clientX);c?.(b)},onSlideMove:$=>{const b=v($.clientX);l?.(b)},onSlideEnd:()=>{y.current=void 0,s?.()},onStepKeyDown:$=>{const E=V0[h?"from-left":"from-right"].includes($.key);u?.({event:$,direction:E?-1:1})}})))}),$6=i.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:c,onSlideEnd:l,onStepKeyDown:s,...u}=e,f=i.useRef(null),d=z(t,f),p=i.useRef(),g=!o;function y(m){const w=p.current||f.current.getBoundingClientRect(),h=[0,w.height],$=Ru(h,g?[r,n]:[n,r]);return p.current=w,$(m-w.top)}return i.createElement(U0,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1},i.createElement(W0,x({"data-orientation":"vertical"},u,{ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const w=y(m.clientY);a?.(w)},onSlideMove:m=>{const w=y(m.clientY);c?.(w)},onSlideEnd:()=>{p.current=void 0,l?.()},onStepKeyDown:m=>{const h=V0[g?"from-bottom":"from-top"].includes(m.key);s?.({event:m,direction:h?-1:1})}})))}),W0=i.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:c,onEndKeyDown:l,onStepKeyDown:s,...u}=e,f=jc(Xo,n);return i.createElement(A.span,x({},u,{ref:t,onKeyDown:R(e.onKeyDown,d=>{d.key==="Home"?(c(d),d.preventDefault()):d.key==="End"?(l(d),d.preventDefault()):F0.concat(z0).includes(d.key)&&(s(d),d.preventDefault())}),onPointerDown:R(e.onPointerDown,d=>{const p=d.target;p.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(p)?p.focus():r(d)}),onPointerMove:R(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:R(e.onPointerUp,d=>{const p=d.target;p.hasPointerCapture(d.pointerId)&&(p.releasePointerCapture(d.pointerId),a(d))})}))}),y6="SliderTrack",w6=i.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=jc(y6,n);return i.createElement(A.span,x({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))}),Rf="SliderRange",b6=i.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=jc(Rf,n),a=H0(Rf,n),c=i.useRef(null),l=z(t,c),s=o.values.length,u=o.values.map(p=>K0(p,o.min,o.max)),f=s>1?Math.min(...u):0,d=100-Math.max(...u);return i.createElement(A.span,x({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:l,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:d+"%"}}))}),kf="SliderThumb",E6=i.forwardRef((e,t)=>{const n=p6(e.__scopeSlider),[r,o]=i.useState(null),a=z(t,l=>o(l)),c=i.useMemo(()=>r?n().findIndex(l=>l.ref.current===r):-1,[n,r]);return i.createElement(x6,x({},e,{ref:a,index:c}))}),x6=i.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,a=jc(kf,n),c=H0(kf,n),[l,s]=i.useState(null),u=z(t,w=>s(w)),f=Uo(l),d=a.values[r],p=d===void 0?0:K0(d,a.min,a.max),g=_6(r,a.values.length),y=f?.[c.size],m=y?R6(y,p,c.direction):0;return i.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),i.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${p}% + ${m}px)`}},i.createElement(Yl.ItemSlot,{scope:e.__scopeSlider},i.createElement(A.span,x({role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":a.min,"aria-valuenow":d,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},o,{ref:u,style:d===void 0?{display:"none"}:e.style,onFocus:R(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})}))))}),C6=e=>{const{value:t,...n}=e,r=i.useRef(null),o=Ir(t);return i.useEffect(()=>{const a=r.current,c=window.HTMLInputElement.prototype,s=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&s){const u=new Event("input",{bubbles:!0});s.call(a,t),a.dispatchEvent(u)}},[o,t]),i.createElement("input",x({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function S6(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function K0(e,t,n){const a=100/(n-t)*(e-t);return Mo(a,[0,100])}function _6(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function P6(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function R6(e,t,n){const r=e/2,a=Ru([0,50],[0,r]);return(r-a(t)*n)*n}function k6(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function T6(e,t){if(t>0){const n=k6(e);return Math.min(...n)>=t}return!0}function Ru(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function M6(e){return(String(e).split(".")[1]||"").length}function D6(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const fx=h6,px=w6,vx=b6,mx=E6,j0="Switch",[O6,hx]=le(j0),[I6,A6]=O6(j0),N6=i.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:c,disabled:l,value:s="on",onCheckedChange:u,...f}=e,[d,p]=i.useState(null),g=z(t,v=>p(v)),y=i.useRef(!1),m=d?!!d.closest("form"):!0,[w=!1,h]=Ne({prop:o,defaultProp:a,onChange:u});return i.createElement(I6,{scope:n,checked:w,disabled:l},i.createElement(A.button,x({type:"button",role:"switch","aria-checked":w,"aria-required":c,"data-state":G0(w),"data-disabled":l?"":void 0,disabled:l,value:s},f,{ref:g,onClick:R(e.onClick,v=>{h($=>!$),m&&(y.current=v.isPropagationStopped(),y.current||v.stopPropagation())})})),m&&i.createElement(z6,{control:d,bubbles:!y.current,name:r,value:s,checked:w,required:c,disabled:l,style:{transform:"translateX(-100%)"}}))}),L6="SwitchThumb",F6=i.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=A6(L6,n);return i.createElement(A.span,x({"data-state":G0(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))}),z6=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=i.useRef(null),c=Ir(n),l=Uo(t);return i.useEffect(()=>{const s=a.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(c!==n&&d){const p=new Event("click",{bubbles:r});d.call(s,n),s.dispatchEvent(p)}},[c,n,r]),i.createElement("input",x({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function G0(e){return e?"checked":"unchecked"}const gx=N6,$x=F6,V6=i.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[c=!1,l]=Ne({prop:n,onChange:o,defaultProp:r});return i.createElement(A.button,x({type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:R(e.onClick,()=>{e.disabled||l(!c)})}))}),yx=V6,[Gc,wx]=le("Tooltip",[Ct]),B6=Ct(),U6="TooltipProvider",Tf="tooltip.open",[bx,H6]=Gc(U6),Y0="Tooltip",[Ex,ku]=Gc(Y0),W6="TooltipPortal",[xx,K6]=Gc(W6,{forceMount:void 0}),Io="TooltipContent",j6=i.forwardRef((e,t)=>{const n=K6(Io,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,c=ku(Io,e.__scopeTooltip);return i.createElement(se,{present:r||c.open},c.disableHoverableContent?i.createElement(X0,x({side:o},a,{ref:t})):i.createElement(G6,x({side:o},a,{ref:t})))}),G6=i.forwardRef((e,t)=>{const n=ku(Io,e.__scopeTooltip),r=H6(Io,e.__scopeTooltip),o=i.useRef(null),a=z(t,o),[c,l]=i.useState(null),{trigger:s,onClose:u}=n,f=o.current,{onPointerInTransitChange:d}=r,p=i.useCallback(()=>{l(null),d(!1)},[d]),g=i.useCallback((y,m)=>{const w=y.currentTarget,h={x:y.clientX,y:y.clientY},v=X6(h,w.getBoundingClientRect()),$=Q6(h,v),b=Z6(m.getBoundingClientRect()),E=J6([...$,...b]);l(E),d(!0)},[d]);return i.useEffect(()=>()=>p(),[p]),i.useEffect(()=>{if(s&&f){const y=w=>g(w,f),m=w=>g(w,s);return s.addEventListener("pointerleave",y),f.addEventListener("pointerleave",m),()=>{s.removeEventListener("pointerleave",y),f.removeEventListener("pointerleave",m)}}},[s,f,g,p]),i.useEffect(()=>{if(c){const y=m=>{const w=m.target,h={x:m.clientX,y:m.clientY},v=s?.contains(w)||f?.contains(w),$=!q6(h,c);v?p():$&&(p(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[s,f,c,u,p]),i.createElement(X0,x({},e,{ref:a}))}),[Y6,Cx]=Gc(Y0,{isInside:!1}),X0=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:c,...l}=e,s=ku(Io,n),u=B6(n),{onClose:f}=s;return i.useEffect(()=>(document.addEventListener(Tf,f),()=>document.removeEventListener(Tf,f)),[f]),i.useEffect(()=>{if(s.trigger){const d=p=>{const g=p.target;g!=null&&g.contains(s.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[s.trigger,f]),i.createElement(Vn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:d=>d.preventDefault(),onDismiss:f},i.createElement(Ho,x({"data-state":s.stateAttribute},u,l,{ref:t,style:{...l.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)"}}),i.createElement(Xs,null,r),i.createElement(Y6,{scope:n,isInside:!0},i.createElement(Um,{id:s.contentId,role:"tooltip"},o||r))))});function X6(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Q6(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Z6(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function q6(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,c=t.length-1;ar!=f>r&&n<(u-l)*(r-s)/(f-s)+l&&(o=!o)}return o}function J6(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),e3(t)}function e3(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const a=t[t.length-1],c=t[t.length-2];if((a.x-c.x)*(o.y-c.y)>=(a.y-c.y)*(o.x-c.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],c=n[n.length-2];if((a.x-c.x)*(o.y-c.y)>=(a.y-c.y)*(o.x-c.x))n.pop();else break}n.push(o)}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)}const Sx=j6,Q0="Collapsible",[t3,Z0]=le(Q0),[n3,Tu]=t3(Q0),r3=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:c,...l}=e,[s=!1,u]=Ne({prop:r,defaultProp:o,onChange:c});return i.createElement(n3,{scope:n,disabled:a,contentId:nt(),open:s,onOpenToggle:i.useCallback(()=>u(f=>!f),[u])},i.createElement(A.div,x({"data-state":Mu(s),"data-disabled":a?"":void 0},l,{ref:t})))}),o3="CollapsibleTrigger",a3=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Tu(o3,n);return i.createElement(A.button,x({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Mu(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:R(e.onClick,o.onOpenToggle)}))}),q0="CollapsibleContent",c3=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Tu(q0,e.__scopeCollapsible);return i.createElement(se,{present:n||o.open},({present:a})=>i.createElement(i3,x({},r,{ref:t,present:a})))}),i3=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,c=Tu(q0,n),[l,s]=i.useState(r),u=i.useRef(null),f=z(t,u),d=i.useRef(0),p=d.current,g=i.useRef(0),y=g.current,m=c.open||l,w=i.useRef(m),h=i.useRef();return i.useEffect(()=>{const v=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(v)},[]),Oe(()=>{const v=u.current;if(v){h.current=h.current||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const $=v.getBoundingClientRect();d.current=$.height,g.current=$.width,w.current||(v.style.transitionDuration=h.current.transitionDuration,v.style.animationName=h.current.animationName),s(r)}},[c.open,r]),i.createElement(A.div,x({"data-state":Mu(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!m},a,{ref:f,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),m&&o)});function Mu(e){return e?"open":"closed"}const l3=r3,s3=a3,u3=c3,Du="Menubar",[Xl,d3,f3]=yn(Du),[J0,_x]=le(Du,[f3,wn]),gt=Ko(),e1=wn(),[p3,t1]=J0(Du),v3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:a,loop:c=!0,dir:l,...s}=e,u=Ut(l),f=e1(n),[d="",p]=Ne({prop:r,onChange:o,defaultProp:a}),[g,y]=i.useState(null);return i.createElement(p3,{scope:n,value:d,onMenuOpen:i.useCallback(m=>{p(m),y(m)},[p]),onMenuClose:i.useCallback(()=>p(""),[p]),onMenuToggle:i.useCallback(m=>{p(w=>w?"":m),y(m)},[p]),dir:u,loop:c},i.createElement(Xl.Provider,{scope:n},i.createElement(Xl.Slot,{scope:n},i.createElement(Nc,x({asChild:!0},f,{orientation:"horizontal",loop:c,dir:u,currentTabStopId:g,onCurrentTabStopIdChange:y}),i.createElement(A.div,x({role:"menubar"},s,{ref:t}))))))}),m3="MenubarMenu",[Px,n1]=J0(m3),Mf="MenubarTrigger",h3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,a=e1(n),c=gt(n),l=t1(Mf,n),s=n1(Mf,n),u=i.useRef(null),f=z(t,u,s.triggerRef),[d,p]=i.useState(!1),g=l.value===s.value;return i.createElement(Xl.ItemSlot,{scope:n,value:s.value,disabled:r},i.createElement(Lc,x({asChild:!0},a,{focusable:!r,tabStopId:s.value}),i.createElement(Lm,x({asChild:!0},c),i.createElement(A.button,x({type:"button",role:"menuitem",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?s.contentId:void 0,"data-highlighted":d?"":void 0,"data-state":g?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:f,onPointerDown:R(e.onPointerDown,y=>{!r&&y.button===0&&y.ctrlKey===!1&&(l.onMenuOpen(s.value),g||y.preventDefault())}),onPointerEnter:R(e.onPointerEnter,()=>{if(!!l.value&&!g){var m;l.onMenuOpen(s.value),(m=u.current)===null||m===void 0||m.focus()}}),onKeyDown:R(e.onKeyDown,y=>{r||(["Enter"," "].includes(y.key)&&l.onMenuToggle(s.value),y.key==="ArrowDown"&&l.onMenuOpen(s.value),["Enter"," ","ArrowDown"].includes(y.key)&&(s.wasKeyboardTriggerOpenRef.current=!0,y.preventDefault()))}),onFocus:R(e.onFocus,()=>p(!0)),onBlur:R(e.onBlur,()=>p(!1))})))))}),g3=e=>{const{__scopeMenubar:t,...n}=e,r=gt(t);return i.createElement(du,x({},r,n))},Df="MenubarContent",$3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,a=gt(n),c=t1(Df,n),l=n1(Df,n),s=d3(n),u=i.useRef(!1);return i.createElement(fu,x({id:l.contentId,"aria-labelledby":l.triggerId,"data-radix-menubar-content":""},a,o,{ref:t,align:r,onCloseAutoFocus:R(e.onCloseAutoFocus,f=>{if(!!!c.value&&!u.current){var p;(p=l.triggerRef.current)===null||p===void 0||p.focus()}u.current=!1,f.preventDefault()}),onFocusOutside:R(e.onFocusOutside,f=>{const d=f.target;s().some(g=>{var y;return(y=g.ref.current)===null||y===void 0?void 0:y.contains(d)})&&f.preventDefault()}),onInteractOutside:R(e.onInteractOutside,()=>{u.current=!0}),onEntryFocus:f=>{l.wasKeyboardTriggerOpenRef.current||f.preventDefault()},onKeyDown:R(e.onKeyDown,f=>{if(["ArrowRight","ArrowLeft"].includes(f.key)){const d=f.target,p=d.hasAttribute("data-radix-menubar-subtrigger"),g=d.closest("[data-radix-menubar-content]")!==f.currentTarget,m=(c.dir==="rtl"?"ArrowRight":"ArrowLeft")===f.key;if(!m&&p||g&&m)return;let v=s().filter(E=>!E.disabled).map(E=>E.value);m&&v.reverse();const $=v.indexOf(l.value);v=c.loop?P3(v,$+1):v.slice($+1);const[b]=v;b&&c.onMenuOpen(b)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}),y3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=gt(n);return i.createElement(pu,x({},o,r,{ref:t}))}),w3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=gt(n);return i.createElement(vu,x({},o,r,{ref:t}))}),b3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=gt(n);return i.createElement(mu,x({},o,r,{ref:t}))}),E3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=gt(n);return i.createElement(hu,x({},o,r,{ref:t}))}),x3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=gt(n);return i.createElement(gu,x({},o,r,{ref:t}))}),C3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=gt(n);return i.createElement($u,x({},o,r,{ref:t}))}),S3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=gt(n);return i.createElement(yu,x({"data-radix-menubar-subtrigger":""},o,r,{ref:t}))}),_3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=gt(n);return i.createElement(wu,x({},o,{"data-radix-menubar-content":""},r,{ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))});function P3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Rx=v3,kx=h3,Tx=g3,Mx=$3,Dx=y3,Ox=w3,Ix=b3,Ax=E3,Nx=x3,Lx=C3,Fx=S3,zx=_3,bn="Accordion",R3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ou,k3,T3]=yn(bn),[Yc,Vx]=le(bn,[T3,Z0]),Iu=Z0(),r1=W.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return W.createElement(Ou.Provider,{scope:e.__scopeAccordion},n==="multiple"?W.createElement(I3,x({},a,{ref:t})):W.createElement(O3,x({},o,{ref:t})))});r1.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[o1,M3]=Yc(bn),[a1,D3]=Yc(bn,{collapsible:!1}),O3=W.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...c}=e,[l,s]=Ne({prop:n,defaultProp:r,onChange:o});return W.createElement(o1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:W.useCallback(()=>a&&s(""),[a,s])},W.createElement(a1,{scope:e.__scopeAccordion,collapsible:a},W.createElement(c1,x({},c,{ref:t}))))}),I3=W.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[c=[],l]=Ne({prop:n,defaultProp:r,onChange:o}),s=W.useCallback(f=>l((d=[])=>[...d,f]),[l]),u=W.useCallback(f=>l((d=[])=>d.filter(p=>p!==f)),[l]);return W.createElement(o1,{scope:e.__scopeAccordion,value:c,onItemOpen:s,onItemClose:u},W.createElement(a1,{scope:e.__scopeAccordion,collapsible:!0},W.createElement(c1,x({},a,{ref:t}))))}),[A3,Xc]=Yc(bn),c1=W.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...c}=e,l=W.useRef(null),s=z(l,t),u=k3(n),d=Ut(o)==="ltr",p=R(e.onKeyDown,g=>{var y;if(!R3.includes(g.key))return;const m=g.target,w=u().filter(P=>{var D;return!((D=P.ref.current)!==null&&D!==void 0&&D.disabled)}),h=w.findIndex(P=>P.ref.current===m),v=w.length;if(h===-1)return;g.preventDefault();let $=h;const b=0,E=v-1,S=()=>{$=h+1,$>E&&($=b)},C=()=>{$=h-1,${const{__scopeAccordion:n,value:r,...o}=e,a=Xc(Ql,n),c=M3(Ql,n),l=Iu(n),s=nt(),u=r&&c.value.includes(r)||!1,f=a.disabled||e.disabled;return W.createElement(N3,{scope:n,open:u,disabled:f,triggerId:s},W.createElement(l3,x({"data-orientation":a.orientation,"data-state":i1(u)},l,o,{ref:t,disabled:f,open:u,onOpenChange:d=>{d?c.onItemOpen(r):c.onItemClose(r)}})))}),F3="AccordionHeader",z3=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xc(bn,n),a=Au(F3,n);return W.createElement(A.h3,x({"data-orientation":o.orientation,"data-state":i1(a.open),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}),Of="AccordionTrigger",V3=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xc(bn,n),a=Au(Of,n),c=D3(Of,n),l=Iu(n);return W.createElement(Ou.ItemSlot,{scope:n},W.createElement(s3,x({"aria-disabled":a.open&&!c.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId},l,r,{ref:t})))}),B3="AccordionContent",U3=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xc(bn,n),a=Au(B3,n),c=Iu(n);return W.createElement(u3,x({role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation},c,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function i1(e){return e?"open":"closed"}const Bx=r1,Ux=L3,Hx=z3,Wx=V3,Kx=U3;function H3(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const l1="ScrollArea",[s1,jx]=le(l1),[W3,it]=s1(l1),K3=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...c}=e,[l,s]=i.useState(null),[u,f]=i.useState(null),[d,p]=i.useState(null),[g,y]=i.useState(null),[m,w]=i.useState(null),[h,v]=i.useState(0),[$,b]=i.useState(0),[E,S]=i.useState(!1),[C,_]=i.useState(!1),P=z(t,F=>s(F)),D=Ut(o);return i.createElement(W3,{scope:n,type:r,dir:D,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:f,content:d,onContentChange:p,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:E,onScrollbarXEnabledChange:S,scrollbarY:m,onScrollbarYChange:w,scrollbarYEnabled:C,onScrollbarYEnabledChange:_,onCornerWidthChange:v,onCornerHeightChange:b},i.createElement(A.div,x({dir:D},c,{ref:P,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":$+"px",...e.style}})))}),j3="ScrollAreaViewport",G3=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...o}=e,a=it(j3,n),c=i.useRef(null),l=z(t,c,a.onViewportChange);return i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),i.createElement(A.div,x({"data-radix-scroll-area-viewport":""},o,{ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),i.createElement("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),Kt="ScrollAreaScrollbar",Gx=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=it(Kt,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:c}=o,l=e.orientation==="horizontal";return i.useEffect(()=>(l?a(!0):c(!0),()=>{l?a(!1):c(!1)}),[l,a,c]),o.type==="hover"?i.createElement(Y3,x({},r,{ref:t,forceMount:n})):o.type==="scroll"?i.createElement(X3,x({},r,{ref:t,forceMount:n})):o.type==="auto"?i.createElement(u1,x({},r,{ref:t,forceMount:n})):o.type==="always"?i.createElement(Nu,x({},r,{ref:t})):null}),Y3=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=it(Kt,e.__scopeScrollArea),[a,c]=i.useState(!1);return i.useEffect(()=>{const l=o.scrollArea;let s=0;if(l){const u=()=>{window.clearTimeout(s),c(!0)},f=()=>{s=window.setTimeout(()=>c(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",f),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),i.createElement(se,{present:n||a},i.createElement(u1,x({"data-state":a?"visible":"hidden"},r,{ref:t})))}),X3=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=it(Kt,e.__scopeScrollArea),a=e.orientation==="horizontal",c=Zc(()=>s("SCROLL_END"),100),[l,s]=H3("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return i.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),i.useEffect(()=>{const u=o.viewport,f=a?"scrollLeft":"scrollTop";if(u){let d=u[f];const p=()=>{const g=u[f];d!==g&&(s("SCROLL"),c()),d=g};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[o.viewport,a,s,c]),i.createElement(se,{present:n||l!=="hidden"},i.createElement(Nu,x({"data-state":l==="hidden"?"hidden":"visible"},r,{ref:t,onPointerEnter:R(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:R(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),u1=i.forwardRef((e,t)=>{const n=it(Kt,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,c]=i.useState(!1),l=e.orientation==="horizontal",s=Zc(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,o=it(Kt,e.__scopeScrollArea),a=i.useRef(null),c=i.useRef(0),[l,s]=i.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=v1(l.viewport,l.content),f={...r,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:p=>a.current=p,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:p=>c.current=p};function d(p,g){return nE(p,c.current,l,g)}return n==="horizontal"?i.createElement(Q3,x({},f,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollLeft,g=If(p,l,o.dir);a.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=d(p,o.dir))}})):n==="vertical"?i.createElement(Z3,x({},f,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollTop,g=If(p,l);a.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=d(p))}})):null}),Q3=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=it(Kt,e.__scopeScrollArea),[c,l]=i.useState(),s=i.useRef(null),u=z(t,s,a.onScrollbarXChange);return i.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),i.createElement(f1,x({"data-orientation":"horizontal"},o,{ref:u,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Qc(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,d)=>{if(a.viewport){const p=a.viewport.scrollLeft+f.deltaX;e.onWheelScroll(p),h1(p,d)&&f.preventDefault()}},onResize:()=>{s.current&&a.viewport&&c&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:vc(c.paddingLeft),paddingEnd:vc(c.paddingRight)}})}}))}),Z3=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=it(Kt,e.__scopeScrollArea),[c,l]=i.useState(),s=i.useRef(null),u=z(t,s,a.onScrollbarYChange);return i.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),i.createElement(f1,x({"data-orientation":"vertical"},o,{ref:u,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Qc(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,d)=>{if(a.viewport){const p=a.viewport.scrollTop+f.deltaY;e.onWheelScroll(p),h1(p,d)&&f.preventDefault()}},onResize:()=>{s.current&&a.viewport&&c&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:vc(c.paddingTop),paddingEnd:vc(c.paddingBottom)}})}}))}),[q3,d1]=s1(Kt),f1=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:c,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:f,onResize:d,...p}=e,g=it(Kt,n),[y,m]=i.useState(null),w=z(t,P=>m(P)),h=i.useRef(null),v=i.useRef(""),$=g.viewport,b=r.content-r.viewport,E=ae(f),S=ae(s),C=Zc(d,10);function _(P){if(h.current){const D=P.clientX-h.current.left,F=P.clientY-h.current.top;u({x:D,y:F})}}return i.useEffect(()=>{const P=D=>{const F=D.target;y?.contains(F)&&E(D,b)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[$,y,b,E]),i.useEffect(S,[r,S]),Rr(y,C),Rr(g.content,C),i.createElement(q3,{scope:n,scrollbar:y,hasThumb:o,onThumbChange:ae(a),onThumbPointerUp:ae(c),onThumbPositionChange:S,onThumbPointerDown:ae(l)},i.createElement(A.div,x({},p,{ref:w,style:{position:"absolute",...p.style},onPointerDown:R(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),h.current=y.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),_(P))}),onPointerMove:R(e.onPointerMove,_),onPointerUp:R(e.onPointerUp,P=>{const D=P.target;D.hasPointerCapture(P.pointerId)&&D.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=v.current,g.viewport&&(g.viewport.style.scrollBehavior=""),h.current=null})})))}),Zl="ScrollAreaThumb",Yx=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=d1(Zl,e.__scopeScrollArea);return i.createElement(se,{present:n||o.hasThumb},i.createElement(J3,x({ref:t},r)))}),J3=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=it(Zl,n),c=d1(Zl,n),{onThumbPositionChange:l}=c,s=z(t,d=>c.onThumbChange(d)),u=i.useRef(),f=Zc(()=>{u.current&&(u.current(),u.current=void 0)},100);return i.useEffect(()=>{const d=a.viewport;if(d){const p=()=>{if(f(),!u.current){const g=rE(d,l);u.current=g,l()}};return l(),d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[a.viewport,f,l]),i.createElement(A.div,x({"data-state":c.hasThumb?"visible":"hidden"},o,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:R(e.onPointerDownCapture,d=>{const g=d.target.getBoundingClientRect(),y=d.clientX-g.left,m=d.clientY-g.top;c.onThumbPointerDown({x:y,y:m})}),onPointerUp:R(e.onPointerUp,c.onThumbPointerUp)}))}),p1="ScrollAreaCorner",eE=i.forwardRef((e,t)=>{const n=it(p1,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?i.createElement(tE,x({},e,{ref:t})):null}),tE=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=it(p1,n),[a,c]=i.useState(0),[l,s]=i.useState(0),u=!!(a&&l);return Rr(o.scrollbarX,()=>{var f;const d=((f=o.scrollbarX)===null||f===void 0?void 0:f.offsetHeight)||0;o.onCornerHeightChange(d),s(d)}),Rr(o.scrollbarY,()=>{var f;const d=((f=o.scrollbarY)===null||f===void 0?void 0:f.offsetWidth)||0;o.onCornerWidthChange(d),c(d)}),u?i.createElement(A.div,x({},r,{ref:t,style:{width:a,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function vc(e){return e?parseInt(e,10):0}function v1(e,t){const n=e/t;return isNaN(n)?0:n}function Qc(e){const t=v1(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function nE(e,t,n,r="ltr"){const o=Qc(n),a=o/2,c=t||a,l=o-c,s=n.scrollbar.paddingStart+c,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,f=n.content-n.viewport,d=r==="ltr"?[0,f]:[f*-1,0];return m1([s,u],d)(e)}function If(e,t,n="ltr"){const r=Qc(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,c=t.content-t.viewport,l=a-r,s=n==="ltr"?[0,c]:[c*-1,0],u=Mo(e,s);return m1([0,c],[0,l])(u)}function m1(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function h1(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},c=n.left!==a.left,l=n.top!==a.top;(c||l)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Zc(e,t){const n=ae(e),r=i.useRef(0);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),i.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Rr(e,t){const n=ae(t);Oe(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}const Xx=K3,Qx=G3,Zx=eE,oE="AlertDialog",[aE,qx]=le(oE,[$0]),Wn=$0(),cE=e=>{const{__scopeAlertDialog:t,...n}=e,r=Wn(t);return i.createElement(d5,x({},r,n))},iE=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return i.createElement(f5,x({},o,r,{ref:t}))}),g1="AlertDialogContent",[lE,sE]=aE(g1),uE=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=Wn(n),c=i.useRef(null),l=z(t,c),s=i.useRef(null);return i.createElement(u5,{contentName:g1,titleName:dE,docsSlug:"alert-dialog"},i.createElement(lE,{scope:n,cancelRef:s},i.createElement(p5,x({role:"alertdialog"},a,o,{ref:l,onOpenAutoFocus:R(o.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=s.current)===null||f===void 0||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault()}),i.createElement(Xs,null,r),!1)))}),dE="AlertDialogTitle",fE=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return i.createElement(v5,x({},o,r,{ref:t}))}),pE=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return i.createElement(m5,x({},o,r,{ref:t}))}),vE=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return i.createElement(C0,x({},o,r,{ref:t}))}),mE="AlertDialogCancel",hE=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=sE(mE,n),a=Wn(n),c=z(t,o);return i.createElement(C0,x({},a,r,{ref:c}))}),Jx=cE,e7=iE,t7=uE,n7=vE,r7=hE,o7=fE,a7=pE,$1="Tabs",[gE,c7]=le($1,[wn]),y1=wn(),[$E,Lu]=gE($1),yE=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:c="horizontal",dir:l,activationMode:s="automatic",...u}=e,f=Ut(l),[d,p]=Ne({prop:r,onChange:o,defaultProp:a});return i.createElement($E,{scope:n,baseId:nt(),value:d,onValueChange:p,orientation:c,dir:f,activationMode:s},i.createElement(A.div,x({dir:f,"data-orientation":c},u,{ref:t})))}),wE="TabsList",bE=i.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Lu(wE,n),c=y1(n);return i.createElement(Nc,x({asChild:!0},c,{orientation:a.orientation,dir:a.dir,loop:r}),i.createElement(A.div,x({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),EE="TabsTrigger",xE=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,c=Lu(EE,n),l=y1(n),s=w1(c.baseId,r),u=b1(c.baseId,r),f=r===c.value;return i.createElement(Lc,x({asChild:!0},l,{focusable:!o,active:f}),i.createElement(A.button,x({type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},a,{ref:t,onMouseDown:R(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?c.onValueChange(r):d.preventDefault()}),onKeyDown:R(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&c.onValueChange(r)}),onFocus:R(e.onFocus,()=>{const d=c.activationMode!=="manual";!f&&!o&&d&&c.onValueChange(r)})})))}),CE="TabsContent",SE=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...c}=e,l=Lu(CE,n),s=w1(l.baseId,r),u=b1(l.baseId,r),f=r===l.value,d=i.useRef(f);return i.useEffect(()=>{const p=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(p)},[]),i.createElement(se,{present:o||f},({present:p})=>i.createElement(A.div,x({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!p,id:u,tabIndex:0},c,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),p&&a))});function w1(e,t){return`${e}-trigger-${t}`}function b1(e,t){return`${e}-content-${t}`}const i7=yE,l7=bE,s7=xE,u7=SE;let Fi;const E1="HoverCard",[x1,d7]=le(E1,[Ct]),_E=Ct(),[f7,C1]=x1(E1),PE="HoverCardPortal",[p7,RE]=x1(PE,{forceMount:void 0}),ql="HoverCardContent",kE=i.forwardRef((e,t)=>{const n=RE(ql,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=C1(ql,e.__scopeHoverCard);return i.createElement(se,{present:r||a.open},i.createElement(TE,x({"data-state":a.open?"open":"closed"},o,{onPointerEnter:R(e.onPointerEnter,Af(a.onOpen)),onPointerLeave:R(e.onPointerLeave,Af(a.onClose)),ref:t})))}),TE=i.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,...l}=e,s=C1(ql,n),u=_E(n),f=i.useRef(null),d=z(t,f),[p,g]=i.useState(!1);return i.useEffect(()=>{if(p){const y=document.body;return Fi=y.style.userSelect||y.style.webkitUserSelect,y.style.userSelect="none",y.style.webkitUserSelect="none",()=>{y.style.userSelect=Fi,y.style.webkitUserSelect=Fi}}},[p]),i.useEffect(()=>{if(f.current){const y=()=>{g(!1),s.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var m;((m=document.getSelection())===null||m===void 0?void 0:m.toString())!==""&&(s.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",y),()=>{document.removeEventListener("pointerup",y),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!1}}},[s.isPointerDownOnContentRef,s.hasSelectionRef]),i.useEffect(()=>{f.current&&ME(f.current).forEach(m=>m.setAttribute("tabindex","-1"))}),i.createElement(Vn,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:c,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:R(a,y=>{y.preventDefault()}),onDismiss:s.onDismiss},i.createElement(Ho,x({},u,l,{onPointerDown:R(l.onPointerDown,y=>{y.currentTarget.contains(y.target)&&g(!0),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!0}),ref:d,style:{...l.style,userSelect:p?"text":void 0,WebkitUserSelect:p?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))});function Af(e){return t=>t.pointerType==="touch"?void 0:e()}function ME(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}const v7=kE,S1="Progress",qc=100,[DE,m7]=le(S1),[OE,IE]=DE(S1),_1=i.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:a=LE,...c}=e,l=Jl(o)?o:qc,s=R1(r,l)?r:null,u=mc(s)?a(s,l):void 0;return i.createElement(OE,{scope:n,value:s,max:l},i.createElement(A.div,x({"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":mc(s)?s:void 0,"aria-valuetext":u,role:"progressbar","data-state":P1(s,l),"data-value":s??void 0,"data-max":l},c,{ref:t})))});_1.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!Jl(r)?new Error(FE(o,n)):null},value(e,t,n){const r=e[t],o=String(r),a=Jl(e.max)?e.max:qc;return r!=null&&!R1(r,a)?new Error(zE(o,n)):null}};const AE="ProgressIndicator",NE=i.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...o}=e,a=IE(AE,r);return i.createElement(A.div,x({"data-state":P1(a.value,a.max),"data-value":(n=a.value)!==null&&n!==void 0?n:void 0,"data-max":a.max},o,{ref:t}))});function LE(e,t){return`${Math.round(e/t*100)}%`}function P1(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function mc(e){return typeof e=="number"}function Jl(e){return mc(e)&&!isNaN(e)&&e>0}function R1(e,t){return mc(e)&&!isNaN(e)&&e<=t&&e>=0}function FE(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${qc}\`.`}function zE(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or ${qc} if no \`max\` prop is set) - \`null\` if the progress is indeterminate. -Defaulting to \`null\`.`}const v7=_1,m7=A5;export{z5 as $,Cx as A,Sx as B,ax as C,ix as D,_x as E,ox as F,Rx as G,kx as H,Px as I,Mx as J,Dx as K,Ix as L,Ax as M,Nx as N,Bx as O,Ux as P,nx as Q,Hx as R,Wx as S,Kx as T,jx as U,Gx as V,Xx as W,Yx as X,Qx as Y,eC as Z,tC as _,$n as a,qx as a0,Jx as a1,dE as a2,fE as a3,C0 as a4,cx as a5,pE as a6,vE as a7,uE as a8,rC as a9,VC as aA,BC as aB,UC as aC,HC as aD,zC as aE,GC as aF,YC as aG,XC as aH,KC as aI,jC as aJ,qC as aK,JC as aL,n7 as aM,r7 as aN,e7 as aO,t7 as aP,ZC as aQ,c7 as aR,i7 as aS,l7 as aT,a7 as aU,f7 as aV,v7 as aW,m7 as aX,W as aY,lx as aZ,Nf as aa,aC as ab,cC as ac,iC as ad,lC as ae,sx as af,uC as ag,dC as ah,fC as ai,pC as aj,mC as ak,hC as al,$C as am,xC as an,_C as ao,PC as ap,NC as aq,LC as ar,RC as as,kC as at,MC as au,DC as av,IC as aw,OC as ax,TC as ay,AC as az,un as b,ex as c,tx as d,j5 as e,G5 as f,X5 as g,Q5 as h,q5 as i,rx as j,Z5 as k,Y5 as l,J5 as m,W5 as n,K5 as o,wx as p,bx as q,i as r,fx as s,px as t,mx as u,hx as v,gx as w,$x as x,vx as y,yx as z}; +Defaulting to \`null\`.`}const h7=_1,g7=NE;export{VE as $,_8 as A,P8 as B,c8 as C,l8 as D,R8 as E,a8 as F,T8 as G,M8 as H,k8 as I,O8 as J,I8 as K,N8 as L,L8 as M,F8 as N,H8 as O,W8 as P,r8 as Q,K8 as R,j8 as S,G8 as T,Y8 as U,X8 as V,Z8 as W,Q8 as X,q8 as Y,nx as Z,rx as _,$n as a,s8 as a$,ex as a0,tx as a1,f5 as a2,p5 as a3,C0 as a4,i8 as a5,v5 as a6,m5 as a7,d5 as a8,ax as a9,Ux as aA,Hx as aB,Wx as aC,Kx as aD,Bx as aE,Xx as aF,Qx as aG,Zx as aH,Gx as aI,Yx as aJ,e7 as aK,t7 as aL,o7 as aM,a7 as aN,n7 as aO,r7 as aP,Jx as aQ,l7 as aR,s7 as aS,u7 as aT,i7 as aU,v7 as aV,h7 as aW,g7 as aX,W as aY,Kf as aZ,u8 as a_,Nf as aa,ix as ab,lx as ac,sx as ad,ux as ae,d8 as af,fx as ag,px as ah,vx as ai,mx as aj,gx as ak,$x as al,yx as am,Sx as an,Rx as ao,kx as ap,Fx as aq,zx as ar,Tx as as,Mx as at,Ox as au,Ix as av,Nx as aw,Ax as ax,Dx as ay,Lx as az,dn as b,t8 as c,n8 as d,GE as e,YE as f,QE as g,ZE as h,JE as i,o8 as j,qE as k,XE as l,e8 as m,KE as n,jE as o,E8 as p,x8 as q,i as r,v8 as s,m8 as t,g8 as u,$8 as v,w8 as w,y8 as x,h8 as y,b8 as z}; diff --git a/index.html b/index.html index db89806..ffb8066 100644 --- a/index.html +++ b/index.html @@ -5,9 +5,9 @@ sharcd-ui - - - + + +