diff --git a/assets/index-bf9e5d94.js b/assets/index-bf9e5d94.js deleted file mode 100644 index f1cc2c5..0000000 --- a/assets/index-bf9e5d94.js +++ /dev/null @@ -1,2 +0,0 @@ -import{t as ba,k as ga,r as o,m as e,n as g,L as l,p as M,q as B,v as ha,C as Na,w as ya,x as O,y as wa,z as F,I as va,A as ja,B as $a,R as Ca}from"./vendor-96015797.js";import{d as V,e as Ra,f as E,C as D,g as P,h as H,i as S,j as z,k as G,l as U,m as u,n as _,D as T,o as q,p as J,q as K,r as Q,s as W,t as Z,u as ka,v as X,w as Y,x as ee,y as ae,z as te,A as se,B as oe,E as ne,F as re,G as de,H as ie,I as le,J as ce,K as fe,L as me,M as Aa,N as pe,O as ue,P as Ma,Q as xe,R as Da,S as Sa,T as za,U as be,V as Ta,W as ge,X as he,Y as Ia,Z as La,_ as Ne,a0 as Fa,a1 as ye,a2 as v,a3 as j,a4 as we,a5 as ve,a6 as $,a7 as C,a8 as I,a9 as Ba,aa as Oa,ab as je,ac as Va,ad as Ea,ae as Pa,af as $e,ag as Ha,ah as Ce,ai as Re,aj as ke,ak as Ae,al as Me,am as De,an as Ga,ao as Se,ap as ze,aq as Te,ar as Ie,as as Le,at as Fe,au as Be,av as Ua,aw as _a,ax as Oe,ay as Ve,az as Ee,aA as qa,aB as Ja,aC as Pe,aD as Ka,aE as He,aF as Ge,aG as Ue,aH as _e,aI as qe,aJ as Je,aK as Qa,aL as Ke,aM as Qe,aN as We,aO as Ze,aP as Xe,aQ as Wa}from"./radix-ui-723067b7.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const i of d)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function s(d){const i={};return d.integrity&&(i.integrity=d.integrity),d.referrerPolicy&&(i.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?i.credentials="include":d.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(d){if(d.ep)return;d.ep=!0;const i=s(d);fetch(d.href,i)}})();function h(...a){return a.filter(Boolean).join(" ")}function n(...a){return ba(ga(a))}function Za(a,{asArrayBuffer:t}){return new Promise((s,r)=>{const d=new FileReader;d.onload=()=>s(d.result),d.onerror=()=>r(new Error("Failed to load file")),t?d.readAsArrayBuffer(a):d.readAsDataURL(a)})}function Ye(a){const t=window.document.documentElement;if(t.classList.remove("light","dark"),a==="system"){const s=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";t.classList.add(s);return}t.classList.add(a)}const Xa="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",Ya=g(Xa),k=o.forwardRef(({className:a,...t},s)=>e.jsx(V,{ref:s,className:n(Ya(),a),...t}));k.displayName=V.displayName;const et="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",A=o.forwardRef(({className:a,type:t,...s},r)=>e.jsx("input",{type:t,className:n(et,a),ref:r,...s}));A.displayName="Input";const at="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",tt=o.forwardRef(({className:a,...t},s)=>e.jsx("textarea",{className:n(at,a),ref:s,...t}));tt.displayName="Textarea";const st="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",L=g(st,{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"}}),p=o.forwardRef(({className:a,variant:t,size:s,asChild:r=!1,...d},i)=>{const c=r?Ra:"button";return e.jsx(c,{className:n(L({variant:t,size:s,className:a})),ref:i,...d})});p.displayName="Button";const ot=K,nt=Q,rt="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",dt=o.forwardRef(({className:a,inset:t,children:s,...r},d)=>e.jsxs(E,{ref:d,className:n(rt,t&&"pl-8",a),...r,children:[s,e.jsx(D,{className:"ml-auto h-4 w-4"})]}));dt.displayName=E.displayName;const it="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 overflow-hidden border rounded-md shadow-lg",lt=o.forwardRef(({className:a,...t},s)=>e.jsx(P,{ref:s,className:n(it,a),...t}));lt.displayName=P.displayName;const ct="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 overflow-hidden border rounded-md shadow-md",ea=o.forwardRef(({className:a,sideOffset:t=4,...s},r)=>e.jsx(H,{children:e.jsx(S,{ref:r,className:n(ct,a),sideOffset:t,...s})}));ea.displayName=S.displayName;const ft="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",aa=o.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(z,{ref:r,className:n(ft,t&&"pl-8",a),...s}));aa.displayName=z.displayName;const mt="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",pt=o.forwardRef(({className:a,children:t,checked:s,...r},d)=>e.jsxs(G,{ref:d,className:n(mt,a),checked:s,...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(U,{children:e.jsx(u,{className:"h-4 w-4"})})}),t]}));pt.displayName=G.displayName;const ut="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",xt=o.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(_,{ref:r,className:n(ut,a),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(U,{children:e.jsx(T,{className:"h-4 w-4 fill-current"})})}),t]}));xt.displayName=_.displayName;const bt=o.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(q,{ref:r,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...s}));bt.displayName=q.displayName;const gt=o.forwardRef(({className:a,...t},s)=>e.jsx(J,{ref:s,className:n("-mx-1 my-1 h-px bg-muted",a),...t}));gt.displayName=J.displayName;const ht="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",Nt=o.forwardRef(({className:a,inset:t,children:s,...r},d)=>e.jsxs(W,{ref:d,className:n(ht,t&&"pl-8",a),...r,children:[s,e.jsx(D,{className:"ml-auto h-4 w-4"})]}));Nt.displayName=W.displayName;const yt="z-50 p-1 min-w-[8rem] 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 overflow-hidden border rounded-md shadow-lg",wt=o.forwardRef(({className:a,...t},s)=>e.jsx(Z,{ref:s,className:n(yt,a),...t}));wt.displayName=Z.displayName;const vt="z-50 p-1 min-w-[8rem] 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 overflow-hidden border rounded-md shadow-md",jt=o.forwardRef(({className:a,...t},s)=>e.jsx(ka,{children:e.jsx(X,{ref:s,className:n(vt,a),...t})}));jt.displayName=X.displayName;const $t="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",Ct=o.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(Y,{ref:r,className:n($t,t&&"pl-8",a),...s}));Ct.displayName=Y.displayName;const ta="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",Rt=o.forwardRef(({className:a,children:t,checked:s,...r},d)=>e.jsxs(ee,{ref:d,className:n(ta,a),checked:s,...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(ae,{children:e.jsx(u,{className:"h-4 w-4"})})}),t]}));Rt.displayName=ee.displayName;const kt=o.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(te,{ref:r,className:n(ta,a),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(ae,{children:e.jsx(T,{className:"h-4 w-4 fill-current"})})}),t]}));kt.displayName=te.displayName;const At=o.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(se,{ref:r,className:n("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",a),...s}));At.displayName=se.displayName;const Mt=o.forwardRef(({className:a,...t},s)=>e.jsx(oe,{ref:s,className:n("-mx-1 my-1 h-px bg-border",a),...t}));Mt.displayName=oe.displayName;const Dt="z-10 relative max-w-max flex-1 flex items-center justify-center",St=o.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(ne,{ref:r,className:n(Dt,a),...s,children:[t,e.jsx(sa,{})]}));St.displayName=ne.displayName;const zt="group flex-1list-none flex items-center justify-center space-x-1",Tt=o.forwardRef(({className:a,...t},s)=>e.jsx(re,{ref:s,className:n(zt,a),...t}));Tt.displayName=re.displayName;const It="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",Lt=g(It),Ft="relative ml-1 top-[1px] w-3 h-3 group-data-[state=open]:rotate-180 transition duration-300 ",Bt=o.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(de,{ref:r,className:n(Lt(),"group",a),...s,children:[t," ",e.jsx(ie,{className:Ft,"aria-hidden":"true"})]}));Bt.displayName=de.displayName;const Ot="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",Vt=o.forwardRef(({className:a,...t},s)=>e.jsx(le,{ref:s,className:n(Ot,a),...t}));Vt.displayName=le.displayName;const Et="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",sa=o.forwardRef(({className:a,...t},s)=>e.jsx("div",{className:n("absolute left-0 top-full flex justify-center"),children:e.jsx(ce,{ref:s,className:n(Et,a),...t})}));sa.displayName=ce.displayName;const Pt="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",Ht=o.forwardRef(({className:a,...t},s)=>e.jsx(fe,{ref:s,className:n(Pt,a),...t,children:e.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Ht.displayName=fe.displayName;const Gt="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",Ut=o.forwardRef(({className:a,...t},s)=>e.jsx(me,{ref:s,className:n(Gt,a),...t,children:e.jsx(Aa,{className:n("flex items-center justify-center text-current"),children:e.jsx(u,{className:"h-4 w-4"})})}));Ut.displayName=me.displayName;const _t=o.forwardRef(({className:a,...t},s)=>e.jsx(pe,{className:n("grid gap-2",a),...t,ref:s}));_t.displayName=pe.displayName;const qt="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",Jt=o.forwardRef(({className:a,children:t,...s},r)=>e.jsx(ue,{ref:r,className:n(qt,a),...s,children:e.jsx(Ma,{className:"flex items-center justify-center",children:e.jsx(u,{className:"h-3.5 w-3.5 fill-primary"})})}));Jt.displayName=ue.displayName;const Kt="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",Qt=o.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(xe,{ref:r,className:n(Kt,a),...s,children:[t,e.jsx(Da,{asChild:!0,children:e.jsx(Sa,{className:"h-4 w-4 opacity-50"})})]}));Qt.displayName=xe.displayName;const Wt="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",Zt="data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",Xt="w-full h-[var(--radix-select-trigger-height)] min-w-[var(--radix-select-trigger-width)]",Yt=o.forwardRef(({className:a,children:t,position:s="popper",...r},d)=>e.jsx(za,{children:e.jsx(be,{ref:d,className:n(Wt,s==="popper"&&Zt,a),position:s,...r,children:e.jsx(Ta,{className:n("p-1",s==="popper"&&Xt),children:t})})}));Yt.displayName=be.displayName;const es=o.forwardRef(({className:a,...t},s)=>e.jsx(ge,{ref:s,className:n("px-2 py-1.5 text-sm font-semibold",a),...t}));es.displayName=ge.displayName;const as="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",ts=o.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(he,{ref:r,className:n(as,a),...s,children:[e.jsx("span",{className:"absolute right-2 h-3.5 w-3.5 flex items-center justify-center",children:e.jsx(Ia,{children:e.jsx(u,{className:"h-4 w-4"})})}),e.jsx(La,{children:t})]}));ts.displayName=he.displayName;const ss=o.forwardRef(({className:a,...t},s)=>e.jsx(Ne,{ref:s,className:n("-mx-1 my-1 h-px bg-muted",a),...t}));ss.displayName=Ne.displayName;const os="p-4 w-72 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 outline-none border rounded-md shadow-md",ns=o.forwardRef(({className:a,align:t="center",sideOffset:s=4,...r},d)=>e.jsx(Fa,{children:e.jsx(ye,{ref:d,align:t,sideOffset:s,className:n(os,a),...r})}));ns.displayName=ye.displayName;const rs=Ba,ds=I,is="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",oa=o.forwardRef(({className:a,...t},s)=>e.jsx(v,{ref:s,className:n(is,a),...t}));oa.displayName=v.displayName;const ls="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",cs="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",na=o.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(ds,{children:[e.jsx(oa,{}),e.jsxs(j,{ref:r,className:n(ls,a),...s,children:[t,e.jsxs(we,{className:cs,children:[e.jsx(ve,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));na.displayName=j.displayName;const ra=({className:a,...t})=>e.jsx("div",{className:n("text-center sm:text-left flex flex-col space-y-1.5",a),...t});ra.displayName="DialogHeader";const da=({className:a,...t})=>e.jsx("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});da.displayName="DialogFooter";const ia=o.forwardRef(({className:a,...t},s)=>e.jsx($,{ref:s,className:n("text-lg font-semibold leading-none tracking-tight",a),...t}));ia.displayName=$.displayName;const la=o.forwardRef(({className:a,...t},s)=>e.jsx(C,{ref:s,className:n("text-sm text-muted-foreground",a),...t}));la.displayName=C.displayName;const fs="w-full h-full text-popover-foreground bg-popover overflow-hidden rounded-md flex flex-col",ms=o.forwardRef(({className:a,...t},s)=>e.jsx(l,{ref:s,className:n(fs,a),...t}));ms.displayName=l.displayName;const ps="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",us=o.forwardRef(({className:a,...t},s)=>e.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsx(Oa,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsx(l.Input,{ref:s,className:n(ps,a),...t})]}));us.displayName=l.Input.displayName;const xs=o.forwardRef(({className:a,...t},s)=>e.jsx(l.List,{ref:s,className:n("max-h-[300px] overflow-y-auto overflow-x-hidden",a),...t}));xs.displayName=l.List.displayName;const bs=o.forwardRef((a,t)=>e.jsx(l.Empty,{ref:t,className:"py-6 text-sm text-center",...a}));bs.displayName=l.Empty.displayName;const gs="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 ",hs=o.forwardRef(({className:a,...t},s)=>e.jsx(l.Group,{ref:s,className:n(gs,a),...t}));hs.displayName=l.Group.displayName;const Ns=o.forwardRef(({className:a,...t},s)=>e.jsx(l.Separator,{ref:s,className:n("-mx-1 h-px bg-border",a),...t}));Ns.displayName=l.Separator.displayName;const ys="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",ws=o.forwardRef(({className:a,...t},s)=>e.jsx(l.Item,{ref:s,className:n(ys,a),...t}));ws.displayName=l.Item.displayName;const vs="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",js=o.forwardRef(({className:a,...t},s)=>e.jsxs(je,{ref:s,className:n("relative w-full touch-none select-none flex items-center",a),...t,children:[e.jsx(Va,{className:"relative w-full h-1.5 bg-primary/20 rounded-full grow overflow-hidden",children:e.jsx(Ea,{className:"absolute h-full bg-primary"})}),e.jsx(Pa,{className:vs})]}));js.displayName=je.displayName;const $s="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",Cs="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",Rs=o.forwardRef(({className:a,...t},s)=>e.jsx($e,{ref:s,className:n($s,a),...t,children:e.jsx(Ha,{className:n(Cs)})}));Rs.displayName=$e.displayName;const ks="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",As=g(ks,{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"}}),Ms=o.forwardRef(({className:a,variant:t,size:s,...r},d)=>e.jsx(Ce,{ref:d,className:n(As({variant:t,size:s,className:a})),...r}));Ms.displayName=Ce.displayName;const Ds="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",Ss=o.forwardRef(({className:a,sideOffset:t=4,...s},r)=>e.jsx(Re,{ref:r,sideOffset:t,className:n(Ds,a),...s}));Ss.displayName=Re.displayName;const zs="p-1 h-9 bg-background border rounded-md shadow-sm flex items-center space-x-1",Ts=o.forwardRef(({className:a,...t},s)=>e.jsx(ke,{ref:s,className:n(zs,a),...t}));Ts.displayName=ke.displayName;const Is="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",Ls=o.forwardRef(({className:a,...t},s)=>e.jsx(Ae,{ref:s,className:n(Is,a),...t}));Ls.displayName=Ae.displayName;const Fs="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",Bs=o.forwardRef(({className:a,inset:t,children:s,...r},d)=>e.jsxs(Me,{ref:d,className:n(Fs,t&&"pl-8",a),...r,children:[s,e.jsx(D,{className:"ml-auto h-4 w-4"})]}));Bs.displayName=Me.displayName;const Os="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",Vs=o.forwardRef(({className:a,...t},s)=>e.jsx(De,{ref:s,className:n(Os,a),...t}));Vs.displayName=De.displayName;const Es="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",Ps=o.forwardRef(({className:a,align:t="start",alignOffset:s=-4,sideOffset:r=8,...d},i)=>e.jsx(Ga,{children:e.jsx(Se,{ref:i,align:t,alignOffset:s,sideOffset:r,className:n(Es,a),...d})}));Ps.displayName=Se.displayName;const Hs="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",Gs=o.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(ze,{ref:r,className:n(Hs,t&&"pl-8",a),...s}));Gs.displayName=ze.displayName;const ca="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",Us=o.forwardRef(({className:a,children:t,checked:s,...r},d)=>e.jsxs(Te,{ref:d,className:n(ca,a),checked:s,...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Ie,{children:e.jsx(u,{className:"h-4 w-4"})})}),t]}));Us.displayName=Te.displayName;const _s=o.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(Le,{ref:r,className:n(ca,a),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Ie,{children:e.jsx(T,{className:"h-4 w-4 fill-current"})})}),t]}));_s.displayName=Le.displayName;const qs=o.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(Fe,{ref:r,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...s}));qs.displayName=Fe.displayName;const Js=o.forwardRef(({className:a,...t},s)=>e.jsx(Be,{ref:s,className:n("-mx-1 my-1 h-px bg-muted",a),...t}));Js.displayName=Be.displayName;const Ks=o.forwardRef(({className:a,...t},s)=>e.jsx(Ua,{ref:s,className:n("border-b",a),...t}));Ks.displayName="AccordionItem";const Qs="flex-1 py-4 text-sm font-medium hover:underline [&[data-state=open]>svg]:rotate-180 transition-all flex items-center justify-between",Ws=o.forwardRef(({className:a,children:t,...s},r)=>e.jsx(_a,{className:"flex",children:e.jsxs(Oe,{ref:r,className:n(Qs,a),...s,children:[t,e.jsx(ie,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Ws.displayName=Oe.displayName;const Zs="text-sm overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",Xs=o.forwardRef(({className:a,children:t,...s},r)=>e.jsx(Ve,{ref:r,className:n(Zs,a),...s,children:e.jsx("div",{className:"pb-4 pt-0",children:t})}));Xs.displayName=Ve.displayName;const Ys=o.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(Ee,{ref:r,className:n("relative overflow-hidden",a),...s,children:[e.jsx(qa,{className:"h-full w-full rounded-[inherit]",children:t}),e.jsx(fa,{}),e.jsx(Ja,{})]}));Ys.displayName=Ee.displayName;const fa=o.forwardRef(({className:a,orientation:t="vertical",...s},r)=>e.jsx(Pe,{ref:r,orientation:t,className:n("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]",a),...s,children:e.jsx(Ka,{className:n("relative rounded-full bg-border",t==="vertical"&&"flex-1")})}));fa.displayName=Pe.displayName;const eo=Qa,ao="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",ma=o.forwardRef(({className:a,...t},s)=>e.jsx(He,{ref:s,className:n(ao,a),...t}));ma.displayName=He.displayName;const to="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",so=o.forwardRef(({className:a,...t},s)=>e.jsxs(eo,{children:[e.jsx(ma,{}),e.jsx(Ge,{ref:s,className:n(to,a),...t})]}));so.displayName=Ge.displayName;const oo=o.forwardRef(({className:a,...t},s)=>e.jsx(Ue,{ref:s,className:n("text-lg font-semibold",a),...t}));oo.displayName=Ue.displayName;const no=o.forwardRef(({className:a,...t},s)=>e.jsx(_e,{ref:s,className:n("text-sm text-muted-foreground",a),...t}));no.displayName=_e.displayName;const ro=o.forwardRef(({className:a,...t},s)=>e.jsx(qe,{ref:s,className:n(L(),a),...t}));ro.displayName=qe.displayName;const io=o.forwardRef(({className:a,...t},s)=>e.jsx(Je,{ref:s,className:n(L({variant:"outline"}),"mt-2 sm:mt-0",a),...t}));io.displayName=Je.displayName;const pa=I;pa.displayName=I.displayName;const lo="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",ua=o.forwardRef(({className:a,...t},s)=>e.jsx(v,{ref:s,className:n(lo,a),...t}));ua.displayName=v.displayName;const co="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",fo="inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",mo="inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",po="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",uo="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",xo=g(co,{variants:{side:{top:fo,bottom:mo,left:po,right:uo}},defaultVariants:{side:"right"}}),bo="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",go=o.forwardRef(({side:a="right",className:t,children:s,...r},d)=>e.jsxs(pa,{children:[e.jsx(ua,{}),e.jsxs(j,{ref:d,className:n(xo({side:a}),t),...r,children:[s,e.jsxs(we,{className:bo,children:[e.jsx(ve,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));go.displayName=j.displayName;const ho=o.forwardRef(({className:a,...t},s)=>e.jsx($,{ref:s,className:n("text-lg font-semibold text-foreground",a),...t}));ho.displayName=$.displayName;const No=o.forwardRef(({className:a,...t},s)=>e.jsx(C,{ref:s,className:n("text-sm text-muted-foreground",a),...t}));No.displayName=C.displayName;const yo=o.forwardRef(({className:a,...t},s)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:s,className:n("w-full caption-bottom text-sm",a),...t})}));yo.displayName="Table";const wo=o.forwardRef(({className:a,...t},s)=>e.jsx("thead",{ref:s,className:n("[&_tr]:border-b",a),...t}));wo.displayName="TableHeader";const vo=o.forwardRef(({className:a,...t},s)=>e.jsx("tbody",{ref:s,className:n("[&_tr:last-child]:border-0",a),...t}));vo.displayName="TableBody";const jo=o.forwardRef(({className:a,...t},s)=>e.jsx("tfoot",{ref:s,className:n("text-primary-foreground bg-primary font-medium",a),...t}));jo.displayName="TableFooter";const $o=o.forwardRef(({className:a,...t},s)=>e.jsx("tr",{ref:s,className:n("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...t}));$o.displayName="TableRow";const Co=o.forwardRef(({className:a,...t},s)=>e.jsx("th",{ref:s,className:n("h-10 px-2 text-left font-medium align-middle text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...t}));Co.displayName="TableHead";const Ro=o.forwardRef(({className:a,...t},s)=>e.jsx("td",{ref:s,className:n("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...t}));Ro.displayName="TableCell";const ko=o.forwardRef(({className:a,...t},s)=>e.jsx("caption",{ref:s,className:n("mt-4 text-sm text-muted-foreground",a),...t}));ko.displayName="TableCaption";const Ao="p-1 h-9 text-muted-foreground bg-muted rounded-lg inline-flex items-center justify-center",Mo=o.forwardRef(({className:a,...t},s)=>e.jsx(Ke,{ref:s,className:n(Ao,a),...t}));Mo.displayName=Ke.displayName;const Do="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",So=o.forwardRef(({className:a,...t},s)=>e.jsx(Qe,{ref:s,className:n(Do,a),...t}));So.displayName=Qe.displayName;const zo="mt-2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none ring-offset-background",To=o.forwardRef(({className:a,...t},s)=>e.jsx(We,{ref:s,className:n(zo,a),...t}));To.displayName=We.displayName;const Io="z-50 p-4 w-64 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 outline-none",Lo=o.forwardRef(({className:a,align:t="center",sideOffset:s=4,...r},d)=>e.jsx(Ze,{ref:d,align:t,sideOffset:s,className:n(Io,a),...r}));Lo.displayName=Ze.displayName;const Fo=o.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:n("rounded-xl border bg-card text-card-foreground shadow",a),...t}));Fo.displayName="Card";const Bo=o.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:n("flex flex-col space-y-1.5 p-6",a),...t}));Bo.displayName="CardHeader";const Oo=o.forwardRef(({className:a,...t},s)=>e.jsx("h3",{ref:s,className:n("font-semibold leading-none tracking-tight",a),...t}));Oo.displayName="CardTitle";const Vo=o.forwardRef(({className:a,...t},s)=>e.jsx("p",{ref:s,className:n("text-sm text-muted-foreground",a),...t}));Vo.displayName="CardDescription";const Eo=o.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:n("p-6 pt-0",a),...t}));Eo.displayName="CardContent";const Po=o.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:n("flex items-center p-6 pt-0",a),...t}));Po.displayName="CardFooter";const Ho=o.forwardRef(({className:a,value:t,...s},r)=>e.jsx(Xe,{ref:r,className:n("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",a),...s,children:e.jsx(Wa,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Ho.displayName=Xe.displayName;const Go={theme:"system",setTheme:()=>null};o.createContext(Go);const Uo={theme:"light"},xa="webfont-tools-app-settings",m=M(_o());function _o(){const a=localStorage.getItem(xa);if(a)try{return JSON.parse(a)}catch{}return Uo}Ye(m.theme);B(m,()=>{Ye(m.theme),localStorage.setItem(xa,JSON.stringify(m))});function qo({className:a,title:t,...s}){return e.jsxs("svg",{className:h("fill-none stroke-[1.5] stroke-current",a),viewBox:"0 0 24 24",...s,children:[t&&e.jsx("title",{children:t}),e.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 Jo({className:a,title:t,...s}){return e.jsxs("svg",{className:h("fill-none stroke-[1.5] stroke-current",a),viewBox:"0 0 24 24",...s,children:[t&&e.jsx("title",{children:t}),e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})]})}function Ko({className:a,title:t,...s}){return e.jsxs("svg",{className:h("fill-none stroke-[1.5] stroke-current",a),viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...s,children:[t&&e.jsx("title",{children:t}),e.jsx("path",{d:"M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4"}),e.jsx("path",{d:"M12 2v2"}),e.jsx("path",{d:"M12 20v2"}),e.jsx("path",{d:"m4.9 4.9 1.4 1.4"}),e.jsx("path",{d:"m17.7 17.7 1.4 1.4"}),e.jsx("path",{d:"M2 12h2"}),e.jsx("path",{d:"M20 12h2"}),e.jsx("path",{d:"m6.3 17.7-1.4 1.4"}),e.jsx("path",{d:"m19.1 4.9-1.4 1.4"})]})}function Qo({title:a,...t}){return e.jsxs("svg",{viewBox:"0 0 21 21",strokeLinecap:"round",fill:"none",stroke:"currentColor",strokeWidth:1.2,...t,children:[a&&e.jsx("title",{children:a}),e.jsx("path",{d:"M4.5 6.5h12"}),e.jsx("path",{d:"M4.498 10.5h11.997"}),e.jsx("path",{d:"M4.5 14.5h11.995"})]})}function Wo({title:a,...t}){return e.jsxs("svg",{viewBox:"0 0 422 422",strokeLinecap:"round",fill:"none",stroke:"currentColor",strokeWidth:1.2,...t,children:[a&&e.jsx("title",{children:a}),e.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 R({label:a,theme:t,current:s}){return e.jsxs(aa,{className:"grid grid-cols-[16px,1fr] items-center gap-x-2",onClick:()=>m.theme=t,children:[s===t&&e.jsx(ya,{className:"w-4 h-4"}),e.jsx("div",{className:"col-start-2",children:a})]})}function Zo(){const{theme:a}=ha(m),t=a==="dark",s=a==="system",r=!t&&!s;return e.jsxs("div",{className:"focus-within:ring-1 focus-within:ring-ring rounded-md flex items-center",children:[e.jsxs(p,{variant:"ghost",size:"sm",tabIndex:-1,className:"py-0 border-y border-l border-input rounded-r-none",onClick:()=>m.theme=m.theme==="dark"?"light":"dark",children:[s&&e.jsx(Ko,{className:"w-4 h-4"}),r&&e.jsx(qo,{className:"w-4 h-4"}),t&&e.jsx(Jo,{className:"w-4 h-4 p-0.5"})]}),e.jsxs(ot,{children:[e.jsx(nt,{asChild:!0,children:e.jsx(p,{variant:"ghost",size:"sm",className:"px-1 py-0 border border-input rounded-l-none focus-visible:ring-0",onClick:()=>m.theme="system",children:e.jsx(Na,{className:"w-3 h-3"})})}),e.jsxs(ea,{align:"end",children:[e.jsx(R,{label:"Light",theme:"light",current:a}),e.jsx(R,{label:"Dark",theme:"dark",current:a}),e.jsx(R,{label:"System",theme:"system",current:a})]})]})]})}function Xo(){return e.jsxs("div",{className:"px-2 py-3 flex items-center justify-between bg-primary-foreground",children:[e.jsxs("div",{className:"flex items-center gap-x-1",children:[e.jsx("div",{className:"ml-2 pt-1.5",children:e.jsx(Wo,{className:"w-7 h-7 stroke-none fill-slate-600 -rotate-90"})}),e.jsx("div",{className:"text-2xl font-extralight tracking-tighter text-blue-600",children:"shradcn"}),e.jsx("div",{className:"text-2xl font-extralight tracking-tighter text-slate-600",children:"components template"})]}),e.jsx("div",{className:"flex items-center justify-end gap-x-1",children:e.jsx(Zo,{})})]})}const Yo=" p-1 bg-background radix-side-top:animate-slide-up radix-side-bottom:animate-slide-down rounded-md shadow-md ",en=" px-2 py-2 text-xs focus:bg-accent focus:text-accent-foreground outline-none rounded-md select-none cursor-default flex items-center ",an=({trigger:a,onCommand:t,items:s,containerClasses:r,menuContentProps:d})=>e.jsx("div",{className:"relative inline-block text-left",children:e.jsxs(K,{children:[e.jsx(Q,{asChild:!0,children:a}),e.jsx(H,{children:e.jsx(S,{align:"end",...d,className:h(Yo,r),children:s.map(({id:i,label:c,icon:N,shortcut:x},b)=>e.jsxs(z,{className:en,onClick:()=>t(i),children:[N,e.jsx("span",{className:"flex-grow",children:c}),x&&e.jsx("span",{className:"text-xs",children:x})]},i))})})]})}),tn=[{id:"new-file",label:"New File"},{id:"open-settings",label:"Settings"}],sn="w-20";function on(){function a(t){switch(t){case"new-file":console.log(t);break;case"open-settings":console.log(t);break}}return e.jsxs("div",{className:"py-1 select-none flex items-center justify-between",children:[e.jsx("div",{className:"self-end",children:"Demo app"}),e.jsx("div",{className:"",children:e.jsx(an,{trigger:e.jsx(p,{variant:"outline",size:"sm",className:"px-2",children:e.jsx(Qo,{className:"w-4 h-4"})}),items:tn,containerClasses:sn,menuContentProps:{sideOffset:1},onCommand:a})})]})}function nn(){const[a,t]=o.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsx(p,{variant:"outline",onClick:()=>t(!0),children:"Demo dialog"}),e.jsx(rs,{open:a,onOpenChange:()=>t(!1),children:e.jsxs(na,{className:"sm:max-w-[425px]",children:[e.jsxs(ra,{children:[e.jsx(ia,{children:"Demo dialog"}),e.jsx(la,{children:"Make changes to your profile here. Click save when you're done."})]}),e.jsxs("div",{className:"grid gap-4 py-4",children:[e.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[e.jsx(k,{htmlFor:"name",className:"text-right",children:"Name"}),e.jsx(A,{id:"name",className:"col-span-3",value:"Pedro Duarte",onChange:s=>{}})]}),e.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[e.jsx(k,{htmlFor:"username",className:"text-right",children:"Username"}),e.jsx(A,{id:"username",className:"col-span-3",value:"@peduarte",onChange:s=>{}})]})]}),e.jsx(da,{children:e.jsx(p,{type:"submit",onClick:()=>t(!1),children:"Save changes"})})]})})]})}function rn(){return e.jsx("div",{className:"",children:e.jsx(on,{})})}function dn(){return e.jsxs("div",{className:"flex flex-col space-y-2",children:[e.jsx(rn,{}),e.jsx(p,{variant:"outline",children:"OK"}),e.jsx(nn,{})]})}function ln(){return e.jsx("div",{className:"p-4",children:e.jsx(dn,{})})}function cn(){return e.jsx("div",{className:"py-4 bg-primary-500/20"})}const fn="d09GMgABAAAAAADcAAoAAAAAAggAAACWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk4ALAoUNAE2AiQDCAsGAAQgBSAHIBtvAcieB3aD8wURQ+TZazbRE9HvF5vde4KCYGhiCgq/NKPF0i6UIsZynbP+Xi9Ng+XLbNlmNz/xIBBqq61FIQRJhC/+QA/08PJQJ3sK5TZFMlWzC/iK5GUN40psgqvxwBjBOg6JUSJ7ewyKE2AAaXZrfUB4v+hze37ugJ9d+DeYqiDwVgCawviwVFGnuttkLqIMGivmDg",mn=`data:application/font-woff2;base64,${fn}`,w=M({text:mn}),y=M({fontText:w.text,xmlText:"",glyphs:[]});function pn(){const a=/^\s*data:(?[\w\/\+-]*);?(?(?:charset=[\w-]+)?);?(?base64?),(?[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%]*)\s*$/i;t();function t(){y.dataUri=a.exec(w.text)?.groups}B(w,()=>{y.fontText=w.text,t(),y.isUrl=!1,y.dataUri})}pn();function un(a=""){return/[.]/.exec(a)&&/([^.]+$)/.exec(a)?.[0]||""}const xn=O(null,async(a,t,s)=>{try{if(s.length!==1)throw new Error("Only one file can be dropped");if(un(s[0].name)!=="woff2")throw new Error(`Dropped file "${s[0].name}". -Only .woff2 files are supported`);const d=await Za(s[0],{asArrayBuffer:!1});console.log("files",s),console.log("blob",d)}catch(r){Nn(r?.message||"Failed to load image")}});function bn({doDroppedFilesAtom:a,activeAtom:t}){const s=F(t),r=F(a),d=o.useRef(0);return o.useEffect(()=>{function i(){d.current++||s(!0)}function c(f){f.preventDefault()}function N(){--d.current||s(!1)}function x(f){f.preventDefault(),d.current=0,s(!1),f.dataTransfer&&r(f.dataTransfer.files)}const b=document.addEventListener;return b("dragenter",i),b("dragover",c),b("dragleave",N),b("drop",x),()=>{const f=document.removeEventListener;f("dragenter",i),f("dragover",c),f("dragleave",N),f("drop",x)}},[]),e.jsx(e.Fragment,{})}function gn(){const[a]=o.useState(O(!1)),t=wa(a);return bn({doDroppedFilesAtom:xn,activeAtom:a}),e.jsx(e.Fragment,{children:t&&e.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!"})})}function hn(){return e.jsx("div",{className:"toaser",children:e.jsx(va,{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 Nn=(a,t)=>ja(a,{style:{backgroundColor:"red"},...t}),yn="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";o.forwardRef(({children:a,className:t,...s},r)=>e.jsx("button",{ref:r,className:h("bg-primary border-primary-foreground border rounded select-none",yn,t),...s,children:a}));function wn(){return e.jsxs(e.Fragment,{children:[e.jsx(hn,{}),e.jsxs("div",{className:"min-h-screen grid grid-rows-[auto,1fr,auto]",children:[e.jsx(Xo,{}),e.jsx(ln,{}),e.jsx(cn,{})]}),e.jsx(gn,{})]})}$a.createRoot(document.getElementById("root")).render(e.jsx(Ca.StrictMode,{children:e.jsx(wn,{})})); diff --git a/assets/index-d37037a9.js b/assets/index-d37037a9.js new file mode 100644 index 0000000..5bc332e --- /dev/null +++ b/assets/index-d37037a9.js @@ -0,0 +1,194 @@ +import{r as i,a as Za,$ as Ft,b as Ya,c as Gt,C as ct,d as Wt,e as qt,f as ut,g as ft,h as Kt,i as Ht,j as ue,k as Jt,D as pt,l as Zt,m as Yt,n as Xt,o as Qt,p as er,q as tr,s as Xa,t as rr,u as ar,v as or,w as sr,x as nr,y as ir,z as lr,A as dr,B as cr,E as ur,F as fr,G as pr,H as mr,I as br,J as gr,K as Qa,L as hr,M as xr,N as eo,O as vr,P as to,Q as ro,R as ao,S as yr,T as oo,U as wr,V as Nr,W as so,X as no,Y as $r,Z as io,_ as jr,a0 as Ie,a1 as Te,a2 as Cr,a3 as Sr,a4 as Ve,a5 as Be,a6 as mt,a7 as lo,a8 as Rr,a9 as co,aa as uo,ab as fo,ac as po,ad as mo,ae as Er,af as bo,ag as go,ah as ho,ai as Ar,aj as xo,ak as kr,al as Mr,am as Dr,an as Or,ao as Pr,ap as _r,aq as vo,ar as zr,as as Lr,at as Ir,au as Tr,av as Vr,aw as Br,ax as Ur,ay as yo,az as wo,aA as Fr,aB as Gr,aC as Wr,aD as No,aE as $o,aF as qr,aG as jo,aH as Kr,aI as Hr,aJ as Jr,aK as Zr,aL as Yr,aM as Xr,aN as Co,aO as Qr,aP as ea,aQ as ta,aR as ra,aS as aa,aT as So,aU as Ue}from"./radix-ui-069d8783.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"]'))a(s);new MutationObserver(s=>{for(const n of s)if(n.type==="childList")for(const d of n.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function r(s){const n={};return s.integrity&&(n.integrity=s.integrity),s.referrerPolicy&&(n.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?n.credentials="include":s.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(s){if(s.ep)return;s.ep=!0;const n=r(s);fetch(s.href,n)}})();var oa={exports:{}},Fe={};/** + * @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 Ro=i,Eo=Symbol.for("react.element"),Ao=Symbol.for("react.fragment"),ko=Object.prototype.hasOwnProperty,Mo=Ro.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Do={key:!0,ref:!0,__self:!0,__source:!0};function sa(e,t,r){var a,s={},n=null,d=null;r!==void 0&&(n=""+r),t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(d=t.ref);for(a in t)ko.call(t,a)&&!Do.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)s[a]===void 0&&(s[a]=t[a]);return{$$typeof:Eo,type:e,key:n,ref:d,props:s,_owner:Mo.current}}Fe.Fragment=Ao;Fe.jsx=sa;Fe.jsxs=sa;oa.exports=Fe;var o=oa.exports,Xe={},wt=Za;Xe.createRoot=wt.createRoot,Xe.hydrateRoot=wt.hydrateRoot;function na(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,$t=ia,ye=(e,t)=>r=>{var a;if(t?.variants==null)return $t(e,r?.class,r?.className);const{variants:s,defaultVariants:n}=t,d=Object.keys(s).map(c=>{const p=r?.[c],y=n?.[c];if(p===null)return null;const $=Nt(p)||Nt(y);return s[c][$]}),l=r&&Object.entries(r).reduce((c,p)=>{let[y,$]=p;return $===void 0||(c[y]=$),c},{}),u=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((c,p)=>{let{class:y,className:$,...C}=p;return Object.entries(C).every(k=>{let[S,O]=k;return Array.isArray(O)?O.includes({...n,...l}[S]):{...n,...l}[S]===O})?[...c,y,$]:c},[]);return $t(e,d,u,r?.class,r?.className)};function we(...e){return e.filter(Boolean).join(" ")}function Oo(){for(var e=0,t,r,a="";ee&&(t=0,a=r,r=new Map)}return{get:function(d){var l=r.get(d);if(l!==void 0)return l;if((l=a.get(d))!==void 0)return s(d,l),l},set:function(d,l){r.has(d)?r.set(d,l):s(d,l)}}}var ca="!";function Vo(e){var t=e.separator||":",r=t.length===1,a=t[0],s=t.length;return function(d){for(var l=[],u=0,c=0,p,y=0;yc?p-c:void 0;return{modifiers:l,hasImportantModifier:k,baseClassName:S,maybePostfixModifierPosition:O}}}function Bo(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(a){var s=a[0]==="[";s?(t.push.apply(t,r.sort().concat([a])),r=[]):r.push(a)}),t.push.apply(t,r.sort()),t}function Uo(e){return{cache:To(e.cacheSize),splitModifiers:Vo(e),...Po(e)}}var Fo=/\s+/;function Go(e,t){var r=t.splitModifiers,a=t.getClassGroupId,s=t.getConflictingClassGroupIds,n=new Set;return e.trim().split(Fo).map(function(d){var l=r(d),u=l.modifiers,c=l.hasImportantModifier,p=l.baseClassName,y=l.maybePostfixModifierPosition,$=a(y?p.substring(0,y):p),C=!!y;if(!$){if(!y)return{isTailwindClass:!1,originalClassName:d};if($=a(p),!$)return{isTailwindClass:!1,originalClassName:d};C=!1}var k=Bo(u).join(":"),S=c?k+ca:k;return{isTailwindClass:!0,modifierId:S,classGroupId:$,originalClassName:d,hasPostfixModifier:C}}).reverse().filter(function(d){if(!d.isTailwindClass)return!0;var l=d.modifierId,u=d.classGroupId,c=d.hasPostfixModifier,p=l+u;return n.has(p)?!1:(n.add(p),s(u,c).forEach(function(y){return n.add(l+y)}),!0)}).reverse().map(function(d){return d.originalClassName}).join(" ")}function Wo(){for(var e=arguments.length,t=new Array(e),r=0;r{const s=new FileReader;s.onload=()=>r(s.result),s.onerror=()=>a(new Error("Failed to load file")),t?s.readAsArrayBuffer(e):s.readAsDataURL(e)})}function pa(e){const t=window.document.documentElement;if(t.classList.remove("light","dark"),e==="system"){const r=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";t.classList.add(r);return}t.classList.add(e)}const ls="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",ds=ye(ls),tt=i.forwardRef(({className:e,...t},r)=>o.jsx(Ft,{ref:r,className:m(ds(),e),...t}));tt.displayName=Ft.displayName;const cs="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",rt=i.forwardRef(({className:e,type:t,...r},a)=>o.jsx("input",{type:t,className:m(cs,e),ref:a,...r}));rt.displayName="Input";const us="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",fs=i.forwardRef(({className:e,...t},r)=>o.jsx("textarea",{className:m(us,e),ref:r,...t}));fs.displayName="Textarea";const ps="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",gt=ye(ps,{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"}}),se=i.forwardRef(({className:e,variant:t,size:r,asChild:a=!1,...s},n)=>{const d=a?Ya:"button";return o.jsx(d,{className:m(gt({variant:t,size:r,className:e})),ref:n,...s})});se.displayName="Button";const ms=Xt,bs=Qt,gs="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",hs=i.forwardRef(({className:e,inset:t,children:r,...a},s)=>o.jsxs(Gt,{ref:s,className:m(gs,t&&"pl-8",e),...a,children:[r,o.jsx(ct,{className:"ml-auto h-4 w-4"})]}));hs.displayName=Gt.displayName;const xs="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 overflow-hidden border rounded-md shadow-lg",vs=i.forwardRef(({className:e,...t},r)=>o.jsx(Wt,{ref:r,className:m(xs,e),...t}));vs.displayName=Wt.displayName;const ys="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 overflow-hidden border rounded-md shadow-md",ma=i.forwardRef(({className:e,sideOffset:t=4,...r},a)=>o.jsx(qt,{children:o.jsx(ut,{ref:a,className:m(ys,e),sideOffset:t,...r})}));ma.displayName=ut.displayName;const ws="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",ba=i.forwardRef(({className:e,inset:t,...r},a)=>o.jsx(ft,{ref:a,className:m(ws,t&&"pl-8",e),...r}));ba.displayName=ft.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 transition-colors rounded-sm outline-none select-none cursor-default flex items-center",$s=i.forwardRef(({className:e,children:t,checked:r,...a},s)=>o.jsxs(Kt,{ref:s,className:m(Ns,e),checked:r,...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(Ht,{children:o.jsx(ue,{className:"h-4 w-4"})})}),t]}));$s.displayName=Kt.displayName;const js="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",Cs=i.forwardRef(({className:e,children:t,...r},a)=>o.jsxs(Jt,{ref:a,className:m(js,e),...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(Ht,{children:o.jsx(pt,{className:"h-4 w-4 fill-current"})})}),t]}));Cs.displayName=Jt.displayName;const Ss=i.forwardRef(({className:e,inset:t,...r},a)=>o.jsx(Zt,{ref:a,className:m("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));Ss.displayName=Zt.displayName;const Rs=i.forwardRef(({className:e,...t},r)=>o.jsx(Yt,{ref:r,className:m("-mx-1 my-1 h-px bg-muted",e),...t}));Rs.displayName=Yt.displayName;const Es="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",As=i.forwardRef(({className:e,inset:t,children:r,...a},s)=>o.jsxs(er,{ref:s,className:m(Es,t&&"pl-8",e),...a,children:[r,o.jsx(ct,{className:"ml-auto h-4 w-4"})]}));As.displayName=er.displayName;const ks="z-50 p-1 min-w-[8rem] 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 overflow-hidden border rounded-md shadow-lg",Ms=i.forwardRef(({className:e,...t},r)=>o.jsx(tr,{ref:r,className:m(ks,e),...t}));Ms.displayName=tr.displayName;const Ds="z-50 p-1 min-w-[8rem] 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 overflow-hidden border rounded-md shadow-md",Os=i.forwardRef(({className:e,...t},r)=>o.jsx(Xa,{children:o.jsx(rr,{ref:r,className:m(Ds,e),...t})}));Os.displayName=rr.displayName;const Ps="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",_s=i.forwardRef(({className:e,inset:t,...r},a)=>o.jsx(ar,{ref:a,className:m(Ps,t&&"pl-8",e),...r}));_s.displayName=ar.displayName;const ga="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",zs=i.forwardRef(({className:e,children:t,checked:r,...a},s)=>o.jsxs(or,{ref:s,className:m(ga,e),checked:r,...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(sr,{children:o.jsx(ue,{className:"h-4 w-4"})})}),t]}));zs.displayName=or.displayName;const Ls=i.forwardRef(({className:e,children:t,...r},a)=>o.jsxs(nr,{ref:a,className:m(ga,e),...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(sr,{children:o.jsx(pt,{className:"h-4 w-4 fill-current"})})}),t]}));Ls.displayName=nr.displayName;const Is=i.forwardRef(({className:e,inset:t,...r},a)=>o.jsx(ir,{ref:a,className:m("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...r}));Is.displayName=ir.displayName;const Ts=i.forwardRef(({className:e,...t},r)=>o.jsx(lr,{ref:r,className:m("-mx-1 my-1 h-px bg-border",e),...t}));Ts.displayName=lr.displayName;const Vs="z-10 relative max-w-max flex-1 flex items-center justify-center",Bs=i.forwardRef(({className:e,children:t,...r},a)=>o.jsxs(dr,{ref:a,className:m(Vs,e),...r,children:[t,o.jsx(ha,{})]}));Bs.displayName=dr.displayName;const Us="group flex-1list-none flex items-center justify-center space-x-1",Fs=i.forwardRef(({className:e,...t},r)=>o.jsx(cr,{ref:r,className:m(Us,e),...t}));Fs.displayName=cr.displayName;const Gs="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",Ws=ye(Gs),qs="relative ml-1 top-[1px] w-3 h-3 group-data-[state=open]:rotate-180 transition duration-300 ",Ks=i.forwardRef(({className:e,children:t,...r},a)=>o.jsxs(ur,{ref:a,className:m(Ws(),"group",e),...r,children:[t," ",o.jsx(fr,{className:qs,"aria-hidden":"true"})]}));Ks.displayName=ur.displayName;const Hs="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",Js=i.forwardRef(({className:e,...t},r)=>o.jsx(pr,{ref:r,className:m(Hs,e),...t}));Js.displayName=pr.displayName;const Zs="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",ha=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{className:m("absolute left-0 top-full flex justify-center"),children:o.jsx(mr,{ref:r,className:m(Zs,e),...t})}));ha.displayName=mr.displayName;const Ys="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",Xs=i.forwardRef(({className:e,...t},r)=>o.jsx(br,{ref:r,className:m(Ys,e),...t,children:o.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Xs.displayName=br.displayName;const Qs="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",en=i.forwardRef(({className:e,...t},r)=>o.jsx(gr,{ref:r,className:m(Qs,e),...t,children:o.jsx(Qa,{className:m("flex items-center justify-center text-current"),children:o.jsx(ue,{className:"h-4 w-4"})})}));en.displayName=gr.displayName;const tn=i.forwardRef(({className:e,...t},r)=>o.jsx(hr,{className:m("grid gap-2",e),...t,ref:r}));tn.displayName=hr.displayName;const rn="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",an=i.forwardRef(({className:e,children:t,...r},a)=>o.jsx(xr,{ref:a,className:m(rn,e),...r,children:o.jsx(eo,{className:"flex items-center justify-center",children:o.jsx(ue,{className:"h-3.5 w-3.5 fill-primary"})})}));an.displayName=xr.displayName;const on="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",sn=i.forwardRef(({className:e,children:t,...r},a)=>o.jsxs(vr,{ref:a,className:m(on,e),...r,children:[t,o.jsx(to,{asChild:!0,children:o.jsx(ro,{className:"h-4 w-4 opacity-50"})})]}));sn.displayName=vr.displayName;const nn="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",ln="data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",dn="w-full h-[var(--radix-select-trigger-height)] min-w-[var(--radix-select-trigger-width)]",cn=i.forwardRef(({className:e,children:t,position:r="popper",...a},s)=>o.jsx(ao,{children:o.jsx(yr,{ref:s,className:m(nn,r==="popper"&&ln,e),position:r,...a,children:o.jsx(oo,{className:m("p-1",r==="popper"&&dn),children:t})})}));cn.displayName=yr.displayName;const un=i.forwardRef(({className:e,...t},r)=>o.jsx(wr,{ref:r,className:m("px-2 py-1.5 text-sm font-semibold",e),...t}));un.displayName=wr.displayName;const fn="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",pn=i.forwardRef(({className:e,children:t,...r},a)=>o.jsxs(Nr,{ref:a,className:m(fn,e),...r,children:[o.jsx("span",{className:"absolute right-2 h-3.5 w-3.5 flex items-center justify-center",children:o.jsx(so,{children:o.jsx(ue,{className:"h-4 w-4"})})}),o.jsx(no,{children:t})]}));pn.displayName=Nr.displayName;const mn=i.forwardRef(({className:e,...t},r)=>o.jsx($r,{ref:r,className:m("-mx-1 my-1 h-px bg-muted",e),...t}));mn.displayName=$r.displayName;const bn="p-4 w-72 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 outline-none border rounded-md shadow-md",gn=i.forwardRef(({className:e,align:t="center",sideOffset:r=4,...a},s)=>o.jsx(io,{children:o.jsx(jr,{ref:s,align:t,sideOffset:r,className:m(bn,e),...a})}));gn.displayName=jr.displayName;const hn=lo,xn=mt,vn="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",xa=i.forwardRef(({className:e,...t},r)=>o.jsx(Ie,{ref:r,className:m(vn,e),...t}));xa.displayName=Ie.displayName;const yn="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",wn="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",va=i.forwardRef(({className:e,children:t,...r},a)=>o.jsxs(xn,{children:[o.jsx(xa,{}),o.jsxs(Te,{ref:a,className:m(yn,e),...r,children:[t,o.jsxs(Cr,{className:wn,children:[o.jsx(Sr,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));va.displayName=Te.displayName;const ya=({className:e,...t})=>o.jsx("div",{className:m("text-center sm:text-left flex flex-col space-y-1.5",e),...t});ya.displayName="DialogHeader";const wa=({className:e,...t})=>o.jsx("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});wa.displayName="DialogFooter";const Na=i.forwardRef(({className:e,...t},r)=>o.jsx(Ve,{ref:r,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));Na.displayName=Ve.displayName;const $a=i.forwardRef(({className:e,...t},r)=>o.jsx(Be,{ref:r,className:m("text-sm text-muted-foreground",e),...t}));$a.displayName=Be.displayName;var Rt=1,Nn=.9,$n=.3,We=.1,jn=0,qe=.999,Cn=.9999,Sn=.99,Et=/[\\\/\-_+.# \t"@\[\(\{&]/,Rn=/[\\\/\-_+.# \t"@\[\(\{&]/g;function at(e,t,r,a,s,n){if(n===t.length)return s===e.length?Rt:Sn;for(var d=a.charAt(n),l=r.indexOf(d,s),u=0,c,p,y;l>=0;)c=at(e,t,r,a,l+1,n+1),c>u&&(l===s?c*=Rt:Et.test(e.charAt(l-1))?(c*=Nn,y=e.slice(s,l-1).match(Rn),y&&s>0&&(c*=Math.pow(qe,y.length))):Et.test(e.slice(s,l-1))?(c*=jn,s>0&&(c*=Math.pow(qe,l-s))):(c*=$n,s>0&&(c*=Math.pow(qe,l-s))),e.charAt(l)!==t.charAt(n)&&(c*=Cn)),cc&&(c=p*We)),c>u&&(u=c),l=r.indexOf(d,l+1);return u}function En(e,t){return at(e,t,e.toLowerCase(),t.toLowerCase(),0,0)}var An=En;const kn=Rr(An);var Mn='[cmdk-list-sizer=""]',ge='[cmdk-group=""]',Ke='[cmdk-group-items=""]',Dn='[cmdk-group-heading=""]',ja='[cmdk-item=""]',At=`${ja}:not([aria-disabled="true"])`,ot="cmdk-item-select",ee="data-value",On=(e,t)=>kn(e,t),Ca=i.createContext(void 0),Ne=()=>i.useContext(Ca),Sa=i.createContext(void 0),ht=()=>i.useContext(Sa),Ra=i.createContext(void 0),Ea=i.forwardRef((e,t)=>{let r=i.useRef(null),a=le(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),s=le(()=>new Set),n=le(()=>new Map),d=le(()=>new Map),l=le(()=>new Set),u=Aa(e),{label:c,children:p,value:y,onValueChange:$,filter:C,shouldFilter:k,...S}=e,O=i.useId(),A=i.useId(),T=i.useId(),B=Gn();fe(()=>{if(y!==void 0){let b=y.trim().toLowerCase();a.current.value=b,B(6,v),V.emit()}},[y]);let V=i.useMemo(()=>({subscribe:b=>(l.current.add(b),()=>l.current.delete(b)),snapshot:()=>a.current,setState:(b,E,L)=>{var j,z,q;if(!Object.is(a.current[b],E)){if(a.current[b]=E,b==="search")g(),W(),B(1,h);else if(b==="value")if(((j=u.current)==null?void 0:j.value)!==void 0){(q=(z=u.current).onValueChange)==null||q.call(z,E);return}else L||B(5,v);V.emit()}},emit:()=>{l.current.forEach(b=>b())}}),[]),U=i.useMemo(()=>({value:(b,E)=>{E!==d.current.get(b)&&(d.current.set(b,E),a.current.filtered.items.set(b,H(E)),B(2,()=>{W(),V.emit()}))},item:(b,E)=>(s.current.add(b),E&&(n.current.has(E)?n.current.get(E).add(b):n.current.set(E,new Set([b]))),B(3,()=>{g(),W(),a.current.value||h(),V.emit()}),()=>{d.current.delete(b),s.current.delete(b),a.current.filtered.items.delete(b),B(4,()=>{g(),h(),V.emit()})}),group:b=>(n.current.has(b)||n.current.set(b,new Set),()=>{d.current.delete(b),n.current.delete(b)}),filter:()=>u.current.shouldFilter,label:c||e["aria-label"],listId:O,inputId:T,labelId:A}),[]);function H(b){var E;let L=((E=u.current)==null?void 0:E.filter)??On;return b?L(b,a.current.search):0}function W(){if(!r.current||!a.current.search||u.current.shouldFilter===!1)return;let b=a.current.filtered.items,E=[];a.current.filtered.groups.forEach(j=>{let z=n.current.get(j),q=0;z.forEach(pe=>{let Ja=b.get(pe);q=Math.max(Ja,q)}),E.push([j,q])});let L=r.current.querySelector(Mn);x().sort((j,z)=>{let q=j.getAttribute(ee),pe=z.getAttribute(ee);return(b.get(pe)??0)-(b.get(q)??0)}).forEach(j=>{let z=j.closest(Ke);z?z.appendChild(j.parentElement===z?j:j.closest(`${Ke} > *`)):L.appendChild(j.parentElement===L?j:j.closest(`${Ke} > *`))}),E.sort((j,z)=>z[1]-j[1]).forEach(j=>{let z=r.current.querySelector(`${ge}[${ee}="${j[0]}"]`);z?.parentElement.appendChild(z)})}function h(){let b=x().find(L=>!L.ariaDisabled),E=b?.getAttribute(ee);V.setState("value",E||void 0)}function g(){if(!a.current.search||u.current.shouldFilter===!1){a.current.filtered.count=s.current.size;return}a.current.filtered.groups=new Set;let b=0;for(let E of s.current){let L=d.current.get(E),j=H(L);a.current.filtered.items.set(E,j),j>0&&b++}for(let[E,L]of n.current)for(let j of L)if(a.current.filtered.items.get(j)>0){a.current.filtered.groups.add(E);break}a.current.filtered.count=b}function v(){var b,E,L;let j=f();j&&(((b=j.parentElement)==null?void 0:b.firstChild)===j&&((L=(E=j.closest(ge))==null?void 0:E.querySelector(Dn))==null||L.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function f(){return r.current.querySelector(`${ja}[aria-selected="true"]`)}function x(){return Array.from(r.current.querySelectorAll(At))}function N(b){let E=x()[b];E&&V.setState("value",E.getAttribute(ee))}function w(b){var E;let L=f(),j=x(),z=j.findIndex(pe=>pe===L),q=j[z+b];(E=u.current)!=null&&E.loop&&(q=z+b<0?j[j.length-1]:z+b===j.length?j[0]:j[z+b]),q&&V.setState("value",q.getAttribute(ee))}function R(b){let E=f(),L=E?.closest(ge),j;for(;L&&!j;)L=b>0?Un(L,ge):Fn(L,ge),j=L?.querySelector(At);j?V.setState("value",j.getAttribute(ee)):w(b)}let D=()=>N(x().length-1),M=b=>{b.preventDefault(),b.metaKey?D():b.altKey?R(1):w(1)},_=b=>{b.preventDefault(),b.metaKey?N(0):b.altKey?R(-1):w(-1)};return i.createElement("div",{ref:$e([r,t]),...S,"cmdk-root":"",onKeyDown:b=>{var E;if((E=S.onKeyDown)==null||E.call(S,b),!b.defaultPrevented)switch(b.key){case"n":case"j":{b.ctrlKey&&M(b);break}case"ArrowDown":{M(b);break}case"p":case"k":{b.ctrlKey&&_(b);break}case"ArrowUp":{_(b);break}case"Home":{b.preventDefault(),N(0);break}case"End":{b.preventDefault(),D();break}case"Enter":{b.preventDefault();let L=f();if(L){let j=new Event(ot);L.dispatchEvent(j)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:U.inputId,id:U.labelId,style:Wn},c),i.createElement(Sa.Provider,{value:V},i.createElement(Ca.Provider,{value:U},p)))}),Pn=i.forwardRef((e,t)=>{let r=i.useId(),a=i.useRef(null),s=i.useContext(Ra),n=Ne(),d=Aa(e);fe(()=>n.item(r,s),[]);let l=ka(r,a,[e.value,e.children,a]),u=ht(),c=de(A=>A.value&&A.value===l.current),p=de(A=>n.filter()===!1?!0:A.search?A.filtered.items.get(r)>0:!0);i.useEffect(()=>{let A=a.current;if(!(!A||e.disabled))return A.addEventListener(ot,y),()=>A.removeEventListener(ot,y)},[p,e.onSelect,e.disabled]);function y(){var A,T;(T=(A=d.current).onSelect)==null||T.call(A,l.current)}function $(){u.setState("value",l.current,!0)}if(!p)return null;let{disabled:C,value:k,onSelect:S,...O}=e;return i.createElement("div",{ref:$e([a,t]),...O,"cmdk-item":"",role:"option","aria-disabled":C||void 0,"aria-selected":c||void 0,"data-selected":c||void 0,onPointerMove:C?void 0:$,onClick:C?void 0:y},e.children)}),_n=i.forwardRef((e,t)=>{let{heading:r,children:a,...s}=e,n=i.useId(),d=i.useRef(null),l=i.useRef(null),u=i.useId(),c=Ne(),p=de($=>c.filter()===!1?!0:$.search?$.filtered.groups.has(n):!0);fe(()=>c.group(n),[]),ka(n,d,[e.value,e.heading,l]);let y=i.createElement(Ra.Provider,{value:n},a);return i.createElement("div",{ref:$e([d,t]),...s,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},y))}),zn=i.forwardRef((e,t)=>{let{alwaysRender:r,...a}=e,s=i.useRef(null),n=de(d=>!d.search);return!r&&!n?null:i.createElement("div",{ref:$e([s,t]),...a,"cmdk-separator":"",role:"separator"})}),Ln=i.forwardRef((e,t)=>{let{onValueChange:r,...a}=e,s=e.value!=null,n=ht(),d=de(u=>u.search),l=Ne();return i.useEffect(()=>{e.value!=null&&n.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...a,"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:d,onChange:u=>{s||n.setState("search",u.target.value),r?.(u.target.value)}})}),In=i.forwardRef((e,t)=>{let{children:r,...a}=e,s=i.useRef(null),n=i.useRef(null),d=Ne();return i.useEffect(()=>{if(n.current&&s.current){let l=n.current,u=s.current,c,p=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let y=l.getBoundingClientRect().height;u.style.setProperty("--cmdk-list-height",y.toFixed(1)+"px")})});return p.observe(l),()=>{cancelAnimationFrame(c),p.unobserve(l)}}},[]),i.createElement("div",{ref:$e([s,t]),...a,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:d.listId,"aria-labelledby":d.inputId},i.createElement("div",{ref:n,"cmdk-list-sizer":""},r))}),Tn=i.forwardRef((e,t)=>{let{open:r,onOpenChange:a,container:s,...n}=e;return i.createElement(co,{open:r,onOpenChange:a},i.createElement(uo,{container:s},i.createElement(fo,{"cmdk-overlay":""}),i.createElement(po,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(Ea,{ref:t,...n}))))}),Vn=i.forwardRef((e,t)=>{let r=i.useRef(!0),a=de(s=>s.filtered.count===0);return i.useEffect(()=>{r.current=!1},[]),r.current||!a?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Bn=i.forwardRef((e,t)=>{let{progress:r,children:a,...s}=e;return i.createElement("div",{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},a))}),F=Object.assign(Ea,{List:In,Item:Pn,Input:Ln,Group:_n,Separator:zn,Dialog:Tn,Empty:Vn,Loading:Bn});function Un(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Fn(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Aa(e){let t=i.useRef(e);return fe(()=>{t.current=e}),t}var fe=typeof window>"u"?i.useEffect:i.useLayoutEffect;function le(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function $e(e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}function de(e){let t=ht(),r=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,r,r)}function ka(e,t,r){let a=i.useRef(),s=Ne();return fe(()=>{var n;let d=(()=>{var l;for(let u of r){if(typeof u=="string")return u.trim().toLowerCase();if(typeof u=="object"&&"current"in u&&u.current)return(l=u.current.textContent)==null?void 0:l.trim().toLowerCase()}})();s.value(e,d),(n=t.current)==null||n.setAttribute(ee,d),a.current=d}),a}var Gn=()=>{let[e,t]=i.useState(),r=le(()=>new Map);return fe(()=>{r.current.forEach(a=>a()),r.current=new Map},[e]),(a,s)=>{r.current.set(a,s),t({})}},Wn={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const qn="w-full h-full text-popover-foreground bg-popover overflow-hidden rounded-md flex flex-col",Kn=i.forwardRef(({className:e,...t},r)=>o.jsx(F,{ref:r,className:m(qn,e),...t}));Kn.displayName=F.displayName;const Hn="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",Jn=i.forwardRef(({className:e,...t},r)=>o.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[o.jsx(mo,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),o.jsx(F.Input,{ref:r,className:m(Hn,e),...t})]}));Jn.displayName=F.Input.displayName;const Zn=i.forwardRef(({className:e,...t},r)=>o.jsx(F.List,{ref:r,className:m("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Zn.displayName=F.List.displayName;const Yn=i.forwardRef((e,t)=>o.jsx(F.Empty,{ref:t,className:"py-6 text-sm text-center",...e}));Yn.displayName=F.Empty.displayName;const Xn="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 ",Qn=i.forwardRef(({className:e,...t},r)=>o.jsx(F.Group,{ref:r,className:m(Xn,e),...t}));Qn.displayName=F.Group.displayName;const ei=i.forwardRef(({className:e,...t},r)=>o.jsx(F.Separator,{ref:r,className:m("-mx-1 h-px bg-border",e),...t}));ei.displayName=F.Separator.displayName;const ti="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",ri=i.forwardRef(({className:e,...t},r)=>o.jsx(F.Item,{ref:r,className:m(ti,e),...t}));ri.displayName=F.Item.displayName;var ai={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 oi=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ma=(e,t)=>{const r=i.forwardRef(({color:a="currentColor",size:s=24,strokeWidth:n=2,absoluteStrokeWidth:d,children:l,...u},c)=>i.createElement("svg",{ref:c,...ai,width:s,height:s,stroke:a,strokeWidth:d?Number(n)*24/Number(s):n,className:`lucide lucide-${oi(e)}`,...u},[...t.map(([p,y])=>i.createElement(p,y)),...(Array.isArray(l)?l:[l])||[]]));return r.displayName=`${e}`,r},si=Ma("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),ni=Ma("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),ii="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",li=i.forwardRef(({className:e,...t},r)=>o.jsxs(Er,{ref:r,className:m("relative w-full touch-none select-none flex items-center",e),...t,children:[o.jsx(bo,{className:"relative w-full h-1.5 bg-primary/20 rounded-full grow overflow-hidden",children:o.jsx(go,{className:"absolute h-full bg-primary"})}),o.jsx(ho,{className:ii})]}));li.displayName=Er.displayName;const di="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",ci="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",ui=i.forwardRef(({className:e,...t},r)=>o.jsx(Ar,{ref:r,className:m(di,e),...t,children:o.jsx(xo,{className:m(ci)})}));ui.displayName=Ar.displayName;const fi="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",pi=ye(fi,{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"}}),mi=i.forwardRef(({className:e,variant:t,size:r,...a},s)=>o.jsx(kr,{ref:s,className:m(pi({variant:t,size:r,className:e})),...a}));mi.displayName=kr.displayName;const bi="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",gi=i.forwardRef(({className:e,sideOffset:t=4,...r},a)=>o.jsx(Mr,{ref:a,sideOffset:t,className:m(bi,e),...r}));gi.displayName=Mr.displayName;const hi="p-1 h-9 bg-background border rounded-md shadow-sm flex items-center space-x-1",xi=i.forwardRef(({className:e,...t},r)=>o.jsx(Dr,{ref:r,className:m(hi,e),...t}));xi.displayName=Dr.displayName;const vi="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",yi=i.forwardRef(({className:e,...t},r)=>o.jsx(Or,{ref:r,className:m(vi,e),...t}));yi.displayName=Or.displayName;const wi="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",Ni=i.forwardRef(({className:e,inset:t,children:r,...a},s)=>o.jsxs(Pr,{ref:s,className:m(wi,t&&"pl-8",e),...a,children:[r,o.jsx(ct,{className:"ml-auto h-4 w-4"})]}));Ni.displayName=Pr.displayName;const $i="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",ji=i.forwardRef(({className:e,...t},r)=>o.jsx(_r,{ref:r,className:m($i,e),...t}));ji.displayName=_r.displayName;const Ci="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",Si=i.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:a=8,...s},n)=>o.jsx(vo,{children:o.jsx(zr,{ref:n,align:t,alignOffset:r,sideOffset:a,className:m(Ci,e),...s})}));Si.displayName=zr.displayName;const Ri="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",Ei=i.forwardRef(({className:e,inset:t,...r},a)=>o.jsx(Lr,{ref:a,className:m(Ri,t&&"pl-8",e),...r}));Ei.displayName=Lr.displayName;const Da="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",Ai=i.forwardRef(({className:e,children:t,checked:r,...a},s)=>o.jsxs(Ir,{ref:s,className:m(Da,e),checked:r,...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(Tr,{children:o.jsx(ue,{className:"h-4 w-4"})})}),t]}));Ai.displayName=Ir.displayName;const ki=i.forwardRef(({className:e,children:t,...r},a)=>o.jsxs(Vr,{ref:a,className:m(Da,e),...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(Tr,{children:o.jsx(pt,{className:"h-4 w-4 fill-current"})})}),t]}));ki.displayName=Vr.displayName;const Mi=i.forwardRef(({className:e,inset:t,...r},a)=>o.jsx(Br,{ref:a,className:m("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));Mi.displayName=Br.displayName;const Di=i.forwardRef(({className:e,...t},r)=>o.jsx(Ur,{ref:r,className:m("-mx-1 my-1 h-px bg-muted",e),...t}));Di.displayName=Ur.displayName;const Oi=i.forwardRef(({className:e,...t},r)=>o.jsx(yo,{ref:r,className:m("border-b",e),...t}));Oi.displayName="AccordionItem";const Pi="flex-1 py-4 text-sm font-medium hover:underline [&[data-state=open]>svg]:rotate-180 transition-all flex items-center justify-between",_i=i.forwardRef(({className:e,children:t,...r},a)=>o.jsx(wo,{className:"flex",children:o.jsxs(Fr,{ref:a,className:m(Pi,e),...r,children:[t,o.jsx(fr,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));_i.displayName=Fr.displayName;const zi="text-sm overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",Li=i.forwardRef(({className:e,children:t,...r},a)=>o.jsx(Gr,{ref:a,className:m(zi,e),...r,children:o.jsx("div",{className:"pb-4 pt-0",children:t})}));Li.displayName=Gr.displayName;const Ii=i.forwardRef(({className:e,children:t,...r},a)=>o.jsxs(Wr,{ref:a,className:m("relative overflow-hidden",e),...r,children:[o.jsx(No,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(Oa,{}),o.jsx($o,{})]}));Ii.displayName=Wr.displayName;const Oa=i.forwardRef(({className:e,orientation:t="vertical",...r},a)=>o.jsx(qr,{ref:a,orientation:t,className:m("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),...r,children:o.jsx(jo,{className:m("relative rounded-full bg-border",t==="vertical"&&"flex-1")})}));Oa.displayName=qr.displayName;const Ti=Co,Vi="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",Pa=i.forwardRef(({className:e,...t},r)=>o.jsx(Kr,{ref:r,className:m(Vi,e),...t}));Pa.displayName=Kr.displayName;const Bi="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",Ui=i.forwardRef(({className:e,...t},r)=>o.jsxs(Ti,{children:[o.jsx(Pa,{}),o.jsx(Hr,{ref:r,className:m(Bi,e),...t})]}));Ui.displayName=Hr.displayName;const Fi=i.forwardRef(({className:e,...t},r)=>o.jsx(Jr,{ref:r,className:m("text-lg font-semibold",e),...t}));Fi.displayName=Jr.displayName;const Gi=i.forwardRef(({className:e,...t},r)=>o.jsx(Zr,{ref:r,className:m("text-sm text-muted-foreground",e),...t}));Gi.displayName=Zr.displayName;const Wi=i.forwardRef(({className:e,...t},r)=>o.jsx(Yr,{ref:r,className:m(gt(),e),...t}));Wi.displayName=Yr.displayName;const qi=i.forwardRef(({className:e,...t},r)=>o.jsx(Xr,{ref:r,className:m(gt({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));qi.displayName=Xr.displayName;const _a=mt;_a.displayName=mt.displayName;const Ki="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",za=i.forwardRef(({className:e,...t},r)=>o.jsx(Ie,{ref:r,className:m(Ki,e),...t}));za.displayName=Ie.displayName;const Hi="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",Ji="inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",Zi="inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",Yi="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",Xi="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",Qi=ye(Hi,{variants:{side:{top:Ji,bottom:Zi,left:Yi,right:Xi}},defaultVariants:{side:"right"}}),el="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",tl=i.forwardRef(({side:e="right",className:t,children:r,...a},s)=>o.jsxs(_a,{children:[o.jsx(za,{}),o.jsxs(Te,{ref:s,className:m(Qi({side:e}),t),...a,children:[r,o.jsxs(Cr,{className:el,children:[o.jsx(Sr,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));tl.displayName=Te.displayName;const rl=i.forwardRef(({className:e,...t},r)=>o.jsx(Ve,{ref:r,className:m("text-lg font-semibold text-foreground",e),...t}));rl.displayName=Ve.displayName;const al=i.forwardRef(({className:e,...t},r)=>o.jsx(Be,{ref:r,className:m("text-sm text-muted-foreground",e),...t}));al.displayName=Be.displayName;const ol=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{className:"relative w-full overflow-auto",children:o.jsx("table",{ref:r,className:m("w-full caption-bottom text-sm",e),...t})}));ol.displayName="Table";const sl=i.forwardRef(({className:e,...t},r)=>o.jsx("thead",{ref:r,className:m("[&_tr]:border-b",e),...t}));sl.displayName="TableHeader";const nl=i.forwardRef(({className:e,...t},r)=>o.jsx("tbody",{ref:r,className:m("[&_tr:last-child]:border-0",e),...t}));nl.displayName="TableBody";const il=i.forwardRef(({className:e,...t},r)=>o.jsx("tfoot",{ref:r,className:m("text-primary-foreground bg-primary font-medium",e),...t}));il.displayName="TableFooter";const ll=i.forwardRef(({className:e,...t},r)=>o.jsx("tr",{ref:r,className:m("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));ll.displayName="TableRow";const dl=i.forwardRef(({className:e,...t},r)=>o.jsx("th",{ref:r,className:m("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}));dl.displayName="TableHead";const cl=i.forwardRef(({className:e,...t},r)=>o.jsx("td",{ref:r,className:m("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));cl.displayName="TableCell";const ul=i.forwardRef(({className:e,...t},r)=>o.jsx("caption",{ref:r,className:m("mt-4 text-sm text-muted-foreground",e),...t}));ul.displayName="TableCaption";const fl="p-1 h-9 text-muted-foreground bg-muted rounded-lg inline-flex items-center justify-center",pl=i.forwardRef(({className:e,...t},r)=>o.jsx(Qr,{ref:r,className:m(fl,e),...t}));pl.displayName=Qr.displayName;const ml="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",bl=i.forwardRef(({className:e,...t},r)=>o.jsx(ea,{ref:r,className:m(ml,e),...t}));bl.displayName=ea.displayName;const gl="mt-2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none ring-offset-background",hl=i.forwardRef(({className:e,...t},r)=>o.jsx(ta,{ref:r,className:m(gl,e),...t}));hl.displayName=ta.displayName;const xl="z-50 p-4 w-64 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 outline-none",vl=i.forwardRef(({className:e,align:t="center",sideOffset:r=4,...a},s)=>o.jsx(ra,{ref:s,align:t,sideOffset:r,className:m(xl,e),...a}));vl.displayName=ra.displayName;const yl=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:m("rounded-xl border bg-card text-card-foreground shadow",e),...t}));yl.displayName="Card";const wl=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:m("flex flex-col space-y-1.5 p-6",e),...t}));wl.displayName="CardHeader";const Nl=i.forwardRef(({className:e,...t},r)=>o.jsx("h3",{ref:r,className:m("font-semibold leading-none tracking-tight",e),...t}));Nl.displayName="CardTitle";const $l=i.forwardRef(({className:e,...t},r)=>o.jsx("p",{ref:r,className:m("text-sm text-muted-foreground",e),...t}));$l.displayName="CardDescription";const jl=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:m("p-6 pt-0",e),...t}));jl.displayName="CardContent";const Cl=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:m("flex items-center p-6 pt-0",e),...t}));Cl.displayName="CardFooter";const Sl=i.forwardRef(({className:e,value:t,...r},a)=>o.jsx(aa,{ref:a,className:m("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...r,children:o.jsx(So,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Sl.displayName=aa.displayName;var ve=function(){return ve=Object.assign||function(t){for(var r,a=1,s=arguments.length;anull};i.createContext(Al);const kl=Symbol(),xt=Symbol(),he="a",Me="w";let Ml=(e,t)=>new Proxy(e,t);const st=Object.getPrototypeOf,nt=new WeakMap,La=e=>e&&(nt.has(e)?nt.get(e):st(e)===Object.prototype||st(e)===Array.prototype),kt=e=>typeof e=="object"&&e!==null,Dl=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(r=>{r.configurable=!0}),Object.create(st(e),t)},Ia=e=>e[xt]||e,Ta=(e,t,r,a)=>{if(!La(e))return e;let s=a&&a.get(e);if(!s){const u=Ia(e);s=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(p=>!p.configurable&&!p.writable))(u)?[u,Dl(u)]:[u],a?.set(e,s)}const[n,d]=s;let l=r&&r.get(n);return l&&l[1].f===!!d||(l=((u,c)=>{const p={f:c};let y=!1;const $=(k,S)=>{if(!y){let O=p[he].get(u);if(O||(O={},p[he].set(u,O)),k===Me)O[Me]=!0;else{let A=O[k];A||(A=new Set,O[k]=A),A.add(S)}}},C={get:(k,S)=>S===xt?u:($("k",S),Ta(Reflect.get(k,S),p[he],p.c,p.t)),has:(k,S)=>S===kl?(y=!0,p[he].delete(u),!0):($("h",S),Reflect.has(k,S)),getOwnPropertyDescriptor:(k,S)=>($("o",S),Reflect.getOwnPropertyDescriptor(k,S)),ownKeys:k=>($(Me),Reflect.ownKeys(k))};return c&&(C.set=C.deleteProperty=()=>!1),[C,p]})(n,!!d),l[1].p=Ml(d||n,l[0]),r&&r.set(n,l)),l[1][he]=t,l[1].c=r,l[1].t=a,l[1].p},Va=(e,t,r,a)=>{if(Object.is(e,t))return!1;if(!kt(e)||!kt(t))return!0;const s=r.get(Ia(e));if(!s)return!0;if(a){const d=a.get(e);if(d&&d.n===t)return d.g;a.set(e,{n:t,g:!1})}let n=null;try{for(const d of s.h||[])if(n=Reflect.has(e,d)!==Reflect.has(t,d),n)return n;if(s[Me]===!0){if(n=((d,l)=>{const u=Reflect.ownKeys(d),c=Reflect.ownKeys(l);return u.length!==c.length||u.some((p,y)=>p!==c[y])})(e,t),n)return n}else for(const d of s.o||[])if(n=!!Reflect.getOwnPropertyDescriptor(e,d)!=!!Reflect.getOwnPropertyDescriptor(t,d),n)return n;for(const d of s.k||[])if(n=Va(e[d],t[d],r,a),n)return n;return n===null&&(n=!0),n}finally{a&&a.set(e,{n:t,g:n})}},Ol=e=>La(e)&&e[xt]||null,Mt=(e,t=!0)=>{nt.set(e,t)};const He=e=>typeof e=="object"&&e!==null,te=new WeakMap,Se=new WeakSet,Pl=(e=Object.is,t=(c,p)=>new Proxy(c,p),r=c=>He(c)&&!Se.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),a=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},s=new WeakMap,n=(c,p,y=a)=>{const $=s.get(c);if($?.[0]===p)return $[1];const C=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return Mt(C,!0),s.set(c,[p,C]),Reflect.ownKeys(c).forEach(k=>{if(Object.getOwnPropertyDescriptor(C,k))return;const S=Reflect.get(c,k),O={value:S,enumerable:!0,configurable:!0};if(Se.has(S))Mt(S,!1);else if(S instanceof Promise)delete O.value,O.get=()=>y(S);else if(te.has(S)){const[A,T]=te.get(S);O.value=n(A,T(),y)}Object.defineProperty(C,k,O)}),Object.preventExtensions(C)},d=new WeakMap,l=[1,1],u=c=>{if(!He(c))throw new Error("object required");const p=d.get(c);if(p)return p;let y=l[0];const $=new Set,C=(g,v=++l[0])=>{y!==v&&(y=v,$.forEach(f=>f(g,v)))};let k=l[1];const S=(g=++l[1])=>(k!==g&&!$.size&&(k=g,A.forEach(([v])=>{const f=v[1](g);f>y&&(y=f)})),y),O=g=>(v,f)=>{const x=[...v];x[1]=[g,...x[1]],C(x,f)},A=new Map,T=(g,v)=>{if($.size){const f=v[3](O(g));A.set(g,[v,f])}else A.set(g,[v])},B=g=>{var v;const f=A.get(g);f&&(A.delete(g),(v=f[1])==null||v.call(f))},V=g=>($.add(g),$.size===1&&A.forEach(([f,x],N)=>{const w=f[3](O(N));A.set(N,[f,w])}),()=>{$.delete(g),$.size===0&&A.forEach(([f,x],N)=>{x&&(x(),A.set(N,[f]))})}),U=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),W=t(U,{deleteProperty(g,v){const f=Reflect.get(g,v);B(v);const x=Reflect.deleteProperty(g,v);return x&&C(["delete",[v],f]),x},set(g,v,f,x){const N=Reflect.has(g,v),w=Reflect.get(g,v,x);if(N&&(e(w,f)||d.has(f)&&e(w,d.get(f))))return!0;B(v),He(f)&&(f=Ol(f)||f);let R=f;if(f instanceof Promise)f.then(D=>{f.status="fulfilled",f.value=D,C(["resolve",[v],D])}).catch(D=>{f.status="rejected",f.reason=D,C(["reject",[v],D])});else{!te.has(f)&&r(f)&&(R=u(f));const D=!Se.has(R)&&te.get(R);D&&T(v,D)}return Reflect.set(g,v,R,x),C(["set",[v],f,w]),!0}});d.set(c,W);const h=[U,S,n,V];return te.set(W,h),Reflect.ownKeys(c).forEach(g=>{const v=Object.getOwnPropertyDescriptor(c,g);"value"in v&&(W[g]=c[g],delete v.value,delete v.writable),Object.defineProperty(U,g,v)}),W})=>[u,te,Se,e,t,r,a,s,n,d,l],[_l]=Pl();function vt(e={}){return _l(e)}function yt(e,t,r){const a=te.get(e);let s;const n=[],d=a[3];let l=!1;const c=d(p=>{if(n.push(p),r){t(n.splice(0));return}s||(s=Promise.resolve().then(()=>{s=void 0,l&&t(n.splice(0))}))});return l=!0,()=>{l=!1,c()}}function Dt(e,t){const r=te.get(e),[a,s,n]=r;return n(a,s(),t)}var Ba={exports:{}},Ua={};/** + * @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 ce=i;function zl(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ll=typeof Object.is=="function"?Object.is:zl,Il=ce.useState,Tl=ce.useEffect,Vl=ce.useLayoutEffect,Bl=ce.useDebugValue;function Ul(e,t){var r=t(),a=Il({inst:{value:r,getSnapshot:t}}),s=a[0].inst,n=a[1];return Vl(function(){s.value=r,s.getSnapshot=t,Je(s)&&n({inst:s})},[e,r,t]),Tl(function(){return Je(s)&&n({inst:s}),e(function(){Je(s)&&n({inst:s})})},[e]),Bl(r),r}function Je(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ll(e,r)}catch{return!0}}function Fl(e,t){return t()}var Gl=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Fl:Ul;Ua.useSyncExternalStore=ce.useSyncExternalStore!==void 0?ce.useSyncExternalStore:Gl;Ba.exports=Ua;var Wl=Ba.exports;const ql=Rr(Wl),{use:Ot}=Ue,{useSyncExternalStore:Kl}=ql;const Hl=new WeakMap;function Jl(e,t){const r=t?.sync,a=i.useRef(),s=i.useRef();let n=!0;const d=Kl(i.useCallback(c=>{const p=yt(e,c,r);return c(),p},[e,r]),()=>{const c=Dt(e,Ot);try{if(!n&&a.current&&s.current&&!Va(a.current,c,s.current,new WeakMap))return a.current}catch{}return c},()=>Dt(e,Ot));n=!1;const l=new WeakMap;i.useEffect(()=>{a.current=d,s.current=l});const u=i.useMemo(()=>new WeakMap,[]);return Ta(d,l,u,Hl)}const Zl={theme:"light"},Fa="webfont-tools-app-settings",Y=vt(Yl());function Yl(){const e=localStorage.getItem(Fa);if(e)try{return JSON.parse(e)}catch{}return Zl}pa(Y.theme);yt(Y,()=>{pa(Y.theme),localStorage.setItem(Fa,JSON.stringify(Y))});function Xl({className:e,title:t,...r}){return o.jsxs("svg",{className:we("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",...r,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 Ql({className:e,title:t,...r}){return o.jsxs("svg",{className:we("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",...r,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 ed({className:e,title:t,...r}){return o.jsxs("svg",{className:we("fill-none stroke-[1.5] stroke-current",e),viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...r,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 td({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 rd({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 Ze({label:e,theme:t,current:r}){return o.jsxs(ba,{className:"grid grid-cols-[16px,1fr] items-center gap-x-2",onClick:()=>Y.theme=t,children:[r===t&&o.jsx(si,{className:"w-4 h-4"}),o.jsx("div",{className:"col-start-2",children:e})]})}function ad(){const{theme:e}=Jl(Y),t=e==="dark",r=e==="system",a=!t&&!r;return o.jsxs("div",{className:"focus-within:ring-1 focus-within:ring-ring rounded-md flex items-center",children:[o.jsxs(se,{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:[r&&o.jsx(ed,{className:"w-4 h-4"}),a&&o.jsx(Xl,{className:"w-4 h-4"}),t&&o.jsx(Ql,{className:"w-4 h-4 p-0.5"})]}),o.jsxs(ms,{children:[o.jsx(bs,{asChild:!0,children:o.jsx(se,{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(ni,{className:"w-3 h-3"})})}),o.jsxs(ma,{align:"end",children:[o.jsx(Ze,{label:"Light",theme:"light",current:e}),o.jsx(Ze,{label:"Dark",theme:"dark",current:e}),o.jsx(Ze,{label:"System",theme:"system",current:e})]})]})]})}function od(){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(rd,{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(ad,{})})]})}const sd=" p-1 bg-background radix-side-top:animate-slide-up radix-side-bottom:animate-slide-down rounded-md shadow-md ",nd=" px-2 py-2 text-xs focus:bg-accent focus:text-accent-foreground outline-none rounded-md select-none cursor-default flex items-center ",id=({trigger:e,onCommand:t,items:r,containerClasses:a,menuContentProps:s})=>o.jsx("div",{className:"relative inline-block text-left",children:o.jsxs(Xt,{children:[o.jsx(Qt,{asChild:!0,children:e}),o.jsx(qt,{children:o.jsx(ut,{align:"end",...s,className:we(sd,a),children:r.map(({id:n,label:d,icon:l,shortcut:u},c)=>o.jsxs(ft,{className:nd,onClick:()=>t(n),children:[l,o.jsx("span",{className:"flex-grow",children:d}),u&&o.jsx("span",{className:"text-xs",children:u})]},n))})})]})}),ld=[{id:"new-file",label:"New File"},{id:"open-settings",label:"Settings"}],dd="w-20";function cd(){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(id,{trigger:o.jsx(se,{variant:"outline",size:"sm",className:"px-2",children:o.jsx(td,{className:"w-4 h-4"})}),items:ld,containerClasses:dd,menuContentProps:{sideOffset:1},onCommand:e})})]})}function ud(){const[e,t]=i.useState(!1);return o.jsxs(o.Fragment,{children:[o.jsx(se,{variant:"outline",onClick:()=>t(!0),children:"Demo dialog"}),o.jsx(hn,{open:e,onOpenChange:()=>t(!1),children:o.jsxs(va,{className:"sm:max-w-[425px]",children:[o.jsxs(ya,{children:[o.jsx(Na,{children:"Demo dialog"}),o.jsx($a,{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(tt,{htmlFor:"name",className:"text-right",children:"Name"}),o.jsx(rt,{id:"name",className:"col-span-3",value:"Pedro Duarte",onChange:r=>{}})]}),o.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[o.jsx(tt,{htmlFor:"username",className:"text-right",children:"Username"}),o.jsx(rt,{id:"username",className:"col-span-3",value:"@peduarte",onChange:r=>{}})]})]}),o.jsx(wa,{children:o.jsx(se,{type:"submit",onClick:()=>t(!1),children:"Save changes"})})]})})]})}function fd(){return o.jsx("div",{className:"",children:o.jsx(cd,{})})}function pd(){return o.jsxs("div",{className:"flex flex-col space-y-2",children:[o.jsx(fd,{}),o.jsx(se,{variant:"outline",children:"OK"}),o.jsx(ud,{})]})}function md(){return o.jsx("div",{className:"p-4",children:o.jsx(pd,{})})}function bd(){return o.jsx("div",{className:"py-4 bg-primary-500/20"})}let gd=0;function Ga(e,t){const r=`atom${++gd}`,a={toString:()=>r};return typeof e=="function"?a.read=e:(a.init=e,a.read=s=>s(a),a.write=(s,n,d)=>n(a,typeof d=="function"?d(s(a)):d)),t&&(a.write=t),a}const Pt=e=>"init"in e,_t=e=>!!e.write,ze=new WeakMap,hd=(e,t)=>{ze.set(e,t),e.catch(()=>{}).finally(()=>ze.delete(e))},zt=(e,t)=>{const r=ze.get(e);r&&(ze.delete(e),r(t))},Lt=(e,t)=>{e.status="fulfilled",e.value=t},It=(e,t)=>{e.status="rejected",e.reason=t},xd=e=>typeof e?.then=="function",Re=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),Tt=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),xe=e=>"v"in e&&e.v instanceof Promise,vd=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,Ee=e=>{if("e"in e)throw e.e;return e.v},yd=()=>{const e=new WeakMap,t=new WeakMap,r=new Map;let a,s;const n=h=>e.get(h),d=(h,g)=>{const v=e.get(h);if(e.set(h,g),r.has(h)||r.set(h,v),v&&xe(v)){const f="v"in g?g.v instanceof Promise?g.v:Promise.resolve(g.v):Promise.reject(g.e);v.v!==f&&zt(v.v,f)}},l=(h,g,v)=>{const f=new Map;let x=!1;v.forEach((N,w)=>{!N&&w===h&&(N=g),N&&(f.set(w,N),g.d.get(w)!==N&&(x=!0))}),(x||g.d.size!==f.size)&&(g.d=f)},u=(h,g,v)=>{const f=n(h),x={d:f?.d||new Map,v:g};if(v&&l(h,x,v),f&&Re(f,x)&&f.d===x.d)return f;if(f&&xe(f)&&xe(x)&&vd(f,x)){if(f.d===x.d)return f;x.v=f.v}return d(h,x),x},c=(h,g,v,f)=>{if(xd(g)){let x;const N=new Promise((w,R)=>{let D=!1;g.then(M=>{if(!D){D=!0;const _=n(h),b=u(h,N,v);Lt(N,M),w(M),t.has(h)&&_?.d!==b.d&&U(h,b,_?.d)}},M=>{if(!D){D=!0;const _=n(h),b=u(h,N,v);It(N,M),R(M),t.has(h)&&_?.d!==b.d&&U(h,b,_?.d)}}),x=M=>{D||(D=!0,M.then(_=>Lt(N,_),_=>It(N,_)),w(M))}});return N.orig=g,N.status="pending",hd(N,w=>{w&&x(w),f?.()}),u(h,N,v)}return u(h,g,v)},p=(h,g,v)=>{const f=n(h),x={d:f?.d||new Map,e:g};return v&&l(h,x,v),f&&Tt(f,x)&&f.d===x.d?f:(d(h,x),x)},y=(h,g)=>{const v=n(h);if(!g&&v&&(t.has(h)||Array.from(v.d).every(([M,_])=>M===h||y(M)===_)))return v;const f=new Map;let x=!0;const N=M=>{if(M===h){const b=n(M);if(b)return f.set(M,b),Ee(b);if(Pt(M))return f.set(M,void 0),M.init;throw new Error("no atom init")}const _=y(M);return f.set(M,_),Ee(_)};let w,R;const D={get signal(){return w||(w=new AbortController),w.signal},get setSelf(){return!R&&_t(h)&&(R=(...M)=>{if(!x)return T(h,...M)}),R}};try{const M=h.read(N,D);return c(h,M,f,()=>w?.abort())}catch(M){return p(h,M,f)}finally{x=!1}},$=h=>Ee(y(h)),C=h=>{let g=t.get(h);return g||(g=B(h)),g},k=(h,g)=>!g.l.size&&(!g.t.size||g.t.size===1&&g.t.has(h)),S=h=>{const g=t.get(h);g&&k(h,g)&&V(h)},O=h=>{const g=new Map,v=new WeakMap,f=w=>{var R;const D=new Set((R=t.get(w))==null?void 0:R.t);return r.forEach((M,_)=>{var b;(b=n(_))!=null&&b.d.has(w)&&D.add(_)}),D},x=w=>{f(w).forEach(R=>{R!==w&&(g.set(R,(g.get(R)||new Set).add(w)),v.set(R,(v.get(R)||0)+1),x(R))})};x(h);const N=w=>{f(w).forEach(R=>{var D;if(R!==w){let M=v.get(R);if(M&&v.set(R,--M),!M){let _=!!((D=g.get(R))!=null&&D.size);if(_){const b=n(R),E=y(R,!0);_=!b||!Re(b,E)}_||g.forEach(b=>b.delete(R))}N(R)}})};N(h)},A=(h,...g)=>{let v=!0;const f=w=>Ee(y(w)),x=(w,...R)=>{let D;if(w===h){if(!Pt(w))throw new Error("atom not writable");const M=n(w),_=c(w,R[0]);(!M||!Re(M,_))&&O(w)}else D=A(w,...R);if(!v){const M=H()}return D},N=h.write(f,x,...g);return v=!1,N},T=(h,...g)=>{const v=A(h,...g),f=H();return v},B=(h,g,v)=>{var f;const x=v||[];(f=n(h))==null||f.d.forEach((w,R)=>{const D=t.get(R);D?D.t.add(h):R!==h&&B(R,h,x)}),y(h);const N={t:new Set(g&&[g]),l:new Set};if(t.set(h,N),_t(h)&&h.onMount){const{onMount:w}=h;x.push(()=>{const R=w((...D)=>T(h,...D));R&&(N.u=R)})}return v||x.forEach(w=>w()),N},V=h=>{var g;const v=(g=t.get(h))==null?void 0:g.u;v&&v(),t.delete(h);const f=n(h);f&&(xe(f)&&zt(f.v),f.d.forEach((x,N)=>{if(N!==h){const w=t.get(N);w&&(w.t.delete(h),k(N,w)&&V(N))}}))},U=(h,g,v)=>{const f=new Set(g.d.keys());v?.forEach((x,N)=>{if(f.has(N)){f.delete(N);return}const w=t.get(N);w&&(w.t.delete(h),k(N,w)&&V(N))}),f.forEach(x=>{const N=t.get(x);N?N.t.add(h):t.has(h)&&B(x,h)})},H=()=>{let h;for(;r.size;){const g=Array.from(r);r.clear(),g.forEach(([v,f])=>{const x=n(v);if(x){const N=t.get(v);N&&x.d!==f?.d&&U(v,x,f?.d),N&&!(f&&!xe(f)&&(Re(f,x)||Tt(f,x)))&&N.l.forEach(w=>w())}})}};return{get:$,set:T,sub:(h,g)=>{const v=C(h),f=H(),x=v.l;return x.add(g),()=>{x.delete(g),S(h)}}}};let Ye;const wd=()=>(Ye||(Ye=yd()),Ye),Nd=i.createContext(void 0),Wa=e=>{const t=i.useContext(Nd);return e?.store||t||wd()},$d=e=>typeof e?.then=="function",jd=Ue.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 Cd(e,t){const r=Wa(t),[[a,s,n],d]=i.useReducer(c=>{const p=r.get(e);return Object.is(c[0],p)&&c[1]===r&&c[2]===e?c:[p,r,e]},void 0,()=>[r.get(e),r,e]);let l=a;(s!==r||n!==e)&&(d(),l=r.get(e));const u=t?.delay;return i.useEffect(()=>{const c=r.sub(e,()=>{if(typeof u=="number"){setTimeout(d,u);return}d()});return d(),c},[r,e,u]),i.useDebugValue(l),$d(l)?jd(l):l}function Vt(e,t){const r=Wa(t);return i.useCallback((...s)=>r.set(e,...s),[r,e])}const Sd="d09GMgABAAAAAADcAAoAAAAAAggAAACWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk4ALAoUNAE2AiQDCAsGAAQgBSAHIBtvAcieB3aD8wURQ+TZazbRE9HvF5vde4KCYGhiCgq/NKPF0i6UIsZynbP+Xi9Ng+XLbNlmNz/xIBBqq61FIQRJhC/+QA/08PJQJ3sK5TZFMlWzC/iK5GUN40psgqvxwBjBOg6JUSJ7ewyKE2AAaXZrfUB4v+hze37ugJ9d+DeYqiDwVgCawviwVFGnuttkLqIMGivmDg",Rd=`data:application/font-woff2;base64,${Sd}`,De=vt({text:Rd}),Ae=vt({fontText:De.text,xmlText:"",glyphs:[]});function Ed(){const e=/^\s*data:(?[\w\/\+-]*);?(?(?:charset=[\w-]+)?);?(?base64?),(?[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%]*)\s*$/i;t();function t(){Ae.dataUri=e.exec(De.text)?.groups}yt(De,()=>{Ae.fontText=De.text,t(),Ae.isUrl=!1,Ae.dataUri})}Ed();function Ad(e=""){return/[.]/.exec(e)&&/([^.]+$)/.exec(e)?.[0]||""}const kd=Ga(null,async(e,t,r)=>{try{if(r.length!==1)throw new Error("Only one file can be dropped");if(Ad(r[0].name)!=="woff2")throw new Error(`Dropped file "${r[0].name}". +Only .woff2 files are supported`);const s=await is(r[0],{asArrayBuffer:!1});console.log("files",r),console.log("blob",s)}catch(a){jc(a?.message||"Failed to load image")}});function Md({doDroppedFilesAtom:e,activeAtom:t}){const r=Vt(t),a=Vt(e),s=i.useRef(0);return i.useEffect(()=>{function n(){s.current++||r(!0)}function d(p){p.preventDefault()}function l(){--s.current||r(!1)}function u(p){p.preventDefault(),s.current=0,r(!1),p.dataTransfer&&a(p.dataTransfer.files)}const c=document.addEventListener;return c("dragenter",n),c("dragover",d),c("dragleave",l),c("drop",u),()=>{const p=document.removeEventListener;p("dragenter",n),p("dragover",d),p("dragleave",l),p("drop",u)}},[]),o.jsx(o.Fragment,{})}function Dd(){const[e]=i.useState(Ga(!1)),t=Cd(e);return Md({doDroppedFilesAtom:kd,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 Od={data:""},Pd=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Od,_d=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,zd=/\/\*[^]*?\*\/| +/g,Bt=/\n+/g,re=(e,t)=>{let r="",a="",s="";for(let n in e){let d=e[n];n[0]=="@"?n[1]=="i"?r=n+" "+d+";":a+=n[1]=="f"?re(d,n):n+"{"+re(d,n[1]=="k"?"":t)+"}":typeof d=="object"?a+=re(d,t?t.replace(/([^,])+/g,l=>n.replace(/(^:.*)|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,l):l?l+" "+u:u)):n):d!=null&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=re.p?re.p(n,d):n+":"+d+";")}return r+(t&&s?t+"{"+s+"}":s)+a},Z={},qa=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+qa(e[r]);return t}return e},Ld=(e,t,r,a,s)=>{let n=qa(e),d=Z[n]||(Z[n]=(u=>{let c=0,p=11;for(;c>>0;return"go"+p})(n));if(!Z[d]){let u=n!==e?e:(c=>{let p,y,$=[{}];for(;p=_d.exec(c.replace(zd,""));)p[4]?$.shift():p[3]?(y=p[3].replace(Bt," ").trim(),$.unshift($[0][y]=$[0][y]||{})):$[0][p[1]]=p[2].replace(Bt," ").trim();return $[0]})(e);Z[d]=re(s?{["@keyframes "+d]:u}:u,r?"":"."+d)}let l=r&&Z.g?Z.g:null;return r&&(Z.g=Z[d]),((u,c,p,y)=>{y?c.data=c.data.replace(y,u):c.data.indexOf(u)===-1&&(c.data=p?u+c.data:c.data+u)})(Z[d],t,a,l),d},Id=(e,t,r)=>e.reduce((a,s,n)=>{let d=t[n];if(d&&d.call){let l=d(r),u=l&&l.props&&l.props.className||/^go/.test(l)&&l;d=u?"."+u:l&&typeof l=="object"?l.props?"":re(l,""):l===!1?"":l}return a+s+(d??"")},"");function Ge(e){let t=this||{},r=e.call?e(t.p):e;return Ld(r.unshift?r.raw?Id(r,[].slice.call(arguments,1),t.p):r.reduce((a,s)=>Object.assign(a,s&&s.call?s(t.p):s),{}):r,Pd(t.target),t.g,t.o,t.k)}let Ka,it,lt;Ge.bind({g:1});let X=Ge.bind({k:1});function Td(e,t,r,a){re.p=t,Ka=e,it=r,lt=a}function ae(e,t){let r=this||{};return function(){let a=arguments;function s(n,d){let l=Object.assign({},n),u=l.className||s.className;r.p=Object.assign({theme:it&&it()},l),r.o=/ *go\d+/.test(u),l.className=Ge.apply(r,a)+(u?" "+u:""),t&&(l.ref=d);let c=e;return e[0]&&(c=l.as||e,delete l.as),lt&&c[0]&<(l),Ka(c,l)}return t?t(s):s}}var Vd=e=>typeof e=="function",Le=(e,t)=>Vd(e)?e(t):e,Bd=(()=>{let e=0;return()=>(++e).toString()})(),Ha=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Ud=20,Oe=new Map,Fd=1e3,Ut=e=>{if(Oe.has(e))return;let t=setTimeout(()=>{Oe.delete(e),ie({type:4,toastId:e})},Fd);Oe.set(e,t)},Gd=e=>{let t=Oe.get(e);t&&clearTimeout(t)},dt=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Ud)};case 1:return t.toast.id&&Gd(t.toast.id),{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case 2:let{toast:r}=t;return e.toasts.find(n=>n.id===r.id)?dt(e,{type:1,toast:r}):dt(e,{type:0,toast:r});case 3:let{toastId:a}=t;return a?Ut(a):e.toasts.forEach(n=>{Ut(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===a||a===void 0?{...n,visible:!1}:n)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.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(n=>({...n,pauseDuration:n.pauseDuration+s}))}}},Pe=[],_e={toasts:[],pausedAt:void 0},ie=e=>{_e=dt(_e,e),Pe.forEach(t=>{t(_e)})},Wd={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},qd=(e={})=>{let[t,r]=i.useState(_e);i.useEffect(()=>(Pe.push(r),()=>{let s=Pe.indexOf(r);s>-1&&Pe.splice(s,1)}),[t]);let a=t.toasts.map(s=>{var n,d;return{...e,...e[s.type],...s,duration:s.duration||((n=e[s.type])==null?void 0:n.duration)||e?.duration||Wd[s.type],style:{...e.style,...(d=e[s.type])==null?void 0:d.style,...s.style}}});return{...t,toasts:a}},Kd=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:r?.id||Bd()}),je=e=>(t,r)=>{let a=Kd(t,e,r);return ie({type:2,toast:a}),a.id},G=(e,t)=>je("blank")(e,t);G.error=je("error");G.success=je("success");G.loading=je("loading");G.custom=je("custom");G.dismiss=e=>{ie({type:3,toastId:e})};G.remove=e=>ie({type:4,toastId:e});G.promise=(e,t,r)=>{let a=G.loading(t.loading,{...r,...r?.loading});return e.then(s=>(G.success(Le(t.success,s),{id:a,...r,...r?.success}),s)).catch(s=>{G.error(Le(t.error,s),{id:a,...r,...r?.error})}),e};var Hd=(e,t)=>{ie({type:1,toast:{id:e,height:t}})},Jd=()=>{ie({type:5,time:Date.now()})},Zd=e=>{let{toasts:t,pausedAt:r}=qd(e);i.useEffect(()=>{if(r)return;let n=Date.now(),d=t.map(l=>{if(l.duration===1/0)return;let u=(l.duration||0)+l.pauseDuration-(n-l.createdAt);if(u<0){l.visible&&G.dismiss(l.id);return}return setTimeout(()=>G.dismiss(l.id),u)});return()=>{d.forEach(l=>l&&clearTimeout(l))}},[t,r]);let a=i.useCallback(()=>{r&&ie({type:6,time:Date.now()})},[r]),s=i.useCallback((n,d)=>{let{reverseOrder:l=!1,gutter:u=8,defaultPosition:c}=d||{},p=t.filter(C=>(C.position||c)===(n.position||c)&&C.height),y=p.findIndex(C=>C.id===n.id),$=p.filter((C,k)=>kC.visible).slice(...l?[$+1]:[0,$]).reduce((C,k)=>C+(k.height||0)+u,0)},[t]);return{toasts:t,handlers:{updateHeight:Hd,startPause:Jd,endPause:a,calculateOffset:s}}},Yd=X` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,Xd=X` +from { + transform: scale(0); + opacity: 0; +} +to { + transform: scale(1); + opacity: 1; +}`,Qd=X` +from { + transform: scale(0) rotate(90deg); + opacity: 0; +} +to { + transform: scale(1) rotate(90deg); + opacity: 1; +}`,ec=ae("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#ff4b4b"}; + position: relative; + transform: rotate(45deg); + + animation: ${Yd} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + + &:after, + &:before { + content: ''; + animation: ${Xd} 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: ${Qd} 0.15s ease-out forwards; + animation-delay: 180ms; + transform: rotate(90deg); + } +`,tc=X` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,rc=ae("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: ${tc} 1s linear infinite; +`,ac=X` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,oc=X` +0% { + height: 0; + width: 0; + opacity: 0; +} +40% { + height: 0; + width: 6px; + opacity: 1; +} +100% { + opacity: 1; + height: 10px; +}`,sc=ae("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#61d345"}; + position: relative; + transform: rotate(45deg); + + animation: ${ac} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + &:after { + content: ''; + box-sizing: border-box; + animation: ${oc} 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; + } +`,nc=ae("div")` + position: absolute; +`,ic=ae("div")` + position: relative; + display: flex; + justify-content: center; + align-items: center; + min-width: 20px; + min-height: 20px; +`,lc=X` +from { + transform: scale(0.6); + opacity: 0.4; +} +to { + transform: scale(1); + opacity: 1; +}`,dc=ae("div")` + position: relative; + transform: scale(0.6); + opacity: 0.4; + min-width: 20px; + animation: ${lc} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; +`,cc=({toast:e})=>{let{icon:t,type:r,iconTheme:a}=e;return t!==void 0?typeof t=="string"?i.createElement(dc,null,t):t:r==="blank"?null:i.createElement(ic,null,i.createElement(rc,{...a}),r!=="loading"&&i.createElement(nc,null,r==="error"?i.createElement(ec,{...a}):i.createElement(sc,{...a})))},uc=e=>` +0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} +100% {transform: translate3d(0,0,0) scale(1); opacity:1;} +`,fc=e=>` +0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} +100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} +`,pc="0%{opacity:0;} 100%{opacity:1;}",mc="0%{opacity:1;} 100%{opacity:0;}",bc=ae("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; +`,gc=ae("div")` + display: flex; + justify-content: center; + margin: 4px 10px; + color: inherit; + flex: 1 1 auto; + white-space: pre-line; +`,hc=(e,t)=>{let r=e.includes("top")?1:-1,[a,s]=Ha()?[pc,mc]:[uc(r),fc(r)];return{animation:t?`${X(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${X(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},xc=i.memo(({toast:e,position:t,style:r,children:a})=>{let s=e.height?hc(e.position||t||"top-center",e.visible):{opacity:0},n=i.createElement(cc,{toast:e}),d=i.createElement(gc,{...e.ariaProps},Le(e.message,e));return i.createElement(bc,{className:e.className,style:{...s,...r,...e.style}},typeof a=="function"?a({icon:n,message:d}):i.createElement(i.Fragment,null,n,d))});Td(i.createElement);var vc=({id:e,className:t,style:r,onHeightUpdate:a,children:s})=>{let n=i.useCallback(d=>{if(d){let l=()=>{let u=d.getBoundingClientRect().height;a(e,u)};l(),new MutationObserver(l).observe(d,{subtree:!0,childList:!0,characterData:!0})}},[e,a]);return i.createElement("div",{ref:n,className:t,style:r},s)},yc=(e,t)=>{let r=e.includes("top"),a=r?{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:Ha()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...a,...s}},wc=Ge` + z-index: 9999; + > * { + pointer-events: auto; + } +`,ke=16,Nc=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:a,children:s,containerStyle:n,containerClassName:d})=>{let{toasts:l,handlers:u}=Zd(r);return i.createElement("div",{style:{position:"fixed",zIndex:9999,top:ke,left:ke,right:ke,bottom:ke,pointerEvents:"none",...n},className:d,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map(c=>{let p=c.position||t,y=u.calculateOffset(c,{reverseOrder:e,gutter:a,defaultPosition:t}),$=yc(p,y);return i.createElement(vc,{id:c.id,key:c.id,onHeightUpdate:u.updateHeight,className:c.visible?wc:"",style:$},c.type==="custom"?Le(c.message,c):s?s(c):i.createElement(xc,{toast:c,position:p}))}))};function $c(){return o.jsx("div",{className:"toaser",children:o.jsx(Nc,{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 jc=(e,t)=>G(e,{style:{backgroundColor:"red"},...t}),Cc="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";i.forwardRef(({children:e,className:t,...r},a)=>o.jsx("button",{ref:a,className:we("bg-primary border-primary-foreground border rounded select-none",Cc,t),...r,children:e}));function Sc(){return o.jsxs(o.Fragment,{children:[o.jsx($c,{}),o.jsxs("div",{className:"min-h-screen grid grid-rows-[auto,1fr,auto]",children:[o.jsx(od,{}),o.jsx(md,{}),o.jsx(bd,{})]}),o.jsx(Dd,{})]})}Xe.createRoot(document.getElementById("root")).render(o.jsx(Ue.StrictMode,{children:o.jsx(Sc,{})})); diff --git a/assets/radix-ui-069d8783.js b/assets/radix-ui-069d8783.js new file mode 100644 index 0000000..7c8ab7d --- /dev/null +++ b/assets/radix-ui-069d8783.js @@ -0,0 +1,80 @@ +function R1(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function If(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Af={exports:{}},K={};/** + * @license React + * react.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 Io=Symbol.for("react.element"),k1=Symbol.for("react.portal"),T1=Symbol.for("react.fragment"),M1=Symbol.for("react.strict_mode"),D1=Symbol.for("react.profiler"),O1=Symbol.for("react.provider"),I1=Symbol.for("react.context"),A1=Symbol.for("react.forward_ref"),N1=Symbol.for("react.suspense"),L1=Symbol.for("react.memo"),F1=Symbol.for("react.lazy"),Nu=Symbol.iterator;function z1(e){return e===null||typeof e!="object"?null:(e=Nu&&e[Nu]||e["@@iterator"],typeof e=="function"?e:null)}var Nf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lf=Object.assign,Ff={};function kr(e,t,n){this.props=e,this.context=t,this.refs=Ff,this.updater=n||Nf}kr.prototype.isReactComponent={};kr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};kr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zf(){}zf.prototype=kr.prototype;function es(e,t,n){this.props=e,this.context=t,this.refs=Ff,this.updater=n||Nf}var ts=es.prototype=new zf;ts.constructor=es;Lf(ts,kr.prototype);ts.isPureReactComponent=!0;var Lu=Array.isArray,Vf=Object.prototype.hasOwnProperty,ns={current:null},Bf={key:!0,ref:!0,__self:!0,__source:!0};function Uf(e,t,n){var r,o={},a=null,c=null;if(t!=null)for(r in t.ref!==void 0&&(c=t.ref),t.key!==void 0&&(a=""+t.key),t)Vf.call(t,r)&&!Bf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,j=T[z];if(0>>1;zo(Se,O))reo(L,Se)?(T[z]=L,T[re]=O,z=re):(T[z]=Se,T[me]=O,z=me);else if(reo(L,O))T[z]=L,T[re]=O,z=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 z=d.callback;if(typeof z=="function"){d.callback=null,p=d.priorityLevel;var j=z(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||125z?(T.sortIndex=O,t(u,T),n(s)===null&&T===n(u)&&(m?(h(_),_=-1):m=!0,X(b,O-z))):(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}}}})(jf);Kf.exports=jf;var W1=Kf.exports;/** + * @license React + * react-dom.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 Gf=i,Ye=W1;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zi=Object.prototype.hasOwnProperty,K1=/^[: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]*$/,zu={},Vu={};function j1(e){return zi.call(Vu,e)?!0:zi.call(zu,e)?!1:K1.test(e)?Vu[e]=!0:(zu[e]=!0,!1)}function G1(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 Y1(e,t,n,r){if(t===null||typeof t>"u"||G1(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:"")?jr(e):""}function X1(e){switch(e.tag){case 5:return jr(e.type);case 16:return jr("Lazy");case 13:return jr("Suspense");case 19:return jr("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 Xf: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 jt:t=e._payload,e=e._init;try{return Hi(e(t))}catch{}}return null}function Q1(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 cn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z1(e){var t=qf(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=Z1(e))}function Jf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qf(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 Uu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cn(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 ep(e,t){t=t.checked,t!=null&&cs(e,"checked",t,!1)}function Ki(e,t){ep(e,t);var n=cn(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,cn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hu(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 Gr=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 lo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qr={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},q1=["Webkit","ms","Moz","O"];Object.keys(Qr).forEach(function(e){q1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qr[t]=Qr[e]})});function op(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qr.hasOwnProperty(e)&&Qr[e]?(""+t).trim():t+"px"}function ap(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=op(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var J1=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(J1[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 ju(e){if(e=Lo(e)){if(typeof qi!="function")throw Error(M(280));var t=e.stateNode;t&&(t=wc(t),qi(e.stateNode,e.type,t))}}function cp(e){dr?fr?fr.push(e):fr=[e]:dr=e}function ip(){if(dr){var e=dr,t=fr;if(fr=dr=null,ju(e),t)for(e=0;e>>=0,e===0?32:31-(uh(e)/dh|0)|0}var ta=64,na=4194304;function Yr(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=Yr(l):(a&=c,a!==0&&(r=Yr(a)))}else c=n&~o,c!==0?r=Yr(c):a!==0&&(r=Yr(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 Ao(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dt(t),e[t]=n}function mh(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=qr),td=String.fromCharCode(32),nd=!1;function Pp(e,t){switch(e){case"keyup":return Hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var er=!1;function Kh(e,t){switch(e){case"compositionend":return Rp(t);case"keypress":return t.which!==32?null:(nd=!0,td);case"textInput":return e=t.data,e===td&&nd?null:e;default:return null}}function jh(e,t){if(er)return e==="compositionend"||!gs&&Pp(e,t)?(e=Sp(),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=cd(n)}}function Dp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Op(){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 t$(e){var t=Op(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dp(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=id(n,a);var c=id(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,eo=null,al=!1;function ld(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}),eo&&mo(eo,r)||(eo=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 ln={},Te=vn(ln),Fe=vn(!1),Tn=ln;function yr(e,t){var n=e.type.contextTypes;if(!n)return ln;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 ze(e){return e=e.childContextTypes,e!=null}function Ga(){ce(Fe),ce(Te)}function md(e,t,n){if(Te.current!==ln)throw Error(M(168));ne(Te,t),ne(Fe,n)}function Up(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,Q1(e)||"Unknown",o));return fe({},n,r)}function Ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,Tn=Te.current,ne(Te,e),ne(Fe,Fe.current),!0}function hd(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Up(e,t,Tn),r.__reactInternalMemoizedMergedChildContext=e,ce(Fe),ce(Te),ne(Te,e)):ce(Fe),ne(Fe,n)}var Tt=null,bc=!1,hi=!1;function Hp(e){Tt===null?Tt=[e]:Tt.push(e)}function p$(e){bc=!0,Hp(e)}function mn(){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-dt(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&&bn(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&&bn(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&&bn(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&&bn(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===jt&&xd(E)===S.type){n(h,S.sibling),v=o(S,g.props),v.ref=Hr(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=Rn(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=Hr(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 jt:return S=g._init,w(h,v,S(g._payload),b)}if(Gr(g))return y(h,v,g,b);if(Fr(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=Zp(!0),qp=Zp(!1),Fo={},bt=vn(Fo),yo=vn(Fo),wo=vn(Fo);function _n(e){if(e===Fo)throw Error(M(174));return e}function Rs(e,t){switch(ne(wo,t),ne(yo,e),ne(bt,Fo),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(bt),ne(bt,t)}function Er(){ce(bt),ce(yo),ce(wo)}function Jp(e){_n(wo.current);var t=_n(bt.current),n=Yi(t,e.type);t!==n&&(ne(yo,e),ne(bt,n))}function ks(e){yo.current===e&&(ce(bt),ce(yo))}var ue=vn(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,Dn=0,de=null,$e=null,ye=null,tc=!1,to=!1,bo=0,m$=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 mv(){return rt().memoizedState}function $$(e,t,n){var r=on(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hv(e))$v(t,n);else if(n=Gp(e,t,n,r),n!==null){var o=De();ft(n,e,r,o),gv(n,t,r)}}function g$(e,t,n){var r=on(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hv(e))$v(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,vt(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=Gp(e,t,o,r),n!==null&&(o=De(),ft(n,e,r,o),gv(n,t,r))}}function hv(e){var t=e.alternate;return e===de||t!==null&&t===de}function $v(e,t){to=tc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fs(e,n)}}var nc={readContext:nt,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},y$={readContext:nt,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Sd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Da(4194308,4,uv.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=gt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gt();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=$$.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:Cd,useDebugValue:As,useDeferredValue:function(e){return gt().memoizedState=e},useTransition:function(){var e=Cd(!1),t=e[0];return e=h$.bind(null,e[1]),gt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,o=gt();if(ie){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),we===null)throw Error(M(349));Dn&30||nv(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Sd(ov.bind(null,r,a,e),[e]),r.flags|=2048,xo(9,rv.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=gt(),t=we.identifierPrefix;if(ie){var n=Dt,r=Mt;n=(r&~(1<<32-dt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bo++,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[yt]=t,e[go]=r,Pv(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,Wr(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),Wr(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,Wr(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?He&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 P$(e,t){switch(bs(t),t.tag){case 1:return ze(t.type)&&Ga(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Er(),ce(Fe),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,R$=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 Id=!1;function k$(e,t){if(cl=Ha,e=Op(),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:lt(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=Id,Id=!1,y}function no(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 Tv(e){var t=e.alternate;t!==null&&(e.alternate=null,Tv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yt],delete t[go],delete t[ul],delete t[d$],delete t[f$])),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 Mv(e){return e.tag===5||e.tag===3||e.tag===4}function Ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mv(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,st=!1;function Wt(e,t,n){for(n=n.child;n!==null;)Dv(e,t,n),n=n.sibling}function Dv(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(hc,n)}catch{}switch(n.tag){case 5:Re||lr(n,t);case 6:var r=Ee,o=st;Ee=null,Wt(e,t,n),Ee=r,st=o,Ee!==null&&(st?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(st?(e=Ee,n=n.stateNode,e.nodeType===8?mi(e.parentNode,n):e.nodeType===1&&mi(e,n),po(e)):mi(Ee,n.stateNode));break;case 4:r=Ee,o=st,Ee=n.stateNode.containerInfo,st=!0,Wt(e,t,n),Ee=r,st=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)}Wt(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)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,Wt(e,t,n),Re=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function Nd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new R$),t.forEach(function(r){var o=F$.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function it(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*M$(r/1960))-r,10e?16:e,Zt===null)var r=!1;else{if(e=Zt,Zt=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?Pn(e,0):Fs|=n),Ve(e,t)}function Vv(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&&(Ao(e,t,n),Ve(e,n))}function L$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vv(e,n)}function F$(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),Vv(e,n)}var Bv;Bv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,S$(e,t,n);Le=!!(e.flags&131072)}else Le=!1,ie&&t.flags&1048576&&Wp(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,ze(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=V$(r),e=lt(r,e),o){case 0:t=gl(null,t,r,e,n);break e;case 1:t=Md(null,t,r,e,n);break e;case 11:t=kd(null,t,r,e,n);break e;case 14:t=Td(null,t,r,lt(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:lt(r,o),gl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),Md(e,t,r,o,n);case 3:e:{if(Cv(t),e===null)throw Error(M(387));r=t.pendingProps,a=t.memoizedState,o=a.element,Yp(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=Dd(e,t,r,n,o);break e}else if(r!==o){o=xr(Error(M(424)),t),t=Dd(e,t,r,n,o);break e}else for(Ke=tn(t.stateNode.containerInfo.firstChild),je=t,ie=!0,ut=null,n=qp(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 Jp(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),xv(e,t),Me(e,t,c,n),t.child;case 6:return e===null&&pl(t),null;case 13:return Sv(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:lt(r,o),kd(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(vt(a.value,c)){if(a.children===o.children&&!Fe.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=nt(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=lt(r,t.pendingProps),o=lt(r.type,o),Td(e,t,r,o,n);case 15:return bv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),Oa(e,t),t.tag=1,ze(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 _v(e,t,n);case 22:return Ev(e,t,n)}throw Error(M(156,t.tag))};function Uv(e,t){return vp(e,t)}function z$(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 z$(e,t,n,r)}function Hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function V$(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 an(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 Rn(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 Zf:return _c(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xf:c=10;break e;case Qf:c=9;break e;case ls:c=11;break e;case ss:c=14;break e;case jt: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 Rn(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=Zf,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 B$(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 B$(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 U$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jv)}catch(e){console.error(e)}}jv(),Wf.exports=Xe;var hn=Wf.exports;const Ys=If(hn);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>G$(n,t))}function V(...e){return i.useCallback(zo(...e),e)}const sn=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(Y$);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)});sn.displayName="Slot";const Ml=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...X$(r,n.props),ref:t?zo(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 Y$(e){return i.isValidElement(e)&&e.type===Xs}function X$(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 Q$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],A=Q$.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...c}=r,l=a?sn: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 Gv(e,t){e&&hn.flushSync(()=>e.dispatchEvent(t))}const Z$=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()}}))),D6=Z$;function R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function q$(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,J$(o,...t)]}function J$(...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 Ze({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=eg({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 eg({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 $n(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=V(y,h.collectionRef);return W.createElement(sn,{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=V(y,v),b=a(u,m);return W.useEffect(()=>(b.itemMap.set(v,{ref:v,...h}),()=>void b.itemMap.delete(v))),W.createElement(sn,{[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 tg=i.createContext(void 0);function gn(e){const t=i.useContext(tg);return e||t||"ltr"}function ng(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",rg="dismissableLayer.pointerDownOutside",og="dismissableLayer.focusOutside";let Wd;const ag=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zn=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(ag),[d,p]=i.useState(null),$=(n=d?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,y]=i.useState({}),m=V(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=cg(_=>{const P=_.target,D=[...f.branches].some(F=>F.contains(P));!E||D||(a?.(_),l?.(_),_.defaultPrevented||s?.())},$),C=ig(_=>{const P=_.target;[...f.branches].some(F=>F.contains(P))||(c?.(_),l?.(_),_.defaultPrevented||s?.())},$);return ng(_=>{g===f.layers.size-1&&(o?.(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},$),i.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Wd=$.body.style.pointerEvents,$.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Kd(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&($.body.style.pointerEvents=Wd)}},[d,$,r,f]),i.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Kd())},[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 cg(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(){Yv(rg,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 ig(e,t=globalThis?.document){const n=ae(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&Yv(og,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 Kd(){const e=new CustomEvent(Dl);document.dispatchEvent(e)}function Yv(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?Gv(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:jd()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:jd()),Si++,()=>{Si===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Si--}},[])}function jd(){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",Gd={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=V(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:Kt(d.current,{select:!0})},w=function(g){if($.paused||!l)return;const b=g.relatedTarget;b!==null&&(l.contains(b)||Kt(d.current,{select:!0}))},h=function(g){if(document.activeElement===document.body)for(const E of g)E.removedNodes.length>0&&Kt(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){Xd.add($);const m=document.activeElement;if(!l.contains(m)){const h=new CustomEvent(_i,Gd);l.addEventListener(_i,u),l.dispatchEvent(h),h.defaultPrevented||(lg(pg(Xv(l)),{select:!0}),document.activeElement===m&&Kt(l))}return()=>{l.removeEventListener(_i,u),setTimeout(()=>{const h=new CustomEvent(Pi,Gd);l.addEventListener(Pi,f),l.dispatchEvent(h),h.defaultPrevented||Kt(m??document.body,{select:!0}),l.removeEventListener(Pi,f),Xd.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]=sg(v);g&&b?!m.shiftKey&&h===b?(m.preventDefault(),n&&Kt(g,{select:!0})):m.shiftKey&&h===g&&(m.preventDefault(),n&&Kt(b,{select:!0})):h===v&&m.preventDefault()}},[n,r,$.paused]);return i.createElement(A.div,x({tabIndex:-1},c,{ref:p,onKeyDown:y}))});function lg(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Kt(r,{select:t}),document.activeElement!==n)return}function sg(e){const t=Xv(e),n=Yd(t,e),r=Yd(t.reverse(),e);return[n,r]}function Xv(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 Yd(e,t){for(const n of e)if(!ug(n,{upTo:t}))return n}function ug(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 dg(e){return e instanceof HTMLInputElement&&"select"in e}function Kt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dg(e)&&t&&e.select()}}const Xd=fg();function fg(){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 pg(e){return e.filter(t=>t.tagName!=="A")}const Oe=globalThis?.document?i.useLayoutEffect:()=>{},vg=Hf["useId".toString()]||(()=>{});let mg=0;function Et(e){const[t,n]=i.useState(vg());return Oe(()=>{e||n(r=>r??String(mg++))},[e]),e||(t?`radix-${t}`:"")}const hg=["top","right","bottom","left"],un=Math.min,We=Math.max,lc=Math.round,va=Math.floor,dn=e=>({x:e,y:e}),$g={left:"right",right:"left",bottom:"top",top:"bottom"},gg={start:"end",end:"start"};function Ol(e,t,n){return We(e,un(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 yg(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 wg(e){const t=sc(e);return[Il(e),t,Il(t)]}function Il(e){return e.replace(/start|end/g,t=>gg[t])}function bg(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 Eg(e,t,n,r){const o=Dr(e);let a=bg(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=>$g[t])}function xg(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qv(e){return typeof e!="number"?xg(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 Zd(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 Cg=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}=Zd(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=un(d[h],P),F=un(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 Jd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ef(e){return hg.some(t=>e[t]>=0)}const _g=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 So(t,{...o,elementContext:"reference"}),c=Jd(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:ef(c)}}}case"escaped":{const a=await So(t,{...o,altBoundary:!0}),c=Jd(a,n.floating);return{data:{escapedOffsets:c,escaped:ef(c)}}}default:return{}}}}};async function Pg(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 Rg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await Pg(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},kg=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 So(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}}}}},Tg=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}}}},Mg=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 So(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?un(h,S):S}else{const S=$-s.top-s.bottom;g=f||v?un(w,S):S}if(v&&!f){const S=We(s.left,0),C=We(s.right,0),_=We(s.top,0),P=We(s.bottom,0);d?b=p-2*(S!==0||C!==0?S+C:We(s.left,s.right)):g=$-2*(_!==0||P!==0?_+P:We(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 fn(e){return Zv(e)?(e.nodeName||"").toLowerCase():"#document"}function Ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ut(e){var t;return(t=(Zv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zv(e){return e instanceof Node||e instanceof Ge(e).Node}function Vt(e){return e instanceof Element||e instanceof Ge(e).Element}function xt(e){return e instanceof HTMLElement||e instanceof Ge(e).HTMLElement}function tf(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ge(e).ShadowRoot}function Vo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ot(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Dg(e){return["table","td","th"].includes(fn(e))}function Js(e){const t=eu(),n=ot(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 Og(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(fn(e))}function ot(e){return Ge(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(fn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tf(e)&&e.host||Ut(e);return tf(t)?t.host:t}function qv(e){const t=Sr(e);return Oc(t)?e.ownerDocument?e.ownerDocument.body:e.body:xt(t)&&Vo(t)?t:qv(t)}function _o(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=qv(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),c=Ge(o);return a?t.concat(c,c.visualViewport||[],Vo(o)?o:[],c.frameElement&&n?_o(c.frameElement):[]):t.concat(o,_o(o,[],n))}function Jv(e){const t=ot(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 dn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Jv(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 Ig=dn(0);function em(e){const t=Ge(e);return!eu()||!t.visualViewport?Ig:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ag(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ge(e)?!1:t}function An(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=tu(e);let c=dn(1);t&&(r?Vt(r)&&(c=hr(r)):c=hr(e));const l=Ag(a,n,r)?em(a):dn(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=Ge(a),$=r&&Vt(r)?Ge(r):r;let y=p.frameElement;for(;y&&r&&$!==p;){const m=hr(y),w=y.getBoundingClientRect(),h=ot(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=Ge(y).frameElement}}return uc({width:f,height:d,x:s,y:u})}function Ng(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=xt(n),a=Ut(n);if(n===a)return t;let c={scrollLeft:0,scrollTop:0},l=dn(1);const s=dn(0);if((o||!o&&r!=="fixed")&&((fn(n)!=="body"||Vo(a))&&(c=Ic(n)),xt(n))){const u=An(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 Lg(e){return Array.from(e.getClientRects())}function tm(e){return An(Ut(e)).left+Ic(e).scrollLeft}function Fg(e){const t=Ut(e),n=Ic(e),r=e.ownerDocument.body,o=We(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=We(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+tm(e);const l=-n.scrollTop;return ot(r).direction==="rtl"&&(c+=We(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:c,y:l}}function zg(e,t){const n=Ge(e),r=Ut(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 Vg(e,t){const n=An(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=xt(e)?hr(e):dn(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 nf(e,t,n){let r;if(t==="viewport")r=zg(e,n);else if(t==="document")r=Fg(Ut(e));else if(Vt(t))r=Vg(t,n);else{const o=em(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return uc(r)}function nm(e,t){const n=Sr(e);return n===t||!Vt(n)||Oc(n)?!1:ot(n).position==="fixed"||nm(n,t)}function Bg(e,t){const n=t.get(e);if(n)return n;let r=_o(e,[],!1).filter(l=>Vt(l)&&fn(l)!=="body"),o=null;const a=ot(e).position==="fixed";let c=a?Sr(e):e;for(;Vt(c)&&!Oc(c);){const l=ot(c),s=Js(c);!s&&l.position==="fixed"&&(o=null),(a?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Vo(c)&&!s&&nm(e,c))?r=r.filter(f=>f!==c):o=l,c=Sr(c)}return t.set(e,r),r}function Ug(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?Bg(t,this._c):[].concat(n),r],l=c[0],s=c.reduce((u,f)=>{const d=nf(t,f,o);return u.top=We(d.top,u.top),u.right=un(d.right,u.right),u.bottom=un(d.bottom,u.bottom),u.left=We(d.left,u.left),u},nf(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Hg(e){return Jv(e)}function Wg(e,t,n){const r=xt(t),o=Ut(t),a=n==="fixed",c=An(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=dn(0);if(r||!r&&!a)if((fn(t)!=="body"||Vo(o))&&(l=Ic(t)),r){const u=An(t,!0,a,t);s.x=u.x+t.clientLeft,s.y=u.y+t.clientTop}else o&&(s.x=tm(o));return{x:c.left+l.scrollLeft-s.x,y:c.top+l.scrollTop-s.y,width:c.width,height:c.height}}function rf(e,t){return!xt(e)||ot(e).position==="fixed"?null:t?t(e):e.offsetParent}function rm(e,t){const n=Ge(e);if(!xt(e))return n;let r=rf(e,t);for(;r&&Dg(r)&&ot(r).position==="static";)r=rf(r,t);return r&&(fn(r)==="html"||fn(r)==="body"&&ot(r).position==="static"&&!Js(r))?n:r||Og(e)||n}const Kg=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||rm,a=this.getDimensions;return{reference:Wg(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}};function jg(e){return ot(e).direction==="rtl"}const Gg={convertOffsetParentRelativeRectToViewportRelativeRect:Ng,getDocumentElement:Ut,getClippingRect:Ug,getOffsetParent:rm,getElementRects:Kg,getClientRects:Lg,getDimensions:Hg,getScale:hr,isElement:Vt,isRTL:jg};function Yg(e,t){let n=null,r;const o=Ut(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:We(0,un(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 Xg(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?_o(u):[],..._o(t)]:[];f.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),a&&h.addEventListener("resize",n)});const d=u&&l?Yg(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?An(e):null;s&&w();function w(){const h=An(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 Qg=(e,t,n)=>{const r=new Map,o={platform:Gg,...n},a={...o.platform,_c:r};return Cg(e,t,{...o,platform:a})},Zg=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?qd({element:r.current,padding:o}).fn(n):{}:r?qd({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 om(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function of(e,t){const n=om(e);return Math.round(t*n)/n}function af(e){const t=i.useRef(e);return La(()=>{t.current=e}),t}function qg(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=af(s),D=af(o),F=i.useCallback(()=>{if(!S.current||!C.current)return;const U={placement:t,strategy:n,middleware:p};D.current&&(U.platform=D.current),Qg(S.current,C.current,U).then(X=>{const T={...X,isPositioned:!0};H.current&&!dc(_.current,T)&&(_.current=T,hn.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=of(N.floating,f.x),T=of(N.floating,f.y);return l?{...U,transform:"translate("+X+"px, "+T+"px)",...om(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 Bo(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 am="Popper",[cm,Ct]=le(am),[Jg,im]=cm(am),ey=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return i.createElement(Jg,{scope:t,anchor:r,onAnchorChange:o},n)},ty="PopperAnchor",ny=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=im(ty,n),c=i.useRef(null),l=V(t,c);return i.useEffect(()=>{a.onAnchorChange(r?.current||c.current)}),r?null:i.createElement(A.div,x({},o,{ref:l}))}),lm="PopperContent",[ry,O6]=cm(lm),oy=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,_=im(lm,f),[P,D]=i.useState(null),F=V(t,Pt=>D(Pt)),[H,Y]=i.useState(null),N=Bo(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,z={padding:T,boundary:k.filter(ay),altBoundary:O},{refs:j,floatingStyles:be,placement:me,isPositioned:Se,middlewareData:re}=qg({strategy:"fixed",placement:X,whileElementsMounted:(...Pt)=>Xg(...Pt,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[Rg({mainAxis:p+U,alignmentAxis:y}),w&&kg({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?Tg():void 0,...z}),w&&Sg({...z}),Mg({...z,apply:({elements:Pt,rects:Kn,availableWidth:Lr,availableHeight:S1})=>{const{width:_1,height:P1}=Kn.reference,Qo=Pt.floating.style;Qo.setProperty("--radix-popper-available-width",`${Lr}px`),Qo.setProperty("--radix-popper-available-height",`${S1}px`),Qo.setProperty("--radix-popper-anchor-width",`${_1}px`),Qo.setProperty("--radix-popper-anchor-height",`${P1}px`)}}),H&&Zg({element:H,padding:m}),cy({arrowWidth:B,arrowHeight:U}),b&&_g({strategy:"referenceHidden",...z})]}),[L,Z]=sm(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,[Be,Ue]=i.useState();return Oe(()=>{P&&Ue(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:Be,"--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(ry,{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 ay(e){return e!==null}const cy=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]=sm(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 sm(e){const[t,n="center"]=e.split("-");return[t,n]}const iy=ey,um=ny,Uo=oy,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 ly(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=sy(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=V(r.ref,o.ref);return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};se.displayName="Presence";function sy(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[l,s]=ly(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&&$&&hn.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",uy={bubbles:!1,cancelable:!0},nu="RovingFocusGroup",[Al,dm,dy]=$n(nu),[fy,yn]=le(nu,[dy]),[py,vy]=fy(nu),my=i.forwardRef((e,t)=>i.createElement(Al.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(Al.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(hy,x({},e,{ref:t}))))),hy=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=V(t,d),$=gn(a),[y=null,m]=Ze({prop:c,defaultProp:l,onChange:s}),[w,h]=i.useState(!1),v=ae(u),g=dm(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(py,{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,uy);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);fm(N)}}b.current=!1}),onBlur:R(e.onBlur,()=>h(!1))})))}),$y="RovingFocusGroupItem",gy=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...c}=e,l=Et(),s=a||l,u=vy($y,n),f=u.currentTabStopId===s,d=dm(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=by(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?Ey(h,v+1):h.slice(v+1)}setTimeout(()=>fm(h))}})})))}),yy={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wy(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function by(e,t,n){const r=wy(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return yy[r]}function fm(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ey(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Nc=my,Lc=gy;var xy=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,pm=function(e){return e&&(e.host||pm(e.parentNode))},Cy=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pm(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})},Sy=function(e,t,n,r){var o=Cy(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={})}},Ho=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||xy(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Sy(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 Fy;var t=zy(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])}},By=ou(),Uy=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(_y,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(l,"px ").concat(r,`; + } + body { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(a,`px; + padding-right: `).concat(c,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(l,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(ao,` { + right: `).concat(l,"px ").concat(r,`; + } + + .`).concat(co,` { + margin-right: `).concat(l,"px ").concat(r,`; + } + + .`).concat(ao," .").concat(ao,` { + right: 0 `).concat(r,`; + } + + .`).concat(co," .").concat(co,` { + margin-right: 0 `).concat(r,`; + } + + body { + `).concat(Py,": ").concat(l,`px; + } +`)},wm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=i.useMemo(function(){return Vy(o)},[o]);return i.createElement(By,{styles:Uy(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,Hy=function(e){return e.tagName==="TEXTAREA"},bm=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Hy(e)&&n[t]==="visible")},Wy=function(e){return bm(e,"overflowY")},Ky=function(e){return bm(e,"overflowX")},lf=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Em(e,n);if(r){var o=xm(e,n),a=o[1],c=o[2];if(a>c)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},jy=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Gy=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Em=function(e,t){return e==="v"?Wy(t):Ky(t)},xm=function(e,t){return e==="v"?jy(t):Gy(t)},Yy=function(e,t){return e==="h"&&t==="rtl"?-1:1},Xy=function(e,t,n,r,o){var a=Yy(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 $=xm(e,l),y=$[0],m=$[1],w=$[2],h=m-w-a*y;(y||h)&&Em(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]},sf=function(e){return[e.deltaX,e.deltaY]},uf=function(e){return e&&"current"in e?e.current:e},Qy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Zy=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},qy=0,Xn=[];function Jy(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(qy++)[0],a=i.useState(function(){return ou()})[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=vm([e.lockRef.current],(e.shards||[]).map(uf),!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 _=lf(C,S);if(!_)return!0;if(_?E=C:(E=C==="v"?"h":"v",_=lf(C,S)),!_)return!1;if(!r.current&&"changedTouches"in m&&(g||b)&&(r.current=E),!E)return!0;var P=r.current||E;return Xy(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?sf(w):ya(w),v=t.current.filter(function(E){return E.name===w.type&&E.target===w.target&&Qy(E.delta,h)})[0];if(v&&v.should){w.cancelable&&w.preventDefault();return}if(!v){var g=(c.current.shards||[]).map(uf).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,sf(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:Zy(o)}):null,$?i.createElement(wm,{gapMode:"margin"}):null)}const ew=gm(ym,Jy);var Cm=i.forwardRef(function(e,t){return i.createElement(Fc,ke({},e,{ref:t,sideCar:ew}))});Cm.classNames=Fc.classNames;const zc=Cm,Ll=["Enter"," "],tw=["ArrowDown","PageUp","Home"],Sm=["ArrowUp","PageDown","End"],nw=[...tw,...Sm],rw={ltr:[...Ll,"ArrowRight"],rtl:[...Ll,"ArrowLeft"]},ow={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Vc="Menu",[Po,aw,cw]=$n(Vc),[Vn,Wo]=le(Vc,[cw,Ct,yn]),au=Ct(),_m=yn(),[iw,Bn]=Vn(Vc),[lw,Ko]=Vn(Vc),sw=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:c=!0}=e,l=au(t),[s,u]=i.useState(null),f=i.useRef(!1),d=ae(a),p=gn(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(iy,l,i.createElement(iw,{scope:t,open:n,onOpenChange:d,content:s,onContentChange:u},i.createElement(lw,{scope:t,onClose:i.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:p,modal:c},r)))},Pm=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=au(n);return i.createElement(um,x({},o,r,{ref:t}))}),Rm="MenuPortal",[uw,km]=Vn(Rm,{forceMount:void 0}),dw=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Bn(Rm,t);return i.createElement(uw,{scope:t,forceMount:n},i.createElement(se,{present:n||a.open},i.createElement(Ac,{asChild:!0,container:o},r)))},pt="MenuContent",[fw,cu]=Vn(pt),pw=i.forwardRef((e,t)=>{const n=km(pt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Bn(pt,e.__scopeMenu),c=Ko(pt,e.__scopeMenu);return i.createElement(Po.Provider,{scope:e.__scopeMenu},i.createElement(se,{present:r||a.open},i.createElement(Po.Slot,{scope:e.__scopeMenu},c.modal?i.createElement(vw,x({},o,{ref:t})):i.createElement(mw,x({},o,{ref:t})))))}),vw=i.forwardRef((e,t)=>{const n=Bn(pt,e.__scopeMenu),r=i.useRef(null),o=V(t,r);return i.useEffect(()=>{const a=r.current;if(a)return Ho(a)},[]),i.createElement(iu,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)}))}),mw=i.forwardRef((e,t)=>{const n=Bn(pt,e.__scopeMenu);return i.createElement(iu,x({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),iu=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=Bn(pt,n),h=Ko(pt,n),v=au(n),g=_m(n),b=aw(n),[E,S]=i.useState(null),C=i.useRef(null),_=V(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:sn,allowPinchZoom:!0}:void 0,X=k=>{var O,z;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=Mw(re,j,Se),Z=(z=be.find(q=>q.textValue===L))===null||z===void 0?void 0:z.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,z;return Y.current===((O=H.current)===null||O===void 0?void 0:O.side)&&Ow(k,(z=H.current)===null||z===void 0?void 0:z.area)},[]);return i.createElement(fw,{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(zn,{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(Uo,x({role:"menu","aria-orientation":"vertical","data-state":Im(w.open),"data-radix-menu-content":"",dir:h.dir},v,m,{ref:_,style:{outline:"none",...m.style},onKeyDown:R(m.onKeyDown,k=>{const z=k.target.closest("[data-radix-menu-content]")===k.currentTarget,j=k.ctrlKey||k.altKey||k.metaKey,be=k.key.length===1;z&&(k.key==="Tab"&&k.preventDefault(),!j&&be&&X(k.key));const me=C.current;if(k.target!==me||!nw.includes(k.key))return;k.preventDefault();const re=b().filter(L=>!L.disabled).map(L=>L.ref.current);Sm.includes(k.key)&&re.reverse(),kw(re)}),onBlur:R(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(P.current),D.current="")}),onPointerMove:R(e.onPointerMove,Ro(k=>{const O=k.target,z=N.current!==k.clientX;if(k.currentTarget.contains(O)&&z){const j=k.clientX>N.current?"right":"left";Y.current=j,N.current=k.clientX}}))})))))))}),hw=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(A.div,x({},r,{ref:t}))}),Fl="MenuItem",df="menu.itemSelect",lu=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=i.useRef(null),c=Ko(Fl,e.__scopeMenu),l=cu(Fl,e.__scopeMenu),s=V(t,a),u=i.useRef(!1),f=()=>{const d=a.current;if(!n&&d){const p=new CustomEvent(df,{bubbles:!0,cancelable:!0});d.addEventListener(df,$=>r?.($),{once:!0}),Gv(d,p),p.defaultPrevented?u.current=!1:c.onClose()}};return i.createElement(Tm,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())})}))}),Tm=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,c=cu(Fl,n),l=_m(n),s=i.useRef(null),u=V(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(Po.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,Ro(y=>{r?c.onItemLeave(y):(c.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus())})),onPointerLeave:R(e.onPointerLeave,Ro(y=>c.onItemLeave(y))),onFocus:R(e.onFocus,()=>d(!0)),onBlur:R(e.onBlur,()=>d(!1))}))))}),$w=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.createElement(Dm,{scope:e.__scopeMenu,checked:n},i.createElement(lu,x({role:"menuitemcheckbox","aria-checked":fc(n)?"mixed":n},o,{ref:t,"data-state":su(n),onSelect:R(o.onSelect,()=>r?.(fc(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),gw="MenuRadioGroup",[I6,yw]=Vn(gw,{value:void 0,onValueChange:()=>{}}),ww="MenuRadioItem",bw=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=yw(ww,e.__scopeMenu),a=n===o.value;return i.createElement(Dm,{scope:e.__scopeMenu,checked:a},i.createElement(lu,x({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":su(a),onSelect:R(r.onSelect,()=>{var c;return(c=o.onValueChange)===null||c===void 0?void 0:c.call(o,n)},{checkForDefaultPrevented:!1})})))}),Mm="MenuItemIndicator",[Dm,Ew]=Vn(Mm,{checked:!1}),xw=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Ew(Mm,n);return i.createElement(se,{present:r||fc(a.checked)||a.checked===!0},i.createElement(A.span,x({},o,{ref:t,"data-state":su(a.checked)})))}),Cw=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(A.div,x({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),Sw="MenuSub",[A6,Om]=Vn(Sw),wa="MenuSubTrigger",_w=i.forwardRef((e,t)=>{const n=Bn(wa,e.__scopeMenu),r=Ko(wa,e.__scopeMenu),o=Om(wa,e.__scopeMenu),a=cu(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(Pm,x({asChild:!0},u),i.createElement(Tm,x({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Im(n.open)},e,{ref:zo(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,Ro(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,Ro(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===" ")&&rw[r.dir].includes(d.key)){var $;n.onOpenChange(!0),($=n.content)===null||$===void 0||$.focus(),d.preventDefault()}})})))}),Pw="MenuSubContent",Rw=i.forwardRef((e,t)=>{const n=km(pt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Bn(pt,e.__scopeMenu),c=Ko(pt,e.__scopeMenu),l=Om(Pw,e.__scopeMenu),s=i.useRef(null),u=V(t,s);return i.createElement(Po.Provider,{scope:e.__scopeMenu},i.createElement(se,{present:r||a.open},i.createElement(Po.Slot,{scope:e.__scopeMenu},i.createElement(iu,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=ow[c.dir].includes(f.key);if(d&&p){var $;a.onOpenChange(!1),($=l.trigger)===null||$===void 0||$.focus(),f.preventDefault()}})})))))});function Im(e){return e?"open":"closed"}function fc(e){return e==="indeterminate"}function su(e){return fc(e)?"indeterminate":e?"checked":"unchecked"}function kw(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Tw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Mw(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=Tw(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 Dw(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 Ow(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Dw(n,t)}function Ro(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Iw=sw,Am=Pm,uu=dw,du=pw,fu=hw,pu=lu,vu=$w,mu=bw,hu=xw,$u=Cw,gu=_w,yu=Rw,Nm="DropdownMenu",[Aw,N6]=le(Nm,[Wo]),at=Wo(),[Nw,Lm]=Aw(Nm),Lw=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:c,modal:l=!0}=e,s=at(t),u=i.useRef(null),[f=!1,d]=Ze({prop:o,defaultProp:a,onChange:c});return i.createElement(Nw,{scope:t,triggerId:Et(),triggerRef:u,contentId:Et(),open:f,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(p=>!p),[d]),modal:l},i.createElement(Iw,x({},s,{open:f,onOpenChange:d,dir:r,modal:l}),n))},Fw="DropdownMenuTrigger",zw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Lm(Fw,n),c=at(n);return i.createElement(Am,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:zo(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())})})))}),Vw=e=>{const{__scopeDropdownMenu:t,...n}=e,r=at(t);return i.createElement(uu,x({},r,n))},Bw="DropdownMenuContent",Uw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lm(Bw,n),a=at(n),c=i.useRef(!1);return i.createElement(du,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)"}}))}),Hw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.createElement(fu,x({},o,r,{ref:t}))}),Ww=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.createElement(pu,x({},o,r,{ref:t}))}),Kw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.createElement(vu,x({},o,r,{ref:t}))}),jw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.createElement(mu,x({},o,r,{ref:t}))}),Gw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.createElement(hu,x({},o,r,{ref:t}))}),Yw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.createElement($u,x({},o,r,{ref:t}))}),Xw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.createElement(gu,x({},o,r,{ref:t}))}),Qw=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.createElement(yu,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)"}}))}),L6=Lw,F6=zw,z6=Vw,V6=Uw,B6=Hw,U6=Ww,H6=Kw,W6=jw,K6=Gw,j6=Yw,G6=Xw,Y6=Qw;function Un(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 Zw=["color"],X6=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Un(e,Zw);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"}))}),qw=["color"],Q6=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Un(e,qw);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"}))}),Jw=["color"],Z6=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Un(e,Jw);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"}))}),eb=["color"],q6=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Un(e,eb);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"}))}),tb=["color"],J6=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Un(e,tb);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"}))}),nb=["color"],e5=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Un(e,nb);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}))}),rb=["color"],t5=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Un(e,rb);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 Fm="ContextMenu",[ob,n5]=le(Fm,[Wo]),St=Wo(),[r5,ab]=ob(Fm),cb=e=>{const{__scopeContextMenu:t,...n}=e,r=St(t);return i.createElement(uu,x({},r,n))},ib="ContextMenuContent",lb=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ab(ib,n),a=St(n),c=i.useRef(!1);return i.createElement(du,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)"}}))}),sb=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(fu,x({},o,r,{ref:t}))}),ub=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(pu,x({},o,r,{ref:t}))}),db=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(vu,x({},o,r,{ref:t}))}),fb=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(mu,x({},o,r,{ref:t}))}),pb=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(hu,x({},o,r,{ref:t}))}),vb=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement($u,x({},o,r,{ref:t}))}),mb=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(gu,x({},o,r,{ref:t}))}),hb=i.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=St(n);return i.createElement(yu,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)"}}))}),o5=cb,a5=lb,c5=sb,i5=ub,l5=db,s5=fb,u5=pb,d5=vb,f5=mb,p5=hb;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 zm=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}}))),Vm=zm,jo="NavigationMenu",[wu,Bm,$b]=$n(jo),[zl,gb,yb]=$n(jo),[bu,v5]=le(jo,[$b,yb]),[wb,mt]=bu(jo),[bb,Eb]=bu(jo),xb=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),$=V(t,P=>p(P)),y=gn(u),m=i.useRef(0),w=i.useRef(0),h=i.useRef(0),[v,g]=i.useState(!0),[b="",E]=Ze({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(Cb,{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:$})))}),Cb=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(wb,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:Ir(l),baseId:Et(),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(wu.Provider,{scope:t},i.createElement(bb,{scope:t,items:w},c)))},Sb="NavigationMenuList",_b=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=mt(Sb,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(wu.Slot,{scope:n},o.isRootMenu?i.createElement(jm,{asChild:!0},a):a))}),Pb="NavigationMenuItem",[m5,Um]=bu(Pb),ff="NavigationMenuTrigger",Rb=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=mt(ff,e.__scopeNavigationMenu),c=Um(ff,e.__scopeNavigationMenu),l=i.useRef(null),s=V(l,c.triggerRef,t),u=Ym(a.baseId,c.value),f=Xm(a.baseId,c.value),d=i.useRef(!1),p=i.useRef(!1),$=c.value===a.value;return i.createElement(i.Fragment,null,i.createElement(wu.ItemSlot,{scope:n,value:c.value},i.createElement(Lb,{asChild:!0},i.createElement(A.button,x({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":Eu($),"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(Vm,{"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})))}),Hm="NavigationMenuIndicator",kb=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=mt(Hm,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?Ys.createPortal(i.createElement(se,{present:n||a},i.createElement(Tb,x({},r,{ref:t}))),o.indicatorTrack):null}),Tb=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=mt(Hm,n),a=Bm(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}),ko="NavigationMenuContent",Mb=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=mt(ko,e.__scopeNavigationMenu),a=Um(ko,e.__scopeNavigationMenu),c=V(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(Db,x({forceMount:n},s,{ref:c})):i.createElement(se,{present:n||l},i.createElement(Wm,x({"data-state":Eu(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}})))}),Db=i.forwardRef((e,t)=>{const n=mt(ko,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",Wm=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:c,onRootContentClose:l,onContentFocusOutside:s,...u}=e,f=mt(ko,n),d=i.useRef(null),p=V(d,t),$=Ym(f.baseId,r),y=Xm(f.baseId,r),m=Bm(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(jm,{asChild:!0},i.createElement(zn,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=Fb(g.currentTarget),_=document.activeElement,P=C.findIndex(H=>H===_),F=g.shiftKey?C.slice(0,P).reverse():C.slice(P+1,C.length);if(Gm(F))g.preventDefault();else{var S;(S=a.current)===null||S===void 0||S.focus()}}}),onEscapeKeyDown:R(e.onEscapeKeyDown,g=>{c.current=!0})})))}),Km="NavigationMenuViewport",Ob=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!mt(Km,e.__scopeNavigationMenu).value;return i.createElement(se,{present:n||a},i.createElement(Ib,x({},r,{ref:t})))}),Ib=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=mt(Km,n),c=V(t,a.onViewportChange),l=Eb(ko,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":Eu(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(Wm,x({},b,{ref:zo(v,S=>{E&&S&&d(S)})})))}))}),Ab="FocusGroup",jm=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=mt(Ab,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}))))}),pf=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Nb="FocusGroupItem",Lb=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=gb(n),a=mt(Nb,n);return i.createElement(zl.ItemSlot,{scope:n},i.createElement(A.button,x({},r,{ref:t,onKeyDown:R(e.onKeyDown,c=>{if(["Home","End",...pf].includes(c.key)){let s=o().map(d=>d.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(c.key)&&s.reverse(),pf.includes(c.key)){const d=s.indexOf(c.currentTarget);s=s.slice(d+1)}setTimeout(()=>Gm(s)),c.preventDefault()}})})))});function Fb(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 Gm(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 Eu(e){return e?"open":"closed"}function Ym(e,t){return`${e}-trigger-${t}`}function Xm(e,t){return`${e}-content-${t}`}function pc(e){return t=>t.pointerType==="mouse"?e(t):void 0}const h5=xb,$5=_b,g5=Rb,y5=kb,w5=Mb,b5=Ob,Qm="Checkbox",[zb,E5]=le(Qm),[Vb,Bb]=zb(Qm),Ub=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),$=V(t,g=>p(g)),y=i.useRef(!1),m=d?!!d.closest("form"):!0,[w=!1,h]=Ze({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(Vb,{scope:n,state:w,disabled:l},i.createElement(A.button,x({type:"button",role:"checkbox","aria-checked":kn(w)?"mixed":w,"aria-required":c,"data-state":Zm(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=>kn(b)?!0:!b),m&&(y.current=g.isPropagationStopped(),y.current||g.stopPropagation())})})),m&&i.createElement(Kb,{control:d,bubbles:!y.current,name:r,value:s,checked:w,required:c,disabled:l,style:{transform:"translateX(-100%)"}}))}),Hb="CheckboxIndicator",Wb=i.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Bb(Hb,n);return i.createElement(se,{present:r||kn(a.state)||a.state===!0},i.createElement(A.span,x({"data-state":Zm(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),Kb=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=i.useRef(null),c=Ir(n),l=Bo(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=kn(n),d.call(s,kn(n)?!1:n),s.dispatchEvent(p)}},[c,n,r]),i.createElement("input",x({type:"checkbox","aria-hidden":!0,defaultChecked:kn(n)?!1:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function kn(e){return e==="indeterminate"}function Zm(e){return kn(e)?"indeterminate":e?"checked":"unchecked"}const x5=Ub,C5=Wb,qm="Radio",[jb,Jm]=le(qm),[Gb,Yb]=jb(qm),Xb=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=V(t,m=>d(m)),$=i.useRef(!1),y=f?!!f.closest("form"):!0;return i.createElement(Gb,{scope:n,checked:o,disabled:c},i.createElement(A.button,x({type:"button",role:"radio","aria-checked":o,"data-state":e0(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(qb,{control:f,bubbles:!$.current,name:r,value:l,checked:o,required:a,disabled:c,style:{transform:"translateX(-100%)"}}))}),Qb="RadioIndicator",Zb=i.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=Yb(Qb,n);return i.createElement(se,{present:r||a.checked},i.createElement(A.span,x({"data-state":e0(a.checked),"data-disabled":a.disabled?"":void 0},o,{ref:t})))}),qb=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=i.useRef(null),c=Ir(n),l=Bo(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 e0(e){return e?"checked":"unchecked"}const Jb=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],t0="RadioGroup",[e2,S5]=le(t0,[yn,Jm]),n0=yn(),r0=Jm(),[t2,n2]=e2(t0),r2=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,$=n0(n),y=gn(u),[m,w]=Ze({prop:a,defaultProp:o,onChange:d});return i.createElement(t2,{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}))))}),o2="RadioGroupItem",a2=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=n2(o2,n),c=a.disabled||r,l=n0(n),s=r0(n),u=i.useRef(null),f=V(t,u),d=a.value===o.value,p=i.useRef(!1);return i.useEffect(()=>{const $=m=>{Jb.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(Xb,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())})})))}),c2=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=r0(n);return i.createElement(Zb,x({},o,r,{ref:t}))}),_5=r2,P5=a2,R5=c2;function To(e,[t,n]){return Math.min(n,Math.max(t,e))}const i2=[" ","Enter","ArrowUp","ArrowDown"],l2=[" ","Enter"],Bc="Select",[xu,Cu,s2]=$n(Bc),[Ar,k5]=le(Bc,[s2,Ct]),o0=Ct(),[T5,Nr]=Ar(Bc),[M5,u2]=Ar(Bc),d2="SelectTrigger",f2=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=o0(n),c=Nr(d2,n),l=c.disabled||r,s=V(t,c.onTriggerChange),u=Cu(n),[f,d,p]=i0(y=>{const m=u().filter(v=>!v.disabled),w=m.find(v=>v.value===c.value),h=l0(m,y,w);h!==void 0&&c.onValueChange(h.value)}),$=()=>{l||(c.onOpenChange(!0),p())};return i.createElement(um,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":M2(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===" ")&&i2.includes(y.key)&&($(),y.preventDefault())})})))}),p2=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.createElement(A.span,x({"aria-hidden":!0},o,{ref:t}),r||"â–¼")}),v2=e=>i.createElement(Ac,x({asChild:!0},e)),_r="SelectContent",m2=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?hn.createPortal(i.createElement(a0,{scope:e.__scopeSelect},i.createElement(xu.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),a):null}return i.createElement(h2,x({},e,{ref:t}))}),kt=10,[a0,Uc]=Ar(_r),h2=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=V(t,L=>b(L)),[_,P]=i.useState(null),[D,F]=i.useState(null),H=Cu(n),[Y,N]=i.useState(!1),B=i.useRef(!1);i.useEffect(()=>{if(g)return Ho(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,Be,Ue;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)-((Be=(Ue=k.current)===null||Ue===void 0?void 0:Ue.y)!==null&&Be!==void 0?Be: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,z]=i0(L=>{const Z=H().filter(ee=>!ee.disabled),q=Z.find(ee=>ee.ref.current===document.activeElement),J=l0(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"?vf:$2,re=Se===vf?{side:l,sideOffset:s,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:$,sticky:y,hideWhenDetached:m,avoidCollisions:w}:{};return i.createElement(a0,{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:sn,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(zn,{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&&z(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()}})}))))))}),$2=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=V(t,C=>f(C)),p=Cu(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,Be=C.left-te,Ue=C.width+Be,Pt=Math.max(Ue,_.width),Kn=window.innerWidth-kt,Lr=To(te,[kt,Kn-Pt]);l.style.minWidth=Ue+"px",l.style.left=Lr+"px"}else{const ee=_.right-D.right,te=window.innerWidth-P.right-ee,Be=window.innerWidth-C.right-te,Ue=C.width+Be,Pt=Math.max(Ue,_.width),Kn=window.innerWidth-kt,Lr=To(te,[kt,Kn-Pt]);l.style.minWidth=Ue+"px",l.style.right=Lr+"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),z=window.getComputedStyle(m),j=parseInt(z.paddingTop,10),be=parseInt(z.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,Be=Math.max(Se,re+(ee?be:0)+te+X),Ue=Z+Be;l.style.height=Ue+"px"}else{const ee=w===F[0].ref.current;l.style.top="0px";const Be=Math.max(me,B+m.offsetTop+(ee?j:0)+re)+q;l.style.height=Be+"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(g2,{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}}))))}),vf=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=kt,...a}=e,c=o0(n);return i.createElement(Uo,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)"}}))}),[g2,y2]=Ar(_r,{}),mf="SelectViewport",w2=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Uc(mf,n),a=y2(mf,n),c=V(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(xu.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})}))))}),b2="SelectGroup",[D5,E2]=Ar(b2),x2="SelectLabel",C2=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=E2(x2,n);return i.createElement(A.div,x({id:o.id},r,{ref:t}))}),Bl="SelectItem",[S2,c0]=Ar(Bl),_2=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=V(t,h=>{var v;return(v=s.itemRefCallback)===null||v===void 0?void 0:v.call(s,h,r,o)}),m=Et(),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(S2,{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(xu.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===" "||(l2.includes(h.key)&&w(),h.key===" "&&h.preventDefault())})}))))}),ba="SelectItemText",P2=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,c=Nr(ba,n),l=Uc(ba,n),s=c0(ba,n),u=u2(ba,n),[f,d]=i.useState(null),p=V(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?hn.createPortal(a.children,c.valueNode):null)}),R2="SelectItemIndicator",k2=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c0(R2,n).isSelected?i.createElement(A.span,x({"aria-hidden":!0},r,{ref:t})):null}),T2=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.createElement(A.div,x({"aria-hidden":!0},r,{ref:t}))});function M2(e){return e===""||e===void 0}const D2=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),a=V(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(zm,{asChild:!0},i.createElement("select",x({},r,{ref:a,defaultValue:n})))});D2.displayName="BubbleSelect";function i0(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 l0(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.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function O2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const O5=f2,I5=p2,A5=v2,N5=m2,L5=w2,F5=C2,z5=_2,V5=P2,B5=k2,U5=T2,s0="Popover",[u0,H5]=le(s0,[Ct]),I2=Ct(),[W5,Go]=u0(s0),d0="PopoverPortal",[A2,N2]=u0(d0,{forceMount:void 0}),L2=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Go(d0,t);return i.createElement(A2,{scope:t,forceMount:n},i.createElement(se,{present:n||a.open},i.createElement(Ac,{asChild:!0,container:o},r)))},Mo="PopoverContent",F2=i.forwardRef((e,t)=>{const n=N2(Mo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Go(Mo,e.__scopePopover);return i.createElement(se,{present:r||a.open},a.modal?i.createElement(z2,x({},o,{ref:t})):i.createElement(V2,x({},o,{ref:t})))}),z2=i.forwardRef((e,t)=>{const n=Go(Mo,e.__scopePopover),r=i.useRef(null),o=V(t,r),a=i.useRef(!1);return i.useEffect(()=>{const c=r.current;if(c)return Ho(c)},[]),i.createElement(zc,{as:sn,allowPinchZoom:!0},i.createElement(f0,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})})))}),V2=i.forwardRef((e,t)=>{const n=Go(Mo,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return i.createElement(f0,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()}}))}),f0=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=Go(Mo,n),$=I2(n);return Mc(),i.createElement(Dc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},i.createElement(zn,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1)},i.createElement(Uo,x({"data-state":B2(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 B2(e){return e?"open":"closed"}const K5=L2,j5=F2,p0="Dialog",[v0,m0]=le(p0),[U2,_t]=v0(p0),H2=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]=Ze({prop:r,defaultProp:o,onChange:a});return i.createElement(U2,{scope:t,triggerRef:l,contentRef:s,contentId:Et(),titleId:Et(),descriptionId:Et(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(d=>!d),[f]),modal:c},n)},h0="DialogPortal",[W2,$0]=v0(h0,{forceMount:void 0}),K2=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=_t(h0,t);return i.createElement(W2,{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",j2=i.forwardRef((e,t)=>{const n=$0(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(G2,x({},o,{ref:t}))):null}),G2=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(Ul,n);return i.createElement(zc,{as:sn,allowPinchZoom:!0,shards:[o.contentRef]},i.createElement(A.div,x({"data-state":w0(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Pr="DialogContent",Y2=i.forwardRef((e,t)=>{const n=$0(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(X2,x({},o,{ref:t})):i.createElement(Q2,x({},o,{ref:t})))}),X2=i.forwardRef((e,t)=>{const n=_t(Pr,e.__scopeDialog),r=i.useRef(null),o=V(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return Ho(a)},[]),i.createElement(g0,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())}))}),Q2=i.forwardRef((e,t)=>{const n=_t(Pr,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return i.createElement(g0,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()}}))}),g0=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,l=_t(Pr,n),s=i.useRef(null),u=V(t,s);return Mc(),i.createElement(i.Fragment,null,i.createElement(Dc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},i.createElement(zn,x({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":w0(l.open)},c,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),y0="DialogTitle",Z2=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(y0,n);return i.createElement(A.h2,x({id:o.titleId},r,{ref:t}))}),q2="DialogDescription",J2=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(q2,n);return i.createElement(A.p,x({id:o.descriptionId},r,{ref:t}))}),eE="DialogClose",tE=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_t(eE,n);return i.createElement(A.button,x({type:"button"},r,{ref:t,onClick:R(e.onClick,()=>o.onOpenChange(!1))}))});function w0(e){return e?"open":"closed"}const nE="DialogTitleWarning",[rE,G5]=q$(nE,{contentName:Pr,titleName:y0,docsSlug:"dialog"}),Y5=H2,oE=K2,aE=j2,cE=Y2,iE=Z2,lE=J2,b0=tE;function $r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function sE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function E0(...e){return t=>e.forEach(n=>sE(n,t))}function Yo(...e){return i.useCallback(E0(...e),e)}function uE(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,dE(o,...t)]}function dE(...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:()=>{},fE=Hf["useId".toString()]||(()=>{});let pE=0;function Oi(e){const[t,n]=i.useState(fE());return Hl(()=>{e||n(r=>r??String(pE++))},[e]),e||(t?`radix-${t}`:"")}function Nn(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 vE({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=mE({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r,l=Nn(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 mE({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=Nn(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Su=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find($E);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)});Su.displayName="Slot";const Wl=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...gE(r,n.props),ref:E0(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});Wl.displayName="SlotClone";const hE=({children:e})=>i.createElement(i.Fragment,null,e);function $E(e){return i.isValidElement(e)&&e.type===hE}function gE(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 yE=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Hc=yE.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...c}=r,l=a?Su: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 wE(e,t){e&&hn.flushSync(()=>e.dispatchEvent(t))}function bE(e){const t=Nn(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",EE="dismissableLayer.pointerDownOutside",xE="dismissableLayer.focusOutside";let hf;const CE=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),SE=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:l,...s}=e,u=i.useContext(CE),[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=_E(S=>{const C=S.target,_=[...u.branches].some(P=>P.contains(C));!g||_||(o?.(S),c?.(S),S.defaultPrevented||l?.())}),E=PE(S=>{const C=S.target;[...u.branches].some(P=>P.contains(C))||(a?.(S),c?.(S),S.defaultPrevented||l?.())});return bE(S=>{h===u.layers.size-1&&(r?.(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))}),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(hf=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),$f(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=hf)}},[f,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),$f())},[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 _E(e){const t=Nn(e),n=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const o=c=>{if(c.target&&!n.current){let s=function(){x0(EE,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 PE(e){const t=Nn(e),n=i.useRef(!1);return i.useEffect(()=>{const r=o=>{o.target&&!n.current&&x0(xE,t,{originalEvent:o},{discrete:!1})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function $f(){const e=new CustomEvent(Kl);document.dispatchEvent(e)}function x0(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?wE(o,a):o.dispatchEvent(a)}const Ii="focusScope.autoFocusOnMount",Ai="focusScope.autoFocusOnUnmount",gf={bubbles:!1,cancelable:!0},RE=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[l,s]=i.useState(null),u=Nn(o),f=Nn(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:xn(d.current,{select:!0})},w=function(h){$.paused||!l||l.contains(h.relatedTarget)||xn(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){wf.add($);const m=document.activeElement;if(!l.contains(m)){const h=new CustomEvent(Ii,gf);l.addEventListener(Ii,u),l.dispatchEvent(h),h.defaultPrevented||(kE(IE(C0(l)),{select:!0}),document.activeElement===m&&xn(l))}return()=>{l.removeEventListener(Ii,u),setTimeout(()=>{const h=new CustomEvent(Ai,gf);l.addEventListener(Ai,f),l.dispatchEvent(h),h.defaultPrevented||xn(m??document.body,{select:!0}),l.removeEventListener(Ai,f),wf.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]=TE(v);g&&b?!m.shiftKey&&h===b?(m.preventDefault(),n&&xn(g,{select:!0})):m.shiftKey&&h===g&&(m.preventDefault(),n&&xn(b,{select:!0})):h===v&&m.preventDefault()}},[n,r,$.paused]);return i.createElement(Hc.div,x({tabIndex:-1},c,{ref:p,onKeyDown:y}))});function kE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xn(r,{select:t}),document.activeElement!==n)return}function TE(e){const t=C0(e),n=yf(t,e),r=yf(t.reverse(),e);return[n,r]}function C0(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 yf(e,t){for(const n of e)if(!ME(n,{upTo:t}))return n}function ME(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 DE(e){return e instanceof HTMLInputElement&&"select"in e}function xn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&DE(e)&&t&&e.select()}}const wf=OE();function OE(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=bf(e,t),e.unshift(t)},remove(t){var n;e=bf(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function bf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function IE(e){return e.filter(t=>t.tagName!=="A")}const AE=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 NE(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=LE(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 LE(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[l,s]=NE(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&&$&&hn.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 FE(){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:Ef()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Ef()),Ni++,()=>{Ni===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ni--}},[])}function Ef(){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 S0=hm(),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=ru(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),g=p,b=mm([n,t]),E=ke(ke({},v),o);return i.createElement(i.Fragment,null,f&&i.createElement(g,{sideCar:S0,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:co,zeroRight:ao};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,zE=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},VE=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},xf=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=_0(e,n);if(r){var o=P0(e,n),a=o[1],c=o[2];if(a>c)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},BE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},UE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_0=function(e,t){return e==="v"?zE(t):VE(t)},P0=function(e,t){return e==="v"?BE(t):UE(t)},HE=function(e,t){return e==="h"&&t==="rtl"?-1:1},WE=function(e,t,n,r,o){var a=HE(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 $=P0(e,l),y=$[0],m=$[1],w=$[2],h=m-w-a*y;(y||h)&&_0(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]},Cf=function(e){return[e.deltaX,e.deltaY]},Sf=function(e){return e&&"current"in e?e.current:e},KE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},jE=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},GE=0,Zn=[];function YE(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(GE++)[0],a=i.useState(function(){return ou()})[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=vm([e.lockRef.current],(e.shards||[]).map(Sf),!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 _=xf(C,S);if(!_)return!0;if(_?E=C:(E=C==="v"?"h":"v",_=xf(C,S)),!_)return!1;if(!r.current&&"changedTouches"in m&&(g||b)&&(r.current=E),!E)return!0;var P=r.current||E;return WE(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?Cf(w):Ca(w),v=t.current.filter(function(E){return E.name===w.type&&E.target===w.target&&KE(E.delta,h)})[0];if(v&&v.should){w.preventDefault();return}if(!v){var g=(c.current.shards||[]).map(Sf).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,Cf(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:jE(o)}):null,$?i.createElement(wm,{gapMode:"margin"}):null)}const XE=gm(S0,YE);var R0=i.forwardRef(function(e,t){return i.createElement(Kc,ke({},e,{ref:t,sideCar:XE}))});R0.classNames=Kc.classNames;const QE=R0,k0="Dialog",[T0,X5]=uE(k0),[ZE,Hn]=T0(k0),qE=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]=vE({prop:r,defaultProp:o,onChange:a});return i.createElement(ZE,{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)},M0="DialogPortal",[JE,D0]=T0(M0,{forceMount:void 0}),ex=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Hn(M0,t);return i.createElement(JE,{scope:t,forceMount:n},i.Children.map(r,c=>i.createElement(Wc,{present:n||a.open},i.createElement(AE,{asChild:!0,container:o},c))))},Gl="DialogOverlay",tx=i.forwardRef((e,t)=>{const n=D0(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(nx,x({},o,{ref:t}))):null}),nx=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Hn(Gl,n);return i.createElement(QE,{as:Su,allowPinchZoom:!0,shards:[o.contentRef]},i.createElement(Hc.div,x({"data-state":I0(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Do="DialogContent",rx=i.forwardRef((e,t)=>{const n=D0(Do,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Hn(Do,e.__scopeDialog);return i.createElement(Wc,{present:r||a.open},a.modal?i.createElement(ox,x({},o,{ref:t})):i.createElement(ax,x({},o,{ref:t})))}),ox=i.forwardRef((e,t)=>{const n=Hn(Do,e.__scopeDialog),r=i.useRef(null),o=Yo(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return Ho(a)},[]),i.createElement(O0,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())}))}),ax=i.forwardRef((e,t)=>{const n=Hn(Do,e.__scopeDialog),r=i.useRef(!1);return i.createElement(O0,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()}}))}),O0=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,l=Hn(Do,n),s=i.useRef(null),u=Yo(t,s);return FE(),i.createElement(i.Fragment,null,i.createElement(RE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},i.createElement(SE,x({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":I0(l.open)},c,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)});function I0(e){return e?"open":"closed"}const Q5=qE,Z5=ex,q5=tx,J5=rx,A0=["PageUp","PageDown"],N0=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],L0={"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,cx,ix]=$n(Xo),[F0,eC]=le(Xo,[ix]),[lx,jc]=F0(Xo),sx=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=V(t,N=>w(N)),v=i.useRef(new Set),g=i.useRef(0),b=c==="horizontal",E=m?!!m.closest("form"):!0,S=b?ux:dx,[C=[],_]=Ze({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=wx(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=Cx(a),T=Sx(Math.round((N-r)/a)*a+r,X),k=To(T,[r,o]);_((O=[])=>{const z=gx(O,k,B);if(xx(z,s*a)){g.current=z.indexOf(k);const j=String(z)!==String(O);return j&&U&&p(z),j?z:O}else return O})}return i.createElement(lx,{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=A0.includes(N.key)||N.shiftKey&&N0.includes(N.key)?10:1,k=g.current,O=C[k],z=a*T*B;Y(O+z,k,{commit:!0})}}})))),E&&C.map((N,B)=>i.createElement($x,{key:B,name:n?n+(C.length>1?"[]":""):void 0,value:N})))}),[z0,V0]=F0(Xo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ux=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),$=V(t,g=>p(g)),y=i.useRef(),m=gn(o),w=m==="ltr",h=w&&!a||!w&&a;function v(g){const b=y.current||d.getBoundingClientRect(),E=[0,b.width],C=_u(E,h?[n,r]:[r,n]);return y.current=b,C(g-b.left)}return i.createElement(z0,{scope:e.__scopeSlider,startEdge:h?"left":"right",endEdge:h?"right":"left",direction:h?1:-1,size:"width"},i.createElement(B0,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=L0[h?"from-left":"from-right"].includes(g.key);u?.({event:g,direction:E?-1:1})}})))}),dx=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=V(t,f),p=i.useRef(),$=!o;function y(m){const w=p.current||f.current.getBoundingClientRect(),h=[0,w.height],g=_u(h,$?[r,n]:[n,r]);return p.current=w,g(m-w.top)}return i.createElement(z0,{scope:e.__scopeSlider,startEdge:$?"bottom":"top",endEdge:$?"top":"bottom",size:"height",direction:$?1:-1},i.createElement(B0,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=L0[$?"from-bottom":"from-top"].includes(m.key);s?.({event:m,direction:h?-1:1})}})))}),B0=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()):A0.concat(N0).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))})}))}),fx="SliderTrack",px=i.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=jc(fx,n);return i.createElement(A.span,x({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))}),_f="SliderRange",vx=i.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=jc(_f,n),a=V0(_f,n),c=i.useRef(null),l=V(t,c),s=o.values.length,u=o.values.map(p=>U0(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+"%"}}))}),Pf="SliderThumb",mx=i.forwardRef((e,t)=>{const n=cx(e.__scopeSlider),[r,o]=i.useState(null),a=V(t,l=>o(l)),c=i.useMemo(()=>r?n().findIndex(l=>l.ref.current===r):-1,[n,r]);return i.createElement(hx,x({},e,{ref:a,index:c}))}),hx=i.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,a=jc(Pf,n),c=V0(Pf,n),[l,s]=i.useState(null),u=V(t,w=>s(w)),f=Bo(l),d=a.values[r],p=d===void 0?0:U0(d,a.min,a.max),$=yx(r,a.values.length),y=f?.[c.size],m=y?bx(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})}))))}),$x=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 gx(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function U0(e,t,n){const a=100/(n-t)*(e-t);return To(a,[0,100])}function yx(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function wx(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 bx(e,t,n){const r=e/2,a=_u([0,50],[0,r]);return(r-a(t)*n)*n}function Ex(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function xx(e,t){if(t>0){const n=Ex(e);return Math.min(...n)>=t}return!0}function _u(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 Cx(e){return(String(e).split(".")[1]||"").length}function Sx(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const tC=sx,nC=px,rC=vx,oC=mx,H0="Switch",[_x,aC]=le(H0),[Px,Rx]=_x(H0),kx=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),$=V(t,v=>p(v)),y=i.useRef(!1),m=d?!!d.closest("form"):!0,[w=!1,h]=Ze({prop:o,defaultProp:a,onChange:u});return i.createElement(Px,{scope:n,checked:w,disabled:l},i.createElement(A.button,x({type:"button",role:"switch","aria-checked":w,"aria-required":c,"data-state":W0(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(Dx,{control:d,bubbles:!y.current,name:r,value:s,checked:w,required:c,disabled:l,style:{transform:"translateX(-100%)"}}))}),Tx="SwitchThumb",Mx=i.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Rx(Tx,n);return i.createElement(A.span,x({"data-state":W0(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))}),Dx=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=i.useRef(null),c=Ir(n),l=Bo(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 W0(e){return e?"checked":"unchecked"}const cC=kx,iC=Mx,Ox=i.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[c=!1,l]=Ze({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)})}))}),lC=Ox,[Gc,sC]=le("Tooltip",[Ct]),Ix=Ct(),Ax="TooltipProvider",Rf="tooltip.open",[uC,Nx]=Gc(Ax),K0="Tooltip",[dC,Pu]=Gc(K0),Lx="TooltipPortal",[fC,Fx]=Gc(Lx,{forceMount:void 0}),Oo="TooltipContent",zx=i.forwardRef((e,t)=>{const n=Fx(Oo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,c=Pu(Oo,e.__scopeTooltip);return i.createElement(se,{present:r||c.open},c.disableHoverableContent?i.createElement(j0,x({side:o},a,{ref:t})):i.createElement(Vx,x({side:o},a,{ref:t})))}),Vx=i.forwardRef((e,t)=>{const n=Pu(Oo,e.__scopeTooltip),r=Nx(Oo,e.__scopeTooltip),o=i.useRef(null),a=V(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=Ux(h,w.getBoundingClientRect()),g=Hx(h,v),b=Wx(m.getBoundingClientRect()),E=jx([...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=!Kx(h,c);v?p():g&&(p(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[s,f,c,u,p]),i.createElement(j0,x({},e,{ref:a}))}),[Bx,pC]=Gc(K0,{isInside:!1}),j0=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:c,...l}=e,s=Pu(Oo,n),u=Ix(n),{onClose:f}=s;return i.useEffect(()=>(document.addEventListener(Rf,f),()=>document.removeEventListener(Rf,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(zn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:d=>d.preventDefault(),onDismiss:f},i.createElement(Uo,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(Bx,{scope:n,isInside:!0},i.createElement(Vm,{id:s.contentId,role:"tooltip"},o||r))))});function Ux(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 Hx(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 Wx(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 Kx(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 jx(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Gx(t)}function Gx(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 vC=zx,G0="Collapsible",[Yx,Y0]=le(G0),[Xx,Ru]=Yx(G0),Qx=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:c,...l}=e,[s=!1,u]=Ze({prop:r,defaultProp:o,onChange:c});return i.createElement(Xx,{scope:n,disabled:a,contentId:Et(),open:s,onOpenToggle:i.useCallback(()=>u(f=>!f),[u])},i.createElement(A.div,x({"data-state":ku(s),"data-disabled":a?"":void 0},l,{ref:t})))}),Zx="CollapsibleTrigger",qx=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Ru(Zx,n);return i.createElement(A.button,x({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ku(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:R(e.onClick,o.onOpenToggle)}))}),X0="CollapsibleContent",Jx=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ru(X0,e.__scopeCollapsible);return i.createElement(se,{present:n||o.open},({present:a})=>i.createElement(e3,x({},r,{ref:t,present:a})))}),e3=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,c=Ru(X0,n),[l,s]=i.useState(r),u=i.useRef(null),f=V(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":ku(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 ku(e){return e?"open":"closed"}const t3=Qx,n3=qx,r3=Jx,Tu="Menubar",[Xl,o3,a3]=$n(Tu),[Q0,mC]=le(Tu,[a3,yn]),ht=Wo(),Z0=yn(),[c3,q0]=Q0(Tu),i3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:a,loop:c=!0,dir:l,...s}=e,u=gn(l),f=Z0(n),[d="",p]=Ze({prop:r,onChange:o,defaultProp:a}),[$,y]=i.useState(null);return i.createElement(c3,{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}))))))}),l3="MenubarMenu",[hC,J0]=Q0(l3),kf="MenubarTrigger",s3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,a=Z0(n),c=ht(n),l=q0(kf,n),s=J0(kf,n),u=i.useRef(null),f=V(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(Am,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))})))))}),u3=e=>{const{__scopeMenubar:t,...n}=e,r=ht(t);return i.createElement(uu,x({},r,n))},Tf="MenubarContent",d3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,a=ht(n),c=q0(Tf,n),l=J0(Tf,n),s=o3(n),u=i.useRef(!1);return i.createElement(du,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?w3(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)"}}))}),f3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ht(n);return i.createElement(fu,x({},o,r,{ref:t}))}),p3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ht(n);return i.createElement(pu,x({},o,r,{ref:t}))}),v3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ht(n);return i.createElement(vu,x({},o,r,{ref:t}))}),m3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ht(n);return i.createElement(mu,x({},o,r,{ref:t}))}),h3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ht(n);return i.createElement(hu,x({},o,r,{ref:t}))}),$3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ht(n);return i.createElement($u,x({},o,r,{ref:t}))}),g3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ht(n);return i.createElement(gu,x({"data-radix-menubar-subtrigger":""},o,r,{ref:t}))}),y3=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ht(n);return i.createElement(yu,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 w3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const $C=i3,gC=s3,yC=u3,wC=d3,bC=f3,EC=p3,xC=v3,CC=m3,SC=h3,_C=$3,PC=g3,RC=y3,wn="Accordion",b3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Mu,E3,x3]=$n(wn),[Yc,kC]=le(wn,[x3,Y0]),Du=Y0(),C3=W.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return W.createElement(Mu.Provider,{scope:e.__scopeAccordion},n==="multiple"?W.createElement(R3,x({},a,{ref:t})):W.createElement(P3,x({},o,{ref:t})))});C3.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[e1,S3]=Yc(wn),[t1,_3]=Yc(wn,{collapsible:!1}),P3=W.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...c}=e,[l,s]=Ze({prop:n,defaultProp:r,onChange:o});return W.createElement(e1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:W.useCallback(()=>a&&s(""),[a,s])},W.createElement(t1,{scope:e.__scopeAccordion,collapsible:a},W.createElement(n1,x({},c,{ref:t}))))}),R3=W.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[c=[],l]=Ze({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(e1,{scope:e.__scopeAccordion,value:c,onItemOpen:s,onItemClose:u},W.createElement(t1,{scope:e.__scopeAccordion,collapsible:!0},W.createElement(n1,x({},a,{ref:t}))))}),[k3,Xc]=Yc(wn),n1=W.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...c}=e,l=W.useRef(null),s=V(l,t),u=E3(n),d=gn(o)==="ltr",p=R(e.onKeyDown,$=>{var y;if(!b3.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=S3(Ql,n),l=Du(n),s=Et(),u=r&&c.value.includes(r)||!1,f=a.disabled||e.disabled;return W.createElement(T3,{scope:n,open:u,disabled:f,triggerId:s},W.createElement(t3,x({"data-orientation":a.orientation,"data-state":r1(u)},l,o,{ref:t,disabled:f,open:u,onOpenChange:d=>{d?c.onItemOpen(r):c.onItemClose(r)}})))}),D3="AccordionHeader",O3=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xc(wn,n),a=Ou(D3,n);return W.createElement(A.h3,x({"data-orientation":o.orientation,"data-state":r1(a.open),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}),Mf="AccordionTrigger",I3=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xc(wn,n),a=Ou(Mf,n),c=_3(Mf,n),l=Du(n);return W.createElement(Mu.ItemSlot,{scope:n},W.createElement(n3,x({"aria-disabled":a.open&&!c.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId},l,r,{ref:t})))}),A3="AccordionContent",N3=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xc(wn,n),a=Ou(A3,n),c=Du(n);return W.createElement(r3,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 r1(e){return e?"open":"closed"}const TC=M3,MC=O3,DC=I3,OC=N3;function L3(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const o1="ScrollArea",[a1,IC]=le(o1),[F3,ct]=a1(o1),z3=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=V(t,F=>s(F)),D=gn(o);return i.createElement(F3,{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}})))}),V3="ScrollAreaViewport",B3=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...o}=e,a=ct(V3,n),c=i.useRef(null),l=V(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)))}),Ht="ScrollAreaScrollbar",AC=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ct(Ht,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(U3,x({},r,{ref:t,forceMount:n})):o.type==="scroll"?i.createElement(H3,x({},r,{ref:t,forceMount:n})):o.type==="auto"?i.createElement(c1,x({},r,{ref:t,forceMount:n})):o.type==="always"?i.createElement(Iu,x({},r,{ref:t})):null}),U3=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ct(Ht,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(c1,x({"data-state":a?"visible":"hidden"},r,{ref:t})))}),H3=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ct(Ht,e.__scopeScrollArea),a=e.orientation==="horizontal",c=Zc(()=>s("SCROLL_END"),100),[l,s]=L3("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(Iu,x({"data-state":l==="hidden"?"hidden":"visible"},r,{ref:t,onPointerEnter:R(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:R(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),c1=i.forwardRef((e,t)=>{const n=ct(Ht,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=ct(Ht,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=u1(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 Q3(p,c.current,l,$)}return n==="horizontal"?i.createElement(W3,x({},f,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollLeft,$=Df(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(K3,x({},f,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollTop,$=Df(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}),W3=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=ct(Ht,e.__scopeScrollArea),[c,l]=i.useState(),s=i.useRef(null),u=V(t,s,a.onScrollbarXChange);return i.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),i.createElement(l1,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),f1(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)}})}}))}),K3=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=ct(Ht,e.__scopeScrollArea),[c,l]=i.useState(),s=i.useRef(null),u=V(t,s,a.onScrollbarYChange);return i.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),i.createElement(l1,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),f1(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)}})}}))}),[j3,i1]=a1(Ht),l1=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,$=ct(Ht,n),[y,m]=i.useState(null),w=V(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(j3,{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",NC=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=i1(Zl,e.__scopeScrollArea);return i.createElement(se,{present:n||o.hasThumb},i.createElement(G3,x({ref:t},r)))}),G3=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=ct(Zl,n),c=i1(Zl,n),{onThumbPositionChange:l}=c,s=V(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 $=Z3(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)}))}),s1="ScrollAreaCorner",Y3=i.forwardRef((e,t)=>{const n=ct(s1,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?i.createElement(X3,x({},e,{ref:t})):null}),X3=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=ct(s1,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 u1(e,t){const n=e/t;return isNaN(n)?0:n}function Qc(e){const t=u1(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Q3(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 d1([s,u],d)(e)}function Df(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=To(e,s);return d1([0,c],[0,l])(u)}function d1(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 f1(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 LC=z3,FC=B3,zC=Y3,q3="AlertDialog",[J3,VC]=le(q3,[m0]),Wn=m0(),e6=e=>{const{__scopeAlertDialog:t,...n}=e,r=Wn(t);return i.createElement(oE,x({},r,n))},t6=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return i.createElement(aE,x({},o,r,{ref:t}))}),p1="AlertDialogContent",[n6,r6]=J3(p1),o6=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=Wn(n),c=i.useRef(null),l=V(t,c),s=i.useRef(null);return i.createElement(rE,{contentName:p1,titleName:a6,docsSlug:"alert-dialog"},i.createElement(n6,{scope:n,cancelRef:s},i.createElement(cE,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)))}),a6="AlertDialogTitle",c6=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return i.createElement(iE,x({},o,r,{ref:t}))}),i6=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return i.createElement(lE,x({},o,r,{ref:t}))}),l6=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Wn(n);return i.createElement(b0,x({},o,r,{ref:t}))}),s6="AlertDialogCancel",u6=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=r6(s6,n),a=Wn(n),c=V(t,o);return i.createElement(b0,x({},a,r,{ref:c}))}),BC=e6,UC=t6,HC=o6,WC=l6,KC=u6,jC=c6,GC=i6,v1="Tabs",[d6,YC]=le(v1,[yn]),m1=yn(),[XC,Au]=d6(v1),f6="TabsList",p6=i.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Au(f6,n),c=m1(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})))}),v6="TabsTrigger",m6=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,c=Au(v6,n),l=m1(n),s=h1(c.baseId,r),u=$1(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)})})))}),h6="TabsContent",$6=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...c}=e,l=Au(h6,n),s=h1(l.baseId,r),u=$1(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 h1(e,t){return`${e}-trigger-${t}`}function $1(e,t){return`${e}-content-${t}`}const QC=p6,ZC=m6,qC=$6;let Fi;const g1="HoverCard",[y1,JC]=le(g1,[Ct]),g6=Ct(),[e7,w1]=y1(g1),y6="HoverCardPortal",[t7,w6]=y1(y6,{forceMount:void 0}),ql="HoverCardContent",b6=i.forwardRef((e,t)=>{const n=w6(ql,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=w1(ql,e.__scopeHoverCard);return i.createElement(se,{present:r||a.open},i.createElement(E6,x({"data-state":a.open?"open":"closed"},o,{onPointerEnter:R(e.onPointerEnter,Of(a.onOpen)),onPointerLeave:R(e.onPointerLeave,Of(a.onClose)),ref:t})))}),E6=i.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,...l}=e,s=w1(ql,n),u=g6(n),f=i.useRef(null),d=V(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&&x6(f.current).forEach(m=>m.setAttribute("tabindex","-1"))}),i.createElement(zn,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:c,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:R(a,y=>{y.preventDefault()}),onDismiss:s.onDismiss},i.createElement(Uo,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 Of(e){return t=>t.pointerType==="touch"?void 0:e()}function x6(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 n7=b6,b1="Progress",qc=100,[C6,r7]=le(b1),[S6,_6]=C6(b1),E1=i.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:a=k6,...c}=e,l=Jl(o)?o:qc,s=C1(r,l)?r:null,u=mc(s)?a(s,l):void 0;return i.createElement(S6,{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":x1(s,l),"data-value":s??void 0,"data-max":l},c,{ref:t})))});E1.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!Jl(r)?new Error(T6(o,n)):null},value(e,t,n){const r=e[t],o=String(r),a=Jl(e.max)?e.max:qc;return r!=null&&!C1(r,a)?new Error(M6(o,n)):null}};const P6="ProgressIndicator",R6=i.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...o}=e,a=_6(P6,r);return i.createElement(A.div,x({"data-state":x1(a.value,a.max),"data-value":(n=a.value)!==null&&n!==void 0?n:void 0,"data-max":a.max},o,{ref:t}))});function k6(e,t){return`${Math.round(e/t*100)}%`}function x1(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 C1(e,t){return mc(e)&&!isNaN(e)&&e<=t&&e>=0}function T6(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 M6(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 o7=E1,a7=R6;export{D6 as $,h5 as A,$5 as B,q6 as C,e5 as D,g5 as E,Z6 as F,w5 as G,b5 as H,y5 as I,x5 as J,C5 as K,_5 as L,P5 as M,R5 as N,O5 as O,I5 as P,X6 as Q,A5 as R,N5 as S,L5 as T,F5 as U,z5 as V,B5 as W,V5 as X,U5 as Y,K5 as Z,j5 as _,hn as a,aE as a0,cE as a1,b0 as a2,J6 as a3,iE as a4,lE as a5,oE as a6,Y5 as a7,If as a8,Q5 as a9,DC as aA,OC as aB,LC as aC,FC as aD,zC as aE,AC as aF,NC as aG,UC as aH,HC as aI,jC as aJ,GC as aK,WC as aL,KC as aM,BC as aN,QC as aO,ZC as aP,qC as aQ,n7 as aR,o7 as aS,a7 as aT,W as aU,Z5 as aa,q5 as ab,J5 as ac,t5 as ad,tC as ae,nC as af,rC as ag,oC as ah,cC as ai,iC as aj,lC as ak,vC as al,$C as am,gC as an,PC as ao,RC as ap,yC as aq,wC as ar,EC as as,xC as at,SC as au,CC as av,bC as aw,_C as ax,TC as ay,MC as az,sn as b,G6 as c,Y6 as d,z6 as e,V6 as f,U6 as g,H6 as h,K6 as i,Q6 as j,W6 as k,B6 as l,j6 as m,L6 as n,F6 as o,f5 as p,p5 as q,i as r,o5 as s,a5 as t,i5 as u,l5 as v,u5 as w,s5 as x,c5 as y,d5 as z}; diff --git a/assets/radix-ui-723067b7.js b/assets/radix-ui-723067b7.js deleted file mode 100644 index 84c4a8d..0000000 --- a/assets/radix-ui-723067b7.js +++ /dev/null @@ -1,6 +0,0 @@ -import{r as t,_ as m,a as Ve,R as O,$ as go,u as Tc,b as Dc,o as Ic,s as Ac,f as Oc,c as Nc,d as kc,h as Fc,l as Lc,e as un,g as Qe,i as mt,j as Kc}from"./vendor-96015797.js";function Vc(e,o){typeof e=="function"?e(o):e!=null&&(e.current=o)}function Je(...e){return o=>e.forEach(n=>Vc(n,o))}function D(...e){return t.useCallback(Je(...e),e)}const xe=t.forwardRef((e,o)=>{const{children:n,...r}=e,c=t.Children.toArray(n),a=c.find(Uc);if(a){const s=a.props.children,i=c.map(l=>l===a?t.Children.count(s)>1?t.Children.only(null):t.isValidElement(s)?s.props.children:null:l);return t.createElement(Gt,m({},r,{ref:o}),t.isValidElement(s)?t.cloneElement(s,void 0,i):null)}return t.createElement(Gt,m({},r,{ref:o}),n)});xe.displayName="Slot";const Gt=t.forwardRef((e,o)=>{const{children:n,...r}=e;return t.isValidElement(n)?t.cloneElement(n,{...Bc(r,n.props),ref:o?Je(o,n.ref):n.ref}):t.Children.count(n)>1?t.Children.only(null):null});Gt.displayName="SlotClone";const fn=({children:e})=>t.createElement(t.Fragment,null,e);function Uc(e){return t.isValidElement(e)&&e.type===fn}function Bc(e,o){const n={...o};for(const r in o){const c=e[r],a=o[r];/^on[A-Z]/.test(r)?c&&a?n[r]=(...i)=>{a(...i),c(...i)}:c&&(n[r]=c):r==="style"?n[r]={...c,...a}:r==="className"&&(n[r]=[c,a].filter(Boolean).join(" "))}return{...e,...n}}const Hc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],y=Hc.reduce((e,o)=>{const n=t.forwardRef((r,c)=>{const{asChild:a,...s}=r,i=a?xe:o;return t.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.createElement(i,m({},s,{ref:c}))});return n.displayName=`Primitive.${o}`,{...e,[o]:n}},{});function Eo(e,o){e&&Ve.flushSync(()=>e.dispatchEvent(o))}const Wc=t.forwardRef((e,o)=>t.createElement(y.label,m({},e,{ref:o,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),e$=Wc;function w(e,o,{checkForDefaultPrevented:n=!0}={}){return function(c){if(e?.(c),n===!1||!c.defaultPrevented)return o?.(c)}}function Gc(e,o){const n=t.createContext(o);function r(a){const{children:s,...i}=a,l=t.useMemo(()=>i,Object.values(i));return t.createElement(n.Provider,{value:l},s)}function c(a){const s=t.useContext(n);if(s)return s;if(o!==void 0)return o;throw new Error(`\`${a}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,c]}function z(e,o=[]){let n=[];function r(a,s){const i=t.createContext(s),l=n.length;n=[...n,s];function f(u){const{scope:$,children:b,...p}=u,v=$?.[e][l]||i,x=t.useMemo(()=>p,Object.values(p));return t.createElement(v.Provider,{value:x},b)}function d(u,$){const b=$?.[e][l]||i,p=t.useContext(b);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return f.displayName=a+"Provider",[f,d]}const c=()=>{const a=n.map(s=>t.createContext(s));return function(i){const l=i?.[e]||a;return t.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return c.scopeName=e,[r,zc(c,...o)]}function zc(...e){const o=e[0];if(e.length===1)return o;const n=()=>{const r=e.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:f})=>{const u=l(a)[`__scope${f}`];return{...i,...u}},{});return t.useMemo(()=>({[`__scope${o.scopeName}`]:s}),[s])}};return n.scopeName=o.scopeName,n}function G(e){const o=t.useRef(e);return t.useEffect(()=>{o.current=e}),t.useMemo(()=>(...n)=>{var r;return(r=o.current)===null||r===void 0?void 0:r.call(o,...n)},[])}function re({prop:e,defaultProp:o,onChange:n=()=>{}}){const[r,c]=Yc({defaultProp:o,onChange:n}),a=e!==void 0,s=a?e:r,i=G(n),l=t.useCallback(f=>{if(a){const u=typeof f=="function"?f(e):f;u!==e&&i(u)}else c(f)},[a,e,c,i]);return[s,l]}function Yc({defaultProp:e,onChange:o}){const n=t.useState(e),[r]=n,c=t.useRef(r),a=G(o);return t.useEffect(()=>{c.current!==r&&(a(r),c.current=r)},[r,c,a]),n}function we(e){const o=e+"CollectionProvider",[n,r]=z(o),[c,a]=n(o,{collectionRef:{current:null},itemMap:new Map}),s=b=>{const{scope:p,children:v}=b,x=O.useRef(null),h=O.useRef(new Map).current;return O.createElement(c,{scope:p,itemMap:h,collectionRef:x},v)},i=e+"CollectionSlot",l=O.forwardRef((b,p)=>{const{scope:v,children:x}=b,h=a(i,v),E=D(p,h.collectionRef);return O.createElement(xe,{ref:E},x)}),f=e+"CollectionItemSlot",d="data-radix-collection-item",u=O.forwardRef((b,p)=>{const{scope:v,children:x,...h}=b,E=O.useRef(null),g=D(p,E),C=a(f,v);return O.useEffect(()=>(C.itemMap.set(E,{ref:E,...h}),()=>void C.itemMap.delete(E))),O.createElement(xe,{[d]:"",ref:g},x)});function $(b){const p=a(e+"CollectionConsumer",b);return O.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const h=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(p.itemMap.values()).sort((C,_)=>h.indexOf(C.ref.current)-h.indexOf(_.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:s,Slot:l,ItemSlot:u},$,r]}const Xc=t.createContext(void 0);function Ce(e){const o=t.useContext(Xc);return e||o||"ltr"}function jc(e,o=globalThis?.document){const n=G(e);t.useEffect(()=>{const r=c=>{c.key==="Escape"&&n(c)};return o.addEventListener("keydown",r),()=>o.removeEventListener("keydown",r)},[n,o])}const zt="dismissableLayer.update",qc="dismissableLayer.pointerDownOutside",Zc="dismissableLayer.focusOutside";let Gn;const Qc=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Me=t.forwardRef((e,o)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:c,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...f}=e,d=t.useContext(Qc),[u,$]=t.useState(null),b=(n=u?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,p]=t.useState({}),v=D(o,T=>$(T)),x=Array.from(d.layers),[h]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),E=x.indexOf(h),g=u?x.indexOf(u):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,_=g>=E,R=Jc(T=>{const P=T.target,A=[...d.branches].some(K=>K.contains(P));!_||A||(a?.(T),i?.(T),T.defaultPrevented||l?.())},b),S=ea(T=>{const P=T.target;[...d.branches].some(K=>K.contains(P))||(s?.(T),i?.(T),T.defaultPrevented||l?.())},b);return jc(T=>{g===d.layers.size-1&&(c?.(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},b),t.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Gn=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),zn(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Gn)}},[u,b,r,d]),t.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),zn())},[u,d]),t.useEffect(()=>{const T=()=>p({});return document.addEventListener(zt,T),()=>document.removeEventListener(zt,T)},[]),t.createElement(y.div,m({},f,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:w(e.onFocusCapture,S.onFocusCapture),onBlurCapture:w(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:w(e.onPointerDownCapture,R.onPointerDownCapture)}))});function Jc(e,o=globalThis?.document){const n=G(e),r=t.useRef(!1),c=t.useRef(()=>{});return t.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let f=function(){xo(qc,n,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(o.removeEventListener("click",c.current),c.current=f,o.addEventListener("click",c.current,{once:!0})):f()}else o.removeEventListener("click",c.current);r.current=!1},s=window.setTimeout(()=>{o.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),o.removeEventListener("pointerdown",a),o.removeEventListener("click",c.current)}},[o,n]),{onPointerDownCapture:()=>r.current=!0}}function ea(e,o=globalThis?.document){const n=G(e),r=t.useRef(!1);return t.useEffect(()=>{const c=a=>{a.target&&!r.current&&xo(Zc,n,{originalEvent:a},{discrete:!1})};return o.addEventListener("focusin",c),()=>o.removeEventListener("focusin",c)},[o,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zn(){const e=new CustomEvent(zt);document.dispatchEvent(e)}function xo(e,o,n,{discrete:r}){const c=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});o&&c.addEventListener(e,o,{once:!0}),r?Eo(c,a):c.dispatchEvent(a)}let Nt=0;function ht(){t.useEffect(()=>{var e,o;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Yn()),document.body.insertAdjacentElement("beforeend",(o=n[1])!==null&&o!==void 0?o:Yn()),Nt++,()=>{Nt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Nt--}},[])}function Yn(){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 kt="focusScope.autoFocusOnMount",Ft="focusScope.autoFocusOnUnmount",Xn={bubbles:!1,cancelable:!0},gt=t.forwardRef((e,o)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:a,...s}=e,[i,l]=t.useState(null),f=G(c),d=G(a),u=t.useRef(null),$=D(o,v=>l(v)),b=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(r){let v=function(g){if(b.paused||!i)return;const C=g.target;i.contains(C)?u.current=C:Ee(u.current,{select:!0})},x=function(g){if(b.paused||!i)return;const C=g.relatedTarget;C!==null&&(i.contains(C)||Ee(u.current,{select:!0}))},h=function(g){if(document.activeElement===document.body)for(const _ of g)_.removedNodes.length>0&&Ee(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",x);const E=new MutationObserver(h);return i&&E.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),E.disconnect()}}},[r,i,b.paused]),t.useEffect(()=>{if(i){qn.add(b);const v=document.activeElement;if(!i.contains(v)){const h=new CustomEvent(kt,Xn);i.addEventListener(kt,f),i.dispatchEvent(h),h.defaultPrevented||(ta(aa(wo(i)),{select:!0}),document.activeElement===v&&Ee(i))}return()=>{i.removeEventListener(kt,f),setTimeout(()=>{const h=new CustomEvent(Ft,Xn);i.addEventListener(Ft,d),i.dispatchEvent(h),h.defaultPrevented||Ee(v??document.body,{select:!0}),i.removeEventListener(Ft,d),qn.remove(b)},0)}}},[i,f,d,b]);const p=t.useCallback(v=>{if(!n&&!r||b.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,h=document.activeElement;if(x&&h){const E=v.currentTarget,[g,C]=na(E);g&&C?!v.shiftKey&&h===C?(v.preventDefault(),n&&Ee(g,{select:!0})):v.shiftKey&&h===g&&(v.preventDefault(),n&&Ee(C,{select:!0})):h===E&&v.preventDefault()}},[n,r,b.paused]);return t.createElement(y.div,m({tabIndex:-1},s,{ref:$,onKeyDown:p}))});function ta(e,{select:o=!1}={}){const n=document.activeElement;for(const r of e)if(Ee(r,{select:o}),document.activeElement!==n)return}function na(e){const o=wo(e),n=jn(o,e),r=jn(o.reverse(),e);return[n,r]}function wo(e){const o=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)o.push(n.currentNode);return o}function jn(e,o){for(const n of e)if(!oa(n,{upTo:o}))return n}function oa(e,{upTo:o}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(o!==void 0&&e===o)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ra(e){return e instanceof HTMLInputElement&&"select"in e}function Ee(e,{select:o=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ra(e)&&o&&e.select()}}const qn=ca();function ca(){let e=[];return{add(o){const n=e[0];o!==n&&n?.pause(),e=Zn(e,o),e.unshift(o)},remove(o){var n;e=Zn(e,o),(n=e[0])===null||n===void 0||n.resume()}}}function Zn(e,o){const n=[...e],r=n.indexOf(o);return r!==-1&&n.splice(r,1),n}function aa(e){return e.filter(o=>o.tagName!=="A")}const ee=globalThis?.document?t.useLayoutEffect:()=>{},sa=go["useId".toString()]||(()=>{});let ia=0;function $e(e){const[o,n]=t.useState(sa());return ee(()=>{e||n(r=>r??String(ia++))},[e]),e||(o?`radix-${o}`:"")}function et(e){const[o,n]=t.useState(void 0);return ee(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const a=c[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,f=Array.isArray(l)?l[0]:l;s=f.inlineSize,i=f.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),o}const Co="Popper",[_o,pe]=z(Co),[la,Po]=_o(Co),da=e=>{const{__scopePopper:o,children:n}=e,[r,c]=t.useState(null);return t.createElement(la,{scope:o,anchor:r,onAnchorChange:c},n)},ua="PopperAnchor",fa=t.forwardRef((e,o)=>{const{__scopePopper:n,virtualRef:r,...c}=e,a=Po(ua,n),s=t.useRef(null),i=D(o,s);return t.useEffect(()=>{a.onAnchorChange(r?.current||s.current)}),r?null:t.createElement(y.div,m({},c,{ref:i}))}),So="PopperContent",[$a,t$]=_o(So),pa=t.forwardRef((e,o)=>{var n,r,c,a,s,i,l,f;const{__scopePopper:d,side:u="bottom",sideOffset:$=0,align:b="center",alignOffset:p=0,arrowPadding:v=0,avoidCollisions:x=!0,collisionBoundary:h=[],collisionPadding:E=0,sticky:g="partial",hideWhenDetached:C=!1,updatePositionStrategy:_="optimized",onPlaced:R,...S}=e,T=Po(So,d),[P,A]=t.useState(null),K=D(o,me=>A(me)),[X,q]=t.useState(null),N=et(X),k=(n=N?.width)!==null&&n!==void 0?n:0,Q=(r=N?.height)!==null&&r!==void 0?r:0,te=u+(b!=="center"?"-"+b:""),j=typeof E=="number"?E:{top:0,right:0,bottom:0,left:0,...E},M=Array.isArray(h)?h:[h],F=M.length>0,L={padding:j,boundary:M.filter(ba),altBoundary:F},{refs:J,floatingStyles:ce,placement:ae,isPositioned:se,middlewareData:Z}=Tc({strategy:"fixed",placement:te,whileElementsMounted:(...me)=>Dc(...me,{animationFrame:_==="always"}),elements:{reference:T.anchor},middleware:[Ic({mainAxis:$+Q,alignmentAxis:p}),x&&Ac({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?Lc():void 0,...L}),x&&Oc({...L}),Nc({...L,apply:({elements:me,rects:Ne,availableWidth:We,availableHeight:Rc})=>{const{width:yc,height:Mc}=Ne.reference,it=me.floating.style;it.setProperty("--radix-popper-available-width",`${We}px`),it.setProperty("--radix-popper-available-height",`${Rc}px`),it.setProperty("--radix-popper-anchor-width",`${yc}px`),it.setProperty("--radix-popper-anchor-height",`${Mc}px`)}}),X&&kc({element:X,padding:v}),va({arrowWidth:k,arrowHeight:Q}),C&&Fc({strategy:"referenceHidden",...L})]}),[I,V]=Ro(ae),U=G(R);ee(()=>{se&&U?.()},[se,U]);const B=(c=Z.arrow)===null||c===void 0?void 0:c.x,H=(a=Z.arrow)===null||a===void 0?void 0:a.y,W=((s=Z.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[ne,oe]=t.useState();return ee(()=>{P&&oe(window.getComputedStyle(P).zIndex)},[P]),t.createElement("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:se?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(i=Z.transformOrigin)===null||i===void 0?void 0:i.x,(l=Z.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},t.createElement($a,{scope:d,placedSide:I,onArrowChange:q,arrowX:B,arrowY:H,shouldHideArrow:W},t.createElement(y.div,m({"data-side":I,"data-align":V},S,{ref:K,style:{...S.style,animation:se?void 0:"none",opacity:(f=Z.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0}}))))});function ba(e){return e!==null}const va=e=>({name:"transformOrigin",options:e,fn(o){var n,r,c,a,s;const{placement:i,rects:l,middlewareData:f}=o,u=((n=f.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,$=u?0:e.arrowWidth,b=u?0:e.arrowHeight,[p,v]=Ro(i),x={start:"0%",center:"50%",end:"100%"}[v],h=((r=(c=f.arrow)===null||c===void 0?void 0:c.x)!==null&&r!==void 0?r:0)+$/2,E=((a=(s=f.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+b/2;let g="",C="";return p==="bottom"?(g=u?x:`${h}px`,C=`${-b}px`):p==="top"?(g=u?x:`${h}px`,C=`${l.floating.height+b}px`):p==="right"?(g=`${-b}px`,C=u?x:`${E}px`):p==="left"&&(g=`${l.floating.width+b}px`,C=u?x:`${E}px`),{data:{x:g,y:C}}}});function Ro(e){const[o,n="center"]=e.split("-");return[o,n]}const ma=da,yo=fa,tt=pa,Et=t.forwardRef((e,o)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...c}=e;return r?un.createPortal(t.createElement(y.div,m({},c,{ref:o})),r):null});function ha(e,o){return t.useReducer((n,r)=>{const c=o[n][r];return c??n},e)}const Y=e=>{const{present:o,children:n}=e,r=ga(o),c=typeof n=="function"?n({present:r.isPresent}):t.Children.only(n),a=D(r.ref,c.ref);return typeof n=="function"||r.isPresent?t.cloneElement(c,{ref:a}):null};Y.displayName="Presence";function ga(e){const[o,n]=t.useState(),r=t.useRef({}),c=t.useRef(e),a=t.useRef("none"),s=e?"mounted":"unmounted",[i,l]=ha(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{const f=lt(r.current);a.current=i==="mounted"?f:"none"},[i]),ee(()=>{const f=r.current,d=c.current;if(d!==e){const $=a.current,b=lt(f);e?l("MOUNT"):b==="none"||f?.display==="none"?l("UNMOUNT"):l(d&&$!==b?"ANIMATION_OUT":"UNMOUNT"),c.current=e}},[e,l]),ee(()=>{if(o){const f=u=>{const b=lt(r.current).includes(u.animationName);u.target===o&&b&&Ve.flushSync(()=>l("ANIMATION_END"))},d=u=>{u.target===o&&(a.current=lt(r.current))};return o.addEventListener("animationstart",d),o.addEventListener("animationcancel",f),o.addEventListener("animationend",f),()=>{o.removeEventListener("animationstart",d),o.removeEventListener("animationcancel",f),o.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[o,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:t.useCallback(f=>{f&&(r.current=getComputedStyle(f)),n(f)},[])}}function lt(e){return e?.animationName||"none"}const Lt="rovingFocusGroup.onEntryFocus",Ea={bubbles:!1,cancelable:!0},$n="RovingFocusGroup",[Yt,Mo,xa]=we($n),[wa,_e]=z($n,[xa]),[Ca,_a]=wa($n),Pa=t.forwardRef((e,o)=>t.createElement(Yt.Provider,{scope:e.__scopeRovingFocusGroup},t.createElement(Yt.Slot,{scope:e.__scopeRovingFocusGroup},t.createElement(Sa,m({},e,{ref:o}))))),Sa=t.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:c=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:f,...d}=e,u=t.useRef(null),$=D(o,u),b=Ce(a),[p=null,v]=re({prop:s,defaultProp:i,onChange:l}),[x,h]=t.useState(!1),E=G(f),g=Mo(n),C=t.useRef(!1),[_,R]=t.useState(0);return t.useEffect(()=>{const S=u.current;if(S)return S.addEventListener(Lt,E),()=>S.removeEventListener(Lt,E)},[E]),t.createElement(Ca,{scope:n,orientation:r,dir:b,loop:c,currentTabStopId:p,onItemFocus:t.useCallback(S=>v(S),[v]),onItemShiftTab:t.useCallback(()=>h(!0),[]),onFocusableItemAdd:t.useCallback(()=>R(S=>S+1),[]),onFocusableItemRemove:t.useCallback(()=>R(S=>S-1),[])},t.createElement(y.div,m({tabIndex:x||_===0?-1:0,"data-orientation":r},d,{ref:$,style:{outline:"none",...e.style},onMouseDown:w(e.onMouseDown,()=>{C.current=!0}),onFocus:w(e.onFocus,S=>{const T=!C.current;if(S.target===S.currentTarget&&T&&!x){const P=new CustomEvent(Lt,Ea);if(S.currentTarget.dispatchEvent(P),!P.defaultPrevented){const A=g().filter(k=>k.focusable),K=A.find(k=>k.active),X=A.find(k=>k.id===p),N=[K,X,...A].filter(Boolean).map(k=>k.ref.current);To(N)}}C.current=!1}),onBlur:w(e.onBlur,()=>h(!1))})))}),Ra="RovingFocusGroupItem",ya=t.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:c=!1,tabStopId:a,...s}=e,i=$e(),l=a||i,f=_a(Ra,n),d=f.currentTabStopId===l,u=Mo(n),{onFocusableItemAdd:$,onFocusableItemRemove:b}=f;return t.useEffect(()=>{if(r)return $(),()=>b()},[r,$,b]),t.createElement(Yt.ItemSlot,{scope:n,id:l,focusable:r,active:c},t.createElement(y.span,m({tabIndex:d?0:-1,"data-orientation":f.orientation},s,{ref:o,onMouseDown:w(e.onMouseDown,p=>{r?f.onItemFocus(l):p.preventDefault()}),onFocus:w(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:w(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){f.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const v=Da(p,f.orientation,f.dir);if(v!==void 0){p.preventDefault();let h=u().filter(E=>E.focusable).map(E=>E.ref.current);if(v==="last")h.reverse();else if(v==="prev"||v==="next"){v==="prev"&&h.reverse();const E=h.indexOf(p.currentTarget);h=f.loop?Ia(h,E+1):h.slice(E+1)}setTimeout(()=>To(h))}})})))}),Ma={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ta(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Da(e,o,n){const r=Ta(e.key,n);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Ma[r]}function To(e){const o=document.activeElement;for(const n of e)if(n===o||(n.focus(),document.activeElement!==o))return}function Ia(e,o){return e.map((n,r)=>e[(o+r)%e.length])}const xt=Pa,wt=ya,Xt=["Enter"," "],Aa=["ArrowDown","PageUp","Home"],Do=["ArrowUp","PageDown","End"],Oa=[...Aa,...Do],Na={ltr:[...Xt,"ArrowRight"],rtl:[...Xt,"ArrowLeft"]},ka={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ct="Menu",[Ge,Fa,La]=we(Ct),[Te,nt]=z(Ct,[La,pe,_e]),pn=pe(),Io=_e(),[Ka,De]=Te(Ct),[Va,ot]=Te(Ct),Ua=e=>{const{__scopeMenu:o,open:n=!1,children:r,dir:c,onOpenChange:a,modal:s=!0}=e,i=pn(o),[l,f]=t.useState(null),d=t.useRef(!1),u=G(a),$=Ce(c);return t.useEffect(()=>{const b=()=>{d.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},p=()=>d.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),t.createElement(ma,i,t.createElement(Ka,{scope:o,open:n,onOpenChange:u,content:l,onContentChange:f},t.createElement(Va,{scope:o,onClose:t.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:d,dir:$,modal:s},r)))},Ao=t.forwardRef((e,o)=>{const{__scopeMenu:n,...r}=e,c=pn(n);return t.createElement(yo,m({},c,r,{ref:o}))}),Oo="MenuPortal",[Ba,No]=Te(Oo,{forceMount:void 0}),Ha=e=>{const{__scopeMenu:o,forceMount:n,children:r,container:c}=e,a=De(Oo,o);return t.createElement(Ba,{scope:o,forceMount:n},t.createElement(Y,{present:n||a.open},t.createElement(Et,{asChild:!0,container:c},r)))},de="MenuContent",[Wa,bn]=Te(de),Ga=t.forwardRef((e,o)=>{const n=No(de,e.__scopeMenu),{forceMount:r=n.forceMount,...c}=e,a=De(de,e.__scopeMenu),s=ot(de,e.__scopeMenu);return t.createElement(Ge.Provider,{scope:e.__scopeMenu},t.createElement(Y,{present:r||a.open},t.createElement(Ge.Slot,{scope:e.__scopeMenu},s.modal?t.createElement(za,m({},c,{ref:o})):t.createElement(Ya,m({},c,{ref:o})))))}),za=t.forwardRef((e,o)=>{const n=De(de,e.__scopeMenu),r=t.useRef(null),c=D(o,r);return t.useEffect(()=>{const a=r.current;if(a)return Qe(a)},[]),t.createElement(vn,m({},e,{ref:c,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:w(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),Ya=t.forwardRef((e,o)=>{const n=De(de,e.__scopeMenu);return t.createElement(vn,m({},e,{ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),vn=t.forwardRef((e,o)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:c,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:$,onDismiss:b,disableOutsideScroll:p,...v}=e,x=De(de,n),h=ot(de,n),E=pn(n),g=Io(n),C=Fa(n),[_,R]=t.useState(null),S=t.useRef(null),T=D(o,S,x.onContentChange),P=t.useRef(0),A=t.useRef(""),K=t.useRef(0),X=t.useRef(null),q=t.useRef("right"),N=t.useRef(0),k=p?mt:t.Fragment,Q=p?{as:xe,allowPinchZoom:!0}:void 0,te=M=>{var F,L;const J=A.current+M,ce=C().filter(U=>!U.disabled),ae=document.activeElement,se=(F=ce.find(U=>U.ref.current===ae))===null||F===void 0?void 0:F.textValue,Z=ce.map(U=>U.textValue),I=ls(Z,J,se),V=(L=ce.find(U=>U.textValue===I))===null||L===void 0?void 0:L.ref.current;(function U(B){A.current=B,window.clearTimeout(P.current),B!==""&&(P.current=window.setTimeout(()=>U(""),1e3))})(J),V&&setTimeout(()=>V.focus())};t.useEffect(()=>()=>window.clearTimeout(P.current),[]),ht();const j=t.useCallback(M=>{var F,L;return q.current===((F=X.current)===null||F===void 0?void 0:F.side)&&us(M,(L=X.current)===null||L===void 0?void 0:L.area)},[]);return t.createElement(Wa,{scope:n,searchRef:A,onItemEnter:t.useCallback(M=>{j(M)&&M.preventDefault()},[j]),onItemLeave:t.useCallback(M=>{var F;j(M)||((F=S.current)===null||F===void 0||F.focus(),R(null))},[j]),onTriggerLeave:t.useCallback(M=>{j(M)&&M.preventDefault()},[j]),pointerGraceTimerRef:K,onPointerGraceIntentChange:t.useCallback(M=>{X.current=M},[])},t.createElement(k,Q,t.createElement(gt,{asChild:!0,trapped:c,onMountAutoFocus:w(a,M=>{var F;M.preventDefault(),(F=S.current)===null||F===void 0||F.focus()}),onUnmountAutoFocus:s},t.createElement(Me,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:$,onDismiss:b},t.createElement(xt,m({asChild:!0},g,{dir:h.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:R,onEntryFocus:w(l,M=>{h.isUsingKeyboardRef.current||M.preventDefault()})}),t.createElement(tt,m({role:"menu","aria-orientation":"vertical","data-state":Vo(x.open),"data-radix-menu-content":"",dir:h.dir},E,v,{ref:T,style:{outline:"none",...v.style},onKeyDown:w(v.onKeyDown,M=>{const L=M.target.closest("[data-radix-menu-content]")===M.currentTarget,J=M.ctrlKey||M.altKey||M.metaKey,ce=M.key.length===1;L&&(M.key==="Tab"&&M.preventDefault(),!J&&ce&&te(M.key));const ae=S.current;if(M.target!==ae||!Oa.includes(M.key))return;M.preventDefault();const Z=C().filter(I=>!I.disabled).map(I=>I.ref.current);Do.includes(M.key)&&Z.reverse(),ss(Z)}),onBlur:w(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(P.current),A.current="")}),onPointerMove:w(e.onPointerMove,ze(M=>{const F=M.target,L=N.current!==M.clientX;if(M.currentTarget.contains(F)&&L){const J=M.clientX>N.current?"right":"left";q.current=J,N.current=M.clientX}}))})))))))}),Xa=t.forwardRef((e,o)=>{const{__scopeMenu:n,...r}=e;return t.createElement(y.div,m({},r,{ref:o}))}),jt="MenuItem",Qn="menu.itemSelect",mn=t.forwardRef((e,o)=>{const{disabled:n=!1,onSelect:r,...c}=e,a=t.useRef(null),s=ot(jt,e.__scopeMenu),i=bn(jt,e.__scopeMenu),l=D(o,a),f=t.useRef(!1),d=()=>{const u=a.current;if(!n&&u){const $=new CustomEvent(Qn,{bubbles:!0,cancelable:!0});u.addEventListener(Qn,b=>r?.(b),{once:!0}),Eo(u,$),$.defaultPrevented?f.current=!1:s.onClose()}};return t.createElement(ko,m({},c,{ref:l,disabled:n,onClick:w(e.onClick,d),onPointerDown:u=>{var $;($=e.onPointerDown)===null||$===void 0||$.call(e,u),f.current=!0},onPointerUp:w(e.onPointerUp,u=>{var $;f.current||($=u.currentTarget)===null||$===void 0||$.click()}),onKeyDown:w(e.onKeyDown,u=>{const $=i.searchRef.current!=="";n||$&&u.key===" "||Xt.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),ko=t.forwardRef((e,o)=>{const{__scopeMenu:n,disabled:r=!1,textValue:c,...a}=e,s=bn(jt,n),i=Io(n),l=t.useRef(null),f=D(o,l),[d,u]=t.useState(!1),[$,b]=t.useState("");return t.useEffect(()=>{const p=l.current;if(p){var v;b(((v=p.textContent)!==null&&v!==void 0?v:"").trim())}},[a.children]),t.createElement(Ge.ItemSlot,{scope:n,disabled:r,textValue:c??$},t.createElement(wt,m({asChild:!0},i,{focusable:!r}),t.createElement(y.div,m({role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:f,onPointerMove:w(e.onPointerMove,ze(p=>{r?s.onItemLeave(p):(s.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus())})),onPointerLeave:w(e.onPointerLeave,ze(p=>s.onItemLeave(p))),onFocus:w(e.onFocus,()=>u(!0)),onBlur:w(e.onBlur,()=>u(!1))}))))}),ja=t.forwardRef((e,o)=>{const{checked:n=!1,onCheckedChange:r,...c}=e;return t.createElement(Lo,{scope:e.__scopeMenu,checked:n},t.createElement(mn,m({role:"menuitemcheckbox","aria-checked":$t(n)?"mixed":n},c,{ref:o,"data-state":hn(n),onSelect:w(c.onSelect,()=>r?.($t(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),qa="MenuRadioGroup",[n$,Za]=Te(qa,{value:void 0,onValueChange:()=>{}}),Qa="MenuRadioItem",Ja=t.forwardRef((e,o)=>{const{value:n,...r}=e,c=Za(Qa,e.__scopeMenu),a=n===c.value;return t.createElement(Lo,{scope:e.__scopeMenu,checked:a},t.createElement(mn,m({role:"menuitemradio","aria-checked":a},r,{ref:o,"data-state":hn(a),onSelect:w(r.onSelect,()=>{var s;return(s=c.onValueChange)===null||s===void 0?void 0:s.call(c,n)},{checkForDefaultPrevented:!1})})))}),Fo="MenuItemIndicator",[Lo,es]=Te(Fo,{checked:!1}),ts=t.forwardRef((e,o)=>{const{__scopeMenu:n,forceMount:r,...c}=e,a=es(Fo,n);return t.createElement(Y,{present:r||$t(a.checked)||a.checked===!0},t.createElement(y.span,m({},c,{ref:o,"data-state":hn(a.checked)})))}),ns=t.forwardRef((e,o)=>{const{__scopeMenu:n,...r}=e;return t.createElement(y.div,m({role:"separator","aria-orientation":"horizontal"},r,{ref:o}))}),os="MenuSub",[o$,Ko]=Te(os),dt="MenuSubTrigger",rs=t.forwardRef((e,o)=>{const n=De(dt,e.__scopeMenu),r=ot(dt,e.__scopeMenu),c=Ko(dt,e.__scopeMenu),a=bn(dt,e.__scopeMenu),s=t.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,f={__scopeMenu:e.__scopeMenu},d=t.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return t.useEffect(()=>d,[d]),t.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),l(null)}},[i,l]),t.createElement(Ao,m({asChild:!0},f),t.createElement(ko,m({id:c.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":c.contentId,"data-state":Vo(n.open)},e,{ref:Je(o,c.onTriggerChange),onClick:u=>{var $;($=e.onClick)===null||$===void 0||$.call(e,u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:w(e.onPointerMove,ze(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:w(e.onPointerLeave,ze(u=>{var $;d();const b=($=n.content)===null||$===void 0?void 0:$.getBoundingClientRect();if(b){var p;const v=(p=n.content)===null||p===void 0?void 0:p.dataset.side,x=v==="right",h=x?-5:5,E=b[x?"left":"right"],g=b[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+h,y:u.clientY},{x:E,y:b.top},{x:g,y:b.top},{x:g,y:b.bottom},{x:E,y:b.bottom}],side:v}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:w(e.onKeyDown,u=>{const $=a.searchRef.current!=="";if(!(e.disabled||$&&u.key===" ")&&Na[r.dir].includes(u.key)){var b;n.onOpenChange(!0),(b=n.content)===null||b===void 0||b.focus(),u.preventDefault()}})})))}),cs="MenuSubContent",as=t.forwardRef((e,o)=>{const n=No(de,e.__scopeMenu),{forceMount:r=n.forceMount,...c}=e,a=De(de,e.__scopeMenu),s=ot(de,e.__scopeMenu),i=Ko(cs,e.__scopeMenu),l=t.useRef(null),f=D(o,l);return t.createElement(Ge.Provider,{scope:e.__scopeMenu},t.createElement(Y,{present:r||a.open},t.createElement(Ge.Slot,{scope:e.__scopeMenu},t.createElement(vn,m({id:i.contentId,"aria-labelledby":i.triggerId},c,{ref:f,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var u;s.isUsingKeyboardRef.current&&((u=l.current)===null||u===void 0||u.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:w(e.onFocusOutside,d=>{d.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:w(e.onEscapeKeyDown,d=>{s.onClose(),d.preventDefault()}),onKeyDown:w(e.onKeyDown,d=>{const u=d.currentTarget.contains(d.target),$=ka[s.dir].includes(d.key);if(u&&$){var b;a.onOpenChange(!1),(b=i.trigger)===null||b===void 0||b.focus(),d.preventDefault()}})})))))});function Vo(e){return e?"open":"closed"}function $t(e){return e==="indeterminate"}function hn(e){return $t(e)?"indeterminate":e?"checked":"unchecked"}function ss(e){const o=document.activeElement;for(const n of e)if(n===o||(n.focus(),document.activeElement!==o))return}function is(e,o){return e.map((n,r)=>e[(o+r)%e.length])}function ls(e,o,n){const c=o.length>1&&Array.from(o).every(f=>f===o[0])?o[0]:o,a=n?e.indexOf(n):-1;let s=is(e,Math.max(a,0));c.length===1&&(s=s.filter(f=>f!==n));const l=s.find(f=>f.toLowerCase().startsWith(c.toLowerCase()));return l!==n?l:void 0}function ds(e,o){const{x:n,y:r}=e;let c=!1;for(let a=0,s=o.length-1;ar!=d>r&&n<(f-i)*(r-l)/(d-l)+i&&(c=!c)}return c}function us(e,o){if(!o)return!1;const n={x:e.clientX,y:e.clientY};return ds(n,o)}function ze(e){return o=>o.pointerType==="mouse"?e(o):void 0}const fs=Ua,Uo=Ao,gn=Ha,En=Ga,xn=Xa,wn=mn,Cn=ja,_n=Ja,Pn=ts,Sn=ns,Rn=rs,yn=as,Bo="DropdownMenu",[$s,r$]=z(Bo,[nt]),ie=nt(),[ps,Ho]=$s(Bo),bs=e=>{const{__scopeDropdownMenu:o,children:n,dir:r,open:c,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=ie(o),f=t.useRef(null),[d=!1,u]=re({prop:c,defaultProp:a,onChange:s});return t.createElement(ps,{scope:o,triggerId:$e(),triggerRef:f,contentId:$e(),open:d,onOpenChange:u,onOpenToggle:t.useCallback(()=>u($=>!$),[u]),modal:i},t.createElement(fs,m({},l,{open:d,onOpenChange:u,dir:r,modal:i}),n))},vs="DropdownMenuTrigger",ms=t.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...c}=e,a=Ho(vs,n),s=ie(n);return t.createElement(Uo,m({asChild:!0},s),t.createElement(y.button,m({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},c,{ref:Je(o,a.triggerRef),onPointerDown:w(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:w(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})))}),hs=e=>{const{__scopeDropdownMenu:o,...n}=e,r=ie(o);return t.createElement(gn,m({},r,n))},gs="DropdownMenuContent",Es=t.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,c=Ho(gs,n),a=ie(n),s=t.useRef(!1);return t.createElement(En,m({id:c.contentId,"aria-labelledby":c.triggerId},a,r,{ref:o,onCloseAutoFocus:w(e.onCloseAutoFocus,i=>{var l;s.current||(l=c.triggerRef.current)===null||l===void 0||l.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:w(e.onInteractOutside,i=>{const l=i.detail.originalEvent,f=l.button===0&&l.ctrlKey===!0,d=l.button===2||f;(!c.modal||d)&&(s.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)"}}))}),xs=t.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,c=ie(n);return t.createElement(xn,m({},c,r,{ref:o}))}),ws=t.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,c=ie(n);return t.createElement(wn,m({},c,r,{ref:o}))}),Cs=t.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,c=ie(n);return t.createElement(Cn,m({},c,r,{ref:o}))}),_s=t.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,c=ie(n);return t.createElement(_n,m({},c,r,{ref:o}))}),Ps=t.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,c=ie(n);return t.createElement(Pn,m({},c,r,{ref:o}))}),Ss=t.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,c=ie(n);return t.createElement(Sn,m({},c,r,{ref:o}))}),Rs=t.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,c=ie(n);return t.createElement(Rn,m({},c,r,{ref:o}))}),ys=t.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,c=ie(n);return t.createElement(yn,m({},c,r,{ref:o,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)"}}))}),c$=bs,a$=ms,s$=hs,i$=Es,l$=xs,d$=ws,u$=Cs,f$=_s,$$=Ps,p$=Ss,b$=Rs,v$=ys;function Ie(e,o){if(e==null)return{};var n={},r=Object.keys(e),c,a;for(a=0;a=0)&&(n[c]=e[c]);return n}var Ms=["color"],m$=t.forwardRef(function(e,o){var n=e.color,r=n===void 0?"currentColor":n,c=Ie(e,Ms);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:o}),t.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"}))}),Ts=["color"],h$=t.forwardRef(function(e,o){var n=e.color,r=n===void 0?"currentColor":n,c=Ie(e,Ts);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:o}),t.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"}))}),Ds=["color"],g$=t.forwardRef(function(e,o){var n=e.color,r=n===void 0?"currentColor":n,c=Ie(e,Ds);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:o}),t.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"}))}),Is=["color"],E$=t.forwardRef(function(e,o){var n=e.color,r=n===void 0?"currentColor":n,c=Ie(e,Is);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:o}),t.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"}))}),As=["color"],x$=t.forwardRef(function(e,o){var n=e.color,r=n===void 0?"currentColor":n,c=Ie(e,As);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:o}),t.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"}))}),Os=["color"],w$=t.forwardRef(function(e,o){var n=e.color,r=n===void 0?"currentColor":n,c=Ie(e,Os);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:o}),t.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}))}),Ns=["color"],C$=t.forwardRef(function(e,o){var n=e.color,r=n===void 0?"currentColor":n,c=Ie(e,Ns);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:o}),t.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 Wo="ContextMenu",[ks,_$]=z(Wo,[nt]),be=nt(),[P$,Fs]=ks(Wo),Ls=e=>{const{__scopeContextMenu:o,...n}=e,r=be(o);return t.createElement(gn,m({},r,n))},Ks="ContextMenuContent",Vs=t.forwardRef((e,o)=>{const{__scopeContextMenu:n,...r}=e,c=Fs(Ks,n),a=be(n),s=t.useRef(!1);return t.createElement(En,m({},a,r,{ref:o,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{var l;(l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,i),!i.defaultPrevented&&s.current&&i.preventDefault(),s.current=!1},onInteractOutside:i=>{var l;(l=e.onInteractOutside)===null||l===void 0||l.call(e,i),!i.defaultPrevented&&!c.modal&&(s.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)"}}))}),Us=t.forwardRef((e,o)=>{const{__scopeContextMenu:n,...r}=e,c=be(n);return t.createElement(xn,m({},c,r,{ref:o}))}),Bs=t.forwardRef((e,o)=>{const{__scopeContextMenu:n,...r}=e,c=be(n);return t.createElement(wn,m({},c,r,{ref:o}))}),Hs=t.forwardRef((e,o)=>{const{__scopeContextMenu:n,...r}=e,c=be(n);return t.createElement(Cn,m({},c,r,{ref:o}))}),Ws=t.forwardRef((e,o)=>{const{__scopeContextMenu:n,...r}=e,c=be(n);return t.createElement(_n,m({},c,r,{ref:o}))}),Gs=t.forwardRef((e,o)=>{const{__scopeContextMenu:n,...r}=e,c=be(n);return t.createElement(Pn,m({},c,r,{ref:o}))}),zs=t.forwardRef((e,o)=>{const{__scopeContextMenu:n,...r}=e,c=be(n);return t.createElement(Sn,m({},c,r,{ref:o}))}),Ys=t.forwardRef((e,o)=>{const{__scopeContextMenu:n,...r}=e,c=be(n);return t.createElement(Rn,m({},c,r,{ref:o}))}),Xs=t.forwardRef((e,o)=>{const{__scopeContextMenu:n,...r}=e,c=be(n);return t.createElement(yn,m({},c,r,{ref:o,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)"}}))}),S$=Ls,R$=Vs,y$=Us,M$=Bs,T$=Hs,D$=Ws,I$=Gs,A$=zs,O$=Ys,N$=Xs;function Ue(e){const o=t.useRef({value:e,previous:e});return t.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}const Go=t.forwardRef((e,o)=>t.createElement(y.span,m({},e,{ref:o,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}}))),zo=Go,rt="NavigationMenu",[Mn,Yo,js]=we(rt),[qt,qs,Zs]=we(rt),[Tn,k$]=z(rt,[js,Zs]),[Qs,ue]=Tn(rt),[Js,ei]=Tn(rt),ti=t.forwardRef((e,o)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:c,defaultValue:a,delayDuration:s=200,skipDelayDuration:i=300,orientation:l="horizontal",dir:f,...d}=e,[u,$]=t.useState(null),b=D(o,P=>$(P)),p=Ce(f),v=t.useRef(0),x=t.useRef(0),h=t.useRef(0),[E,g]=t.useState(!0),[C="",_]=re({prop:r,onChange:P=>{const A=P!=="",K=i>0;A?(window.clearTimeout(h.current),K&&g(!1)):(window.clearTimeout(h.current),h.current=window.setTimeout(()=>g(!0),i)),c?.(P)},defaultProp:a}),R=t.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>_(""),150)},[_]),S=t.useCallback(P=>{window.clearTimeout(x.current),_(P)},[_]),T=t.useCallback(P=>{C===P?window.clearTimeout(x.current):v.current=window.setTimeout(()=>{window.clearTimeout(x.current),_(P)},s)},[C,_,s]);return t.useEffect(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(x.current),window.clearTimeout(h.current)},[]),t.createElement(ni,{scope:n,isRootMenu:!0,value:C,dir:p,orientation:l,rootNavigationMenu:u,onTriggerEnter:P=>{window.clearTimeout(v.current),E?T(P):S(P)},onTriggerLeave:()=>{window.clearTimeout(v.current),R()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:R,onItemSelect:P=>{_(A=>A===P?"":P)},onItemDismiss:()=>_("")},t.createElement(y.nav,m({"aria-label":"Main","data-orientation":l,dir:p},d,{ref:b})))}),ni=e=>{const{scope:o,isRootMenu:n,rootNavigationMenu:r,dir:c,orientation:a,children:s,value:i,onItemSelect:l,onItemDismiss:f,onTriggerEnter:d,onTriggerLeave:u,onContentEnter:$,onContentLeave:b}=e,[p,v]=t.useState(null),[x,h]=t.useState(new Map),[E,g]=t.useState(null);return t.createElement(Qs,{scope:o,isRootMenu:n,rootNavigationMenu:r,value:i,previousValue:Ue(i),baseId:$e(),dir:c,orientation:a,viewport:p,onViewportChange:v,indicatorTrack:E,onIndicatorTrackChange:g,onTriggerEnter:G(d),onTriggerLeave:G(u),onContentEnter:G($),onContentLeave:G(b),onItemSelect:G(l),onItemDismiss:G(f),onViewportContentChange:t.useCallback((C,_)=>{h(R=>(R.set(C,_),new Map(R)))},[]),onViewportContentRemove:t.useCallback(C=>{h(_=>_.has(C)?(_.delete(C),new Map(_)):_)},[])},t.createElement(Mn.Provider,{scope:o},t.createElement(Js,{scope:o,items:x},s)))},oi="NavigationMenuList",ri=t.forwardRef((e,o)=>{const{__scopeNavigationMenu:n,...r}=e,c=ue(oi,n),a=t.createElement(y.ul,m({"data-orientation":c.orientation},r,{ref:o}));return t.createElement(y.div,{style:{position:"relative"},ref:c.onIndicatorTrackChange},t.createElement(Mn.Slot,{scope:n},c.isRootMenu?t.createElement(Qo,{asChild:!0},a):a))}),ci="NavigationMenuItem",[F$,Xo]=Tn(ci),Jn="NavigationMenuTrigger",ai=t.forwardRef((e,o)=>{const{__scopeNavigationMenu:n,disabled:r,...c}=e,a=ue(Jn,e.__scopeNavigationMenu),s=Xo(Jn,e.__scopeNavigationMenu),i=t.useRef(null),l=D(i,s.triggerRef,o),f=er(a.baseId,s.value),d=tr(a.baseId,s.value),u=t.useRef(!1),$=t.useRef(!1),b=s.value===a.value;return t.createElement(t.Fragment,null,t.createElement(Mn.ItemSlot,{scope:n,value:s.value},t.createElement(bi,{asChild:!0},t.createElement(y.button,m({id:f,disabled:r,"data-disabled":r?"":void 0,"data-state":Dn(b),"aria-expanded":b,"aria-controls":d},c,{ref:l,onPointerEnter:w(e.onPointerEnter,()=>{$.current=!1,s.wasEscapeCloseRef.current=!1}),onPointerMove:w(e.onPointerMove,pt(()=>{r||$.current||s.wasEscapeCloseRef.current||u.current||(a.onTriggerEnter(s.value),u.current=!0)})),onPointerLeave:w(e.onPointerLeave,pt(()=>{r||(a.onTriggerLeave(),u.current=!1)})),onClick:w(e.onClick,()=>{a.onItemSelect(s.value),$.current=b}),onKeyDown:w(e.onKeyDown,p=>{const x={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];b&&p.key===x&&(s.onEntryKeyDown(),p.preventDefault())})})))),b&&t.createElement(t.Fragment,null,t.createElement(zo,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:p=>{const v=s.contentRef.current,x=p.relatedTarget,h=x===i.current,E=v?.contains(x);(h||!E)&&s.onFocusProxyEnter(h?"start":"end")}}),a.viewport&&t.createElement("span",{"aria-owns":d})))}),jo="NavigationMenuIndicator",si=t.forwardRef((e,o)=>{const{forceMount:n,...r}=e,c=ue(jo,e.__scopeNavigationMenu),a=!!c.value;return c.indicatorTrack?un.createPortal(t.createElement(Y,{present:n||a},t.createElement(ii,m({},r,{ref:o}))),c.indicatorTrack):null}),ii=t.forwardRef((e,o)=>{const{__scopeNavigationMenu:n,...r}=e,c=ue(jo,n),a=Yo(n),[s,i]=t.useState(null),[l,f]=t.useState(null),d=c.orientation==="horizontal",u=!!c.value;t.useEffect(()=>{var b;const v=(b=a().find(x=>x.value===c.value))===null||b===void 0?void 0:b.ref.current;v&&i(v)},[a,c.value]);const $=()=>{s&&f({size:d?s.offsetWidth:s.offsetHeight,offset:d?s.offsetLeft:s.offsetTop})};return Zt(s,$),Zt(c.indicatorTrack,$),l?t.createElement(y.div,m({"aria-hidden":!0,"data-state":u?"visible":"hidden","data-orientation":c.orientation},r,{ref:o,style:{position:"absolute",...d?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null}),Ye="NavigationMenuContent",li=t.forwardRef((e,o)=>{const{forceMount:n,...r}=e,c=ue(Ye,e.__scopeNavigationMenu),a=Xo(Ye,e.__scopeNavigationMenu),s=D(a.contentRef,o),i=a.value===c.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return c.viewport?t.createElement(di,m({forceMount:n},l,{ref:s})):t.createElement(Y,{present:n||i},t.createElement(qo,m({"data-state":Dn(i)},l,{ref:s,onPointerEnter:w(e.onPointerEnter,c.onContentEnter),onPointerLeave:w(e.onPointerLeave,pt(c.onContentLeave)),style:{pointerEvents:!i&&c.isRootMenu?"none":void 0,...l.style}})))}),di=t.forwardRef((e,o)=>{const n=ue(Ye,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:c}=n;return ee(()=>{r(e.value,{ref:o,...e})},[e,o,r]),ee(()=>()=>c(e.value),[e.value,c]),null}),Kt="navigationMenu.rootContentDismiss",qo=t.forwardRef((e,o)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:c,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:i,onContentFocusOutside:l,...f}=e,d=ue(Ye,n),u=t.useRef(null),$=D(u,o),b=er(d.baseId,r),p=tr(d.baseId,r),v=Yo(n),x=t.useRef(null),{onItemDismiss:h}=d;t.useEffect(()=>{const g=u.current;if(d.isRootMenu&&g){const C=()=>{var _;h(),i(),g.contains(document.activeElement)&&((_=c.current)===null||_===void 0||_.focus())};return g.addEventListener(Kt,C),()=>g.removeEventListener(Kt,C)}},[d.isRootMenu,e.value,c,h,i]);const E=t.useMemo(()=>{const C=v().map(A=>A.value);d.dir==="rtl"&&C.reverse();const _=C.indexOf(d.value),R=C.indexOf(d.previousValue),S=r===d.value,T=R===C.indexOf(r);if(!S&&!T)return x.current;const P=(()=>{if(_!==R){if(S&&R!==-1)return _>R?"from-end":"from-start";if(T&&_!==-1)return _>R?"to-start":"to-end"}return null})();return x.current=P,P},[d.previousValue,d.value,d.dir,v,r]);return t.createElement(Qo,{asChild:!0},t.createElement(Me,m({id:p,"aria-labelledby":b,"data-motion":E,"data-orientation":d.orientation},f,{ref:$,onDismiss:()=>{var g;const C=new Event(Kt,{bubbles:!0,cancelable:!0});(g=u.current)===null||g===void 0||g.dispatchEvent(C)},onFocusOutside:w(e.onFocusOutside,g=>{var C;l();const _=g.target;(C=d.rootNavigationMenu)!==null&&C!==void 0&&C.contains(_)&&g.preventDefault()}),onPointerDownOutside:w(e.onPointerDownOutside,g=>{var C;const _=g.target,R=v().some(T=>{var P;return(P=T.ref.current)===null||P===void 0?void 0:P.contains(_)}),S=d.isRootMenu&&((C=d.viewport)===null||C===void 0?void 0:C.contains(_));(R||S||!d.isRootMenu)&&g.preventDefault()}),onKeyDown:w(e.onKeyDown,g=>{const C=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!C){const S=vi(g.currentTarget),T=document.activeElement,P=S.findIndex(X=>X===T),K=g.shiftKey?S.slice(0,P).reverse():S.slice(P+1,S.length);if(Jo(K))g.preventDefault();else{var R;(R=a.current)===null||R===void 0||R.focus()}}}),onEscapeKeyDown:w(e.onEscapeKeyDown,g=>{s.current=!0})})))}),Zo="NavigationMenuViewport",ui=t.forwardRef((e,o)=>{const{forceMount:n,...r}=e,a=!!ue(Zo,e.__scopeNavigationMenu).value;return t.createElement(Y,{present:n||a},t.createElement(fi,m({},r,{ref:o})))}),fi=t.forwardRef((e,o)=>{const{__scopeNavigationMenu:n,children:r,...c}=e,a=ue(Zo,n),s=D(o,a.onViewportChange),i=ei(Ye,e.__scopeNavigationMenu),[l,f]=t.useState(null),[d,u]=t.useState(null),$=l?l?.width+"px":void 0,b=l?l?.height+"px":void 0,p=!!a.value,v=p?a.value:a.previousValue;return Zt(d,()=>{d&&f({width:d.offsetWidth,height:d.offsetHeight})}),t.createElement(y.div,m({"data-state":Dn(p),"data-orientation":a.orientation},c,{ref:s,style:{pointerEvents:!p&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":$,"--radix-navigation-menu-viewport-height":b,...c.style},onPointerEnter:w(e.onPointerEnter,a.onContentEnter),onPointerLeave:w(e.onPointerLeave,pt(a.onContentLeave))}),Array.from(i.items).map(([h,{ref:E,forceMount:g,...C}])=>{const _=v===h;return t.createElement(Y,{key:h,present:g||_},t.createElement(qo,m({},C,{ref:Je(E,R=>{_&&R&&u(R)})})))}))}),$i="FocusGroup",Qo=t.forwardRef((e,o)=>{const{__scopeNavigationMenu:n,...r}=e,c=ue($i,n);return t.createElement(qt.Provider,{scope:n},t.createElement(qt.Slot,{scope:n},t.createElement(y.div,m({dir:c.dir},r,{ref:o}))))}),eo=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],pi="FocusGroupItem",bi=t.forwardRef((e,o)=>{const{__scopeNavigationMenu:n,...r}=e,c=qs(n),a=ue(pi,n);return t.createElement(qt.ItemSlot,{scope:n},t.createElement(y.button,m({},r,{ref:o,onKeyDown:w(e.onKeyDown,s=>{if(["Home","End",...eo].includes(s.key)){let l=c().map(u=>u.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(s.key)&&l.reverse(),eo.includes(s.key)){const u=l.indexOf(s.currentTarget);l=l.slice(u+1)}setTimeout(()=>Jo(l)),s.preventDefault()}})})))});function vi(e){const o=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)o.push(n.currentNode);return o}function Jo(e){const o=document.activeElement;return e.some(n=>n===o?!0:(n.focus(),document.activeElement!==o))}function Zt(e,o){const n=G(o);ee(()=>{let r=0;if(e){const c=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return c.observe(e),()=>{window.cancelAnimationFrame(r),c.unobserve(e)}}},[e,n])}function Dn(e){return e?"open":"closed"}function er(e,o){return`${e}-trigger-${o}`}function tr(e,o){return`${e}-content-${o}`}function pt(e){return o=>o.pointerType==="mouse"?e(o):void 0}const L$=ti,K$=ri,V$=ai,U$=si,B$=li,H$=ui,nr="Checkbox",[mi,W$]=z(nr),[hi,gi]=mi(nr),Ei=t.forwardRef((e,o)=>{const{__scopeCheckbox:n,name:r,checked:c,defaultChecked:a,required:s,disabled:i,value:l="on",onCheckedChange:f,...d}=e,[u,$]=t.useState(null),b=D(o,g=>$(g)),p=t.useRef(!1),v=u?!!u.closest("form"):!0,[x=!1,h]=re({prop:c,defaultProp:a,onChange:f}),E=t.useRef(x);return t.useEffect(()=>{const g=u?.form;if(g){const C=()=>h(E.current);return g.addEventListener("reset",C),()=>g.removeEventListener("reset",C)}},[u,h]),t.createElement(hi,{scope:n,state:x,disabled:i},t.createElement(y.button,m({type:"button",role:"checkbox","aria-checked":Re(x)?"mixed":x,"aria-required":s,"data-state":or(x),"data-disabled":i?"":void 0,disabled:i,value:l},d,{ref:b,onKeyDown:w(e.onKeyDown,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:w(e.onClick,g=>{h(C=>Re(C)?!0:!C),v&&(p.current=g.isPropagationStopped(),p.current||g.stopPropagation())})})),v&&t.createElement(Ci,{control:u,bubbles:!p.current,name:r,value:l,checked:x,required:s,disabled:i,style:{transform:"translateX(-100%)"}}))}),xi="CheckboxIndicator",wi=t.forwardRef((e,o)=>{const{__scopeCheckbox:n,forceMount:r,...c}=e,a=gi(xi,n);return t.createElement(Y,{present:r||Re(a.state)||a.state===!0},t.createElement(y.span,m({"data-state":or(a.state),"data-disabled":a.disabled?"":void 0},c,{ref:o,style:{pointerEvents:"none",...e.style}})))}),Ci=e=>{const{control:o,checked:n,bubbles:r=!0,...c}=e,a=t.useRef(null),s=Ue(n),i=et(o);return t.useEffect(()=>{const l=a.current,f=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(f,"checked").set;if(s!==n&&u){const $=new Event("click",{bubbles:r});l.indeterminate=Re(n),u.call(l,Re(n)?!1:n),l.dispatchEvent($)}},[s,n,r]),t.createElement("input",m({type:"checkbox","aria-hidden":!0,defaultChecked:Re(n)?!1:n},c,{tabIndex:-1,ref:a,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Re(e){return e==="indeterminate"}function or(e){return Re(e)?"indeterminate":e?"checked":"unchecked"}const G$=Ei,z$=wi,rr="Radio",[_i,cr]=z(rr),[Pi,Si]=_i(rr),Ri=t.forwardRef((e,o)=>{const{__scopeRadio:n,name:r,checked:c=!1,required:a,disabled:s,value:i="on",onCheck:l,...f}=e,[d,u]=t.useState(null),$=D(o,v=>u(v)),b=t.useRef(!1),p=d?!!d.closest("form"):!0;return t.createElement(Pi,{scope:n,checked:c,disabled:s},t.createElement(y.button,m({type:"button",role:"radio","aria-checked":c,"data-state":ar(c),"data-disabled":s?"":void 0,disabled:s,value:i},f,{ref:$,onClick:w(e.onClick,v=>{c||l?.(),p&&(b.current=v.isPropagationStopped(),b.current||v.stopPropagation())})})),p&&t.createElement(Ti,{control:d,bubbles:!b.current,name:r,value:i,checked:c,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),yi="RadioIndicator",Mi=t.forwardRef((e,o)=>{const{__scopeRadio:n,forceMount:r,...c}=e,a=Si(yi,n);return t.createElement(Y,{present:r||a.checked},t.createElement(y.span,m({"data-state":ar(a.checked),"data-disabled":a.disabled?"":void 0},c,{ref:o})))}),Ti=e=>{const{control:o,checked:n,bubbles:r=!0,...c}=e,a=t.useRef(null),s=Ue(n),i=et(o);return t.useEffect(()=>{const l=a.current,f=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(f,"checked").set;if(s!==n&&u){const $=new Event("click",{bubbles:r});u.call(l,n),l.dispatchEvent($)}},[s,n,r]),t.createElement("input",m({type:"radio","aria-hidden":!0,defaultChecked:n},c,{tabIndex:-1,ref:a,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ar(e){return e?"checked":"unchecked"}const Di=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],sr="RadioGroup",[Ii,Y$]=z(sr,[_e,cr]),ir=_e(),lr=cr(),[Ai,Oi]=Ii(sr),Ni=t.forwardRef((e,o)=>{const{__scopeRadioGroup:n,name:r,defaultValue:c,value:a,required:s=!1,disabled:i=!1,orientation:l,dir:f,loop:d=!0,onValueChange:u,...$}=e,b=ir(n),p=Ce(f),[v,x]=re({prop:a,defaultProp:c,onChange:u});return t.createElement(Ai,{scope:n,name:r,required:s,disabled:i,value:v,onValueChange:x},t.createElement(xt,m({asChild:!0},b,{orientation:l,dir:p,loop:d}),t.createElement(y.div,m({role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":i?"":void 0,dir:p},$,{ref:o}))))}),ki="RadioGroupItem",Fi=t.forwardRef((e,o)=>{const{__scopeRadioGroup:n,disabled:r,...c}=e,a=Oi(ki,n),s=a.disabled||r,i=ir(n),l=lr(n),f=t.useRef(null),d=D(o,f),u=a.value===c.value,$=t.useRef(!1);return t.useEffect(()=>{const b=v=>{Di.includes(v.key)&&($.current=!0)},p=()=>$.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",p),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",p)}},[]),t.createElement(wt,m({asChild:!0},i,{focusable:!s,active:u}),t.createElement(Ri,m({disabled:s,required:a.required,checked:u},l,c,{name:a.name,ref:d,onCheck:()=>a.onValueChange(c.value),onKeyDown:w(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:w(c.onFocus,()=>{var b;$.current&&((b=f.current)===null||b===void 0||b.click())})})))}),Li=t.forwardRef((e,o)=>{const{__scopeRadioGroup:n,...r}=e,c=lr(n);return t.createElement(Mi,m({},c,r,{ref:o}))}),X$=Ni,j$=Fi,q$=Li;function Xe(e,[o,n]){return Math.min(n,Math.max(o,e))}const Ki=[" ","Enter","ArrowUp","ArrowDown"],Vi=[" ","Enter"],_t="Select",[In,An,Ui]=we(_t),[Be,Z$]=z(_t,[Ui,pe]),dr=pe(),[Q$,He]=Be(_t),[J$,Bi]=Be(_t),Hi="SelectTrigger",Wi=t.forwardRef((e,o)=>{const{__scopeSelect:n,disabled:r=!1,...c}=e,a=dr(n),s=He(Hi,n),i=s.disabled||r,l=D(o,s.onTriggerChange),f=An(n),[d,u,$]=$r(p=>{const v=f().filter(E=>!E.disabled),x=v.find(E=>E.value===s.value),h=pr(v,p,x);h!==void 0&&s.onValueChange(h.value)}),b=()=>{i||(s.onOpenChange(!0),$())};return t.createElement(yo,m({asChild:!0},a),t.createElement(y.button,m({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":ll(s.value)?"":void 0},c,{ref:l,onClick:w(c.onClick,p=>{p.currentTarget.focus()}),onPointerDown:w(c.onPointerDown,p=>{const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(b(),s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:w(c.onKeyDown,p=>{const v=d.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&u(p.key),!(v&&p.key===" ")&&Ki.includes(p.key)&&(b(),p.preventDefault())})})))}),Gi=t.forwardRef((e,o)=>{const{__scopeSelect:n,children:r,...c}=e;return t.createElement(y.span,m({"aria-hidden":!0},c,{ref:o}),r||"â–¼")}),zi=e=>t.createElement(Et,m({asChild:!0},e)),Fe="SelectContent",Yi=t.forwardRef((e,o)=>{const n=He(Fe,e.__scopeSelect),[r,c]=t.useState();if(ee(()=>{c(new DocumentFragment)},[]),!n.open){const a=r;return a?Ve.createPortal(t.createElement(ur,{scope:e.__scopeSelect},t.createElement(In.Slot,{scope:e.__scopeSelect},t.createElement("div",null,e.children))),a):null}return t.createElement(Xi,m({},e,{ref:o}))}),he=10,[ur,Pt]=Be(Fe),Xi=t.forwardRef((e,o)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:l,align:f,alignOffset:d,arrowPadding:u,collisionBoundary:$,collisionPadding:b,sticky:p,hideWhenDetached:v,avoidCollisions:x,...h}=e,E=He(Fe,n),[g,C]=t.useState(null),[_,R]=t.useState(null),S=D(o,I=>C(I)),[T,P]=t.useState(null),[A,K]=t.useState(null),X=An(n),[q,N]=t.useState(!1),k=t.useRef(!1);t.useEffect(()=>{if(g)return Qe(g)},[g]),ht();const Q=t.useCallback(I=>{const[V,...U]=X().map(W=>W.ref.current),[B]=U.slice(-1),H=document.activeElement;for(const W of I)if(W===H||(W?.scrollIntoView({block:"nearest"}),W===V&&_&&(_.scrollTop=0),W===B&&_&&(_.scrollTop=_.scrollHeight),W?.focus(),document.activeElement!==H))return},[X,_]),te=t.useCallback(()=>Q([T,g]),[Q,T,g]);t.useEffect(()=>{q&&te()},[q,te]);const{onOpenChange:j,triggerPointerDownPosRef:M}=E;t.useEffect(()=>{if(g){let I={x:0,y:0};const V=B=>{var H,W,ne,oe;I={x:Math.abs(Math.round(B.pageX)-((H=(W=M.current)===null||W===void 0?void 0:W.x)!==null&&H!==void 0?H:0)),y:Math.abs(Math.round(B.pageY)-((ne=(oe=M.current)===null||oe===void 0?void 0:oe.y)!==null&&ne!==void 0?ne:0))}},U=B=>{I.x<=10&&I.y<=10?B.preventDefault():g.contains(B.target)||j(!1),document.removeEventListener("pointermove",V),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",V),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",V),document.removeEventListener("pointerup",U,{capture:!0})}}},[g,j,M]),t.useEffect(()=>{const I=()=>j(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[j]);const[F,L]=$r(I=>{const V=X().filter(H=>!H.disabled),U=V.find(H=>H.ref.current===document.activeElement),B=pr(V,I,U);B&&setTimeout(()=>B.ref.current.focus())}),J=t.useCallback((I,V,U)=>{const B=!k.current&&!U;(E.value!==void 0&&E.value===V||B)&&(P(I),B&&(k.current=!0))},[E.value]),ce=t.useCallback(()=>g?.focus(),[g]),ae=t.useCallback((I,V,U)=>{const B=!k.current&&!U;(E.value!==void 0&&E.value===V||B)&&K(I)},[E.value]),se=r==="popper"?to:ji,Z=se===to?{side:i,sideOffset:l,align:f,alignOffset:d,arrowPadding:u,collisionBoundary:$,collisionPadding:b,sticky:p,hideWhenDetached:v,avoidCollisions:x}:{};return t.createElement(ur,{scope:n,content:g,viewport:_,onViewportChange:R,itemRefCallback:J,selectedItem:T,onItemLeave:ce,itemTextRefCallback:ae,focusSelectedItem:te,selectedItemText:A,position:r,isPositioned:q,searchRef:F},t.createElement(mt,{as:xe,allowPinchZoom:!0},t.createElement(gt,{asChild:!0,trapped:E.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:w(c,I=>{var V;(V=E.trigger)===null||V===void 0||V.focus({preventScroll:!0}),I.preventDefault()})},t.createElement(Me,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>E.onOpenChange(!1)},t.createElement(se,m({role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:I=>I.preventDefault()},h,Z,{onPlaced:()=>N(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:w(h.onKeyDown,I=>{const V=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!V&&I.key.length===1&&L(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let B=X().filter(H=>!H.disabled).map(H=>H.ref.current);if(["ArrowUp","End"].includes(I.key)&&(B=B.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const H=I.target,W=B.indexOf(H);B=B.slice(W+1)}setTimeout(()=>Q(B)),I.preventDefault()}})}))))))}),ji=t.forwardRef((e,o)=>{const{__scopeSelect:n,onPlaced:r,...c}=e,a=He(Fe,n),s=Pt(Fe,n),[i,l]=t.useState(null),[f,d]=t.useState(null),u=D(o,S=>d(S)),$=An(n),b=t.useRef(!1),p=t.useRef(!0),{viewport:v,selectedItem:x,selectedItemText:h,focusSelectedItem:E}=s,g=t.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&f&&v&&x&&h){const S=a.trigger.getBoundingClientRect(),T=f.getBoundingClientRect(),P=a.valueNode.getBoundingClientRect(),A=h.getBoundingClientRect();if(a.dir!=="rtl"){const H=A.left-T.left,W=P.left-H,ne=S.left-W,oe=S.width+ne,me=Math.max(oe,T.width),Ne=window.innerWidth-he,We=Xe(W,[he,Ne-me]);i.style.minWidth=oe+"px",i.style.left=We+"px"}else{const H=T.right-A.right,W=window.innerWidth-P.right-H,ne=window.innerWidth-S.right-W,oe=S.width+ne,me=Math.max(oe,T.width),Ne=window.innerWidth-he,We=Xe(W,[he,Ne-me]);i.style.minWidth=oe+"px",i.style.right=We+"px"}const K=$(),X=window.innerHeight-he*2,q=v.scrollHeight,N=window.getComputedStyle(f),k=parseInt(N.borderTopWidth,10),Q=parseInt(N.paddingTop,10),te=parseInt(N.borderBottomWidth,10),j=parseInt(N.paddingBottom,10),M=k+Q+q+j+te,F=Math.min(x.offsetHeight*5,M),L=window.getComputedStyle(v),J=parseInt(L.paddingTop,10),ce=parseInt(L.paddingBottom,10),ae=S.top+S.height/2-he,se=X-ae,Z=x.offsetHeight/2,I=x.offsetTop+Z,V=k+Q+I,U=M-V;if(V<=ae){const H=x===K[K.length-1].ref.current;i.style.bottom="0px";const W=f.clientHeight-v.offsetTop-v.offsetHeight,ne=Math.max(se,Z+(H?ce:0)+W+te),oe=V+ne;i.style.height=oe+"px"}else{const H=x===K[0].ref.current;i.style.top="0px";const ne=Math.max(ae,k+v.offsetTop+(H?J:0)+Z)+U;i.style.height=ne+"px",v.scrollTop=V-ae+v.offsetTop}i.style.margin=`${he}px 0`,i.style.minHeight=F+"px",i.style.maxHeight=X+"px",r?.(),requestAnimationFrame(()=>b.current=!0)}},[$,a.trigger,a.valueNode,i,f,v,x,h,a.dir,r]);ee(()=>g(),[g]);const[C,_]=t.useState();ee(()=>{f&&_(window.getComputedStyle(f).zIndex)},[f]);const R=t.useCallback(S=>{S&&p.current===!0&&(g(),E?.(),p.current=!1)},[g,E]);return t.createElement(qi,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:b,onScrollButtonChange:R},t.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C}},t.createElement(y.div,m({},c,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}}))))}),to=t.forwardRef((e,o)=>{const{__scopeSelect:n,align:r="start",collisionPadding:c=he,...a}=e,s=dr(n);return t.createElement(tt,m({},s,a,{ref:o,align:r,collisionPadding:c,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)"}}))}),[qi,Zi]=Be(Fe,{}),no="SelectViewport",Qi=t.forwardRef((e,o)=>{const{__scopeSelect:n,...r}=e,c=Pt(no,n),a=Zi(no,n),s=D(o,c.onViewportChange),i=t.useRef(0);return t.createElement(t.Fragment,null,t.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}"}}),t.createElement(In.Slot,{scope:n},t.createElement(y.div,m({"data-radix-select-viewport":"",role:"presentation"},r,{ref:s,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:w(r.onScroll,l=>{const f=l.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:u}=a;if(u!=null&&u.current&&d){const $=Math.abs(i.current-f.scrollTop);if($>0){const b=window.innerHeight-he*2,p=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),x=Math.max(p,v);if(x0?g:0,d.style.justifyContent="flex-end")}}}i.current=f.scrollTop})}))))}),Ji="SelectGroup",[ep,el]=Be(Ji),tl="SelectLabel",nl=t.forwardRef((e,o)=>{const{__scopeSelect:n,...r}=e,c=el(tl,n);return t.createElement(y.div,m({id:c.id},r,{ref:o}))}),Qt="SelectItem",[ol,fr]=Be(Qt),rl=t.forwardRef((e,o)=>{const{__scopeSelect:n,value:r,disabled:c=!1,textValue:a,...s}=e,i=He(Qt,n),l=Pt(Qt,n),f=i.value===r,[d,u]=t.useState(a??""),[$,b]=t.useState(!1),p=D(o,h=>{var E;return(E=l.itemRefCallback)===null||E===void 0?void 0:E.call(l,h,r,c)}),v=$e(),x=()=>{c||(i.onValueChange(r),i.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 t.createElement(ol,{scope:n,value:r,disabled:c,textId:v,isSelected:f,onItemTextChange:t.useCallback(h=>{u(E=>{var g;return E||((g=h?.textContent)!==null&&g!==void 0?g:"").trim()})},[])},t.createElement(In.ItemSlot,{scope:n,value:r,disabled:c,textValue:d},t.createElement(y.div,m({role:"option","aria-labelledby":v,"data-highlighted":$?"":void 0,"aria-selected":f&&$,"data-state":f?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1},s,{ref:p,onFocus:w(s.onFocus,()=>b(!0)),onBlur:w(s.onBlur,()=>b(!1)),onPointerUp:w(s.onPointerUp,x),onPointerMove:w(s.onPointerMove,h=>{if(c){var E;(E=l.onItemLeave)===null||E===void 0||E.call(l)}else h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:w(s.onPointerLeave,h=>{if(h.currentTarget===document.activeElement){var E;(E=l.onItemLeave)===null||E===void 0||E.call(l)}}),onKeyDown:w(s.onKeyDown,h=>{var E;((E=l.searchRef)===null||E===void 0?void 0:E.current)!==""&&h.key===" "||(Vi.includes(h.key)&&x(),h.key===" "&&h.preventDefault())})}))))}),ut="SelectItemText",cl=t.forwardRef((e,o)=>{const{__scopeSelect:n,className:r,style:c,...a}=e,s=He(ut,n),i=Pt(ut,n),l=fr(ut,n),f=Bi(ut,n),[d,u]=t.useState(null),$=D(o,h=>u(h),l.onItemTextChange,h=>{var E;return(E=i.itemTextRefCallback)===null||E===void 0?void 0:E.call(i,h,l.value,l.disabled)}),b=d?.textContent,p=t.useMemo(()=>t.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},b),[l.disabled,l.value,b]),{onNativeOptionAdd:v,onNativeOptionRemove:x}=f;return ee(()=>(v(p),()=>x(p)),[v,x,p]),t.createElement(t.Fragment,null,t.createElement(y.span,m({id:l.textId},a,{ref:$})),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Ve.createPortal(a.children,s.valueNode):null)}),al="SelectItemIndicator",sl=t.forwardRef((e,o)=>{const{__scopeSelect:n,...r}=e;return fr(al,n).isSelected?t.createElement(y.span,m({"aria-hidden":!0},r,{ref:o})):null}),il=t.forwardRef((e,o)=>{const{__scopeSelect:n,...r}=e;return t.createElement(y.div,m({"aria-hidden":!0},r,{ref:o}))});function ll(e){return e===""||e===void 0}const dl=t.forwardRef((e,o)=>{const{value:n,...r}=e,c=t.useRef(null),a=D(o,c),s=Ue(n);return t.useEffect(()=>{const i=c.current,l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&d){const u=new Event("change",{bubbles:!0});d.call(i,n),i.dispatchEvent(u)}},[s,n]),t.createElement(Go,{asChild:!0},t.createElement("select",m({},r,{ref:a,defaultValue:n})))});dl.displayName="BubbleSelect";function $r(e){const o=G(e),n=t.useRef(""),r=t.useRef(0),c=t.useCallback(s=>{const i=n.current+s;o(i),function l(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(i)},[o]),a=t.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return t.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,c,a]}function pr(e,o,n){const c=o.length>1&&Array.from(o).every(f=>f===o[0])?o[0]:o,a=n?e.indexOf(n):-1;let s=ul(e,Math.max(a,0));c.length===1&&(s=s.filter(f=>f!==n));const l=s.find(f=>f.textValue.toLowerCase().startsWith(c.toLowerCase()));return l!==n?l:void 0}function ul(e,o){return e.map((n,r)=>e[(o+r)%e.length])}const tp=Wi,np=Gi,op=zi,rp=Yi,cp=Qi,ap=nl,sp=rl,ip=cl,lp=sl,dp=il,br="Popover",[vr,up]=z(br,[pe]),fl=pe(),[fp,ct]=vr(br),mr="PopoverPortal",[$l,pl]=vr(mr,{forceMount:void 0}),bl=e=>{const{__scopePopover:o,forceMount:n,children:r,container:c}=e,a=ct(mr,o);return t.createElement($l,{scope:o,forceMount:n},t.createElement(Y,{present:n||a.open},t.createElement(Et,{asChild:!0,container:c},r)))},je="PopoverContent",vl=t.forwardRef((e,o)=>{const n=pl(je,e.__scopePopover),{forceMount:r=n.forceMount,...c}=e,a=ct(je,e.__scopePopover);return t.createElement(Y,{present:r||a.open},a.modal?t.createElement(ml,m({},c,{ref:o})):t.createElement(hl,m({},c,{ref:o})))}),ml=t.forwardRef((e,o)=>{const n=ct(je,e.__scopePopover),r=t.useRef(null),c=D(o,r),a=t.useRef(!1);return t.useEffect(()=>{const s=r.current;if(s)return Qe(s)},[]),t.createElement(mt,{as:xe,allowPinchZoom:!0},t.createElement(hr,m({},e,{ref:c,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:w(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:w(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,f=i.button===2||l;a.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:w(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),hl=t.forwardRef((e,o)=>{const n=ct(je,e.__scopePopover),r=t.useRef(!1),c=t.useRef(!1);return t.createElement(hr,m({},e,{ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,a),!a.defaultPrevented){var i;r.current||(i=n.triggerRef.current)===null||i===void 0||i.focus(),a.preventDefault()}r.current=!1,c.current=!1},onInteractOutside:a=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const l=a.target;((i=n.triggerRef.current)===null||i===void 0?void 0:i.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&c.current&&a.preventDefault()}}))}),hr=t.forwardRef((e,o)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:f,onInteractOutside:d,...u}=e,$=ct(je,n),b=fl(n);return ht(),t.createElement(gt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:c,onUnmountAutoFocus:a},t.createElement(Me,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:f,onDismiss:()=>$.onOpenChange(!1)},t.createElement(tt,m({"data-state":gl($.open),role:"dialog",id:$.contentId},b,u,{ref:o,style:{...u.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 gl(e){return e?"open":"closed"}const $p=bl,pp=vl,gr="Dialog",[Er,xr]=z(gr),[El,ve]=Er(gr),xl=e=>{const{__scopeDialog:o,children:n,open:r,defaultOpen:c,onOpenChange:a,modal:s=!0}=e,i=t.useRef(null),l=t.useRef(null),[f=!1,d]=re({prop:r,defaultProp:c,onChange:a});return t.createElement(El,{scope:o,triggerRef:i,contentRef:l,contentId:$e(),titleId:$e(),descriptionId:$e(),open:f,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(u=>!u),[d]),modal:s},n)},wr="DialogPortal",[wl,Cr]=Er(wr,{forceMount:void 0}),Cl=e=>{const{__scopeDialog:o,forceMount:n,children:r,container:c}=e,a=ve(wr,o);return t.createElement(wl,{scope:o,forceMount:n},t.Children.map(r,s=>t.createElement(Y,{present:n||a.open},t.createElement(Et,{asChild:!0,container:c},s))))},Jt="DialogOverlay",_l=t.forwardRef((e,o)=>{const n=Cr(Jt,e.__scopeDialog),{forceMount:r=n.forceMount,...c}=e,a=ve(Jt,e.__scopeDialog);return a.modal?t.createElement(Y,{present:r||a.open},t.createElement(Pl,m({},c,{ref:o}))):null}),Pl=t.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,c=ve(Jt,n);return t.createElement(mt,{as:xe,allowPinchZoom:!0,shards:[c.contentRef]},t.createElement(y.div,m({"data-state":Sr(c.open)},r,{ref:o,style:{pointerEvents:"auto",...r.style}})))}),Le="DialogContent",Sl=t.forwardRef((e,o)=>{const n=Cr(Le,e.__scopeDialog),{forceMount:r=n.forceMount,...c}=e,a=ve(Le,e.__scopeDialog);return t.createElement(Y,{present:r||a.open},a.modal?t.createElement(Rl,m({},c,{ref:o})):t.createElement(yl,m({},c,{ref:o})))}),Rl=t.forwardRef((e,o)=>{const n=ve(Le,e.__scopeDialog),r=t.useRef(null),c=D(o,n.contentRef,r);return t.useEffect(()=>{const a=r.current;if(a)return Qe(a)},[]),t.createElement(_r,m({},e,{ref:c,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:w(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:w(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:w(e.onFocusOutside,a=>a.preventDefault())}))}),yl=t.forwardRef((e,o)=>{const n=ve(Le,e.__scopeDialog),r=t.useRef(!1),c=t.useRef(!1);return t.createElement(_r,m({},e,{ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,a),!a.defaultPrevented){var i;r.current||(i=n.triggerRef.current)===null||i===void 0||i.focus(),a.preventDefault()}r.current=!1,c.current=!1},onInteractOutside:a=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const l=a.target;((i=n.triggerRef.current)===null||i===void 0?void 0:i.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&c.current&&a.preventDefault()}}))}),_r=t.forwardRef((e,o)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:a,...s}=e,i=ve(Le,n),l=t.useRef(null),f=D(o,l);return ht(),t.createElement(t.Fragment,null,t.createElement(gt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:c,onUnmountAutoFocus:a},t.createElement(Me,m({role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Sr(i.open)},s,{ref:f,onDismiss:()=>i.onOpenChange(!1)}))),!1)}),Pr="DialogTitle",Ml=t.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,c=ve(Pr,n);return t.createElement(y.h2,m({id:c.titleId},r,{ref:o}))}),Tl="DialogDescription",Dl=t.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,c=ve(Tl,n);return t.createElement(y.p,m({id:c.descriptionId},r,{ref:o}))}),Il="DialogClose",Al=t.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,c=ve(Il,n);return t.createElement(y.button,m({type:"button"},r,{ref:o,onClick:w(e.onClick,()=>c.onOpenChange(!1))}))});function Sr(e){return e?"open":"closed"}const Ol="DialogTitleWarning",[Nl,bp]=Gc(Ol,{contentName:Le,titleName:Pr,docsSlug:"dialog"}),vp=xl,kl=Cl,Fl=_l,Ll=Sl,Kl=Ml,Vl=Dl,Rr=Al;function ke(e,o,{checkForDefaultPrevented:n=!0}={}){return function(c){if(e?.(c),n===!1||!c.defaultPrevented)return o?.(c)}}function Ul(e,o){typeof e=="function"?e(o):e!=null&&(e.current=o)}function yr(...e){return o=>e.forEach(n=>Ul(n,o))}function at(...e){return t.useCallback(yr(...e),e)}function Bl(e,o=[]){let n=[];function r(a,s){const i=t.createContext(s),l=n.length;n=[...n,s];function f(u){const{scope:$,children:b,...p}=u,v=$?.[e][l]||i,x=t.useMemo(()=>p,Object.values(p));return t.createElement(v.Provider,{value:x},b)}function d(u,$){const b=$?.[e][l]||i,p=t.useContext(b);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return f.displayName=a+"Provider",[f,d]}const c=()=>{const a=n.map(s=>t.createContext(s));return function(i){const l=i?.[e]||a;return t.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return c.scopeName=e,[r,Hl(c,...o)]}function Hl(...e){const o=e[0];if(e.length===1)return o;const n=()=>{const r=e.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:f})=>{const u=l(a)[`__scope${f}`];return{...i,...u}},{});return t.useMemo(()=>({[`__scope${o.scopeName}`]:s}),[s])}};return n.scopeName=o.scopeName,n}const en=globalThis?.document?t.useLayoutEffect:()=>{},Wl=go["useId".toString()]||(()=>{});let Gl=0;function Vt(e){const[o,n]=t.useState(Wl());return en(()=>{e||n(r=>r??String(Gl++))},[e]),e||(o?`radix-${o}`:"")}function ye(e){const o=t.useRef(e);return t.useEffect(()=>{o.current=e}),t.useMemo(()=>(...n)=>{var r;return(r=o.current)===null||r===void 0?void 0:r.call(o,...n)},[])}function zl({prop:e,defaultProp:o,onChange:n=()=>{}}){const[r,c]=Yl({defaultProp:o,onChange:n}),a=e!==void 0,s=a?e:r,i=ye(n),l=t.useCallback(f=>{if(a){const u=typeof f=="function"?f(e):f;u!==e&&i(u)}else c(f)},[a,e,c,i]);return[s,l]}function Yl({defaultProp:e,onChange:o}){const n=t.useState(e),[r]=n,c=t.useRef(r),a=ye(o);return t.useEffect(()=>{c.current!==r&&(a(r),c.current=r)},[r,c,a]),n}const On=t.forwardRef((e,o)=>{const{children:n,...r}=e,c=t.Children.toArray(n),a=c.find(jl);if(a){const s=a.props.children,i=c.map(l=>l===a?t.Children.count(s)>1?t.Children.only(null):t.isValidElement(s)?s.props.children:null:l);return t.createElement(tn,m({},r,{ref:o}),t.isValidElement(s)?t.cloneElement(s,void 0,i):null)}return t.createElement(tn,m({},r,{ref:o}),n)});On.displayName="Slot";const tn=t.forwardRef((e,o)=>{const{children:n,...r}=e;return t.isValidElement(n)?t.cloneElement(n,{...ql(r,n.props),ref:yr(o,n.ref)}):t.Children.count(n)>1?t.Children.only(null):null});tn.displayName="SlotClone";const Xl=({children:e})=>t.createElement(t.Fragment,null,e);function jl(e){return t.isValidElement(e)&&e.type===Xl}function ql(e,o){const n={...o};for(const r in o){const c=e[r],a=o[r];/^on[A-Z]/.test(r)?n[r]=(...i)=>{a?.(...i),c?.(...i)}:r==="style"?n[r]={...c,...a}:r==="className"&&(n[r]=[c,a].filter(Boolean).join(" "))}return{...e,...n}}const Zl=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],St=Zl.reduce((e,o)=>{const n=t.forwardRef((r,c)=>{const{asChild:a,...s}=r,i=a?On:o;return t.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.createElement(i,m({},s,{ref:c}))});return n.displayName=`Primitive.${o}`,{...e,[o]:n}},{});function Ql(e,o){e&&Ve.flushSync(()=>e.dispatchEvent(o))}function Jl(e){const o=ye(e);t.useEffect(()=>{const n=r=>{r.key==="Escape"&&o(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[o])}const nn="dismissableLayer.update",ed="dismissableLayer.pointerDownOutside",td="dismissableLayer.focusOutside";let oo;const nd=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),od=t.forwardRef((e,o)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,f=t.useContext(nd),[d,u]=t.useState(null),[,$]=t.useState({}),b=at(o,R=>u(R)),p=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),h=d?p.indexOf(d):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,g=h>=x,C=rd(R=>{const S=R.target,T=[...f.branches].some(P=>P.contains(S));!g||T||(c?.(R),s?.(R),R.defaultPrevented||i?.())}),_=cd(R=>{const S=R.target;[...f.branches].some(P=>P.contains(S))||(a?.(R),s?.(R),R.defaultPrevented||i?.())});return Jl(R=>{h===f.layers.size-1&&(r?.(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))}),t.useEffect(()=>{if(d)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(oo=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),ro(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=oo)}},[d,n,f]),t.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),ro())},[d,f]),t.useEffect(()=>{const R=()=>$({});return document.addEventListener(nn,R),()=>document.removeEventListener(nn,R)},[]),t.createElement(St.div,m({},l,{ref:b,style:{pointerEvents:E?g?"auto":"none":void 0,...e.style},onFocusCapture:ke(e.onFocusCapture,_.onFocusCapture),onBlurCapture:ke(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:ke(e.onPointerDownCapture,C.onPointerDownCapture)}))});function rd(e){const o=ye(e),n=t.useRef(!1),r=t.useRef(()=>{});return t.useEffect(()=>{const c=s=>{if(s.target&&!n.current){let l=function(){Mr(ed,o,i,{discrete:!0})};const i={originalEvent:s};s.pointerType==="touch"?(document.removeEventListener("click",r.current),r.current=l,document.addEventListener("click",r.current,{once:!0})):l()}n.current=!1},a=window.setTimeout(()=>{document.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(a),document.removeEventListener("pointerdown",c),document.removeEventListener("click",r.current)}},[o]),{onPointerDownCapture:()=>n.current=!0}}function cd(e){const o=ye(e),n=t.useRef(!1);return t.useEffect(()=>{const r=c=>{c.target&&!n.current&&Mr(td,o,{originalEvent:c},{discrete:!1})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[o]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ro(){const e=new CustomEvent(nn);document.dispatchEvent(e)}function Mr(e,o,n,{discrete:r}){const c=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});o&&c.addEventListener(e,o,{once:!0}),r?Ql(c,a):c.dispatchEvent(a)}const Ut="focusScope.autoFocusOnMount",Bt="focusScope.autoFocusOnUnmount",co={bubbles:!1,cancelable:!0},ad=t.forwardRef((e,o)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:a,...s}=e,[i,l]=t.useState(null),f=ye(c),d=ye(a),u=t.useRef(null),$=at(o,v=>l(v)),b=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(r){let v=function(h){if(b.paused||!i)return;const E=h.target;i.contains(E)?u.current=E:Se(u.current,{select:!0})},x=function(h){b.paused||!i||i.contains(h.relatedTarget)||Se(u.current,{select:!0})};return document.addEventListener("focusin",v),document.addEventListener("focusout",x),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x)}}},[r,i,b.paused]),t.useEffect(()=>{if(i){so.add(b);const v=document.activeElement;if(!i.contains(v)){const h=new CustomEvent(Ut,co);i.addEventListener(Ut,f),i.dispatchEvent(h),h.defaultPrevented||(sd(fd(Tr(i)),{select:!0}),document.activeElement===v&&Se(i))}return()=>{i.removeEventListener(Ut,f),setTimeout(()=>{const h=new CustomEvent(Bt,co);i.addEventListener(Bt,d),i.dispatchEvent(h),h.defaultPrevented||Se(v??document.body,{select:!0}),i.removeEventListener(Bt,d),so.remove(b)},0)}}},[i,f,d,b]);const p=t.useCallback(v=>{if(!n&&!r||b.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,h=document.activeElement;if(x&&h){const E=v.currentTarget,[g,C]=id(E);g&&C?!v.shiftKey&&h===C?(v.preventDefault(),n&&Se(g,{select:!0})):v.shiftKey&&h===g&&(v.preventDefault(),n&&Se(C,{select:!0})):h===E&&v.preventDefault()}},[n,r,b.paused]);return t.createElement(St.div,m({tabIndex:-1},s,{ref:$,onKeyDown:p}))});function sd(e,{select:o=!1}={}){const n=document.activeElement;for(const r of e)if(Se(r,{select:o}),document.activeElement!==n)return}function id(e){const o=Tr(e),n=ao(o,e),r=ao(o.reverse(),e);return[n,r]}function Tr(e){const o=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)o.push(n.currentNode);return o}function ao(e,o){for(const n of e)if(!ld(n,{upTo:o}))return n}function ld(e,{upTo:o}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(o!==void 0&&e===o)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dd(e){return e instanceof HTMLInputElement&&"select"in e}function Se(e,{select:o=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dd(e)&&o&&e.select()}}const so=ud();function ud(){let e=[];return{add(o){const n=e[0];o!==n&&n?.pause(),e=io(e,o),e.unshift(o)},remove(o){var n;e=io(e,o),(n=e[0])===null||n===void 0||n.resume()}}}function io(e,o){const n=[...e],r=n.indexOf(o);return r!==-1&&n.splice(r,1),n}function fd(e){return e.filter(o=>o.tagName!=="A")}const $d=t.forwardRef((e,o)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...c}=e;return r?un.createPortal(t.createElement(St.div,m({},c,{ref:o})),r):null});function pd(e,o){return t.useReducer((n,r)=>{const c=o[n][r];return c??n},e)}const Rt=e=>{const{present:o,children:n}=e,r=bd(o),c=typeof n=="function"?n({present:r.isPresent}):t.Children.only(n),a=at(r.ref,c.ref);return typeof n=="function"||r.isPresent?t.cloneElement(c,{ref:a}):null};Rt.displayName="Presence";function bd(e){const[o,n]=t.useState(),r=t.useRef({}),c=t.useRef(e),a=t.useRef("none"),s=e?"mounted":"unmounted",[i,l]=pd(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{const f=ft(r.current);a.current=i==="mounted"?f:"none"},[i]),en(()=>{const f=r.current,d=c.current;if(d!==e){const $=a.current,b=ft(f);e?l("MOUNT"):b==="none"||f?.display==="none"?l("UNMOUNT"):l(d&&$!==b?"ANIMATION_OUT":"UNMOUNT"),c.current=e}},[e,l]),en(()=>{if(o){const f=u=>{const b=ft(r.current).includes(u.animationName);u.target===o&&b&&Ve.flushSync(()=>l("ANIMATION_END"))},d=u=>{u.target===o&&(a.current=ft(r.current))};return o.addEventListener("animationstart",d),o.addEventListener("animationcancel",f),o.addEventListener("animationend",f),()=>{o.removeEventListener("animationstart",d),o.removeEventListener("animationcancel",f),o.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[o,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:t.useCallback(f=>{f&&(r.current=getComputedStyle(f)),n(f)},[])}}function ft(e){return e?.animationName||"none"}let Ht=0;function vd(){t.useEffect(()=>{var e,o;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:lo()),document.body.insertAdjacentElement("beforeend",(o=n[1])!==null&&o!==void 0?o:lo()),Ht++,()=>{Ht===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ht--}},[])}function lo(){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 Dr="Dialog",[Ir,mp]=Bl(Dr),[md,Ae]=Ir(Dr),hd=e=>{const{__scopeDialog:o,children:n,open:r,defaultOpen:c,onOpenChange:a,modal:s=!0}=e,i=t.useRef(null),l=t.useRef(null),[f=!1,d]=zl({prop:r,defaultProp:c,onChange:a});return t.createElement(md,{scope:o,triggerRef:i,contentRef:l,contentId:Vt(),titleId:Vt(),descriptionId:Vt(),open:f,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(u=>!u),[d]),modal:s},n)},Ar="DialogPortal",[gd,Or]=Ir(Ar,{forceMount:void 0}),Ed=e=>{const{__scopeDialog:o,forceMount:n,children:r,container:c}=e,a=Ae(Ar,o);return t.createElement(gd,{scope:o,forceMount:n},t.Children.map(r,s=>t.createElement(Rt,{present:n||a.open},t.createElement($d,{asChild:!0,container:c},s))))},on="DialogOverlay",xd=t.forwardRef((e,o)=>{const n=Or(on,e.__scopeDialog),{forceMount:r=n.forceMount,...c}=e,a=Ae(on,e.__scopeDialog);return a.modal?t.createElement(Rt,{present:r||a.open},t.createElement(wd,m({},c,{ref:o}))):null}),wd=t.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,c=Ae(on,n);return t.createElement(Kc,{as:On,allowPinchZoom:!0,shards:[c.contentRef]},t.createElement(St.div,m({"data-state":kr(c.open)},r,{ref:o,style:{pointerEvents:"auto",...r.style}})))}),qe="DialogContent",Cd=t.forwardRef((e,o)=>{const n=Or(qe,e.__scopeDialog),{forceMount:r=n.forceMount,...c}=e,a=Ae(qe,e.__scopeDialog);return t.createElement(Rt,{present:r||a.open},a.modal?t.createElement(_d,m({},c,{ref:o})):t.createElement(Pd,m({},c,{ref:o})))}),_d=t.forwardRef((e,o)=>{const n=Ae(qe,e.__scopeDialog),r=t.useRef(null),c=at(o,n.contentRef,r);return t.useEffect(()=>{const a=r.current;if(a)return Qe(a)},[]),t.createElement(Nr,m({},e,{ref:c,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:ke(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:ke(e.onFocusOutside,a=>a.preventDefault())}))}),Pd=t.forwardRef((e,o)=>{const n=Ae(qe,e.__scopeDialog),r=t.useRef(!1);return t.createElement(Nr,m({},e,{ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,c),!c.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),c.preventDefault()}r.current=!1},onInteractOutside:c=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,c),c.defaultPrevented||(r.current=!0);const i=c.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(i))&&c.preventDefault()}}))}),Nr=t.forwardRef((e,o)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:a,...s}=e,i=Ae(qe,n),l=t.useRef(null),f=at(o,l);return vd(),t.createElement(t.Fragment,null,t.createElement(ad,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:c,onUnmountAutoFocus:a},t.createElement(od,m({role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":kr(i.open)},s,{ref:f,onDismiss:()=>i.onOpenChange(!1)}))),!1)});function kr(e){return e?"open":"closed"}const hp=hd,gp=Ed,Ep=xd,xp=Cd,Fr=["PageUp","PageDown"],Lr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Kr={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},st="Slider",[rn,Sd,Rd]=we(st),[Vr,wp]=z(st,[Rd]),[yd,yt]=Vr(st),Md=t.forwardRef((e,o)=>{const{name:n,min:r=0,max:c=100,step:a=1,orientation:s="horizontal",disabled:i=!1,minStepsBetweenThumbs:l=0,defaultValue:f=[r],value:d,onValueChange:u=()=>{},onValueCommit:$=()=>{},inverted:b=!1,...p}=e,[v,x]=t.useState(null),h=D(o,N=>x(N)),E=t.useRef(new Set),g=t.useRef(0),C=s==="horizontal",_=v?!!v.closest("form"):!0,R=C?Td:Dd,[S=[],T]=re({prop:d,defaultProp:f,onChange:N=>{var k;(k=[...E.current][g.current])===null||k===void 0||k.focus(),u(N)}}),P=t.useRef(S);function A(N){const k=Vd(S,N);q(N,k)}function K(N){q(N,g.current)}function X(){const N=P.current[g.current];S[g.current]!==N&&$(S)}function q(N,k,{commit:Q}={commit:!1}){const te=Wd(a),j=Gd(Math.round((N-r)/a)*a+r,te),M=Xe(j,[r,c]);T((F=[])=>{const L=Ld(F,M,k);if(Hd(L,l*a)){g.current=L.indexOf(M);const J=String(L)!==String(F);return J&&Q&&$(L),J?L:F}else return F})}return t.createElement(yd,{scope:e.__scopeSlider,disabled:i,min:r,max:c,valueIndexToChangeRef:g,thumbs:E.current,values:S,orientation:s},t.createElement(rn.Provider,{scope:e.__scopeSlider},t.createElement(rn.Slot,{scope:e.__scopeSlider},t.createElement(R,m({"aria-disabled":i,"data-disabled":i?"":void 0},p,{ref:h,onPointerDown:w(p.onPointerDown,()=>{i||(P.current=S)}),min:r,max:c,inverted:b,onSlideStart:i?void 0:A,onSlideMove:i?void 0:K,onSlideEnd:i?void 0:X,onHomeKeyDown:()=>!i&&q(r,0,{commit:!0}),onEndKeyDown:()=>!i&&q(c,S.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:k})=>{if(!i){const j=Fr.includes(N.key)||N.shiftKey&&Lr.includes(N.key)?10:1,M=g.current,F=S[M],L=a*j*k;q(F+L,M,{commit:!0})}}})))),_&&S.map((N,k)=>t.createElement(Fd,{key:k,name:n?n+(S.length>1?"[]":""):void 0,value:N})))}),[Ur,Br]=Vr(st,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Td=t.forwardRef((e,o)=>{const{min:n,max:r,dir:c,inverted:a,onSlideStart:s,onSlideMove:i,onSlideEnd:l,onStepKeyDown:f,...d}=e,[u,$]=t.useState(null),b=D(o,g=>$(g)),p=t.useRef(),v=Ce(c),x=v==="ltr",h=x&&!a||!x&&a;function E(g){const C=p.current||u.getBoundingClientRect(),_=[0,C.width],S=Nn(_,h?[n,r]:[r,n]);return p.current=C,S(g-C.left)}return t.createElement(Ur,{scope:e.__scopeSlider,startEdge:h?"left":"right",endEdge:h?"right":"left",direction:h?1:-1,size:"width"},t.createElement(Hr,m({dir:v,"data-orientation":"horizontal"},d,{ref:b,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:g=>{const C=E(g.clientX);s?.(C)},onSlideMove:g=>{const C=E(g.clientX);i?.(C)},onSlideEnd:()=>{p.current=void 0,l?.()},onStepKeyDown:g=>{const _=Kr[h?"from-left":"from-right"].includes(g.key);f?.({event:g,direction:_?-1:1})}})))}),Dd=t.forwardRef((e,o)=>{const{min:n,max:r,inverted:c,onSlideStart:a,onSlideMove:s,onSlideEnd:i,onStepKeyDown:l,...f}=e,d=t.useRef(null),u=D(o,d),$=t.useRef(),b=!c;function p(v){const x=$.current||d.current.getBoundingClientRect(),h=[0,x.height],g=Nn(h,b?[r,n]:[n,r]);return $.current=x,g(v-x.top)}return t.createElement(Ur,{scope:e.__scopeSlider,startEdge:b?"bottom":"top",endEdge:b?"top":"bottom",size:"height",direction:b?1:-1},t.createElement(Hr,m({"data-orientation":"vertical"},f,{ref:u,style:{...f.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const x=p(v.clientY);a?.(x)},onSlideMove:v=>{const x=p(v.clientY);s?.(x)},onSlideEnd:()=>{$.current=void 0,i?.()},onStepKeyDown:v=>{const h=Kr[b?"from-bottom":"from-top"].includes(v.key);l?.({event:v,direction:h?-1:1})}})))}),Hr=t.forwardRef((e,o)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:c,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:i,onStepKeyDown:l,...f}=e,d=yt(st,n);return t.createElement(y.span,m({},f,{ref:o,onKeyDown:w(e.onKeyDown,u=>{u.key==="Home"?(s(u),u.preventDefault()):u.key==="End"?(i(u),u.preventDefault()):Fr.concat(Lr).includes(u.key)&&(l(u),u.preventDefault())}),onPointerDown:w(e.onPointerDown,u=>{const $=u.target;$.setPointerCapture(u.pointerId),u.preventDefault(),d.thumbs.has($)?$.focus():r(u)}),onPointerMove:w(e.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&c(u)}),onPointerUp:w(e.onPointerUp,u=>{const $=u.target;$.hasPointerCapture(u.pointerId)&&($.releasePointerCapture(u.pointerId),a(u))})}))}),Id="SliderTrack",Ad=t.forwardRef((e,o)=>{const{__scopeSlider:n,...r}=e,c=yt(Id,n);return t.createElement(y.span,m({"data-disabled":c.disabled?"":void 0,"data-orientation":c.orientation},r,{ref:o}))}),uo="SliderRange",Od=t.forwardRef((e,o)=>{const{__scopeSlider:n,...r}=e,c=yt(uo,n),a=Br(uo,n),s=t.useRef(null),i=D(o,s),l=c.values.length,f=c.values.map($=>Wr($,c.min,c.max)),d=l>1?Math.min(...f):0,u=100-Math.max(...f);return t.createElement(y.span,m({"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0},r,{ref:i,style:{...e.style,[a.startEdge]:d+"%",[a.endEdge]:u+"%"}}))}),fo="SliderThumb",Nd=t.forwardRef((e,o)=>{const n=Sd(e.__scopeSlider),[r,c]=t.useState(null),a=D(o,i=>c(i)),s=t.useMemo(()=>r?n().findIndex(i=>i.ref.current===r):-1,[n,r]);return t.createElement(kd,m({},e,{ref:a,index:s}))}),kd=t.forwardRef((e,o)=>{const{__scopeSlider:n,index:r,...c}=e,a=yt(fo,n),s=Br(fo,n),[i,l]=t.useState(null),f=D(o,x=>l(x)),d=et(i),u=a.values[r],$=u===void 0?0:Wr(u,a.min,a.max),b=Kd(r,a.values.length),p=d?.[s.size],v=p?Ud(p,$,s.direction):0;return t.useEffect(()=>{if(i)return a.thumbs.add(i),()=>{a.thumbs.delete(i)}},[i,a.thumbs]),t.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${$}% + ${v}px)`}},t.createElement(rn.ItemSlot,{scope:e.__scopeSlider},t.createElement(y.span,m({role:"slider","aria-label":e["aria-label"]||b,"aria-valuemin":a.min,"aria-valuenow":u,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},c,{ref:f,style:u===void 0?{display:"none"}:e.style,onFocus:w(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})}))))}),Fd=e=>{const{value:o,...n}=e,r=t.useRef(null),c=Ue(o);return t.useEffect(()=>{const a=r.current,s=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(s,"value").set;if(c!==o&&l){const f=new Event("input",{bubbles:!0});l.call(a,o),a.dispatchEvent(f)}},[c,o]),t.createElement("input",m({style:{display:"none"}},n,{ref:r,defaultValue:o}))};function Ld(e=[],o,n){const r=[...e];return r[n]=o,r.sort((c,a)=>c-a)}function Wr(e,o,n){const a=100/(n-o)*(e-o);return Xe(a,[0,100])}function Kd(e,o){return o>2?`Value ${e+1} of ${o}`:o===2?["Minimum","Maximum"][e]:void 0}function Vd(e,o){if(e.length===1)return 0;const n=e.map(c=>Math.abs(c-o)),r=Math.min(...n);return n.indexOf(r)}function Ud(e,o,n){const r=e/2,a=Nn([0,50],[0,r]);return(r-a(o)*n)*n}function Bd(e){return e.slice(0,-1).map((o,n)=>e[n+1]-o)}function Hd(e,o){if(o>0){const n=Bd(e);return Math.min(...n)>=o}return!0}function Nn(e,o){return n=>{if(e[0]===e[1]||o[0]===o[1])return o[0];const r=(o[1]-o[0])/(e[1]-e[0]);return o[0]+r*(n-e[0])}}function Wd(e){return(String(e).split(".")[1]||"").length}function Gd(e,o){const n=Math.pow(10,o);return Math.round(e*n)/n}const Cp=Md,_p=Ad,Pp=Od,Sp=Nd,Gr="Switch",[zd,Rp]=z(Gr),[Yd,Xd]=zd(Gr),jd=t.forwardRef((e,o)=>{const{__scopeSwitch:n,name:r,checked:c,defaultChecked:a,required:s,disabled:i,value:l="on",onCheckedChange:f,...d}=e,[u,$]=t.useState(null),b=D(o,E=>$(E)),p=t.useRef(!1),v=u?!!u.closest("form"):!0,[x=!1,h]=re({prop:c,defaultProp:a,onChange:f});return t.createElement(Yd,{scope:n,checked:x,disabled:i},t.createElement(y.button,m({type:"button",role:"switch","aria-checked":x,"aria-required":s,"data-state":zr(x),"data-disabled":i?"":void 0,disabled:i,value:l},d,{ref:b,onClick:w(e.onClick,E=>{h(g=>!g),v&&(p.current=E.isPropagationStopped(),p.current||E.stopPropagation())})})),v&&t.createElement(Qd,{control:u,bubbles:!p.current,name:r,value:l,checked:x,required:s,disabled:i,style:{transform:"translateX(-100%)"}}))}),qd="SwitchThumb",Zd=t.forwardRef((e,o)=>{const{__scopeSwitch:n,...r}=e,c=Xd(qd,n);return t.createElement(y.span,m({"data-state":zr(c.checked),"data-disabled":c.disabled?"":void 0},r,{ref:o}))}),Qd=e=>{const{control:o,checked:n,bubbles:r=!0,...c}=e,a=t.useRef(null),s=Ue(n),i=et(o);return t.useEffect(()=>{const l=a.current,f=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(f,"checked").set;if(s!==n&&u){const $=new Event("click",{bubbles:r});u.call(l,n),l.dispatchEvent($)}},[s,n,r]),t.createElement("input",m({type:"checkbox","aria-hidden":!0,defaultChecked:n},c,{tabIndex:-1,ref:a,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function zr(e){return e?"checked":"unchecked"}const yp=jd,Mp=Zd,Jd=t.forwardRef((e,o)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:c,...a}=e,[s=!1,i]=re({prop:n,onChange:c,defaultProp:r});return t.createElement(y.button,m({type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:o,onClick:w(e.onClick,()=>{e.disabled||i(!s)})}))}),Tp=Jd,[Mt,Dp]=z("Tooltip",[pe]),eu=pe(),tu="TooltipProvider",$o="tooltip.open",[Ip,nu]=Mt(tu),Yr="Tooltip",[Ap,kn]=Mt(Yr),ou="TooltipPortal",[Op,ru]=Mt(ou,{forceMount:void 0}),Ze="TooltipContent",cu=t.forwardRef((e,o)=>{const n=ru(Ze,e.__scopeTooltip),{forceMount:r=n.forceMount,side:c="top",...a}=e,s=kn(Ze,e.__scopeTooltip);return t.createElement(Y,{present:r||s.open},s.disableHoverableContent?t.createElement(Xr,m({side:c},a,{ref:o})):t.createElement(au,m({side:c},a,{ref:o})))}),au=t.forwardRef((e,o)=>{const n=kn(Ze,e.__scopeTooltip),r=nu(Ze,e.__scopeTooltip),c=t.useRef(null),a=D(o,c),[s,i]=t.useState(null),{trigger:l,onClose:f}=n,d=c.current,{onPointerInTransitChange:u}=r,$=t.useCallback(()=>{i(null),u(!1)},[u]),b=t.useCallback((p,v)=>{const x=p.currentTarget,h={x:p.clientX,y:p.clientY},E=iu(h,x.getBoundingClientRect()),g=lu(h,E),C=du(v.getBoundingClientRect()),_=fu([...g,...C]);i(_),u(!0)},[u]);return t.useEffect(()=>()=>$(),[$]),t.useEffect(()=>{if(l&&d){const p=x=>b(x,d),v=x=>b(x,l);return l.addEventListener("pointerleave",p),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",p),d.removeEventListener("pointerleave",v)}}},[l,d,b,$]),t.useEffect(()=>{if(s){const p=v=>{const x=v.target,h={x:v.clientX,y:v.clientY},E=l?.contains(x)||d?.contains(x),g=!uu(h,s);E?$():g&&($(),f())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,d,s,f,$]),t.createElement(Xr,m({},e,{ref:a}))}),[su,Np]=Mt(Yr,{isInside:!1}),Xr=t.forwardRef((e,o)=>{const{__scopeTooltip:n,children:r,"aria-label":c,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=kn(Ze,n),f=eu(n),{onClose:d}=l;return t.useEffect(()=>(document.addEventListener($o,d),()=>document.removeEventListener($o,d)),[d]),t.useEffect(()=>{if(l.trigger){const u=$=>{const b=$.target;b!=null&&b.contains(l.trigger)&&d()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,d]),t.createElement(Me,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u=>u.preventDefault(),onDismiss:d},t.createElement(tt,m({"data-state":l.stateAttribute},f,i,{ref:o,style:{...i.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)"}}),t.createElement(fn,null,r),t.createElement(su,{scope:n,isInside:!0},t.createElement(zo,{id:l.contentId,role:"tooltip"},c||r))))});function iu(e,o){const n=Math.abs(o.top-e.y),r=Math.abs(o.bottom-e.y),c=Math.abs(o.right-e.x),a=Math.abs(o.left-e.x);switch(Math.min(n,r,c,a)){case a:return"left";case c:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function lu(e,o,n=5){const r=[];switch(o){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 du(e){const{top:o,right:n,bottom:r,left:c}=e;return[{x:c,y:o},{x:n,y:o},{x:n,y:r},{x:c,y:r}]}function uu(e,o){const{x:n,y:r}=e;let c=!1;for(let a=0,s=o.length-1;ar!=d>r&&n<(f-i)*(r-l)/(d-l)+i&&(c=!c)}return c}function fu(e){const o=e.slice();return o.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),$u(o)}function $u(e){if(e.length<=1)return e.slice();const o=[];for(let r=0;r=2;){const a=o[o.length-1],s=o[o.length-2];if((a.x-s.x)*(c.y-s.y)>=(a.y-s.y)*(c.x-s.x))o.pop();else break}o.push(c)}o.pop();const n=[];for(let r=e.length-1;r>=0;r--){const c=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(c.y-s.y)>=(a.y-s.y)*(c.x-s.x))n.pop();else break}n.push(c)}return n.pop(),o.length===1&&n.length===1&&o[0].x===n[0].x&&o[0].y===n[0].y?o:o.concat(n)}const kp=cu,jr="Collapsible",[pu,qr]=z(jr),[bu,Fn]=pu(jr),vu=t.forwardRef((e,o)=>{const{__scopeCollapsible:n,open:r,defaultOpen:c,disabled:a,onOpenChange:s,...i}=e,[l=!1,f]=re({prop:r,defaultProp:c,onChange:s});return t.createElement(bu,{scope:n,disabled:a,contentId:$e(),open:l,onOpenToggle:t.useCallback(()=>f(d=>!d),[f])},t.createElement(y.div,m({"data-state":Ln(l),"data-disabled":a?"":void 0},i,{ref:o})))}),mu="CollapsibleTrigger",hu=t.forwardRef((e,o)=>{const{__scopeCollapsible:n,...r}=e,c=Fn(mu,n);return t.createElement(y.button,m({type:"button","aria-controls":c.contentId,"aria-expanded":c.open||!1,"data-state":Ln(c.open),"data-disabled":c.disabled?"":void 0,disabled:c.disabled},r,{ref:o,onClick:w(e.onClick,c.onOpenToggle)}))}),Zr="CollapsibleContent",gu=t.forwardRef((e,o)=>{const{forceMount:n,...r}=e,c=Fn(Zr,e.__scopeCollapsible);return t.createElement(Y,{present:n||c.open},({present:a})=>t.createElement(Eu,m({},r,{ref:o,present:a})))}),Eu=t.forwardRef((e,o)=>{const{__scopeCollapsible:n,present:r,children:c,...a}=e,s=Fn(Zr,n),[i,l]=t.useState(r),f=t.useRef(null),d=D(o,f),u=t.useRef(0),$=u.current,b=t.useRef(0),p=b.current,v=s.open||i,x=t.useRef(v),h=t.useRef();return t.useEffect(()=>{const E=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(E)},[]),ee(()=>{const E=f.current;if(E){h.current=h.current||{transitionDuration:E.style.transitionDuration,animationName:E.style.animationName},E.style.transitionDuration="0s",E.style.animationName="none";const g=E.getBoundingClientRect();u.current=g.height,b.current=g.width,x.current||(E.style.transitionDuration=h.current.transitionDuration,E.style.animationName=h.current.animationName),l(r)}},[s.open,r]),t.createElement(y.div,m({"data-state":Ln(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!v},a,{ref:d,style:{"--radix-collapsible-content-height":$?`${$}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),v&&c)});function Ln(e){return e?"open":"closed"}const xu=vu,wu=hu,Cu=gu,Kn="Menubar",[cn,_u,Pu]=we(Kn),[Qr,Fp]=z(Kn,[Pu,_e]),fe=nt(),Jr=_e(),[Su,ec]=Qr(Kn),Ru=t.forwardRef((e,o)=>{const{__scopeMenubar:n,value:r,onValueChange:c,defaultValue:a,loop:s=!0,dir:i,...l}=e,f=Ce(i),d=Jr(n),[u="",$]=re({prop:r,onChange:c,defaultProp:a}),[b,p]=t.useState(null);return t.createElement(Su,{scope:n,value:u,onMenuOpen:t.useCallback(v=>{$(v),p(v)},[$]),onMenuClose:t.useCallback(()=>$(""),[$]),onMenuToggle:t.useCallback(v=>{$(x=>x?"":v),p(v)},[$]),dir:f,loop:s},t.createElement(cn.Provider,{scope:n},t.createElement(cn.Slot,{scope:n},t.createElement(xt,m({asChild:!0},d,{orientation:"horizontal",loop:s,dir:f,currentTabStopId:b,onCurrentTabStopIdChange:p}),t.createElement(y.div,m({role:"menubar"},l,{ref:o}))))))}),yu="MenubarMenu",[Lp,tc]=Qr(yu),po="MenubarTrigger",Mu=t.forwardRef((e,o)=>{const{__scopeMenubar:n,disabled:r=!1,...c}=e,a=Jr(n),s=fe(n),i=ec(po,n),l=tc(po,n),f=t.useRef(null),d=D(o,f,l.triggerRef),[u,$]=t.useState(!1),b=i.value===l.value;return t.createElement(cn.ItemSlot,{scope:n,value:l.value,disabled:r},t.createElement(wt,m({asChild:!0},a,{focusable:!r,tabStopId:l.value}),t.createElement(Uo,m({asChild:!0},s),t.createElement(y.button,m({type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":b,"aria-controls":b?l.contentId:void 0,"data-highlighted":u?"":void 0,"data-state":b?"open":"closed","data-disabled":r?"":void 0,disabled:r},c,{ref:d,onPointerDown:w(e.onPointerDown,p=>{!r&&p.button===0&&p.ctrlKey===!1&&(i.onMenuOpen(l.value),b||p.preventDefault())}),onPointerEnter:w(e.onPointerEnter,()=>{if(!!i.value&&!b){var v;i.onMenuOpen(l.value),(v=f.current)===null||v===void 0||v.focus()}}),onKeyDown:w(e.onKeyDown,p=>{r||(["Enter"," "].includes(p.key)&&i.onMenuToggle(l.value),p.key==="ArrowDown"&&i.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(p.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,p.preventDefault()))}),onFocus:w(e.onFocus,()=>$(!0)),onBlur:w(e.onBlur,()=>$(!1))})))))}),Tu=e=>{const{__scopeMenubar:o,...n}=e,r=fe(o);return t.createElement(gn,m({},r,n))},bo="MenubarContent",Du=t.forwardRef((e,o)=>{const{__scopeMenubar:n,align:r="start",...c}=e,a=fe(n),s=ec(bo,n),i=tc(bo,n),l=_u(n),f=t.useRef(!1);return t.createElement(En,m({id:i.contentId,"aria-labelledby":i.triggerId,"data-radix-menubar-content":""},a,c,{ref:o,align:r,onCloseAutoFocus:w(e.onCloseAutoFocus,d=>{if(!!!s.value&&!f.current){var $;($=i.triggerRef.current)===null||$===void 0||$.focus()}f.current=!1,d.preventDefault()}),onFocusOutside:w(e.onFocusOutside,d=>{const u=d.target;l().some(b=>{var p;return(p=b.ref.current)===null||p===void 0?void 0:p.contains(u)})&&d.preventDefault()}),onInteractOutside:w(e.onInteractOutside,()=>{f.current=!0}),onEntryFocus:d=>{i.wasKeyboardTriggerOpenRef.current||d.preventDefault()},onKeyDown:w(e.onKeyDown,d=>{if(["ArrowRight","ArrowLeft"].includes(d.key)){const u=d.target,$=u.hasAttribute("data-radix-menubar-subtrigger"),b=u.closest("[data-radix-menubar-content]")!==d.currentTarget,v=(s.dir==="rtl"?"ArrowRight":"ArrowLeft")===d.key;if(!v&&$||b&&v)return;let E=l().filter(_=>!_.disabled).map(_=>_.value);v&&E.reverse();const g=E.indexOf(i.value);E=s.loop?Vu(E,g+1):E.slice(g+1);const[C]=E;C&&s.onMenuOpen(C)}},{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)"}}))}),Iu=t.forwardRef((e,o)=>{const{__scopeMenubar:n,...r}=e,c=fe(n);return t.createElement(xn,m({},c,r,{ref:o}))}),Au=t.forwardRef((e,o)=>{const{__scopeMenubar:n,...r}=e,c=fe(n);return t.createElement(wn,m({},c,r,{ref:o}))}),Ou=t.forwardRef((e,o)=>{const{__scopeMenubar:n,...r}=e,c=fe(n);return t.createElement(Cn,m({},c,r,{ref:o}))}),Nu=t.forwardRef((e,o)=>{const{__scopeMenubar:n,...r}=e,c=fe(n);return t.createElement(_n,m({},c,r,{ref:o}))}),ku=t.forwardRef((e,o)=>{const{__scopeMenubar:n,...r}=e,c=fe(n);return t.createElement(Pn,m({},c,r,{ref:o}))}),Fu=t.forwardRef((e,o)=>{const{__scopeMenubar:n,...r}=e,c=fe(n);return t.createElement(Sn,m({},c,r,{ref:o}))}),Lu=t.forwardRef((e,o)=>{const{__scopeMenubar:n,...r}=e,c=fe(n);return t.createElement(Rn,m({"data-radix-menubar-subtrigger":""},c,r,{ref:o}))}),Ku=t.forwardRef((e,o)=>{const{__scopeMenubar:n,...r}=e,c=fe(n);return t.createElement(yn,m({},c,{"data-radix-menubar-content":""},r,{ref:o,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 Vu(e,o){return e.map((n,r)=>e[(o+r)%e.length])}const Kp=Ru,Vp=Mu,Up=Tu,Bp=Du,Hp=Iu,Wp=Au,Gp=Ou,zp=Nu,Yp=ku,Xp=Fu,jp=Lu,qp=Ku,Pe="Accordion",Uu=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Vn,Bu,Hu]=we(Pe),[Tt,Zp]=z(Pe,[Hu,qr]),Un=qr(),Wu=O.forwardRef((e,o)=>{const{type:n,...r}=e,c=r,a=r;return O.createElement(Vn.Provider,{scope:e.__scopeAccordion},n==="multiple"?O.createElement(Xu,m({},a,{ref:o})):O.createElement(Yu,m({},c,{ref:o})))});Wu.propTypes={type(e){const o=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 o=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(o)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[nc,Gu]=Tt(Pe),[oc,zu]=Tt(Pe,{collapsible:!1}),Yu=O.forwardRef((e,o)=>{const{value:n,defaultValue:r,onValueChange:c=()=>{},collapsible:a=!1,...s}=e,[i,l]=re({prop:n,defaultProp:r,onChange:c});return O.createElement(nc,{scope:e.__scopeAccordion,value:i?[i]:[],onItemOpen:l,onItemClose:O.useCallback(()=>a&&l(""),[a,l])},O.createElement(oc,{scope:e.__scopeAccordion,collapsible:a},O.createElement(rc,m({},s,{ref:o}))))}),Xu=O.forwardRef((e,o)=>{const{value:n,defaultValue:r,onValueChange:c=()=>{},...a}=e,[s=[],i]=re({prop:n,defaultProp:r,onChange:c}),l=O.useCallback(d=>i((u=[])=>[...u,d]),[i]),f=O.useCallback(d=>i((u=[])=>u.filter($=>$!==d)),[i]);return O.createElement(nc,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:f},O.createElement(oc,{scope:e.__scopeAccordion,collapsible:!0},O.createElement(rc,m({},a,{ref:o}))))}),[ju,Dt]=Tt(Pe),rc=O.forwardRef((e,o)=>{const{__scopeAccordion:n,disabled:r,dir:c,orientation:a="vertical",...s}=e,i=O.useRef(null),l=D(i,o),f=Bu(n),u=Ce(c)==="ltr",$=w(e.onKeyDown,b=>{var p;if(!Uu.includes(b.key))return;const v=b.target,x=f().filter(P=>{var A;return!((A=P.ref.current)!==null&&A!==void 0&&A.disabled)}),h=x.findIndex(P=>P.ref.current===v),E=x.length;if(h===-1)return;b.preventDefault();let g=h;const C=0,_=E-1,R=()=>{g=h+1,g>_&&(g=C)},S=()=>{g=h-1,g{const{__scopeAccordion:n,value:r,...c}=e,a=Dt(an,n),s=Gu(an,n),i=Un(n),l=$e(),f=r&&s.value.includes(r)||!1,d=a.disabled||e.disabled;return O.createElement(qu,{scope:n,open:f,disabled:d,triggerId:l},O.createElement(xu,m({"data-orientation":a.orientation,"data-state":cc(f)},i,c,{ref:o,disabled:d,open:f,onOpenChange:u=>{u?s.onItemOpen(r):s.onItemClose(r)}})))}),Qu="AccordionHeader",Ju=O.forwardRef((e,o)=>{const{__scopeAccordion:n,...r}=e,c=Dt(Pe,n),a=Bn(Qu,n);return O.createElement(y.h3,m({"data-orientation":c.orientation,"data-state":cc(a.open),"data-disabled":a.disabled?"":void 0},r,{ref:o}))}),vo="AccordionTrigger",ef=O.forwardRef((e,o)=>{const{__scopeAccordion:n,...r}=e,c=Dt(Pe,n),a=Bn(vo,n),s=zu(vo,n),i=Un(n);return O.createElement(Vn.ItemSlot,{scope:n},O.createElement(wu,m({"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":c.orientation,id:a.triggerId},i,r,{ref:o})))}),tf="AccordionContent",nf=O.forwardRef((e,o)=>{const{__scopeAccordion:n,...r}=e,c=Dt(Pe,n),a=Bn(tf,n),s=Un(n);return O.createElement(Cu,m({role:"region","aria-labelledby":a.triggerId,"data-orientation":c.orientation},s,r,{ref:o,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function cc(e){return e?"open":"closed"}const Qp=Zu,Jp=Ju,eb=ef,tb=nf;function of(e,o){return t.useReducer((n,r)=>{const c=o[n][r];return c??n},e)}const ac="ScrollArea",[sc,nb]=z(ac),[rf,le]=sc(ac),cf=t.forwardRef((e,o)=>{const{__scopeScrollArea:n,type:r="hover",dir:c,scrollHideDelay:a=600,...s}=e,[i,l]=t.useState(null),[f,d]=t.useState(null),[u,$]=t.useState(null),[b,p]=t.useState(null),[v,x]=t.useState(null),[h,E]=t.useState(0),[g,C]=t.useState(0),[_,R]=t.useState(!1),[S,T]=t.useState(!1),P=D(o,K=>l(K)),A=Ce(c);return t.createElement(rf,{scope:n,type:r,dir:A,scrollHideDelay:a,scrollArea:i,viewport:f,onViewportChange:d,content:u,onContentChange:$,scrollbarX:b,onScrollbarXChange:p,scrollbarXEnabled:_,onScrollbarXEnabledChange:R,scrollbarY:v,onScrollbarYChange:x,scrollbarYEnabled:S,onScrollbarYEnabledChange:T,onCornerWidthChange:E,onCornerHeightChange:C},t.createElement(y.div,m({dir:A},s,{ref:P,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":g+"px",...e.style}})))}),af="ScrollAreaViewport",sf=t.forwardRef((e,o)=>{const{__scopeScrollArea:n,children:r,...c}=e,a=le(af,n),s=t.useRef(null),i=D(o,s,a.onViewportChange);return t.createElement(t.Fragment,null,t.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}"}}),t.createElement(y.div,m({"data-radix-scroll-area-viewport":""},c,{ref:i,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),t.createElement("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),ge="ScrollAreaScrollbar",ob=t.forwardRef((e,o)=>{const{forceMount:n,...r}=e,c=le(ge,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=c,i=e.orientation==="horizontal";return t.useEffect(()=>(i?a(!0):s(!0),()=>{i?a(!1):s(!1)}),[i,a,s]),c.type==="hover"?t.createElement(lf,m({},r,{ref:o,forceMount:n})):c.type==="scroll"?t.createElement(df,m({},r,{ref:o,forceMount:n})):c.type==="auto"?t.createElement(ic,m({},r,{ref:o,forceMount:n})):c.type==="always"?t.createElement(Hn,m({},r,{ref:o})):null}),lf=t.forwardRef((e,o)=>{const{forceMount:n,...r}=e,c=le(ge,e.__scopeScrollArea),[a,s]=t.useState(!1);return t.useEffect(()=>{const i=c.scrollArea;let l=0;if(i){const f=()=>{window.clearTimeout(l),s(!0)},d=()=>{l=window.setTimeout(()=>s(!1),c.scrollHideDelay)};return i.addEventListener("pointerenter",f),i.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",f),i.removeEventListener("pointerleave",d)}}},[c.scrollArea,c.scrollHideDelay]),t.createElement(Y,{present:n||a},t.createElement(ic,m({"data-state":a?"visible":"hidden"},r,{ref:o})))}),df=t.forwardRef((e,o)=>{const{forceMount:n,...r}=e,c=le(ge,e.__scopeScrollArea),a=e.orientation==="horizontal",s=At(()=>l("SCROLL_END"),100),[i,l]=of("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 t.useEffect(()=>{if(i==="idle"){const f=window.setTimeout(()=>l("HIDE"),c.scrollHideDelay);return()=>window.clearTimeout(f)}},[i,c.scrollHideDelay,l]),t.useEffect(()=>{const f=c.viewport,d=a?"scrollLeft":"scrollTop";if(f){let u=f[d];const $=()=>{const b=f[d];u!==b&&(l("SCROLL"),s()),u=b};return f.addEventListener("scroll",$),()=>f.removeEventListener("scroll",$)}},[c.viewport,a,l,s]),t.createElement(Y,{present:n||i!=="hidden"},t.createElement(Hn,m({"data-state":i==="hidden"?"hidden":"visible"},r,{ref:o,onPointerEnter:w(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:w(e.onPointerLeave,()=>l("POINTER_LEAVE"))})))}),ic=t.forwardRef((e,o)=>{const n=le(ge,e.__scopeScrollArea),{forceMount:r,...c}=e,[a,s]=t.useState(!1),i=e.orientation==="horizontal",l=At(()=>{if(n.viewport){const f=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,c=le(ge,e.__scopeScrollArea),a=t.useRef(null),s=t.useRef(0),[i,l]=t.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=fc(i.viewport,i.content),d={...r,sizes:i,onSizesChange:l,hasThumb:f>0&&f<1,onThumbChange:$=>a.current=$,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:$=>s.current=$};function u($,b){return mf($,s.current,i,b)}return n==="horizontal"?t.createElement(uf,m({},d,{ref:o,onThumbPositionChange:()=>{if(c.viewport&&a.current){const $=c.viewport.scrollLeft,b=mo($,i,c.dir);a.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:$=>{c.viewport&&(c.viewport.scrollLeft=$)},onDragScroll:$=>{c.viewport&&(c.viewport.scrollLeft=u($,c.dir))}})):n==="vertical"?t.createElement(ff,m({},d,{ref:o,onThumbPositionChange:()=>{if(c.viewport&&a.current){const $=c.viewport.scrollTop,b=mo($,i);a.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:$=>{c.viewport&&(c.viewport.scrollTop=$)},onDragScroll:$=>{c.viewport&&(c.viewport.scrollTop=u($))}})):null}),uf=t.forwardRef((e,o)=>{const{sizes:n,onSizesChange:r,...c}=e,a=le(ge,e.__scopeScrollArea),[s,i]=t.useState(),l=t.useRef(null),f=D(o,l,a.onScrollbarXChange);return t.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),t.createElement(dc,m({"data-orientation":"horizontal"},c,{ref:f,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":It(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,u)=>{if(a.viewport){const $=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll($),pc($,u)&&d.preventDefault()}},onResize:()=>{l.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:bt(s.paddingLeft),paddingEnd:bt(s.paddingRight)}})}}))}),ff=t.forwardRef((e,o)=>{const{sizes:n,onSizesChange:r,...c}=e,a=le(ge,e.__scopeScrollArea),[s,i]=t.useState(),l=t.useRef(null),f=D(o,l,a.onScrollbarYChange);return t.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),t.createElement(dc,m({"data-orientation":"vertical"},c,{ref:f,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":It(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,u)=>{if(a.viewport){const $=a.viewport.scrollTop+d.deltaY;e.onWheelScroll($),pc($,u)&&d.preventDefault()}},onResize:()=>{l.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:bt(s.paddingTop),paddingEnd:bt(s.paddingBottom)}})}}))}),[$f,lc]=sc(ge),dc=t.forwardRef((e,o)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:c,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:f,onWheelScroll:d,onResize:u,...$}=e,b=le(ge,n),[p,v]=t.useState(null),x=D(o,P=>v(P)),h=t.useRef(null),E=t.useRef(""),g=b.viewport,C=r.content-r.viewport,_=G(d),R=G(l),S=At(u,10);function T(P){if(h.current){const A=P.clientX-h.current.left,K=P.clientY-h.current.top;f({x:A,y:K})}}return t.useEffect(()=>{const P=A=>{const K=A.target;p?.contains(K)&&_(A,C)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[g,p,C,_]),t.useEffect(R,[r,R]),Ke(p,S),Ke(b.content,S),t.createElement($f,{scope:n,scrollbar:p,hasThumb:c,onThumbChange:G(a),onThumbPointerUp:G(s),onThumbPositionChange:R,onThumbPointerDown:G(i)},t.createElement(y.div,m({},$,{ref:x,style:{position:"absolute",...$.style},onPointerDown:w(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),h.current=p.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),T(P))}),onPointerMove:w(e.onPointerMove,T),onPointerUp:w(e.onPointerUp,P=>{const A=P.target;A.hasPointerCapture(P.pointerId)&&A.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=E.current,b.viewport&&(b.viewport.style.scrollBehavior=""),h.current=null})})))}),sn="ScrollAreaThumb",rb=t.forwardRef((e,o)=>{const{forceMount:n,...r}=e,c=lc(sn,e.__scopeScrollArea);return t.createElement(Y,{present:n||c.hasThumb},t.createElement(pf,m({ref:o},r)))}),pf=t.forwardRef((e,o)=>{const{__scopeScrollArea:n,style:r,...c}=e,a=le(sn,n),s=lc(sn,n),{onThumbPositionChange:i}=s,l=D(o,u=>s.onThumbChange(u)),f=t.useRef(),d=At(()=>{f.current&&(f.current(),f.current=void 0)},100);return t.useEffect(()=>{const u=a.viewport;if(u){const $=()=>{if(d(),!f.current){const b=hf(u,i);f.current=b,i()}};return i(),u.addEventListener("scroll",$),()=>u.removeEventListener("scroll",$)}},[a.viewport,d,i]),t.createElement(y.div,m({"data-state":s.hasThumb?"visible":"hidden"},c,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:w(e.onPointerDownCapture,u=>{const b=u.target.getBoundingClientRect(),p=u.clientX-b.left,v=u.clientY-b.top;s.onThumbPointerDown({x:p,y:v})}),onPointerUp:w(e.onPointerUp,s.onThumbPointerUp)}))}),uc="ScrollAreaCorner",bf=t.forwardRef((e,o)=>{const n=le(uc,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?t.createElement(vf,m({},e,{ref:o})):null}),vf=t.forwardRef((e,o)=>{const{__scopeScrollArea:n,...r}=e,c=le(uc,n),[a,s]=t.useState(0),[i,l]=t.useState(0),f=!!(a&&i);return Ke(c.scrollbarX,()=>{var d;const u=((d=c.scrollbarX)===null||d===void 0?void 0:d.offsetHeight)||0;c.onCornerHeightChange(u),l(u)}),Ke(c.scrollbarY,()=>{var d;const u=((d=c.scrollbarY)===null||d===void 0?void 0:d.offsetWidth)||0;c.onCornerWidthChange(u),s(u)}),f?t.createElement(y.div,m({},r,{ref:o,style:{width:a,height:i,position:"absolute",right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function bt(e){return e?parseInt(e,10):0}function fc(e,o){const n=e/o;return isNaN(n)?0:n}function It(e){const o=fc(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*o;return Math.max(r,18)}function mf(e,o,n,r="ltr"){const c=It(n),a=c/2,s=o||a,i=c-s,l=n.scrollbar.paddingStart+s,f=n.scrollbar.size-n.scrollbar.paddingEnd-i,d=n.content-n.viewport,u=r==="ltr"?[0,d]:[d*-1,0];return $c([l,f],u)(e)}function mo(e,o,n="ltr"){const r=It(o),c=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,a=o.scrollbar.size-c,s=o.content-o.viewport,i=a-r,l=n==="ltr"?[0,s]:[s*-1,0],f=Xe(e,l);return $c([0,s],[0,i])(f)}function $c(e,o){return n=>{if(e[0]===e[1]||o[0]===o[1])return o[0];const r=(o[1]-o[0])/(e[1]-e[0]);return o[0]+r*(n-e[0])}}function pc(e,o){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function c(){const a={left:e.scrollLeft,top:e.scrollTop},s=n.left!==a.left,i=n.top!==a.top;(s||i)&&o(),n=a,r=window.requestAnimationFrame(c)}(),()=>window.cancelAnimationFrame(r)};function At(e,o){const n=G(e),r=t.useRef(0);return t.useEffect(()=>()=>window.clearTimeout(r.current),[]),t.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,o)},[n,o])}function Ke(e,o){const n=G(o);ee(()=>{let r=0;if(e){const c=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return c.observe(e),()=>{window.cancelAnimationFrame(r),c.unobserve(e)}}},[e,n])}const cb=cf,ab=sf,sb=bf,gf="AlertDialog",[Ef,ib]=z(gf,[xr]),Oe=xr(),xf=e=>{const{__scopeAlertDialog:o,...n}=e,r=Oe(o);return t.createElement(kl,m({},r,n))},wf=t.forwardRef((e,o)=>{const{__scopeAlertDialog:n,...r}=e,c=Oe(n);return t.createElement(Fl,m({},c,r,{ref:o}))}),bc="AlertDialogContent",[Cf,_f]=Ef(bc),Pf=t.forwardRef((e,o)=>{const{__scopeAlertDialog:n,children:r,...c}=e,a=Oe(n),s=t.useRef(null),i=D(o,s),l=t.useRef(null);return t.createElement(Nl,{contentName:bc,titleName:Sf,docsSlug:"alert-dialog"},t.createElement(Cf,{scope:n,cancelRef:l},t.createElement(Ll,m({role:"alertdialog"},a,c,{ref:i,onOpenAutoFocus:w(c.onOpenAutoFocus,f=>{var d;f.preventDefault(),(d=l.current)===null||d===void 0||d.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault()}),t.createElement(fn,null,r),!1)))}),Sf="AlertDialogTitle",Rf=t.forwardRef((e,o)=>{const{__scopeAlertDialog:n,...r}=e,c=Oe(n);return t.createElement(Kl,m({},c,r,{ref:o}))}),yf=t.forwardRef((e,o)=>{const{__scopeAlertDialog:n,...r}=e,c=Oe(n);return t.createElement(Vl,m({},c,r,{ref:o}))}),Mf=t.forwardRef((e,o)=>{const{__scopeAlertDialog:n,...r}=e,c=Oe(n);return t.createElement(Rr,m({},c,r,{ref:o}))}),Tf="AlertDialogCancel",Df=t.forwardRef((e,o)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:c}=_f(Tf,n),a=Oe(n),s=D(o,c);return t.createElement(Rr,m({},a,r,{ref:s}))}),lb=xf,db=wf,ub=Pf,fb=Mf,$b=Df,pb=Rf,bb=yf,vc="Tabs",[If,vb]=z(vc,[_e]),mc=_e(),[mb,Wn]=If(vc),Af="TabsList",Of=t.forwardRef((e,o)=>{const{__scopeTabs:n,loop:r=!0,...c}=e,a=Wn(Af,n),s=mc(n);return t.createElement(xt,m({asChild:!0},s,{orientation:a.orientation,dir:a.dir,loop:r}),t.createElement(y.div,m({role:"tablist","aria-orientation":a.orientation},c,{ref:o})))}),Nf="TabsTrigger",kf=t.forwardRef((e,o)=>{const{__scopeTabs:n,value:r,disabled:c=!1,...a}=e,s=Wn(Nf,n),i=mc(n),l=hc(s.baseId,r),f=gc(s.baseId,r),d=r===s.value;return t.createElement(wt,m({asChild:!0},i,{focusable:!c,active:d}),t.createElement(y.button,m({type:"button",role:"tab","aria-selected":d,"aria-controls":f,"data-state":d?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:l},a,{ref:o,onMouseDown:w(e.onMouseDown,u=>{!c&&u.button===0&&u.ctrlKey===!1?s.onValueChange(r):u.preventDefault()}),onKeyDown:w(e.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&s.onValueChange(r)}),onFocus:w(e.onFocus,()=>{const u=s.activationMode!=="manual";!d&&!c&&u&&s.onValueChange(r)})})))}),Ff="TabsContent",Lf=t.forwardRef((e,o)=>{const{__scopeTabs:n,value:r,forceMount:c,children:a,...s}=e,i=Wn(Ff,n),l=hc(i.baseId,r),f=gc(i.baseId,r),d=r===i.value,u=t.useRef(d);return t.useEffect(()=>{const $=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame($)},[]),t.createElement(Y,{present:c||d},({present:$})=>t.createElement(y.div,m({"data-state":d?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!$,id:f,tabIndex:0},s,{ref:o,style:{...e.style,animationDuration:u.current?"0s":void 0}}),$&&a))});function hc(e,o){return`${e}-trigger-${o}`}function gc(e,o){return`${e}-content-${o}`}const hb=Of,gb=kf,Eb=Lf;let Wt;const Ec="HoverCard",[xc,xb]=z(Ec,[pe]),Kf=pe(),[wb,wc]=xc(Ec),Vf="HoverCardPortal",[Cb,Uf]=xc(Vf,{forceMount:void 0}),ln="HoverCardContent",Bf=t.forwardRef((e,o)=>{const n=Uf(ln,e.__scopeHoverCard),{forceMount:r=n.forceMount,...c}=e,a=wc(ln,e.__scopeHoverCard);return t.createElement(Y,{present:r||a.open},t.createElement(Hf,m({"data-state":a.open?"open":"closed"},c,{onPointerEnter:w(e.onPointerEnter,ho(a.onOpen)),onPointerLeave:w(e.onPointerLeave,ho(a.onClose)),ref:o})))}),Hf=t.forwardRef((e,o)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:a,onInteractOutside:s,...i}=e,l=wc(ln,n),f=Kf(n),d=t.useRef(null),u=D(o,d),[$,b]=t.useState(!1);return t.useEffect(()=>{if($){const p=document.body;return Wt=p.style.userSelect||p.style.webkitUserSelect,p.style.userSelect="none",p.style.webkitUserSelect="none",()=>{p.style.userSelect=Wt,p.style.webkitUserSelect=Wt}}},[$]),t.useEffect(()=>{if(d.current){const p=()=>{b(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var v;((v=document.getSelection())===null||v===void 0?void 0:v.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",p),()=>{document.removeEventListener("pointerup",p),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),t.useEffect(()=>{d.current&&Wf(d.current).forEach(v=>v.setAttribute("tabindex","-1"))}),t.createElement(Me,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:w(a,p=>{p.preventDefault()}),onDismiss:l.onDismiss},t.createElement(tt,m({},f,i,{onPointerDown:w(i.onPointerDown,p=>{p.currentTarget.contains(p.target)&&b(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:u,style:{...i.style,userSelect:$?"text":void 0,WebkitUserSelect:$?"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 ho(e){return o=>o.pointerType==="touch"?void 0:e()}function Wf(e){const o=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)o.push(n.currentNode);return o}const _b=Bf,Cc="Progress",Ot=100,[Gf,Pb]=z(Cc),[zf,Yf]=Gf(Cc),_c=t.forwardRef((e,o)=>{const{__scopeProgress:n,value:r,max:c,getValueLabel:a=qf,...s}=e,i=dn(c)?c:Ot,l=Sc(r,i)?r:null,f=vt(l)?a(l,i):void 0;return t.createElement(zf,{scope:n,value:l,max:i},t.createElement(y.div,m({"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":vt(l)?l:void 0,"aria-valuetext":f,role:"progressbar","data-state":Pc(l,i),"data-value":l??void 0,"data-max":i},s,{ref:o})))});_c.propTypes={max(e,o,n){const r=e[o],c=String(r);return r&&!dn(r)?new Error(Zf(c,n)):null},value(e,o,n){const r=e[o],c=String(r),a=dn(e.max)?e.max:Ot;return r!=null&&!Sc(r,a)?new Error(Qf(c,n)):null}};const Xf="ProgressIndicator",jf=t.forwardRef((e,o)=>{var n;const{__scopeProgress:r,...c}=e,a=Yf(Xf,r);return t.createElement(y.div,m({"data-state":Pc(a.value,a.max),"data-value":(n=a.value)!==null&&n!==void 0?n:void 0,"data-max":a.max},c,{ref:o}))});function qf(e,o){return`${Math.round(e/o*100)}%`}function Pc(e,o){return e==null?"indeterminate":e===o?"complete":"loading"}function vt(e){return typeof e=="number"}function dn(e){return vt(e)&&!isNaN(e)&&e>0}function Sc(e,o){return vt(e)&&!isNaN(e)&&e<=o&&e>=0}function Zf(e,o){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ot}\`.`}function Qf(e,o){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${o}\`. The \`value\` prop must be: - - a positive number - - less than the value passed to \`max\` (or ${Ot} if no \`max\` prop is set) - - \`null\` if the progress is indeterminate. - -Defaulting to \`null\`.`}const Sb=_c,Rb=jf;export{hp as $,y$ as A,A$ as B,E$ as C,w$ as D,L$ as E,K$ as F,V$ as G,g$ as H,B$ as I,H$ as J,U$ as K,G$ as L,z$ as M,X$ as N,j$ as O,q$ as P,tp as Q,np as R,m$ as S,op as T,rp as U,cp as V,ap as W,sp as X,lp as Y,ip as Z,dp as _,gp as a,$p as a0,pp as a1,Fl as a2,Ll as a3,Rr as a4,x$ as a5,Kl as a6,Vl as a7,kl as a8,vp as a9,ab as aA,sb as aB,ob as aC,rb as aD,db as aE,ub as aF,pb as aG,bb as aH,fb as aI,$b as aJ,lb as aK,hb as aL,gb as aM,Eb as aN,_b as aO,Sb as aP,Rb as aQ,C$ as aa,Cp as ab,_p as ac,Pp as ad,Sp as ae,yp as af,Mp as ag,Tp as ah,kp as ai,Kp as aj,Vp as ak,jp as al,qp as am,Up as an,Bp as ao,Wp as ap,Gp as aq,Yp as ar,zp as as,Hp as at,Xp as au,Qp as av,Jp as aw,eb as ax,tb as ay,cb as az,Ep as b,xp as c,e$ as d,xe as e,b$ as f,v$ as g,s$ as h,i$ as i,d$ as j,u$ as k,$$ as l,h$ as m,f$ as n,l$ as o,p$ as p,c$ as q,a$ as r,O$ as s,N$ as t,S$ as u,R$ as v,M$ as w,T$ as x,I$ as y,D$ as z}; diff --git a/assets/vendor-96015797.js b/assets/vendor-96015797.js deleted file mode 100644 index 485cd27..0000000 --- a/assets/vendor-96015797.js +++ /dev/null @@ -1,267 +0,0 @@ -import{$ as Gp,a as Yp,b as Kp,c as Xp}from"./radix-ui-723067b7.js";function Zp(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Al(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jc={exports:{}},Ll={},Fc={exports:{}},W={};/** - * @license React - * react.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 Xr=Symbol.for("react.element"),Jp=Symbol.for("react.portal"),qp=Symbol.for("react.fragment"),em=Symbol.for("react.strict_mode"),tm=Symbol.for("react.profiler"),nm=Symbol.for("react.provider"),rm=Symbol.for("react.context"),om=Symbol.for("react.forward_ref"),lm=Symbol.for("react.suspense"),im=Symbol.for("react.memo"),um=Symbol.for("react.lazy"),Hs=Symbol.iterator;function sm(e){return e===null||typeof e!="object"?null:(e=Hs&&e[Hs]||e["@@iterator"],typeof e=="function"?e:null)}var bc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vc=Object.assign,Bc={};function Xn(e,t,n){this.props=e,this.context=t,this.refs=Bc,this.updater=n||bc}Xn.prototype.isReactComponent={};Xn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Uc(){}Uc.prototype=Xn.prototype;function Fu(e,t,n){this.props=e,this.context=t,this.refs=Bc,this.updater=n||bc}var bu=Fu.prototype=new Uc;bu.constructor=Fu;Vc(bu,Xn.prototype);bu.isPureReactComponent=!0;var Qs=Array.isArray,Wc=Object.prototype.hasOwnProperty,Vu={current:null},Hc={key:!0,ref:!0,__self:!0,__source:!0};function Qc(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)Wc.call(t,r)&&!Hc.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1>>1,I=A[V];if(0>>1;Vo(rt,D))oto(lo,rt)?(A[V]=lo,A[ot]=D,V=ot):(A[V]=rt,A[re]=D,V=re);else if(oto(lo,D))A[V]=lo,A[ot]=D,V=ot;else break e}}return C}function o(A,C){var D=A.sortIndex-C.sortIndex;return D!==0?D:A.id-C.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],d=1,c=null,m=3,g=!1,w=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(A){for(var C=n(a);C!==null;){if(C.callback===null)r(a);else if(C.startTime<=A)r(a),C.sortIndex=C.expirationTime,t(s,C);else break;C=n(a)}}function E(A){if(v=!1,h(A),!w)if(n(s)!==null)w=!0,$(k);else{var C=n(a);C!==null&&b(E,C.startTime-A)}}function k(A,C){w=!1,v&&(v=!1,f(S),S=-1),g=!0;var D=m;try{for(h(C),c=n(s);c!==null&&(!(c.expirationTime>C)||A&&!_());){var V=c.callback;if(typeof V=="function"){c.callback=null,m=c.priorityLevel;var I=V(c.expirationTime<=C);C=e.unstable_now(),typeof I=="function"?c.callback=I:c===n(s)&&r(s),h(C)}else r(s);c=n(s)}if(c!==null)var B=!0;else{var re=n(a);re!==null&&b(E,re.startTime-C),B=!1}return B}finally{c=null,m=D,g=!1}}var L=!1,N=null,S=-1,P=5,R=-1;function _(){return!(e.unstable_now()-RA||125V?(A.sortIndex=D,t(a,A),n(s)===null&&A===n(a)&&(v?(f(S),S=-1):v=!0,b(E,D-V))):(A.sortIndex=I,t(s,A),w||g||(w=!0,$(k))),A},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(A){var C=m;return function(){var D=m;m=C;try{return A.apply(this,arguments)}finally{m=D}}}})(Xc);Kc.exports=Xc;var wm=Kc.exports;/** - * @license React - * react-dom.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 Zc=y,Ne=wm;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Di=Object.prototype.hasOwnProperty,Sm=/^[: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]*$/,Ks={},Xs={};function Em(e){return Di.call(Xs,e)?!0:Di.call(Ks,e)?!1:Sm.test(e)?Xs[e]=!0:(Ks[e]=!0,!1)}function xm(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 km(e,t,n,r){if(t===null||typeof t>"u"||xm(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 Se(e,t,n,r,o,l,i){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=l,this.removeEmptyString=i}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fe[e]=new Se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fe[t]=new Se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fe[e]=new Se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fe[e]=new Se(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){fe[e]=new Se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fe[e]=new Se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fe[e]=new Se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fe[e]=new Se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fe[e]=new Se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uu=/[\-:]([a-z])/g;function Wu(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(Uu,Wu);fe[t]=new Se(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(Uu,Wu);fe[t]=new Se(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(Uu,Wu);fe[t]=new Se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!1,!1)});fe.xlinkHref=new Se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hu(e,t,n,r){var o=fe.hasOwnProperty(t)?fe[t]:null;(o!==null?o.type!==0:r||!(2u||o[i]!==l[u]){var s=` -`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{ei=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function Cm(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=ti(e.type,!1),e;case 11:return e=ti(e.type.render,!1),e;case 1:return e=ti(e.type,!0),e;default:return""}}function ji(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 xn:return"Fragment";case En:return"Portal";case zi:return"Profiler";case Qu:return"StrictMode";case $i:return"Suspense";case Ii:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ef:return(e.displayName||"Context")+".Consumer";case qc:return(e._context.displayName||"Context")+".Provider";case Gu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yu:return t=e.displayName||null,t!==null?t:ji(e.type)||"Memo";case Ct:t=e._payload,e=e._init;try{return ji(e(t))}catch{}}return null}function Rm(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 ji(t);case 8:return t===Qu?"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 bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pm(e){var t=nf(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,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function so(e){e._valueTracker||(e._valueTracker=Pm(e))}function rf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function qo(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 Fi(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Js(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bt(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 of(e,t){t=t.checked,t!=null&&Hu(e,"checked",t,!1)}function bi(e,t){of(e,t);var n=bt(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")?Vi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vi(e,t.type,bt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qs(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 Vi(e,t,n){(t!=="number"||qo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hr=Array.isArray;function Tn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ao.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wr={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},_m=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){_m.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function af(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function cf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=af(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Om=ee({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 Wi(e,t){if(t){if(Om[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 Hi(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 Qi=null;function Ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gi=null,Dn=null,zn=null;function na(e){if(e=qr(e)){if(typeof Gi!="function")throw Error(M(280));var t=e.stateNode;t&&(t=$l(t),Gi(e.stateNode,e.type,t))}}function ff(e){Dn?zn?zn.push(e):zn=[e]:Dn=e}function df(){if(Dn){var e=Dn,t=zn;if(zn=Dn=null,na(e),t)for(e=0;e>>=0,e===0?32:31-(Fm(e)/bm|0)|0}var co=64,fo=4194304;function gr(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 rl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~o;u!==0?r=gr(u):(l&=i,l!==0&&(r=gr(l)))}else i=n&~o,i!==0?r=gr(i):l!==0&&(r=gr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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 Zr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ge(t),e[t]=n}function Wm(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=Er),fa=String.fromCharCode(32),da=!1;function Mf(e,t){switch(e){case"keyup":return yv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function Sv(e,t){switch(e){case"compositionend":return Tf(t);case"keypress":return t.which!==32?null:(da=!0,fa);case"textInput":return e=t.data,e===fa&&da?null:e;default:return null}}function Ev(e,t){if(kn)return e==="compositionend"||!rs&&Mf(e,t)?(e=Lf(),Fo=es=Lt=null,kn=!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=ha(n)}}function If(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?If(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jf(){for(var e=window,t=qo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=qo(e.document)}return t}function os(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 Lv(e){var t=jf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&If(n.ownerDocument.documentElement,n)){if(r!==null&&os(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,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=ga(n,l);var i=ga(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,Cn=null,qi=null,kr=null,eu=!1;function ya(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;eu||Cn==null||Cn!==qo(r)||(r=Cn,"selectionStart"in r&&os(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}),kr&&jr(kr,r)||(kr=r,r=il(qi,"onSelect"),0_n||(e.current=iu[_n],iu[_n]=null,_n--)}function G(e,t){_n++,iu[_n]=e.current,e.current=t}var Vt={},he=Qt(Vt),ke=Qt(!1),rn=Vt;function Vn(e,t){var n=e.type.contextTypes;if(!n)return Vt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ce(e){return e=e.childContextTypes,e!=null}function sl(){X(ke),X(he)}function Ra(e,t,n){if(he.current!==Vt)throw Error(M(168));G(he,t),G(ke,n)}function Gf(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,Rm(e)||"Unknown",o));return ee({},n,r)}function al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vt,rn=he.current,G(he,e),G(ke,ke.current),!0}function Pa(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Gf(e,t,rn),r.__reactInternalMemoizedMergedChildContext=e,X(ke),X(he),G(he,e)):X(ke),G(ke,n)}var ut=null,Il=!1,vi=!1;function Yf(e){ut===null?ut=[e]:ut.push(e)}function Bv(e){Il=!0,Yf(e)}function Gt(){if(!vi&&ut!==null){vi=!0;var e=0,t=Q;try{var n=ut;for(Q=1;e>=i,o-=i,st=1<<32-Ge(t)+o|n<S?(P=N,N=null):P=N.sibling;var R=m(f,N,h[S],E);if(R===null){N===null&&(N=P);break}e&&N&&R.alternate===null&&t(f,N),p=l(R,p,S),L===null?k=R:L.sibling=R,L=R,N=P}if(S===h.length)return n(f,N),Z&&Kt(f,S),k;if(N===null){for(;SS?(P=N,N=null):P=N.sibling;var _=m(f,N,R.value,E);if(_===null){N===null&&(N=P);break}e&&N&&_.alternate===null&&t(f,N),p=l(_,p,S),L===null?k=_:L.sibling=_,L=_,N=P}if(R.done)return n(f,N),Z&&Kt(f,S),k;if(N===null){for(;!R.done;S++,R=h.next())R=c(f,R.value,E),R!==null&&(p=l(R,p,S),L===null?k=R:L.sibling=R,L=R);return Z&&Kt(f,S),k}for(N=r(f,N);!R.done;S++,R=h.next())R=g(N,f,S,R.value,E),R!==null&&(e&&R.alternate!==null&&N.delete(R.key===null?S:R.key),p=l(R,p,S),L===null?k=R:L.sibling=R,L=R);return e&&N.forEach(function(O){return t(f,O)}),Z&&Kt(f,S),k}function x(f,p,h,E){if(typeof h=="object"&&h!==null&&h.type===xn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case uo:e:{for(var k=h.key,L=p;L!==null;){if(L.key===k){if(k=h.type,k===xn){if(L.tag===7){n(f,L.sibling),p=o(L,h.props.children),p.return=f,f=p;break e}}else if(L.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ct&&Ta(k)===L.type){n(f,L.sibling),p=o(L,h.props),p.ref=ur(f,L,h),p.return=f,f=p;break e}n(f,L);break}else t(f,L);L=L.sibling}h.type===xn?(p=nn(h.props.children,f.mode,E,h.key),p.return=f,f=p):(E=Go(h.type,h.key,h.props,null,f.mode,E),E.ref=ur(f,p,h),E.return=f,f=E)}return i(f);case En:e:{for(L=h.key;p!==null;){if(p.key===L)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){n(f,p.sibling),p=o(p,h.children||[]),p.return=f,f=p;break e}else{n(f,p);break}else t(f,p);p=p.sibling}p=ki(h,f.mode,E),p.return=f,f=p}return i(f);case Ct:return L=h._init,x(f,p,L(h._payload),E)}if(hr(h))return w(f,p,h,E);if(nr(h))return v(f,p,h,E);wo(f,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(n(f,p.sibling),p=o(p,h),p.return=f,f=p):(n(f,p),p=xi(h,f.mode,E),p.return=f,f=p),i(f)):n(f,p)}return x}var Un=nd(!0),rd=nd(!1),eo={},et=Qt(eo),Br=Qt(eo),Ur=Qt(eo);function qt(e){if(e===eo)throw Error(M(174));return e}function ps(e,t){switch(G(Ur,t),G(Br,e),G(et,eo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ui(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ui(t,e)}X(et),G(et,t)}function Wn(){X(et),X(Br),X(Ur)}function od(e){qt(Ur.current);var t=qt(et.current),n=Ui(t,e.type);t!==n&&(G(Br,e),G(et,n))}function ms(e){Br.current===e&&(X(et),X(Br))}var J=Qt(0);function vl(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 hi=[];function vs(){for(var e=0;en?n:4,e(!0);var r=gi.transition;gi.transition={};try{e(!1),t()}finally{Q=n,gi.transition=r}}function Sd(){return be().memoizedState}function Qv(e,t,n){var r=jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ed(e))xd(t,n);else if(n=Jf(e,t,n,r),n!==null){var o=ye();Ye(n,e,r,o),kd(n,t,r)}}function Gv(e,t,n){var r=jt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ed(e))xd(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,u=l(i,n);if(o.hasEagerState=!0,o.eagerState=u,Ke(u,i)){var s=t.interleaved;s===null?(o.next=o,fs(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Jf(e,t,o,r),n!==null&&(o=ye(),Ye(n,e,r,o),kd(n,t,r))}}function Ed(e){var t=e.alternate;return e===q||t!==null&&t===q}function xd(e,t){Cr=hl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zu(e,n)}}var gl={readContext:Fe,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},Yv={readContext:Fe,useCallback:function(e,t){return Ze().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:za,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Uo(4194308,4,vd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uo(4,2,e,t)},useMemo:function(e,t){var n=Ze();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ze();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=Qv.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=Ze();return e={current:e},t.memoizedState=e},useState:Da,useDebugValue:Ss,useDeferredValue:function(e){return Ze().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=Hv.bind(null,e[1]),Ze().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,o=Ze();if(Z){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),se===null)throw Error(M(349));ln&30||ud(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,za(ad.bind(null,r,l,e),[e]),r.flags|=2048,Qr(9,sd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Ze(),t=se.identifierPrefix;if(Z){var n=at,r=st;n=(r&~(1<<32-Ge(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Je]=t,e[Vr]=r,Md(e,t,!1,!1),t.stateNode=e;e:{switch(i=Hi(n,r),n){case"dialog":K("cancel",e),K("close",e),o=r;break;case"iframe":case"object":case"embed":K("load",e),o=r;break;case"video":case"audio":for(o=0;oQn&&(t.flags|=128,r=!0,sr(l,!1),t.lanes=4194304)}else{if(!r)if(e=vl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!Z)return pe(t),null}else 2*ne()-l.renderingStartTime>Qn&&n!==1073741824&&(t.flags|=128,r=!0,sr(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ne(),t.sibling=null,n=J.current,G(J,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return Ps(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pe&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 nh(e,t){switch(is(t),t.tag){case 1:return Ce(t.type)&&sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wn(),X(ke),X(he),vs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ms(t),null;case 13:if(X(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));Bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(J),null;case 4:return Wn(),null;case 10:return cs(t.type._context),null;case 22:case 23:return Ps(),null;case 24:return null;default:return null}}var Eo=!1,me=!1,rh=typeof WeakSet=="function"?WeakSet:Set,j=null;function Nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function yu(e,t,n){try{n()}catch(r){te(e,t,r)}}var Wa=!1;function oh(e,t){if(tu=ol,e=jf(),os(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,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,d=0,c=e,m=null;t:for(;;){for(var g;c!==n||o!==0&&c.nodeType!==3||(u=i+o),c!==l||r!==0&&c.nodeType!==3||(s=i+r),c.nodeType===3&&(i+=c.nodeValue.length),(g=c.firstChild)!==null;)m=c,c=g;for(;;){if(c===e)break t;if(m===n&&++a===o&&(u=i),m===l&&++d===r&&(s=i),(g=c.nextSibling)!==null)break;c=m,m=c.parentNode}c=g}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(nu={focusedElem:e,selectionRange:n},ol=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,x=w.memoizedState,f=t.stateNode,p=f.getSnapshotBeforeUpdate(t.elementType===t.type?v:We(t.type,v),x);f.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(E){te(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return w=Wa,Wa=!1,w}function Rr(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 l=o.destroy;o.destroy=void 0,l!==void 0&&yu(t,n,l)}o=o.next}while(o!==r)}}function bl(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 wu(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 zd(e){var t=e.alternate;t!==null&&(e.alternate=null,zd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Je],delete t[Vr],delete t[lu],delete t[bv],delete t[Vv])),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 $d(e){return e.tag===5||e.tag===3||e.tag===4}function Ha(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$d(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 Su(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=ul));else if(r!==4&&(e=e.child,e!==null))for(Su(e,t,n),e=e.sibling;e!==null;)Su(e,t,n),e=e.sibling}function Eu(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(Eu(e,t,n),e=e.sibling;e!==null;)Eu(e,t,n),e=e.sibling}var ae=null,He=!1;function Et(e,t,n){for(n=n.child;n!==null;)Id(e,t,n),n=n.sibling}function Id(e,t,n){if(qe&&typeof qe.onCommitFiberUnmount=="function")try{qe.onCommitFiberUnmount(Ml,n)}catch{}switch(n.tag){case 5:me||Nn(n,t);case 6:var r=ae,o=He;ae=null,Et(e,t,n),ae=r,He=o,ae!==null&&(He?(e=ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ae.removeChild(n.stateNode));break;case 18:ae!==null&&(He?(e=ae,n=n.stateNode,e.nodeType===8?mi(e.parentNode,n):e.nodeType===1&&mi(e,n),$r(e)):mi(ae,n.stateNode));break;case 4:r=ae,o=He,ae=n.stateNode.containerInfo,He=!0,Et(e,t,n),ae=r,He=o;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&yu(n,t,i),o=o.next}while(o!==r)}Et(e,t,n);break;case 1:if(!me&&(Nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){te(n,t,u)}Et(e,t,n);break;case 21:Et(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,Et(e,t,n),me=r):Et(e,t,n);break;default:Et(e,t,n)}}function Qa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rh),t.forEach(function(r){var o=ph.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Be(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ih(r/1960))-r,10e?16:e,Nt===null)var r=!1;else{if(e=Nt,Nt=null,Sl=0,H&6)throw Error(M(331));var o=H;for(H|=4,j=e.current;j!==null;){var l=j,i=l.child;if(j.flags&16){var u=l.deletions;if(u!==null){for(var s=0;sne()-Cs?tn(e,0):ks|=n),Re(e,t)}function Hd(e,t){t===0&&(e.mode&1?(t=fo,fo<<=1,!(fo&130023424)&&(fo=4194304)):t=1);var n=ye();e=pt(e,t),e!==null&&(Zr(e,t,n),Re(e,n))}function dh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hd(e,n)}function ph(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),Hd(e,n)}var Qd;Qd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ke.current)xe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return xe=!1,eh(e,t,n);xe=!!(e.flags&131072)}else xe=!1,Z&&t.flags&1048576&&Kf(t,fl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wo(e,t),e=t.pendingProps;var o=Vn(t,he.current);In(t,n),o=gs(null,t,r,e,o,n);var l=ys();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,Ce(r)?(l=!0,al(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ds(t),o.updater=jl,t.stateNode=o,o._reactInternals=t,fu(t,r,e,n),t=mu(null,t,r,!0,l,n)):(t.tag=0,Z&&l&&ls(t),ge(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=vh(r),e=We(r,e),o){case 0:t=pu(null,t,r,e,n);break e;case 1:t=Va(null,t,r,e,n);break e;case 11:t=Fa(null,t,r,e,n);break e;case 14:t=ba(null,t,r,We(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:We(r,o),pu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:We(r,o),Va(e,t,r,o,n);case 3:e:{if(Ad(t),e===null)throw Error(M(387));r=t.pendingProps,l=t.memoizedState,o=l.element,qf(e,t),ml(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=Hn(Error(M(423)),t),t=Ba(e,t,r,n,o);break e}else if(r!==o){o=Hn(Error(M(424)),t),t=Ba(e,t,r,n,o);break e}else for(Oe=zt(t.stateNode.containerInfo.firstChild),Ae=t,Z=!0,Qe=null,n=rd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bn(),r===o){t=mt(e,t,n);break e}ge(e,t,r,n)}t=t.child}return t;case 5:return od(t),e===null&&su(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,ru(r,o)?i=null:l!==null&&ru(r,l)&&(t.flags|=32),Od(e,t),ge(e,t,i,n),t.child;case 6:return e===null&&su(t),null;case 13:return Ld(e,t,n);case 4:return ps(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Un(t,null,r,n):ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:We(r,o),Fa(e,t,r,o,n);case 7:return ge(e,t,t.pendingProps,n),t.child;case 8:return ge(e,t,t.pendingProps.children,n),t.child;case 12:return ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,G(dl,r._currentValue),r._currentValue=i,l!==null)if(Ke(l.value,i)){if(l.children===o.children&&!ke.current){t=mt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){i=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=ct(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),au(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(M(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),au(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,In(t,n),o=Fe(o),r=r(o),t.flags|=1,ge(e,t,r,n),t.child;case 14:return r=t.type,o=We(r,t.pendingProps),o=We(r.type,o),ba(e,t,r,o,n);case 15:return Pd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:We(r,o),Wo(e,t),t.tag=1,Ce(r)?(e=!0,al(t)):e=!1,In(t,n),td(t,r,o),fu(t,r,o,n),mu(null,t,r,!0,e,n);case 19:return Nd(e,t,n);case 22:return _d(e,t,n)}throw Error(M(156,t.tag))};function Gd(e,t){return wf(e,t)}function mh(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 $e(e,t,n,r){return new mh(e,t,n,r)}function Os(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vh(e){if(typeof e=="function")return Os(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gu)return 11;if(e===Yu)return 14}return 2}function Ft(e,t){var n=e.alternate;return n===null?(n=$e(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 Go(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")Os(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case xn:return nn(n.children,o,l,t);case Qu:i=8,o|=8;break;case zi:return e=$e(12,n,t,o|2),e.elementType=zi,e.lanes=l,e;case $i:return e=$e(13,n,t,o),e.elementType=$i,e.lanes=l,e;case Ii:return e=$e(19,n,t,o),e.elementType=Ii,e.lanes=l,e;case tf:return Bl(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qc:i=10;break e;case ef:i=9;break e;case Gu:i=11;break e;case Yu:i=14;break e;case Ct:i=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=$e(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function nn(e,t,n,r){return e=$e(7,e,r,t),e.lanes=n,e}function Bl(e,t,n,r){return e=$e(22,e,r,t),e.elementType=tf,e.lanes=n,e.stateNode={isHidden:!1},e}function xi(e,t,n){return e=$e(6,e,null,t),e.lanes=n,e}function ki(e,t,n){return t=$e(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hh(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=ri(0),this.expirationTimes=ri(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ri(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function As(e,t,n,r,o,l,i,u,s){return e=new hh(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=$e(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ds(l),e}function gh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zd)}catch(e){console.error(e)}}Zd(),Yc.exports=Me;var Ts=Yc.exports;const s1=Al(Ts);var ec=Ts;Ys.createRoot=ec.createRoot,Ys.hydrateRoot=ec.hydrateRoot;function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,rc=xh,a1=(e,t)=>n=>{var r;if(t?.variants==null)return rc(e,n?.class,n?.className);const{variants:o,defaultVariants:l}=t,i=Object.keys(o).map(a=>{const d=n?.[a],c=l?.[a];if(d===null)return null;const m=nc(d)||nc(c);return o[a][m]}),u=n&&Object.entries(n).reduce((a,d)=>{let[c,m]=d;return m===void 0||(a[c]=m),a},{}),s=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((a,d)=>{let{class:c,className:m,...g}=d;return Object.entries(g).every(w=>{let[v,x]=w;return Array.isArray(x)?x.includes({...l,...u}[v]):{...l,...u}[v]===x})?[...a,c,m]:a},[]);return rc(e,i,s,n?.class,n?.className)};function kh(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(i){var u=n.get(i);if(u!==void 0)return u;if((u=r.get(i))!==void 0)return o(i,u),u},set:function(i,u){n.has(i)?n.set(i,u):o(i,u)}}}var tp="!";function Lh(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var u=[],s=0,a=0,d,c=0;ca?d-a:void 0;return{modifiers:u,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:x}}}function Nh(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Mh(e){return{cache:Ah(e.cacheSize),splitModifiers:Lh(e),...Ch(e)}}var Th=/\s+/;function Dh(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,l=new Set;return e.trim().split(Th).map(function(i){var u=n(i),s=u.modifiers,a=u.hasImportantModifier,d=u.baseClassName,c=u.maybePostfixModifierPosition,m=r(c?d.substring(0,c):d),g=!!c;if(!m){if(!c)return{isTailwindClass:!1,originalClassName:i};if(m=r(d),!m)return{isTailwindClass:!1,originalClassName:i};g=!1}var w=Nh(s).join(":"),v=a?w+tp:w;return{isTailwindClass:!0,modifierId:v,classGroupId:m,originalClassName:i,hasPostfixModifier:g}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var u=i.modifierId,s=i.classGroupId,a=i.hasPostfixModifier,d=u+s;return l.has(d)?!1:(l.add(d),o(s,a).forEach(function(c){return l.add(u+c)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function zh(){for(var e=arguments.length,t=new Array(e),n=0;n({x:e,y:e}),Zh={left:"right",right:"left",bottom:"top",top:"bottom"},Jh={start:"end",end:"start"};function Ou(e,t,n){return _e(e,Bt(t,n))}function vt(e,t){return typeof e=="function"?e(t):e}function ht(e){return e.split("-")[0]}function qn(e){return e.split("-")[1]}function zs(e){return e==="x"?"y":"x"}function $s(e){return e==="y"?"height":"width"}function er(e){return["top","bottom"].includes(ht(e))?"y":"x"}function Is(e){return zs(er(e))}function qh(e,t,n){n===void 0&&(n=!1);const r=qn(e),o=Is(e),l=$s(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=Cl(i)),[i,Cl(i)]}function eg(e){const t=Cl(e);return[Au(e),t,Au(t)]}function Au(e){return e.replace(/start|end/g,t=>Jh[t])}function tg(e,t,n){const r=["left","right"],o=["right","left"],l=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?l:i;default:return[]}}function ng(e,t,n,r){const o=qn(e);let l=tg(ht(e),n==="start",r);return o&&(l=l.map(i=>i+"-"+o),t&&(l=l.concat(l.map(Au)))),l}function Cl(e){return e.replace(/left|right|bottom|top/g,t=>Zh[t])}function rg(e){return{top:0,right:0,bottom:0,left:0,...e}}function op(e){return typeof e!="number"?rg(e):{top:e,right:e,bottom:e,left:e}}function Rl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function uc(e,t,n){let{reference:r,floating:o}=e;const l=er(t),i=Is(t),u=$s(i),s=ht(t),a=l==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,m=r[u]/2-o[u]/2;let g;switch(s){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:c};break;case"left":g={x:r.x-o.width,y:c};break;default:g={x:r.x,y:r.y}}switch(qn(t)){case"start":g[i]-=m*(n&&a?-1:1);break;case"end":g[i]+=m*(n&&a?-1:1);break}return g}const og=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:i}=n,u=l.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=uc(a,r,s),m=r,g={},w=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:l,platform:i,elements:u,middlewareData:s}=t,{element:a,padding:d=0}=vt(e,t)||{};if(a==null)return{};const c=op(d),m={x:n,y:r},g=Is(o),w=$s(g),v=await i.getDimensions(a),x=g==="y",f=x?"top":"left",p=x?"bottom":"right",h=x?"clientHeight":"clientWidth",E=l.reference[w]+l.reference[g]-m[g]-l.floating[w],k=m[g]-l.reference[g],L=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a));let N=L?L[h]:0;(!N||!await(i.isElement==null?void 0:i.isElement(L)))&&(N=u.floating[h]||l.floating[w]);const S=E/2-k/2,P=N/2-v[w]/2-1,R=Bt(c[f],P),_=Bt(c[p],P),O=R,z=N-v[w]-_,T=N/2-v[w]/2+S,F=Ou(O,T,z),$=!s.arrow&&qn(o)!=null&&T!=F&&l.reference[w]/2-(TO<=0)){var P,R;const O=(((P=l.flip)==null?void 0:P.index)||0)+1,z=k[O];if(z)return{data:{index:O,overflows:S},reset:{placement:z}};let T=(R=S.filter(F=>F.overflows[0]<=0).sort((F,$)=>F.overflows[1]-$.overflows[1])[0])==null?void 0:R.placement;if(!T)switch(g){case"bestFit":{var _;const F=(_=S.map($=>[$.placement,$.overflows.filter(b=>b>0).reduce((b,A)=>b+A,0)]).sort(($,b)=>$[1]-b[1])[0])==null?void 0:_[0];F&&(T=F);break}case"initialPlacement":T=u;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function ac(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function cc(e){return Xh.some(t=>e[t]>=0)}const d1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=vt(e,t);switch(r){case"referenceHidden":{const l=await Yr(t,{...o,elementContext:"reference"}),i=ac(l,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:cc(i)}}}case"escaped":{const l=await Yr(t,{...o,altBoundary:!0}),i=ac(l,n.floating);return{data:{escapedOffsets:i,escaped:cc(i)}}}default:return{}}}}};async function lg(e,t){const{placement:n,platform:r,elements:o}=e,l=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=ht(n),u=qn(n),s=er(n)==="y",a=["left","top"].includes(i)?-1:1,d=l&&s?-1:1,c=vt(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:w}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return u&&typeof w=="number"&&(g=u==="end"?w*-1:w),s?{x:g*d,y:m*a}:{x:m*a,y:g*d}}const p1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await lg(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},m1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:u={fn:x=>{let{x:f,y:p}=x;return{x:f,y:p}}},...s}=vt(e,t),a={x:n,y:r},d=await Yr(t,s),c=er(ht(o)),m=zs(c);let g=a[m],w=a[c];if(l){const x=m==="y"?"top":"left",f=m==="y"?"bottom":"right",p=g+d[x],h=g-d[f];g=Ou(p,g,h)}if(i){const x=c==="y"?"top":"left",f=c==="y"?"bottom":"right",p=w+d[x],h=w-d[f];w=Ou(p,w,h)}const v=u.fn({...t,[m]:g,[c]:w});return{...v,data:{x:v.x-n,y:v.y-r}}}}},v1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:l,middlewareData:i}=t,{offset:u=0,mainAxis:s=!0,crossAxis:a=!0}=vt(e,t),d={x:n,y:r},c=er(o),m=zs(c);let g=d[m],w=d[c];const v=vt(u,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){const h=m==="y"?"height":"width",E=l.reference[m]-l.floating[h]+x.mainAxis,k=l.reference[m]+l.reference[h]-x.mainAxis;gk&&(g=k)}if(a){var f,p;const h=m==="y"?"width":"height",E=["top","left"].includes(ht(o)),k=l.reference[c]-l.floating[h]+(E&&((f=i.offset)==null?void 0:f[c])||0)+(E?0:x.crossAxis),L=l.reference[c]+l.reference[h]+(E?0:((p=i.offset)==null?void 0:p[c])||0)-(E?x.crossAxis:0);wL&&(w=L)}return{[m]:g,[c]:w}}}},h1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:l}=t,{apply:i=()=>{},...u}=vt(e,t),s=await Yr(t,u),a=ht(n),d=qn(n),c=er(n)==="y",{width:m,height:g}=r.floating;let w,v;a==="top"||a==="bottom"?(w=a,v=d===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(v=a,w=d==="end"?"top":"bottom");const x=g-s[w],f=m-s[v],p=!t.middlewareData.shift;let h=x,E=f;if(c){const L=m-s.left-s.right;E=d||p?Bt(f,L):L}else{const L=g-s.top-s.bottom;h=d||p?Bt(x,L):L}if(p&&!d){const L=_e(s.left,0),N=_e(s.right,0),S=_e(s.top,0),P=_e(s.bottom,0);c?E=m-2*(L!==0||N!==0?L+N:_e(s.left,s.right)):h=g-2*(S!==0||P!==0?S+P:_e(s.top,s.bottom))}await i({...t,availableWidth:E,availableHeight:h});const k=await o.getDimensions(l.floating);return m!==k.width||g!==k.height?{reset:{rects:!0}}:{}}}};function Wt(e){return lp(e)?(e.nodeName||"").toLowerCase():"#document"}function Le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function St(e){var t;return(t=(lp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lp(e){return e instanceof Node||e instanceof Le(e).Node}function gt(e){return e instanceof Element||e instanceof Le(e).Element}function tt(e){return e instanceof HTMLElement||e instanceof Le(e).HTMLElement}function fc(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Le(e).ShadowRoot}function to(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ig(e){return["table","td","th"].includes(Wt(e))}function js(e){const t=Fs(),n=Ve(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 ug(e){let t=Gn(e);for(;tt(t)&&!Gl(t);){if(js(t))return t;t=Gn(t)}return null}function Fs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Gl(e){return["html","body","#document"].includes(Wt(e))}function Ve(e){return Le(e).getComputedStyle(e)}function Yl(e){return gt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Gn(e){if(Wt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fc(e)&&e.host||St(e);return fc(t)?t.host:t}function ip(e){const t=Gn(e);return Gl(t)?e.ownerDocument?e.ownerDocument.body:e.body:tt(t)&&to(t)?t:ip(t)}function Kr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ip(e),l=o===((r=e.ownerDocument)==null?void 0:r.body),i=Le(o);return l?t.concat(i,i.visualViewport||[],to(o)?o:[],i.frameElement&&n?Kr(i.frameElement):[]):t.concat(o,Kr(o,[],n))}function up(e){const t=Ve(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=tt(e),l=o?e.offsetWidth:n,i=o?e.offsetHeight:r,u=kl(n)!==l||kl(r)!==i;return u&&(n=l,r=i),{width:n,height:r,$:u}}function bs(e){return gt(e)?e:e.contextElement}function Fn(e){const t=bs(e);if(!tt(t))return Ut(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:l}=up(t);let i=(l?kl(n.width):n.width)/r,u=(l?kl(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!u||!Number.isFinite(u))&&(u=1),{x:i,y:u}}const sg=Ut(0);function sp(e){const t=Le(e);return!Fs()||!t.visualViewport?sg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ag(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Le(e)?!1:t}function an(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=bs(e);let i=Ut(1);t&&(r?gt(r)&&(i=Fn(r)):i=Fn(e));const u=ag(l,n,r)?sp(l):Ut(0);let s=(o.left+u.x)/i.x,a=(o.top+u.y)/i.y,d=o.width/i.x,c=o.height/i.y;if(l){const m=Le(l),g=r&>(r)?Le(r):r;let w=m.frameElement;for(;w&&r&&g!==m;){const v=Fn(w),x=w.getBoundingClientRect(),f=Ve(w),p=x.left+(w.clientLeft+parseFloat(f.paddingLeft))*v.x,h=x.top+(w.clientTop+parseFloat(f.paddingTop))*v.y;s*=v.x,a*=v.y,d*=v.x,c*=v.y,s+=p,a+=h,w=Le(w).frameElement}}return Rl({width:d,height:c,x:s,y:a})}function cg(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=tt(n),l=St(n);if(n===l)return t;let i={scrollLeft:0,scrollTop:0},u=Ut(1);const s=Ut(0);if((o||!o&&r!=="fixed")&&((Wt(n)!=="body"||to(l))&&(i=Yl(n)),tt(n))){const a=an(n);u=Fn(n),s.x=a.x+n.clientLeft,s.y=a.y+n.clientTop}return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-i.scrollLeft*u.x+s.x,y:t.y*u.y-i.scrollTop*u.y+s.y}}function fg(e){return Array.from(e.getClientRects())}function ap(e){return an(St(e)).left+Yl(e).scrollLeft}function dg(e){const t=St(e),n=Yl(e),r=e.ownerDocument.body,o=_e(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=_e(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ap(e);const u=-n.scrollTop;return Ve(r).direction==="rtl"&&(i+=_e(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:i,y:u}}function pg(e,t){const n=Le(e),r=St(e),o=n.visualViewport;let l=r.clientWidth,i=r.clientHeight,u=0,s=0;if(o){l=o.width,i=o.height;const a=Fs();(!a||a&&t==="fixed")&&(u=o.offsetLeft,s=o.offsetTop)}return{width:l,height:i,x:u,y:s}}function mg(e,t){const n=an(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,l=tt(e)?Fn(e):Ut(1),i=e.clientWidth*l.x,u=e.clientHeight*l.y,s=o*l.x,a=r*l.y;return{width:i,height:u,x:s,y:a}}function dc(e,t,n){let r;if(t==="viewport")r=pg(e,n);else if(t==="document")r=dg(St(e));else if(gt(t))r=mg(t,n);else{const o=sp(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Rl(r)}function cp(e,t){const n=Gn(e);return n===t||!gt(n)||Gl(n)?!1:Ve(n).position==="fixed"||cp(n,t)}function vg(e,t){const n=t.get(e);if(n)return n;let r=Kr(e,[],!1).filter(u=>gt(u)&&Wt(u)!=="body"),o=null;const l=Ve(e).position==="fixed";let i=l?Gn(e):e;for(;gt(i)&&!Gl(i);){const u=Ve(i),s=js(i);!s&&u.position==="fixed"&&(o=null),(l?!s&&!o:!s&&u.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||to(i)&&!s&&cp(e,i))?r=r.filter(d=>d!==i):o=u,i=Gn(i)}return t.set(e,r),r}function hg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?vg(t,this._c):[].concat(n),r],u=i[0],s=i.reduce((a,d)=>{const c=dc(t,d,o);return a.top=_e(c.top,a.top),a.right=Bt(c.right,a.right),a.bottom=Bt(c.bottom,a.bottom),a.left=_e(c.left,a.left),a},dc(t,u,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function gg(e){return up(e)}function yg(e,t,n){const r=tt(t),o=St(t),l=n==="fixed",i=an(e,!0,l,t);let u={scrollLeft:0,scrollTop:0};const s=Ut(0);if(r||!r&&!l)if((Wt(t)!=="body"||to(o))&&(u=Yl(t)),r){const a=an(t,!0,l,t);s.x=a.x+t.clientLeft,s.y=a.y+t.clientTop}else o&&(s.x=ap(o));return{x:i.left+u.scrollLeft-s.x,y:i.top+u.scrollTop-s.y,width:i.width,height:i.height}}function pc(e,t){return!tt(e)||Ve(e).position==="fixed"?null:t?t(e):e.offsetParent}function fp(e,t){const n=Le(e);if(!tt(e))return n;let r=pc(e,t);for(;r&&ig(r)&&Ve(r).position==="static";)r=pc(r,t);return r&&(Wt(r)==="html"||Wt(r)==="body"&&Ve(r).position==="static"&&!js(r))?n:r||ug(e)||n}const wg=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||fp,l=this.getDimensions;return{reference:yg(t,await o(n),r),floating:{x:0,y:0,...await l(n)}}};function Sg(e){return Ve(e).direction==="rtl"}const Eg={convertOffsetParentRelativeRectToViewportRelativeRect:cg,getDocumentElement:St,getClippingRect:hg,getOffsetParent:fp,getElementRects:wg,getClientRects:fg,getDimensions:gg,getScale:Fn,isElement:gt,isRTL:Sg};function xg(e,t){let n=null,r;const o=St(e);function l(){clearTimeout(r),n&&n.disconnect(),n=null}function i(u,s){u===void 0&&(u=!1),s===void 0&&(s=1),l();const{left:a,top:d,width:c,height:m}=e.getBoundingClientRect();if(u||t(),!c||!m)return;const g=Ro(d),w=Ro(o.clientWidth-(a+c)),v=Ro(o.clientHeight-(d+m)),x=Ro(a),p={rootMargin:-g+"px "+-w+"px "+-v+"px "+-x+"px",threshold:_e(0,Bt(1,s))||1};let h=!0;function E(k){const L=k[0].intersectionRatio;if(L!==s){if(!h)return i();L?i(!1,L):r=setTimeout(()=>{i(!1,1e-7)},100)}h=!1}try{n=new IntersectionObserver(E,{...p,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,p)}n.observe(e)}return i(!0),l}function g1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,a=bs(e),d=o||l?[...a?Kr(a):[],...Kr(t)]:[];d.forEach(f=>{o&&f.addEventListener("scroll",n,{passive:!0}),l&&f.addEventListener("resize",n)});const c=a&&u?xg(a,n):null;let m=-1,g=null;i&&(g=new ResizeObserver(f=>{let[p]=f;p&&p.target===a&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),a&&!s&&g.observe(a),g.observe(t));let w,v=s?an(e):null;s&&x();function x(){const f=an(e);v&&(f.x!==v.x||f.y!==v.y||f.width!==v.width||f.height!==v.height)&&n(),v=f,w=requestAnimationFrame(x)}return n(),()=>{d.forEach(f=>{o&&f.removeEventListener("scroll",n),l&&f.removeEventListener("resize",n)}),c&&c(),g&&g.disconnect(),g=null,s&&cancelAnimationFrame(w)}}const kg=(e,t,n)=>{const r=new Map,o={platform:Eg,...n},l={...o.platform,_c:r};return og(e,t,{...o,platform:l})},y1=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?sc({element:r.current,padding:o}).fn(n):{}:r?sc({element:r,padding:o}).fn(n):{}}}};var Yo=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Pl(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(!Pl(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 l=o[r];if(!(l==="_owner"&&e.$$typeof)&&!Pl(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function dp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mc(e,t){const n=dp(e);return Math.round(t*n)/n}function vc(e){const t=y.useRef(e);return Yo(()=>{t.current=e}),t}function w1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:i}={},transform:u=!0,whileElementsMounted:s,open:a}=e,[d,c]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=y.useState(r);Pl(m,r)||g(r);const[w,v]=y.useState(null),[x,f]=y.useState(null),p=y.useCallback($=>{$!=L.current&&(L.current=$,v($))},[v]),h=y.useCallback($=>{$!==N.current&&(N.current=$,f($))},[f]),E=l||w,k=i||x,L=y.useRef(null),N=y.useRef(null),S=y.useRef(d),P=vc(s),R=vc(o),_=y.useCallback(()=>{if(!L.current||!N.current)return;const $={placement:t,strategy:n,middleware:m};R.current&&($.platform=R.current),kg(L.current,N.current,$).then(b=>{const A={...b,isPositioned:!0};O.current&&!Pl(S.current,A)&&(S.current=A,Ts.flushSync(()=>{c(A)}))})},[m,t,n,R]);Yo(()=>{a===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,c($=>({...$,isPositioned:!1})))},[a]);const O=y.useRef(!1);Yo(()=>(O.current=!0,()=>{O.current=!1}),[]),Yo(()=>{if(E&&(L.current=E),k&&(N.current=k),E&&k){if(P.current)return P.current(E,k,_);_()}},[E,k,_,P]);const z=y.useMemo(()=>({reference:L,floating:N,setReference:p,setFloating:h}),[p,h]),T=y.useMemo(()=>({reference:E,floating:k}),[E,k]),F=y.useMemo(()=>{const $={position:n,left:0,top:0};if(!T.floating)return $;const b=mc(T.floating,d.x),A=mc(T.floating,d.y);return u?{...$,transform:"translate("+b+"px, "+A+"px)",...dp(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:b,top:A}},[n,u,T.floating,d.x,d.y]);return y.useMemo(()=>({...d,update:_,refs:z,elements:T,floatingStyles:F}),[d,_,z,T,F])}var Cg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vn=new WeakMap,Po=new WeakMap,_o={},Ci=0,pp=function(e){return e&&(e.host||pp(e.parentNode))},Rg=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pp(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})},Pg=function(e,t,n,r){var o=Rg(t,Array.isArray(e)?e:[e]);_o[n]||(_o[n]=new WeakMap);var l=_o[n],i=[],u=new Set,s=new Set(o),a=function(c){!c||u.has(c)||(u.add(c),a(c.parentNode))};o.forEach(a);var d=function(c){!c||s.has(c)||Array.prototype.forEach.call(c.children,function(m){if(u.has(m))d(m);else{var g=m.getAttribute(r),w=g!==null&&g!=="false",v=(vn.get(m)||0)+1,x=(l.get(m)||0)+1;vn.set(m,v),l.set(m,x),i.push(m),v===1&&w&&Po.set(m,!0),x===1&&m.setAttribute(n,"true"),w||m.setAttribute(r,"true")}})};return d(t),u.clear(),Ci++,function(){i.forEach(function(c){var m=vn.get(c)-1,g=l.get(c)-1;vn.set(c,m),l.set(c,g),m||(Po.has(c)||c.removeAttribute(r),Po.delete(c)),g||c.removeAttribute(n)}),Ci--,Ci||(vn=new WeakMap,vn=new WeakMap,Po=new WeakMap,_o={})}},S1=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Cg(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Pg(r,o,n,"aria-hidden")):function(){return null}},ve=function(){return ve=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return Fg;var t=bg(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])}},Bg=Bs(),Ug=function(e,t,n,r){var o=e.left,l=e.top,i=e.right,u=e.gap;return n===void 0&&(n="margin"),` - .`.concat(_g,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(u,"px ").concat(r,`; - } - body { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(l,`px; - padding-right: `).concat(i,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(u,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(Or,` { - right: `).concat(u,"px ").concat(r,`; - } - - .`).concat(Ar,` { - margin-right: `).concat(u,"px ").concat(r,`; - } - - .`).concat(Or," .").concat(Or,` { - right: 0 `).concat(r,`; - } - - .`).concat(Ar," .").concat(Ar,` { - margin-right: 0 `).concat(r,`; - } - - body { - `).concat(Og,": ").concat(u,`px; - } -`)},Sp=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,l=y.useMemo(function(){return Vg(o)},[o]);return y.createElement(Bg,{styles:Ug(l,!t,o,n?"":"!important")})},Lu=!1;if(typeof window<"u")try{var Oo=Object.defineProperty({},"passive",{get:function(){return Lu=!0,!0}});window.addEventListener("test",Oo,Oo),window.removeEventListener("test",Oo,Oo)}catch{Lu=!1}var hn=Lu?{passive:!1}:!1,Wg=function(e){return e.tagName==="TEXTAREA"},Ep=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Wg(e)&&n[t]==="visible")},Hg=function(e){return Ep(e,"overflowY")},Qg=function(e){return Ep(e,"overflowX")},gc=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=xp(e,n);if(r){var o=kp(e,n),l=o[1],i=o[2];if(l>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Gg=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Yg=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},xp=function(e,t){return e==="v"?Hg(t):Qg(t)},kp=function(e,t){return e==="v"?Gg(t):Yg(t)},Kg=function(e,t){return e==="h"&&t==="rtl"?-1:1},Xg=function(e,t,n,r,o){var l=Kg(e,window.getComputedStyle(t).direction),i=l*r,u=n.target,s=t.contains(u),a=!1,d=i>0,c=0,m=0;do{var g=kp(e,u),w=g[0],v=g[1],x=g[2],f=v-x-l*w;(w||f)&&xp(e,u)&&(c+=f,m+=w),u=u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return(d&&(o&&c===0||!o&&i>c)||!d&&(o&&m===0||!o&&-i>m))&&(a=!0),a},Ao=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yc=function(e){return[e.deltaX,e.deltaY]},wc=function(e){return e&&"current"in e?e.current:e},Zg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Jg=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},qg=0,gn=[];function e0(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),o=y.useState(qg++)[0],l=y.useState(function(){return Bs()})[0],i=y.useRef(e);y.useEffect(function(){i.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=mp([e.lockRef.current],(e.shards||[]).map(wc),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=y.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var f=Ao(v),p=n.current,h="deltaX"in v?v.deltaX:p[0]-f[0],E="deltaY"in v?v.deltaY:p[1]-f[1],k,L=v.target,N=Math.abs(h)>Math.abs(E)?"h":"v";if("touches"in v&&N==="h"&&L.type==="range")return!1;var S=gc(N,L);if(!S)return!0;if(S?k=N:(k=N==="v"?"h":"v",S=gc(N,L)),!S)return!1;if(!r.current&&"changedTouches"in v&&(h||E)&&(r.current=k),!k)return!0;var P=r.current||k;return Xg(P,x,v,P==="h"?h:E,!0)},[]),s=y.useCallback(function(v){var x=v;if(!(!gn.length||gn[gn.length-1]!==l)){var f="deltaY"in x?yc(x):Ao(x),p=t.current.filter(function(k){return k.name===x.type&&k.target===x.target&&Zg(k.delta,f)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var h=(i.current.shards||[]).map(wc).filter(Boolean).filter(function(k){return k.contains(x.target)}),E=h.length>0?u(x,h[0]):!i.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),a=y.useCallback(function(v,x,f,p){var h={name:v,delta:x,target:f,should:p};t.current.push(h),setTimeout(function(){t.current=t.current.filter(function(E){return E!==h})},1)},[]),d=y.useCallback(function(v){n.current=Ao(v),r.current=void 0},[]),c=y.useCallback(function(v){a(v.type,yc(v),v.target,u(v,e.lockRef.current))},[]),m=y.useCallback(function(v){a(v.type,Ao(v),v.target,u(v,e.lockRef.current))},[]);y.useEffect(function(){return gn.push(l),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:m}),document.addEventListener("wheel",s,hn),document.addEventListener("touchmove",s,hn),document.addEventListener("touchstart",d,hn),function(){gn=gn.filter(function(v){return v!==l}),document.removeEventListener("wheel",s,hn),document.removeEventListener("touchmove",s,hn),document.removeEventListener("touchstart",d,hn)}},[]);var g=e.removeScrollBar,w=e.inert;return y.createElement(y.Fragment,null,w?y.createElement(l,{styles:Jg(o)}):null,g?y.createElement(Sp,{gapMode:"margin"}):null)}const t0=yp(wp,e0);var Cp=y.forwardRef(function(e,t){return y.createElement(Kl,ve({},e,{ref:t,sideCar:t0}))});Cp.classNames=Kl.classNames;const E1=Cp;var Rp=hp(),_i=function(){},Xl=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:_i,onWheelCapture:_i,onTouchMoveCapture:_i}),o=r[0],l=r[1],i=e.forwardProps,u=e.children,s=e.className,a=e.removeScrollBar,d=e.enabled,c=e.shards,m=e.sideCar,g=e.noIsolation,w=e.inert,v=e.allowPinchZoom,x=e.as,f=x===void 0?"div":x,p=Vs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),h=m,E=vp([n,t]),k=ve(ve({},p),o);return y.createElement(y.Fragment,null,d&&y.createElement(h,{sideCar:Rp,removeScrollBar:a,shards:c,noIsolation:g,inert:w,setCallbacks:l,allowPinchZoom:!!v,lockRef:n}),i?y.cloneElement(y.Children.only(u),ve(ve({},k),{ref:E})):y.createElement(f,ve({},k,{className:s,ref:E}),u))});Xl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xl.classNames={fullWidth:Ar,zeroRight:Or};var Nu=!1;if(typeof window<"u")try{var Lo=Object.defineProperty({},"passive",{get:function(){return Nu=!0,!0}});window.addEventListener("test",Lo,Lo),window.removeEventListener("test",Lo,Lo)}catch{Nu=!1}var yn=Nu?{passive:!1}:!1,n0=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},r0=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},Sc=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Pp(e,n);if(r){var o=_p(e,n),l=o[1],i=o[2];if(l>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},o0=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},l0=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Pp=function(e,t){return e==="v"?n0(t):r0(t)},_p=function(e,t){return e==="v"?o0(t):l0(t)},i0=function(e,t){return e==="h"&&t==="rtl"?-1:1},u0=function(e,t,n,r,o){var l=i0(e,window.getComputedStyle(t).direction),i=l*r,u=n.target,s=t.contains(u),a=!1,d=i>0,c=0,m=0;do{var g=_p(e,u),w=g[0],v=g[1],x=g[2],f=v-x-l*w;(w||f)&&Pp(e,u)&&(c+=f,m+=w),u=u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return(d&&(o&&c===0||!o&&i>c)||!d&&(o&&m===0||!o&&-i>m))&&(a=!0),a},No=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ec=function(e){return[e.deltaX,e.deltaY]},xc=function(e){return e&&"current"in e?e.current:e},s0=function(e,t){return e[0]===t[0]&&e[1]===t[1]},a0=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},c0=0,wn=[];function f0(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),o=y.useState(c0++)[0],l=y.useState(function(){return Bs()})[0],i=y.useRef(e);y.useEffect(function(){i.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=mp([e.lockRef.current],(e.shards||[]).map(xc),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=y.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var f=No(v),p=n.current,h="deltaX"in v?v.deltaX:p[0]-f[0],E="deltaY"in v?v.deltaY:p[1]-f[1],k,L=v.target,N=Math.abs(h)>Math.abs(E)?"h":"v";if("touches"in v&&N==="h"&&L.type==="range")return!1;var S=Sc(N,L);if(!S)return!0;if(S?k=N:(k=N==="v"?"h":"v",S=Sc(N,L)),!S)return!1;if(!r.current&&"changedTouches"in v&&(h||E)&&(r.current=k),!k)return!0;var P=r.current||k;return u0(P,x,v,P==="h"?h:E,!0)},[]),s=y.useCallback(function(v){var x=v;if(!(!wn.length||wn[wn.length-1]!==l)){var f="deltaY"in x?Ec(x):No(x),p=t.current.filter(function(k){return k.name===x.type&&k.target===x.target&&s0(k.delta,f)})[0];if(p&&p.should){x.preventDefault();return}if(!p){var h=(i.current.shards||[]).map(xc).filter(Boolean).filter(function(k){return k.contains(x.target)}),E=h.length>0?u(x,h[0]):!i.current.noIsolation;E&&x.preventDefault()}}},[]),a=y.useCallback(function(v,x,f,p){var h={name:v,delta:x,target:f,should:p};t.current.push(h),setTimeout(function(){t.current=t.current.filter(function(E){return E!==h})},1)},[]),d=y.useCallback(function(v){n.current=No(v),r.current=void 0},[]),c=y.useCallback(function(v){a(v.type,Ec(v),v.target,u(v,e.lockRef.current))},[]),m=y.useCallback(function(v){a(v.type,No(v),v.target,u(v,e.lockRef.current))},[]);y.useEffect(function(){return wn.push(l),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:m}),document.addEventListener("wheel",s,yn),document.addEventListener("touchmove",s,yn),document.addEventListener("touchstart",d,yn),function(){wn=wn.filter(function(v){return v!==l}),document.removeEventListener("wheel",s,yn),document.removeEventListener("touchmove",s,yn),document.removeEventListener("touchstart",d,yn)}},[]);var g=e.removeScrollBar,w=e.inert;return y.createElement(y.Fragment,null,w?y.createElement(l,{styles:a0(o)}):null,g?y.createElement(Sp,{gapMode:"margin"}):null)}const d0=yp(Rp,f0);var Op=y.forwardRef(function(e,t){return y.createElement(Xl,ve({},e,{ref:t,sideCar:d0}))});Op.classNames=Xl.classNames;const x1=Op;var kc=1,p0=.9,m0=.3,Oi=.1,v0=0,Ai=.999,h0=.9999,g0=.99,Cc=/[\\\/\-_+.# \t"@\[\(\{&]/,y0=/[\\\/\-_+.# \t"@\[\(\{&]/g;function Mu(e,t,n,r,o,l){if(l===t.length)return o===e.length?kc:g0;for(var i=r.charAt(l),u=n.indexOf(i,o),s=0,a,d,c;u>=0;)a=Mu(e,t,n,r,u+1,l+1),a>s&&(u===o?a*=kc:Cc.test(e.charAt(u-1))?(a*=p0,c=e.slice(o,u-1).match(y0),c&&o>0&&(a*=Math.pow(Ai,c.length))):Cc.test(e.slice(o,u-1))?(a*=v0,o>0&&(a*=Math.pow(Ai,u-o))):(a*=m0,o>0&&(a*=Math.pow(Ai,u-o))),e.charAt(u)!==t.charAt(l)&&(a*=h0)),aa&&(a=d*Oi)),a>s&&(s=a),u=n.indexOf(i,u+1);return s}function w0(e,t){return Mu(e,t,e.toLowerCase(),t.toLowerCase(),0,0)}var S0=w0;const E0=Al(S0);var x0='[cmdk-list-sizer=""]',dr='[cmdk-group=""]',Li='[cmdk-group-items=""]',k0='[cmdk-group-heading=""]',Ap='[cmdk-item=""]',Rc=`${Ap}:not([aria-disabled="true"])`,Tu="cmdk-item-select",kt="data-value",C0=(e,t)=>E0(e,t),Lp=y.createContext(void 0),no=()=>y.useContext(Lp),Np=y.createContext(void 0),Us=()=>y.useContext(Np),Mp=y.createContext(void 0),Tp=y.forwardRef((e,t)=>{let n=y.useRef(null),r=Sn(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=Sn(()=>new Set),l=Sn(()=>new Map),i=Sn(()=>new Map),u=Sn(()=>new Set),s=Dp(e),{label:a,children:d,value:c,onValueChange:m,filter:g,shouldFilter:w,...v}=e,x=y.useId(),f=y.useId(),p=y.useId(),h=z0();tr(()=>{if(c!==void 0){let C=c.trim().toLowerCase();r.current.value=C,h(6,R),E.emit()}},[c]);let E=y.useMemo(()=>({subscribe:C=>(u.current.add(C),()=>u.current.delete(C)),snapshot:()=>r.current,setState:(C,D,V)=>{var I,B,re;if(!Object.is(r.current[C],D)){if(r.current[C]=D,C==="search")P(),N(),h(1,S);else if(C==="value")if(((I=s.current)==null?void 0:I.value)!==void 0){(re=(B=s.current).onValueChange)==null||re.call(B,D);return}else V||h(5,R);E.emit()}},emit:()=>{u.current.forEach(C=>C())}}),[]),k=y.useMemo(()=>({value:(C,D)=>{D!==i.current.get(C)&&(i.current.set(C,D),r.current.filtered.items.set(C,L(D)),h(2,()=>{N(),E.emit()}))},item:(C,D)=>(o.current.add(C),D&&(l.current.has(D)?l.current.get(D).add(C):l.current.set(D,new Set([C]))),h(3,()=>{P(),N(),r.current.value||S(),E.emit()}),()=>{i.current.delete(C),o.current.delete(C),r.current.filtered.items.delete(C),h(4,()=>{P(),S(),E.emit()})}),group:C=>(l.current.has(C)||l.current.set(C,new Set),()=>{i.current.delete(C),l.current.delete(C)}),filter:()=>s.current.shouldFilter,label:a||e["aria-label"],listId:x,inputId:p,labelId:f}),[]);function L(C){var D;let V=((D=s.current)==null?void 0:D.filter)??C0;return C?V(C,r.current.search):0}function N(){if(!n.current||!r.current.search||s.current.shouldFilter===!1)return;let C=r.current.filtered.items,D=[];r.current.filtered.groups.forEach(I=>{let B=l.current.get(I),re=0;B.forEach(rt=>{let ot=C.get(rt);re=Math.max(ot,re)}),D.push([I,re])});let V=n.current.querySelector(x0);O().sort((I,B)=>{let re=I.getAttribute(kt),rt=B.getAttribute(kt);return(C.get(rt)??0)-(C.get(re)??0)}).forEach(I=>{let B=I.closest(Li);B?B.appendChild(I.parentElement===B?I:I.closest(`${Li} > *`)):V.appendChild(I.parentElement===V?I:I.closest(`${Li} > *`))}),D.sort((I,B)=>B[1]-I[1]).forEach(I=>{let B=n.current.querySelector(`${dr}[${kt}="${I[0]}"]`);B?.parentElement.appendChild(B)})}function S(){let C=O().find(V=>!V.ariaDisabled),D=C?.getAttribute(kt);E.setState("value",D||void 0)}function P(){if(!r.current.search||s.current.shouldFilter===!1){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let C=0;for(let D of o.current){let V=i.current.get(D),I=L(V);r.current.filtered.items.set(D,I),I>0&&C++}for(let[D,V]of l.current)for(let I of V)if(r.current.filtered.items.get(I)>0){r.current.filtered.groups.add(D);break}r.current.filtered.count=C}function R(){var C,D,V;let I=_();I&&(((C=I.parentElement)==null?void 0:C.firstChild)===I&&((V=(D=I.closest(dr))==null?void 0:D.querySelector(k0))==null||V.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function _(){return n.current.querySelector(`${Ap}[aria-selected="true"]`)}function O(){return Array.from(n.current.querySelectorAll(Rc))}function z(C){let D=O()[C];D&&E.setState("value",D.getAttribute(kt))}function T(C){var D;let V=_(),I=O(),B=I.findIndex(rt=>rt===V),re=I[B+C];(D=s.current)!=null&&D.loop&&(re=B+C<0?I[I.length-1]:B+C===I.length?I[0]:I[B+C]),re&&E.setState("value",re.getAttribute(kt))}function F(C){let D=_(),V=D?.closest(dr),I;for(;V&&!I;)V=C>0?T0(V,dr):D0(V,dr),I=V?.querySelector(Rc);I?E.setState("value",I.getAttribute(kt)):T(C)}let $=()=>z(O().length-1),b=C=>{C.preventDefault(),C.metaKey?$():C.altKey?F(1):T(1)},A=C=>{C.preventDefault(),C.metaKey?z(0):C.altKey?F(-1):T(-1)};return y.createElement("div",{ref:ro([n,t]),...v,"cmdk-root":"",onKeyDown:C=>{var D;if((D=v.onKeyDown)==null||D.call(v,C),!C.defaultPrevented)switch(C.key){case"n":case"j":{C.ctrlKey&&b(C);break}case"ArrowDown":{b(C);break}case"p":case"k":{C.ctrlKey&&A(C);break}case"ArrowUp":{A(C);break}case"Home":{C.preventDefault(),z(0);break}case"End":{C.preventDefault(),$();break}case"Enter":{C.preventDefault();let V=_();if(V){let I=new Event(Tu);V.dispatchEvent(I)}}}}},y.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:$0},a),y.createElement(Np.Provider,{value:E},y.createElement(Lp.Provider,{value:k},d)))}),R0=y.forwardRef((e,t)=>{let n=y.useId(),r=y.useRef(null),o=y.useContext(Mp),l=no(),i=Dp(e);tr(()=>l.item(n,o),[]);let u=zp(n,r,[e.value,e.children,r]),s=Us(),a=Yn(f=>f.value&&f.value===u.current),d=Yn(f=>l.filter()===!1?!0:f.search?f.filtered.items.get(n)>0:!0);y.useEffect(()=>{let f=r.current;if(!(!f||e.disabled))return f.addEventListener(Tu,c),()=>f.removeEventListener(Tu,c)},[d,e.onSelect,e.disabled]);function c(){var f,p;(p=(f=i.current).onSelect)==null||p.call(f,u.current)}function m(){s.setState("value",u.current,!0)}if(!d)return null;let{disabled:g,value:w,onSelect:v,...x}=e;return y.createElement("div",{ref:ro([r,t]),...x,"cmdk-item":"",role:"option","aria-disabled":g||void 0,"aria-selected":a||void 0,"data-selected":a||void 0,onPointerMove:g?void 0:m,onClick:g?void 0:c},e.children)}),P0=y.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,l=y.useId(),i=y.useRef(null),u=y.useRef(null),s=y.useId(),a=no(),d=Yn(m=>a.filter()===!1?!0:m.search?m.filtered.groups.has(l):!0);tr(()=>a.group(l),[]),zp(l,i,[e.value,e.heading,u]);let c=y.createElement(Mp.Provider,{value:l},r);return y.createElement("div",{ref:ro([i,t]),...o,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&y.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:s},n),y.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?s:void 0},c))}),_0=y.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=y.useRef(null),l=Yn(i=>!i.search);return!n&&!l?null:y.createElement("div",{ref:ro([o,t]),...r,"cmdk-separator":"",role:"separator"})}),O0=y.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,l=Us(),i=Yn(s=>s.search),u=no();return y.useEffect(()=>{e.value!=null&&l.setState("search",e.value)},[e.value]),y.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,id:u.inputId,type:"text",value:o?e.value:i,onChange:s=>{o||l.setState("search",s.target.value),n?.(s.target.value)}})}),A0=y.forwardRef((e,t)=>{let{children:n,...r}=e,o=y.useRef(null),l=y.useRef(null),i=no();return y.useEffect(()=>{if(l.current&&o.current){let u=l.current,s=o.current,a,d=new ResizeObserver(()=>{a=requestAnimationFrame(()=>{let c=u.getBoundingClientRect().height;s.style.setProperty("--cmdk-list-height",c.toFixed(1)+"px")})});return d.observe(u),()=>{cancelAnimationFrame(a),d.unobserve(u)}}},[]),y.createElement("div",{ref:ro([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:i.listId,"aria-labelledby":i.inputId},y.createElement("div",{ref:l,"cmdk-list-sizer":""},n))}),L0=y.forwardRef((e,t)=>{let{open:n,onOpenChange:r,container:o,...l}=e;return y.createElement(Gp,{open:n,onOpenChange:r},y.createElement(Yp,{container:o},y.createElement(Kp,{"cmdk-overlay":""}),y.createElement(Xp,{"aria-label":e.label,"cmdk-dialog":""},y.createElement(Tp,{ref:t,...l}))))}),N0=y.forwardRef((e,t)=>{let n=y.useRef(!0),r=Yn(o=>o.filtered.count===0);return y.useEffect(()=>{n.current=!1},[]),n.current||!r?null:y.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),M0=y.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return y.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},y.createElement("div",{"aria-hidden":!0},r))}),k1=Object.assign(Tp,{List:A0,Item:R0,Input:O0,Group:P0,Separator:_0,Dialog:L0,Empty:N0,Loading:M0});function T0(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function D0(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Dp(e){let t=y.useRef(e);return tr(()=>{t.current=e}),t}var tr=typeof window>"u"?y.useEffect:y.useLayoutEffect;function Sn(e){let t=y.useRef();return t.current===void 0&&(t.current=e()),t}function ro(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function Yn(e){let t=Us(),n=()=>e(t.snapshot());return y.useSyncExternalStore(t.subscribe,n,n)}function zp(e,t,n){let r=y.useRef(),o=no();return tr(()=>{var l;let i=(()=>{var u;for(let s of n){if(typeof s=="string")return s.trim().toLowerCase();if(typeof s=="object"&&"current"in s&&s.current)return(u=s.current.textContent)==null?void 0:u.trim().toLowerCase()}})();o.value(e,i),(l=t.current)==null||l.setAttribute(kt,i),r.current=i}),r}var z0=()=>{let[e,t]=y.useState(),n=Sn(()=>new Map);return tr(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}},$0={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},I0={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 j0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$p=(e,t)=>{const n=y.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:i,children:u,...s},a)=>y.createElement("svg",{ref:a,...I0,width:o,height:o,stroke:r,strokeWidth:i?Number(l)*24/Number(o):l,className:`lucide lucide-${j0(e)}`,...s},[...t.map(([d,c])=>y.createElement(d,c)),...(Array.isArray(u)?u:[u])||[]]));return n.displayName=`${e}`,n},C1=$p("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),R1=$p("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var Lr=function(){return Lr=Object.assign||function(t){for(var n,r=1,o=arguments.length;rnew Proxy(e,t);const Du=Object.getPrototypeOf,zu=new WeakMap,Ip=e=>e&&(zu.has(e)?zu.get(e):Du(e)===Object.prototype||Du(e)===Array.prototype),Pc=e=>typeof e=="object"&&e!==null,U0=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(Du(e),t)},jp=e=>e[Ws]||e,Fp=(e,t,n,r)=>{if(!Ip(e))return e;let o=r&&r.get(e);if(!o){const s=jp(e);o=(a=>Object.values(Object.getOwnPropertyDescriptors(a)).some(d=>!d.configurable&&!d.writable))(s)?[s,U0(s)]:[s],r?.set(e,o)}const[l,i]=o;let u=n&&n.get(l);return u&&u[1].f===!!i||(u=((s,a)=>{const d={f:a};let c=!1;const m=(w,v)=>{if(!c){let x=d[pr].get(s);if(x||(x={},d[pr].set(s,x)),w===Ko)x[Ko]=!0;else{let f=x[w];f||(f=new Set,x[w]=f),f.add(v)}}},g={get:(w,v)=>v===Ws?s:(m("k",v),Fp(Reflect.get(w,v),d[pr],d.c,d.t)),has:(w,v)=>v===V0?(c=!0,d[pr].delete(s),!0):(m("h",v),Reflect.has(w,v)),getOwnPropertyDescriptor:(w,v)=>(m("o",v),Reflect.getOwnPropertyDescriptor(w,v)),ownKeys:w=>(m(Ko),Reflect.ownKeys(w))};return a&&(g.set=g.deleteProperty=()=>!1),[g,d]})(l,!!i),u[1].p=B0(i||l,u[0]),n&&n.set(l,u)),u[1][pr]=t,u[1].c=n,u[1].t=r,u[1].p},bp=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Pc(e)||!Pc(t))return!0;const o=n.get(jp(e));if(!o)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 l=null;try{for(const i of o.h||[])if(l=Reflect.has(e,i)!==Reflect.has(t,i),l)return l;if(o[Ko]===!0){if(l=((i,u)=>{const s=Reflect.ownKeys(i),a=Reflect.ownKeys(u);return s.length!==a.length||s.some((d,c)=>d!==a[c])})(e,t),l)return l}else for(const i of o.o||[])if(l=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),l)return l;for(const i of o.k||[])if(l=bp(e[i],t[i],n,r),l)return l;return l===null&&(l=!0),l}finally{r&&r.set(e,{n:t,g:l})}},W0=e=>Ip(e)&&e[Ws]||null,_c=(e,t=!0)=>{zu.set(e,t)};const Ni=e=>typeof e=="object"&&e!==null,Pt=new WeakMap,Mo=new WeakSet,H0=(e=Object.is,t=(a,d)=>new Proxy(a,d),n=a=>Ni(a)&&!Mo.has(a)&&(Array.isArray(a)||!(Symbol.iterator in a))&&!(a instanceof WeakMap)&&!(a instanceof WeakSet)&&!(a instanceof Error)&&!(a instanceof Number)&&!(a instanceof Date)&&!(a instanceof String)&&!(a instanceof RegExp)&&!(a instanceof ArrayBuffer),r=a=>{switch(a.status){case"fulfilled":return a.value;case"rejected":throw a.reason;default:throw a}},o=new WeakMap,l=(a,d,c=r)=>{const m=o.get(a);if(m?.[0]===d)return m[1];const g=Array.isArray(a)?[]:Object.create(Object.getPrototypeOf(a));return _c(g,!0),o.set(a,[d,g]),Reflect.ownKeys(a).forEach(w=>{if(Object.getOwnPropertyDescriptor(g,w))return;const v=Reflect.get(a,w),x={value:v,enumerable:!0,configurable:!0};if(Mo.has(v))_c(v,!1);else if(v instanceof Promise)delete x.value,x.get=()=>c(v);else if(Pt.has(v)){const[f,p]=Pt.get(v);x.value=l(f,p(),c)}Object.defineProperty(g,w,x)}),Object.preventExtensions(g)},i=new WeakMap,u=[1,1],s=a=>{if(!Ni(a))throw new Error("object required");const d=i.get(a);if(d)return d;let c=u[0];const m=new Set,g=(P,R=++u[0])=>{c!==R&&(c=R,m.forEach(_=>_(P,R)))};let w=u[1];const v=(P=++u[1])=>(w!==P&&!m.size&&(w=P,f.forEach(([R])=>{const _=R[1](P);_>c&&(c=_)})),c),x=P=>(R,_)=>{const O=[...R];O[1]=[P,...O[1]],g(O,_)},f=new Map,p=(P,R)=>{if(m.size){const _=R[3](x(P));f.set(P,[R,_])}else f.set(P,[R])},h=P=>{var R;const _=f.get(P);_&&(f.delete(P),(R=_[1])==null||R.call(_))},E=P=>(m.add(P),m.size===1&&f.forEach(([_,O],z)=>{const T=_[3](x(z));f.set(z,[_,T])}),()=>{m.delete(P),m.size===0&&f.forEach(([_,O],z)=>{O&&(O(),f.set(z,[_]))})}),k=Array.isArray(a)?[]:Object.create(Object.getPrototypeOf(a)),N=t(k,{deleteProperty(P,R){const _=Reflect.get(P,R);h(R);const O=Reflect.deleteProperty(P,R);return O&&g(["delete",[R],_]),O},set(P,R,_,O){const z=Reflect.has(P,R),T=Reflect.get(P,R,O);if(z&&(e(T,_)||i.has(_)&&e(T,i.get(_))))return!0;h(R),Ni(_)&&(_=W0(_)||_);let F=_;if(_ instanceof Promise)_.then($=>{_.status="fulfilled",_.value=$,g(["resolve",[R],$])}).catch($=>{_.status="rejected",_.reason=$,g(["reject",[R],$])});else{!Pt.has(_)&&n(_)&&(F=s(_));const $=!Mo.has(F)&&Pt.get(F);$&&p(R,$)}return Reflect.set(P,R,F,O),g(["set",[R],_,T]),!0}});i.set(a,N);const S=[k,v,l,E];return Pt.set(N,S),Reflect.ownKeys(a).forEach(P=>{const R=Object.getOwnPropertyDescriptor(a,P);"value"in R&&(N[P]=a[P],delete R.value,delete R.writable),Object.defineProperty(k,P,R)}),N})=>[s,Pt,Mo,e,t,n,r,o,l,i,u],[Q0]=H0();function P1(e={}){return Q0(e)}function G0(e,t,n){const r=Pt.get(e);let o;const l=[],i=r[3];let u=!1;const a=i(d=>{if(l.push(d),n){t(l.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,u&&t(l.splice(0))}))});return u=!0,()=>{u=!1,a()}}function Oc(e,t){const n=Pt.get(e),[r,o,l]=n;return l(r,o(),t)}var Vp={exports:{}},Bp={};/** - * @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 Kn=y;function Y0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var K0=typeof Object.is=="function"?Object.is:Y0,X0=Kn.useState,Z0=Kn.useEffect,J0=Kn.useLayoutEffect,q0=Kn.useDebugValue;function ey(e,t){var n=t(),r=X0({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return J0(function(){o.value=n,o.getSnapshot=t,Mi(o)&&l({inst:o})},[e,n,t]),Z0(function(){return Mi(o)&&l({inst:o}),e(function(){Mi(o)&&l({inst:o})})},[e]),q0(n),n}function Mi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!K0(e,n)}catch{return!0}}function ty(e,t){return t()}var ny=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ty:ey;Bp.useSyncExternalStore=Kn.useSyncExternalStore!==void 0?Kn.useSyncExternalStore:ny;Vp.exports=Bp;var ry=Vp.exports;const oy=Al(ry),{use:Ac}=Nl,{useSyncExternalStore:ly}=oy;const iy=new WeakMap;function _1(e,t){const n=t?.sync,r=y.useRef(),o=y.useRef();let l=!0;const i=ly(y.useCallback(a=>{const d=G0(e,a,n);return a(),d},[e,n]),()=>{const a=Oc(e,Ac);try{if(!l&&r.current&&o.current&&!bp(r.current,a,o.current,new WeakMap))return r.current}catch{}return a},()=>Oc(e,Ac));l=!1;const u=new WeakMap;y.useEffect(()=>{r.current=i,o.current=u});const s=y.useMemo(()=>new WeakMap,[]);return Fp(i,u,s,iy)}let uy=0;function O1(e,t){const n=`atom${++uy}`,r={toString:()=>n};return typeof e=="function"?r.read=e:(r.init=e,r.read=o=>o(r),r.write=(o,l,i)=>l(r,typeof i=="function"?i(o(r)):i)),t&&(r.write=t),r}const Lc=e=>"init"in e,Nc=e=>!!e.write,_l=new WeakMap,sy=(e,t)=>{_l.set(e,t),e.catch(()=>{}).finally(()=>_l.delete(e))},Mc=(e,t)=>{const n=_l.get(e);n&&(_l.delete(e),n(t))},Tc=(e,t)=>{e.status="fulfilled",e.value=t},Dc=(e,t)=>{e.status="rejected",e.reason=t},ay=e=>typeof e?.then=="function",To=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),zc=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),mr=e=>"v"in e&&e.v instanceof Promise,cy=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,Do=e=>{if("e"in e)throw e.e;return e.v},fy=()=>{const e=new WeakMap,t=new WeakMap,n=new Map;let r,o;const l=S=>e.get(S),i=(S,P)=>{const R=e.get(S);if(e.set(S,P),n.has(S)||n.set(S,R),R&&mr(R)){const _="v"in P?P.v instanceof Promise?P.v:Promise.resolve(P.v):Promise.reject(P.e);R.v!==_&&Mc(R.v,_)}},u=(S,P,R)=>{const _=new Map;let O=!1;R.forEach((z,T)=>{!z&&T===S&&(z=P),z&&(_.set(T,z),P.d.get(T)!==z&&(O=!0))}),(O||P.d.size!==_.size)&&(P.d=_)},s=(S,P,R)=>{const _=l(S),O={d:_?.d||new Map,v:P};if(R&&u(S,O,R),_&&To(_,O)&&_.d===O.d)return _;if(_&&mr(_)&&mr(O)&&cy(_,O)){if(_.d===O.d)return _;O.v=_.v}return i(S,O),O},a=(S,P,R,_)=>{if(ay(P)){let O;const z=new Promise((T,F)=>{let $=!1;P.then(b=>{if(!$){$=!0;const A=l(S),C=s(S,z,R);Tc(z,b),T(b),t.has(S)&&A?.d!==C.d&&k(S,C,A?.d)}},b=>{if(!$){$=!0;const A=l(S),C=s(S,z,R);Dc(z,b),F(b),t.has(S)&&A?.d!==C.d&&k(S,C,A?.d)}}),O=b=>{$||($=!0,b.then(A=>Tc(z,A),A=>Dc(z,A)),T(b))}});return z.orig=P,z.status="pending",sy(z,T=>{T&&O(T),_?.()}),s(S,z,R)}return s(S,P,R)},d=(S,P,R)=>{const _=l(S),O={d:_?.d||new Map,e:P};return R&&u(S,O,R),_&&zc(_,O)&&_.d===O.d?_:(i(S,O),O)},c=(S,P)=>{const R=l(S);if(!P&&R&&(t.has(S)||Array.from(R.d).every(([b,A])=>b===S||c(b)===A)))return R;const _=new Map;let O=!0;const z=b=>{if(b===S){const C=l(b);if(C)return _.set(b,C),Do(C);if(Lc(b))return _.set(b,void 0),b.init;throw new Error("no atom init")}const A=c(b);return _.set(b,A),Do(A)};let T,F;const $={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return!F&&Nc(S)&&(F=(...b)=>{if(!O)return p(S,...b)}),F}};try{const b=S.read(z,$);return a(S,b,_,()=>T?.abort())}catch(b){return d(S,b,_)}finally{O=!1}},m=S=>Do(c(S)),g=S=>{let P=t.get(S);return P||(P=h(S)),P},w=(S,P)=>!P.l.size&&(!P.t.size||P.t.size===1&&P.t.has(S)),v=S=>{const P=t.get(S);P&&w(S,P)&&E(S)},x=S=>{const P=new Map,R=new WeakMap,_=T=>{var F;const $=new Set((F=t.get(T))==null?void 0:F.t);return n.forEach((b,A)=>{var C;(C=l(A))!=null&&C.d.has(T)&&$.add(A)}),$},O=T=>{_(T).forEach(F=>{F!==T&&(P.set(F,(P.get(F)||new Set).add(T)),R.set(F,(R.get(F)||0)+1),O(F))})};O(S);const z=T=>{_(T).forEach(F=>{var $;if(F!==T){let b=R.get(F);if(b&&R.set(F,--b),!b){let A=!!(($=P.get(F))!=null&&$.size);if(A){const C=l(F),D=c(F,!0);A=!C||!To(C,D)}A||P.forEach(C=>C.delete(F))}z(F)}})};z(S)},f=(S,...P)=>{let R=!0;const _=T=>Do(c(T)),O=(T,...F)=>{let $;if(T===S){if(!Lc(T))throw new Error("atom not writable");const b=l(T),A=a(T,F[0]);(!b||!To(b,A))&&x(T)}else $=f(T,...F);if(!R){const b=L()}return $},z=S.write(_,O,...P);return R=!1,z},p=(S,...P)=>{const R=f(S,...P),_=L();return R},h=(S,P,R)=>{var _;const O=R||[];(_=l(S))==null||_.d.forEach((T,F)=>{const $=t.get(F);$?$.t.add(S):F!==S&&h(F,S,O)}),c(S);const z={t:new Set(P&&[P]),l:new Set};if(t.set(S,z),Nc(S)&&S.onMount){const{onMount:T}=S;O.push(()=>{const F=T((...$)=>p(S,...$));F&&(z.u=F)})}return R||O.forEach(T=>T()),z},E=S=>{var P;const R=(P=t.get(S))==null?void 0:P.u;R&&R(),t.delete(S);const _=l(S);_&&(mr(_)&&Mc(_.v),_.d.forEach((O,z)=>{if(z!==S){const T=t.get(z);T&&(T.t.delete(S),w(z,T)&&E(z))}}))},k=(S,P,R)=>{const _=new Set(P.d.keys());R?.forEach((O,z)=>{if(_.has(z)){_.delete(z);return}const T=t.get(z);T&&(T.t.delete(S),w(z,T)&&E(z))}),_.forEach(O=>{const z=t.get(O);z?z.t.add(S):t.has(S)&&h(O,S)})},L=()=>{let S;for(;n.size;){const P=Array.from(n);n.clear(),P.forEach(([R,_])=>{const O=l(R);if(O){const z=t.get(R);z&&O.d!==_?.d&&k(R,O,_?.d),z&&!(_&&!mr(_)&&(To(_,O)||zc(_,O)))&&z.l.forEach(T=>T())}})}};return{get:m,set:p,sub:(S,P)=>{const R=g(S),_=L(),O=R.l;return O.add(P),()=>{O.delete(P),v(S)}}}};let Ti;const dy=()=>(Ti||(Ti=fy()),Ti),py=y.createContext(void 0),Up=e=>{const t=y.useContext(py);return e?.store||t||dy()},my=e=>typeof e?.then=="function",vy=Nl.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 A1(e,t){const n=Up(t),[[r,o,l],i]=y.useReducer(a=>{const d=n.get(e);return Object.is(a[0],d)&&a[1]===n&&a[2]===e?a:[d,n,e]},void 0,()=>[n.get(e),n,e]);let u=r;(o!==n||l!==e)&&(i(),u=n.get(e));const s=t?.delay;return y.useEffect(()=>{const a=n.sub(e,()=>{if(typeof s=="number"){setTimeout(i,s);return}i()});return i(),a},[n,e,s]),y.useDebugValue(u),my(u)?vy(u):u}function L1(e,t){const n=Up(t);return y.useCallback((...o)=>n.set(e,...o),[n,e])}let hy={data:""},gy=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||hy,yy=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,wy=/\/\*[^]*?\*\/| +/g,$c=/\n+/g,At=(e,t)=>{let n="",r="",o="";for(let l in e){let i=e[l];l[0]=="@"?l[1]=="i"?n=l+" "+i+";":r+=l[1]=="f"?At(i,l):l+"{"+At(i,l[1]=="k"?"":t)+"}":typeof i=="object"?r+=At(i,t?t.replace(/([^,])+/g,u=>l.replace(/(^:.*)|([^,])+/g,s=>/&/.test(s)?s.replace(/&/g,u):u?u+" "+s:s)):l):i!=null&&(l=/^--/.test(l)?l:l.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=At.p?At.p(l,i):l+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},lt={},Wp=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Wp(e[n]);return t}return e},Sy=(e,t,n,r,o)=>{let l=Wp(e),i=lt[l]||(lt[l]=(s=>{let a=0,d=11;for(;a>>0;return"go"+d})(l));if(!lt[i]){let s=l!==e?e:(a=>{let d,c,m=[{}];for(;d=yy.exec(a.replace(wy,""));)d[4]?m.shift():d[3]?(c=d[3].replace($c," ").trim(),m.unshift(m[0][c]=m[0][c]||{})):m[0][d[1]]=d[2].replace($c," ").trim();return m[0]})(e);lt[i]=At(o?{["@keyframes "+i]:s}:s,n?"":"."+i)}let u=n&<.g?lt.g:null;return n&&(lt.g=lt[i]),((s,a,d,c)=>{c?a.data=a.data.replace(c,s):a.data.indexOf(s)===-1&&(a.data=d?s+a.data:a.data+s)})(lt[i],t,r,u),i},Ey=(e,t,n)=>e.reduce((r,o,l)=>{let i=t[l];if(i&&i.call){let u=i(n),s=u&&u.props&&u.props.className||/^go/.test(u)&&u;i=s?"."+s:u&&typeof u=="object"?u.props?"":At(u,""):u===!1?"":u}return r+o+(i??"")},"");function Zl(e){let t=this||{},n=e.call?e(t.p):e;return Sy(n.unshift?n.raw?Ey(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,gy(t.target),t.g,t.o,t.k)}let Hp,$u,Iu;Zl.bind({g:1});let yt=Zl.bind({k:1});function xy(e,t,n,r){At.p=t,Hp=e,$u=n,Iu=r}function Yt(e,t){let n=this||{};return function(){let r=arguments;function o(l,i){let u=Object.assign({},l),s=u.className||o.className;n.p=Object.assign({theme:$u&&$u()},u),n.o=/ *go\d+/.test(s),u.className=Zl.apply(n,r)+(s?" "+s:""),t&&(u.ref=i);let a=e;return e[0]&&(a=u.as||e,delete u.as),Iu&&a[0]&&Iu(u),Hp(a,u)}return t?t(o):o}}var ky=e=>typeof e=="function",Ol=(e,t)=>ky(e)?e(t):e,Cy=(()=>{let e=0;return()=>(++e).toString()})(),Qp=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Ry=20,Xo=new Map,Py=1e3,Ic=e=>{if(Xo.has(e))return;let t=setTimeout(()=>{Xo.delete(e),pn({type:4,toastId:e})},Py);Xo.set(e,t)},_y=e=>{let t=Xo.get(e);t&&clearTimeout(t)},ju=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Ry)};case 1:return t.toast.id&&_y(t.toast.id),{...e,toasts:e.toasts.map(l=>l.id===t.toast.id?{...l,...t.toast}:l)};case 2:let{toast:n}=t;return e.toasts.find(l=>l.id===n.id)?ju(e,{type:1,toast:n}):ju(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Ic(r):e.toasts.forEach(l=>{Ic(l.id)}),{...e,toasts:e.toasts.map(l=>l.id===r||r===void 0?{...l,visible:!1}:l)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(l=>l.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(l=>({...l,pauseDuration:l.pauseDuration+o}))}}},Zo=[],Jo={toasts:[],pausedAt:void 0},pn=e=>{Jo=ju(Jo,e),Zo.forEach(t=>{t(Jo)})},Oy={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Ay=(e={})=>{let[t,n]=y.useState(Jo);y.useEffect(()=>(Zo.push(n),()=>{let o=Zo.indexOf(n);o>-1&&Zo.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var l,i;return{...e,...e[o.type],...o,duration:o.duration||((l=e[o.type])==null?void 0:l.duration)||e?.duration||Oy[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},Ly=(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||Cy()}),oo=e=>(t,n)=>{let r=Ly(t,e,n);return pn({type:2,toast:r}),r.id},Ie=(e,t)=>oo("blank")(e,t);Ie.error=oo("error");Ie.success=oo("success");Ie.loading=oo("loading");Ie.custom=oo("custom");Ie.dismiss=e=>{pn({type:3,toastId:e})};Ie.remove=e=>pn({type:4,toastId:e});Ie.promise=(e,t,n)=>{let r=Ie.loading(t.loading,{...n,...n?.loading});return e.then(o=>(Ie.success(Ol(t.success,o),{id:r,...n,...n?.success}),o)).catch(o=>{Ie.error(Ol(t.error,o),{id:r,...n,...n?.error})}),e};var Ny=(e,t)=>{pn({type:1,toast:{id:e,height:t}})},My=()=>{pn({type:5,time:Date.now()})},Ty=e=>{let{toasts:t,pausedAt:n}=Ay(e);y.useEffect(()=>{if(n)return;let l=Date.now(),i=t.map(u=>{if(u.duration===1/0)return;let s=(u.duration||0)+u.pauseDuration-(l-u.createdAt);if(s<0){u.visible&&Ie.dismiss(u.id);return}return setTimeout(()=>Ie.dismiss(u.id),s)});return()=>{i.forEach(u=>u&&clearTimeout(u))}},[t,n]);let r=y.useCallback(()=>{n&&pn({type:6,time:Date.now()})},[n]),o=y.useCallback((l,i)=>{let{reverseOrder:u=!1,gutter:s=8,defaultPosition:a}=i||{},d=t.filter(g=>(g.position||a)===(l.position||a)&&g.height),c=d.findIndex(g=>g.id===l.id),m=d.filter((g,w)=>wg.visible).slice(...u?[m+1]:[0,m]).reduce((g,w)=>g+(w.height||0)+s,0)},[t]);return{toasts:t,handlers:{updateHeight:Ny,startPause:My,endPause:r,calculateOffset:o}}},Dy=yt` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,zy=yt` -from { - transform: scale(0); - opacity: 0; -} -to { - transform: scale(1); - opacity: 1; -}`,$y=yt` -from { - transform: scale(0) rotate(90deg); - opacity: 0; -} -to { - transform: scale(1) rotate(90deg); - opacity: 1; -}`,Iy=Yt("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${e=>e.primary||"#ff4b4b"}; - position: relative; - transform: rotate(45deg); - - animation: ${Dy} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - - &:after, - &:before { - content: ''; - animation: ${zy} 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: ${$y} 0.15s ease-out forwards; - animation-delay: 180ms; - transform: rotate(90deg); - } -`,jy=yt` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`,Fy=Yt("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: ${jy} 1s linear infinite; -`,by=yt` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,Vy=yt` -0% { - height: 0; - width: 0; - opacity: 0; -} -40% { - height: 0; - width: 6px; - opacity: 1; -} -100% { - opacity: 1; - height: 10px; -}`,By=Yt("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${e=>e.primary||"#61d345"}; - position: relative; - transform: rotate(45deg); - - animation: ${by} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - &:after { - content: ''; - box-sizing: border-box; - animation: ${Vy} 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; - } -`,Uy=Yt("div")` - position: absolute; -`,Wy=Yt("div")` - position: relative; - display: flex; - justify-content: center; - align-items: center; - min-width: 20px; - min-height: 20px; -`,Hy=yt` -from { - transform: scale(0.6); - opacity: 0.4; -} -to { - transform: scale(1); - opacity: 1; -}`,Qy=Yt("div")` - position: relative; - transform: scale(0.6); - opacity: 0.4; - min-width: 20px; - animation: ${Hy} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; -`,Gy=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?y.createElement(Qy,null,t):t:n==="blank"?null:y.createElement(Wy,null,y.createElement(Fy,{...r}),n!=="loading"&&y.createElement(Uy,null,n==="error"?y.createElement(Iy,{...r}):y.createElement(By,{...r})))},Yy=e=>` -0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} -100% {transform: translate3d(0,0,0) scale(1); opacity:1;} -`,Ky=e=>` -0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} -100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} -`,Xy="0%{opacity:0;} 100%{opacity:1;}",Zy="0%{opacity:1;} 100%{opacity:0;}",Jy=Yt("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; -`,qy=Yt("div")` - display: flex; - justify-content: center; - margin: 4px 10px; - color: inherit; - flex: 1 1 auto; - white-space: pre-line; -`,e1=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Qp()?[Xy,Zy]:[Yy(n),Ky(n)];return{animation:t?`${yt(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${yt(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},t1=y.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?e1(e.position||t||"top-center",e.visible):{opacity:0},l=y.createElement(Gy,{toast:e}),i=y.createElement(qy,{...e.ariaProps},Ol(e.message,e));return y.createElement(Jy,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:l,message:i}):y.createElement(y.Fragment,null,l,i))});xy(y.createElement);var n1=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let l=y.useCallback(i=>{if(i){let u=()=>{let s=i.getBoundingClientRect().height;r(e,s)};u(),new MutationObserver(u).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return y.createElement("div",{ref:l,className:t,style:n},o)},r1=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Qp()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},o1=Zl` - z-index: 9999; - > * { - pointer-events: auto; - } -`,zo=16,N1=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:l,containerClassName:i})=>{let{toasts:u,handlers:s}=Ty(n);return y.createElement("div",{style:{position:"fixed",zIndex:9999,top:zo,left:zo,right:zo,bottom:zo,pointerEvents:"none",...l},className:i,onMouseEnter:s.startPause,onMouseLeave:s.endPause},u.map(a=>{let d=a.position||t,c=s.calculateOffset(a,{reverseOrder:e,gutter:r,defaultPosition:t}),m=r1(d,c);return y.createElement(n1,{id:a.id,key:a.id,onHeightUpdate:s.updateHeight,className:a.visible?o1:"",style:m},a.type==="custom"?Ol(a.message,a):o?o(a):y.createElement(t1,{toast:a,position:d}))}))};export{i1 as $,Ie as A,Ys as B,R1 as C,N1 as I,k1 as L,Nl as R,tc as _,Ts as a,g1 as b,h1 as c,y1 as d,s1 as e,f1 as f,S1 as g,d1 as h,E1 as i,x1 as j,xh as k,v1 as l,u1 as m,a1 as n,p1 as o,P1 as p,G0 as q,y as r,m1 as s,c1 as t,w1 as u,_1 as v,C1 as w,O1 as x,A1 as y,L1 as z}; diff --git a/index.html b/index.html index 9e3aa8b..4a47d31 100644 --- a/index.html +++ b/index.html @@ -5,9 +5,8 @@ sharcd-ui - - - + +