@tomny-dev/uzi 0.1.12 → 0.2.0-pr.19.65.1.6d1e717

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,46 +1,47 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),N=require("react"),tr=require("react-dom");function nr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=nr(N),ct=nr(tr);function go(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lt(...e){return t=>{let n=!1;const o=e.map(r=>{const s=go(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():go(e[r],null)}}}}function H(...e){return c.useCallback(lt(...e),e)}var na=Symbol.for("react.lazy"),It=c[" use ".trim().toString()];function oa(e){return typeof e=="object"&&e!==null&&"then"in e}function or(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===na&&"_payload"in e&&oa(e._payload)}function rr(e){const t=sa(e),n=c.forwardRef((o,r)=>{let{children:s,...a}=o;or(s)&&typeof It=="function"&&(s=It(s._payload));const i=c.Children.toArray(s),u=i.find(aa);if(u){const d=u.props.children,m=i.map(f=>f===u?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...a,ref:r,children:c.isValidElement(d)?c.cloneElement(d,void 0,m):null})}return l.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var ra=rr("Slot");function sa(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n;if(or(r)&&typeof It=="function"&&(r=It(r._payload)),c.isValidElement(r)){const a=la(r),i=ca(s,r.props);return r.type!==c.Fragment&&(i.ref=o?lt(o,a):a),c.cloneElement(r,i)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ia=Symbol("radix.slottable");function aa(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ia}function ca(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const u=s(...i);return r(...i),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function la(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function F(...e){return e.filter(Boolean).join(" ")}const ua="uzi-button-module__button__5dzDN",da="uzi-button-module__sizeSm__jb544",fa="uzi-button-module__sizeMd__lIo8M",pa="uzi-button-module__sizeLg__QSSuW",ma="uzi-button-module__sizeIcon__Aa9tN",ha="uzi-button-module__variantPrimary__zp2Pg",va="uzi-button-module__variantSecondary__oX5CB",ga="uzi-button-module__variantOutline__uXfiP",wa="uzi-button-module__variantGhost__-OEB8",_a="uzi-button-module__variantDestructive__5IeYA",xa="uzi-button-module__variantLink__Olx4I",rn={button:ua,sizeSm:da,sizeMd:fa,sizeLg:pa,sizeIcon:ma,variantPrimary:ha,variantSecondary:va,variantOutline:ga,variantGhost:wa,variantDestructive:_a,variantLink:xa},ya={default:"variantPrimary",primary:"variantPrimary",secondary:"variantSecondary",outline:"variantOutline",ghost:"variantGhost",destructive:"variantDestructive",link:"variantLink"},ba={default:"sizeMd",sm:"sizeSm",md:"sizeMd",lg:"sizeLg",icon:"sizeIcon"};function sr({as:e,variant:t="default",size:n="default",className:o,children:r,asChild:s=!1,...a}){const i=F(rn.button,rn[ya[t]],rn[ba[n]],o);return s?l.jsx(ra,{className:i,...a,children:r}):e==="a"?l.jsx("a",{className:i,...a,children:r}):l.jsx("button",{type:"button",className:i,...a,children:r})}function Sa(e,t=[]){let n=[];function o(s,a){const i=c.createContext(a);i.displayName=s+"Context";const u=n.length;n=[...n,a];const d=f=>{const{scope:v,children:g,...w}=f,p=v?.[e]?.[u]||i,h=c.useMemo(()=>w,Object.values(w));return l.jsx(p.Provider,{value:h,children:g})};d.displayName=s+"Provider";function m(f,v){const g=v?.[e]?.[u]||i,w=c.useContext(g);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[d,m]}const r=()=>{const s=n.map(a=>c.createContext(a));return function(i){const u=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return r.scopeName=e,[o,Ca(r,...t)]}function Ca(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((i,{useScope:u,scopeName:d})=>{const f=u(s)[`__scope${d}`];return{...i,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function ne(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}var q=globalThis?.document?c.useLayoutEffect:()=>{},Ea=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],kn=Ea.reduce((e,t)=>{const n=rr(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:a,...i}=r,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),wt={exports:{}},sn={};var wo;function Ra(){if(wo)return sn;wo=1;var e=N;function t(f,v){return f===v&&(f!==0||1/f===1/v)||f!==f&&v!==v}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,r=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function i(f,v){var g=v(),w=o({inst:{value:g,getSnapshot:v}}),p=w[0].inst,h=w[1];return s(function(){p.value=g,p.getSnapshot=v,u(p)&&h({inst:p})},[f,g,v]),r(function(){return u(p)&&h({inst:p}),f(function(){u(p)&&h({inst:p})})},[f]),a(g),g}function u(f){var v=f.getSnapshot;f=f.value;try{var g=v();return!n(f,g)}catch{return!0}}function d(f,v){return v()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:i;return sn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,sn}var an={};var _o;function Ta(){return _o||(_o=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,w){return g===w&&(g!==0||1/g===1/w)||g!==g&&w!==w}function t(g,w){m||r.startTransition===void 0||(m=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=w();if(!f){var h=w();s(p,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}h=a({inst:{value:p,getSnapshot:w}});var y=h[0].inst,_=h[1];return u(function(){y.value=p,y.getSnapshot=w,n(y)&&_({inst:y})},[g,p,w]),i(function(){return n(y)&&_({inst:y}),g(function(){n(y)&&_({inst:y})})},[g]),d(p),p}function n(g){var w=g.getSnapshot;g=g.value;try{var p=w();return!s(g,p)}catch{return!0}}function o(g,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=N,s=typeof Object.is=="function"?Object.is:e,a=r.useState,i=r.useEffect,u=r.useLayoutEffect,d=r.useDebugValue,m=!1,f=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:t;an.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),an}var xo;function Ma(){return xo||(xo=1,process.env.NODE_ENV==="production"?wt.exports=Ra():wt.exports=Ta()),wt.exports}var Pa=Ma();function Ia(){return Pa.useSyncExternalStore(Na,()=>!0,()=>!1)}function Na(){return()=>{}}var Ln="Avatar",[Aa]=Sa(Ln),[Oa,ir]=Aa(Ln),ar=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...o}=e,[r,s]=c.useState("idle");return l.jsx(Oa,{scope:n,imageLoadingStatus:r,onImageLoadingStatusChange:s,children:l.jsx(kn.span,{...o,ref:t})})});ar.displayName=Ln;var cr="AvatarImage",lr=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:o,onLoadingStatusChange:r=()=>{},...s}=e,a=ir(cr,n),i=Da(o,s),u=ne(d=>{r(d),a.onImageLoadingStatusChange(d)});return q(()=>{i!=="idle"&&u(i)},[i,u]),i==="loaded"?l.jsx(kn.img,{...s,ref:t,src:o}):null});lr.displayName=cr;var ur="AvatarFallback",dr=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:o,...r}=e,s=ir(ur,n),[a,i]=c.useState(o===void 0);return c.useEffect(()=>{if(o!==void 0){const u=window.setTimeout(()=>i(!0),o);return()=>window.clearTimeout(u)}},[o]),a&&s.imageLoadingStatus!=="loaded"?l.jsx(kn.span,{...r,ref:t}):null});dr.displayName=ur;function yo(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Da(e,{referrerPolicy:t,crossOrigin:n}){const o=Ia(),r=c.useRef(null),s=o?(r.current||(r.current=new window.Image),r.current):null,[a,i]=c.useState(()=>yo(s,e));return q(()=>{i(yo(s,e))},[s,e]),q(()=>{const u=f=>()=>{i(f)};if(!s)return;const d=u("loaded"),m=u("error");return s.addEventListener("load",d),s.addEventListener("error",m),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",d),s.removeEventListener("error",m)}},[s,n,t]),a}var ja=ar,ka=lr,La=dr;const Fa="uzi-avatar-module__avatar__yPIOs",za="uzi-avatar-module__image__Ngo7A",Ba="uzi-avatar-module__fallback__Tf3oZ",Ye={avatar:Fa,"size-sm":"uzi-avatar-module__size-sm__v5riJ","size-md":"uzi-avatar-module__size-md__g7IQS","size-lg":"uzi-avatar-module__size-lg__Ca4xk",image:za,fallback:Ba};function $a({className:e,size:t="md",...n}){const o=t==="sm"?Ye["size-sm"]:t==="lg"?Ye["size-lg"]:Ye["size-md"];return l.jsx(ja,{className:F(Ye.avatar,o,e),...n})}function Wa({className:e,...t}){return l.jsx(ka,{className:F(Ye.image,e),...t})}function Va({className:e,...t}){return l.jsx(La,{className:F(Ye.fallback,e),...t})}const Ha="uzi-card-module__card__ZPFTz",Ua="uzi-card-module__interactive__zlPML",_t={card:Ha,"tone-default":"uzi-card-module__tone-default__7Ujf9","tone-muted":"uzi-card-module__tone-muted__RQy5B","tone-contrast":"uzi-card-module__tone-contrast__JpFxL",interactive:Ua,"padding-none":"uzi-card-module__padding-none__LXdx-","padding-sm":"uzi-card-module__padding-sm__-Ub1s","padding-md":"uzi-card-module__padding-md__kUf46","padding-lg":"uzi-card-module__padding-lg__a5mWP"};function Ka({as:e,tone:t="default",padding:n="md",interactive:o=!1,className:r,children:s,...a}){const i=e??"div",u={default:null,muted:"tone-muted",contrast:"tone-contrast"},d={none:"padding-none",sm:"padding-sm",md:"padding-md",lg:"padding-lg"},m=F(_t.card,u[t]?_t[u[t]]:null,_t[d[n]],o&&_t.interactive,r);return l.jsx(i,{className:m,...a,children:s})}const Ga="uzi-pill-module__pill__uCKcP",Ya="uzi-pill-module__icon__KQ8zg",Xa="uzi-pill-module__content__T7AG1",nt={pill:Ga,"size-sm":"uzi-pill-module__size-sm__JANOQ","size-md":"uzi-pill-module__size-md__fdsqR","tone-success":"uzi-pill-module__tone-success__kW2Kf","tone-warning":"uzi-pill-module__tone-warning__Rc5-s","tone-info":"uzi-pill-module__tone-info__0vQrj","tone-danger":"uzi-pill-module__tone-danger__gzNOa",icon:Ya,content:Xa};function qa({as:e,tone:t="neutral",size:n="md",icon:o,className:r,children:s,...a}){const i=e??"span",u=F(nt.pill,nt[`tone-${t}`],nt[`size-${n}`],r);return l.jsxs(i,{className:u,...a,children:[o?l.jsx("span",{className:nt.icon,"aria-hidden":"true",children:o}):null,l.jsx("span",{className:nt.content,children:s})]})}function I(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Za(e,t){const n=c.createContext(t),o=s=>{const{children:a,...i}=s,u=c.useMemo(()=>i,Object.values(i));return l.jsx(n.Provider,{value:u,children:a})};o.displayName=e+"Provider";function r(s){const a=c.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function Oe(e,t=[]){let n=[];function o(s,a){const i=c.createContext(a),u=n.length;n=[...n,a];const d=f=>{const{scope:v,children:g,...w}=f,p=v?.[e]?.[u]||i,h=c.useMemo(()=>w,Object.values(w));return l.jsx(p.Provider,{value:h,children:g})};d.displayName=s+"Provider";function m(f,v){const g=v?.[e]?.[u]||i,w=c.useContext(g);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[d,m]}const r=()=>{const s=n.map(a=>c.createContext(a));return function(i){const u=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return r.scopeName=e,[o,Ja(r,...t)]}function Ja(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((i,{useScope:u,scopeName:d})=>{const f=u(s)[`__scope${d}`];return{...i,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Qa=c[" useId ".trim().toString()]||(()=>{}),ec=0;function ve(e){const[t,n]=c.useState(Qa());return q(()=>{n(o=>o??String(ec++))},[e]),e||(t?`radix-${t}`:"")}var tc=c[" useInsertionEffect ".trim().toString()]||q;function ze({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,a]=nc({defaultProp:t,onChange:n}),i=e!==void 0,u=i?e:r;{const m=c.useRef(e!==void 0);c.useEffect(()=>{const f=m.current;f!==i&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=i},[i,o])}const d=c.useCallback(m=>{if(i){const f=oc(m)?m(e):m;f!==e&&a.current?.(f)}else s(m)},[i,e,s,a]);return[u,d]}function nc({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return tc(()=>{s.current=t},[t]),c.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function oc(e){return typeof e=="function"}function Ze(e){const t=rc(e),n=c.forwardRef((o,r)=>{const{children:s,...a}=o,i=c.Children.toArray(s),u=i.find(ic);if(u){const d=u.props.children,m=i.map(f=>f===u?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:f);return l.jsx(t,{...a,ref:r,children:c.isValidElement(d)?c.cloneElement(d,void 0,m):null})}return l.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function rc(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const a=cc(r),i=ac(s,r.props);return r.type!==c.Fragment&&(i.ref=o?lt(o,a):a),c.cloneElement(r,i)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sc=Symbol("radix.slottable");function ic(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sc}function ac(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const u=s(...i);return r(...i),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function cc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var lc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],B=lc.reduce((e,t)=>{const n=Ze(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:a,...i}=r,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Fn(e,t){e&&ct.flushSync(()=>e.dispatchEvent(t))}function uc(e,t=globalThis?.document){const n=ne(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var dc="DismissableLayer",yn="dismissableLayer.update",fc="dismissableLayer.pointerDownOutside",pc="dismissableLayer.focusOutside",bo,fr=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ut=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...u}=e,d=c.useContext(fr),[m,f]=c.useState(null),v=m?.ownerDocument??globalThis?.document,[,g]=c.useState({}),w=H(t,C=>f(C)),p=Array.from(d.layers),[h]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(h),_=m?p.indexOf(m):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,b=_>=y,S=hc(C=>{const A=C.target,k=[...d.branches].some(M=>M.contains(A));!b||k||(r?.(C),a?.(C),C.defaultPrevented||i?.())},v),E=vc(C=>{const A=C.target;[...d.branches].some(M=>M.contains(A))||(s?.(C),a?.(C),C.defaultPrevented||i?.())},v);return uc(C=>{_===d.layers.size-1&&(o?.(C),!C.defaultPrevented&&i&&(C.preventDefault(),i()))},v),c.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(bo=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),So(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=bo)}},[m,v,n,d]),c.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),So())},[m,d]),c.useEffect(()=>{const C=()=>g({});return document.addEventListener(yn,C),()=>document.removeEventListener(yn,C)},[]),l.jsx(B.div,{...u,ref:w,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:I(e.onFocusCapture,E.onFocusCapture),onBlurCapture:I(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,S.onPointerDownCapture)})});ut.displayName=dc;var mc="DismissableLayerBranch",pr=c.forwardRef((e,t)=>{const n=c.useContext(fr),o=c.useRef(null),r=H(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(B.div,{...e,ref:r})});pr.displayName=mc;function hc(e,t=globalThis?.document){const n=ne(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const s=i=>{if(i.target&&!o.current){let u=function(){mr(fc,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function vc(e,t=globalThis?.document){const n=ne(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&mr(pc,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function So(){const e=new CustomEvent(yn);document.dispatchEvent(e)}function mr(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Fn(r,s):r.dispatchEvent(s)}var gc=ut,wc=pr,cn="focusScope.autoFocusOnMount",ln="focusScope.autoFocusOnUnmount",Co={bubbles:!1,cancelable:!0},_c="FocusScope",zt=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[i,u]=c.useState(null),d=ne(r),m=ne(s),f=c.useRef(null),v=H(t,p=>u(p)),g=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let p=function(x){if(g.paused||!i)return;const b=x.target;i.contains(b)?f.current=b:Ie(f.current,{select:!0})},h=function(x){if(g.paused||!i)return;const b=x.relatedTarget;b!==null&&(i.contains(b)||Ie(f.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Ie(i)};document.addEventListener("focusin",p),document.addEventListener("focusout",h);const _=new MutationObserver(y);return i&&_.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",h),_.disconnect()}}},[o,i,g.paused]),c.useEffect(()=>{if(i){Ro.add(g);const p=document.activeElement;if(!i.contains(p)){const y=new CustomEvent(cn,Co);i.addEventListener(cn,d),i.dispatchEvent(y),y.defaultPrevented||(xc(Ec(hr(i)),{select:!0}),document.activeElement===p&&Ie(i))}return()=>{i.removeEventListener(cn,d),setTimeout(()=>{const y=new CustomEvent(ln,Co);i.addEventListener(ln,m),i.dispatchEvent(y),y.defaultPrevented||Ie(p??document.body,{select:!0}),i.removeEventListener(ln,m),Ro.remove(g)},0)}}},[i,d,m,g]);const w=c.useCallback(p=>{if(!n&&!o||g.paused)return;const h=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(h&&y){const _=p.currentTarget,[x,b]=yc(_);x&&b?!p.shiftKey&&y===b?(p.preventDefault(),n&&Ie(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),n&&Ie(b,{select:!0})):y===_&&p.preventDefault()}},[n,o,g.paused]);return l.jsx(B.div,{tabIndex:-1,...a,ref:v,onKeyDown:w})});zt.displayName=_c;function xc(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Ie(o,{select:t}),document.activeElement!==n)return}function yc(e){const t=hr(e),n=Eo(t,e),o=Eo(t.reverse(),e);return[n,o]}function hr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Eo(e,t){for(const n of e)if(!bc(n,{upTo:t}))return n}function bc(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 Sc(e){return e instanceof HTMLInputElement&&"select"in e}function Ie(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Sc(e)&&t&&e.select()}}var Ro=Cc();function Cc(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=To(e,t),e.unshift(t)},remove(t){e=To(e,t),e[0]?.resume()}}}function To(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Ec(e){return e.filter(t=>t.tagName!=="A")}var Rc="Portal",dt=c.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=c.useState(!1);q(()=>s(!0),[]);const a=n||r&&globalThis?.document?.body;return a?tr.createPortal(l.jsx(B.div,{...o,ref:t}),a):null});dt.displayName=Rc;function Tc(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var Me=e=>{const{present:t,children:n}=e,o=Mc(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=H(o.ref,Pc(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null};Me.displayName="Presence";function Mc(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),a=e?"mounted":"unmounted",[i,u]=Tc(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const d=xt(o.current);s.current=i==="mounted"?d:"none"},[i]),q(()=>{const d=o.current,m=r.current;if(m!==e){const v=s.current,g=xt(d);e?u("MOUNT"):g==="none"||d?.display==="none"?u("UNMOUNT"):u(m&&v!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),q(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,f=g=>{const p=xt(o.current).includes(CSS.escape(g.animationName));if(g.target===t&&p&&(u("ANIMATION_END"),!r.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},v=g=>{g.target===t&&(s.current=xt(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:c.useCallback(d=>{o.current=d?getComputedStyle(d):null,n(d)},[])}}function xt(e){return e?.animationName||"none"}function Pc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var un=0;function zn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mo()),document.body.insertAdjacentElement("beforeend",e[1]??Mo()),un++,()=>{un===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),un--}},[])}function Mo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ye=function(){return ye=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ye.apply(this,arguments)};function vr(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Ic(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Tt="right-scroll-bar-position",Mt="width-before-scroll-bar",Nc="with-scroll-bars-hidden",Ac="--removed-body-scroll-bar-size";function dn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Oc(e,t){var n=N.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Dc=typeof window<"u"?c.useLayoutEffect:c.useEffect,Po=new WeakMap;function jc(e,t){var n=Oc(null,function(o){return e.forEach(function(r){return dn(r,o)})});return Dc(function(){var o=Po.get(n);if(o){var r=new Set(o),s=new Set(e),a=n.current;r.forEach(function(i){s.has(i)||dn(i,null)}),s.forEach(function(i){r.has(i)||dn(i,a)})}Po.set(n,e)},[e]),n}function kc(e){return e}function Lc(e,t){t===void 0&&(t=kc);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,o);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(o=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){o=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var u=function(){var m=a;a=[],m.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(m){a.push(m),d()},filter:function(m){return a=a.filter(m),n}}}};return r}function Fc(e){e===void 0&&(e={});var t=Lc(null);return t.options=ye({async:!0,ssr:!1},e),t}var gr=function(e){var t=e.sideCar,n=vr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,ye({},n))};gr.isSideCarExport=!0;function zc(e,t){return e.useMedium(t),gr}var wr=Fc(),fn=function(){},Bt=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:fn,onWheelCapture:fn,onTouchMoveCapture:fn}),r=o[0],s=o[1],a=e.forwardProps,i=e.children,u=e.className,d=e.removeScrollBar,m=e.enabled,f=e.shards,v=e.sideCar,g=e.noRelative,w=e.noIsolation,p=e.inert,h=e.allowPinchZoom,y=e.as,_=y===void 0?"div":y,x=e.gapMode,b=vr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,E=jc([n,t]),C=ye(ye({},b),r);return c.createElement(c.Fragment,null,m&&c.createElement(S,{sideCar:wr,removeScrollBar:d,shards:f,noRelative:g,noIsolation:w,inert:p,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:x}),a?c.cloneElement(c.Children.only(i),ye(ye({},C),{ref:E})):c.createElement(_,ye({},C,{className:u,ref:E}),i))});Bt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bt.classNames={fullWidth:Mt,zeroRight:Tt};var Bc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $c(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Bc();return t&&e.setAttribute("nonce",t),e}function Wc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Vc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Hc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$c())&&(Wc(t,n),Vc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Uc=function(){var e=Hc();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},_r=function(){var e=Uc(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Kc={left:0,top:0,right:0,gap:0},pn=function(e){return parseInt(e||"",10)||0},Gc=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[pn(n),pn(o),pn(r)]},Yc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Kc;var t=Gc(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Xc=_r(),Xe="data-scroll-locked",qc=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(Nc,` {
3
- overflow: hidden `).concat(o,`;
4
- padding-right: `).concat(i,"px ").concat(o,`;
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`*{box-sizing:border-box;margin:0;padding:0}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;height:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:100%;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}:root{--focus-ring:2px solid color-mix(in srgb, var(--ring,#94a3b8) 50%, transparent);--focus-ring-offset:2px;--success:#21c45d;--warning:#f59f0a;--uzi-control-min-height:2.125rem;--uzi-control-radius:8px;--uzi-control-padding-y:6px;--uzi-control-padding-x:14px;--uzi-control-padding-x-compact:12px;--uzi-control-font-size:.85rem;--uzi-control-line-height:1.25rem;--uzi-control-shadow:0 1px 2px #00000014;--uzi-control-shadow-hover:0 2px 8px #0000001f;--uzi-menu-radius:.625rem;--uzi-menu-padding:.25rem;--uzi-menu-shadow:0 12px 32px #0000002e;--uzi-menu-item-radius:.5rem;--uzi-menu-item-gap:.5rem;--uzi-menu-item-padding-y:.5rem;--uzi-menu-item-padding-x:.625rem}:root,:root[data-uzi-theme=light],[data-uzi-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--background:#f9fafb;--foreground:#0f1729;--card:#fff;--card-foreground:#0f1729;--popover:#fff;--popover-foreground:#0f1729;--secondary:#ebeff5;--secondary-foreground:#0f1729;--muted:#ebeff5;--muted-foreground:#65758b;--accent:#e4eaf1;--accent-foreground:#0f1729;--destructive:#ef4343;--destructive-foreground:#fafafa;--border:#d7dfea;--input:#d7dfea;--panel:var(--card);--text:var(--foreground)}:root[data-uzi-theme=dark],[data-uzi-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--background:#0f172a;--foreground:#e2e8f0;--card:#111827;--card-foreground:#e2e8f0;--popover:#111827;--popover-foreground:#e2e8f0;--secondary:#152036;--secondary-foreground:#e2e8f0;--muted:#152036;--muted-foreground:#94a3b8;--accent:color-mix(in srgb, var(--primary) 12%, transparent);--uzi-control-shadow:inset 0 1px 0 #ffffff08, 0 1px 2px #0000002e;--uzi-control-shadow-hover:inset 0 1px 0 #ffffff0a, 0 2px 8px #0000003d;--accent-foreground:#e2e8f0;--destructive:#dc2828;--destructive-foreground:#fafafa;--border:#1f2937;--input:#1f2937;--panel:#111827;--surface-elevated:#0b1224;--surface-topbar:color-mix(in srgb, var(--background,#0b1224) 85%, transparent);--text:#e2e8f0}:root,:root[data-uzi-accent=blue],[data-uzi-accent=blue]{--primary:#2463eb;--primary-foreground:#f8fafc;--ring:#2463eb}:root[data-uzi-accent=cyan],[data-uzi-accent=cyan]{--primary:#07b9d5;--primary-foreground:#0f1729;--ring:#07b9d5}:root[data-uzi-accent=violet],[data-uzi-accent=violet]{--primary:#7c3bed;--primary-foreground:#f8fafc;--ring:#7c3bed}:root[data-uzi-accent=emerald],[data-uzi-accent=emerald]{--primary:#10b77f;--primary-foreground:#f8fafc;--ring:#10b77f}:root[data-uzi-accent=amber],[data-uzi-accent=amber]{--primary:#f59f0a;--primary-foreground:#0f1729;--ring:#f59f0a}:root[data-uzi-accent=rose],[data-uzi-accent=rose]{--primary:#dd1d4a;--primary-foreground:#f8fafc;--ring:#dd1d4a}.uzi-button-module__button__5dzDN{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:8px;font-family:inherit;font-weight:600;line-height:1;text-decoration:none;transition:opacity .15s,border-color .15s,color .15s,background .15s;display:inline-flex}.uzi-button-module__button__5dzDN:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.uzi-button-module__button__5dzDN svg{flex-shrink:0;width:1rem;height:1rem}.uzi-button-module__button__5dzDN:disabled{opacity:.45;cursor:not-allowed}.uzi-button-module__sizeSm__jb544{min-height:2rem;padding:6px 14px;font-size:.82rem}.uzi-button-module__sizeMd__lIo8M{min-height:2.25rem;padding:10px 22px;font-size:.95rem}.uzi-button-module__sizeLg__QSSuW{min-height:2.5rem;padding:12px 28px;font-size:1rem}.uzi-button-module__sizeIcon__Aa9tN{width:2.25rem;height:2.25rem;padding:0}.uzi-button-module__variantPrimary__zp2Pg{background:var(--ts-btn-primary-bg,var(--primary));color:var(--ts-btn-primary-text,var(--primary-foreground))}.uzi-button-module__variantPrimary__zp2Pg:hover:not(:disabled){opacity:.88}.uzi-button-module__variantSecondary__oX5CB{background:var(--ts-btn-secondary-bg,var(--secondary));color:var(--ts-btn-secondary-text,var(--secondary-foreground));border-color:var(--ts-btn-secondary-border,var(--border))}.uzi-button-module__variantSecondary__oX5CB:hover:not(:disabled){background:var(--ts-btn-secondary-hover-bg,color-mix(in srgb, var(--secondary) 90%, black))}.uzi-button-module__variantOutline__uXfiP{background:var(--ts-btn-outline-bg,var(--background));color:var(--ts-btn-outline-text,var(--foreground));border-color:var(--ts-btn-outline-border,var(--border))}.uzi-button-module__variantOutline__uXfiP:hover:not(:disabled){background:var(--ts-btn-outline-hover-bg,var(--accent));color:var(--ts-btn-outline-hover-text,var(--accent-foreground))}.uzi-button-module__variantGhost__-OEB8{color:var(--ts-btn-ghost-text,var(--muted-foreground));background:0 0;padding-left:8px;padding-right:8px}.uzi-button-module__variantGhost__-OEB8:hover:not(:disabled){background:var(--ts-btn-ghost-hover-bg,var(--accent));color:var(--ts-btn-ghost-hover-text,var(--accent-foreground))}.uzi-button-module__variantDestructive__5IeYA{background:var(--ts-btn-danger-bg,var(--destructive));color:var(--ts-btn-danger-text,var(--destructive-foreground))}.uzi-button-module__variantDestructive__5IeYA:hover:not(:disabled){opacity:.9}.uzi-button-module__variantLink__Olx4I{color:var(--ts-btn-link-text,var(--primary));background:0 0;border-color:#0000;border-radius:0;min-height:auto;padding:0}.uzi-button-module__variantLink__Olx4I:hover:not(:disabled){text-underline-offset:.2em;text-decoration:underline}.uzi-avatar-module__avatar__yPIOs{background:var(--ts-avatar-bg,var(--muted));color:var(--ts-avatar-fg,var(--muted-foreground));border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;overflow:hidden}.uzi-avatar-module__size-sm__v5riJ{width:1.75rem;height:1.75rem}.uzi-avatar-module__size-md__g7IQS{width:2rem;height:2rem}.uzi-avatar-module__size-lg__Ca4xk{width:2.25rem;height:2.25rem}.uzi-avatar-module__size-xl__K0Dfk{width:4rem;height:4rem}.uzi-avatar-module__image__Ngo7A{object-fit:cover;width:100%;height:100%}.uzi-avatar-module__fallback__Tf3oZ{border-radius:inherit;background:var(--ts-avatar-fallback-bg,var(--muted));width:100%;height:100%;color:var(--ts-avatar-fallback-fg,var(--muted-foreground));text-transform:uppercase;justify-content:center;align-items:center;font-size:.85rem;font-weight:700;line-height:1;display:flex}.uzi-card-module__card__ZPFTz{border-radius:var(--ts-card-radius,12px);border:1px solid var(--ts-card-border,var(--border));background:var(--ts-card-bg,var(--panel));color:var(--ts-card-fg,var(--foreground));box-shadow:var(--ts-card-shadow,0 16px 36px #00000047);padding:var(--ts-card-padding,16px);transition:transform .14s,box-shadow .14s,border-color .14s,background-color .14s;position:relative;overflow:visible}.uzi-card-module__tone-default__7Ujf9{--ts-card-bg:var(--panel);--ts-card-border:var(--border);--ts-card-shadow:0 16px 36px #00000047}.uzi-card-module__tone-muted__RQy5B{--ts-card-bg:var(--muted);--ts-card-border:var(--border);--ts-card-shadow:0 10px 26px #00000038}.uzi-card-module__tone-contrast__JpFxL{--ts-card-bg:var(--ts-card-contrast-bg,color-mix(in srgb, var(--background) 60%, black));--ts-card-border:var(--border);--ts-card-shadow:0 18px 50px #00000052}.uzi-card-module__interactive__zlPML{cursor:default}.uzi-card-module__interactive__zlPML:hover{border-color:var(--ts-card-hover-border,color-mix(in srgb, var(--primary) 40%, transparent));transform:translateY(-1px);box-shadow:0 22px 60px #00000052}.uzi-card-module__interactive__zlPML:focus-within{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.uzi-card-module__padding-none__LXdx-{--ts-card-padding:0}.uzi-card-module__padding-sm__-Ub1s{--ts-card-padding:10px}.uzi-card-module__padding-md__kUf46{--ts-card-padding:16px}.uzi-card-module__padding-lg__a5mWP{--ts-card-padding:20px}.uzi-pill-module__pill__uCKcP{border:1px solid var(--ts-pill-border,var(--border));background:var(--ts-pill-bg,color-mix(in srgb, var(--foreground) 4%, transparent));color:var(--ts-pill-fg,var(--muted-foreground));letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:12px;font-weight:700;line-height:1.2;display:inline-flex}.uzi-pill-module__size-sm__JANOQ{padding:3px 8px;font-size:11px}.uzi-pill-module__size-md__fdsqR{padding:4px 10px}.uzi-pill-module__tone-success__kW2Kf{color:var(--success);border-color:color-mix(in srgb, var(--success) 45%, transparent);background:color-mix(in srgb, var(--success) 12%, transparent)}.uzi-pill-module__tone-warning__Rc5-s{color:var(--warning);border-color:color-mix(in srgb, var(--warning) 45%, transparent);background:color-mix(in srgb, var(--warning) 12%, transparent)}.uzi-pill-module__tone-info__0vQrj{color:var(--primary);border-color:color-mix(in srgb, var(--primary) 50%, transparent);background:color-mix(in srgb, var(--primary) 12%, transparent)}.uzi-pill-module__tone-danger__gzNOa{color:var(--destructive);border-color:color-mix(in srgb, var(--destructive) 45%, transparent);background:color-mix(in srgb, var(--destructive) 12%, transparent)}.uzi-pill-module__icon__KQ8zg{justify-content:center;align-items:center;width:12px;height:12px;display:inline-flex}.uzi-pill-module__content__T7AG1{align-items:center;gap:4px;display:inline-flex}.uzi-modal-module__portalLayer__t7blc{z-index:100;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.uzi-modal-module__backdrop__IMd3b{background:#0000008c;position:absolute;inset:0}.uzi-modal-module__backdrop__IMd3b[data-state=open]{animation:.16s uzi-modal-module__backdropFadeIn__GNJdx}.uzi-modal-module__backdrop__IMd3b[data-state=closed]{animation:.14s uzi-modal-module__backdropFadeOut__R-3K5}.uzi-modal-module__overlayContent__0DtbP{z-index:1;outline:none;justify-content:center;align-items:center;max-width:100%;max-height:100%;display:flex;position:relative}.uzi-modal-module__overlayContent__0DtbP[data-state=open]{animation:.18s uzi-modal-module__modalContentIn__fub8M}.uzi-modal-module__overlayContent__0DtbP[data-state=closed]{animation:.14s uzi-modal-module__modalContentOut__elTJ3}.uzi-modal-module__modal__Mao59{background:var(--background);border:1px solid var(--border);border-radius:14px;flex-direction:column;gap:0;width:min(500px,100%);padding:24px;display:flex;box-shadow:0 24px 64px #0000008c}.uzi-modal-module__size-sm__Uu9je{width:min(380px,100%)}.uzi-modal-module__size-md__TiiWy{width:min(500px,100%)}.uzi-modal-module__size-lg__BrTIO{width:min(640px,100%)}.uzi-modal-module__size-xl__sj0mh{width:min(900px,100%)}.uzi-modal-module__header__PmCaO{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px;display:flex}.uzi-modal-module__titles__IboyQ{flex-direction:column;gap:3px;display:flex}.uzi-modal-module__title__Zd7pL{color:var(--foreground);font-size:16px;font-weight:700;line-height:1.3}.uzi-modal-module__subtitle__t-LRK{color:var(--muted-foreground);font-size:13px;line-height:1.4}.uzi-modal-module__closeButton__GTiZr{width:28px;height:28px;color:var(--muted-foreground);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:background .12s,color .12s;display:inline-flex}.uzi-modal-module__closeButton__GTiZr:hover{background:color-mix(in srgb, var(--foreground) 7%, transparent);color:var(--foreground)}.uzi-modal-module__closeButton__GTiZr:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.uzi-modal-module__body__km6FQ{flex-direction:column;gap:12px;display:flex}.uzi-modal-module__footer__jWLTv{gap:8px;margin-top:20px;display:flex}@keyframes uzi-modal-module__backdropFadeIn__GNJdx{0%{opacity:0}to{opacity:1}}@keyframes uzi-modal-module__backdropFadeOut__R-3K5{0%{opacity:1}to{opacity:0}}@keyframes uzi-modal-module__modalContentIn__fub8M{0%{opacity:0;transform:translateY(6px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes uzi-modal-module__modalContentOut__elTJ3{0%{opacity:1;transform:translateY(0)scale(1)}to{opacity:0;transform:translateY(4px)scale(.98)}}.uzi-alert-module__alert__7Bt6c{border:1px solid;border-radius:.375rem;align-items:flex-start;gap:.5rem;padding:.625rem .875rem;font-size:.875rem;line-height:1.5;display:flex}.uzi-alert-module__success__apdFG{border-color:color-mix(in srgb, var(--success) 35%, transparent);background:color-mix(in srgb, var(--success) 10%, transparent);color:color-mix(in srgb, var(--success) 90%, var(--foreground))}.uzi-alert-module__error__KLgi1{border-color:color-mix(in srgb, var(--destructive) 35%, transparent);background:color-mix(in srgb, var(--destructive) 10%, transparent);color:color-mix(in srgb, var(--destructive) 90%, var(--foreground))}.uzi-alert-module__warning__F4fpk{border-color:color-mix(in srgb, var(--warning) 35%, transparent);background:color-mix(in srgb, var(--warning) 10%, transparent);color:color-mix(in srgb, var(--warning) 90%, var(--foreground))}.uzi-alert-module__info__1IKHt{border-color:color-mix(in srgb, var(--primary) 35%, transparent);background:color-mix(in srgb, var(--primary) 10%, transparent);color:color-mix(in srgb, var(--primary) 90%, var(--foreground))}.uzi-toast-module__stack__SRrda{z-index:2147483000;pointer-events:none;flex-direction:column;gap:10px;display:flex;position:fixed}.uzi-toast-module__topRight__WiZzM{align-items:flex-end;top:16px;right:16px}.uzi-toast-module__topLeft__SzFS9{align-items:flex-start;top:16px;left:16px}.uzi-toast-module__topCenter__X5W-x{align-items:center;top:16px;left:50%;transform:translate(-50%)}.uzi-toast-module__bottomRight__DMtoS{align-items:flex-end;bottom:16px;right:16px}.uzi-toast-module__bottomLeft__ZZ7VF{align-items:flex-start;bottom:16px;left:16px}.uzi-toast-module__bottomCenter__QNJrM{align-items:center;bottom:16px;left:50%;transform:translate(-50%)}.uzi-toast-module__toast__HNUcj{pointer-events:auto;border:1px solid var(--toast-border,var(--border));background:var(--toast-bg,var(--popover));min-width:280px;max-width:min(420px,100vw - 32px);color:var(--toast-text,var(--popover-foreground));border-radius:10px;align-items:flex-start;gap:10px;padding:12px 12px 12px 14px;animation:.18s ease-out uzi-toast-module__toastSlideIn__BTXfm;display:flex;position:relative;overflow:hidden;box-shadow:0 8px 24px #0000001a,0 2px 6px #0000000f}.uzi-toast-module__toast__HNUcj:before{content:"";background:var(--toast-accent,transparent);border-radius:10px 0 0 10px;width:3px;position:absolute;top:0;bottom:0;left:0}.uzi-toast-module__toast__HNUcj[data-state=closed]{animation:.16s ease-in forwards uzi-toast-module__toastSlideOut__mBX-G}.uzi-toast-module__toast__HNUcj[data-swipe=move]{transform:translateX(var(--radix-toast-swipe-move-x))}.uzi-toast-module__toast__HNUcj[data-swipe=cancel]{transition:transform .18s ease-out;transform:translate(0)}.uzi-toast-module__toast__HNUcj[data-swipe=end]{animation:.16s ease-out forwards uzi-toast-module__toastSwipeOut__R-jk2}.uzi-toast-module__icon__LIAqr{width:18px;height:18px;color:var(--toast-accent,var(--foreground));flex-shrink:0;justify-content:center;align-items:center;margin-top:1px;display:flex}.uzi-toast-module__body__9vzs7{flex:1;gap:6px;min-width:0;display:grid}.uzi-toast-module__message__TBY65{word-break:break-word;font-size:14px;line-height:1.4}.uzi-toast-module__actions__Iykd9{flex-wrap:wrap;gap:6px;display:flex}.uzi-toast-module__actionButton__cvUr0{border:1px solid var(--toast-action-border,var(--border));background:var(--toast-action-bg,color-mix(in srgb, var(--foreground) 8%, transparent));color:var(--toast-text,var(--popover-foreground));cursor:pointer;border-radius:6px;padding:5px 10px;font-size:12px;font-weight:600;transition:background .12s}.uzi-toast-module__actionButton__cvUr0:hover{background:color-mix(in srgb, var(--toast-action-bg,var(--foreground)), var(--foreground) 10%)}.uzi-toast-module__controls__LqA4Q{flex-shrink:0;align-items:center;gap:2px;margin:-2px -2px -2px 0;display:flex}.uzi-toast-module__iconButton__FOsOp{width:22px;height:22px;color:var(--toast-text,var(--popover-foreground));opacity:.5;cursor:pointer;background:0 0;border:none;border-radius:5px;justify-content:center;align-items:center;padding:0;transition:opacity .12s,background .12s;display:flex}.uzi-toast-module__iconButton__FOsOp:hover{opacity:1;background:color-mix(in srgb, var(--foreground) 8%, transparent)}.uzi-toast-module__iconButtonError__NJsLX{opacity:1;color:var(--destructive)}.uzi-toast-module__iconButton__FOsOp:focus-visible,.uzi-toast-module__actionButton__cvUr0:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}@keyframes uzi-toast-module__toastSlideIn__BTXfm{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes uzi-toast-module__toastSlideOut__mBX-G{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-6px)}}@keyframes uzi-toast-module__toastSwipeOut__R-jk2{0%{opacity:1;transform:translateX(var(--radix-toast-swipe-end-x))}to{opacity:0;transform:translateX(calc(var(--radix-toast-swipe-end-x) * 1.05))}}.uzi-input-module__input__-ipHD{border:1px solid var(--ts-input-border,var(--input));background:var(--ts-input-bg,var(--background));width:100%;min-height:2.25rem;color:var(--ts-input-fg,var(--foreground));box-shadow:var(--ts-input-shadow,0 1px 2px #0000000a);border-radius:.5rem;padding:.25rem .75rem;font-size:.875rem;line-height:1.25rem;transition:border-color .15s,background .15s;display:flex}.uzi-input-module__input__-ipHD::placeholder{color:var(--ts-input-placeholder,var(--muted-foreground))}.uzi-input-module__input__-ipHD:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.uzi-input-module__input__-ipHD:disabled{cursor:not-allowed;opacity:.5}.uzi-label-module__label__gKflt{color:var(--ts-label-fg,inherit);font-size:.875rem;font-weight:500;line-height:1.2}.uzi-checkbox-module__checkbox__zAB1y{border:1px solid var(--ts-checkbox-border,var(--border));background:var(--ts-checkbox-bg,var(--background));width:1rem;height:1rem;accent-color:var(--ts-checkbox-accent,var(--primary));cursor:pointer;border-radius:.25rem;margin:0}.uzi-checkbox-module__checkbox__zAB1y:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.uzi-checkbox-module__checkbox__zAB1y:disabled{cursor:not-allowed;opacity:.5}.uzi-multi-select-module__wrapper__Izj2x{min-width:0;max-width:100%;display:inline-flex;position:relative}.uzi-multi-select-module__wrapperFullWidth__eH8pf{width:100%}.uzi-multi-select-module__trigger__r3816{width:100%;min-width:0;min-height:var(--uzi-control-min-height);border-radius:var(--uzi-control-radius);border:1px solid var(--ts-dropdown-border,var(--border));background:var(--ts-dropdown-bg,var(--panel));color:var(--ts-dropdown-text,var(--foreground));padding:var(--uzi-control-padding-y) var(--uzi-control-padding-x-compact) var(--uzi-control-padding-y) var(--uzi-control-padding-x);font-size:var(--uzi-control-font-size);line-height:var(--uzi-control-line-height);box-shadow:var(--uzi-control-shadow);cursor:pointer;text-align:left;justify-content:space-between;align-items:center;gap:.625rem;font-family:inherit;transition:border-color .15s,background .15s,color .15s,box-shadow .15s;display:inline-flex}.uzi-multi-select-module__trigger__r3816:hover:not(:disabled){border-color:var(--ts-dropdown-accent,var(--accent));box-shadow:var(--uzi-control-shadow-hover)}.uzi-multi-select-module__trigger__r3816:focus-visible,.uzi-multi-select-module__trigger__r3816[data-state=open]{border-color:var(--ts-dropdown-accent,var(--primary));outline:var(--focus-ring);outline-offset:var(--focus-ring-offset);box-shadow:0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent)}.uzi-multi-select-module__trigger__r3816:disabled{cursor:not-allowed;opacity:.6;box-shadow:none}.uzi-multi-select-module__value__PuUmG{flex-wrap:wrap;flex:1;align-items:center;gap:.375rem;min-width:0;display:flex}.uzi-multi-select-module__placeholder__dJIU-{color:var(--muted-foreground)}.uzi-multi-select-module__chip__46Ms-{border:1px solid color-mix(in srgb, var(--primary) 32%, transparent);background:color-mix(in srgb, var(--primary) 10%, transparent);max-width:100%;color:var(--ts-dropdown-text,var(--foreground));white-space:nowrap;border-radius:999px;align-items:center;padding:2px 8px;font-size:.75rem;font-weight:600;line-height:1.2;display:inline-flex}.uzi-multi-select-module__chipSummary__zLwi8{color:var(--primary)}.uzi-multi-select-module__chevron__SWK5l{width:10px;height:10px;color:var(--muted-foreground);flex-shrink:0;justify-content:center;align-items:center;transition:transform .15s,color .15s;display:flex}.uzi-multi-select-module__trigger__r3816:hover:not(:disabled) .uzi-multi-select-module__chevron__SWK5l,.uzi-multi-select-module__trigger__r3816[data-state=open] .uzi-multi-select-module__chevron__SWK5l{color:var(--ts-dropdown-text,var(--foreground))}.uzi-multi-select-module__trigger__r3816[data-state=open] .uzi-multi-select-module__chevron__SWK5l{transform:rotate(180deg)}.uzi-multi-select-module__menu__q8auA{z-index:50;border:1px solid var(--ts-menu-border,var(--border));border-radius:var(--uzi-menu-radius);background:var(--ts-menu-bg,var(--popover));min-width:100%;max-height:16rem;color:var(--ts-menu-fg,var(--popover-foreground));padding:var(--uzi-menu-padding);box-shadow:var(--uzi-menu-shadow);animation:.14s uzi-multi-select-module__menuFadeIn__Plo7-;position:absolute;top:calc(100% + 6px);left:0;overflow-y:auto}.uzi-multi-select-module__option__-Ioqk{align-items:center;gap:var(--uzi-menu-item-gap);border-radius:var(--uzi-menu-item-radius);width:100%;color:inherit;padding:var(--uzi-menu-item-padding-y) var(--uzi-menu-item-padding-x);font:inherit;cursor:pointer;text-align:left;background:0 0;border:none;transition:background .12s,color .12s;display:flex}.uzi-multi-select-module__option__-Ioqk:hover:not(:disabled),.uzi-multi-select-module__option__-Ioqk:focus-visible,.uzi-multi-select-module__option__-Ioqk[data-highlighted]{background:var(--ts-menu-hover-bg,var(--accent));color:var(--ts-menu-hover-fg,var(--accent-foreground));outline:none}.uzi-multi-select-module__optionDisabled__qtCi8,.uzi-multi-select-module__option__-Ioqk[data-disabled]{opacity:.5;cursor:not-allowed}.uzi-multi-select-module__optionSelected__74IO8 .uzi-multi-select-module__optionLabel__cVoN7{color:var(--primary)}.uzi-multi-select-module__indicator__NO-WE{border:1px solid var(--border);color:#0000;background:0 0;border-radius:.3125rem;flex-shrink:0;justify-content:center;align-items:center;width:1rem;height:1rem;transition:border-color .12s,background .12s,color .12s;display:inline-flex}.uzi-multi-select-module__indicatorSelected__9sEAy{border-color:color-mix(in srgb, var(--primary) 55%, transparent);background:color-mix(in srgb, var(--primary) 12%, transparent);color:var(--primary)}.uzi-multi-select-module__indicatorDisabled__vqdiH{opacity:.65}.uzi-multi-select-module__optionLabel__cVoN7{flex:1;min-width:0}@keyframes uzi-multi-select-module__menuFadeIn__Plo7-{0%{opacity:0;transform:translateY(-4px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.uzi-select-module__wrapper__7szq0{min-width:0;max-width:100%;display:inline-flex;position:relative}.uzi-select-module__wrapperFullWidth__IyOIG{width:100%}.uzi-select-module__wrapper__7szq0:not(.uzi-select-module__wrapperFullWidth__IyOIG) .uzi-select-module__trigger__ldh8w{width:auto}.uzi-select-module__trigger__ldh8w{width:100%;min-width:0;min-height:var(--uzi-control-min-height);border-radius:var(--uzi-control-radius);border:1px solid var(--ts-dropdown-border,var(--border));background:var(--ts-dropdown-bg,var(--panel));color:var(--ts-dropdown-text,var(--foreground));padding:var(--uzi-control-padding-y) var(--uzi-control-padding-x-compact) var(--uzi-control-padding-y) var(--uzi-control-padding-x);font-size:var(--uzi-control-font-size);line-height:var(--uzi-control-line-height);box-shadow:var(--uzi-control-shadow);cursor:pointer;text-align:left;justify-content:space-between;align-items:center;gap:.625rem;font-family:inherit;font-weight:500;transition:border-color .15s,background .15s,color .15s,box-shadow .15s;display:inline-flex}.uzi-select-module__value__FTUJh{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.uzi-select-module__trigger__ldh8w:hover:not(:disabled){border-color:var(--ts-dropdown-accent,var(--accent));box-shadow:var(--uzi-control-shadow-hover)}.uzi-select-module__trigger__ldh8w:focus-visible{border-color:var(--ts-dropdown-accent,var(--primary));outline:var(--focus-ring);outline-offset:var(--focus-ring-offset);box-shadow:0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent)}.uzi-select-module__trigger__ldh8w[data-placeholder]{color:var(--muted-foreground)}.uzi-select-module__trigger__ldh8w:disabled{cursor:not-allowed;opacity:.6;box-shadow:none}.uzi-select-module__chevron__U6HXS{width:10px;height:10px;color:var(--muted-foreground);flex-shrink:0;justify-content:center;align-items:center;transition:transform .15s,color .15s;display:flex;position:relative;top:-1px}.uzi-select-module__chevron__U6HXS svg{display:block}.uzi-select-module__trigger__ldh8w:hover:not(:disabled) .uzi-select-module__chevron__U6HXS,.uzi-select-module__trigger__ldh8w[data-state=open] .uzi-select-module__chevron__U6HXS{color:var(--ts-dropdown-text,var(--foreground))}.uzi-select-module__trigger__ldh8w[data-state=open] .uzi-select-module__chevron__U6HXS{transform:rotate(180deg)}.uzi-select-module__content__pOWWy{z-index:50;min-width:var(--radix-select-trigger-width);max-height:min(18rem, var(--radix-select-content-available-height));border:1px solid var(--ts-menu-border,var(--border));border-radius:var(--uzi-menu-radius);background:var(--ts-menu-bg,var(--popover));color:var(--ts-menu-fg,var(--popover-foreground));padding:var(--uzi-menu-padding);box-shadow:var(--uzi-menu-shadow);animation:.14s uzi-select-module__selectFadeIn__Z-yKX;overflow:hidden}.uzi-select-module__viewport__VGZM6{max-height:inherit;overflow-y:auto}.uzi-select-module__item__6uM6-{cursor:default;-webkit-user-select:none;user-select:none;align-items:center;gap:var(--uzi-menu-item-gap);border-radius:var(--uzi-menu-item-radius);width:100%;padding:var(--uzi-menu-item-padding-y) var(--uzi-menu-item-padding-x) var(--uzi-menu-item-padding-y) 2rem;outline:none;font-size:.875rem;line-height:1.25rem;display:flex;position:relative}.uzi-select-module__item__6uM6-[data-highlighted]{background:var(--ts-menu-hover-bg,var(--accent));color:var(--ts-menu-hover-fg,var(--accent-foreground))}.uzi-select-module__item__6uM6-[data-disabled]{pointer-events:none;opacity:.5}.uzi-select-module__item__6uM6-[data-state=checked]{color:var(--primary)}.uzi-select-module__indicator__ZHcg5{color:currentColor;justify-content:center;align-items:center;width:1rem;height:1rem;display:inline-flex;position:absolute;left:.625rem}.uzi-select-module__indicatorIcon__kOV2G{display:block}@keyframes uzi-select-module__selectFadeIn__Z-yKX{0%{opacity:0;transform:translateY(-4px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.uzi-dropdown-menu-module__content__n-ElH{z-index:50;min-width:8rem;max-height:var(--radix-dropdown-menu-content-available-height);border:1px solid var(--ts-menu-border,var(--border));border-radius:var(--uzi-menu-radius);background:var(--ts-menu-bg,var(--popover));color:var(--ts-menu-fg,var(--popover-foreground));padding:var(--uzi-menu-padding);box-shadow:var(--uzi-menu-shadow);transform-origin:var(--radix-dropdown-menu-content-transform-origin);animation:.14s uzi-dropdown-menu-module__menuFadeIn__ITxMo;overflow:hidden auto}.uzi-dropdown-menu-module__item__tBNtW{cursor:default;-webkit-user-select:none;user-select:none;align-items:center;gap:var(--uzi-menu-item-gap);border-radius:var(--uzi-menu-item-radius);width:100%;padding:var(--uzi-menu-item-padding-y) var(--uzi-menu-item-padding-x);outline:none;font-size:.875rem;line-height:1.25rem;display:flex;position:relative}.uzi-dropdown-menu-module__item__tBNtW[data-inset=true]{padding-left:2rem}.uzi-dropdown-menu-module__item__tBNtW[data-highlighted]{background:var(--ts-menu-hover-bg,var(--accent));color:var(--ts-menu-hover-fg,var(--accent-foreground))}.uzi-dropdown-menu-module__item__tBNtW[data-disabled]{pointer-events:none;opacity:.5}.uzi-dropdown-menu-module__itemDestructive__oWmKd{color:var(--ts-menu-danger,var(--destructive))}.uzi-dropdown-menu-module__itemDestructive__oWmKd[data-highlighted]{background:color-mix(in srgb, var(--destructive) 15%, transparent);color:var(--ts-menu-danger-fg,var(--destructive))}.uzi-dropdown-menu-module__insetItem__g7ONJ{padding-left:2rem}.uzi-dropdown-menu-module__indicator__5qwFh{color:currentColor;justify-content:center;align-items:center;width:1rem;height:1rem;display:inline-flex;position:absolute;left:.5rem}.uzi-dropdown-menu-module__indicatorIcon__nhJMw{display:block}.uzi-dropdown-menu-module__radioDot__GWUVT{background:currentColor;border-radius:999px;width:.5rem;height:.5rem;display:block}.uzi-dropdown-menu-module__label__sFnNR{padding:var(--uzi-menu-item-padding-y) var(--uzi-menu-item-padding-x);font-size:.875rem;font-weight:600;line-height:1.25rem}.uzi-dropdown-menu-module__label__sFnNR[data-inset=true]{padding-left:2rem}.uzi-dropdown-menu-module__separator__PgUob{background:var(--ts-menu-separator,var(--border));height:1px;margin:.25rem -.25rem}.uzi-dropdown-menu-module__chevron__kxfiF{flex-shrink:0;margin-left:auto}@keyframes uzi-dropdown-menu-module__menuFadeIn__ITxMo{0%{opacity:0;transform:translateY(-4px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.uzi-theme-toggle-button-module__withLabel__KqtDj{padding-left:12px;padding-right:12px}.uzi-top-bar-module__topBar__MJ-7S{z-index:30;border-bottom:1px solid var(--ts-topbar-border,var(--border));background:var(--ts-topbar-bg,color-mix(in srgb, var(--background) 92%, transparent));box-shadow:var(--ts-topbar-shadow,0 1px 2px #0000000f);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);position:sticky;top:0}.uzi-top-bar-module__topBarStatic__JvEwt{position:relative}.uzi-top-bar-module__topBarInner__PBbi8{min-height:4.25rem;padding:env(safe-area-inset-top,0) 1rem 0 1rem;justify-content:space-between;align-items:center;gap:1rem;display:flex}.uzi-top-bar-module__topBarStart__DrdN2{flex:auto;align-items:center;gap:.875rem;min-width:0;display:flex}.uzi-top-bar-module__topBarBrand__80VV3{min-width:0;color:var(--ts-topbar-brand-fg,var(--foreground));align-items:center;gap:.625rem;text-decoration:none;display:inline-flex}.uzi-top-bar-module__topBarBrandContent__O4Uto{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.uzi-top-bar-module__topBarCenter__Kwxg-{flex:0 auto;justify-content:center;align-items:center;min-width:0;display:flex}.uzi-top-bar-module__topBarCenterGroup__7Ishp{align-items:center;gap:1rem;min-width:0;display:inline-flex}.uzi-top-bar-module__topBarActions__mgMd8{flex:auto;justify-content:flex-end;align-items:center;gap:.75rem;min-width:0;display:flex}@media (width<=768px){.uzi-top-bar-module__topBarInner__PBbi8{min-height:4rem;padding-left:max(.75rem, env(safe-area-inset-left));padding-right:max(.75rem, env(safe-area-inset-right));gap:.75rem}.uzi-top-bar-module__topBarStart__DrdN2{gap:.75rem}.uzi-top-bar-module__topBarActions__mgMd8{gap:.5rem}}.uzi-app-shell-module__appShell__S0cVI{grid-template-rows:calc(var(--app-shell-topbar-height,64px) + env(safe-area-inset-top)) 1fr;grid-template-columns:var(--app-shell-sidebar-width,240px) 1fr;height:100dvh;display:grid}.uzi-app-shell-module__appShellAnimated__-CRIl{transition:grid-template-columns .2s}.uzi-app-shell-module__appShell__S0cVI.uzi-app-shell-module__appShellOpen__1rZUl{grid-template-columns:var(--app-shell-sidebar-width,240px) 1fr}.uzi-app-shell-module__appShell__S0cVI.uzi-app-shell-module__appShellCollapsed__fSasN{grid-template-columns:0 1fr}.uzi-app-shell-module__appShellTopbar__rgXsW{--ts-topbar-bg:var(--surface-topbar,color-mix(in srgb, var(--background) 92%, transparent));--ts-topbar-border:var(--border);--ts-topbar-brand-fg:var(--foreground);min-height:calc(var(--app-shell-topbar-height,64px) + env(safe-area-inset-top));box-shadow:none;grid-column:1/-1;padding-left:0;padding-right:0}.uzi-app-shell-module__appShellTopbarLeft__-EVuB{flex:1;align-items:center;gap:12px;min-width:0;display:flex}.uzi-app-shell-module__appShellTopbarStart__XXQpq{flex:1;align-items:center;min-width:0;display:flex}.uzi-app-shell-module__appShellTopbarRight__l1G57{flex-shrink:0;align-items:center;gap:8px;min-width:0;display:flex}.uzi-app-shell-module__appShellTopbarRight__l1G57>*{min-width:0}.uzi-app-shell-module__appShellBrand__TXwyN{color:var(--foreground);text-overflow:ellipsis;white-space:nowrap;align-items:center;min-width:0;font-size:26px;text-decoration:none;display:flex;overflow:hidden}.uzi-app-shell-module__appShellHamburger__BciFA{width:40px;height:40px;color:var(--foreground);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;padding:0;transition:background .12s;display:inline-flex}.uzi-app-shell-module__appShellHamburger__BciFA:hover{background:var(--accent)}.uzi-app-shell-module__appShellHamburger__BciFA:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.uzi-app-shell-module__appShellHamburger__BciFA svg{width:28px;height:28px}.uzi-app-shell-module__appShellSidebar__oY7uj{border-right:1px solid var(--border);background:var(--panel);padding:24px;overflow-y:auto}.uzi-app-shell-module__appShellAnimated__-CRIl .uzi-app-shell-module__appShellSidebar__oY7uj{transition:transform .2s,opacity .2s}.uzi-app-shell-module__appShell__S0cVI.uzi-app-shell-module__appShellCollapsed__fSasN .uzi-app-shell-module__appShellSidebar__oY7uj{opacity:0;pointer-events:none;transform:translate(-110%)}.uzi-app-shell-module__appShellMain__eHP2r{flex:1 1 0;min-height:0;overflow-y:auto}.uzi-app-shell-module__appShellBackdrop__y31xs{display:none}@media (width<=960px){.uzi-app-shell-module__appShellBackdrop__y31xs{inset:0;top:calc(var(--app-shell-topbar-height,56px) + env(safe-area-inset-top));z-index:14;background:#00000080;display:block;position:fixed}.uzi-app-shell-module__appShell__S0cVI{--app-shell-topbar-height:56px;grid-template-columns:1fr;grid-template-rows:calc(var(--app-shell-topbar-height,56px) + env(safe-area-inset-top)) 1fr}.uzi-app-shell-module__appShell__S0cVI.uzi-app-shell-module__appShellOpen__1rZUl,.uzi-app-shell-module__appShell__S0cVI.uzi-app-shell-module__appShellCollapsed__fSasN{grid-template-columns:1fr}.uzi-app-shell-module__appShellSidebar__oY7uj{top:calc(var(--app-shell-topbar-height,56px) + env(safe-area-inset-top));width:var(--app-shell-sidebar-width,240px);background:var(--panel);z-index:15;max-width:80vw;padding:16px 12px;display:block;position:fixed;bottom:0;left:0;transform:translate(-105%);box-shadow:0 20px 40px #00000059}.uzi-app-shell-module__appShellSidebar__oY7uj.uzi-app-shell-module__appShellSidebarOpen__Z5AIo{transform:translate(0)}.uzi-app-shell-module__appShellTopbar__rgXsW{padding-left:max(12px, env(safe-area-inset-left));padding-right:max(12px, env(safe-area-inset-right));gap:10px}.uzi-app-shell-module__appShellTopbarLeft__-EVuB{flex:1;gap:10px}.uzi-app-shell-module__appShellTopbarStart__XXQpq{min-width:0}.uzi-app-shell-module__appShellTopbarRight__l1G57{gap:6px}.uzi-app-shell-module__appShellBrand__TXwyN{max-width:50vw;font-size:24px}.uzi-app-shell-module__appShellHamburger__BciFA{border-radius:8px;width:40px;height:40px}.uzi-app-shell-module__appShellHamburger__BciFA svg{width:24px;height:24px}}@media (width<=640px){.uzi-app-shell-module__appShellTopbar__rgXsW{gap:8px}.uzi-app-shell-module__appShellBrand__TXwyN{max-width:34vw;font-size:22px}.uzi-app-shell-module__appShellTopbarRight__l1G57{max-width:44vw}}@media (width<=480px){.uzi-app-shell-module__appShellBrand__TXwyN{max-width:30vw;font-size:20px}}.uzi-sidebar-nav-module__sidebarNav__eUI5c{--sidebar-nav-icon-size:18px;--sidebar-nav-icon-size-mobile:16px;flex-direction:column;align-items:stretch;gap:12px;min-height:0;display:flex}.uzi-sidebar-nav-module__sidebarNavCollapsed__xTM9s{gap:10px}.uzi-sidebar-nav-module__header__Y4NLy,.uzi-sidebar-nav-module__footer__GjWky{flex-direction:column;gap:8px;display:flex}.uzi-sidebar-nav-module__footer__GjWky{border-top:1px solid var(--border);margin-top:auto;padding-top:12px}.uzi-sidebar-nav-module__sections__mXuGQ{flex-direction:column;flex:auto;gap:14px;display:flex}.uzi-sidebar-nav-module__section__yjtCY,.uzi-sidebar-nav-module__sectionItems__tNcph{flex-direction:column;gap:8px;display:flex}.uzi-sidebar-nav-module__sectionLabel__Wx94m{letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground);opacity:.75;padding:0 10px;font-size:11px;font-weight:700}.uzi-sidebar-nav-module__item__uMHkJ{color:var(--foreground);box-shadow:none;grid-template-columns:var(--sidebar-nav-icon-size) minmax(0, 1fr);text-align:left;box-sizing:border-box;background:0 0;border:none;border-radius:10px;align-items:center;column-gap:10px;width:100%;padding:10px 12px 10px 10px;font-size:14px;line-height:1.2;text-decoration:none;transition:background .12s,color .12s;display:grid}button.uzi-sidebar-nav-module__item__uMHkJ{cursor:pointer;font-family:inherit}.uzi-sidebar-nav-module__item__uMHkJ:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.uzi-sidebar-nav-module__item__uMHkJ:hover{background:color-mix(in srgb, var(--primary) 10%, transparent)}.uzi-sidebar-nav-module__item__uMHkJ.uzi-sidebar-nav-module__itemActive__wBbiS{background:color-mix(in srgb, var(--primary) 18%, transparent);color:var(--foreground);font-weight:700}.uzi-sidebar-nav-module__itemCollapsed__jLJN-{grid-template-columns:1fr;justify-items:center;padding-left:10px;padding-right:10px}.uzi-sidebar-nav-module__itemDisabled__Yf8Il{opacity:.5;cursor:not-allowed}.uzi-sidebar-nav-module__icon__tyrUg{width:var(--sidebar-nav-icon-size);height:var(--sidebar-nav-icon-size);min-width:var(--sidebar-nav-icon-size);color:var(--muted-foreground);vertical-align:middle;justify-content:center;align-items:center;display:inline-flex}.uzi-sidebar-nav-module__icon__tyrUg>*{max-width:100%;max-height:100%;width:100%!important;height:100%!important}.uzi-sidebar-nav-module__icon__tyrUg :where(svg){stroke:currentColor;width:100%;height:100%;display:block}.uzi-sidebar-nav-module__item__uMHkJ.uzi-sidebar-nav-module__itemActive__wBbiS .uzi-sidebar-nav-module__icon__tyrUg{color:var(--primary)}.uzi-sidebar-nav-module__itemBody__wI0iy{flex-direction:column;flex:auto;gap:3px;min-width:0;display:flex;overflow:hidden}.uzi-sidebar-nav-module__labelRow__D8sEJ{align-items:center;gap:8px;min-width:0;display:flex}.uzi-sidebar-nav-module__label__A-nt6{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.uzi-sidebar-nav-module__description__Xf3Si{color:var(--muted-foreground);font-size:12px;line-height:1.35}.uzi-sidebar-nav-module__badge__-hnFd{border:1px solid var(--border);background:color-mix(in srgb, var(--foreground) 4%, transparent);color:var(--muted-foreground);letter-spacing:.04em;text-transform:uppercase;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:4px 8px;font-size:11px;display:inline-flex}@media (width<=960px){.uzi-sidebar-nav-module__sidebarNav__eUI5c{gap:10px}.uzi-sidebar-nav-module__sections__mXuGQ{gap:12px}.uzi-sidebar-nav-module__sectionItems__tNcph{gap:6px}.uzi-sidebar-nav-module__item__uMHkJ{grid-template-columns:var(--sidebar-nav-icon-size-mobile) minmax(0, 1fr);border-radius:9px;column-gap:8px;padding:9px 10px 9px 8px;font-size:14px}.uzi-sidebar-nav-module__icon__tyrUg{width:var(--sidebar-nav-icon-size-mobile);height:var(--sidebar-nav-icon-size-mobile);min-width:var(--sidebar-nav-icon-size-mobile)}.uzi-sidebar-nav-module__icon__tyrUg :where(svg){width:var(--sidebar-nav-icon-size-mobile);height:var(--sidebar-nav-icon-size-mobile)}.uzi-sidebar-nav-module__description__Xf3Si{font-size:11px}}@media (width<=480px){.uzi-sidebar-nav-module__item__uMHkJ{padding:8px 9px 8px 7px;font-size:13px}}.uzi-skeleton-module__skeleton__fula5{background:color-mix(in srgb, var(--muted-foreground) 14%, var(--background));animation:1.6s ease-in-out infinite uzi-skeleton-module__skeleton-pulse__Yp45W}@keyframes uzi-skeleton-module__skeleton-pulse__Yp45W{0%,to{opacity:1}50%{opacity:.45}}.uzi-skeleton-module__radius-sm__FdccD{border-radius:4px}.uzi-skeleton-module__radius-md__zH3RE{border-radius:8px}.uzi-skeleton-module__radius-lg__YVrHw{border-radius:12px}.uzi-skeleton-module__radius-full__5o2m0{border-radius:9999px}.uzi-progress-module__track__gM0oV{background:color-mix(in srgb, var(--border) 60%, transparent);border-radius:9999px;height:8px;overflow:hidden}.uzi-progress-module__fill__aLAbp{border-radius:9999px;height:100%;transition:width .4s}.uzi-progress-module__tone-default__fhf7o{background:var(--foreground)}.uzi-progress-module__tone-success__FsGHD{background:var(--success)}.uzi-progress-module__tone-warning__UAttL{background:var(--warning)}.uzi-progress-module__tone-danger__-L-Ee{background:var(--destructive)}.uzi-segmented-toggle-module__track__M4fjm{border:1px solid var(--border);background:var(--card);border-radius:999px;gap:2px;padding:4px;display:inline-flex;box-shadow:0 1px 3px #0000000f}.uzi-segmented-toggle-module__option__7cEZJ{font-size:var(--uzi-control-font-size);font-weight:500;line-height:var(--uzi-control-line-height);color:var(--muted-foreground);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;padding:6px 16px;transition:color .12s,background .12s;display:inline-flex}.uzi-segmented-toggle-module__label__bDAIv{justify-content:center;align-items:center;display:inline-flex}.uzi-segmented-toggle-module__option__7cEZJ:hover:not([aria-checked=true]):not(:disabled){color:var(--foreground)}.uzi-segmented-toggle-module__option__7cEZJ[aria-checked=true]{background:var(--foreground);color:var(--background)}.uzi-segmented-toggle-module__option__7cEZJ:disabled{cursor:not-allowed;opacity:.5}.uzi-segmented-toggle-module__option__7cEZJ:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require("react"),u=c(l,1);l=c(l);let d=require("react/jsx-runtime"),f=require("react-dom");f=c(f,1);function p(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function m(...e){return t=>{let n=!1,r=e.map(e=>{let r=p(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():p(e[t],null)}}}}function h(...e){return u.useCallback(m(...e),e)}var g=Symbol.for(`react.lazy`),_=u.use;function v(e){return typeof e==`object`&&!!e&&`then`in e}function y(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===g&&`_payload`in e&&v(e._payload)}function b(e){let t=S(e),n=u.forwardRef((e,n)=>{let{children:r,...i}=e;y(r)&&typeof _==`function`&&(r=_(r._payload));let a=u.Children.toArray(r),o=a.find(w);if(o){let e=o.props.children,r=a.map(t=>t===o?u.Children.count(e)>1?u.Children.only(null):u.isValidElement(e)?e.props.children:null:t);return(0,d.jsx)(t,{...i,ref:n,children:u.isValidElement(e)?u.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var x=b(`Slot`);function S(e){let t=u.forwardRef((e,t)=>{let{children:n,...r}=e;if(y(n)&&typeof _==`function`&&(n=_(n._payload)),u.isValidElement(n)){let e=E(n),i=T(r,n.props);return n.type!==u.Fragment&&(i.ref=t?m(t,e):e),u.cloneElement(n,i)}return u.Children.count(n)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var C=Symbol(`radix.slottable`);function w(e){return u.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===C}function T(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function E(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function D(...e){return e.filter(Boolean).join(` `)}var O={button:`uzi-button-module__button__5dzDN`,sizeSm:`uzi-button-module__sizeSm__jb544`,sizeMd:`uzi-button-module__sizeMd__lIo8M`,sizeLg:`uzi-button-module__sizeLg__QSSuW`,sizeIcon:`uzi-button-module__sizeIcon__Aa9tN`,variantPrimary:`uzi-button-module__variantPrimary__zp2Pg`,variantSecondary:`uzi-button-module__variantSecondary__oX5CB`,variantOutline:`uzi-button-module__variantOutline__uXfiP`,variantGhost:`uzi-button-module__variantGhost__-OEB8`,variantDestructive:`uzi-button-module__variantDestructive__5IeYA`,variantLink:`uzi-button-module__variantLink__Olx4I`},k={default:`variantPrimary`,primary:`variantPrimary`,secondary:`variantSecondary`,outline:`variantOutline`,ghost:`variantGhost`,destructive:`variantDestructive`,link:`variantLink`},A={default:`sizeMd`,sm:`sizeSm`,md:`sizeMd`,lg:`sizeLg`,icon:`sizeIcon`};function j({as:e,variant:t=`default`,size:n=`default`,className:r,children:i,asChild:a=!1,...o}){let s=D(O.button,O[k[t]],O[A[n]],r);return a?(0,d.jsx)(x,{className:s,...o,children:i}):e===`a`?(0,d.jsx)(`a`,{className:s,...o,children:i}):(0,d.jsx)(`button`,{type:`button`,className:s,...o,children:i})}function M(e,t=[]){let n=[];function r(t,r){let i=u.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=u.useMemo(()=>o,Object.values(o));return(0,d.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=u.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>u.createContext(e));return function(n){let r=n?.[e]||t;return u.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,N(i,...t)]}function N(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function P(e){let t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...e)=>t.current?.(...e),[])}var F=globalThis?.document?u.useLayoutEffect:()=>{},ee=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=b(`Primitive.${t}`),r=u.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,d.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),I=o((e=>{var t=require("react");function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),te=o((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function n(e,t){d||a.startTransition===void 0||(d=!0,console.error(`You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.`));var n=t();if(!f){var i=t();o(n,i)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),f=!0)}i=s({inst:{value:n,getSnapshot:t}});var p=i[0].inst,m=i[1];return l(function(){p.value=n,p.getSnapshot=t,r(p)&&m({inst:p})},[e,n,t]),c(function(){return r(p)&&m({inst:p}),e(function(){r(p)&&m({inst:p})})},[e]),u(n),n}function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch{return!0}}function i(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=require("react"),o=typeof Object.is==`function`?Object.is:t,s=a.useState,c=a.useEffect,l=a.useLayoutEffect,u=a.useDebugValue,d=!1,f=!1,p=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?i:n;e.useSyncExternalStore=a.useSyncExternalStore===void 0?p:a.useSyncExternalStore,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),ne=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=I():t.exports=te()}))();function re(){return(0,ne.useSyncExternalStore)(ie,()=>!0,()=>!1)}function ie(){return()=>{}}var ae=`Avatar`,[oe,se]=M(ae),[ce,le]=oe(ae),ue=u.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=u.useState(`idle`);return(0,d.jsx)(ce,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,d.jsx)(ee.span,{...r,ref:t})})});ue.displayName=ae;var de=`AvatarImage`,fe=u.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=le(de,n),s=ge(r,a),c=P(e=>{i(e),o.onImageLoadingStatusChange(e)});return F(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,d.jsx)(ee.img,{...a,ref:t,src:r}):null});fe.displayName=de;var pe=`AvatarFallback`,me=u.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=le(pe,n),[o,s]=u.useState(r===void 0);return u.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,d.jsx)(ee.span,{...i,ref:t}):null});me.displayName=pe;function he(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function ge(e,{referrerPolicy:t,crossOrigin:n}){let r=re(),i=u.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=u.useState(()=>he(a,e));return F(()=>{s(he(a,e))},[a,e]),F(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var _e=ue,ve=fe,ye=me,be={avatar:`uzi-avatar-module__avatar__yPIOs`,"size-sm":`uzi-avatar-module__size-sm__v5riJ`,"size-md":`uzi-avatar-module__size-md__g7IQS`,"size-lg":`uzi-avatar-module__size-lg__Ca4xk`,"size-xl":`uzi-avatar-module__size-xl__K0Dfk`,image:`uzi-avatar-module__image__Ngo7A`,fallback:`uzi-avatar-module__fallback__Tf3oZ`};function xe({className:e,size:t=`md`,...n}){let r=t===`sm`?be[`size-sm`]:t===`lg`?be[`size-lg`]:t===`xl`?be[`size-xl`]:be[`size-md`];return(0,d.jsx)(_e,{className:D(be.avatar,r,e),...n})}function Se({className:e,...t}){return(0,d.jsx)(ve,{className:D(be.image,e),...t})}function Ce({className:e,...t}){return(0,d.jsx)(ye,{className:D(be.fallback,e),...t})}var we={card:`uzi-card-module__card__ZPFTz`,"tone-default":`uzi-card-module__tone-default__7Ujf9`,"tone-muted":`uzi-card-module__tone-muted__RQy5B`,"tone-contrast":`uzi-card-module__tone-contrast__JpFxL`,interactive:`uzi-card-module__interactive__zlPML`,"padding-none":`uzi-card-module__padding-none__LXdx-`,"padding-sm":`uzi-card-module__padding-sm__-Ub1s`,"padding-md":`uzi-card-module__padding-md__kUf46`,"padding-lg":`uzi-card-module__padding-lg__a5mWP`};function Te({as:e,tone:t=`default`,padding:n=`md`,interactive:r=!1,className:i,children:a,...o}){let s=e??`div`,c={default:null,muted:`tone-muted`,contrast:`tone-contrast`};return(0,d.jsx)(s,{className:D(we.card,c[t]?we[c[t]]:null,we[{none:`padding-none`,sm:`padding-sm`,md:`padding-md`,lg:`padding-lg`}[n]],r&&we.interactive,i),...o,children:a})}var Ee={pill:`uzi-pill-module__pill__uCKcP`,"size-sm":`uzi-pill-module__size-sm__JANOQ`,"size-md":`uzi-pill-module__size-md__fdsqR`,"tone-success":`uzi-pill-module__tone-success__kW2Kf`,"tone-warning":`uzi-pill-module__tone-warning__Rc5-s`,"tone-info":`uzi-pill-module__tone-info__0vQrj`,"tone-danger":`uzi-pill-module__tone-danger__gzNOa`,icon:`uzi-pill-module__icon__KQ8zg`,content:`uzi-pill-module__content__T7AG1`};function De({as:e,tone:t=`neutral`,size:n=`md`,icon:r,className:i,children:a,...o}){return(0,d.jsxs)(e??`span`,{className:D(Ee.pill,Ee[`tone-${t}`],Ee[`size-${n}`],i),...o,children:[r?(0,d.jsx)(`span`,{className:Ee.icon,"aria-hidden":`true`,children:r}):null,(0,d.jsx)(`span`,{className:Ee.content,children:a})]})}typeof window<`u`&&window.document&&window.document.createElement;function L(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Oe(e,t){let n=u.createContext(t),r=e=>{let{children:t,...r}=e,i=u.useMemo(()=>r,Object.values(r));return(0,d.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=u.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function ke(e,t=[]){let n=[];function r(t,r){let i=u.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=u.useMemo(()=>o,Object.values(o));return(0,d.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=u.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>u.createContext(e));return function(n){let r=n?.[e]||t;return u.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Ae(i,...t)]}function Ae(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var je=u.useId||(()=>void 0),Me=0;function R(e){let[t,n]=u.useState(je());return F(()=>{e||n(e=>e??String(Me++))},[e]),e||(t?`radix-${t}`:``)}var Ne=u.useInsertionEffect||F;function Pe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Fe({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=u.useRef(e!==void 0);u.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,u.useCallback(t=>{if(s){let n=Ie(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Fe({defaultProp:e,onChange:t}){let[n,r]=u.useState(e),i=u.useRef(n),a=u.useRef(t);return Ne(()=>{a.current=t},[t]),u.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Ie(e){return typeof e==`function`}function Le(e){let t=Re(e),n=u.forwardRef((e,n)=>{let{children:r,...i}=e,a=u.Children.toArray(r),o=a.find(Be);if(o){let e=o.props.children,r=a.map(t=>t===o?u.Children.count(e)>1?u.Children.only(null):u.isValidElement(e)?e.props.children:null:t);return(0,d.jsx)(t,{...i,ref:n,children:u.isValidElement(e)?u.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Re(e){let t=u.forwardRef((e,t)=>{let{children:n,...r}=e;if(u.isValidElement(n)){let e=He(n),i=Ve(r,n.props);return n.type!==u.Fragment&&(i.ref=t?m(t,e):e),u.cloneElement(n,i)}return u.Children.count(n)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ze=Symbol(`radix.slottable`);function Be(e){return u.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ze}function Ve(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function He(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var z=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Le(`Primitive.${t}`),r=u.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,d.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ue(e,t){e&&f.flushSync(()=>e.dispatchEvent(t))}function We(e,t=globalThis?.document){let n=P(e);u.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Ge=`DismissableLayer`,Ke=`dismissableLayer.update`,qe=`dismissableLayer.pointerDownOutside`,Je=`dismissableLayer.focusOutside`,Ye,Xe=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ze=u.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=u.useContext(Xe),[f,p]=u.useState(null),m=f?.ownerDocument??globalThis?.document,[,g]=u.useState({}),_=h(t,e=>p(e)),v=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),x=f?v.indexOf(f):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,w=et(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!C||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},m),T=tt(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},m);return We(e=>{x===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},m),u.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ye=m.body.style.pointerEvents,m.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),nt(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ye)}},[f,m,n,l]),u.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),nt())},[f,l]),u.useEffect(()=>{let e=()=>g({});return document.addEventListener(Ke,e),()=>document.removeEventListener(Ke,e)},[]),(0,d.jsx)(z.div,{...c,ref:_,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:L(e.onFocusCapture,T.onFocusCapture),onBlurCapture:L(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,w.onPointerDownCapture)})});Ze.displayName=Ge;var Qe=`DismissableLayerBranch`,$e=u.forwardRef((e,t)=>{let n=u.useContext(Xe),r=u.useRef(null),i=h(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(z.div,{...e,ref:i})});$e.displayName=Qe;function et(e,t=globalThis?.document){let n=P(e),r=u.useRef(!1),i=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){rt(qe,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tt(e,t=globalThis?.document){let n=P(e),r=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!r.current&&rt(Je,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function nt(){let e=new CustomEvent(Ke);document.dispatchEvent(e)}function rt(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ue(i,a):i.dispatchEvent(a)}var it=Ze,at=$e,ot=`focusScope.autoFocusOnMount`,st=`focusScope.autoFocusOnUnmount`,ct={bubbles:!1,cancelable:!0},lt=`FocusScope`,ut=u.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=u.useState(null),l=P(i),f=P(a),p=u.useRef(null),m=h(t,e=>c(e)),g=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let e=function(e){if(g.paused||!s)return;let t=e.target;s.contains(t)?p.current=t:_t(p.current,{select:!0})},t=function(e){if(g.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||_t(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&_t(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,g.paused]),u.useEffect(()=>{if(s){vt.add(g);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(ot,ct);s.addEventListener(ot,l),s.dispatchEvent(t),t.defaultPrevented||(dt(xt(pt(s)),{select:!0}),document.activeElement===e&&_t(s))}return()=>{s.removeEventListener(ot,l),setTimeout(()=>{let t=new CustomEvent(st,ct);s.addEventListener(st,f),s.dispatchEvent(t),t.defaultPrevented||_t(e??document.body,{select:!0}),s.removeEventListener(st,f),vt.remove(g)},0)}}},[s,l,f,g]);let _=u.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=ft(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&_t(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&_t(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,d.jsx)(z.div,{tabIndex:-1,...o,ref:m,onKeyDown:_})});ut.displayName=lt;function dt(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(_t(r,{select:t}),document.activeElement!==n)return}function ft(e){let t=pt(e);return[mt(t,e),mt(t.reverse(),e)]}function pt(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mt(e,t){for(let n of e)if(!ht(n,{upTo:t}))return n}function ht(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 gt(e){return e instanceof HTMLInputElement&&`select`in e}function _t(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gt(e)&&t&&e.select()}}var vt=yt();function yt(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=bt(e,t),e.unshift(t)},remove(t){e=bt(e,t),e[0]?.resume()}}}function bt(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function xt(e){return e.filter(e=>e.tagName!==`A`)}var St=`Portal`,Ct=u.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=u.useState(!1);F(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?f.default.createPortal((0,d.jsx)(z.div,{...r,ref:t}),o):null});Ct.displayName=St;function wt(e,t){return u.useReducer((e,n)=>t[e][n]??e,e)}var Tt=e=>{let{present:t,children:n}=e,r=Et(t),i=typeof n==`function`?n({present:r.isPresent}):u.Children.only(n),a=h(r.ref,Ot(i));return typeof n==`function`||r.isPresent?u.cloneElement(i,{ref:a}):null};Tt.displayName=`Presence`;function Et(e){let[t,n]=u.useState(),r=u.useRef(null),i=u.useRef(e),a=u.useRef(`none`),[o,s]=wt(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return u.useEffect(()=>{let e=Dt(r.current);a.current=o===`mounted`?e:`none`},[o]),F(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Dt(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),F(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Dt(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Dt(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:u.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Dt(e){return e?.animationName||`none`}function Ot(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var kt=0;function At(){u.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??jt()),document.body.insertAdjacentElement(`beforeend`,e[1]??jt()),kt++,()=>{kt===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),kt--}},[])}function jt(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Mt=function(){return Mt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Mt.apply(this,arguments)};function Nt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Pt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ft=`right-scroll-bar-position`,It=`width-before-scroll-bar`,Lt=`with-scroll-bars-hidden`,Rt=`--removed-body-scroll-bar-size`;function zt(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Bt(e,t){var n=(0,l.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Vt=typeof window<`u`?l.useLayoutEffect:l.useEffect,Ht=new WeakMap;function Ut(e,t){var n=Bt(t||null,function(t){return e.forEach(function(e){return zt(e,t)})});return Vt(function(){var t=Ht.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||zt(e,null)}),i.forEach(function(e){r.has(e)||zt(e,a)})}Ht.set(n,e)},[e]),n}function Wt(e){return e}function Gt(e,t){t===void 0&&(t=Wt);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Kt(e){e===void 0&&(e={});var t=Gt(null);return t.options=Mt({async:!0,ssr:!1},e),t}var qt=function(e){var t=e.sideCar,n=Nt(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return l.createElement(r,Mt({},n))};qt.isSideCarExport=!0;function Jt(e,t){return e.useMedium(t),qt}var Yt=Kt(),Xt=function(){},Zt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:Xt,onWheelCapture:Xt,onTouchMoveCapture:Xt}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Nt(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=Ut([n,t]),w=Mt(Mt({},x),i);return l.createElement(l.Fragment,null,d&&l.createElement(S,{sideCar:Yt,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?l.cloneElement(l.Children.only(s),Mt(Mt({},w),{ref:C})):l.createElement(y,Mt({},w,{className:c,ref:C}),s))});Zt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Zt.classNames={fullWidth:It,zeroRight:Ft};var Qt,$t=function(){if(Qt)return Qt;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function en(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=$t();return t&&e.setAttribute(`nonce`,t),e}function tn(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function nn(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var rn=function(){var e=0,t=null;return{add:function(n){e==0&&(t=en())&&(tn(t,n),nn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},an=function(){var e=rn();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},on=function(){var e=an();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},sn={left:0,top:0,right:0,gap:0},cn=function(e){return parseInt(e||``,10)||0},ln=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[cn(n),cn(r),cn(i)]},un=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return sn;var t=ln(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])}},dn=on(),fn=`data-scroll-locked`,pn=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
3
+ .${Lt} {
4
+ overflow: hidden ${r};
5
+ padding-right: ${s}px ${r};
5
6
  }
6
- body[`).concat(Xe,`] {
7
- overflow: hidden `).concat(o,`;
7
+ body[${fn}] {
8
+ overflow: hidden ${r};
8
9
  overscroll-behavior: contain;
9
- `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
10
- padding-left: `.concat(r,`px;
11
- padding-top: `).concat(s,`px;
12
- padding-right: `).concat(a,`px;
10
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
11
+ padding-left: ${i}px;
12
+ padding-top: ${a}px;
13
+ padding-right: ${o}px;
13
14
  margin-left:0;
14
15
  margin-top:0;
15
- margin-right: `).concat(i,"px ").concat(o,`;
16
- `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(o,";")].filter(Boolean).join(""),`
16
+ margin-right: ${s}px ${r};
17
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
18
  }
18
19
 
19
- .`).concat(Tt,` {
20
- right: `).concat(i,"px ").concat(o,`;
20
+ .${Ft} {
21
+ right: ${s}px ${r};
21
22
  }
22
23
 
23
- .`).concat(Mt,` {
24
- margin-right: `).concat(i,"px ").concat(o,`;
24
+ .${It} {
25
+ margin-right: ${s}px ${r};
25
26
  }
26
27
 
27
- .`).concat(Tt," .").concat(Tt,` {
28
- right: 0 `).concat(o,`;
28
+ .${Ft} .${Ft} {
29
+ right: 0 ${r};
29
30
  }
30
31
 
31
- .`).concat(Mt," .").concat(Mt,` {
32
- margin-right: 0 `).concat(o,`;
32
+ .${It} .${It} {
33
+ margin-right: 0 ${r};
33
34
  }
34
35
 
35
- body[`).concat(Xe,`] {
36
- `).concat(Ac,": ").concat(i,`px;
36
+ body[${fn}] {
37
+ ${Rt}: ${s}px;
37
38
  }
38
- `)},Io=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},Zc=function(){c.useEffect(function(){return document.body.setAttribute(Xe,(Io()+1).toString()),function(){var e=Io()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},Jc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Zc();var s=c.useMemo(function(){return Yc(r)},[r]);return c.createElement(Xc,{styles:qc(s,!t,r,n?"":"!important")})},bn=!1;if(typeof window<"u")try{var yt=Object.defineProperty({},"passive",{get:function(){return bn=!0,!0}});window.addEventListener("test",yt,yt),window.removeEventListener("test",yt,yt)}catch{bn=!1}var Ue=bn?{passive:!1}:!1,Qc=function(e){return e.tagName==="TEXTAREA"},xr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Qc(e)&&n[t]==="visible")},el=function(e){return xr(e,"overflowY")},tl=function(e){return xr(e,"overflowX")},No=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=yr(e,o);if(r){var s=br(e,o),a=s[1],i=s[2];if(a>i)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},nl=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},ol=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},yr=function(e,t){return e==="v"?el(t):tl(t)},br=function(e,t){return e==="v"?nl(t):ol(t)},rl=function(e,t){return e==="h"&&t==="rtl"?-1:1},sl=function(e,t,n,o,r){var s=rl(e,window.getComputedStyle(t).direction),a=s*o,i=n.target,u=t.contains(i),d=!1,m=a>0,f=0,v=0;do{if(!i)break;var g=br(e,i),w=g[0],p=g[1],h=g[2],y=p-h-s*w;(w||y)&&yr(e,i)&&(f+=y,v+=w);var _=i.parentNode;i=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(m&&Math.abs(f)<1||!m&&Math.abs(v)<1)&&(d=!0),d},bt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ao=function(e){return[e.deltaX,e.deltaY]},Oo=function(e){return e&&"current"in e?e.current:e},il=function(e,t){return e[0]===t[0]&&e[1]===t[1]},al=function(e){return`
39
- .block-interactivity-`.concat(e,` {pointer-events: none;}
40
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},cl=0,Ke=[];function ll(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(cl++)[0],s=c.useState(_r)[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=Ic([e.lockRef.current],(e.shards||[]).map(Oo),!0).filter(Boolean);return p.forEach(function(h){return h.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback(function(p,h){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!a.current.allowPinchZoom;var y=bt(p),_=n.current,x="deltaX"in p?p.deltaX:_[0]-y[0],b="deltaY"in p?p.deltaY:_[1]-y[1],S,E=p.target,C=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in p&&C==="h"&&E.type==="range")return!1;var A=window.getSelection(),k=A&&A.anchorNode,M=k?k===E||k.contains(E):!1;if(M)return!1;var j=No(C,E);if(!j)return!0;if(j?S=C:(S=C==="v"?"h":"v",j=No(C,E)),!j)return!1;if(!o.current&&"changedTouches"in p&&(x||b)&&(o.current=S),!S)return!0;var L=o.current||S;return sl(L,h,p,L==="h"?x:b)},[]),u=c.useCallback(function(p){var h=p;if(!(!Ke.length||Ke[Ke.length-1]!==s)){var y="deltaY"in h?Ao(h):bt(h),_=t.current.filter(function(S){return S.name===h.type&&(S.target===h.target||h.target===S.shadowParent)&&il(S.delta,y)})[0];if(_&&_.should){h.cancelable&&h.preventDefault();return}if(!_){var x=(a.current.shards||[]).map(Oo).filter(Boolean).filter(function(S){return S.contains(h.target)}),b=x.length>0?i(h,x[0]):!a.current.noIsolation;b&&h.cancelable&&h.preventDefault()}}},[]),d=c.useCallback(function(p,h,y,_){var x={name:p,delta:h,target:y,should:_,shadowParent:ul(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),m=c.useCallback(function(p){n.current=bt(p),o.current=void 0},[]),f=c.useCallback(function(p){d(p.type,Ao(p),p.target,i(p,e.lockRef.current))},[]),v=c.useCallback(function(p){d(p.type,bt(p),p.target,i(p,e.lockRef.current))},[]);c.useEffect(function(){return Ke.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",u,Ue),document.addEventListener("touchmove",u,Ue),document.addEventListener("touchstart",m,Ue),function(){Ke=Ke.filter(function(p){return p!==s}),document.removeEventListener("wheel",u,Ue),document.removeEventListener("touchmove",u,Ue),document.removeEventListener("touchstart",m,Ue)}},[]);var g=e.removeScrollBar,w=e.inert;return c.createElement(c.Fragment,null,w?c.createElement(s,{styles:al(r)}):null,g?c.createElement(Jc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ul(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dl=zc(wr,ll);var $t=c.forwardRef(function(e,t){return c.createElement(Bt,ye({},e,{ref:t,sideCar:dl}))});$t.classNames=Bt.classNames;var fl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ge=new WeakMap,St=new WeakMap,Ct={},mn=0,Sr=function(e){return e&&(e.host||Sr(e.parentNode))},pl=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Sr(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ml=function(e,t,n,o){var r=pl(t,Array.isArray(e)?e:[e]);Ct[n]||(Ct[n]=new WeakMap);var s=Ct[n],a=[],i=new Set,u=new Set(r),d=function(f){!f||i.has(f)||(i.add(f),d(f.parentNode))};r.forEach(d);var m=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(v){if(i.has(v))m(v);else try{var g=v.getAttribute(o),w=g!==null&&g!=="false",p=(Ge.get(v)||0)+1,h=(s.get(v)||0)+1;Ge.set(v,p),s.set(v,h),a.push(v),p===1&&w&&St.set(v,!0),h===1&&v.setAttribute(n,"true"),w||v.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return m(t),i.clear(),mn++,function(){a.forEach(function(f){var v=Ge.get(f)-1,g=s.get(f)-1;Ge.set(f,v),s.set(f,g),v||(St.has(f)||f.removeAttribute(o),St.delete(f)),g||f.removeAttribute(n)}),mn--,mn||(Ge=new WeakMap,Ge=new WeakMap,St=new WeakMap,Ct={})}},Bn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=fl(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),ml(o,r,n,"aria-hidden")):function(){return null}},Wt="Dialog",[Cr]=Oe(Wt),[hl,_e]=Cr(Wt),Er=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:a=!0}=e,i=c.useRef(null),u=c.useRef(null),[d,m]=ze({prop:o,defaultProp:r??!1,onChange:s,caller:Wt});return l.jsx(hl,{scope:t,triggerRef:i,contentRef:u,contentId:ve(),titleId:ve(),descriptionId:ve(),open:d,onOpenChange:m,onOpenToggle:c.useCallback(()=>m(f=>!f),[m]),modal:a,children:n})};Er.displayName=Wt;var Rr="DialogTrigger",vl=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=_e(Rr,n),s=H(t,r.triggerRef);return l.jsx(B.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Vn(r.open),...o,ref:s,onClick:I(e.onClick,r.onOpenToggle)})});vl.displayName=Rr;var $n="DialogPortal",[gl,Tr]=Cr($n,{forceMount:void 0}),Mr=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=_e($n,t);return l.jsx(gl,{scope:t,forceMount:n,children:c.Children.map(o,a=>l.jsx(Me,{present:n||s.open,children:l.jsx(dt,{asChild:!0,container:r,children:a})}))})};Mr.displayName=$n;var Nt="DialogOverlay",Pr=c.forwardRef((e,t)=>{const n=Tr(Nt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=_e(Nt,e.__scopeDialog);return s.modal?l.jsx(Me,{present:o||s.open,children:l.jsx(_l,{...r,ref:t})}):null});Pr.displayName=Nt;var wl=Ze("DialogOverlay.RemoveScroll"),_l=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=_e(Nt,n);return l.jsx($t,{as:wl,allowPinchZoom:!0,shards:[r.contentRef],children:l.jsx(B.div,{"data-state":Vn(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Be="DialogContent",Ir=c.forwardRef((e,t)=>{const n=Tr(Be,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=_e(Be,e.__scopeDialog);return l.jsx(Me,{present:o||s.open,children:s.modal?l.jsx(xl,{...r,ref:t}):l.jsx(yl,{...r,ref:t})})});Ir.displayName=Be;var xl=c.forwardRef((e,t)=>{const n=_e(Be,e.__scopeDialog),o=c.useRef(null),r=H(t,n.contentRef,o);return c.useEffect(()=>{const s=o.current;if(s)return Bn(s)},[]),l.jsx(Nr,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:I(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:I(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:I(e.onFocusOutside,s=>s.preventDefault())})}),yl=c.forwardRef((e,t)=>{const n=_e(Be,e.__scopeDialog),o=c.useRef(!1),r=c.useRef(!1);return l.jsx(Nr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||n.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Nr=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...a}=e,i=_e(Be,n),u=c.useRef(null),d=H(t,u);return zn(),l.jsxs(l.Fragment,{children:[l.jsx(zt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:l.jsx(ut,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Vn(i.open),...a,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(bl,{titleId:i.titleId}),l.jsx(Cl,{contentRef:u,descriptionId:i.descriptionId})]})]})}),Wn="DialogTitle",Ar=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=_e(Wn,n);return l.jsx(B.h2,{id:r.titleId,...o,ref:t})});Ar.displayName=Wn;var Or="DialogDescription",Dr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=_e(Or,n);return l.jsx(B.p,{id:r.descriptionId,...o,ref:t})});Dr.displayName=Or;var jr="DialogClose",kr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=_e(jr,n);return l.jsx(B.button,{type:"button",...o,ref:t,onClick:I(e.onClick,()=>r.onOpenChange(!1))})});kr.displayName=jr;function Vn(e){return e?"open":"closed"}var Lr="DialogTitleWarning",[Pv,Fr]=Za(Lr,{contentName:Be,titleName:Wn,docsSlug:"dialog"}),bl=({titleId:e})=>{const t=Fr(Lr),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
39
+ `},mn=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},hn=function(){l.useEffect(function(){return document.body.setAttribute(fn,(mn()+1).toString()),function(){var e=mn()-1;e<=0?document.body.removeAttribute(fn):document.body.setAttribute(fn,e.toString())}},[])},gn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;hn();var a=l.useMemo(function(){return un(i)},[i]);return l.createElement(dn,{styles:pn(a,!t,i,n?``:`!important`)})},_n=!1;if(typeof window<`u`)try{var vn=Object.defineProperty({},"passive",{get:function(){return _n=!0,!0}});window.addEventListener(`test`,vn,vn),window.removeEventListener(`test`,vn,vn)}catch{_n=!1}var yn=_n?{passive:!1}:!1,bn=function(e){return e.tagName===`TEXTAREA`},xn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!bn(e)&&n[t]===`visible`)},Sn=function(e){return xn(e,`overflowY`)},Cn=function(e){return xn(e,`overflowX`)},wn=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Dn(e,r)){var i=On(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Tn=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},En=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Dn=function(e,t){return e===`v`?Sn(t):Cn(t)},On=function(e,t){return e===`v`?Tn(t):En(t)},kn=function(e,t){return e===`h`&&t===`rtl`?-1:1},An=function(e,t,n,r,i){var a=kn(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=On(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Dn(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},jn=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Mn=function(e){return[e.deltaX,e.deltaY]},Nn=function(e){return e&&`current`in e?e.current:e},Pn=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Fn=function(e){return`
40
+ .block-interactivity-${e} {pointer-events: none;}
41
+ .allow-interactivity-${e} {pointer-events: all;}
42
+ `},In=0,Ln=[];function Rn(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),i=l.useState(In++)[0],a=l.useState(on)[0],o=l.useRef(e);l.useEffect(function(){o.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Pt([e.lockRef.current],(e.shards||[]).map(Nn),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=jn(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=wn(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=wn(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return An(h,t,e,h===`h`?s:c,!0)},[]),c=l.useCallback(function(e){var n=e;if(!(!Ln.length||Ln[Ln.length-1]!==a)){var r=`deltaY`in n?Mn(n):jn(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Pn(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Nn).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=l.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:zn(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=l.useCallback(function(e){n.current=jn(e),r.current=void 0},[]),f=l.useCallback(function(t){u(t.type,Mn(t),t.target,s(t,e.lockRef.current))},[]),p=l.useCallback(function(t){u(t.type,jn(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return Ln.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,c,yn),document.addEventListener(`touchmove`,c,yn),document.addEventListener(`touchstart`,d,yn),function(){Ln=Ln.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,yn),document.removeEventListener(`touchmove`,c,yn),document.removeEventListener(`touchstart`,d,yn)}},[]);var m=e.removeScrollBar,h=e.inert;return l.createElement(l.Fragment,null,h?l.createElement(a,{styles:Fn(i)}):null,m?l.createElement(gn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function zn(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Bn=Jt(Yt,Rn),Vn=l.forwardRef(function(e,t){return l.createElement(Zt,Mt({},e,{ref:t,sideCar:Bn}))});Vn.classNames=Zt.classNames;var Hn=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Un=new WeakMap,Wn=new WeakMap,Gn={},Kn=0,qn=function(e){return e&&(e.host||qn(e.parentNode))},Jn=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=qn(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Yn=function(e,t,n,r){var i=Jn(t,Array.isArray(e)?e:[e]);Gn[n]||(Gn[n]=new WeakMap);var a=Gn[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Un.get(e)||0)+1,l=(a.get(e)||0)+1;Un.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Wn.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Kn++,function(){o.forEach(function(e){var t=Un.get(e)-1,i=a.get(e)-1;Un.set(e,t),a.set(e,i),t||(Wn.has(e)||e.removeAttribute(r),Wn.delete(e)),i||e.removeAttribute(n)}),Kn--,Kn||(Un=new WeakMap,Un=new WeakMap,Wn=new WeakMap,Gn={})}},Xn=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Hn(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Yn(r,i,n,`aria-hidden`)):function(){return null}},Zn=`Dialog`,[Qn,$n]=ke(Zn),[er,B]=Qn(Zn),tr=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=u.useRef(null),c=u.useRef(null),[l,f]=Pe({prop:r,defaultProp:i??!1,onChange:a,caller:Zn});return(0,d.jsx)(er,{scope:t,triggerRef:s,contentRef:c,contentId:R(),titleId:R(),descriptionId:R(),open:l,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(e=>!e),[f]),modal:o,children:n})};tr.displayName=Zn;var nr=`DialogTrigger`,rr=u.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=B(nr,n),a=h(t,i.triggerRef);return(0,d.jsx)(z.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Cr(i.open),...r,ref:a,onClick:L(e.onClick,i.onOpenToggle)})});rr.displayName=nr;var ir=`DialogPortal`,[ar,or]=Qn(ir,{forceMount:void 0}),sr=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=B(ir,t);return(0,d.jsx)(ar,{scope:t,forceMount:n,children:u.Children.map(r,e=>(0,d.jsx)(Tt,{present:n||a.open,children:(0,d.jsx)(Ct,{asChild:!0,container:i,children:e})}))})};sr.displayName=ir;var cr=`DialogOverlay`,lr=u.forwardRef((e,t)=>{let n=or(cr,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=B(cr,e.__scopeDialog);return a.modal?(0,d.jsx)(Tt,{present:r||a.open,children:(0,d.jsx)(dr,{...i,ref:t})}):null});lr.displayName=cr;var ur=Le(`DialogOverlay.RemoveScroll`),dr=u.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=B(cr,n);return(0,d.jsx)(Vn,{as:ur,allowPinchZoom:!0,shards:[i.contentRef],children:(0,d.jsx)(z.div,{"data-state":Cr(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),fr=`DialogContent`,pr=u.forwardRef((e,t)=>{let n=or(fr,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=B(fr,e.__scopeDialog);return(0,d.jsx)(Tt,{present:r||a.open,children:a.modal?(0,d.jsx)(mr,{...i,ref:t}):(0,d.jsx)(hr,{...i,ref:t})})});pr.displayName=fr;var mr=u.forwardRef((e,t)=>{let n=B(fr,e.__scopeDialog),r=u.useRef(null),i=h(t,n.contentRef,r);return u.useEffect(()=>{let e=r.current;if(e)return Xn(e)},[]),(0,d.jsx)(gr,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:L(e.onFocusOutside,e=>e.preventDefault())})}),hr=u.forwardRef((e,t)=>{let n=B(fr,e.__scopeDialog),r=u.useRef(!1),i=u.useRef(!1);return(0,d.jsx)(gr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),gr=u.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=B(fr,n),c=u.useRef(null),l=h(t,c);return At(),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ut,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,d.jsx)(Ze,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Cr(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Dr,{titleId:s.titleId}),(0,d.jsx)(kr,{contentRef:c,descriptionId:s.descriptionId})]})]})}),_r=`DialogTitle`,vr=u.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=B(_r,n);return(0,d.jsx)(z.h2,{id:i.titleId,...r,ref:t})});vr.displayName=_r;var yr=`DialogDescription`,br=u.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=B(yr,n);return(0,d.jsx)(z.p,{id:i.descriptionId,...r,ref:t})});br.displayName=yr;var xr=`DialogClose`,Sr=u.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=B(xr,n);return(0,d.jsx)(z.button,{type:`button`,...r,ref:t,onClick:L(e.onClick,()=>i.onOpenChange(!1))})});Sr.displayName=xr;function Cr(e){return e?`open`:`closed`}var wr=`DialogTitleWarning`,[Tr,Er]=Oe(wr,{contentName:fr,titleName:_r,docsSlug:`dialog`}),Dr=({titleId:e})=>{let t=Er(wr),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
43
 
43
44
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
45
 
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Sl="DialogDescriptionWarning",Cl=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Fr(Sl).contentName}}.`;return c.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},El=Er,Rl=Mr,Tl=Pr,Ml=Ir,Pl=Ar,Il=Dr,Nl=kr;const Al="uzi-modal-module__portalLayer__t7blc",Ol="uzi-modal-module__backdrop__IMd3b",Dl="uzi-modal-module__backdropFadeIn__GNJdx",jl="uzi-modal-module__backdropFadeOut__R-3K5",kl="uzi-modal-module__overlayContent__0DtbP",Ll="uzi-modal-module__modalContentIn__fub8M",Fl="uzi-modal-module__modalContentOut__elTJ3",zl="uzi-modal-module__modal__Mao59",Bl="uzi-modal-module__header__PmCaO",$l="uzi-modal-module__titles__IboyQ",Wl="uzi-modal-module__title__Zd7pL",Vl="uzi-modal-module__subtitle__t-LRK",Hl="uzi-modal-module__closeButton__GTiZr",Ul="uzi-modal-module__body__km6FQ",Kl="uzi-modal-module__footer__jWLTv",fe={portalLayer:Al,backdrop:Ol,backdropFadeIn:Dl,backdropFadeOut:jl,overlayContent:kl,modalContentIn:Ll,modalContentOut:Fl,modal:zl,"size-sm":"uzi-modal-module__size-sm__Uu9je","size-md":"uzi-modal-module__size-md__TiiWy","size-lg":"uzi-modal-module__size-lg__BrTIO","size-xl":"uzi-modal-module__size-xl__sj0mh",header:Bl,titles:$l,title:Wl,subtitle:Vl,closeButton:Hl,body:Ul,footer:Kl};function zr({open:e,onClose:t,className:n,children:o}){return l.jsx(El,{open:e,onOpenChange:r=>{r||t()},children:l.jsx(Rl,{children:l.jsxs("div",{className:fe.portalLayer,children:[l.jsx(Tl,{className:F(fe.backdrop,n)}),l.jsx(Ml,{className:fe.overlayContent,children:o})]})})})}function Gl({open:e,onClose:t,title:n,subtitle:o,size:r="md",children:s,footer:a}){return l.jsx(zr,{open:e,onClose:t,children:l.jsxs("div",{className:F(fe.modal,fe[`size-${r}`]),children:[l.jsxs("div",{className:fe.header,children:[l.jsxs("div",{className:fe.titles,children:[l.jsx(Pl,{className:fe.title,children:n}),o?l.jsx(Il,{className:fe.subtitle,children:o}):null]}),l.jsx(Nl,{asChild:!0,children:l.jsx("button",{className:fe.closeButton,"aria-label":"Close",children:l.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),l.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})})]}),l.jsx("div",{className:fe.body,children:s}),a&&l.jsx("div",{className:fe.footer,children:a})]})})}const Yl="uzi-alert-module__alert__7Bt6c",Xl="uzi-alert-module__success__apdFG",ql="uzi-alert-module__error__KLgi1",Zl="uzi-alert-module__warning__F4fpk",Jl="uzi-alert-module__info__1IKHt",Do={alert:Yl,success:Xl,error:ql,warning:Zl,info:Jl};function Ql({tone:e,children:t,className:n}){return l.jsx("div",{className:F(Do.alert,Do[e],n),role:"alert",children:t})}function Vt(e){const t=e+"CollectionProvider",[n,o]=Oe(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:h,children:y}=p,_=N.useRef(null),x=N.useRef(new Map).current;return l.jsx(r,{scope:h,itemMap:x,collectionRef:_,children:y})};a.displayName=t;const i=e+"CollectionSlot",u=Ze(i),d=N.forwardRef((p,h)=>{const{scope:y,children:_}=p,x=s(i,y),b=H(h,x.collectionRef);return l.jsx(u,{ref:b,children:_})});d.displayName=i;const m=e+"CollectionItemSlot",f="data-radix-collection-item",v=Ze(m),g=N.forwardRef((p,h)=>{const{scope:y,children:_,...x}=p,b=N.useRef(null),S=H(h,b),E=s(m,y);return N.useEffect(()=>(E.itemMap.set(b,{ref:b,...x}),()=>{E.itemMap.delete(b)})),l.jsx(v,{[f]:"",ref:S,children:_})});g.displayName=m;function w(p){const h=s(e+"CollectionConsumer",p);return N.useCallback(()=>{const _=h.collectionRef.current;if(!_)return[];const x=Array.from(_.querySelectorAll(`[${f}]`));return Array.from(h.itemMap.values()).sort((E,C)=>x.indexOf(E.ref.current)-x.indexOf(C.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:d,ItemSlot:g},w,o]}var Br=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),eu="VisuallyHidden",Hn=c.forwardRef((e,t)=>l.jsx(B.span,{...e,ref:t,style:{...Br,...e.style}}));Hn.displayName=eu;var Un="ToastProvider",[Kn,tu,nu]=Vt("Toast"),[$r]=Oe("Toast",[nu]),[ou,Ht]=$r(Un),Wr=e=>{const{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:r="right",swipeThreshold:s=50,children:a}=e,[i,u]=c.useState(null),[d,m]=c.useState(0),f=c.useRef(!1),v=c.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Un}\`. Expected non-empty \`string\`.`),l.jsx(Kn.Provider,{scope:t,children:l.jsx(ou,{scope:t,label:n,duration:o,swipeDirection:r,swipeThreshold:s,toastCount:d,viewport:i,onViewportChange:u,onToastAdd:c.useCallback(()=>m(g=>g+1),[]),onToastRemove:c.useCallback(()=>m(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:v,children:a})})};Wr.displayName=Un;var Vr="ToastViewport",ru=["F8"],Sn="toast.viewportPause",Cn="toast.viewportResume",Hr=c.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:o=ru,label:r="Notifications ({hotkey})",...s}=e,a=Ht(Vr,n),i=tu(n),u=c.useRef(null),d=c.useRef(null),m=c.useRef(null),f=c.useRef(null),v=H(t,f,a.onViewportChange),g=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=a.toastCount>0;c.useEffect(()=>{const h=y=>{o.length!==0&&o.every(x=>y[x]||y.code===x)&&f.current?.focus()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[o]),c.useEffect(()=>{const h=u.current,y=f.current;if(w&&h&&y){const _=()=>{if(!a.isClosePausedRef.current){const E=new CustomEvent(Sn);y.dispatchEvent(E),a.isClosePausedRef.current=!0}},x=()=>{if(a.isClosePausedRef.current){const E=new CustomEvent(Cn);y.dispatchEvent(E),a.isClosePausedRef.current=!1}},b=E=>{!h.contains(E.relatedTarget)&&x()},S=()=>{h.contains(document.activeElement)||x()};return h.addEventListener("focusin",_),h.addEventListener("focusout",b),h.addEventListener("pointermove",_),h.addEventListener("pointerleave",S),window.addEventListener("blur",_),window.addEventListener("focus",x),()=>{h.removeEventListener("focusin",_),h.removeEventListener("focusout",b),h.removeEventListener("pointermove",_),h.removeEventListener("pointerleave",S),window.removeEventListener("blur",_),window.removeEventListener("focus",x)}}},[w,a.isClosePausedRef]);const p=c.useCallback(({tabbingDirection:h})=>{const _=i().map(x=>{const b=x.ref.current,S=[b,...wu(b)];return h==="forwards"?S:S.reverse()});return(h==="forwards"?_.reverse():_).flat()},[i]);return c.useEffect(()=>{const h=f.current;if(h){const y=_=>{const x=_.altKey||_.ctrlKey||_.metaKey;if(_.key==="Tab"&&!x){const S=document.activeElement,E=_.shiftKey;if(_.target===h&&E){d.current?.focus();return}const k=p({tabbingDirection:E?"backwards":"forwards"}),M=k.findIndex(j=>j===S);hn(k.slice(M+1))?_.preventDefault():E?d.current?.focus():m.current?.focus()}};return h.addEventListener("keydown",y),()=>h.removeEventListener("keydown",y)}},[i,p]),l.jsxs(wc,{ref:u,role:"region","aria-label":r.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&l.jsx(En,{ref:d,onFocusFromOutsideViewport:()=>{const h=p({tabbingDirection:"forwards"});hn(h)}}),l.jsx(Kn.Slot,{scope:n,children:l.jsx(B.ol,{tabIndex:-1,...s,ref:v})}),w&&l.jsx(En,{ref:m,onFocusFromOutsideViewport:()=>{const h=p({tabbingDirection:"backwards"});hn(h)}})]})});Hr.displayName=Vr;var Ur="ToastFocusProxy",En=c.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:o,...r}=e,s=Ht(Ur,n);return l.jsx(Hn,{tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:a=>{const i=a.relatedTarget;!s.viewport?.contains(i)&&o()}})});En.displayName=Ur;var ft="Toast",su="toast.swipeStart",iu="toast.swipeMove",au="toast.swipeCancel",cu="toast.swipeEnd",Kr=c.forwardRef((e,t)=>{const{forceMount:n,open:o,defaultOpen:r,onOpenChange:s,...a}=e,[i,u]=ze({prop:o,defaultProp:r??!0,onChange:s,caller:ft});return l.jsx(Me,{present:n||i,children:l.jsx(du,{open:i,...a,ref:t,onClose:()=>u(!1),onPause:ne(e.onPause),onResume:ne(e.onResume),onSwipeStart:I(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:I(e.onSwipeMove,d=>{const{x:m,y:f}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:I(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:I(e.onSwipeEnd,d=>{const{x:m,y:f}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),u(!1)})})})});Kr.displayName=ft;var[lu,uu]=$r(ft,{onClose(){}}),du=c.forwardRef((e,t)=>{const{__scopeToast:n,type:o="foreground",duration:r,open:s,onClose:a,onEscapeKeyDown:i,onPause:u,onResume:d,onSwipeStart:m,onSwipeMove:f,onSwipeCancel:v,onSwipeEnd:g,...w}=e,p=Ht(ft,n),[h,y]=c.useState(null),_=H(t,T=>y(T)),x=c.useRef(null),b=c.useRef(null),S=r||p.duration,E=c.useRef(0),C=c.useRef(S),A=c.useRef(0),{onToastAdd:k,onToastRemove:M}=p,j=ne(()=>{h?.contains(document.activeElement)&&p.viewport?.focus(),a()}),L=c.useCallback(T=>{!T||T===1/0||(window.clearTimeout(A.current),E.current=new Date().getTime(),A.current=window.setTimeout(j,T))},[j]);c.useEffect(()=>{const T=p.viewport;if(T){const $=()=>{L(C.current),d?.()},D=()=>{const z=new Date().getTime()-E.current;C.current=C.current-z,window.clearTimeout(A.current),u?.()};return T.addEventListener(Sn,D),T.addEventListener(Cn,$),()=>{T.removeEventListener(Sn,D),T.removeEventListener(Cn,$)}}},[p.viewport,S,u,d,L]),c.useEffect(()=>{s&&!p.isClosePausedRef.current&&L(S)},[s,S,p.isClosePausedRef,L]),c.useEffect(()=>(k(),()=>M()),[k,M]);const W=c.useMemo(()=>h?Jr(h):null,[h]);return p.viewport?l.jsxs(l.Fragment,{children:[W&&l.jsx(fu,{__scopeToast:n,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:W}),l.jsx(lu,{scope:n,onClose:j,children:ct.createPortal(l.jsx(Kn.ItemSlot,{scope:n,children:l.jsx(gc,{asChild:!0,onEscapeKeyDown:I(i,()=>{p.isFocusedToastEscapeKeyDownRef.current||j(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(B.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":p.swipeDirection,...w,ref:_,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:I(e.onKeyDown,T=>{T.key==="Escape"&&(i?.(T.nativeEvent),T.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,j()))}),onPointerDown:I(e.onPointerDown,T=>{T.button===0&&(x.current={x:T.clientX,y:T.clientY})}),onPointerMove:I(e.onPointerMove,T=>{if(!x.current)return;const $=T.clientX-x.current.x,D=T.clientY-x.current.y,z=!!b.current,P=["left","right"].includes(p.swipeDirection),R=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,V=P?R(0,$):0,G=P?0:R(0,D),Q=T.pointerType==="touch"?10:2,Z={x:V,y:G},re={originalEvent:T,delta:Z};z?(b.current=Z,Et(iu,f,re,{discrete:!1})):jo(Z,p.swipeDirection,Q)?(b.current=Z,Et(su,m,re,{discrete:!1}),T.target.setPointerCapture(T.pointerId)):(Math.abs($)>Q||Math.abs(D)>Q)&&(x.current=null)}),onPointerUp:I(e.onPointerUp,T=>{const $=b.current,D=T.target;if(D.hasPointerCapture(T.pointerId)&&D.releasePointerCapture(T.pointerId),b.current=null,x.current=null,$){const z=T.currentTarget,P={originalEvent:T,delta:$};jo($,p.swipeDirection,p.swipeThreshold)?Et(cu,g,P,{discrete:!0}):Et(au,v,P,{discrete:!0}),z.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),fu=e=>{const{__scopeToast:t,children:n,...o}=e,r=Ht(ft,t),[s,a]=c.useState(!1),[i,u]=c.useState(!1);return vu(()=>a(!0)),c.useEffect(()=>{const d=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(d)},[]),i?null:l.jsx(dt,{asChild:!0,children:l.jsx(Hn,{...o,children:s&&l.jsxs(l.Fragment,{children:[r.label," ",n]})})})},pu="ToastTitle",mu=c.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return l.jsx(B.div,{...o,ref:t})});mu.displayName=pu;var hu="ToastDescription",Gr=c.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return l.jsx(B.div,{...o,ref:t})});Gr.displayName=hu;var Yr="ToastAction",Xr=c.forwardRef((e,t)=>{const{altText:n,...o}=e;return n.trim()?l.jsx(Zr,{altText:n,asChild:!0,children:l.jsx(Gn,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Yr}\`. Expected non-empty \`string\`.`),null)});Xr.displayName=Yr;var qr="ToastClose",Gn=c.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e,r=uu(qr,n);return l.jsx(Zr,{asChild:!0,children:l.jsx(B.button,{type:"button",...o,ref:t,onClick:I(e.onClick,r.onClose)})})});Gn.displayName=qr;var Zr=c.forwardRef((e,t)=>{const{__scopeToast:n,altText:o,...r}=e;return l.jsx(B.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...r,ref:t})});function Jr(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),gu(o)){const r=o.ariaHidden||o.hidden||o.style.display==="none",s=o.dataset.radixToastAnnounceExclude==="";if(!r)if(s){const a=o.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...Jr(o))}}),t}function Et(e,t,n,{discrete:o}){const r=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Fn(r,s):r.dispatchEvent(s)}var jo=(e,t,n=0)=>{const o=Math.abs(e.x),r=Math.abs(e.y),s=o>r;return t==="left"||t==="right"?s&&o>n:!s&&r>n};function vu(e=()=>{}){const t=ne(e);q(()=>{let n=0,o=0;return n=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(o)}},[t])}function gu(e){return e.nodeType===e.ELEMENT_NODE}function wu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hn(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var _u=Wr,xu=Hr,yu=Kr,bu=Gr,Su=Xr,Cu=Gn;const Eu="uzi-toast-module__stack__SRrda",Ru="uzi-toast-module__topRight__WiZzM",Tu="uzi-toast-module__topLeft__SzFS9",Mu="uzi-toast-module__topCenter__X5W-x",Pu="uzi-toast-module__bottomRight__DMtoS",Iu="uzi-toast-module__bottomLeft__ZZ7VF",Nu="uzi-toast-module__bottomCenter__QNJrM",Au="uzi-toast-module__toast__HNUcj",Ou="uzi-toast-module__toastSlideIn__BTXfm",Du="uzi-toast-module__toastSlideOut__mBX-G",ju="uzi-toast-module__toastSwipeOut__R-jk2",ku="uzi-toast-module__icon__LIAqr",Lu="uzi-toast-module__body__9vzs7",Fu="uzi-toast-module__message__TBY65",zu="uzi-toast-module__actions__Iykd9",Bu="uzi-toast-module__actionButton__cvUr0",$u="uzi-toast-module__controls__LqA4Q",Wu="uzi-toast-module__iconButton__FOsOp",Vu="uzi-toast-module__iconButtonError__NJsLX",de={stack:Eu,topRight:Ru,topLeft:Tu,topCenter:Mu,bottomRight:Pu,bottomLeft:Iu,bottomCenter:Nu,toast:Au,toastSlideIn:Ou,toastSlideOut:Du,toastSwipeOut:ju,icon:ku,body:Lu,message:Fu,actions:zu,actionButton:Bu,controls:$u,iconButton:Wu,iconButtonError:Vu},Hu={position:"top-right",maxToasts:5,defaultDuration:4e3,pauseOnHover:!0,pauseOnFocusLoss:!0},Qr=N.createContext(void 0);let Uu=0;const Ku=()=>`toast-${++Uu}-${Date.now()}`;function es({children:e,config:t}){const[n,o]=N.useState([]),[r,s]=N.useState(!1),a=N.useMemo(()=>({...Hu,...t}),[t]),i=N.useCallback((p,h={})=>{const y=Ku();return o(_=>{const x=[..._,{id:y,message:p,type:h.type??"info",duration:h.duration??(h.type==="error"?6e3:a.defaultDuration),dismissible:h.dismissible??!0,copyable:h.copyable??!1,action:h.action}];return x.length>a.maxToasts&&x.shift(),x}),y},[a.defaultDuration,a.maxToasts]),u=N.useCallback((p,h)=>i(p,{...h,type:"success"}),[i]),d=N.useCallback((p,h)=>i(p,{copyable:!0,...h,type:"error"}),[i]),m=N.useCallback((p,h)=>i(p,{...h,type:"warning"}),[i]),f=N.useCallback((p,h)=>i(p,{...h,type:"info"}),[i]),v=N.useCallback(p=>{o(h=>h.filter(y=>y.id!==p))},[]),g=N.useCallback(()=>o([]),[]);N.useEffect(()=>{if(!a.pauseOnFocusLoss)return;const p=()=>s(document.visibilityState!=="visible");return document.addEventListener("visibilitychange",p),()=>document.removeEventListener("visibilitychange",p)},[a.pauseOnFocusLoss]);const w=N.useMemo(()=>({toasts:n,push:i,success:u,error:d,warning:m,info:f,dismiss:v,dismissAll:g}),[n,i,u,d,m,f,v,g]);return l.jsx(Qr.Provider,{value:w,children:l.jsxs(_u,{swipeDirection:"right",children:[e,l.jsx(Yu,{toasts:n,position:a.position,pauseOnHover:a.pauseOnHover,isPaused:r,onDismiss:v,onPauseChange:s})]})})}function Gu(){const e=N.useContext(Qr);if(!e)throw new Error("useToast must be used within a ToastProvider");return e}function Yu({toasts:e,position:t,pauseOnHover:n,isPaused:o,onDismiss:r,onPauseChange:s}){const a=(()=>{switch(t){case"top-left":return"topLeft";case"top-center":return"topCenter";case"bottom-right":return"bottomRight";case"bottom-left":return"bottomLeft";case"bottom-center":return"bottomCenter";default:return"topRight"}})();return l.jsxs(l.Fragment,{children:[e.map(i=>l.jsx(Xu,{toast:i,isPaused:o,onDismiss:r},i.id)),l.jsx(xu,{className:F(de.stack,de[a]),label:"Notifications",onMouseEnter:()=>n&&s(!0),onMouseLeave:()=>n&&s(!1)})]})}function Xu({toast:e,isPaused:t,onDismiss:n}){const[o,r]=N.useState(!0),[s,a]=N.useState("idle"),i=N.useRef(null),u=N.useRef(null),d=N.useRef(0),m=N.useRef(e.duration??0),f=N.useRef(!1),v=qu(e.type),g={"--toast-bg":v.background,"--toast-border":v.border,"--toast-accent":v.accent,"--toast-text":v.text,"--toast-action-bg":v.actionBg,"--toast-action-border":v.actionBorder},w=()=>{u.current&&(window.clearTimeout(u.current),u.current=null)},p=N.useCallback(()=>{f.current||(f.current=!0,r(!1),w(),window.setTimeout(()=>n(e.id),160))},[n,e.id]),h=N.useCallback(x=>{if(!x||x<=0){p();return}d.current=performance.now(),w(),u.current=window.setTimeout(()=>p(),x)},[p]);N.useEffect(()=>{if(!(!e.duration||e.duration<=0))return h(e.duration),w},[h,e.duration]),N.useEffect(()=>{if(!(!e.duration||e.duration<=0))if(t){const x=performance.now()-d.current;m.current=Math.max(0,m.current-x),w()}else h(m.current)},[t,h,e.duration]),N.useEffect(()=>()=>{i.current&&window.clearTimeout(i.current)},[]);const y=N.useCallback(async()=>{i.current&&window.clearTimeout(i.current);try{if(!navigator.clipboard)throw new Error("Clipboard API unavailable");await navigator.clipboard.writeText(e.message),a("copied")}catch{a("failed")}i.current=window.setTimeout(()=>a("idle"),1800)},[e.message]),_=Zu(e.type);return l.jsxs(yu,{open:o,onOpenChange:x=>{x||p()},duration:2147483647,className:de.toast,style:g,children:[l.jsx("span",{className:de.icon,"aria-hidden":!0,children:_}),l.jsxs("div",{className:de.body,children:[l.jsx(bu,{className:de.message,children:e.message}),e.action&&l.jsx("div",{className:de.actions,children:l.jsx(Su,{asChild:!0,altText:e.action.label,children:l.jsx("button",{type:"button",className:de.actionButton,onClick:()=>{e.action?.onClick(),p()},children:e.action.label})})})]}),l.jsxs("div",{className:de.controls,children:[e.copyable&&l.jsx("button",{type:"button",className:F(de.iconButton,s==="failed"&&de.iconButtonError),"aria-label":"Copy message",onClick:y,children:s==="copied"?l.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none","aria-hidden":!0,children:l.jsx("path",{d:"M2 6.5l3 3 6-6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}):s==="failed"?l.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none","aria-hidden":!0,children:l.jsx("path",{d:"M10 3L3 10M3 3l7 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}):l.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none","aria-hidden":!0,children:[l.jsx("rect",{x:"4.5",y:"1.5",width:"7",height:"7",rx:"1.5",stroke:"currentColor",strokeWidth:"1.25"}),l.jsx("path",{d:"M1.5 5.5v5a1.5 1.5 0 001.5 1.5h5",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round"})]})}),e.dismissible!==!1&&l.jsx(Cu,{asChild:!0,children:l.jsx("button",{type:"button",className:de.iconButton,"aria-label":"Dismiss notification",children:l.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none","aria-hidden":!0,children:l.jsx("path",{d:"M10 3L3 10M3 3l7 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})})]})]})}function qu(e){switch(e){case"success":return{background:"color-mix(in srgb, var(--success) 12%, var(--popover))",border:"color-mix(in srgb, var(--success) 30%, transparent)",accent:"var(--success)",text:"var(--popover-foreground)",actionBg:"color-mix(in srgb, var(--success) 14%, transparent)",actionBorder:"color-mix(in srgb, var(--success) 35%, transparent)"};case"error":return{background:"color-mix(in srgb, var(--destructive) 12%, var(--popover))",border:"color-mix(in srgb, var(--destructive) 30%, transparent)",accent:"var(--destructive)",text:"var(--popover-foreground)",actionBg:"color-mix(in srgb, var(--destructive) 14%, transparent)",actionBorder:"color-mix(in srgb, var(--destructive) 35%, transparent)"};case"warning":return{background:"color-mix(in srgb, var(--warning) 12%, var(--popover))",border:"color-mix(in srgb, var(--warning) 30%, transparent)",accent:"var(--warning)",text:"var(--popover-foreground)",actionBg:"color-mix(in srgb, var(--warning) 14%, transparent)",actionBorder:"color-mix(in srgb, var(--warning) 35%, transparent)"};default:return{background:"color-mix(in srgb, var(--primary) 12%, var(--popover))",border:"color-mix(in srgb, var(--primary) 30%, transparent)",accent:"var(--primary)",text:"var(--popover-foreground)",actionBg:"color-mix(in srgb, var(--primary) 14%, transparent)",actionBorder:"color-mix(in srgb, var(--primary) 35%, transparent)"}}}function Zu(e){switch(e){case"success":return l.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:l.jsx("path",{d:"M3 8l3.5 3.5L13 4.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})});case"error":return l.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:l.jsx("path",{d:"M4 4l8 8M12 4l-8 8",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})});case"warning":return l.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:l.jsx("path",{d:"M8 3v6M8 11.5v1",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})});default:return l.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:l.jsx("path",{d:"M8 7v5M8 4.5v.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})})}}const Ju="uzi-input-module__input__-ipHD",Qu={input:Ju},ts=c.forwardRef(({className:e,type:t,...n},o)=>l.jsx("input",{ref:o,type:t,className:F(Qu.input,e),...n}));ts.displayName="Input";const ed="uzi-label-module__label__gKflt",td={label:ed},ns=c.forwardRef(({className:e,...t},n)=>l.jsx("label",{ref:n,className:F(td.label,e),...t}));ns.displayName="Label";const nd="uzi-checkbox-module__checkbox__zAB1y",od={checkbox:nd},os=c.forwardRef(({className:e,...t},n)=>l.jsx("input",{ref:n,type:"checkbox",className:F(od.checkbox,e),...t}));os.displayName="Checkbox";var rd=c.createContext(void 0);function Yn(e){const t=c.useContext(rd);return e||t||"ltr"}const sd=["top","right","bottom","left"],Ne=Math.min,ce=Math.max,At=Math.round,Rt=Math.floor,Se=e=>({x:e,y:e}),id={left:"right",right:"left",bottom:"top",top:"bottom"};function Rn(e,t,n){return ce(e,Ne(t,n))}function Re(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function Qe(e){return e.split("-")[1]}function Xn(e){return e==="x"?"y":"x"}function qn(e){return e==="y"?"height":"width"}function be(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Zn(e){return Xn(be(e))}function ad(e,t,n){n===void 0&&(n=!1);const o=Qe(e),r=Zn(e),s=qn(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ot(a)),[a,Ot(a)]}function cd(e){const t=Ot(e);return[Tn(e),t,Tn(t)]}function Tn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ko=["left","right"],Lo=["right","left"],ld=["top","bottom"],ud=["bottom","top"];function dd(e,t,n){switch(e){case"top":case"bottom":return n?t?Lo:ko:t?ko:Lo;case"left":case"right":return t?ld:ud;default:return[]}}function fd(e,t,n,o){const r=Qe(e);let s=dd(Te(e),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(Tn)))),s}function Ot(e){const t=Te(e);return id[t]+e.slice(t.length)}function pd(e){return{top:0,right:0,bottom:0,left:0,...e}}function rs(e){return typeof e!="number"?pd(e):{top:e,right:e,bottom:e,left:e}}function Dt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Fo(e,t,n){let{reference:o,floating:r}=e;const s=be(t),a=Zn(t),i=qn(a),u=Te(t),d=s==="y",m=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,v=o[i]/2-r[i]/2;let g;switch(u){case"top":g={x:m,y:o.y-r.height};break;case"bottom":g={x:m,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:f};break;case"left":g={x:o.x-r.width,y:f};break;default:g={x:o.x,y:o.y}}switch(Qe(t)){case"start":g[a]-=v*(n&&d?-1:1);break;case"end":g[a]+=v*(n&&d?-1:1);break}return g}async function md(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:a,elements:i,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:v=!1,padding:g=0}=Re(t,e),w=rs(g),h=i[v?f==="floating"?"reference":"floating":f],y=Dt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:m,strategy:u})),_=f==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),b=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Dt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:_,offsetParent:x,strategy:u}):_);return{top:(y.top-S.top+w.top)/b.y,bottom:(S.bottom-y.bottom+w.bottom)/b.y,left:(y.left-S.left+w.left)/b.x,right:(S.right-y.right+w.right)/b.x}}const hd=50,vd=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:md},u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:m,y:f}=Fo(d,o,u),v=o,g=0;const w={};for(let p=0;p<s.length;p++){const h=s[p];if(!h)continue;const{name:y,fn:_}=h,{x,y:b,data:S,reset:E}=await _({x:m,y:f,initialPlacement:o,placement:v,strategy:r,middlewareData:w,rects:d,platform:i,elements:{reference:e,floating:t}});m=x??m,f=b??f,w[y]={...w[y],...S},E&&g<hd&&(g++,typeof E=="object"&&(E.placement&&(v=E.placement),E.rects&&(d=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:m,y:f}=Fo(d,v,u)),p=-1)}return{x:m,y:f,placement:v,strategy:r,middlewareData:w}},gd=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:a,elements:i,middlewareData:u}=t,{element:d,padding:m=0}=Re(e,t)||{};if(d==null)return{};const f=rs(m),v={x:n,y:o},g=Zn(r),w=qn(g),p=await a.getDimensions(d),h=g==="y",y=h?"top":"left",_=h?"bottom":"right",x=h?"clientHeight":"clientWidth",b=s.reference[w]+s.reference[g]-v[g]-s.floating[w],S=v[g]-s.reference[g],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let C=E?E[x]:0;(!C||!await(a.isElement==null?void 0:a.isElement(E)))&&(C=i.floating[x]||s.floating[w]);const A=b/2-S/2,k=C/2-p[w]/2-1,M=Ne(f[y],k),j=Ne(f[_],k),L=M,W=C-p[w]-j,T=C/2-p[w]/2+A,$=Rn(L,T,W),D=!u.arrow&&Qe(r)!=null&&T!==$&&s.reference[w]/2-(T<L?M:j)-p[w]/2<0,z=D?T<L?T-L:T-W:0;return{[g]:v[g]+z,data:{[g]:$,centerOffset:T-$-z,...D&&{alignmentOffset:z}},reset:D}}}),wd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:i,platform:u,elements:d}=t,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...h}=Re(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Te(r),_=be(i),x=Te(i)===i,b=await(u.isRTL==null?void 0:u.isRTL(d.floating)),S=v||(x||!p?[Ot(i)]:cd(i)),E=w!=="none";!v&&E&&S.push(...fd(i,p,w,b));const C=[i,...S],A=await u.detectOverflow(t,h),k=[];let M=((o=s.flip)==null?void 0:o.overflows)||[];if(m&&k.push(A[y]),f){const T=ad(r,a,b);k.push(A[T[0]],A[T[1]])}if(M=[...M,{placement:r,overflows:k}],!k.every(T=>T<=0)){var j,L;const T=(((j=s.flip)==null?void 0:j.index)||0)+1,$=C[T];if($&&(!(f==="alignment"?_!==be($):!1)||M.every(P=>be(P.placement)===_?P.overflows[0]>0:!0)))return{data:{index:T,overflows:M},reset:{placement:$}};let D=(L=M.filter(z=>z.overflows[0]<=0).sort((z,P)=>z.overflows[1]-P.overflows[1])[0])==null?void 0:L.placement;if(!D)switch(g){case"bestFit":{var W;const z=(W=M.filter(P=>{if(E){const R=be(P.placement);return R===_||R==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(R=>R>0).reduce((R,V)=>R+V,0)]).sort((P,R)=>P[1]-R[1])[0])==null?void 0:W[0];z&&(D=z);break}case"initialPlacement":D=i;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function zo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bo(e){return sd.some(t=>e[t]>=0)}const _d=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=Re(e,t);switch(r){case"referenceHidden":{const a=await o.detectOverflow(t,{...s,elementContext:"reference"}),i=zo(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Bo(i)}}}case"escaped":{const a=await o.detectOverflow(t,{...s,altBoundary:!0}),i=zo(a,n.floating);return{data:{escapedOffsets:i,escaped:Bo(i)}}}default:return{}}}}},ss=new Set(["left","top"]);async function xd(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=Te(n),i=Qe(n),u=be(n)==="y",d=ss.has(a)?-1:1,m=s&&u?-1:1,f=Re(t,e);let{mainAxis:v,crossAxis:g,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof w=="number"&&(g=i==="end"?w*-1:w),u?{x:g*m,y:v*d}:{x:v*d,y:g*m}}const yd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:a,middlewareData:i}=t,u=await xd(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:s+u.y,data:{...u,placement:a}}}}},bd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:u={fn:y=>{let{x:_,y:x}=y;return{x:_,y:x}}},...d}=Re(e,t),m={x:n,y:o},f=await s.detectOverflow(t,d),v=be(Te(r)),g=Xn(v);let w=m[g],p=m[v];if(a){const y=g==="y"?"top":"left",_=g==="y"?"bottom":"right",x=w+f[y],b=w-f[_];w=Rn(x,w,b)}if(i){const y=v==="y"?"top":"left",_=v==="y"?"bottom":"right",x=p+f[y],b=p-f[_];p=Rn(x,p,b)}const h=u.fn({...t,[g]:w,[v]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[g]:a,[v]:i}}}}}},Sd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:u=!0,crossAxis:d=!0}=Re(e,t),m={x:n,y:o},f=be(r),v=Xn(f);let g=m[v],w=m[f];const p=Re(i,t),h=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const x=v==="y"?"height":"width",b=s.reference[v]-s.floating[x]+h.mainAxis,S=s.reference[v]+s.reference[x]-h.mainAxis;g<b?g=b:g>S&&(g=S)}if(d){var y,_;const x=v==="y"?"width":"height",b=ss.has(Te(r)),S=s.reference[f]-s.floating[x]+(b&&((y=a.offset)==null?void 0:y[f])||0)+(b?0:h.crossAxis),E=s.reference[f]+s.reference[x]+(b?0:((_=a.offset)==null?void 0:_[f])||0)-(b?h.crossAxis:0);w<S?w=S:w>E&&(w=E)}return{[v]:g,[f]:w}}}},Cd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:a,elements:i}=t,{apply:u=()=>{},...d}=Re(e,t),m=await a.detectOverflow(t,d),f=Te(r),v=Qe(r),g=be(r)==="y",{width:w,height:p}=s.floating;let h,y;f==="top"||f==="bottom"?(h=f,y=v===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,h=v==="end"?"top":"bottom");const _=p-m.top-m.bottom,x=w-m.left-m.right,b=Ne(p-m[h],_),S=Ne(w-m[y],x),E=!t.middlewareData.shift;let C=b,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=x),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(C=_),E&&!v){const M=ce(m.left,0),j=ce(m.right,0),L=ce(m.top,0),W=ce(m.bottom,0);g?A=w-2*(M!==0||j!==0?M+j:ce(m.left,m.right)):C=p-2*(L!==0||W!==0?L+W:ce(m.top,m.bottom))}await u({...t,availableWidth:A,availableHeight:C});const k=await a.getDimensions(i.floating);return w!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function Ut(){return typeof window<"u"}function et(e){return is(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ce(e){var t;return(t=(is(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function is(e){return Ut()?e instanceof Node||e instanceof le(e).Node:!1}function ge(e){return Ut()?e instanceof Element||e instanceof le(e).Element:!1}function Pe(e){return Ut()?e instanceof HTMLElement||e instanceof le(e).HTMLElement:!1}function $o(e){return!Ut()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}function pt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=we(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Ed(e){return/^(table|td|th)$/.test(et(e))}function Kt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Rd=/transform|translate|scale|rotate|perspective|filter/,Td=/paint|layout|strict|content/,Fe=e=>!!e&&e!=="none";let vn;function Jn(e){const t=ge(e)?we(e):e;return Fe(t.transform)||Fe(t.translate)||Fe(t.scale)||Fe(t.rotate)||Fe(t.perspective)||!Qn()&&(Fe(t.backdropFilter)||Fe(t.filter))||Rd.test(t.willChange||"")||Td.test(t.contain||"")}function Md(e){let t=Ae(e);for(;Pe(t)&&!Je(t);){if(Jn(t))return t;if(Kt(t))return null;t=Ae(t)}return null}function Qn(){return vn==null&&(vn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vn}function Je(e){return/^(html|body|#document)$/.test(et(e))}function we(e){return le(e).getComputedStyle(e)}function Gt(e){return ge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$o(e)&&e.host||Ce(e);return $o(t)?t.host:t}function as(e){const t=Ae(e);return Je(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pe(t)&&pt(t)?t:as(t)}function st(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=as(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),a=le(r);if(s){const i=Mn(a);return t.concat(a,a.visualViewport||[],pt(r)?r:[],i&&n?st(i):[])}else return t.concat(r,st(r,[],n))}function Mn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cs(e){const t=we(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Pe(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,i=At(n)!==s||At(o)!==a;return i&&(n=s,o=a),{width:n,height:o,$:i}}function eo(e){return ge(e)?e:e.contextElement}function qe(e){const t=eo(e);if(!Pe(t))return Se(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=cs(t);let a=(s?At(n.width):n.width)/o,i=(s?At(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Pd=Se(0);function ls(e){const t=le(e);return!Qn()||!t.visualViewport?Pd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Id(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function $e(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=eo(e);let a=Se(1);t&&(o?ge(o)&&(a=qe(o)):a=qe(e));const i=Id(s,n,o)?ls(s):Se(0);let u=(r.left+i.x)/a.x,d=(r.top+i.y)/a.y,m=r.width/a.x,f=r.height/a.y;if(s){const v=le(s),g=o&&ge(o)?le(o):o;let w=v,p=Mn(w);for(;p&&o&&g!==w;){const h=qe(p),y=p.getBoundingClientRect(),_=we(p),x=y.left+(p.clientLeft+parseFloat(_.paddingLeft))*h.x,b=y.top+(p.clientTop+parseFloat(_.paddingTop))*h.y;u*=h.x,d*=h.y,m*=h.x,f*=h.y,u+=x,d+=b,w=le(p),p=Mn(w)}}return Dt({width:m,height:f,x:u,y:d})}function Yt(e,t){const n=Gt(e).scrollLeft;return t?t.left+n:$e(Ce(e)).left+n}function us(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Yt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Nd(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",a=Ce(o),i=t?Kt(t.floating):!1;if(o===a||i&&s)return n;let u={scrollLeft:0,scrollTop:0},d=Se(1);const m=Se(0),f=Pe(o);if((f||!f&&!s)&&((et(o)!=="body"||pt(a))&&(u=Gt(o)),f)){const g=$e(o);d=qe(o),m.x=g.x+o.clientLeft,m.y=g.y+o.clientTop}const v=a&&!f&&!s?us(a,u):Se(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+m.x+v.x,y:n.y*d.y-u.scrollTop*d.y+m.y+v.y}}function Ad(e){return Array.from(e.getClientRects())}function Od(e){const t=Ce(e),n=Gt(e),o=e.ownerDocument.body,r=ce(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ce(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Yt(e);const i=-n.scrollTop;return we(o).direction==="rtl"&&(a+=ce(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:i}}const Wo=25;function Dd(e,t){const n=le(e),o=Ce(e),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,i=0,u=0;if(r){s=r.width,a=r.height;const m=Qn();(!m||m&&t==="fixed")&&(i=r.offsetLeft,u=r.offsetTop)}const d=Yt(o);if(d<=0){const m=o.ownerDocument,f=m.body,v=getComputedStyle(f),g=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,w=Math.abs(o.clientWidth-f.clientWidth-g);w<=Wo&&(s-=w)}else d<=Wo&&(s+=d);return{width:s,height:a,x:i,y:u}}function jd(e,t){const n=$e(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Pe(e)?qe(e):Se(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,u=r*s.x,d=o*s.y;return{width:a,height:i,x:u,y:d}}function Vo(e,t,n){let o;if(t==="viewport")o=Dd(e,n);else if(t==="document")o=Od(Ce(e));else if(ge(t))o=jd(t,n);else{const r=ls(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Dt(o)}function ds(e,t){const n=Ae(e);return n===t||!ge(n)||Je(n)?!1:we(n).position==="fixed"||ds(n,t)}function kd(e,t){const n=t.get(e);if(n)return n;let o=st(e,[],!1).filter(i=>ge(i)&&et(i)!=="body"),r=null;const s=we(e).position==="fixed";let a=s?Ae(e):e;for(;ge(a)&&!Je(a);){const i=we(a),u=Jn(a);!u&&i.position==="fixed"&&(r=null),(s?!u&&!r:!u&&i.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||pt(a)&&!u&&ds(e,a))?o=o.filter(m=>m!==a):r=i,a=Ae(a)}return t.set(e,o),o}function Ld(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?Kt(t)?[]:kd(t,this._c):[].concat(n),o],i=Vo(t,a[0],r);let u=i.top,d=i.right,m=i.bottom,f=i.left;for(let v=1;v<a.length;v++){const g=Vo(t,a[v],r);u=ce(g.top,u),d=Ne(g.right,d),m=Ne(g.bottom,m),f=ce(g.left,f)}return{width:d-f,height:m-u,x:f,y:u}}function Fd(e){const{width:t,height:n}=cs(e);return{width:t,height:n}}function zd(e,t,n){const o=Pe(t),r=Ce(t),s=n==="fixed",a=$e(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const u=Se(0);function d(){u.x=Yt(r)}if(o||!o&&!s)if((et(t)!=="body"||pt(r))&&(i=Gt(t)),o){const g=$e(t,!0,s,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else r&&d();s&&!o&&r&&d();const m=r&&!o&&!s?us(r,i):Se(0),f=a.left+i.scrollLeft-u.x-m.x,v=a.top+i.scrollTop-u.y-m.y;return{x:f,y:v,width:a.width,height:a.height}}function gn(e){return we(e).position==="static"}function Ho(e,t){if(!Pe(e)||we(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ce(e)===n&&(n=n.ownerDocument.body),n}function fs(e,t){const n=le(e);if(Kt(e))return n;if(!Pe(e)){let r=Ae(e);for(;r&&!Je(r);){if(ge(r)&&!gn(r))return r;r=Ae(r)}return n}let o=Ho(e,t);for(;o&&Ed(o)&&gn(o);)o=Ho(o,t);return o&&Je(o)&&gn(o)&&!Jn(o)?n:o||Md(e)||n}const Bd=async function(e){const t=this.getOffsetParent||fs,n=this.getDimensions,o=await n(e.floating);return{reference:zd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function $d(e){return we(e).direction==="rtl"}const Wd={convertOffsetParentRelativeRectToViewportRelativeRect:Nd,getDocumentElement:Ce,getClippingRect:Ld,getOffsetParent:fs,getElementRects:Bd,getClientRects:Ad,getDimensions:Fd,getScale:qe,isElement:ge,isRTL:$d};function ps(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vd(e,t){let n=null,o;const r=Ce(e);function s(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function a(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:m,top:f,width:v,height:g}=d;if(i||t(),!v||!g)return;const w=Rt(f),p=Rt(r.clientWidth-(m+v)),h=Rt(r.clientHeight-(f+g)),y=Rt(m),x={rootMargin:-w+"px "+-p+"px "+-h+"px "+-y+"px",threshold:ce(0,Ne(1,u))||1};let b=!0;function S(E){const C=E[0].intersectionRatio;if(C!==u){if(!b)return a();C?a(!1,C):o=setTimeout(()=>{a(!1,1e-7)},1e3)}C===1&&!ps(d,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(S,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return a(!0),s}function Hd(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,d=eo(e),m=r||s?[...d?st(d):[],...t?st(t):[]]:[];m.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const f=d&&i?Vd(d,n):null;let v=-1,g=null;a&&(g=new ResizeObserver(y=>{let[_]=y;_&&_.target===d&&g&&t&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(t)})),n()}),d&&!u&&g.observe(d),t&&g.observe(t));let w,p=u?$e(e):null;u&&h();function h(){const y=$e(e);p&&!ps(p,y)&&n(),p=y,w=requestAnimationFrame(h)}return n(),()=>{var y;m.forEach(_=>{r&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),f?.(),(y=g)==null||y.disconnect(),g=null,u&&cancelAnimationFrame(w)}}const Ud=yd,Kd=bd,Gd=wd,Yd=Cd,Xd=_d,Uo=gd,qd=Sd,Zd=(e,t,n)=>{const o=new Map,r={platform:Wd,...n},s={...r.platform,_c:o};return vd(e,t,{...r,platform:s})};var Jd=typeof document<"u",Qd=function(){},Pt=Jd?N.useLayoutEffect:Qd;function jt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!jt(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!jt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ms(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ko(e,t){const n=ms(e);return Math.round(t*n)/n}function wn(e){const t=c.useRef(e);return Pt(()=>{t.current=e}),t}function ef(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:u,open:d}=e,[m,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=c.useState(o);jt(v,o)||g(o);const[w,p]=c.useState(null),[h,y]=c.useState(null),_=c.useCallback(P=>{P!==E.current&&(E.current=P,p(P))},[]),x=c.useCallback(P=>{P!==C.current&&(C.current=P,y(P))},[]),b=s||w,S=a||h,E=c.useRef(null),C=c.useRef(null),A=c.useRef(m),k=u!=null,M=wn(u),j=wn(r),L=wn(d),W=c.useCallback(()=>{if(!E.current||!C.current)return;const P={placement:t,strategy:n,middleware:v};j.current&&(P.platform=j.current),Zd(E.current,C.current,P).then(R=>{const V={...R,isPositioned:L.current!==!1};T.current&&!jt(A.current,V)&&(A.current=V,ct.flushSync(()=>{f(V)}))})},[v,t,n,j,L]);Pt(()=>{d===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[d]);const T=c.useRef(!1);Pt(()=>(T.current=!0,()=>{T.current=!1}),[]),Pt(()=>{if(b&&(E.current=b),S&&(C.current=S),b&&S){if(M.current)return M.current(b,S,W);W()}},[b,S,W,M,k]);const $=c.useMemo(()=>({reference:E,floating:C,setReference:_,setFloating:x}),[_,x]),D=c.useMemo(()=>({reference:b,floating:S}),[b,S]),z=c.useMemo(()=>{const P={position:n,left:0,top:0};if(!D.floating)return P;const R=Ko(D.floating,m.x),V=Ko(D.floating,m.y);return i?{...P,transform:"translate("+R+"px, "+V+"px)",...ms(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:V}},[n,i,D.floating,m.x,m.y]);return c.useMemo(()=>({...m,update:W,refs:$,elements:D,floatingStyles:z}),[m,W,$,D,z])}const tf=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Uo({element:o.current,padding:r}).fn(n):{}:o?Uo({element:o,padding:r}).fn(n):{}}}},nf=(e,t)=>{const n=Ud(e);return{name:n.name,fn:n.fn,options:[e,t]}},of=(e,t)=>{const n=Kd(e);return{name:n.name,fn:n.fn,options:[e,t]}},rf=(e,t)=>({fn:qd(e).fn,options:[e,t]}),sf=(e,t)=>{const n=Gd(e);return{name:n.name,fn:n.fn,options:[e,t]}},af=(e,t)=>{const n=Yd(e);return{name:n.name,fn:n.fn,options:[e,t]}},cf=(e,t)=>{const n=Xd(e);return{name:n.name,fn:n.fn,options:[e,t]}},lf=(e,t)=>{const n=tf(e);return{name:n.name,fn:n.fn,options:[e,t]}};var uf="Arrow",hs=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return l.jsx(B.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});hs.displayName=uf;var df=hs;function ff(e){const[t,n]=c.useState(void 0);return q(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let a,i;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,i=d.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var to="Popper",[vs,Xt]=Oe(to),[pf,gs]=vs(to),ws=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return l.jsx(pf,{scope:t,anchor:o,onAnchorChange:r,children:n})};ws.displayName=to;var _s="PopperAnchor",xs=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=gs(_s,n),a=c.useRef(null),i=H(t,a),u=c.useRef(null);return c.useEffect(()=>{const d=u.current;u.current=o?.current||a.current,d!==u.current&&s.onAnchorChange(u.current)}),o?null:l.jsx(B.div,{...r,ref:i})});xs.displayName=_s;var no="PopperContent",[mf,hf]=vs(no),ys=c.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:f="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:w,...p}=e,h=gs(no,n),[y,_]=c.useState(null),x=H(t,O=>_(O)),[b,S]=c.useState(null),E=ff(b),C=E?.width??0,A=E?.height??0,k=o+(s!=="center"?"-"+s:""),M=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},j=Array.isArray(d)?d:[d],L=j.length>0,W={padding:M,boundary:j.filter(gf),altBoundary:L},{refs:T,floatingStyles:$,placement:D,isPositioned:z,middlewareData:P}=ef({strategy:"fixed",placement:k,whileElementsMounted:(...O)=>Hd(...O,{animationFrame:g==="always"}),elements:{reference:h.anchor},middleware:[nf({mainAxis:r+A,alignmentAxis:a}),u&&of({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?rf():void 0,...W}),u&&sf({...W}),af({...W,apply:({elements:O,rects:U,availableWidth:se,availableHeight:K})=>{const{width:Y,height:X}=U.reference,ue=O.floating.style;ue.setProperty("--radix-popper-available-width",`${se}px`),ue.setProperty("--radix-popper-available-height",`${K}px`),ue.setProperty("--radix-popper-anchor-width",`${Y}px`),ue.setProperty("--radix-popper-anchor-height",`${X}px`)}}),b&&lf({element:b,padding:i}),wf({arrowWidth:C,arrowHeight:A}),v&&cf({strategy:"referenceHidden",...W})]}),[R,V]=Cs(D),G=ne(w);q(()=>{z&&G?.()},[z,G]);const Q=P.arrow?.x,Z=P.arrow?.y,re=P.arrow?.centerOffset!==0,[Ee,ie]=c.useState();return q(()=>{y&&ie(window.getComputedStyle(y).zIndex)},[y]),l.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:z?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(mf,{scope:n,placedSide:R,onArrowChange:S,arrowX:Q,arrowY:Z,shouldHideArrow:re,children:l.jsx(B.div,{"data-side":R,"data-align":V,...p,ref:x,style:{...p.style,animation:z?void 0:"none"}})})})});ys.displayName=no;var bs="PopperArrow",vf={top:"bottom",right:"left",bottom:"top",left:"right"},Ss=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=hf(bs,o),a=vf[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(df,{...r,ref:n,style:{...r.style,display:"block"}})})});Ss.displayName=bs;function gf(e){return e!==null}var wf=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,a=r.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[d,m]=Cs(n),f={start:"0%",center:"50%",end:"100%"}[m],v=(r.arrow?.x??0)+i/2,g=(r.arrow?.y??0)+u/2;let w="",p="";return d==="bottom"?(w=a?f:`${v}px`,p=`${-u}px`):d==="top"?(w=a?f:`${v}px`,p=`${o.floating.height+u}px`):d==="right"?(w=`${-u}px`,p=a?f:`${g}px`):d==="left"&&(w=`${o.floating.width+u}px`,p=a?f:`${g}px`),{data:{x:w,y:p}}}});function Cs(e){const[t,n="center"]=e.split("-");return[t,n]}var oo=ws,Es=xs,Rs=ys,Ts=Ss,_n="rovingFocusGroup.onEntryFocus",_f={bubbles:!1,cancelable:!0},mt="RovingFocusGroup",[Pn,Ms,xf]=Vt(mt),[yf,Ps]=Oe(mt,[xf]),[bf,Sf]=yf(mt),Is=c.forwardRef((e,t)=>l.jsx(Pn.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Pn.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Cf,{...e,ref:t})})}));Is.displayName=mt;var Cf=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...f}=e,v=c.useRef(null),g=H(t,v),w=Yn(s),[p,h]=ze({prop:a,defaultProp:i??null,onChange:u,caller:mt}),[y,_]=c.useState(!1),x=ne(d),b=Ms(n),S=c.useRef(!1),[E,C]=c.useState(0);return c.useEffect(()=>{const A=v.current;if(A)return A.addEventListener(_n,x),()=>A.removeEventListener(_n,x)},[x]),l.jsx(bf,{scope:n,orientation:o,dir:w,loop:r,currentTabStopId:p,onItemFocus:c.useCallback(A=>h(A),[h]),onItemShiftTab:c.useCallback(()=>_(!0),[]),onFocusableItemAdd:c.useCallback(()=>C(A=>A+1),[]),onFocusableItemRemove:c.useCallback(()=>C(A=>A-1),[]),children:l.jsx(B.div,{tabIndex:y||E===0?-1:0,"data-orientation":o,...f,ref:g,style:{outline:"none",...e.style},onMouseDown:I(e.onMouseDown,()=>{S.current=!0}),onFocus:I(e.onFocus,A=>{const k=!S.current;if(A.target===A.currentTarget&&k&&!y){const M=new CustomEvent(_n,_f);if(A.currentTarget.dispatchEvent(M),!M.defaultPrevented){const j=b().filter(D=>D.focusable),L=j.find(D=>D.active),W=j.find(D=>D.id===p),$=[L,W,...j].filter(Boolean).map(D=>D.ref.current);Os($,m)}}S.current=!1}),onBlur:I(e.onBlur,()=>_(!1))})})}),Ns="RovingFocusGroupItem",As=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:a,...i}=e,u=ve(),d=s||u,m=Sf(Ns,n),f=m.currentTabStopId===d,v=Ms(n),{onFocusableItemAdd:g,onFocusableItemRemove:w,currentTabStopId:p}=m;return c.useEffect(()=>{if(o)return g(),()=>w()},[o,g,w]),l.jsx(Pn.ItemSlot,{scope:n,id:d,focusable:o,active:r,children:l.jsx(B.span,{tabIndex:f?0:-1,"data-orientation":m.orientation,...i,ref:t,onMouseDown:I(e.onMouseDown,h=>{o?m.onItemFocus(d):h.preventDefault()}),onFocus:I(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:I(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){m.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=Tf(h,m.orientation,m.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let x=v().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const b=x.indexOf(h.currentTarget);x=m.loop?Mf(x,b+1):x.slice(b+1)}setTimeout(()=>Os(x))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:p!=null}):a})})});As.displayName=Ns;var Ef={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Tf(e,t,n){const o=Rf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Ef[o]}function Os(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Mf(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Pf=Is,If=As,In=["Enter"," "],Nf=["ArrowDown","PageUp","Home"],Ds=["ArrowUp","PageDown","End"],Af=[...Nf,...Ds],Of={ltr:[...In,"ArrowRight"],rtl:[...In,"ArrowLeft"]},Df={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ht="Menu",[it,jf,kf]=Vt(ht),[He,js]=Oe(ht,[kf,Xt,Ps]),vt=Xt(),ks=Ps(),[Ls,De]=He(ht),[Lf,gt]=He(ht),Fs=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:a=!0}=e,i=vt(t),[u,d]=c.useState(null),m=c.useRef(!1),f=ne(s),v=Yn(r);return c.useEffect(()=>{const g=()=>{m.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>m.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),l.jsx(oo,{...i,children:l.jsx(Ls,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:d,children:l.jsx(Lf,{scope:t,onClose:c.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:m,dir:v,modal:a,children:o})})})};Fs.displayName=ht;var Ff="MenuAnchor",ro=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=vt(n);return l.jsx(Es,{...r,...o,ref:t})});ro.displayName=Ff;var so="MenuPortal",[zf,zs]=He(so,{forceMount:void 0}),Bs=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=De(so,t);return l.jsx(zf,{scope:t,forceMount:n,children:l.jsx(Me,{present:n||s.open,children:l.jsx(dt,{asChild:!0,container:r,children:o})})})};Bs.displayName=so;var pe="MenuContent",[Bf,io]=He(pe),$s=c.forwardRef((e,t)=>{const n=zs(pe,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=De(pe,e.__scopeMenu),a=gt(pe,e.__scopeMenu);return l.jsx(it.Provider,{scope:e.__scopeMenu,children:l.jsx(Me,{present:o||s.open,children:l.jsx(it.Slot,{scope:e.__scopeMenu,children:a.modal?l.jsx($f,{...r,ref:t}):l.jsx(Wf,{...r,ref:t})})})})}),$f=c.forwardRef((e,t)=>{const n=De(pe,e.__scopeMenu),o=c.useRef(null),r=H(t,o);return c.useEffect(()=>{const s=o.current;if(s)return Bn(s)},[]),l.jsx(ao,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:I(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Wf=c.forwardRef((e,t)=>{const n=De(pe,e.__scopeMenu);return l.jsx(ao,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Vf=Ze("MenuContent.ScrollLock"),ao=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:f,onInteractOutside:v,onDismiss:g,disableOutsideScroll:w,...p}=e,h=De(pe,n),y=gt(pe,n),_=vt(n),x=ks(n),b=jf(n),[S,E]=c.useState(null),C=c.useRef(null),A=H(t,C,h.onContentChange),k=c.useRef(0),M=c.useRef(""),j=c.useRef(0),L=c.useRef(null),W=c.useRef("right"),T=c.useRef(0),$=w?$t:c.Fragment,D=w?{as:Vf,allowPinchZoom:!0}:void 0,z=R=>{const V=M.current+R,G=b().filter(O=>!O.disabled),Q=document.activeElement,Z=G.find(O=>O.ref.current===Q)?.textValue,re=G.map(O=>O.textValue),Ee=tp(re,V,Z),ie=G.find(O=>O.textValue===Ee)?.ref.current;(function O(U){M.current=U,window.clearTimeout(k.current),U!==""&&(k.current=window.setTimeout(()=>O(""),1e3))})(V),ie&&setTimeout(()=>ie.focus())};c.useEffect(()=>()=>window.clearTimeout(k.current),[]),zn();const P=c.useCallback(R=>W.current===L.current?.side&&op(R,L.current?.area),[]);return l.jsx(Bf,{scope:n,searchRef:M,onItemEnter:c.useCallback(R=>{P(R)&&R.preventDefault()},[P]),onItemLeave:c.useCallback(R=>{P(R)||(C.current?.focus(),E(null))},[P]),onTriggerLeave:c.useCallback(R=>{P(R)&&R.preventDefault()},[P]),pointerGraceTimerRef:j,onPointerGraceIntentChange:c.useCallback(R=>{L.current=R},[]),children:l.jsx($,{...D,children:l.jsx(zt,{asChild:!0,trapped:r,onMountAutoFocus:I(s,R=>{R.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:l.jsx(ut,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:f,onInteractOutside:v,onDismiss:g,children:l.jsx(Pf,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:S,onCurrentTabStopIdChange:E,onEntryFocus:I(u,R=>{y.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(Rs,{role:"menu","aria-orientation":"vertical","data-state":ri(h.open),"data-radix-menu-content":"",dir:y.dir,..._,...p,ref:A,style:{outline:"none",...p.style},onKeyDown:I(p.onKeyDown,R=>{const G=R.target.closest("[data-radix-menu-content]")===R.currentTarget,Q=R.ctrlKey||R.altKey||R.metaKey,Z=R.key.length===1;G&&(R.key==="Tab"&&R.preventDefault(),!Q&&Z&&z(R.key));const re=C.current;if(R.target!==re||!Af.includes(R.key))return;R.preventDefault();const ie=b().filter(O=>!O.disabled).map(O=>O.ref.current);Ds.includes(R.key)&&ie.reverse(),Qf(ie)}),onBlur:I(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(k.current),M.current="")}),onPointerMove:I(e.onPointerMove,at(R=>{const V=R.target,G=T.current!==R.clientX;if(R.currentTarget.contains(V)&&G){const Q=R.clientX>T.current?"right":"left";W.current=Q,T.current=R.clientX}}))})})})})})})});$s.displayName=pe;var Hf="MenuGroup",co=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return l.jsx(B.div,{role:"group",...o,ref:t})});co.displayName=Hf;var Uf="MenuLabel",Ws=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return l.jsx(B.div,{...o,ref:t})});Ws.displayName=Uf;var kt="MenuItem",Go="menu.itemSelect",qt=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=c.useRef(null),a=gt(kt,e.__scopeMenu),i=io(kt,e.__scopeMenu),u=H(t,s),d=c.useRef(!1),m=()=>{const f=s.current;if(!n&&f){const v=new CustomEvent(Go,{bubbles:!0,cancelable:!0});f.addEventListener(Go,g=>o?.(g),{once:!0}),Fn(f,v),v.defaultPrevented?d.current=!1:a.onClose()}};return l.jsx(Vs,{...r,ref:u,disabled:n,onClick:I(e.onClick,m),onPointerDown:f=>{e.onPointerDown?.(f),d.current=!0},onPointerUp:I(e.onPointerUp,f=>{d.current||f.currentTarget?.click()}),onKeyDown:I(e.onKeyDown,f=>{const v=i.searchRef.current!=="";n||v&&f.key===" "||In.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});qt.displayName=kt;var Vs=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,a=io(kt,n),i=ks(n),u=c.useRef(null),d=H(t,u),[m,f]=c.useState(!1),[v,g]=c.useState("");return c.useEffect(()=>{const w=u.current;w&&g((w.textContent??"").trim())},[s.children]),l.jsx(it.ItemSlot,{scope:n,disabled:o,textValue:r??v,children:l.jsx(If,{asChild:!0,...i,focusable:!o,children:l.jsx(B.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:d,onPointerMove:I(e.onPointerMove,at(w=>{o?a.onItemLeave(w):(a.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:I(e.onPointerLeave,at(w=>a.onItemLeave(w))),onFocus:I(e.onFocus,()=>f(!0)),onBlur:I(e.onBlur,()=>f(!1))})})})}),Kf="MenuCheckboxItem",Hs=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return l.jsx(Xs,{scope:e.__scopeMenu,checked:n,children:l.jsx(qt,{role:"menuitemcheckbox","aria-checked":Lt(n)?"mixed":n,...r,ref:t,"data-state":fo(n),onSelect:I(r.onSelect,()=>o?.(Lt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Hs.displayName=Kf;var Us="MenuRadioGroup",[Gf,Yf]=He(Us,{value:void 0,onValueChange:()=>{}}),Ks=c.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=ne(o);return l.jsx(Gf,{scope:e.__scopeMenu,value:n,onValueChange:s,children:l.jsx(co,{...r,ref:t})})});Ks.displayName=Us;var Gs="MenuRadioItem",Ys=c.forwardRef((e,t)=>{const{value:n,...o}=e,r=Yf(Gs,e.__scopeMenu),s=n===r.value;return l.jsx(Xs,{scope:e.__scopeMenu,checked:s,children:l.jsx(qt,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":fo(s),onSelect:I(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ys.displayName=Gs;var lo="MenuItemIndicator",[Xs,Xf]=He(lo,{checked:!1}),qs=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=Xf(lo,n);return l.jsx(Me,{present:o||Lt(s.checked)||s.checked===!0,children:l.jsx(B.span,{...r,ref:t,"data-state":fo(s.checked)})})});qs.displayName=lo;var qf="MenuSeparator",Zs=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return l.jsx(B.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Zs.displayName=qf;var Zf="MenuArrow",Js=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=vt(n);return l.jsx(Ts,{...r,...o,ref:t})});Js.displayName=Zf;var uo="MenuSub",[Jf,Qs]=He(uo),ei=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,s=De(uo,t),a=vt(t),[i,u]=c.useState(null),[d,m]=c.useState(null),f=ne(r);return c.useEffect(()=>(s.open===!1&&f(!1),()=>f(!1)),[s.open,f]),l.jsx(oo,{...a,children:l.jsx(Ls,{scope:t,open:o,onOpenChange:f,content:d,onContentChange:m,children:l.jsx(Jf,{scope:t,contentId:ve(),triggerId:ve(),trigger:i,onTriggerChange:u,children:n})})})};ei.displayName=uo;var ot="MenuSubTrigger",ti=c.forwardRef((e,t)=>{const n=De(ot,e.__scopeMenu),o=gt(ot,e.__scopeMenu),r=Qs(ot,e.__scopeMenu),s=io(ot,e.__scopeMenu),a=c.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:u}=s,d={__scopeMenu:e.__scopeMenu},m=c.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return c.useEffect(()=>m,[m]),c.useEffect(()=>{const f=i.current;return()=>{window.clearTimeout(f),u(null)}},[i,u]),l.jsx(ro,{asChild:!0,...d,children:l.jsx(Vs,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":ri(n.open),...e,ref:lt(t,r.onTriggerChange),onClick:f=>{e.onClick?.(f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:I(e.onPointerMove,at(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:I(e.onPointerLeave,at(f=>{m();const v=n.content?.getBoundingClientRect();if(v){const g=n.content?.dataset.side,w=g==="right",p=w?-5:5,h=v[w?"left":"right"],y=v[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+p,y:f.clientY},{x:h,y:v.top},{x:y,y:v.top},{x:y,y:v.bottom},{x:h,y:v.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:I(e.onKeyDown,f=>{const v=s.searchRef.current!=="";e.disabled||v&&f.key===" "||Of[o.dir].includes(f.key)&&(n.onOpenChange(!0),n.content?.focus(),f.preventDefault())})})})});ti.displayName=ot;var ni="MenuSubContent",oi=c.forwardRef((e,t)=>{const n=zs(pe,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=De(pe,e.__scopeMenu),a=gt(pe,e.__scopeMenu),i=Qs(ni,e.__scopeMenu),u=c.useRef(null),d=H(t,u);return l.jsx(it.Provider,{scope:e.__scopeMenu,children:l.jsx(Me,{present:o||s.open,children:l.jsx(it.Slot,{scope:e.__scopeMenu,children:l.jsx(ao,{id:i.contentId,"aria-labelledby":i.triggerId,...r,ref:d,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{a.isUsingKeyboardRef.current&&u.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:I(e.onFocusOutside,m=>{m.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:I(e.onEscapeKeyDown,m=>{a.onClose(),m.preventDefault()}),onKeyDown:I(e.onKeyDown,m=>{const f=m.currentTarget.contains(m.target),v=Df[a.dir].includes(m.key);f&&v&&(s.onOpenChange(!1),i.trigger?.focus(),m.preventDefault())})})})})})});oi.displayName=ni;function ri(e){return e?"open":"closed"}function Lt(e){return e==="indeterminate"}function fo(e){return Lt(e)?"indeterminate":e?"checked":"unchecked"}function Qf(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ep(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function tp(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=ep(e,Math.max(s,0));r.length===1&&(a=a.filter(d=>d!==n));const u=a.find(d=>d.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function np(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],u=t[a],d=i.x,m=i.y,f=u.x,v=u.y;m>o!=v>o&&n<(f-d)*(o-m)/(v-m)+d&&(r=!r)}return r}function op(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return np(n,t)}function at(e){return t=>t.pointerType==="mouse"?e(t):void 0}var rp=Fs,sp=ro,ip=Bs,ap=$s,cp=co,lp=Ws,up=qt,dp=Hs,fp=Ks,pp=Ys,mp=qs,hp=Zs,vp=Js,gp=ei,wp=ti,_p=oi,Zt="DropdownMenu",[xp]=Oe(Zt,[js]),oe=js(),[yp,si]=xp(Zt),ii=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:a,modal:i=!0}=e,u=oe(t),d=c.useRef(null),[m,f]=ze({prop:r,defaultProp:s??!1,onChange:a,caller:Zt});return l.jsx(yp,{scope:t,triggerId:ve(),triggerRef:d,contentId:ve(),open:m,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(v=>!v),[f]),modal:i,children:l.jsx(rp,{...u,open:m,onOpenChange:f,dir:o,modal:i,children:n})})};ii.displayName=Zt;var ai="DropdownMenuTrigger",ci=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=si(ai,n),a=oe(n);return l.jsx(sp,{asChild:!0,...a,children:l.jsx(B.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:lt(t,s.triggerRef),onPointerDown:I(e.onPointerDown,i=>{!o&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:I(e.onKeyDown,i=>{o||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});ci.displayName=ai;var bp="DropdownMenuPortal",li=e=>{const{__scopeDropdownMenu:t,...n}=e,o=oe(t);return l.jsx(ip,{...o,...n})};li.displayName=bp;var ui="DropdownMenuContent",di=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=si(ui,n),s=oe(n),a=c.useRef(!1);return l.jsx(ap,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:I(e.onCloseAutoFocus,i=>{a.current||r.triggerRef.current?.focus(),a.current=!1,i.preventDefault()}),onInteractOutside:I(e.onInteractOutside,i=>{const u=i.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,m=u.button===2||d;(!r.modal||m)&&(a.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)"}})});di.displayName=ui;var Sp="DropdownMenuGroup",fi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return l.jsx(cp,{...r,...o,ref:t})});fi.displayName=Sp;var Cp="DropdownMenuLabel",pi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return l.jsx(lp,{...r,...o,ref:t})});pi.displayName=Cp;var Ep="DropdownMenuItem",mi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return l.jsx(up,{...r,...o,ref:t})});mi.displayName=Ep;var Rp="DropdownMenuCheckboxItem",hi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return l.jsx(dp,{...r,...o,ref:t})});hi.displayName=Rp;var Tp="DropdownMenuRadioGroup",vi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return l.jsx(fp,{...r,...o,ref:t})});vi.displayName=Tp;var Mp="DropdownMenuRadioItem",gi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return l.jsx(pp,{...r,...o,ref:t})});gi.displayName=Mp;var Pp="DropdownMenuItemIndicator",wi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return l.jsx(mp,{...r,...o,ref:t})});wi.displayName=Pp;var Ip="DropdownMenuSeparator",_i=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return l.jsx(hp,{...r,...o,ref:t})});_i.displayName=Ip;var Np="DropdownMenuArrow",Ap=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return l.jsx(vp,{...r,...o,ref:t})});Ap.displayName=Np;var Op=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:s}=e,a=oe(t),[i,u]=ze({prop:o,defaultProp:s??!1,onChange:r,caller:"DropdownMenuSub"});return l.jsx(gp,{...a,open:i,onOpenChange:u,children:n})},Dp="DropdownMenuSubTrigger",xi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return l.jsx(wp,{...r,...o,ref:t})});xi.displayName=Dp;var jp="DropdownMenuSubContent",yi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return l.jsx(_p,{...r,...o,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)"}})});yi.displayName=jp;var bi=ii,Si=ci,po=li,Ci=di,kp=fi,Lp=pi,Fp=mi,Ei=hi,zp=vi,Bp=gi,mo=wi,$p=_i,Wp=Op,Vp=xi,Hp=yi;const Up="uzi-multi-select-module__wrapper__Izj2x",Kp="uzi-multi-select-module__wrapperFullWidth__eH8pf",Gp="uzi-multi-select-module__trigger__r3816",Yp="uzi-multi-select-module__value__PuUmG",Xp="uzi-multi-select-module__placeholder__dJIU-",qp="uzi-multi-select-module__chip__46Ms-",Zp="uzi-multi-select-module__chipSummary__zLwi8",Jp="uzi-multi-select-module__chevron__SWK5l",Qp="uzi-multi-select-module__menu__q8auA",em="uzi-multi-select-module__option__-Ioqk",tm="uzi-multi-select-module__optionDisabled__qtCi8",nm="uzi-multi-select-module__optionSelected__74IO8",om="uzi-multi-select-module__optionLabel__cVoN7",rm="uzi-multi-select-module__indicator__NO-WE",sm="uzi-multi-select-module__indicatorSelected__9sEAy",im="uzi-multi-select-module__indicatorDisabled__vqdiH",ee={wrapper:Up,wrapperFullWidth:Kp,trigger:Gp,value:Yp,placeholder:Xp,chip:qp,chipSummary:Zp,chevron:Jp,menu:Qp,option:em,optionDisabled:tm,optionSelected:nm,optionLabel:om,indicator:rm,indicatorSelected:sm,indicatorDisabled:im},Ri=c.forwardRef(({options:e,value:t,onChange:n,placeholder:o="Select options",fullWidth:r=!0,maxVisibleValues:s=2,className:a,disabled:i=!1,name:u,"aria-label":d,"aria-labelledby":m},f)=>{const v=c.useMemo(()=>new Set(t),[t]),g=c.useMemo(()=>e.filter(_=>v.has(_.value)),[e,v]),w=c.useCallback(_=>{if(v.has(_)){n(t.filter(x=>x!==_));return}n([...t,_])},[n,v,t]),p=Math.max(1,s),h=g.slice(0,p),y=Math.max(0,g.length-h.length);return l.jsx(bi,{modal:!1,children:l.jsxs("div",{className:F(ee.wrapper,r&&ee.wrapperFullWidth,a),children:[l.jsx(Si,{asChild:!0,children:l.jsxs("button",{ref:f,type:"button",className:ee.trigger,"aria-label":d,"aria-labelledby":m,disabled:i,children:[l.jsx("span",{className:ee.value,children:g.length===0?l.jsx("span",{className:ee.placeholder,children:o}):l.jsxs(l.Fragment,{children:[h.map(_=>l.jsx("span",{className:ee.chip,children:_.label},_.value)),y>0?l.jsxs("span",{className:F(ee.chip,ee.chipSummary),children:["+",y]}):null]})}),l.jsx("span",{className:ee.chevron,"aria-hidden":"true",children:l.jsx("svg",{viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",children:l.jsx("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}),u?t.map(_=>l.jsx("input",{type:"hidden",name:u,value:_},_)):null,l.jsx(po,{children:l.jsx(Ci,{className:ee.menu,sideOffset:4,align:"start",children:e.map(_=>{const x=v.has(_.value);return l.jsxs(Ei,{className:F(ee.option,x&&ee.optionSelected,_.disabled&&ee.optionDisabled),checked:x,disabled:_.disabled,onCheckedChange:()=>w(_.value),onSelect:b=>b.preventDefault(),children:[l.jsx("span",{className:F(ee.indicator,x&&ee.indicatorSelected,_.disabled&&ee.indicatorDisabled),"aria-hidden":"true",children:l.jsx(mo,{forceMount:!0,children:l.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M3.5 8.5 6.5 11.5 12.5 4.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})})}),l.jsx("span",{className:ee.optionLabel,children:_.label})]},_.value)})})})]})})});Ri.displayName="MultiSelect";function Yo(e,[t,n]){return Math.min(n,Math.max(t,e))}function am(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var cm=[" ","Enter","ArrowUp","ArrowDown"],lm=[" ","Enter"],We="Select",[Jt,Qt,um]=Vt(We),[tt]=Oe(We,[um,Xt]),en=Xt(),[dm,je]=tt(We),[fm,pm]=tt(We),Ti=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:a,defaultValue:i,onValueChange:u,dir:d,name:m,autoComplete:f,disabled:v,required:g,form:w}=e,p=en(t),[h,y]=c.useState(null),[_,x]=c.useState(null),[b,S]=c.useState(!1),E=Yn(d),[C,A]=ze({prop:o,defaultProp:r??!1,onChange:s,caller:We}),[k,M]=ze({prop:a,defaultProp:i,onChange:u,caller:We}),j=c.useRef(null),L=h?w||!!h.closest("form"):!0,[W,T]=c.useState(new Set),$=Array.from(W).map(D=>D.props.value).join(";");return l.jsx(oo,{...p,children:l.jsxs(dm,{required:g,scope:t,trigger:h,onTriggerChange:y,valueNode:_,onValueNodeChange:x,valueNodeHasChildren:b,onValueNodeHasChildrenChange:S,contentId:ve(),value:k,onValueChange:M,open:C,onOpenChange:A,dir:E,triggerPointerDownPosRef:j,disabled:v,children:[l.jsx(Jt.Provider,{scope:t,children:l.jsx(fm,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(D=>{T(z=>new Set(z).add(D))},[]),onNativeOptionRemove:c.useCallback(D=>{T(z=>{const P=new Set(z);return P.delete(D),P})},[]),children:n})}),L?l.jsxs(Gi,{"aria-hidden":!0,required:g,tabIndex:-1,name:m,autoComplete:f,value:k,onChange:D=>M(D.target.value),disabled:v,form:w,children:[k===void 0?l.jsx("option",{value:""}):null,Array.from(W)]},$):null]})})};Ti.displayName=We;var Mi="SelectTrigger",Pi=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=en(n),a=je(Mi,n),i=a.disabled||o,u=H(t,a.onTriggerChange),d=Qt(n),m=c.useRef("touch"),[f,v,g]=Xi(p=>{const h=d().filter(x=>!x.disabled),y=h.find(x=>x.value===a.value),_=qi(h,p,y);_!==void 0&&a.onValueChange(_.value)}),w=p=>{i||(a.onOpenChange(!0),g()),p&&(a.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return l.jsx(Es,{asChild:!0,...s,children:l.jsx(B.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Yi(a.value)?"":void 0,...r,ref:u,onClick:I(r.onClick,p=>{p.currentTarget.focus(),m.current!=="mouse"&&w(p)}),onPointerDown:I(r.onPointerDown,p=>{m.current=p.pointerType;const h=p.target;h.hasPointerCapture(p.pointerId)&&h.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(w(p),p.preventDefault())}),onKeyDown:I(r.onKeyDown,p=>{const h=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&v(p.key),!(h&&p.key===" ")&&cm.includes(p.key)&&(w(),p.preventDefault())})})})});Pi.displayName=Mi;var Ii="SelectValue",Ni=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:a="",...i}=e,u=je(Ii,n),{onValueNodeHasChildrenChange:d}=u,m=s!==void 0,f=H(t,u.onValueNodeChange);return q(()=>{d(m)},[d,m]),l.jsx(B.span,{...i,ref:f,style:{pointerEvents:"none"},children:Yi(u.value)?l.jsx(l.Fragment,{children:a}):s})});Ni.displayName=Ii;var mm="SelectIcon",Ai=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return l.jsx(B.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});Ai.displayName=mm;var hm="SelectPortal",Oi=e=>l.jsx(dt,{asChild:!0,...e});Oi.displayName=hm;var Ve="SelectContent",Di=c.forwardRef((e,t)=>{const n=je(Ve,e.__scopeSelect),[o,r]=c.useState();if(q(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?ct.createPortal(l.jsx(ji,{scope:e.__scopeSelect,children:l.jsx(Jt.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),s):null}return l.jsx(ki,{...e,ref:t})});Di.displayName=Ve;var he=10,[ji,ke]=tt(Ve),vm="SelectContentImpl",gm=Ze("SelectContent.RemoveScroll"),ki=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:u,align:d,alignOffset:m,arrowPadding:f,collisionBoundary:v,collisionPadding:g,sticky:w,hideWhenDetached:p,avoidCollisions:h,...y}=e,_=je(Ve,n),[x,b]=c.useState(null),[S,E]=c.useState(null),C=H(t,O=>b(O)),[A,k]=c.useState(null),[M,j]=c.useState(null),L=Qt(n),[W,T]=c.useState(!1),$=c.useRef(!1);c.useEffect(()=>{if(x)return Bn(x)},[x]),zn();const D=c.useCallback(O=>{const[U,...se]=L().map(X=>X.ref.current),[K]=se.slice(-1),Y=document.activeElement;for(const X of O)if(X===Y||(X?.scrollIntoView({block:"nearest"}),X===U&&S&&(S.scrollTop=0),X===K&&S&&(S.scrollTop=S.scrollHeight),X?.focus(),document.activeElement!==Y))return},[L,S]),z=c.useCallback(()=>D([A,x]),[D,A,x]);c.useEffect(()=>{W&&z()},[W,z]);const{onOpenChange:P,triggerPointerDownPosRef:R}=_;c.useEffect(()=>{if(x){let O={x:0,y:0};const U=K=>{O={x:Math.abs(Math.round(K.pageX)-(R.current?.x??0)),y:Math.abs(Math.round(K.pageY)-(R.current?.y??0))}},se=K=>{O.x<=10&&O.y<=10?K.preventDefault():x.contains(K.target)||P(!1),document.removeEventListener("pointermove",U),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",se,{capture:!0})}}},[x,P,R]),c.useEffect(()=>{const O=()=>P(!1);return window.addEventListener("blur",O),window.addEventListener("resize",O),()=>{window.removeEventListener("blur",O),window.removeEventListener("resize",O)}},[P]);const[V,G]=Xi(O=>{const U=L().filter(Y=>!Y.disabled),se=U.find(Y=>Y.ref.current===document.activeElement),K=qi(U,O,se);K&&setTimeout(()=>K.ref.current.focus())}),Q=c.useCallback((O,U,se)=>{const K=!$.current&&!se;(_.value!==void 0&&_.value===U||K)&&(k(O),K&&($.current=!0))},[_.value]),Z=c.useCallback(()=>x?.focus(),[x]),re=c.useCallback((O,U,se)=>{const K=!$.current&&!se;(_.value!==void 0&&_.value===U||K)&&j(O)},[_.value]),Ee=o==="popper"?Nn:Li,ie=Ee===Nn?{side:i,sideOffset:u,align:d,alignOffset:m,arrowPadding:f,collisionBoundary:v,collisionPadding:g,sticky:w,hideWhenDetached:p,avoidCollisions:h}:{};return l.jsx(ji,{scope:n,content:x,viewport:S,onViewportChange:E,itemRefCallback:Q,selectedItem:A,onItemLeave:Z,itemTextRefCallback:re,focusSelectedItem:z,selectedItemText:M,position:o,isPositioned:W,searchRef:V,children:l.jsx($t,{as:gm,allowPinchZoom:!0,children:l.jsx(zt,{asChild:!0,trapped:_.open,onMountAutoFocus:O=>{O.preventDefault()},onUnmountAutoFocus:I(r,O=>{_.trigger?.focus({preventScroll:!0}),O.preventDefault()}),children:l.jsx(ut,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:O=>O.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:l.jsx(Ee,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:O=>O.preventDefault(),...y,...ie,onPlaced:()=>T(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:I(y.onKeyDown,O=>{const U=O.ctrlKey||O.altKey||O.metaKey;if(O.key==="Tab"&&O.preventDefault(),!U&&O.key.length===1&&G(O.key),["ArrowUp","ArrowDown","Home","End"].includes(O.key)){let K=L().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(O.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(O.key)){const Y=O.target,X=K.indexOf(Y);K=K.slice(X+1)}setTimeout(()=>D(K)),O.preventDefault()}})})})})})})});ki.displayName=vm;var wm="SelectItemAlignedPosition",Li=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=je(Ve,n),a=ke(Ve,n),[i,u]=c.useState(null),[d,m]=c.useState(null),f=H(t,C=>m(C)),v=Qt(n),g=c.useRef(!1),w=c.useRef(!0),{viewport:p,selectedItem:h,selectedItemText:y,focusSelectedItem:_}=a,x=c.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&d&&p&&h&&y){const C=s.trigger.getBoundingClientRect(),A=d.getBoundingClientRect(),k=s.valueNode.getBoundingClientRect(),M=y.getBoundingClientRect();if(s.dir!=="rtl"){const Y=M.left-A.left,X=k.left-Y,ue=C.left-X,Le=C.width+ue,tn=Math.max(Le,A.width),nn=window.innerWidth-he,on=Yo(X,[he,Math.max(he,nn-tn)]);i.style.minWidth=Le+"px",i.style.left=on+"px"}else{const Y=A.right-M.right,X=window.innerWidth-k.right-Y,ue=window.innerWidth-C.right-X,Le=C.width+ue,tn=Math.max(Le,A.width),nn=window.innerWidth-he,on=Yo(X,[he,Math.max(he,nn-tn)]);i.style.minWidth=Le+"px",i.style.right=on+"px"}const j=v(),L=window.innerHeight-he*2,W=p.scrollHeight,T=window.getComputedStyle(d),$=parseInt(T.borderTopWidth,10),D=parseInt(T.paddingTop,10),z=parseInt(T.borderBottomWidth,10),P=parseInt(T.paddingBottom,10),R=$+D+W+P+z,V=Math.min(h.offsetHeight*5,R),G=window.getComputedStyle(p),Q=parseInt(G.paddingTop,10),Z=parseInt(G.paddingBottom,10),re=C.top+C.height/2-he,Ee=L-re,ie=h.offsetHeight/2,O=h.offsetTop+ie,U=$+D+O,se=R-U;if(U<=re){const Y=j.length>0&&h===j[j.length-1].ref.current;i.style.bottom="0px";const X=d.clientHeight-p.offsetTop-p.offsetHeight,ue=Math.max(Ee,ie+(Y?Z:0)+X+z),Le=U+ue;i.style.height=Le+"px"}else{const Y=j.length>0&&h===j[0].ref.current;i.style.top="0px";const ue=Math.max(re,$+p.offsetTop+(Y?Q:0)+ie)+se;i.style.height=ue+"px",p.scrollTop=U-re+p.offsetTop}i.style.margin=`${he}px 0`,i.style.minHeight=V+"px",i.style.maxHeight=L+"px",o?.(),requestAnimationFrame(()=>g.current=!0)}},[v,s.trigger,s.valueNode,i,d,p,h,y,s.dir,o]);q(()=>x(),[x]);const[b,S]=c.useState();q(()=>{d&&S(window.getComputedStyle(d).zIndex)},[d]);const E=c.useCallback(C=>{C&&w.current===!0&&(x(),_?.(),w.current=!1)},[x,_]);return l.jsx(xm,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:g,onScrollButtonChange:E,children:l.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:l.jsx(B.div,{...r,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Li.displayName=wm;var _m="SelectPopperPosition",Nn=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=he,...s}=e,a=en(n);return l.jsx(Rs,{...a,...s,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.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)"}})});Nn.displayName=_m;var[xm,ho]=tt(Ve,{}),An="SelectViewport",Fi=c.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=ke(An,n),a=ho(An,n),i=H(t,s.onViewportChange),u=c.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),l.jsx(Jt.Slot,{scope:n,children:l.jsx(B.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:I(r.onScroll,d=>{const m=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:v}=a;if(v?.current&&f){const g=Math.abs(u.current-m.scrollTop);if(g>0){const w=window.innerHeight-he*2,p=parseFloat(f.style.minHeight),h=parseFloat(f.style.height),y=Math.max(p,h);if(y<w){const _=y+g,x=Math.min(w,_),b=_-x;f.style.height=x+"px",f.style.bottom==="0px"&&(m.scrollTop=b>0?b:0,f.style.justifyContent="flex-end")}}}u.current=m.scrollTop})})})]})});Fi.displayName=An;var zi="SelectGroup",[ym,bm]=tt(zi),Sm=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=ve();return l.jsx(ym,{scope:n,id:r,children:l.jsx(B.div,{role:"group","aria-labelledby":r,...o,ref:t})})});Sm.displayName=zi;var Bi="SelectLabel",Cm=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=bm(Bi,n);return l.jsx(B.div,{id:r.id,...o,ref:t})});Cm.displayName=Bi;var Ft="SelectItem",[Em,$i]=tt(Ft),Wi=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...a}=e,i=je(Ft,n),u=ke(Ft,n),d=i.value===o,[m,f]=c.useState(s??""),[v,g]=c.useState(!1),w=H(t,_=>u.itemRefCallback?.(_,o,r)),p=ve(),h=c.useRef("touch"),y=()=>{r||(i.onValueChange(o),i.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> 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 l.jsx(Em,{scope:n,value:o,disabled:r,textId:p,isSelected:d,onItemTextChange:c.useCallback(_=>{f(x=>x||(_?.textContent??"").trim())},[]),children:l.jsx(Jt.ItemSlot,{scope:n,value:o,disabled:r,textValue:m,children:l.jsx(B.div,{role:"option","aria-labelledby":p,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...a,ref:w,onFocus:I(a.onFocus,()=>g(!0)),onBlur:I(a.onBlur,()=>g(!1)),onClick:I(a.onClick,()=>{h.current!=="mouse"&&y()}),onPointerUp:I(a.onPointerUp,()=>{h.current==="mouse"&&y()}),onPointerDown:I(a.onPointerDown,_=>{h.current=_.pointerType}),onPointerMove:I(a.onPointerMove,_=>{h.current=_.pointerType,r?u.onItemLeave?.():h.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:I(a.onPointerLeave,_=>{_.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:I(a.onKeyDown,_=>{u.searchRef?.current!==""&&_.key===" "||(lm.includes(_.key)&&y(),_.key===" "&&_.preventDefault())})})})})});Wi.displayName=Ft;var rt="SelectItemText",Vi=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,a=je(rt,n),i=ke(rt,n),u=$i(rt,n),d=pm(rt,n),[m,f]=c.useState(null),v=H(t,y=>f(y),u.onItemTextChange,y=>i.itemTextRefCallback?.(y,u.value,u.disabled)),g=m?.textContent,w=c.useMemo(()=>l.jsx("option",{value:u.value,disabled:u.disabled,children:g},u.value),[u.disabled,u.value,g]),{onNativeOptionAdd:p,onNativeOptionRemove:h}=d;return q(()=>(p(w),()=>h(w)),[p,h,w]),l.jsxs(l.Fragment,{children:[l.jsx(B.span,{id:u.textId,...s,ref:v}),u.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ct.createPortal(s.children,a.valueNode):null]})});Vi.displayName=rt;var Hi="SelectItemIndicator",Ui=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return $i(Hi,n).isSelected?l.jsx(B.span,{"aria-hidden":!0,...o,ref:t}):null});Ui.displayName=Hi;var On="SelectScrollUpButton",Rm=c.forwardRef((e,t)=>{const n=ke(On,e.__scopeSelect),o=ho(On,e.__scopeSelect),[r,s]=c.useState(!1),a=H(t,o.onScrollButtonChange);return q(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=u.scrollTop>0;s(d)};const u=n.viewport;return i(),u.addEventListener("scroll",i),()=>u.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),r?l.jsx(Ki,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:u}=n;i&&u&&(i.scrollTop=i.scrollTop-u.offsetHeight)}}):null});Rm.displayName=On;var Dn="SelectScrollDownButton",Tm=c.forwardRef((e,t)=>{const n=ke(Dn,e.__scopeSelect),o=ho(Dn,e.__scopeSelect),[r,s]=c.useState(!1),a=H(t,o.onScrollButtonChange);return q(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=u.scrollHeight-u.clientHeight,m=Math.ceil(u.scrollTop)<d;s(m)};const u=n.viewport;return i(),u.addEventListener("scroll",i),()=>u.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),r?l.jsx(Ki,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:u}=n;i&&u&&(i.scrollTop=i.scrollTop+u.offsetHeight)}}):null});Tm.displayName=Dn;var Ki=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=ke("SelectScrollButton",n),a=c.useRef(null),i=Qt(n),u=c.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return c.useEffect(()=>()=>u(),[u]),q(()=>{i().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[i]),l.jsx(B.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:I(r.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(o,50))}),onPointerMove:I(r.onPointerMove,()=>{s.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(o,50))}),onPointerLeave:I(r.onPointerLeave,()=>{u()})})}),Mm="SelectSeparator",Pm=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return l.jsx(B.div,{"aria-hidden":!0,...o,ref:t})});Pm.displayName=Mm;var jn="SelectArrow",Im=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=en(n),s=je(jn,n),a=ke(jn,n);return s.open&&a.position==="popper"?l.jsx(Ts,{...r,...o,ref:t}):null});Im.displayName=jn;var Nm="SelectBubbleInput",Gi=c.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=c.useRef(null),s=H(o,r),a=am(t);return c.useEffect(()=>{const i=r.current;if(!i)return;const u=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(u,"value").set;if(a!==t&&m){const f=new Event("change",{bubbles:!0});m.call(i,t),i.dispatchEvent(f)}},[a,t]),l.jsx(B.select,{...n,style:{...Br,...n.style},ref:s,defaultValue:t})});Gi.displayName=Nm;function Yi(e){return e===""||e===void 0}function Xi(e){const t=ne(e),n=c.useRef(""),o=c.useRef(0),r=c.useCallback(a=>{const i=n.current+a;t(i),(function u(d){n.current=d,window.clearTimeout(o.current),d!==""&&(o.current=window.setTimeout(()=>u(""),1e3))})(i)},[t]),s=c.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function qi(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Am(e,Math.max(s,0));r.length===1&&(a=a.filter(d=>d!==n));const u=a.find(d=>d.textValue.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function Am(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Om=Ti,Dm=Pi,jm=Ni,km=Ai,Lm=Oi,Fm=Di,zm=Fi,Xo=Wi,qo=Vi,Zo=Ui;const Bm="uzi-select-module__wrapper__7szq0",$m="uzi-select-module__wrapperFullWidth__IyOIG",Wm="uzi-select-module__trigger__ldh8w",Vm="uzi-select-module__value__FTUJh",Hm="uzi-select-module__chevron__U6HXS",Um="uzi-select-module__content__pOWWy",Km="uzi-select-module__viewport__VGZM6",Gm="uzi-select-module__item__6uM6-",Ym="uzi-select-module__indicator__ZHcg5",Xm="uzi-select-module__indicatorIcon__kOV2G",ae={wrapper:Bm,wrapperFullWidth:$m,trigger:Wm,value:Vm,chevron:Hm,content:Um,viewport:Km,item:Gm,indicator:Ym,indicatorIcon:Xm},Jo="__uzi_select_empty__",vo=c.forwardRef(({options:e,value:t,onChange:n,placeholder:o,allowEmptyOption:r=!1,fullWidth:s=!0,className:a,id:i,name:u,disabled:d,required:m,autoComplete:f,form:v,title:g,"aria-label":w,"aria-labelledby":p,onBlur:h,onFocus:y},_)=>l.jsx("div",{className:F(ae.wrapper,s&&ae.wrapperFullWidth,a),children:l.jsxs(Om,{value:t,onValueChange:x=>n(x===Jo?"":x),name:u,disabled:d,required:m,autoComplete:f,form:v,children:[l.jsxs(Dm,{ref:_,id:i,className:ae.trigger,title:g,"aria-label":w,"aria-labelledby":p,onBlur:h,onFocus:y,children:[l.jsx(jm,{className:ae.value,placeholder:o}),l.jsx(km,{className:ae.chevron,"aria-hidden":"true",children:l.jsx("svg",{viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",children:l.jsx("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),l.jsx(Lm,{children:l.jsx(Fm,{className:ae.content,position:"popper",sideOffset:4,align:"start",children:l.jsxs(zm,{className:ae.viewport,children:[o&&r?l.jsxs(Xo,{value:Jo,className:ae.item,children:[l.jsx("span",{className:ae.indicator,children:l.jsx(Zo,{children:l.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":"true",className:ae.indicatorIcon,children:l.jsx("path",{d:"M3.5 8.5 6.5 11.5 12.5 4.5",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})})}),l.jsx(qo,{children:o})]}):null,e.map(x=>l.jsxs(Xo,{value:x.value,disabled:x.disabled,className:ae.item,children:[l.jsx("span",{className:ae.indicator,children:l.jsx(Zo,{children:l.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":"true",className:ae.indicatorIcon,children:l.jsx("path",{d:"M3.5 8.5 6.5 11.5 12.5 4.5",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})})}),l.jsx(qo,{children:x.label})]},x.value))]})})})]})}));vo.displayName="Select";const Zi=c.forwardRef(({options:e,value:t,onChange:n,placeholder:o="All",allowClear:r=!0,...s},a)=>l.jsx(vo,{ref:a,options:e,value:t,onChange:n,placeholder:o,allowEmptyOption:r,fullWidth:!1,...s}));Zi.displayName="Dropdown";const qm="uzi-dropdown-menu-module__content__n-ElH",Zm="uzi-dropdown-menu-module__item__tBNtW",Jm="uzi-dropdown-menu-module__itemDestructive__oWmKd",Qm="uzi-dropdown-menu-module__insetItem__g7ONJ",eh="uzi-dropdown-menu-module__indicator__5qwFh",th="uzi-dropdown-menu-module__indicatorIcon__nhJMw",nh="uzi-dropdown-menu-module__radioDot__GWUVT",oh="uzi-dropdown-menu-module__label__sFnNR",rh="uzi-dropdown-menu-module__separator__PgUob",sh="uzi-dropdown-menu-module__chevron__kxfiF",te={content:qm,item:Zm,itemDestructive:Jm,insetItem:Qm,indicator:eh,indicatorIcon:th,radioDot:nh,label:oh,separator:rh,chevron:sh};function ih(e){return l.jsx(bi,{...e})}function ah(e){return l.jsx(Si,{...e})}function ch(e){return l.jsx(kp,{...e})}function lh(e){return l.jsx(po,{...e})}function uh(e){return l.jsx(Wp,{...e})}function dh(e){return l.jsx(zp,{...e})}function fh({className:e,sideOffset:t=4,...n}){return l.jsx(po,{children:l.jsx(Ci,{sideOffset:t,className:F(te.content,e),...n})})}function ph({className:e,inset:t,variant:n="default",...o}){return l.jsx(Fp,{"data-inset":t?"true":void 0,className:F(te.item,n==="destructive"&&te.itemDestructive,e),...o})}function mh({className:e,children:t,...n}){return l.jsxs(Ei,{className:F(te.item,te.insetItem,e),...n,children:[l.jsx("span",{className:te.indicator,children:l.jsx(mo,{children:l.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":"true",className:te.indicatorIcon,children:l.jsx("path",{d:"M3.5 8.5 6.5 11.5 12.5 4.5",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})})}),t]})}function hh({className:e,children:t,...n}){return l.jsxs(Bp,{className:F(te.item,te.insetItem,e),...n,children:[l.jsx("span",{className:te.indicator,children:l.jsx(mo,{children:l.jsx("span",{className:te.radioDot})})}),t]})}function vh({className:e,inset:t,...n}){return l.jsx(Lp,{"data-inset":t?"true":void 0,className:F(te.label,e),...n})}function gh({className:e,...t}){return l.jsx($p,{className:F(te.separator,e),...t})}function wh({className:e,inset:t,children:n,...o}){return l.jsxs(Vp,{"data-inset":t?"true":void 0,className:F(te.item,e),...o,children:[n,l.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16","aria-hidden":"true",className:te.chevron,children:l.jsx("path",{d:"M6 3.5 10.5 8 6 12.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})]})}function _h({className:e,...t}){return l.jsx(Hp,{className:F(te.content,e),...t})}const xh=["light","dark","system"],yh=["blue","cyan","violet","emerald","amber","rose"],bh="uzi-theme",Sh="uzi-accent",Ch=bh,Eh=Sh,Rh="data-uzi-theme",Th="data-uzi-accent",Ji=N.createContext(void 0);function Mh(e){return xh.includes(e)}function Ph(e){return yh.includes(e)}function Ih(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Nh({children:e,theme:t,defaultTheme:n="system",accent:o,defaultAccent:r="blue",onThemeChange:s,onAccentChange:a,storageKey:i=Ch,accentStorageKey:u=Eh,disableStorage:d=!1,toastConfig:m}){const[f,v]=N.useState(n),[g,w]=N.useState(r),[p,h]=N.useState("light");N.useEffect(()=>{if(h(Ih()),!d){const M=window.localStorage.getItem(i);Mh(M)&&v(M);const j=window.localStorage.getItem(u);Ph(j)&&w(j)}},[d,i,u]);const y=t!==void 0,_=o!==void 0,x=y?t:f,b=_?o:g,S=x==="system"?p:x;N.useEffect(()=>{if(typeof window>"u")return;const M=window.matchMedia("(prefers-color-scheme: dark)"),j=()=>h(M.matches?"dark":"light");return j(),M.addEventListener("change",j),()=>M.removeEventListener("change",j)},[]),N.useEffect(()=>{if(typeof document>"u")return;const M=document.documentElement;M.setAttribute(Rh,S),M.setAttribute(Th,b),M.style.colorScheme=S,M.classList.toggle("dark",S==="dark")},[b,S]);const E=N.useCallback(M=>{y||v(M),!d&&typeof window<"u"&&window.localStorage.setItem(i,M),s?.(M)},[d,y,s,i]),C=N.useCallback(M=>{_||w(M),!d&&typeof window<"u"&&window.localStorage.setItem(u,M),a?.(M)},[u,d,_,a]),A=N.useCallback(()=>{E(S==="dark"?"light":"dark")},[S,E]),k=N.useMemo(()=>({theme:x,resolvedTheme:S,accent:b,setTheme:E,setAccent:C,toggleTheme:A}),[b,x,S,C,E,A]);return l.jsx(Ji.Provider,{value:k,children:l.jsx(es,{config:m,children:e})})}function Qi(){const e=N.useContext(Ji);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e}const Ah="uzi-theme-toggle-button-module__withLabel__KqtDj",Oh={withLabel:Ah};function Dh(){return l.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",width:"16",height:"16",fill:"none",children:l.jsx("path",{d:"M20 15.2A8.5 8.5 0 0 1 8.8 4 9 9 0 1 0 20 15.2Z",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function jh(){return l.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",width:"16",height:"16",fill:"none",children:[l.jsx("circle",{cx:"12",cy:"12",r:"4",stroke:"currentColor",strokeWidth:"1.8"}),l.jsx("path",{d:"M12 2.75v2.5M12 18.75v2.5M21.25 12h-2.5M5.25 12h-2.5M18.54 5.46l-1.77 1.77M7.23 16.77l-1.77 1.77M18.54 18.54l-1.77-1.77M7.23 7.23 5.46 5.46",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})}function ea({showLabel:e=!1,lightLabel:t="Light mode",darkLabel:n="Dark mode",className:o,onClick:r,...s}){const{resolvedTheme:a,toggleTheme:i}=Qi(),u=a==="dark"?t:n;return l.jsxs(sr,{type:"button",variant:"ghost",size:e?"sm":"icon",className:F(e&&Oh.withLabel,o),"aria-label":`Switch to ${u.toLowerCase()}`,title:`Switch to ${u.toLowerCase()}`,onClick:d=>{r?.(d),d.defaultPrevented||i()},...s,children:[a==="dark"?l.jsx(jh,{}):l.jsx(Dh,{}),e&&l.jsx("span",{children:u})]})}const kh="uzi-top-bar-module__topBar__MJ-7S",Lh="uzi-top-bar-module__topBarStatic__JvEwt",Fh="uzi-top-bar-module__topBarInner__PBbi8",zh="uzi-top-bar-module__topBarStart__DrdN2",Bh="uzi-top-bar-module__topBarBrand__80VV3",$h="uzi-top-bar-module__topBarBrandContent__O4Uto",Wh="uzi-top-bar-module__topBarCenter__Kwxg-",Vh="uzi-top-bar-module__topBarCenterGroup__7Ishp",Hh="uzi-top-bar-module__topBarActions__mgMd8",me={topBar:kh,topBarStatic:Lh,topBarInner:Fh,topBarStart:zh,topBarBrand:Bh,topBarBrandContent:$h,topBarCenter:Wh,topBarCenterGroup:Vh,topBarActions:Hh};function ta({leading:e,brand:t,brandHref:n,brandingLocation:o="left",start:r,center:s,actions:a,showThemeToggle:i=!1,themeToggleProps:u,className:d,innerClassName:m,isSticky:f,sticky:v=!0,children:g,...w}){const p=f??v,h=t?n?l.jsx("a",{href:n,className:me.topBarBrand,children:l.jsx("span",{className:me.topBarBrandContent,children:t})}):l.jsx("div",{className:me.topBarBrand,children:l.jsx("span",{className:me.topBarBrandContent,children:t})}):null;return l.jsx("header",{className:F(me.topBar,!p&&me.topBarStatic,d),...w,children:l.jsxs("div",{className:F(me.topBarInner,m),children:[l.jsxs("div",{className:me.topBarStart,children:[e,o==="left"&&h,r]}),h&&o==="center"||s||g?l.jsx("div",{className:me.topBarCenter,children:l.jsxs("div",{className:me.topBarCenterGroup,children:[o==="center"&&h,s??g]})}):null,l.jsxs("div",{className:me.topBarActions,children:[i&&l.jsx(ea,{...u}),a]})]})})}const Uh="uzi-app-shell-module__appShell__S0cVI",Kh="uzi-app-shell-module__appShellAnimated__-CRIl",Gh="uzi-app-shell-module__appShellOpen__1rZUl",Yh="uzi-app-shell-module__appShellCollapsed__fSasN",Xh="uzi-app-shell-module__appShellTopbar__rgXsW",qh="uzi-app-shell-module__appShellHamburger__BciFA",Zh="uzi-app-shell-module__appShellSidebar__oY7uj",Jh="uzi-app-shell-module__appShellMain__eHP2r",Qh="uzi-app-shell-module__appShellBackdrop__y31xs",ev="uzi-app-shell-module__appShellSidebarOpen__Z5AIo",xe={appShell:Uh,appShellAnimated:Kh,appShellOpen:Gh,appShellCollapsed:Yh,appShellTopbar:Xh,appShellHamburger:qh,appShellSidebar:Zh,appShellMain:Jh,appShellBackdrop:Qh,appShellSidebarOpen:ev},tv=960;function Qo(){return typeof window>"u"?!1:window.innerWidth>=tv}function nv({children:e,sidebar:t,brand:n,brandHref:o,topbarStart:r,topbarEnd:s,showThemeToggle:a=!1,themeToggleProps:i,topBarBrandingLocation:u="left",className:d,sidebarClassName:m,topbarClassName:f,mainClassName:v,sidebarWidth:g,closeSidebarOnChangeKey:w,hamburgerLabel:p="Toggle navigation",onSidebarToggle:h}){const[y,_]=N.useState(!1),[x,b]=N.useState(!1),[S,E]=N.useState(!1),C=N.useRef(!1),A=N.useRef(w),k=N.useRef(null),M=N.useRef(null),j=N.useRef(null),L=N.useId();N.useEffect(()=>{const P=Qo();_(P),b(P),C.current=P;const R=window.requestAnimationFrame(()=>{E(!0)}),V=()=>{const G=Qo();_(G),G!==C.current&&(b(G),C.current=G)};return window.addEventListener("resize",V),()=>{window.cancelAnimationFrame(R),window.removeEventListener("resize",V)}},[]),N.useEffect(()=>{if(y||!x)return;const P=j.current,R=()=>b(!1),V=Q=>{const Z=Q.target;Z&&(k.current?.contains(Z)||M.current?.contains(Z)||R())},G=window.setTimeout(()=>{document.addEventListener("pointerdown",V),window.addEventListener("scroll",R,{passive:!0}),P?.addEventListener("scroll",R,{passive:!0}),document.addEventListener("touchmove",R,{passive:!0})},10);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",V),window.removeEventListener("scroll",R),P?.removeEventListener("scroll",R),document.removeEventListener("touchmove",R)}},[x,y]),N.useEffect(()=>{!y&&A.current!==w&&b(!1),A.current=w},[w,y]),N.useEffect(()=>{h?.(x)},[x,h]);const W=()=>b(P=>!P),T=g===void 0?void 0:typeof g=="number"?`${g}px`:g,$=T?{"--app-shell-sidebar-width":T}:void 0,D=F(xe.appShell,S&&xe.appShellAnimated,x?xe.appShellOpen:xe.appShellCollapsed,d),z=F(xe.appShellSidebar,x&&xe.appShellSidebarOpen,m);return l.jsxs("div",{className:D,style:$,"data-app-shell":!0,"data-desktop":y?"true":"false","data-sidebar-open":x?"true":"false",children:[l.jsx(ta,{className:F(xe.appShellTopbar,f),leading:l.jsx("button",{ref:M,type:"button",className:xe.appShellHamburger,onClick:W,"aria-label":p,"aria-expanded":x,"aria-controls":L,children:l.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:l.jsx("path",{d:"M3 6h18M3 12h18M3 18h18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})})}),brand:n,brandHref:o,brandingLocation:u,start:r,actions:s,showThemeToggle:a,themeToggleProps:i}),!y&&x&&l.jsx("div",{className:xe.appShellBackdrop,onClick:()=>b(!1),onTouchStart:()=>b(!1),"aria-hidden":"true"}),l.jsx("aside",{ref:k,id:L,className:z,"aria-label":"Sidebar navigation",children:t}),l.jsx("main",{ref:j,className:F(xe.appShellMain,v),children:e})]})}const ov="uzi-sidebar-nav-module__sidebarNav__eUI5c",rv="uzi-sidebar-nav-module__sidebarNavCollapsed__xTM9s",sv="uzi-sidebar-nav-module__header__Y4NLy",iv="uzi-sidebar-nav-module__footer__GjWky",av="uzi-sidebar-nav-module__sections__mXuGQ",cv="uzi-sidebar-nav-module__section__yjtCY",lv="uzi-sidebar-nav-module__sectionItems__tNcph",uv="uzi-sidebar-nav-module__sectionLabel__Wx94m",dv="uzi-sidebar-nav-module__item__uMHkJ",fv="uzi-sidebar-nav-module__itemActive__wBbiS",pv="uzi-sidebar-nav-module__itemCollapsed__jLJN-",mv="uzi-sidebar-nav-module__itemDisabled__Yf8Il",hv="uzi-sidebar-nav-module__icon__tyrUg",vv="uzi-sidebar-nav-module__itemBody__wI0iy",gv="uzi-sidebar-nav-module__labelRow__D8sEJ",wv="uzi-sidebar-nav-module__label__A-nt6",_v="uzi-sidebar-nav-module__description__Xf3Si",xv="uzi-sidebar-nav-module__badge__-hnFd",J={sidebarNav:ov,sidebarNavCollapsed:rv,header:sv,footer:iv,sections:av,section:cv,sectionItems:lv,sectionLabel:uv,item:dv,itemActive:fv,itemCollapsed:pv,itemDisabled:mv,icon:hv,itemBody:vv,labelRow:gv,label:wv,description:_v,badge:xv},yv=(e,t)=>e.active!==void 0?e.active:!e.href||!t?!1:e.href==="/"?t==="/":t.startsWith(e.href);function bv({items:e=[],sections:t,currentPath:n,getIsActive:o=yv,onItemClick:r,header:s,footer:a,ariaLabel:i="Sidebar navigation",collapsed:u=!1,iconSize:d,className:m,itemClassName:f,sectionClassName:v}){const g=t?.length?t:[{id:"default",items:e}],w=d!==void 0?{"--sidebar-nav-icon-size":typeof d=="number"?`${d}px`:d}:void 0;return l.jsxs("nav",{className:F(J.sidebarNav,u&&J.sidebarNavCollapsed,m),"aria-label":i,style:w,children:[s?l.jsx("div",{className:J.header,children:s}):null,l.jsx("div",{className:J.sections,children:g.map((p,h)=>l.jsxs("div",{className:F(J.section,v),children:[p.label&&!u?l.jsx("div",{className:J.sectionLabel,children:p.label}):null,l.jsx("div",{className:J.sectionItems,children:p.items.map((y,_)=>l.jsx(Sv,{item:y,active:o(y,n),collapsed:u,itemClassName:f,onItemClick:r},`${p.id??h}-${y.href??y.title??_}`))})]},p.id??`section-${h}`))}),a?l.jsx("div",{className:J.footer,children:a}):null]})}function Sv({item:e,active:t,collapsed:n,itemClassName:o,onItemClick:r}){const s=e.rel??(e.target==="_blank"?"noreferrer":void 0),a=e.title??(typeof e.label=="string"?e.label:void 0),i=F(J.item,t&&J.itemActive,n&&J.itemCollapsed,e.disabled&&J.itemDisabled,o),u=l.jsxs(l.Fragment,{children:[e.icon&&l.jsx("span",{className:J.icon,children:e.icon}),n?null:l.jsxs("span",{className:J.itemBody,children:[l.jsxs("span",{className:J.labelRow,children:[l.jsx("span",{className:J.label,children:e.label}),e.badge&&l.jsx("span",{className:J.badge,children:e.badge})]}),e.description?l.jsx("span",{className:J.description,children:e.description}):null]})]}),d=()=>{e.disabled||(e.onClick?.(),r?.(e))};return e.href?e.disabled?l.jsx("div",{className:i,"aria-current":t?"page":void 0,"aria-disabled":"true",title:n?a:void 0,children:u}):l.jsx("a",{className:i,href:e.href,target:e.target,rel:s,"aria-current":t?"page":void 0,title:n?a:void 0,onClick:d,children:u}):l.jsx("button",{type:"button",className:i,"aria-current":t?"page":void 0,"aria-disabled":e.disabled?"true":void 0,disabled:e.disabled,title:n?a:void 0,onClick:d,children:u})}const Cv="uzi-skeleton-module__skeleton__fula5",er={skeleton:Cv,"skeleton-pulse":"uzi-skeleton-module__skeleton-pulse__Yp45W","radius-sm":"uzi-skeleton-module__radius-sm__FdccD","radius-md":"uzi-skeleton-module__radius-md__zH3RE","radius-lg":"uzi-skeleton-module__radius-lg__YVrHw","radius-full":"uzi-skeleton-module__radius-full__5o2m0"};function Ev({width:e,height:t,radius:n="md",className:o,style:r,...s}){return l.jsx("div",{className:F(er.skeleton,er[`radius-${n}`],o),style:{width:e,height:t,...r},"aria-hidden":"true",...s})}const Rv="uzi-progress-module__track__gM0oV",Tv="uzi-progress-module__fill__aLAbp",xn={track:Rv,fill:Tv,"tone-default":"uzi-progress-module__tone-default__fhf7o","tone-success":"uzi-progress-module__tone-success__FsGHD","tone-warning":"uzi-progress-module__tone-warning__UAttL","tone-danger":"uzi-progress-module__tone-danger__-L-Ee"};function Mv({value:e,tone:t="default",className:n,"aria-label":o,...r}){const s=Math.max(0,Math.min(100,e));return l.jsx("div",{className:F(xn.track,n),role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o,...r,children:l.jsx("div",{className:F(xn.fill,xn[`tone-${t}`]),style:{width:`${s}%`}})})}exports.Alert=Ql;exports.AppShell=nv;exports.Avatar=$a;exports.AvatarFallback=Va;exports.AvatarImage=Wa;exports.Button=sr;exports.Card=Ka;exports.Checkbox=os;exports.Dropdown=Zi;exports.DropdownMenu=ih;exports.DropdownMenuCheckboxItem=mh;exports.DropdownMenuContent=fh;exports.DropdownMenuGroup=ch;exports.DropdownMenuItem=ph;exports.DropdownMenuLabel=vh;exports.DropdownMenuPortal=lh;exports.DropdownMenuRadioGroup=dh;exports.DropdownMenuRadioItem=hh;exports.DropdownMenuSeparator=gh;exports.DropdownMenuSub=uh;exports.DropdownMenuSubContent=_h;exports.DropdownMenuSubTrigger=wh;exports.DropdownMenuTrigger=ah;exports.Input=ts;exports.Label=ns;exports.Modal=Gl;exports.ModalOverlay=zr;exports.MultiSelect=Ri;exports.Pill=qa;exports.Progress=Mv;exports.Select=vo;exports.SidebarNav=bv;exports.Skeleton=Ev;exports.ThemeProvider=Nh;exports.ThemeToggleButton=ea;exports.ToastProvider=es;exports.TopBar=ta;exports.cx=F;exports.useTheme=Qi;exports.useToast=Gu;
46
- //# sourceMappingURL=index.cjs.map
46
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Or=`DialogDescriptionWarning`,kr=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Er(Or).contentName}}.`;return u.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ar=tr,jr=sr,Mr=lr,Nr=pr,Pr=vr,Fr=br,Ir=Sr,V={portalLayer:`uzi-modal-module__portalLayer__t7blc`,backdrop:`uzi-modal-module__backdrop__IMd3b`,backdropFadeIn:`uzi-modal-module__backdropFadeIn__GNJdx`,backdropFadeOut:`uzi-modal-module__backdropFadeOut__R-3K5`,overlayContent:`uzi-modal-module__overlayContent__0DtbP`,modalContentIn:`uzi-modal-module__modalContentIn__fub8M`,modalContentOut:`uzi-modal-module__modalContentOut__elTJ3`,modal:`uzi-modal-module__modal__Mao59`,"size-sm":`uzi-modal-module__size-sm__Uu9je`,"size-md":`uzi-modal-module__size-md__TiiWy`,"size-lg":`uzi-modal-module__size-lg__BrTIO`,"size-xl":`uzi-modal-module__size-xl__sj0mh`,header:`uzi-modal-module__header__PmCaO`,titles:`uzi-modal-module__titles__IboyQ`,title:`uzi-modal-module__title__Zd7pL`,subtitle:`uzi-modal-module__subtitle__t-LRK`,closeButton:`uzi-modal-module__closeButton__GTiZr`,body:`uzi-modal-module__body__km6FQ`,footer:`uzi-modal-module__footer__jWLTv`};function Lr({open:e,onClose:t,className:n,children:r}){return(0,d.jsx)(Ar,{open:e,onOpenChange:e=>{e||t()},children:(0,d.jsx)(jr,{children:(0,d.jsxs)(`div`,{className:V.portalLayer,children:[(0,d.jsx)(Mr,{className:D(V.backdrop,n)}),(0,d.jsx)(Nr,{className:V.overlayContent,children:r})]})})})}function Rr({open:e,onClose:t,title:n,subtitle:r,size:i=`md`,children:a,footer:o}){return(0,d.jsx)(Lr,{open:e,onClose:t,children:(0,d.jsxs)(`div`,{className:D(V.modal,V[`size-${i}`]),children:[(0,d.jsxs)(`div`,{className:V.header,children:[(0,d.jsxs)(`div`,{className:V.titles,children:[(0,d.jsx)(Pr,{className:V.title,children:n}),r?(0,d.jsx)(Fr,{className:V.subtitle,children:r}):null]}),(0,d.jsx)(Ir,{asChild:!0,children:(0,d.jsx)(`button`,{className:V.closeButton,"aria-label":`Close`,children:(0,d.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,d.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})})]}),(0,d.jsx)(`div`,{className:V.body,children:a}),o&&(0,d.jsx)(`div`,{className:V.footer,children:o})]})})}var zr={alert:`uzi-alert-module__alert__7Bt6c`,success:`uzi-alert-module__success__apdFG`,error:`uzi-alert-module__error__KLgi1`,warning:`uzi-alert-module__warning__F4fpk`,info:`uzi-alert-module__info__1IKHt`};function Br({tone:e,children:t,className:n}){return(0,d.jsx)(`div`,{className:D(zr.alert,zr[e],n),role:`alert`,children:t})}function Vr(e){let t=e+`CollectionProvider`,[n,r]=ke(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=u.default.useRef(null),a=u.default.useRef(new Map).current;return(0,d.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=Le(s),l=u.default.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,d.jsx)(c,{ref:h(t,a(s,n).collectionRef),children:r})});l.displayName=s;let f=e+`CollectionItemSlot`,p=`data-radix-collection-item`,m=Le(f),g=u.default.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=u.default.useRef(null),s=h(t,o),c=a(f,n);return u.default.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,d.jsx)(m,{[p]:``,ref:s,children:r})});g.displayName=f;function _(t){let n=a(e+`CollectionConsumer`,t);return u.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:g},_,r]}var Hr=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Ur=`VisuallyHidden`,Wr=u.forwardRef((e,t)=>(0,d.jsx)(z.span,{...e,ref:t,style:{...Hr,...e.style}}));Wr.displayName=Ur;var Gr=`ToastProvider`,[Kr,qr,Jr]=Vr(`Toast`),[Yr,Xr]=ke(`Toast`,[Jr]),[Zr,Qr]=Yr(Gr),$r=e=>{let{__scopeToast:t,label:n=`Notification`,duration:r=5e3,swipeDirection:i=`right`,swipeThreshold:a=50,children:o}=e,[s,c]=u.useState(null),[l,f]=u.useState(0),p=u.useRef(!1),m=u.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Gr}\`. Expected non-empty \`string\`.`),(0,d.jsx)(Kr.Provider,{scope:t,children:(0,d.jsx)(Zr,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:l,viewport:s,onViewportChange:c,onToastAdd:u.useCallback(()=>f(e=>e+1),[]),onToastRemove:u.useCallback(()=>f(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:o})})};$r.displayName=Gr;var ei=`ToastViewport`,ti=[`F8`],ni=`toast.viewportPause`,ri=`toast.viewportResume`,ii=u.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:r=ti,label:i=`Notifications ({hotkey})`,...a}=e,o=Qr(ei,n),s=qr(n),c=u.useRef(null),l=u.useRef(null),f=u.useRef(null),p=u.useRef(null),m=h(t,p,o.onViewportChange),g=r.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),_=o.toastCount>0;u.useEffect(()=>{let e=e=>{r.length!==0&&r.every(t=>e[t]||e.code===t)&&p.current?.focus()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),u.useEffect(()=>{let e=c.current,t=p.current;if(_&&e&&t){let n=()=>{if(!o.isClosePausedRef.current){let e=new CustomEvent(ni);t.dispatchEvent(e),o.isClosePausedRef.current=!0}},r=()=>{if(o.isClosePausedRef.current){let e=new CustomEvent(ri);t.dispatchEvent(e),o.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener(`focusin`,n),e.addEventListener(`focusout`,i),e.addEventListener(`pointermove`,n),e.addEventListener(`pointerleave`,a),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),()=>{e.removeEventListener(`focusin`,n),e.removeEventListener(`focusout`,i),e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerleave`,a),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)}}},[_,o.isClosePausedRef]);let v=u.useCallback(({tabbingDirection:e})=>{let t=s().map(t=>{let n=t.ref.current,r=[n,...ji(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?t.reverse():t).flat()},[s]);return u.useEffect(()=>{let e=p.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if(t.key===`Tab`&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){l.current?.focus();return}let i=v({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);Mi(i.slice(a+1))?t.preventDefault():r?l.current?.focus():f.current?.focus()}};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}},[s,v]),(0,d.jsxs)(at,{ref:c,role:`region`,"aria-label":i.replace(`{hotkey}`,g),tabIndex:-1,style:{pointerEvents:_?void 0:`none`},children:[_&&(0,d.jsx)(oi,{ref:l,onFocusFromOutsideViewport:()=>{Mi(v({tabbingDirection:`forwards`}))}}),(0,d.jsx)(Kr.Slot,{scope:n,children:(0,d.jsx)(z.ol,{tabIndex:-1,...a,ref:m})}),_&&(0,d.jsx)(oi,{ref:f,onFocusFromOutsideViewport:()=>{Mi(v({tabbingDirection:`backwards`}))}})]})});ii.displayName=ei;var ai=`ToastFocusProxy`,oi=u.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=Qr(ai,n);return(0,d.jsx)(Wr,{tabIndex:0,...i,ref:t,style:{position:`fixed`},onFocus:e=>{let t=e.relatedTarget;a.viewport?.contains(t)||r()}})});oi.displayName=ai;var si=`Toast`,ci=`toast.swipeStart`,li=`toast.swipeMove`,ui=`toast.swipeCancel`,di=`toast.swipeEnd`,fi=u.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...o}=e,[s,c]=Pe({prop:r,defaultProp:i??!0,onChange:a,caller:si});return(0,d.jsx)(Tt,{present:n||s,children:(0,d.jsx)(hi,{open:s,...o,ref:t,onClose:()=>c(!1),onPause:P(e.onPause),onResume:P(e.onResume),onSwipeStart:L(e.onSwipeStart,e=>{e.currentTarget.setAttribute(`data-swipe`,`start`)}),onSwipeMove:L(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`move`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-y`,`${n}px`)}),onSwipeCancel:L(e.onSwipeCancel,e=>{e.currentTarget.setAttribute(`data-swipe`,`cancel`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-y`)}),onSwipeEnd:L(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`end`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-y`,`${n}px`),c(!1)})})})});fi.displayName=si;var[pi,mi]=Yr(si,{onClose(){}}),hi=u.forwardRef((e,t)=>{let{__scopeToast:n,type:r=`foreground`,duration:i,open:a,onClose:o,onEscapeKeyDown:s,onPause:c,onResume:l,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:g,onSwipeEnd:_,...v}=e,y=Qr(si,n),[b,x]=u.useState(null),S=h(t,e=>x(e)),C=u.useRef(null),w=u.useRef(null),T=i||y.duration,E=u.useRef(0),D=u.useRef(T),O=u.useRef(0),{onToastAdd:k,onToastRemove:A}=y,j=P(()=>{b?.contains(document.activeElement)&&y.viewport?.focus(),o()}),M=u.useCallback(e=>{!e||e===1/0||(window.clearTimeout(O.current),E.current=new Date().getTime(),O.current=window.setTimeout(j,e))},[j]);u.useEffect(()=>{let e=y.viewport;if(e){let t=()=>{M(D.current),l?.()},n=()=>{let e=new Date().getTime()-E.current;D.current-=e,window.clearTimeout(O.current),c?.()};return e.addEventListener(ni,n),e.addEventListener(ri,t),()=>{e.removeEventListener(ni,n),e.removeEventListener(ri,t)}}},[y.viewport,T,c,l,M]),u.useEffect(()=>{a&&!y.isClosePausedRef.current&&M(T)},[a,T,y.isClosePausedRef,M]),u.useEffect(()=>(k(),()=>A()),[k,A]);let N=u.useMemo(()=>b?Ei(b):null,[b]);return y.viewport?(0,d.jsxs)(d.Fragment,{children:[N&&(0,d.jsx)(gi,{__scopeToast:n,role:`status`,"aria-live":r===`foreground`?`assertive`:`polite`,children:N}),(0,d.jsx)(pi,{scope:n,onClose:j,children:f.createPortal((0,d.jsx)(Kr.ItemSlot,{scope:n,children:(0,d.jsx)(it,{asChild:!0,onEscapeKeyDown:L(s,()=>{y.isFocusedToastEscapeKeyDownRef.current||j(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,d.jsx)(z.li,{tabIndex:0,"data-state":a?`open`:`closed`,"data-swipe-direction":y.swipeDirection,...v,ref:S,style:{userSelect:`none`,touchAction:`none`,...e.style},onKeyDown:L(e.onKeyDown,e=>{e.key===`Escape`&&(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,j()))}),onPointerDown:L(e.onPointerDown,e=>{e.button===0&&(C.current={x:e.clientX,y:e.clientY})}),onPointerMove:L(e.onPointerMove,e=>{if(!C.current)return;let t=e.clientX-C.current.x,n=e.clientY-C.current.y,r=!!w.current,i=[`left`,`right`].includes(y.swipeDirection),a=[`left`,`up`].includes(y.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},u={originalEvent:e,delta:l};r?(w.current=l,Di(li,m,u,{discrete:!1})):Oi(l,y.swipeDirection,c)?(w.current=l,Di(ci,p,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(C.current=null)}),onPointerUp:L(e.onPointerUp,e=>{let t=w.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),w.current=null,C.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};Oi(t,y.swipeDirection,y.swipeThreshold)?Di(di,_,r,{discrete:!0}):Di(ui,g,r,{discrete:!0}),n.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),gi=e=>{let{__scopeToast:t,children:n,...r}=e,i=Qr(si,t),[a,o]=u.useState(!1),[s,c]=u.useState(!1);return ki(()=>o(!0)),u.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,d.jsx)(Ct,{asChild:!0,children:(0,d.jsx)(Wr,{...r,children:a&&(0,d.jsxs)(d.Fragment,{children:[i.label,` `,n]})})})},_i=`ToastTitle`,vi=u.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,d.jsx)(z.div,{...r,ref:t})});vi.displayName=_i;var yi=`ToastDescription`,bi=u.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,d.jsx)(z.div,{...r,ref:t})});bi.displayName=yi;var xi=`ToastAction`,Si=u.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,d.jsx)(Ti,{altText:n,asChild:!0,children:(0,d.jsx)(wi,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${xi}\`. Expected non-empty \`string\`.`),null)});Si.displayName=xi;var Ci=`ToastClose`,wi=u.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,i=mi(Ci,n);return(0,d.jsx)(Ti,{asChild:!0,children:(0,d.jsx)(z.button,{type:`button`,...r,ref:t,onClick:L(e.onClick,i.onClose)})})});wi.displayName=Ci;var Ti=u.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...i}=e;return(0,d.jsx)(z.div,{"data-radix-toast-announce-exclude":``,"data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Ei(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),Ai(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.radixToastAnnounceExclude===``;if(!n)if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...Ei(e))}}),t}function Di(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ue(i,a):i.dispatchEvent(a)}var Oi=(e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n};function ki(e=()=>{}){let t=P(e);F(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}function Ai(e){return e.nodeType===e.ELEMENT_NODE}function ji(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Mi(e){let t=document.activeElement;return e.some(e=>e===t?!0:(e.focus(),document.activeElement!==t))}var Ni=$r,Pi=ii,Fi=fi,Ii=bi,Li=Si,Ri=wi,H={stack:`uzi-toast-module__stack__SRrda`,topRight:`uzi-toast-module__topRight__WiZzM`,topLeft:`uzi-toast-module__topLeft__SzFS9`,topCenter:`uzi-toast-module__topCenter__X5W-x`,bottomRight:`uzi-toast-module__bottomRight__DMtoS`,bottomLeft:`uzi-toast-module__bottomLeft__ZZ7VF`,bottomCenter:`uzi-toast-module__bottomCenter__QNJrM`,toast:`uzi-toast-module__toast__HNUcj`,toastSlideIn:`uzi-toast-module__toastSlideIn__BTXfm`,toastSlideOut:`uzi-toast-module__toastSlideOut__mBX-G`,toastSwipeOut:`uzi-toast-module__toastSwipeOut__R-jk2`,icon:`uzi-toast-module__icon__LIAqr`,body:`uzi-toast-module__body__9vzs7`,message:`uzi-toast-module__message__TBY65`,actions:`uzi-toast-module__actions__Iykd9`,actionButton:`uzi-toast-module__actionButton__cvUr0`,controls:`uzi-toast-module__controls__LqA4Q`,iconButton:`uzi-toast-module__iconButton__FOsOp`,iconButtonError:`uzi-toast-module__iconButtonError__NJsLX`},zi={position:`top-right`,maxToasts:5,defaultDuration:4e3,pauseOnHover:!0,pauseOnFocusLoss:!0},Bi=(0,u.createContext)(void 0),Vi=0,Hi=()=>`toast-${++Vi}-${Date.now()}`;function Ui({children:e,config:t}){let[n,r]=(0,u.useState)([]),[i,a]=(0,u.useState)(!1),o=(0,u.useMemo)(()=>({...zi,...t}),[t]),s=(0,u.useCallback)((e,t={})=>{let n=Hi();return r(r=>{let i=[...r,{id:n,message:e,type:t.type??`info`,duration:t.duration??(t.type===`error`?6e3:o.defaultDuration),dismissible:t.dismissible??!0,copyable:t.copyable??!1,action:t.action}];return i.length>o.maxToasts&&i.shift(),i}),n},[o.defaultDuration,o.maxToasts]),c=(0,u.useCallback)((e,t)=>s(e,{...t,type:`success`}),[s]),l=(0,u.useCallback)((e,t)=>s(e,{copyable:!0,...t,type:`error`}),[s]),f=(0,u.useCallback)((e,t)=>s(e,{...t,type:`warning`}),[s]),p=(0,u.useCallback)((e,t)=>s(e,{...t,type:`info`}),[s]),m=(0,u.useCallback)(e=>{r(t=>t.filter(t=>t.id!==e))},[]),h=(0,u.useCallback)(()=>r([]),[]);(0,u.useEffect)(()=>{if(!o.pauseOnFocusLoss)return;let e=()=>a(document.visibilityState!==`visible`);return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[o.pauseOnFocusLoss]);let g=(0,u.useMemo)(()=>({toasts:n,push:s,success:c,error:l,warning:f,info:p,dismiss:m,dismissAll:h}),[n,s,c,l,f,p,m,h]);return(0,d.jsx)(Bi.Provider,{value:g,children:(0,d.jsxs)(Ni,{swipeDirection:`right`,children:[e,(0,d.jsx)(Gi,{toasts:n,position:o.position,pauseOnHover:o.pauseOnHover,isPaused:i,onDismiss:m,onPauseChange:a})]})})}function Wi(){let e=(0,u.useContext)(Bi);if(!e)throw Error(`useToast must be used within a ToastProvider`);return e}function Gi({toasts:e,position:t,pauseOnHover:n,isPaused:r,onDismiss:i,onPauseChange:a}){let o=(()=>{switch(t){case`top-left`:return`topLeft`;case`top-center`:return`topCenter`;case`bottom-right`:return`bottomRight`;case`bottom-left`:return`bottomLeft`;case`bottom-center`:return`bottomCenter`;default:return`topRight`}})();return(0,d.jsxs)(d.Fragment,{children:[e.map(e=>(0,d.jsx)(Ki,{toast:e,isPaused:r,onDismiss:i},e.id)),(0,d.jsx)(Pi,{className:D(H.stack,H[o]),label:`Notifications`,onMouseEnter:()=>n&&a(!0),onMouseLeave:()=>n&&a(!1)})]})}function Ki({toast:e,isPaused:t,onDismiss:n}){let[r,i]=(0,u.useState)(!0),[a,o]=(0,u.useState)(`idle`),s=(0,u.useRef)(null),c=(0,u.useRef)(null),l=(0,u.useRef)(0),f=(0,u.useRef)(e.duration??0),p=(0,u.useRef)(!1),m=qi(e.type),h={"--toast-bg":m.background,"--toast-border":m.border,"--toast-accent":m.accent,"--toast-text":m.text,"--toast-action-bg":m.actionBg,"--toast-action-border":m.actionBorder},g=()=>{c.current&&=(window.clearTimeout(c.current),null)},_=(0,u.useCallback)(()=>{p.current||(p.current=!0,i(!1),g(),window.setTimeout(()=>n(e.id),160))},[n,e.id]),v=(0,u.useCallback)(e=>{if(!e||e<=0){_();return}l.current=performance.now(),g(),c.current=window.setTimeout(()=>_(),e)},[_]);(0,u.useEffect)(()=>{if(!(!e.duration||e.duration<=0))return v(e.duration),g},[v,e.duration]),(0,u.useEffect)(()=>{if(!(!e.duration||e.duration<=0))if(t){let e=performance.now()-l.current;f.current=Math.max(0,f.current-e),g()}else v(f.current)},[t,v,e.duration]),(0,u.useEffect)(()=>()=>{s.current&&window.clearTimeout(s.current)},[]);let y=(0,u.useCallback)(async()=>{s.current&&window.clearTimeout(s.current);try{if(!navigator.clipboard)throw Error(`Clipboard API unavailable`);await navigator.clipboard.writeText(e.message),o(`copied`)}catch{o(`failed`)}s.current=window.setTimeout(()=>o(`idle`),1800)},[e.message]),b=Ji(e.type);return(0,d.jsxs)(Fi,{open:r,onOpenChange:e=>{e||_()},duration:2147483647,className:H.toast,style:h,children:[(0,d.jsx)(`span`,{className:H.icon,"aria-hidden":!0,children:b}),(0,d.jsxs)(`div`,{className:H.body,children:[(0,d.jsx)(Ii,{className:H.message,children:e.message}),e.action&&(0,d.jsx)(`div`,{className:H.actions,children:(0,d.jsx)(Li,{asChild:!0,altText:e.action.label,children:(0,d.jsx)(`button`,{type:`button`,className:H.actionButton,onClick:()=>{e.action?.onClick(),_()},children:e.action.label})})})]}),(0,d.jsxs)(`div`,{className:H.controls,children:[e.copyable&&(0,d.jsx)(`button`,{type:`button`,className:D(H.iconButton,a===`failed`&&H.iconButtonError),"aria-label":`Copy message`,onClick:y,children:a===`copied`?(0,d.jsx)(`svg`,{width:`13`,height:`13`,viewBox:`0 0 13 13`,fill:`none`,"aria-hidden":!0,children:(0,d.jsx)(`path`,{d:`M2 6.5l3 3 6-6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}):a===`failed`?(0,d.jsx)(`svg`,{width:`13`,height:`13`,viewBox:`0 0 13 13`,fill:`none`,"aria-hidden":!0,children:(0,d.jsx)(`path`,{d:`M10 3L3 10M3 3l7 7`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})}):(0,d.jsxs)(`svg`,{width:`13`,height:`13`,viewBox:`0 0 13 13`,fill:`none`,"aria-hidden":!0,children:[(0,d.jsx)(`rect`,{x:`4.5`,y:`1.5`,width:`7`,height:`7`,rx:`1.5`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,d.jsx)(`path`,{d:`M1.5 5.5v5a1.5 1.5 0 001.5 1.5h5`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`})]})}),e.dismissible!==!1&&(0,d.jsx)(Ri,{asChild:!0,children:(0,d.jsx)(`button`,{type:`button`,className:H.iconButton,"aria-label":`Dismiss notification`,children:(0,d.jsx)(`svg`,{width:`13`,height:`13`,viewBox:`0 0 13 13`,fill:`none`,"aria-hidden":!0,children:(0,d.jsx)(`path`,{d:`M10 3L3 10M3 3l7 7`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})})})})]})]})}function qi(e){switch(e){case`success`:return{background:`color-mix(in srgb, var(--success) 12%, var(--popover))`,border:`color-mix(in srgb, var(--success) 30%, transparent)`,accent:`var(--success)`,text:`var(--popover-foreground)`,actionBg:`color-mix(in srgb, var(--success) 14%, transparent)`,actionBorder:`color-mix(in srgb, var(--success) 35%, transparent)`};case`error`:return{background:`color-mix(in srgb, var(--destructive) 12%, var(--popover))`,border:`color-mix(in srgb, var(--destructive) 30%, transparent)`,accent:`var(--destructive)`,text:`var(--popover-foreground)`,actionBg:`color-mix(in srgb, var(--destructive) 14%, transparent)`,actionBorder:`color-mix(in srgb, var(--destructive) 35%, transparent)`};case`warning`:return{background:`color-mix(in srgb, var(--warning) 12%, var(--popover))`,border:`color-mix(in srgb, var(--warning) 30%, transparent)`,accent:`var(--warning)`,text:`var(--popover-foreground)`,actionBg:`color-mix(in srgb, var(--warning) 14%, transparent)`,actionBorder:`color-mix(in srgb, var(--warning) 35%, transparent)`};default:return{background:`color-mix(in srgb, var(--primary) 12%, var(--popover))`,border:`color-mix(in srgb, var(--primary) 30%, transparent)`,accent:`var(--primary)`,text:`var(--popover-foreground)`,actionBg:`color-mix(in srgb, var(--primary) 14%, transparent)`,actionBorder:`color-mix(in srgb, var(--primary) 35%, transparent)`}}}function Ji(e){switch(e){case`success`:return(0,d.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":!0,children:(0,d.jsx)(`path`,{d:`M3 8l3.5 3.5L13 4.5`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`})});case`error`:return(0,d.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":!0,children:(0,d.jsx)(`path`,{d:`M4 4l8 8M12 4l-8 8`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`})});case`warning`:return(0,d.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":!0,children:(0,d.jsx)(`path`,{d:`M8 3v6M8 11.5v1`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`})});default:return(0,d.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":!0,children:(0,d.jsx)(`path`,{d:`M8 7v5M8 4.5v.5`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`})})}}var Yi={input:`uzi-input-module__input__-ipHD`},Xi=u.forwardRef(({className:e,type:t,...n},r)=>(0,d.jsx)(`input`,{ref:r,type:t,className:D(Yi.input,e),...n}));Xi.displayName=`Input`;var Zi={label:`uzi-label-module__label__gKflt`},Qi=u.forwardRef(({className:e,...t},n)=>(0,d.jsx)(`label`,{ref:n,className:D(Zi.label,e),...t}));Qi.displayName=`Label`;var $i={checkbox:`uzi-checkbox-module__checkbox__zAB1y`},ea=u.forwardRef(({className:e,...t},n)=>(0,d.jsx)(`input`,{ref:n,type:`checkbox`,className:D($i.checkbox,e),...t}));ea.displayName=`Checkbox`;var ta=u.createContext(void 0);function na(e){let t=u.useContext(ta);return e||t||`ltr`}var ra=[`top`,`right`,`bottom`,`left`],ia=Math.min,U=Math.max,aa=Math.round,oa=Math.floor,sa=e=>({x:e,y:e}),ca={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function la(e,t,n){return U(e,ia(t,n))}function ua(e,t){return typeof e==`function`?e(t):e}function da(e){return e.split(`-`)[0]}function fa(e){return e.split(`-`)[1]}function pa(e){return e===`x`?`y`:`x`}function ma(e){return e===`y`?`height`:`width`}function ha(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ga(e){return pa(ha(e))}function _a(e,t,n){n===void 0&&(n=!1);let r=fa(e),i=ga(e),a=ma(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ea(o)),[o,Ea(o)]}function va(e){let t=Ea(e);return[ya(e),t,ya(t)]}function ya(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ba=[`left`,`right`],xa=[`right`,`left`],Sa=[`top`,`bottom`],Ca=[`bottom`,`top`];function wa(e,t,n){switch(e){case`top`:case`bottom`:return n?t?xa:ba:t?ba:xa;case`left`:case`right`:return t?Sa:Ca;default:return[]}}function Ta(e,t,n,r){let i=fa(e),a=wa(da(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ya)))),a}function Ea(e){let t=da(e);return ca[t]+e.slice(t.length)}function Da(e){return{top:0,right:0,bottom:0,left:0,...e}}function Oa(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Da(e)}function ka(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Aa(e,t,n){let{reference:r,floating:i}=e,a=ha(t),o=ga(t),s=ma(o),c=da(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(fa(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function ja(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=ua(t,e),p=Oa(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ka(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ka(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ma=50,Na=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ja},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Aa(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ma&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Aa(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Pa=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ua(e,t)||{};if(l==null)return{};let d=Oa(u),f={x:n,y:r},p=ga(i),m=ma(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=ia(d[_],T),D=ia(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=la(O,A,k),M=!c.arrow&&fa(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),Fa=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=ua(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=da(r),_=ha(o),v=da(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Ea(o)]:va(o)),x=p!==`none`;!d&&x&&b.push(...Ta(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=_a(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==ha(t))||T.every(e=>ha(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ha(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Ia(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function La(e){return ra.some(t=>e[t]>=0)}var Ra=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=ua(e,t);switch(i){case`referenceHidden`:{let e=Ia(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:La(e)}}}case`escaped`:{let e=Ia(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:La(e)}}}default:return{}}}}},za=new Set([`left`,`top`]);async function Ba(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=da(n),s=fa(n),c=ha(n)===`y`,l=za.has(o)?-1:1,u=a&&c?-1:1,d=ua(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Va=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ba(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ha=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ua(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ha(da(i)),p=pa(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=la(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=la(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Ua=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ua(e,t),u={x:n,y:r},d=ha(i),f=pa(d),p=u[f],m=u[d],h=ua(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=za.has(da(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Wa=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=ua(e,t),u=await o.detectOverflow(t,l),d=da(i),f=fa(i),p=ha(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=ia(h-u[g],v),x=ia(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=U(u.left,0),t=U(u.right,0),n=U(u.top,0),r=U(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:U(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:U(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Ga(){return typeof window<`u`}function Ka(e){return Ja(e)?(e.nodeName||``).toLowerCase():`#document`}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qa(e){return((Ja(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ja(e){return Ga()?e instanceof Node||e instanceof W(e).Node:!1}function G(e){return Ga()?e instanceof Element||e instanceof W(e).Element:!1}function Ya(e){return Ga()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function Xa(e){return!Ga()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}function Za(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Qa(e){return/^(table|td|th)$/.test(Ka(e))}function $a(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var eo=/transform|translate|scale|rotate|perspective|filter/,to=/paint|layout|strict|content/,no=e=>!!e&&e!==`none`,ro;function io(e){let t=G(e)?K(e):e;return no(t.transform)||no(t.translate)||no(t.scale)||no(t.rotate)||no(t.perspective)||!oo()&&(no(t.backdropFilter)||no(t.filter))||eo.test(t.willChange||``)||to.test(t.contain||``)}function ao(e){let t=lo(e);for(;Ya(t)&&!so(t);){if(io(t))return t;if($a(t))return null;t=lo(t)}return null}function oo(){return ro??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ro}function so(e){return/^(html|body|#document)$/.test(Ka(e))}function K(e){return W(e).getComputedStyle(e)}function co(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lo(e){if(Ka(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Xa(e)&&e.host||qa(e);return Xa(t)?t.host:t}function uo(e){let t=lo(e);return so(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ya(t)&&Za(t)?t:uo(t)}function fo(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=uo(e),i=r===e.ownerDocument?.body,a=W(r);if(i){let e=po(a);return t.concat(a,a.visualViewport||[],Za(r)?r:[],e&&n?fo(e):[])}else return t.concat(r,fo(r,[],n))}function po(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mo(e){let t=K(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Ya(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=aa(n)!==a||aa(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ho(e){return G(e)?e:e.contextElement}function go(e){let t=ho(e);if(!Ya(t))return sa(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=mo(t),o=(a?aa(n.width):n.width)/r,s=(a?aa(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var _o=sa(0);function vo(e){let t=W(e);return!oo()||!t.visualViewport?_o:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==W(e)?!1:t}function bo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ho(e),o=sa(1);t&&(r?G(r)&&(o=go(r)):o=go(e));let s=yo(a,n,r)?vo(a):sa(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=W(a),t=r&&G(r)?W(r):r,n=e,i=po(n);for(;i&&r&&t!==n;){let e=go(i),t=i.getBoundingClientRect(),r=K(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=W(i),i=po(n)}}return ka({width:u,height:d,x:c,y:l})}function xo(e,t){let n=co(e).scrollLeft;return t?t.left+n:bo(qa(e)).left+n}function So(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-xo(e,n),y:n.top+t.scrollTop}}function Co(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=qa(r),s=t?$a(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=sa(1),u=sa(0),d=Ya(r);if((d||!d&&!a)&&((Ka(r)!==`body`||Za(o))&&(c=co(r)),d)){let e=bo(r);l=go(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?So(o,c):sa(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function wo(e){return Array.from(e.getClientRects())}function To(e){let t=qa(e),n=co(e),r=e.ownerDocument.body,i=U(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=U(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+xo(e),s=-n.scrollTop;return K(r).direction===`rtl`&&(o+=U(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Eo=25;function Do(e,t){let n=W(e),r=qa(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=oo();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=xo(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Eo&&(a-=o)}else l<=Eo&&(a+=l);return{width:a,height:o,x:s,y:c}}function Oo(e,t){let n=bo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ya(e)?go(e):sa(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ko(e,t,n){let r;if(t===`viewport`)r=Do(e,n);else if(t===`document`)r=To(qa(e));else if(G(t))r=Oo(t,n);else{let n=vo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ka(r)}function Ao(e,t){let n=lo(e);return n===t||!G(n)||so(n)?!1:K(n).position===`fixed`||Ao(n,t)}function jo(e,t){let n=t.get(e);if(n)return n;let r=fo(e,[],!1).filter(e=>G(e)&&Ka(e)!==`body`),i=null,a=K(e).position===`fixed`,o=a?lo(e):e;for(;G(o)&&!so(o);){let t=K(o),n=io(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Za(o)&&!n&&Ao(e,o))?r=r.filter(e=>e!==o):i=t,o=lo(o)}return t.set(e,r),r}function Mo(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?$a(t)?[]:jo(t,this._c):[].concat(n),r],o=ko(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ko(t,a[e],i);s=U(n.top,s),c=ia(n.right,c),l=ia(n.bottom,l),u=U(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function No(e){let{width:t,height:n}=mo(e);return{width:t,height:n}}function Po(e,t,n){let r=Ya(t),i=qa(t),a=n===`fixed`,o=bo(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=sa(0);function l(){c.x=xo(i)}if(r||!r&&!a)if((Ka(t)!==`body`||Za(i))&&(s=co(t)),r){let e=bo(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?So(i,s):sa(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Fo(e){return K(e).position===`static`}function Io(e,t){if(!Ya(e)||K(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return qa(e)===n&&(n=n.ownerDocument.body),n}function Lo(e,t){let n=W(e);if($a(e))return n;if(!Ya(e)){let t=lo(e);for(;t&&!so(t);){if(G(t)&&!Fo(t))return t;t=lo(t)}return n}let r=Io(e,t);for(;r&&Qa(r)&&Fo(r);)r=Io(r,t);return r&&so(r)&&Fo(r)&&!io(r)?n:r||ao(e)||n}var Ro=async function(e){let t=this.getOffsetParent||Lo,n=this.getDimensions,r=await n(e.floating);return{reference:Po(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zo(e){return K(e).direction===`rtl`}var Bo={convertOffsetParentRelativeRectToViewportRelativeRect:Co,getDocumentElement:qa,getClippingRect:Mo,getOffsetParent:Lo,getElementRects:Ro,getClientRects:wo,getDimensions:No,getScale:go,isElement:G,isRTL:zo};function Vo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ho(e,t){let n=null,r,i=qa(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=oa(d),h=oa(i.clientWidth-(u+f)),g=oa(i.clientHeight-(d+p)),_=oa(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:U(0,ia(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Vo(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Uo(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ho(e),u=i||a?[...l?fo(l):[],...t?fo(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ho(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?bo(e):null;c&&g();function g(){let t=bo(e);h&&!Vo(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Wo=Va,Go=Ha,Ko=Fa,qo=Wa,Jo=Ra,Yo=Pa,Xo=Ua,Zo=(e,t,n)=>{let r=new Map,i={platform:Bo,...n},a={...i.platform,_c:r};return Na(e,t,{...i,platform:a})},Qo=typeof document<`u`?u.useLayoutEffect:function(){};function $o(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,i;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(!$o(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!$o(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function es(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ts(e,t){let n=es(e);return Math.round(t*n)/n}function ns(e){let t=u.useRef(e);return Qo(()=>{t.current=e}),t}function rs(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[d,p]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=u.useState(r);$o(m,r)||h(r);let[g,_]=u.useState(null),[v,y]=u.useState(null),b=u.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=u.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=u.useRef(null),T=u.useRef(null),E=u.useRef(d),D=c!=null,O=ns(c),k=ns(i),A=ns(l),j=u.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),Zo(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!$o(E.current,t)&&(E.current=t,f.flushSync(()=>{p(t)}))})},[m,t,n,k,A]);Qo(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[l]);let M=u.useRef(!1);Qo(()=>(M.current=!0,()=>{M.current=!1}),[]),Qo(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=u.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=u.useMemo(()=>({reference:S,floating:C}),[S,C]),F=u.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=ts(P.floating,d.x),r=ts(P.floating,d.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...es(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,P.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:j,refs:N,elements:P,floatingStyles:F}),[d,j,N,P,F])}var is=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Yo({element:r.current,padding:i}).fn(n):r?Yo({element:r,padding:i}).fn(n):{}}}},as=(e,t)=>{let n=Wo(e);return{name:n.name,fn:n.fn,options:[e,t]}},os=(e,t)=>{let n=Go(e);return{name:n.name,fn:n.fn,options:[e,t]}},ss=(e,t)=>({fn:Xo(e).fn,options:[e,t]}),cs=(e,t)=>{let n=Ko(e);return{name:n.name,fn:n.fn,options:[e,t]}},ls=(e,t)=>{let n=qo(e);return{name:n.name,fn:n.fn,options:[e,t]}},us=(e,t)=>{let n=Jo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ds=(e,t)=>{let n=is(e);return{name:n.name,fn:n.fn,options:[e,t]}},fs=`Arrow`,ps=u.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,d.jsx)(z.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,d.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});ps.displayName=fs;var ms=ps;function hs(e){let[t,n]=u.useState(void 0);return F(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var gs=`Popper`,[_s,vs]=ke(gs),[ys,bs]=_s(gs),xs=e=>{let{__scopePopper:t,children:n}=e,[r,i]=u.useState(null);return(0,d.jsx)(ys,{scope:t,anchor:r,onAnchorChange:i,children:n})};xs.displayName=gs;var Ss=`PopperAnchor`,Cs=u.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=bs(Ss,n),o=u.useRef(null),s=h(t,o),c=u.useRef(null);return u.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,d.jsx)(z.div,{...i,ref:s})});Cs.displayName=Ss;var ws=`PopperContent`,[Ts,Es]=_s(ws),Ds=u.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:p=`partial`,hideWhenDetached:m=!1,updatePositionStrategy:g=`optimized`,onPlaced:_,...v}=e,y=bs(ws,n),[b,x]=u.useState(null),S=h(t,e=>x(e)),[C,w]=u.useState(null),T=hs(C),E=T?.width??0,D=T?.height??0,O=r+(a===`center`?``:`-`+a),k=typeof f==`number`?f:{top:0,right:0,bottom:0,left:0,...f},A=Array.isArray(l)?l:[l],j=A.length>0,M={padding:k,boundary:A.filter(js),altBoundary:j},{refs:N,floatingStyles:ee,placement:I,isPositioned:te,middlewareData:ne}=rs({strategy:`fixed`,placement:O,whileElementsMounted:(...e)=>Uo(...e,{animationFrame:g===`always`}),elements:{reference:y.anchor},middleware:[as({mainAxis:i+D,alignmentAxis:o}),c&&os({mainAxis:!0,crossAxis:!1,limiter:p===`partial`?ss():void 0,...M}),c&&cs({...M}),ls({...M,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),C&&ds({element:C,padding:s}),Ms({arrowWidth:E,arrowHeight:D}),m&&us({strategy:`referenceHidden`,...M})]}),[re,ie]=Ns(I),ae=P(_);F(()=>{te&&ae?.()},[te,ae]);let oe=ne.arrow?.x,se=ne.arrow?.y,ce=ne.arrow?.centerOffset!==0,[le,ue]=u.useState();return F(()=>{b&&ue(window.getComputedStyle(b).zIndex)},[b]),(0,d.jsx)(`div`,{ref:N.setFloating,"data-radix-popper-content-wrapper":``,style:{...ee,transform:te?ee.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:le,"--radix-popper-transform-origin":[ne.transformOrigin?.x,ne.transformOrigin?.y].join(` `),...ne.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,d.jsx)(Ts,{scope:n,placedSide:re,onArrowChange:w,arrowX:oe,arrowY:se,shouldHideArrow:ce,children:(0,d.jsx)(z.div,{"data-side":re,"data-align":ie,...v,ref:S,style:{...v.style,animation:te?void 0:`none`}})})})});Ds.displayName=ws;var Os=`PopperArrow`,ks={top:`bottom`,right:`left`,bottom:`top`,left:`right`},As=u.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Es(Os,n),a=ks[i.placedSide];return(0,d.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,d.jsx)(ms,{...r,ref:t,style:{...r.style,display:`block`}})})});As.displayName=Os;function js(e){return e!==null}var Ms=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Ns(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Ns(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Ps=xs,Fs=Cs,Is=Ds,Ls=As,Rs=`rovingFocusGroup.onEntryFocus`,zs={bubbles:!1,cancelable:!0},Bs=`RovingFocusGroup`,[Vs,Hs,Us]=Vr(Bs),[Ws,Gs]=ke(Bs,[Us]),[Ks,qs]=Ws(Bs),Js=u.forwardRef((e,t)=>(0,d.jsx)(Vs.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(Vs.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(Ys,{...e,ref:t})})}));Js.displayName=Bs;var Ys=u.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...p}=e,m=u.useRef(null),g=h(t,m),_=na(a),[v,y]=Pe({prop:o,defaultProp:s??null,onChange:c,caller:Bs}),[b,x]=u.useState(!1),S=P(l),C=Hs(n),w=u.useRef(!1),[T,E]=u.useState(0);return u.useEffect(()=>{let e=m.current;if(e)return e.addEventListener(Rs,S),()=>e.removeEventListener(Rs,S)},[S]),(0,d.jsx)(Ks,{scope:n,orientation:r,dir:_,loop:i,currentTabStopId:v,onItemFocus:u.useCallback(e=>y(e),[y]),onItemShiftTab:u.useCallback(()=>x(!0),[]),onFocusableItemAdd:u.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:u.useCallback(()=>E(e=>e-1),[]),children:(0,d.jsx)(z.div,{tabIndex:b||T===0?-1:0,"data-orientation":r,...p,ref:g,style:{outline:`none`,...e.style},onMouseDown:L(e.onMouseDown,()=>{w.current=!0}),onFocus:L(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(Rs,zs);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=C().filter(e=>e.focusable);tc([e.find(e=>e.active),e.find(e=>e.id===v),...e].filter(Boolean).map(e=>e.ref.current),f)}}w.current=!1}),onBlur:L(e.onBlur,()=>x(!1))})})}),Xs=`RovingFocusGroupItem`,Zs=u.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=R(),l=a||c,f=qs(Xs,n),p=f.currentTabStopId===l,m=Hs(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:_}=f;return u.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),(0,d.jsx)(Vs.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,d.jsx)(z.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:L(e.onMouseDown,e=>{r?f.onItemFocus(l):e.preventDefault()}),onFocus:L(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:L(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=ec(e,f.orientation,f.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=f.loop?nc(n,r+1):n.slice(r+1)}setTimeout(()=>tc(n))}}),children:typeof o==`function`?o({isCurrentTabStop:p,hasTabStop:_!=null}):o})})});Zs.displayName=Xs;var Qs={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function $s(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function ec(e,t,n){let r=$s(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Qs[r]}function tc(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function nc(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var rc=Js,ic=Zs,ac=[`Enter`,` `],oc=[`ArrowDown`,`PageUp`,`Home`],sc=[`ArrowUp`,`PageDown`,`End`],cc=[...oc,...sc],lc={ltr:[...ac,`ArrowRight`],rtl:[...ac,`ArrowLeft`]},uc={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},dc=`Menu`,[fc,pc,mc]=Vr(dc),[hc,gc]=ke(dc,[mc,vs,Gs]),_c=vs(),vc=Gs(),[yc,bc]=hc(dc),[xc,Sc]=hc(dc),Cc=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=_c(t),[c,l]=u.useState(null),f=u.useRef(!1),p=P(a),m=na(i);return u.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,d.jsx)(Ps,{...s,children:(0,d.jsx)(yc,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:l,children:(0,d.jsx)(xc,{scope:t,onClose:u.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:o,children:r})})})};Cc.displayName=dc;var wc=`MenuAnchor`,Tc=u.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=_c(n);return(0,d.jsx)(Fs,{...i,...r,ref:t})});Tc.displayName=wc;var Ec=`MenuPortal`,[Dc,Oc]=hc(Ec,{forceMount:void 0}),kc=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=bc(Ec,t);return(0,d.jsx)(Dc,{scope:t,forceMount:n,children:(0,d.jsx)(Tt,{present:n||a.open,children:(0,d.jsx)(Ct,{asChild:!0,container:i,children:r})})})};kc.displayName=Ec;var q=`MenuContent`,[Ac,jc]=hc(q),Mc=u.forwardRef((e,t)=>{let n=Oc(q,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=bc(q,e.__scopeMenu),o=Sc(q,e.__scopeMenu);return(0,d.jsx)(fc.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(Tt,{present:r||a.open,children:(0,d.jsx)(fc.Slot,{scope:e.__scopeMenu,children:o.modal?(0,d.jsx)(Nc,{...i,ref:t}):(0,d.jsx)(Pc,{...i,ref:t})})})})}),Nc=u.forwardRef((e,t)=>{let n=bc(q,e.__scopeMenu),r=u.useRef(null),i=h(t,r);return u.useEffect(()=>{let e=r.current;if(e)return Xn(e)},[]),(0,d.jsx)(Ic,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:L(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Pc=u.forwardRef((e,t)=>{let n=bc(q,e.__scopeMenu);return(0,d.jsx)(Ic,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Fc=Le(`MenuContent.ScrollLock`),Ic=u.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:g,disableOutsideScroll:_,...v}=e,y=bc(q,n),b=Sc(q,n),x=_c(n),S=vc(n),C=pc(n),[w,T]=u.useState(null),E=u.useRef(null),D=h(t,E,y.onContentChange),O=u.useRef(0),k=u.useRef(``),A=u.useRef(0),j=u.useRef(null),M=u.useRef(`right`),N=u.useRef(0),P=_?Vn:u.Fragment,F=_?{as:Fc,allowPinchZoom:!0}:void 0,ee=e=>{let t=k.current+e,n=C().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=bl(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){k.current=t,window.clearTimeout(O.current),t!==``&&(O.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};u.useEffect(()=>()=>window.clearTimeout(O.current),[]),At();let I=u.useCallback(e=>M.current===j.current?.side&&Sl(e,j.current?.area),[]);return(0,d.jsx)(Ac,{scope:n,searchRef:k,onItemEnter:u.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:u.useCallback(e=>{I(e)||(E.current?.focus(),T(null))},[I]),onTriggerLeave:u.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:A,onPointerGraceIntentChange:u.useCallback(e=>{j.current=e},[]),children:(0,d.jsx)(P,{...F,children:(0,d.jsx)(ut,{asChild:!0,trapped:i,onMountAutoFocus:L(a,e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,d.jsx)(Ze,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:g,children:(0,d.jsx)(rc,{asChild:!0,...S,dir:b.dir,orientation:`vertical`,loop:r,currentTabStopId:w,onCurrentTabStopIdChange:T,onEntryFocus:L(c,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,d.jsx)(Is,{role:`menu`,"aria-orientation":`vertical`,"data-state":hl(y.open),"data-radix-menu-content":``,dir:b.dir,...x,...v,ref:D,style:{outline:`none`,...v.style},onKeyDown:L(v.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&ee(e.key));let i=E.current;if(e.target!==i||!cc.includes(e.key))return;e.preventDefault();let a=C().filter(e=>!e.disabled).map(e=>e.ref.current);sc.includes(e.key)&&a.reverse(),vl(a)}),onBlur:L(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),k.current=``)}),onPointerMove:L(e.onPointerMove,Cl(e=>{let t=e.target,n=N.current!==e.clientX;e.currentTarget.contains(t)&&n&&(M.current=e.clientX>N.current?`right`:`left`,N.current=e.clientX)}))})})})})})})});Mc.displayName=q;var Lc=`MenuGroup`,Rc=u.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,d.jsx)(z.div,{role:`group`,...r,ref:t})});Rc.displayName=Lc;var zc=`MenuLabel`,Bc=u.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,d.jsx)(z.div,{...r,ref:t})});Bc.displayName=zc;var Vc=`MenuItem`,Hc=`menu.itemSelect`,Uc=u.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=u.useRef(null),o=Sc(Vc,e.__scopeMenu),s=jc(Vc,e.__scopeMenu),c=h(t,a),l=u.useRef(!1),f=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Hc,{bubbles:!0,cancelable:!0});e.addEventListener(Hc,e=>r?.(e),{once:!0}),Ue(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,d.jsx)(Wc,{...i,ref:c,disabled:n,onClick:L(e.onClick,f),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:L(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:L(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||ac.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Uc.displayName=Vc;var Wc=u.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=jc(Vc,n),s=vc(n),c=u.useRef(null),l=h(t,c),[f,p]=u.useState(!1),[m,g]=u.useState(``);return u.useEffect(()=>{let e=c.current;e&&g((e.textContent??``).trim())},[a.children]),(0,d.jsx)(fc.ItemSlot,{scope:n,disabled:r,textValue:i??m,children:(0,d.jsx)(ic,{asChild:!0,...s,focusable:!r,children:(0,d.jsx)(z.div,{role:`menuitem`,"data-highlighted":f?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:L(e.onPointerMove,Cl(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,Cl(e=>o.onItemLeave(e))),onFocus:L(e.onFocus,()=>p(!0)),onBlur:L(e.onBlur,()=>p(!1))})})})}),Gc=`MenuCheckboxItem`,Kc=u.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,d.jsx)(el,{scope:e.__scopeMenu,checked:n,children:(0,d.jsx)(Uc,{role:`menuitemcheckbox`,"aria-checked":gl(n)?`mixed`:n,...i,ref:t,"data-state":_l(n),onSelect:L(i.onSelect,()=>r?.(gl(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Kc.displayName=Gc;var qc=`MenuRadioGroup`,[Jc,Yc]=hc(qc,{value:void 0,onValueChange:()=>{}}),Xc=u.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=P(r);return(0,d.jsx)(Jc,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,d.jsx)(Rc,{...i,ref:t})})});Xc.displayName=qc;var Zc=`MenuRadioItem`,Qc=u.forwardRef((e,t)=>{let{value:n,...r}=e,i=Yc(Zc,e.__scopeMenu),a=n===i.value;return(0,d.jsx)(el,{scope:e.__scopeMenu,checked:a,children:(0,d.jsx)(Uc,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":_l(a),onSelect:L(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Qc.displayName=Zc;var $c=`MenuItemIndicator`,[el,tl]=hc($c,{checked:!1}),nl=u.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=tl($c,n);return(0,d.jsx)(Tt,{present:r||gl(a.checked)||a.checked===!0,children:(0,d.jsx)(z.span,{...i,ref:t,"data-state":_l(a.checked)})})});nl.displayName=$c;var rl=`MenuSeparator`,il=u.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,d.jsx)(z.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});il.displayName=rl;var al=`MenuArrow`,ol=u.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=_c(n);return(0,d.jsx)(Ls,{...i,...r,ref:t})});ol.displayName=al;var sl=`MenuSub`,[cl,ll]=hc(sl),ul=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=bc(sl,t),o=_c(t),[s,c]=u.useState(null),[l,f]=u.useState(null),p=P(i);return u.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),(0,d.jsx)(Ps,{...o,children:(0,d.jsx)(yc,{scope:t,open:r,onOpenChange:p,content:l,onContentChange:f,children:(0,d.jsx)(cl,{scope:t,contentId:R(),triggerId:R(),trigger:s,onTriggerChange:c,children:n})})})};ul.displayName=sl;var dl=`MenuSubTrigger`,fl=u.forwardRef((e,t)=>{let n=bc(dl,e.__scopeMenu),r=Sc(dl,e.__scopeMenu),i=ll(dl,e.__scopeMenu),a=jc(dl,e.__scopeMenu),o=u.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,d.jsx)(Tc,{asChild:!0,...l,children:(0,d.jsx)(Wc,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":hl(n.open),...e,ref:m(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:L(e.onPointerMove,Cl(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:L(e.onPointerLeave,Cl(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:L(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||lc[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});fl.displayName=dl;var pl=`MenuSubContent`,ml=u.forwardRef((e,t)=>{let n=Oc(q,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=bc(q,e.__scopeMenu),o=Sc(q,e.__scopeMenu),s=ll(pl,e.__scopeMenu),c=u.useRef(null),l=h(t,c);return(0,d.jsx)(fc.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(Tt,{present:r||a.open,children:(0,d.jsx)(fc.Slot,{scope:e.__scopeMenu,children:(0,d.jsx)(Ic,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:L(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:L(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uc[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});ml.displayName=pl;function hl(e){return e?`open`:`closed`}function gl(e){return e===`indeterminate`}function _l(e){return gl(e)?`indeterminate`:e?`checked`:`unchecked`}function vl(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function yl(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function bl(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=yl(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function xl(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Sl(e,t){return t?xl({x:e.clientX,y:e.clientY},t):!1}function Cl(e){return t=>t.pointerType===`mouse`?e(t):void 0}var wl=Cc,Tl=Tc,El=kc,Dl=Mc,Ol=Rc,kl=Bc,Al=Uc,jl=Kc,Ml=Xc,Nl=Qc,Pl=nl,Fl=il,Il=ol,Ll=ul,Rl=fl,zl=ml,Bl=`DropdownMenu`,[Vl,Hl]=ke(Bl,[gc]),J=gc(),[Ul,Wl]=Vl(Bl),Gl=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=J(t),l=u.useRef(null),[f,p]=Pe({prop:i,defaultProp:a??!1,onChange:o,caller:Bl});return(0,d.jsx)(Ul,{scope:t,triggerId:R(),triggerRef:l,contentId:R(),open:f,onOpenChange:p,onOpenToggle:u.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,d.jsx)(wl,{...c,open:f,onOpenChange:p,dir:r,modal:s,children:n})})};Gl.displayName=Bl;var Kl=`DropdownMenuTrigger`,ql=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Wl(Kl,n),o=J(n);return(0,d.jsx)(Tl,{asChild:!0,...o,children:(0,d.jsx)(z.button,{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,...i,ref:m(t,a.triggerRef),onPointerDown:L(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:L(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});ql.displayName=Kl;var Jl=`DropdownMenuPortal`,Yl=e=>{let{__scopeDropdownMenu:t,...n}=e,r=J(t);return(0,d.jsx)(El,{...r,...n})};Yl.displayName=Jl;var Xl=`DropdownMenuContent`,Zl=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Wl(Xl,n),a=J(n),o=u.useRef(!1);return(0,d.jsx)(Dl,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:L(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.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)`}})});Zl.displayName=Xl;var Ql=`DropdownMenuGroup`,$l=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,d.jsx)(Ol,{...i,...r,ref:t})});$l.displayName=Ql;var eu=`DropdownMenuLabel`,tu=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,d.jsx)(kl,{...i,...r,ref:t})});tu.displayName=eu;var nu=`DropdownMenuItem`,ru=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,d.jsx)(Al,{...i,...r,ref:t})});ru.displayName=nu;var iu=`DropdownMenuCheckboxItem`,au=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,d.jsx)(jl,{...i,...r,ref:t})});au.displayName=iu;var ou=`DropdownMenuRadioGroup`,su=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,d.jsx)(Ml,{...i,...r,ref:t})});su.displayName=ou;var cu=`DropdownMenuRadioItem`,lu=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,d.jsx)(Nl,{...i,...r,ref:t})});lu.displayName=cu;var uu=`DropdownMenuItemIndicator`,du=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,d.jsx)(Pl,{...i,...r,ref:t})});du.displayName=uu;var fu=`DropdownMenuSeparator`,pu=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,d.jsx)(Fl,{...i,...r,ref:t})});pu.displayName=fu;var mu=`DropdownMenuArrow`,hu=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,d.jsx)(Il,{...i,...r,ref:t})});hu.displayName=mu;var gu=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=J(t),[s,c]=Pe({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return(0,d.jsx)(Ll,{...o,open:s,onOpenChange:c,children:n})},_u=`DropdownMenuSubTrigger`,vu=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,d.jsx)(Rl,{...i,...r,ref:t})});vu.displayName=_u;var yu=`DropdownMenuSubContent`,bu=u.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=J(n);return(0,d.jsx)(zl,{...i,...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)`}})});bu.displayName=yu;var xu=Gl,Su=ql,Cu=Yl,wu=Zl,Tu=$l,Eu=tu,Du=ru,Ou=au,ku=su,Au=lu,ju=du,Mu=pu,Nu=gu,Pu=vu,Fu=bu,Y={wrapper:`uzi-multi-select-module__wrapper__Izj2x`,wrapperFullWidth:`uzi-multi-select-module__wrapperFullWidth__eH8pf`,trigger:`uzi-multi-select-module__trigger__r3816`,value:`uzi-multi-select-module__value__PuUmG`,placeholder:`uzi-multi-select-module__placeholder__dJIU-`,chip:`uzi-multi-select-module__chip__46Ms-`,chipSummary:`uzi-multi-select-module__chipSummary__zLwi8`,chevron:`uzi-multi-select-module__chevron__SWK5l`,menu:`uzi-multi-select-module__menu__q8auA`,menuFadeIn:`uzi-multi-select-module__menuFadeIn__Plo7-`,option:`uzi-multi-select-module__option__-Ioqk`,optionDisabled:`uzi-multi-select-module__optionDisabled__qtCi8`,optionSelected:`uzi-multi-select-module__optionSelected__74IO8`,optionLabel:`uzi-multi-select-module__optionLabel__cVoN7`,indicator:`uzi-multi-select-module__indicator__NO-WE`,indicatorSelected:`uzi-multi-select-module__indicatorSelected__9sEAy`,indicatorDisabled:`uzi-multi-select-module__indicatorDisabled__vqdiH`},Iu=u.forwardRef(({options:e,value:t,onChange:n,placeholder:r=`Select options`,fullWidth:i=!0,maxVisibleValues:a=2,className:o,disabled:s=!1,name:c,"aria-label":l,"aria-labelledby":f},p)=>{let m=u.useMemo(()=>new Set(t),[t]),h=u.useMemo(()=>e.filter(e=>m.has(e.value)),[e,m]),g=u.useCallback(e=>{if(m.has(e)){n(t.filter(t=>t!==e));return}n([...t,e])},[n,m,t]),_=Math.max(1,a),v=h.slice(0,_),y=Math.max(0,h.length-v.length);return(0,d.jsx)(xu,{modal:!1,children:(0,d.jsxs)(`div`,{className:D(Y.wrapper,i&&Y.wrapperFullWidth,o),children:[(0,d.jsx)(Su,{asChild:!0,children:(0,d.jsxs)(`button`,{ref:p,type:`button`,className:Y.trigger,"aria-label":l,"aria-labelledby":f,disabled:s,children:[(0,d.jsx)(`span`,{className:Y.value,children:h.length===0?(0,d.jsx)(`span`,{className:Y.placeholder,children:r}):(0,d.jsxs)(d.Fragment,{children:[v.map(e=>(0,d.jsx)(`span`,{className:Y.chip,children:e.label},e.value)),y>0?(0,d.jsxs)(`span`,{className:D(Y.chip,Y.chipSummary),children:[`+`,y]}):null]})}),(0,d.jsx)(`span`,{className:Y.chevron,"aria-hidden":`true`,children:(0,d.jsx)(`svg`,{viewBox:`0 0 10 10`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`10`,children:(0,d.jsx)(`path`,{d:`M2 3.5L5 6.5L8 3.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})})]})}),c?t.map(e=>(0,d.jsx)(`input`,{type:`hidden`,name:c,value:e},e)):null,(0,d.jsx)(Cu,{children:(0,d.jsx)(wu,{className:Y.menu,sideOffset:4,align:`start`,children:e.map(e=>{let t=m.has(e.value);return(0,d.jsxs)(Ou,{className:D(Y.option,t&&Y.optionSelected,e.disabled&&Y.optionDisabled),checked:t,disabled:e.disabled,onCheckedChange:()=>g(e.value),onSelect:e=>e.preventDefault(),children:[(0,d.jsx)(`span`,{className:D(Y.indicator,t&&Y.indicatorSelected,e.disabled&&Y.indicatorDisabled),"aria-hidden":`true`,children:(0,d.jsx)(ju,{forceMount:!0,children:(0,d.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`16`,height:`16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,d.jsx)(`path`,{d:`M3.5 8.5 6.5 11.5 12.5 4.5`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})})}),(0,d.jsx)(`span`,{className:Y.optionLabel,children:e.label})]},e.value)})})})]})})});Iu.displayName=`MultiSelect`;function Lu(e,[t,n]){return Math.min(n,Math.max(t,e))}function Ru(e){let t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var zu=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Bu=[` `,`Enter`],Vu=`Select`,[Hu,Uu,Wu]=Vr(Vu),[Gu,Ku]=ke(Vu,[Wu,vs]),qu=vs(),[Ju,Yu]=Gu(Vu),[Xu,Zu]=Gu(Vu),Qu=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:f,autoComplete:p,disabled:m,required:h,form:g}=e,_=qu(t),[v,y]=u.useState(null),[b,x]=u.useState(null),[S,C]=u.useState(!1),w=na(l),[T,E]=Pe({prop:r,defaultProp:i??!1,onChange:a,caller:Vu}),[D,O]=Pe({prop:o,defaultProp:s,onChange:c,caller:Vu}),k=u.useRef(null),A=v?g||!!v.closest(`form`):!0,[j,M]=u.useState(new Set),N=Array.from(j).map(e=>e.props.value).join(`;`);return(0,d.jsx)(Ps,{..._,children:(0,d.jsxs)(Ju,{required:h,scope:t,trigger:v,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:R(),value:D,onValueChange:O,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:k,disabled:m,children:[(0,d.jsx)(Hu.Provider,{scope:t,children:(0,d.jsx)(Xu,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(e=>{M(t=>new Set(t).add(e))},[]),onNativeOptionRemove:u.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),A?(0,d.jsxs)(Kd,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:D,onChange:e=>O(e.target.value),disabled:m,form:g,children:[D===void 0?(0,d.jsx)(`option`,{value:``}):null,Array.from(j)]},N):null]})})};Qu.displayName=Vu;var $u=`SelectTrigger`,ed=u.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=qu(n),o=Yu($u,n),s=o.disabled||r,c=h(t,o.onTriggerChange),l=Uu(n),f=u.useRef(`touch`),[p,m,g]=Jd(e=>{let t=l().filter(e=>!e.disabled),n=Yd(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),_=e=>{s||(o.onOpenChange(!0),g()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,d.jsx)(Fs,{asChild:!0,...a,children:(0,d.jsx)(z.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":qd(o.value)?``:void 0,...i,ref:c,onClick:L(i.onClick,e=>{e.currentTarget.focus(),f.current!==`mouse`&&_(e)}),onPointerDown:L(i.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(_(e),e.preventDefault())}),onKeyDown:L(i.onKeyDown,e=>{let t=p.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&m(e.key),!(t&&e.key===` `)&&zu.includes(e.key)&&(_(),e.preventDefault())})})})});ed.displayName=$u;var td=`SelectValue`,nd=u.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Yu(td,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,f=h(t,c.onValueNodeChange);return F(()=>{l(u)},[l,u]),(0,d.jsx)(z.span,{...s,ref:f,style:{pointerEvents:`none`},children:qd(c.value)?(0,d.jsx)(d.Fragment,{children:o}):a})});nd.displayName=td;var rd=`SelectIcon`,id=u.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,d.jsx)(z.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});id.displayName=rd;var ad=`SelectPortal`,od=e=>(0,d.jsx)(Ct,{asChild:!0,...e});od.displayName=ad;var sd=`SelectContent`,cd=u.forwardRef((e,t)=>{let n=Yu(sd,e.__scopeSelect),[r,i]=u.useState();if(F(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?f.createPortal((0,d.jsx)(ld,{scope:e.__scopeSelect,children:(0,d.jsx)(Hu.Slot,{scope:e.__scopeSelect,children:(0,d.jsx)(`div`,{children:e.children})})}),t):null}return(0,d.jsx)(pd,{...e,ref:t})});cd.displayName=sd;var X=10,[ld,ud]=Gu(sd),dd=`SelectContentImpl`,fd=Le(`SelectContent.RemoveScroll`),pd=u.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:g,sticky:_,hideWhenDetached:v,avoidCollisions:y,...b}=e,x=Yu(sd,n),[S,C]=u.useState(null),[w,T]=u.useState(null),E=h(t,e=>C(e)),[D,O]=u.useState(null),[k,A]=u.useState(null),j=Uu(n),[M,N]=u.useState(!1),P=u.useRef(!1);u.useEffect(()=>{if(S)return Xn(S)},[S]),At();let F=u.useCallback(e=>{let[t,...n]=j().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&w&&(w.scrollTop=0),n===r&&w&&(w.scrollTop=w.scrollHeight),n?.focus(),document.activeElement!==i))return},[j,w]),ee=u.useCallback(()=>F([D,S]),[F,D,S]);u.useEffect(()=>{M&&ee()},[M,ee]);let{onOpenChange:I,triggerPointerDownPosRef:te}=x;u.useEffect(()=>{if(S){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(te.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(te.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():S.contains(n.target)||I(!1),document.removeEventListener(`pointermove`,t),te.current=null};return te.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[S,I,te]),u.useEffect(()=>{let e=()=>I(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[I]);let[ne,re]=Jd(e=>{let t=j().filter(e=>!e.disabled),n=Yd(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),ie=u.useCallback((e,t,n)=>{let r=!P.current&&!n;(x.value!==void 0&&x.value===t||r)&&(O(e),r&&(P.current=!0))},[x.value]),ae=u.useCallback(()=>S?.focus(),[S]),oe=u.useCallback((e,t,n)=>{let r=!P.current&&!n;(x.value!==void 0&&x.value===t||r)&&A(e)},[x.value]),se=r===`popper`?_d:hd,ce=se===_d?{side:s,sideOffset:c,align:l,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:g,sticky:_,hideWhenDetached:v,avoidCollisions:y}:{};return(0,d.jsx)(ld,{scope:n,content:S,viewport:w,onViewportChange:T,itemRefCallback:ie,selectedItem:D,onItemLeave:ae,itemTextRefCallback:oe,focusSelectedItem:ee,selectedItemText:k,position:r,isPositioned:M,searchRef:ne,children:(0,d.jsx)(Vn,{as:fd,allowPinchZoom:!0,children:(0,d.jsx)(ut,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:L(i,e=>{x.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,d.jsx)(Ze,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:(0,d.jsx)(se,{role:`listbox`,id:x.contentId,"data-state":x.open?`open`:`closed`,dir:x.dir,onContextMenu:e=>e.preventDefault(),...b,...ce,onPlaced:()=>N(!0),ref:E,style:{display:`flex`,flexDirection:`column`,outline:`none`,...b.style},onKeyDown:L(b.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&re(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=j().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})});pd.displayName=dd;var md=`SelectItemAlignedPosition`,hd=u.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=Yu(sd,n),o=ud(sd,n),[s,c]=u.useState(null),[l,f]=u.useState(null),p=h(t,e=>f(e)),m=Uu(n),g=u.useRef(!1),_=u.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=o,S=u.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&v&&y&&b){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-X,d=Lu(a,[X,Math.max(X,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-X,d=Lu(a,[X,Math.max(X,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=m(),c=window.innerHeight-X*2,u=v.scrollHeight,d=window.getComputedStyle(l),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),h=parseInt(d.borderBottomWidth,10),_=parseInt(d.paddingBottom,10),x=f+p+u+_+h,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(v),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-X,D=c-E,O=y.offsetHeight/2,k=y.offsetTop+O,A=f+p+k,j=x-A;if(A<=E){let e=o.length>0&&y===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-v.offsetTop-v.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+h);s.style.height=n+`px`}else{let e=o.length>0&&y===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,f+v.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,v.scrollTop=A-E+v.offsetTop}s.style.margin=`${X}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>g.current=!0)}},[m,a.trigger,a.valueNode,s,l,v,y,b,a.dir,r]);F(()=>S(),[S]);let[C,w]=u.useState();return F(()=>{l&&w(window.getComputedStyle(l).zIndex)},[l]),(0,d.jsx)(vd,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:u.useCallback(e=>{e&&_.current===!0&&(S(),x?.(),_.current=!1)},[S,x]),children:(0,d.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,d.jsx)(z.div,{...i,ref:p,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});hd.displayName=md;var gd=`SelectPopperPosition`,_d=u.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=X,...a}=e,o=qu(n);return(0,d.jsx)(Is,{...o,...a,ref:t,align:r,collisionPadding:i,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)`}})});_d.displayName=gd;var[vd,yd]=Gu(sd,{}),bd=`SelectViewport`,xd=u.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=ud(bd,n),o=yd(bd,n),s=h(t,a.onViewportChange),c=u.useRef(0);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,d.jsx)(Hu.Slot,{scope:n,children:(0,d.jsx)(z.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:L(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-X*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});xd.displayName=bd;var Sd=`SelectGroup`,[Cd,wd]=Gu(Sd),Td=u.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=R();return(0,d.jsx)(Cd,{scope:n,id:i,children:(0,d.jsx)(z.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});Td.displayName=Sd;var Ed=`SelectLabel`,Dd=u.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=wd(Ed,n);return(0,d.jsx)(z.div,{id:i.id,...r,ref:t})});Dd.displayName=Ed;var Od=`SelectItem`,[kd,Ad]=Gu(Od),jd=u.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Yu(Od,n),c=ud(Od,n),l=s.value===r,[f,p]=u.useState(a??``),[m,g]=u.useState(!1),_=h(t,e=>c.itemRefCallback?.(e,r,i)),v=R(),y=u.useRef(`touch`),b=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw Error(`A <Select.Item /> 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(0,d.jsx)(kd,{scope:n,value:r,disabled:i,textId:v,isSelected:l,onItemTextChange:u.useCallback(e=>{p(t=>t||(e?.textContent??``).trim())},[]),children:(0,d.jsx)(Hu.ItemSlot,{scope:n,value:r,disabled:i,textValue:f,children:(0,d.jsx)(z.div,{role:`option`,"aria-labelledby":v,"data-highlighted":m?``:void 0,"aria-selected":l&&m,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:_,onFocus:L(o.onFocus,()=>g(!0)),onBlur:L(o.onBlur,()=>g(!1)),onClick:L(o.onClick,()=>{y.current!==`mouse`&&b()}),onPointerUp:L(o.onPointerUp,()=>{y.current===`mouse`&&b()}),onPointerDown:L(o.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:L(o.onPointerMove,e=>{y.current=e.pointerType,i?c.onItemLeave?.():y.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:L(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:L(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(Bu.includes(e.key)&&b(),e.key===` `&&e.preventDefault())})})})})});jd.displayName=Od;var Md=`SelectItemText`,Nd=u.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=Yu(Md,n),s=ud(Md,n),c=Ad(Md,n),l=Zu(Md,n),[p,m]=u.useState(null),g=h(t,e=>m(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),_=p?.textContent,v=u.useMemo(()=>(0,d.jsx)(`option`,{value:c.value,disabled:c.disabled,children:_},c.value),[c.disabled,c.value,_]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=l;return F(()=>(y(v),()=>b(v)),[y,b,v]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(z.span,{id:c.textId,...a,ref:g}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?f.createPortal(a.children,o.valueNode):null]})});Nd.displayName=Md;var Pd=`SelectItemIndicator`,Fd=u.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return Ad(Pd,n).isSelected?(0,d.jsx)(z.span,{"aria-hidden":!0,...r,ref:t}):null});Fd.displayName=Pd;var Id=`SelectScrollUpButton`,Ld=u.forwardRef((e,t)=>{let n=ud(Id,e.__scopeSelect),r=yd(Id,e.__scopeSelect),[i,a]=u.useState(!1),o=h(t,r.onScrollButtonChange);return F(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,d.jsx)(Bd,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});Ld.displayName=Id;var Rd=`SelectScrollDownButton`,zd=u.forwardRef((e,t)=>{let n=ud(Rd,e.__scopeSelect),r=yd(Rd,e.__scopeSelect),[i,a]=u.useState(!1),o=h(t,r.onScrollButtonChange);return F(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,d.jsx)(Bd,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});zd.displayName=Rd;var Bd=u.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=ud(`SelectScrollButton`,n),o=u.useRef(null),s=Uu(n),c=u.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return u.useEffect(()=>()=>c(),[c]),F(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,d.jsx)(z.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:L(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:L(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:L(i.onPointerLeave,()=>{c()})})}),Vd=`SelectSeparator`,Hd=u.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,d.jsx)(z.div,{"aria-hidden":!0,...r,ref:t})});Hd.displayName=Vd;var Ud=`SelectArrow`,Wd=u.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=qu(n),a=Yu(Ud,n),o=ud(Ud,n);return a.open&&o.position===`popper`?(0,d.jsx)(Ls,{...i,...r,ref:t}):null});Wd.displayName=Ud;var Gd=`SelectBubbleInput`,Kd=u.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=u.useRef(null),a=h(r,i),o=Ru(t);return u.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,d.jsx)(z.select,{...n,style:{...Hr,...n.style},ref:a,defaultValue:t})});Kd.displayName=Gd;function qd(e){return e===``||e===void 0}function Jd(e){let t=P(e),n=u.useRef(``),r=u.useRef(0),i=u.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=u.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function Yd(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Xd(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Xd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Zd=Qu,Qd=ed,$d=nd,ef=id,tf=od,nf=cd,rf=xd,af=jd,of=Nd,sf=Fd,Z={wrapper:`uzi-select-module__wrapper__7szq0`,wrapperFullWidth:`uzi-select-module__wrapperFullWidth__IyOIG`,trigger:`uzi-select-module__trigger__ldh8w`,value:`uzi-select-module__value__FTUJh`,chevron:`uzi-select-module__chevron__U6HXS`,content:`uzi-select-module__content__pOWWy`,selectFadeIn:`uzi-select-module__selectFadeIn__Z-yKX`,viewport:`uzi-select-module__viewport__VGZM6`,item:`uzi-select-module__item__6uM6-`,indicator:`uzi-select-module__indicator__ZHcg5`,indicatorIcon:`uzi-select-module__indicatorIcon__kOV2G`},cf=`__uzi_select_empty__`,lf=u.forwardRef(({options:e,value:t,onChange:n,placeholder:r,allowEmptyOption:i=!1,fullWidth:a=!0,className:o,id:s,name:c,disabled:l,required:u,autoComplete:f,form:p,title:m,"aria-label":h,"aria-labelledby":g,onBlur:_,onFocus:v},y)=>(0,d.jsx)(`div`,{className:D(Z.wrapper,a&&Z.wrapperFullWidth,o),children:(0,d.jsxs)(Zd,{value:t,onValueChange:e=>n(e===cf?``:e),name:c,disabled:l,required:u,autoComplete:f,form:p,children:[(0,d.jsxs)(Qd,{ref:y,id:s,className:Z.trigger,title:m,"aria-label":h,"aria-labelledby":g,onBlur:_,onFocus:v,children:[(0,d.jsx)($d,{className:Z.value,placeholder:r}),(0,d.jsx)(ef,{className:Z.chevron,"aria-hidden":`true`,children:(0,d.jsx)(`svg`,{viewBox:`0 0 10 10`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`10`,children:(0,d.jsx)(`path`,{d:`M2 3.5L5 6.5L8 3.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})})]}),(0,d.jsx)(tf,{children:(0,d.jsx)(nf,{className:Z.content,position:`popper`,sideOffset:4,align:`start`,children:(0,d.jsxs)(rf,{className:Z.viewport,children:[r&&i?(0,d.jsxs)(af,{value:cf,className:Z.item,children:[(0,d.jsx)(`span`,{className:Z.indicator,children:(0,d.jsx)(sf,{children:(0,d.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`16`,height:`16`,"aria-hidden":`true`,className:Z.indicatorIcon,children:(0,d.jsx)(`path`,{d:`M3.5 8.5 6.5 11.5 12.5 4.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})})}),(0,d.jsx)(of,{children:r})]}):null,e.map(e=>(0,d.jsxs)(af,{value:e.value,disabled:e.disabled,className:Z.item,children:[(0,d.jsx)(`span`,{className:Z.indicator,children:(0,d.jsx)(sf,{children:(0,d.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`16`,height:`16`,"aria-hidden":`true`,className:Z.indicatorIcon,children:(0,d.jsx)(`path`,{d:`M3.5 8.5 6.5 11.5 12.5 4.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})})}),(0,d.jsx)(of,{children:e.label})]},e.value))]})})})]})}));lf.displayName=`Select`;var uf=u.forwardRef(({options:e,value:t,onChange:n,placeholder:r=`All`,allowClear:i=!0,...a},o)=>(0,d.jsx)(lf,{ref:o,options:e,value:t,onChange:n,placeholder:r,allowEmptyOption:i,fullWidth:!1,...a}));uf.displayName=`Dropdown`;var Q={content:`uzi-dropdown-menu-module__content__n-ElH`,menuFadeIn:`uzi-dropdown-menu-module__menuFadeIn__ITxMo`,item:`uzi-dropdown-menu-module__item__tBNtW`,itemDestructive:`uzi-dropdown-menu-module__itemDestructive__oWmKd`,insetItem:`uzi-dropdown-menu-module__insetItem__g7ONJ`,indicator:`uzi-dropdown-menu-module__indicator__5qwFh`,indicatorIcon:`uzi-dropdown-menu-module__indicatorIcon__nhJMw`,radioDot:`uzi-dropdown-menu-module__radioDot__GWUVT`,label:`uzi-dropdown-menu-module__label__sFnNR`,separator:`uzi-dropdown-menu-module__separator__PgUob`,chevron:`uzi-dropdown-menu-module__chevron__kxfiF`};function df(e){return(0,d.jsx)(xu,{...e})}function ff(e){return(0,d.jsx)(Su,{...e})}function pf(e){return(0,d.jsx)(Tu,{...e})}function mf(e){return(0,d.jsx)(Cu,{...e})}function hf(e){return(0,d.jsx)(Nu,{...e})}function gf(e){return(0,d.jsx)(ku,{...e})}function _f({className:e,sideOffset:t=4,...n}){return(0,d.jsx)(Cu,{children:(0,d.jsx)(wu,{sideOffset:t,className:D(Q.content,e),...n})})}function vf({className:e,inset:t,variant:n=`default`,...r}){return(0,d.jsx)(Du,{"data-inset":t?`true`:void 0,className:D(Q.item,n===`destructive`&&Q.itemDestructive,e),...r})}function yf({className:e,children:t,...n}){return(0,d.jsxs)(Ou,{className:D(Q.item,Q.insetItem,e),...n,children:[(0,d.jsx)(`span`,{className:Q.indicator,children:(0,d.jsx)(ju,{children:(0,d.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`16`,height:`16`,"aria-hidden":`true`,className:Q.indicatorIcon,children:(0,d.jsx)(`path`,{d:`M3.5 8.5 6.5 11.5 12.5 4.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})})}),t]})}function bf({className:e,children:t,...n}){return(0,d.jsxs)(Au,{className:D(Q.item,Q.insetItem,e),...n,children:[(0,d.jsx)(`span`,{className:Q.indicator,children:(0,d.jsx)(ju,{children:(0,d.jsx)(`span`,{className:Q.radioDot})})}),t]})}function xf({className:e,inset:t,...n}){return(0,d.jsx)(Eu,{"data-inset":t?`true`:void 0,className:D(Q.label,e),...n})}function Sf({className:e,...t}){return(0,d.jsx)(Mu,{className:D(Q.separator,e),...t})}function Cf({className:e,inset:t,children:n,...r}){return(0,d.jsxs)(Pu,{"data-inset":t?`true`:void 0,className:D(Q.item,e),...r,children:[n,(0,d.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`16`,height:`16`,"aria-hidden":`true`,className:Q.chevron,children:(0,d.jsx)(`path`,{d:`M6 3.5 10.5 8 6 12.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`})})]})}function wf({className:e,...t}){return(0,d.jsx)(Fu,{className:D(Q.content,e),...t})}var Tf=[`light`,`dark`,`system`],Ef=[`blue`,`cyan`,`violet`,`emerald`,`amber`,`rose`],Df=`uzi-theme`,Of=`uzi-accent`,kf=Df,Af=Of,jf=`data-uzi-theme`,Mf=`data-uzi-accent`,Nf=(0,u.createContext)(void 0);function Pf(e){return Tf.includes(e)}function Ff(e){return Ef.includes(e)}function If(){return typeof window>`u`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Lf({children:e,theme:t,defaultTheme:n=`system`,accent:r,defaultAccent:i=`blue`,onThemeChange:a,onAccentChange:o,storageKey:s=kf,accentStorageKey:c=Af,disableStorage:l=!1,toastConfig:f}){let[p,m]=(0,u.useState)(n),[h,g]=(0,u.useState)(i),[_,v]=(0,u.useState)(`light`);(0,u.useEffect)(()=>{if(v(If()),!l){let e=window.localStorage.getItem(s);Pf(e)&&m(e);let t=window.localStorage.getItem(c);Ff(t)&&g(t)}},[l,s,c]);let y=t!==void 0,b=r!==void 0,x=y?t:p,S=b?r:h,C=x===`system`?_:x;(0,u.useEffect)(()=>{if(typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=()=>v(e.matches?`dark`:`light`);return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,u.useEffect)(()=>{if(typeof document>`u`)return;let e=document.documentElement;e.setAttribute(jf,C),e.setAttribute(Mf,S),e.style.colorScheme=C,e.classList.toggle(`dark`,C===`dark`)},[S,C]);let w=(0,u.useCallback)(e=>{y||m(e),!l&&typeof window<`u`&&window.localStorage.setItem(s,e),a?.(e)},[l,y,a,s]),T=(0,u.useCallback)(e=>{b||g(e),!l&&typeof window<`u`&&window.localStorage.setItem(c,e),o?.(e)},[c,l,b,o]),E=(0,u.useCallback)(()=>{w(C===`dark`?`light`:`dark`)},[C,w]),D=(0,u.useMemo)(()=>({theme:x,resolvedTheme:C,accent:S,setTheme:w,setAccent:T,toggleTheme:E}),[S,x,C,T,w,E]);return(0,d.jsx)(Nf.Provider,{value:D,children:(0,d.jsx)(Ui,{config:f,children:e})})}function Rf(){let e=(0,u.useContext)(Nf);if(!e)throw Error(`useTheme must be used within a ThemeProvider`);return e}var zf={withLabel:`uzi-theme-toggle-button-module__withLabel__KqtDj`};function Bf(){return(0,d.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,width:`16`,height:`16`,fill:`none`,children:(0,d.jsx)(`path`,{d:`M20 15.2A8.5 8.5 0 0 1 8.8 4 9 9 0 1 0 20 15.2Z`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function Vf(){return(0,d.jsxs)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,width:`16`,height:`16`,fill:`none`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`,stroke:`currentColor`,strokeWidth:`1.8`}),(0,d.jsx)(`path`,{d:`M12 2.75v2.5M12 18.75v2.5M21.25 12h-2.5M5.25 12h-2.5M18.54 5.46l-1.77 1.77M7.23 16.77l-1.77 1.77M18.54 18.54l-1.77-1.77M7.23 7.23 5.46 5.46`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`})]})}function Hf({showLabel:e=!1,lightLabel:t=`Light mode`,darkLabel:n=`Dark mode`,className:r,onClick:i,...a}){let{resolvedTheme:o,toggleTheme:s}=Rf(),c=o===`dark`?t:n;return(0,d.jsxs)(j,{type:`button`,variant:`ghost`,size:e?`sm`:`icon`,className:D(e&&zf.withLabel,r),"aria-label":`Switch to ${c.toLowerCase()}`,title:`Switch to ${c.toLowerCase()}`,onClick:e=>{i?.(e),e.defaultPrevented||s()},...a,children:[o===`dark`?(0,d.jsx)(Vf,{}):(0,d.jsx)(Bf,{}),e&&(0,d.jsx)(`span`,{children:c})]})}var Uf={topBar:`uzi-top-bar-module__topBar__MJ-7S`,topBarStatic:`uzi-top-bar-module__topBarStatic__JvEwt`,topBarInner:`uzi-top-bar-module__topBarInner__PBbi8`,topBarStart:`uzi-top-bar-module__topBarStart__DrdN2`,topBarBrand:`uzi-top-bar-module__topBarBrand__80VV3`,topBarBrandContent:`uzi-top-bar-module__topBarBrandContent__O4Uto`,topBarCenter:`uzi-top-bar-module__topBarCenter__Kwxg-`,topBarCenterGroup:`uzi-top-bar-module__topBarCenterGroup__7Ishp`,topBarActions:`uzi-top-bar-module__topBarActions__mgMd8`};function Wf({leading:e,brand:t,brandHref:n,brandingLocation:r=`left`,start:i,center:a,actions:o,showThemeToggle:s=!1,themeToggleProps:c,className:l,innerClassName:u,isSticky:f,sticky:p=!0,children:m,...h}){let g=f??p,_=t?n?(0,d.jsx)(`a`,{href:n,className:Uf.topBarBrand,children:(0,d.jsx)(`span`,{className:Uf.topBarBrandContent,children:t})}):(0,d.jsx)(`div`,{className:Uf.topBarBrand,children:(0,d.jsx)(`span`,{className:Uf.topBarBrandContent,children:t})}):null;return(0,d.jsx)(`header`,{className:D(Uf.topBar,!g&&Uf.topBarStatic,l),...h,children:(0,d.jsxs)(`div`,{className:D(Uf.topBarInner,u),children:[(0,d.jsxs)(`div`,{className:Uf.topBarStart,children:[e,r===`left`&&_,i]}),_&&r===`center`||a||m?(0,d.jsx)(`div`,{className:Uf.topBarCenter,children:(0,d.jsxs)(`div`,{className:Uf.topBarCenterGroup,children:[r===`center`&&_,a??m]})}):null,(0,d.jsxs)(`div`,{className:Uf.topBarActions,children:[s&&(0,d.jsx)(Hf,{...c}),o]})]})})}var Gf={appShell:`uzi-app-shell-module__appShell__S0cVI`,appShellAnimated:`uzi-app-shell-module__appShellAnimated__-CRIl`,appShellOpen:`uzi-app-shell-module__appShellOpen__1rZUl`,appShellCollapsed:`uzi-app-shell-module__appShellCollapsed__fSasN`,appShellTopbar:`uzi-app-shell-module__appShellTopbar__rgXsW`,appShellTopbarLeft:`uzi-app-shell-module__appShellTopbarLeft__-EVuB`,appShellTopbarStart:`uzi-app-shell-module__appShellTopbarStart__XXQpq`,appShellTopbarRight:`uzi-app-shell-module__appShellTopbarRight__l1G57`,appShellBrand:`uzi-app-shell-module__appShellBrand__TXwyN`,appShellHamburger:`uzi-app-shell-module__appShellHamburger__BciFA`,appShellSidebar:`uzi-app-shell-module__appShellSidebar__oY7uj`,appShellMain:`uzi-app-shell-module__appShellMain__eHP2r`,appShellBackdrop:`uzi-app-shell-module__appShellBackdrop__y31xs`,appShellSidebarOpen:`uzi-app-shell-module__appShellSidebarOpen__Z5AIo`},Kf=960;function qf(){return typeof window>`u`?!1:window.innerWidth>=Kf}function Jf({children:e,sidebar:t,brand:n,brandHref:r,topbarStart:i,topbarEnd:a,showThemeToggle:o=!1,themeToggleProps:s,topBarBrandingLocation:c=`left`,className:l,sidebarClassName:f,topbarClassName:p,mainClassName:m,sidebarWidth:h,closeSidebarOnChangeKey:g,hamburgerLabel:_=`Toggle navigation`,onSidebarToggle:v}){let[y,b]=(0,u.useState)(!1),[x,S]=(0,u.useState)(!1),[C,w]=(0,u.useState)(!1),T=(0,u.useRef)(!1),E=(0,u.useRef)(g),O=(0,u.useRef)(null),k=(0,u.useRef)(null),A=(0,u.useRef)(null),j=(0,u.useId)();(0,u.useEffect)(()=>{let e=qf();b(e),S(e),T.current=e;let t=window.requestAnimationFrame(()=>{w(!0)}),n=()=>{let e=qf();b(e),e!==T.current&&(S(e),T.current=e)};return window.addEventListener(`resize`,n),()=>{window.cancelAnimationFrame(t),window.removeEventListener(`resize`,n)}},[]),(0,u.useEffect)(()=>{if(y||!x)return;let e=A.current,t=()=>S(!1),n=e=>{let n=e.target;n&&(O.current?.contains(n)||k.current?.contains(n)||t())},r=window.setTimeout(()=>{document.addEventListener(`pointerdown`,n),window.addEventListener(`scroll`,t,{passive:!0}),e?.addEventListener(`scroll`,t,{passive:!0}),document.addEventListener(`touchmove`,t,{passive:!0})},10);return()=>{window.clearTimeout(r),document.removeEventListener(`pointerdown`,n),window.removeEventListener(`scroll`,t),e?.removeEventListener(`scroll`,t),document.removeEventListener(`touchmove`,t)}},[x,y]),(0,u.useEffect)(()=>{!y&&E.current!==g&&S(!1),E.current=g},[g,y]),(0,u.useEffect)(()=>{v?.(x)},[x,v]);let M=()=>S(e=>!e),N=h===void 0?void 0:typeof h==`number`?`${h}px`:h,P=N?{"--app-shell-sidebar-width":N}:void 0,F=D(Gf.appShell,C&&Gf.appShellAnimated,x?Gf.appShellOpen:Gf.appShellCollapsed,l),ee=D(Gf.appShellSidebar,x&&Gf.appShellSidebarOpen,f);return(0,d.jsxs)(`div`,{className:F,style:P,"data-app-shell":!0,"data-desktop":y?`true`:`false`,"data-sidebar-open":x?`true`:`false`,children:[(0,d.jsx)(Wf,{className:D(Gf.appShellTopbar,p),leading:(0,d.jsx)(`button`,{ref:k,type:`button`,className:Gf.appShellHamburger,onClick:M,"aria-label":_,"aria-expanded":x,"aria-controls":j,children:(0,d.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,d.jsx)(`path`,{d:`M3 6h18M3 12h18M3 18h18`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`})})}),brand:n,brandHref:r,brandingLocation:c,start:i,actions:a,showThemeToggle:o,themeToggleProps:s}),!y&&x&&(0,d.jsx)(`div`,{className:Gf.appShellBackdrop,onClick:()=>S(!1),onTouchStart:()=>S(!1),"aria-hidden":`true`}),(0,d.jsx)(`aside`,{ref:O,id:j,className:ee,"aria-label":`Sidebar navigation`,children:t}),(0,d.jsx)(`main`,{ref:A,className:D(Gf.appShellMain,m),children:e})]})}var $={sidebarNav:`uzi-sidebar-nav-module__sidebarNav__eUI5c`,sidebarNavCollapsed:`uzi-sidebar-nav-module__sidebarNavCollapsed__xTM9s`,header:`uzi-sidebar-nav-module__header__Y4NLy`,footer:`uzi-sidebar-nav-module__footer__GjWky`,sections:`uzi-sidebar-nav-module__sections__mXuGQ`,section:`uzi-sidebar-nav-module__section__yjtCY`,sectionItems:`uzi-sidebar-nav-module__sectionItems__tNcph`,sectionLabel:`uzi-sidebar-nav-module__sectionLabel__Wx94m`,item:`uzi-sidebar-nav-module__item__uMHkJ`,itemActive:`uzi-sidebar-nav-module__itemActive__wBbiS`,itemCollapsed:`uzi-sidebar-nav-module__itemCollapsed__jLJN-`,itemDisabled:`uzi-sidebar-nav-module__itemDisabled__Yf8Il`,icon:`uzi-sidebar-nav-module__icon__tyrUg`,itemBody:`uzi-sidebar-nav-module__itemBody__wI0iy`,labelRow:`uzi-sidebar-nav-module__labelRow__D8sEJ`,label:`uzi-sidebar-nav-module__label__A-nt6`,description:`uzi-sidebar-nav-module__description__Xf3Si`,badge:`uzi-sidebar-nav-module__badge__-hnFd`},Yf=(e,t)=>e.active===void 0?!e.href||!t?!1:e.href===`/`?t===`/`:t.startsWith(e.href):e.active,Xf=(e,t)=>{if(e.active!==void 0)return e.active;if(!e.href||!t)return!1;if(e.href===`/`)return t===`/`;let n=e.href.endsWith(`/`)?e.href.slice(0,-1):e.href;return n===t||t.startsWith(`${n}/`)},Zf=(e,t)=>e===`/`?t===`/`:t.startsWith(e),Qf=(e,t)=>e===`/`?t===`/`:(e.endsWith(`/`)?e.slice(0,-1):e)===t,$f=e=>e.endsWith(`/`)?e.length-1:e.length,ep=(e,t)=>{let n=new Set;if(!t)return n;let r=e.filter(e=>e.disabled||!e.href?!1:e.exact?Qf(e.href,t):Zf(e.href,t));if(r.length===0)return n;let i=0;for(let e of r){if(!e.href)continue;let t=$f(e.href);t>i&&(i=t)}for(let e of r)e.href&&$f(e.href)===i&&n.add(e.href);return n};function tp({items:e=[],sections:t,currentPath:n,getIsActive:r,matchStrategy:i=`prefix`,onItemClick:a,header:o,footer:s,ariaLabel:c=`Sidebar navigation`,collapsed:l=!1,iconSize:f,className:p,itemClassName:m,sectionClassName:h}){let g=(0,u.useMemo)(()=>t?.length?t:[{id:`default`,items:e}],[t,e]),_=(0,u.useMemo)(()=>g.flatMap(e=>e.items),[g]),v=(0,u.useMemo)(()=>{if(i===`most-specific`){let e=ep(_,n);return t=>t.active===void 0?t.href?e.has(t.href):!1:t.active}else return(e,t)=>e.active===void 0?e.exact?Xf(e,t):Yf(e,t):e.active},[i,_,n]),y=r??v,b=f===void 0?void 0:{"--sidebar-nav-icon-size":typeof f==`number`?`${f}px`:f};return(0,d.jsxs)(`nav`,{className:D($.sidebarNav,l&&$.sidebarNavCollapsed,p),"aria-label":c,style:b,children:[o?(0,d.jsx)(`div`,{className:$.header,children:o}):null,(0,d.jsx)(`div`,{className:$.sections,children:g.map((e,t)=>(0,d.jsxs)(`div`,{className:D($.section,h),children:[e.label&&!l?(0,d.jsx)(`div`,{className:$.sectionLabel,children:e.label}):null,(0,d.jsx)(`div`,{className:$.sectionItems,children:e.items.map((r,i)=>(0,d.jsx)(np,{item:r,active:y(r,n),collapsed:l,itemClassName:m,onItemClick:a},`${e.id??t}-${r.href??r.title??i}`))})]},e.id??`section-${t}`))}),s?(0,d.jsx)(`div`,{className:$.footer,children:s}):null]})}function np({item:e,active:t,collapsed:n,itemClassName:r,onItemClick:i}){let a=e.rel??(e.target===`_blank`?`noreferrer`:void 0),o=e.title??(typeof e.label==`string`?e.label:void 0),s=D($.item,t&&$.itemActive,n&&$.itemCollapsed,e.disabled&&$.itemDisabled,r),c=(0,d.jsxs)(d.Fragment,{children:[e.icon&&(0,d.jsx)(`span`,{className:$.icon,children:e.icon}),n?null:(0,d.jsxs)(`span`,{className:$.itemBody,children:[(0,d.jsxs)(`span`,{className:$.labelRow,children:[(0,d.jsx)(`span`,{className:$.label,children:e.label}),e.badge&&(0,d.jsx)(`span`,{className:$.badge,children:e.badge})]}),e.description?(0,d.jsx)(`span`,{className:$.description,children:e.description}):null]})]}),l=()=>{e.disabled||(e.onClick?.(),i?.(e))};return e.href?e.disabled?(0,d.jsx)(`div`,{className:s,"aria-current":t?`page`:void 0,"aria-disabled":`true`,title:n?o:void 0,children:c}):(0,d.jsx)(`a`,{className:s,href:e.href,target:e.target,rel:a,"aria-current":t?`page`:void 0,title:n?o:void 0,onClick:l,children:c}):(0,d.jsx)(`button`,{type:`button`,className:s,"aria-current":t?`page`:void 0,"aria-disabled":e.disabled?`true`:void 0,disabled:e.disabled,title:n?o:void 0,onClick:l,children:c})}var rp={skeleton:`uzi-skeleton-module__skeleton__fula5`,"skeleton-pulse":`uzi-skeleton-module__skeleton-pulse__Yp45W`,"radius-sm":`uzi-skeleton-module__radius-sm__FdccD`,"radius-md":`uzi-skeleton-module__radius-md__zH3RE`,"radius-lg":`uzi-skeleton-module__radius-lg__YVrHw`,"radius-full":`uzi-skeleton-module__radius-full__5o2m0`};function ip({width:e,height:t,radius:n=`md`,className:r,style:i,...a}){return(0,d.jsx)(`div`,{className:D(rp.skeleton,rp[`radius-${n}`],r),style:{width:e,height:t,...i},"aria-hidden":`true`,...a})}var ap={track:`uzi-progress-module__track__gM0oV`,fill:`uzi-progress-module__fill__aLAbp`,"tone-default":`uzi-progress-module__tone-default__fhf7o`,"tone-success":`uzi-progress-module__tone-success__FsGHD`,"tone-warning":`uzi-progress-module__tone-warning__UAttL`,"tone-danger":`uzi-progress-module__tone-danger__-L-Ee`};function op({value:e,tone:t=`default`,className:n,"aria-label":r,...i}){let a=Math.max(0,Math.min(100,e));return(0,d.jsx)(`div`,{className:D(ap.track,n),role:`progressbar`,"aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r,...i,children:(0,d.jsx)(`div`,{className:D(ap.fill,ap[`tone-${t}`]),style:{width:`${a}%`}})})}var sp={track:`uzi-segmented-toggle-module__track__M4fjm`,option:`uzi-segmented-toggle-module__option__7cEZJ`,label:`uzi-segmented-toggle-module__label__bDAIv`};function cp({options:e,value:t,onChange:n,"aria-label":r,"aria-labelledby":i,className:a}){let o=u.useRef([]),s=e.findIndex(e=>e.value===t),c=e.findIndex(e=>!e.disabled),l=-1;for(let t=e.length-1;t>=0;--t)if(!e[t]?.disabled){l=t;break}let f=s>=0&&!e[s]?.disabled?s:c,p=e=>{o.current[e]?.focus()},m=(t,n)=>{if(e.length===0)return-1;let r=t;for(let t=0;t<e.length;t+=1)if(r=(r+n+e.length)%e.length,!e[r]?.disabled)return r;return t},h=r=>{let i=e[r];!i||i.disabled||i.value===t||n(i.value)},g=(e,t)=>{switch(e.key){case`ArrowRight`:case`ArrowDown`:{e.preventDefault();let n=m(t,1);p(n),h(n);break}case`ArrowLeft`:case`ArrowUp`:{e.preventDefault();let n=m(t,-1);p(n),h(n);break}case`Home`:e.preventDefault(),p(c),c>=0&&h(c);break;case`End`:e.preventDefault(),l>=0&&(p(l),h(l));break;default:break}};return(0,d.jsx)(`div`,{className:D(sp.track,a),role:`radiogroup`,"aria-label":r,"aria-labelledby":i,children:e.map((e,r)=>(0,d.jsx)(`button`,{ref:e=>{o.current[r]=e},type:`button`,role:`radio`,"aria-checked":e.value===t,disabled:e.disabled,tabIndex:e.disabled?-1:r===f?0:-1,onClick:()=>{e.value!==t&&n(e.value)},onKeyDown:e=>g(e,r),className:D(sp.option),children:(0,d.jsx)(`span`,{className:sp.label,children:e.label})},e.value))})}exports.Alert=Br,exports.AppShell=Jf,exports.Avatar=xe,exports.AvatarFallback=Ce,exports.AvatarImage=Se,exports.Button=j,exports.Card=Te,exports.Checkbox=ea,exports.Dropdown=uf,exports.DropdownMenu=df,exports.DropdownMenuCheckboxItem=yf,exports.DropdownMenuContent=_f,exports.DropdownMenuGroup=pf,exports.DropdownMenuItem=vf,exports.DropdownMenuLabel=xf,exports.DropdownMenuPortal=mf,exports.DropdownMenuRadioGroup=gf,exports.DropdownMenuRadioItem=bf,exports.DropdownMenuSeparator=Sf,exports.DropdownMenuSub=hf,exports.DropdownMenuSubContent=wf,exports.DropdownMenuSubTrigger=Cf,exports.DropdownMenuTrigger=ff,exports.Input=Xi,exports.Label=Qi,exports.Modal=Rr,exports.ModalOverlay=Lr,exports.MultiSelect=Iu,exports.Pill=De,exports.Progress=op,exports.SegmentedToggle=cp,exports.Select=lf,exports.SidebarNav=tp,exports.Skeleton=ip,exports.ThemeProvider=Lf,exports.ThemeToggleButton=Hf,exports.ToastProvider=Ui,exports.TopBar=Wf,exports.cx=D,exports.useTheme=Rf,exports.useToast=Wi;
47
+ //# sourceMappingURL=index.cjs.map