izen-react-starter 2.7.9 → 2.7.11
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/{2SSKDMRQ-NFToiE-A.js → 2SSKDMRQ-DY4_AKGT.js} +2 -2
- package/dist/{AP7HFJJL-Crr50vtx.js → AP7HFJJL-B_nFrML5.js} +1 -1
- package/dist/{WDYDFRGG-zYENq2bK.js → WDYDFRGG-BnfaRqWe.js} +2 -2
- package/dist/{index-wtaTDFLS.js → index-CDL-jBp_.js} +4 -4
- package/dist/react-starter.js +1 -1
- package/dist/react-starter.umd.cjs +1 -1
- package/dist/src/components/ui/modal.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./AP7HFJJL-
|
|
2
|
-
import { g as h, c as v, a as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./AP7HFJJL-B_nFrML5.js";
|
|
2
|
+
import { g as h, c as v, a as e } from "./index-CDL-jBp_.js";
|
|
3
3
|
var C = (r) => {
|
|
4
4
|
const [t, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var xs = Object.defineProperty;
|
|
2
2
|
var $s = (e, t, n) => t in e ? xs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Re = (e, t, n) => $s(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { b as $e, d as B, o as ft, e as H, c as P, a as m, P as No, m as ve, S as K, t as _, i as k, f as U, h as F, j as Cs, k as ur, u as Ce, l as V, s as Qn, n as Yn, p as gt, q as T, r as Ss, v as Ut, w as _t, x as qe, y as ks, z as Rt, A as Bt, B as Es, C as Ds, D as En, F as As, E as Ht, $ as Ho, G as Ms, H as Ts, I as W, J as Vr, K as Fs, L as Is, M as cr, N as Os, O as Ls, Q as Hn, R as Ps, T as qs, U as ie, V as _s, W as Rs } from "./index-
|
|
4
|
+
import { b as $e, d as B, o as ft, e as H, c as P, a as m, P as No, m as ve, S as K, t as _, i as k, f as U, h as F, j as Cs, k as ur, u as Ce, l as V, s as Qn, n as Yn, p as gt, q as T, r as Ss, v as Ut, w as _t, x as qe, y as ks, z as Rt, A as Bt, B as Es, C as Ds, D as En, F as As, E as Ht, $ as Ho, G as Ms, H as Ts, I as W, J as Vr, K as Fs, L as Is, M as cr, N as Os, O as Ls, Q as Hn, R as Ps, T as qs, U as ie, V as _s, W as Rs } from "./index-CDL-jBp_.js";
|
|
5
5
|
var zs = (e) => e != null, Ks = (e) => e.filter(zs);
|
|
6
6
|
function Bs(e) {
|
|
7
7
|
return (...t) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./AP7HFJJL-
|
|
2
|
-
import { g as d, c as f, a as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./AP7HFJJL-B_nFrML5.js";
|
|
2
|
+
import { g as d, c as f, a as e } from "./index-CDL-jBp_.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -9231,7 +9231,7 @@ var X3e = (e, t = !1) => {
|
|
|
9231
9231
|
const t = O$(() => {
|
|
9232
9232
|
const n = this, [r] = I(this, xc), [o] = I(this, Sc), [i] = I(this, Cc), [a] = I(this, Ec), [s] = I(this, $f), [l] = I(this, bc), [c] = I(this, Oc);
|
|
9233
9233
|
let u;
|
|
9234
|
-
return I(this, _c) ? u = I(this, _c) : (u = E$(() => import("./WDYDFRGG-
|
|
9234
|
+
return I(this, _c) ? u = I(this, _c) : (u = E$(() => import("./WDYDFRGG-BnfaRqWe.js")), fe(this, _c, u)), H$(I(this, If), I(this, wc)), S$(u, C$({
|
|
9235
9235
|
get queryFlavor() {
|
|
9236
9236
|
return I(n, Mf);
|
|
9237
9237
|
},
|
|
@@ -9338,7 +9338,7 @@ var X3e = (e, t = !1) => {
|
|
|
9338
9338
|
const t = O$(() => {
|
|
9339
9339
|
const n = this, [r] = I(this, kc), [o] = I(this, Ac), [i] = I(this, Tc), [a] = I(this, Rc), [s] = I(this, Bf), [l] = I(this, Pc), [c] = I(this, Mc), [u] = I(this, Ic);
|
|
9340
9340
|
let d;
|
|
9341
|
-
return I(this, Dc) ? d = I(this, Dc) : (d = E$(() => import("./2SSKDMRQ-
|
|
9341
|
+
return I(this, Dc) ? d = I(this, Dc) : (d = E$(() => import("./2SSKDMRQ-DY4_AKGT.js")), fe(this, Dc, d)), H$(I(this, Vf), I(this, Nc)), S$(d, C$({
|
|
9342
9342
|
get queryFlavor() {
|
|
9343
9343
|
return I(n, Lf);
|
|
9344
9344
|
},
|
|
@@ -43585,13 +43585,13 @@ const DO = ({
|
|
|
43585
43585
|
/* @__PURE__ */ v($6, {})
|
|
43586
43586
|
] }),
|
|
43587
43587
|
/* @__PURE__ */ v("div", { children: o })
|
|
43588
|
-
] }) }) : /* @__PURE__ */ v(By, { open: n, onOpenChange: l, children: /* @__PURE__ */ T(Hp, { className: " w-[1000px] sm:w-[700px] max-w-md
|
|
43588
|
+
] }) }) : /* @__PURE__ */ v(By, { open: n, onOpenChange: l, children: /* @__PURE__ */ T(Hp, { className: " w-[1000px] sm:w-[700px] max-w-md lg:max-w-3xl flex flex-col " + i, onPointerDownOutside: a ? () => {
|
|
43589
43589
|
} : (c) => c.preventDefault(), children: [
|
|
43590
43590
|
/* @__PURE__ */ T(Uy, { children: [
|
|
43591
43591
|
/* @__PURE__ */ v(Wy, { className: "ml-4", children: e }),
|
|
43592
43592
|
/* @__PURE__ */ v(Hy, { children: t })
|
|
43593
43593
|
] }),
|
|
43594
|
-
/* @__PURE__ */ v(MO, { className: "px-6", children: /* @__PURE__ */ v("div", { children: o }) }),
|
|
43594
|
+
/* @__PURE__ */ v(MO, { className: "flex-1 px-6 -mx-6", children: /* @__PURE__ */ v("div", { className: "px-6", children: o }) }),
|
|
43595
43595
|
/* @__PURE__ */ v(NO, {})
|
|
43596
43596
|
] }) });
|
|
43597
43597
|
};
|
package/dist/react-starter.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a_ as o, bo as t, br as r, bp as n, bq as i, ff as d, a5 as l, a6 as u, bs as c, bu as b, bv as g, bE as p, bF as S, bz as C, bD as m, bB as T, bA as D, bx as M, bw as A, bC as f, by as v, fv as h, bt as I, bb as P, bG as F, b3 as w, bH as x, bJ as B, bI as R, bK as G, bM as L, bS as k, bO as y, bP as H, bN as N, bQ as O, bR as E, Y as U, bU as V, Z as z, bZ as W, bY as q, bW as X, bV as j, bX as Y, b_ as Z, b$ as _, c0 as J, c2 as K, c1 as Q, fc as $, c3 as aa, c6 as ea, c7 as sa, c8 as oa, c4 as ta, c5 as ra, c9 as na, ca as ia, cc as da, cb as la, cd as ua, ce as ca, ch as ba, ci as ga, cf as pa, cj as Sa, cg as Ca, cl as ma, ck as Ta, aX as Da, cm as Ma, cq as Aa, co as fa, cv as va, cp as ha, cs as Ia, cw as Pa, cA as Fa, cr as wa, ct as xa, cu as Ba, cx as Ra, cy as Ga, cz as La, cn as ka, fu as ya, a0 as Ha, fi as Na, fk as Oa, aa as Ea, ab as Ua, fy as Va, fz as za, fw as Wa, cB as qa, cF as Xa, cG as ja, cK as Ya, cI as Za, cH as _a, cD as Ja, cC as Ka, cJ as Qa, cE as $a, cL as ae, cP as ee, cQ as se, cU as oe, cS as te, cR as re, cN as ne, cM as ie, cT as de, cO as le, cV as ue, cZ as ce, cX as be, d2 as ge, cY as pe, c$ as Se, d3 as Ce, d7 as me, c_ as Te, d0 as De, d1 as Me, d4 as Ae, d5 as fe, d6 as ve, cW as he, a4 as Ie, ai as Pe, d9 as Fe, bf as we, dc as xe, dd as Be, df as Re, da as Ge, db as Le, a3 as ke, de as ye, bd as He, fn as Ne, fE as Oe, fB as Ee, dg as Ue, di as Ve, dh as ze, dj as We, ac as qe, ad as Xe, ae as je, af as Ye, dk as Ze, a7 as _e, dl as Je, dm as Ke, dp as Qe, dn as $e, dq as as, aj as es, dr as ss, dy as os, du as ts, dE as rs, dv as ns, dx as is, ds, dB as ls, dz as us, dA as cs, dw as bs, dG as gs, dF as ps, dC as Ss, dD as Cs, dt as ms, a2 as Ts, dH as Ds, b5 as Ms, ft as As, fq as fs, fr as vs, fs as hs, dJ as Is, dM as Ps, dP as Fs, dL as ws, dO as xs, dK as Bs, dN as Rs, dQ as Gs, fo as Ls, b7 as ks, fC as ys, fd as Hs, fl as Ns, dR as Os, dU as Es, dT as Us, dS as Vs, fx as zs, dV as Ws, dX as qs, dW as Xs, dY as js, b1 as Ys, dZ as Zs, d_ as _s, bg as Js, e1 as Ks, e0 as Qs, d$ as $s, ag as ao, e2 as eo, e3 as so, e4 as oo, e8 as to, a9 as ro, e5 as no, a8 as io, ea as lo, e9 as uo, ed as co, ec as bo, eb as go, e7 as po, e6 as So, ee as Co, fm as mo, ef as To, ej as Do, ek as Mo, eo as Ao, em as fo, el as vo, eh as ho, eg as Io, en as Po, ei as Fo, a1 as wo, ep as xo, eq as Bo, er as Ro, es as Go, et as Lo, eu as ko, ev as yo, ew as Ho, ex as No, ey as Oo, ez as Eo, eA as Uo, eB as Vo, eC as zo, eD as Wo, eE as qo, eF as Xo, eG as jo, eH as Yo, eI as Zo, eJ as _o, eK as Jo, fp as Ko, eM as Qo, eN as $o, eO as at, eQ as et, fh as st, fe as ot, fg as tt, fA as rt, eR as nt, eU as it, eS as dt, eT as lt, eV as ut, b9 as ct, fD as bt, ah as gt, eY as pt, f0 as St, e$ as Ct, e_ as mt, eW as Tt, eZ as Dt, bn as Mt, eX as At, eP as ft, f1 as vt, f3 as ht, f4 as It, f5 as Pt, f7 as Ft, f8 as wt, f6 as xt, b0 as Bt, _ as Rt, bk as Gt, at as Lt, bL as kt, aw as yt, au as Ht, av as Nt, bT as Ot, an as Et, am as Ut, ao as Vt, aN as zt, aM as Wt, as as qt, fj as Xt, ar as jt, aI as Yt, X as Zt, aD as _t, ay as Jt, aq as Kt, ap as Qt, ax as $t, aG as ar, aH as er, aK as sr, aL as or, dI as tr, aO as rr, bm as nr, aC as ir, bc as dr, f9 as lr, az as ur, aE as cr, aF as br, X as gr, aJ as pr, aA as Sr, aB as Cr, fb as mr, f2 as Tr, aZ as Dr, bl as Mr, bh as Ar, b4 as fr, aQ as vr, aR as hr, aS as Ir, be as Pr, d8 as Fr, aT as wr, aU as xr, al as Br, ak as Rr, b6 as Gr, b8 as Lr, bi as kr, b2 as yr, aP as Hr, bj as Nr, aW as Or, eL as Er, ba as Ur, fa as Vr, aV as zr, aY as Wr, a$ as qr } from "./index-
|
|
1
|
+
import { a_ as o, bo as t, br as r, bp as n, bq as i, ff as d, a5 as l, a6 as u, bs as c, bu as b, bv as g, bE as p, bF as S, bz as C, bD as m, bB as T, bA as D, bx as M, bw as A, bC as f, by as v, fv as h, bt as I, bb as P, bG as F, b3 as w, bH as x, bJ as B, bI as R, bK as G, bM as L, bS as k, bO as y, bP as H, bN as N, bQ as O, bR as E, Y as U, bU as V, Z as z, bZ as W, bY as q, bW as X, bV as j, bX as Y, b_ as Z, b$ as _, c0 as J, c2 as K, c1 as Q, fc as $, c3 as aa, c6 as ea, c7 as sa, c8 as oa, c4 as ta, c5 as ra, c9 as na, ca as ia, cc as da, cb as la, cd as ua, ce as ca, ch as ba, ci as ga, cf as pa, cj as Sa, cg as Ca, cl as ma, ck as Ta, aX as Da, cm as Ma, cq as Aa, co as fa, cv as va, cp as ha, cs as Ia, cw as Pa, cA as Fa, cr as wa, ct as xa, cu as Ba, cx as Ra, cy as Ga, cz as La, cn as ka, fu as ya, a0 as Ha, fi as Na, fk as Oa, aa as Ea, ab as Ua, fy as Va, fz as za, fw as Wa, cB as qa, cF as Xa, cG as ja, cK as Ya, cI as Za, cH as _a, cD as Ja, cC as Ka, cJ as Qa, cE as $a, cL as ae, cP as ee, cQ as se, cU as oe, cS as te, cR as re, cN as ne, cM as ie, cT as de, cO as le, cV as ue, cZ as ce, cX as be, d2 as ge, cY as pe, c$ as Se, d3 as Ce, d7 as me, c_ as Te, d0 as De, d1 as Me, d4 as Ae, d5 as fe, d6 as ve, cW as he, a4 as Ie, ai as Pe, d9 as Fe, bf as we, dc as xe, dd as Be, df as Re, da as Ge, db as Le, a3 as ke, de as ye, bd as He, fn as Ne, fE as Oe, fB as Ee, dg as Ue, di as Ve, dh as ze, dj as We, ac as qe, ad as Xe, ae as je, af as Ye, dk as Ze, a7 as _e, dl as Je, dm as Ke, dp as Qe, dn as $e, dq as as, aj as es, dr as ss, dy as os, du as ts, dE as rs, dv as ns, dx as is, ds, dB as ls, dz as us, dA as cs, dw as bs, dG as gs, dF as ps, dC as Ss, dD as Cs, dt as ms, a2 as Ts, dH as Ds, b5 as Ms, ft as As, fq as fs, fr as vs, fs as hs, dJ as Is, dM as Ps, dP as Fs, dL as ws, dO as xs, dK as Bs, dN as Rs, dQ as Gs, fo as Ls, b7 as ks, fC as ys, fd as Hs, fl as Ns, dR as Os, dU as Es, dT as Us, dS as Vs, fx as zs, dV as Ws, dX as qs, dW as Xs, dY as js, b1 as Ys, dZ as Zs, d_ as _s, bg as Js, e1 as Ks, e0 as Qs, d$ as $s, ag as ao, e2 as eo, e3 as so, e4 as oo, e8 as to, a9 as ro, e5 as no, a8 as io, ea as lo, e9 as uo, ed as co, ec as bo, eb as go, e7 as po, e6 as So, ee as Co, fm as mo, ef as To, ej as Do, ek as Mo, eo as Ao, em as fo, el as vo, eh as ho, eg as Io, en as Po, ei as Fo, a1 as wo, ep as xo, eq as Bo, er as Ro, es as Go, et as Lo, eu as ko, ev as yo, ew as Ho, ex as No, ey as Oo, ez as Eo, eA as Uo, eB as Vo, eC as zo, eD as Wo, eE as qo, eF as Xo, eG as jo, eH as Yo, eI as Zo, eJ as _o, eK as Jo, fp as Ko, eM as Qo, eN as $o, eO as at, eQ as et, fh as st, fe as ot, fg as tt, fA as rt, eR as nt, eU as it, eS as dt, eT as lt, eV as ut, b9 as ct, fD as bt, ah as gt, eY as pt, f0 as St, e$ as Ct, e_ as mt, eW as Tt, eZ as Dt, bn as Mt, eX as At, eP as ft, f1 as vt, f3 as ht, f4 as It, f5 as Pt, f7 as Ft, f8 as wt, f6 as xt, b0 as Bt, _ as Rt, bk as Gt, at as Lt, bL as kt, aw as yt, au as Ht, av as Nt, bT as Ot, an as Et, am as Ut, ao as Vt, aN as zt, aM as Wt, as as qt, fj as Xt, ar as jt, aI as Yt, X as Zt, aD as _t, ay as Jt, aq as Kt, ap as Qt, ax as $t, aG as ar, aH as er, aK as sr, aL as or, dI as tr, aO as rr, bm as nr, aC as ir, bc as dr, f9 as lr, az as ur, aE as cr, aF as br, X as gr, aJ as pr, aA as Sr, aB as Cr, fb as mr, f2 as Tr, aZ as Dr, bl as Mr, bh as Ar, b4 as fr, aQ as vr, aR as hr, aS as Ir, be as Pr, d8 as Fr, aT as wr, aU as xr, al as Br, ak as Rr, b6 as Gr, b8 as Lr, bi as kr, b2 as yr, aP as Hr, bj as Nr, aW as Or, eL as Er, ba as Ur, fa as Vr, aV as zr, aY as Wr, a$ as qr } from "./index-CDL-jBp_.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
export {
|
|
4
4
|
o as AccessControlWrapper,
|
|
@@ -457,7 +457,7 @@ ${n.map(([i,a])=>{var l;const s=((l=a.theme)==null?void 0:l[r])||a.color;return
|
|
|
457
457
|
--nojs-bg: black !important;
|
|
458
458
|
--nojs-fg: white !important;
|
|
459
459
|
}
|
|
460
|
-
}`;const WV=y.forwardRef(({className:e,containerClassName:t,...n},r)=>g.jsx(HV,{ref:r,containerClassName:U("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:U("disabled:cursor-not-allowed",e),...n}));WV.displayName="InputOTP";const KV=y.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:U("flex items-center",e),...t}));KV.displayName="InputOTPGroup";const GV=y.forwardRef(({index:e,className:t,...n},r)=>{const o=y.useContext(UV),{char:i,hasFakeCaret:a,isActive:s}=o.slots[e];return g.jsxs("div",{ref:r,className:U("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",s&&"z-10 ring-1 ring-ring",t),...n,children:[i,a&&g.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:g.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})});GV.displayName="InputOTPSlot";const YV=y.forwardRef(({...e},t)=>g.jsx("div",{ref:t,role:"separator",...e,children:g.jsx(fte,{})}));YV.displayName="InputOTPSeparator";var jh="Menubar",[xk,VNe,qNe]=va(jh),[ZV]=en(jh,[qNe,na]),xr=kh(),XV=na(),[UNe,Sk]=ZV(jh),QV=y.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:i,loop:a=!0,dir:s,...l}=e,c=Qo(s),u=XV(n),[d,f]=Zt({prop:r,onChange:o,defaultProp:i??"",caller:jh}),[p,h]=y.useState(null);return g.jsx(UNe,{scope:n,value:d,onMenuOpen:y.useCallback(m=>{f(m),h(m)},[f]),onMenuClose:y.useCallback(()=>f(""),[f]),onMenuToggle:y.useCallback(m=>{f(v=>v?"":m),h(m)},[f]),dir:c,loop:a,children:g.jsx(xk.Provider,{scope:n,children:g.jsx(xk.Slot,{scope:n,children:g.jsx(Sh,{asChild:!0,...u,orientation:"horizontal",loop:a,dir:c,currentTabStopId:p,onCurrentTabStopIdChange:h,children:g.jsx(_e.div,{role:"menubar",...l,ref:t})})})})})});QV.displayName=jh;var Ck="MenubarMenu",[HNe,JV]=ZV(Ck),eq=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=Ht(),i=n||o||"LEGACY_REACT_AUTO_VALUE",a=Sk(Ck,t),s=xr(t),l=y.useRef(null),c=y.useRef(!1),u=a.value===i;return y.useEffect(()=>{u||(c.current=!1)},[u]),g.jsx(HNe,{scope:t,value:i,triggerId:Ht(),triggerRef:l,contentId:Ht(),wasKeyboardTriggerOpenRef:c,children:g.jsx($_,{...s,open:u,onOpenChange:d=>{d||a.onMenuClose()},modal:!1,dir:a.dir,...r})})};eq.displayName=Ck;var Ek="MenubarTrigger",tq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,i=XV(n),a=xr(n),s=Sk(Ek,n),l=JV(Ek,n),c=y.useRef(null),u=He(t,c,l.triggerRef),[d,f]=y.useState(!1),p=s.value===l.value;return g.jsx(xk.ItemSlot,{scope:n,value:l.value,disabled:r,children:g.jsx(Ch,{asChild:!0,...i,focusable:!r,tabStopId:l.value,children:g.jsx(I_,{asChild:!0,...a,children:g.jsx(_e.button,{type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?l.contentId:void 0,"data-highlighted":d?"":void 0,"data-state":p?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:u,onPointerDown:ce(e.onPointerDown,h=>{!r&&h.button===0&&h.ctrlKey===!1&&(s.onMenuOpen(l.value),p||h.preventDefault())}),onPointerEnter:ce(e.onPointerEnter,()=>{var m;!!s.value&&!p&&(s.onMenuOpen(l.value),(m=c.current)==null||m.focus())}),onKeyDown:ce(e.onKeyDown,h=>{r||(["Enter"," "].includes(h.key)&&s.onMenuToggle(l.value),h.key==="ArrowDown"&&s.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(h.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,h.preventDefault()))}),onFocus:ce(e.onFocus,()=>f(!0)),onBlur:ce(e.onBlur,()=>f(!1))})})})})});tq.displayName=Ek;var WNe="MenubarPortal",nq=e=>{const{__scopeMenubar:t,...n}=e,r=xr(t);return g.jsx(F_,{...r,...n})};nq.displayName=WNe;var _k="MenubarContent",rq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,i=xr(n),a=Sk(_k,n),s=JV(_k,n),l=VNe(n),c=y.useRef(!1);return g.jsx(L_,{id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":"",...i,...o,ref:t,align:r,onCloseAutoFocus:ce(e.onCloseAutoFocus,u=>{var f;!!!a.value&&!c.current&&((f=s.triggerRef.current)==null||f.focus()),c.current=!1,u.preventDefault()}),onFocusOutside:ce(e.onFocusOutside,u=>{const d=u.target;l().some(p=>{var h;return(h=p.ref.current)==null?void 0:h.contains(d)})&&u.preventDefault()}),onInteractOutside:ce(e.onInteractOutside,()=>{c.current=!0}),onEntryFocus:u=>{s.wasKeyboardTriggerOpenRef.current||u.preventDefault()},onKeyDown:ce(e.onKeyDown,u=>{if(["ArrowRight","ArrowLeft"].includes(u.key)){const d=u.target,f=d.hasAttribute("data-radix-menubar-subtrigger"),p=d.closest("[data-radix-menubar-content]")!==u.currentTarget,m=(a.dir==="rtl"?"ArrowRight":"ArrowLeft")===u.key;if(!m&&f||p&&m)return;let w=l().filter(C=>!C.disabled).map(C=>C.value);m&&w.reverse();const x=w.indexOf(s.value);w=a.loop?iDe(w,x+1):w.slice(x+1);const[S]=w;S&&a.onMenuOpen(S)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});rq.displayName=_k;var KNe="MenubarGroup",oq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(z_,{...o,...r,ref:t})});oq.displayName=KNe;var GNe="MenubarLabel",iq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(j_,{...o,...r,ref:t})});iq.displayName=GNe;var YNe="MenubarItem",aq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(R_,{...o,...r,ref:t})});aq.displayName=YNe;var ZNe="MenubarCheckboxItem",sq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(B_,{...o,...r,ref:t})});sq.displayName=ZNe;var XNe="MenubarRadioGroup",lq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(V_,{...o,...r,ref:t})});lq.displayName=XNe;var QNe="MenubarRadioItem",cq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(q_,{...o,...r,ref:t})});cq.displayName=QNe;var JNe="MenubarItemIndicator",uq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(U_,{...o,...r,ref:t})});uq.displayName=JNe;var eDe="MenubarSeparator",dq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(H_,{...o,...r,ref:t})});dq.displayName=eDe;var tDe="MenubarArrow",nDe=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(W_,{...o,...r,ref:t})});nDe.displayName=tDe;var fq="MenubarSub",pq=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=xr(t),[s,l]=Zt({prop:r,defaultProp:i??!1,onChange:o,caller:fq});return g.jsx(K_,{...a,open:s,onOpenChange:l,children:n})};pq.displayName=fq;var rDe="MenubarSubTrigger",hq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(G_,{"data-radix-menubar-subtrigger":"",...o,...r,ref:t})});hq.displayName=rDe;var oDe="MenubarSubContent",gq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(Y_,{...o,"data-radix-menubar-content":"",...r,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});gq.displayName=oDe;function iDe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var mq=QV,aDe=eq,vq=tq,yq=nq,bq=rq,sDe=oq,wq=iq,xq=aq,Sq=sq,lDe=lq,Cq=cq,Eq=uq,_q=dq,cDe=pq,kq=hq,Oq=gq;const uDe=aDe,dDe=sDe,fDe=yq,pDe=cDe,hDe=lDe,Pq=y.forwardRef(({className:e,...t},n)=>g.jsx(mq,{ref:n,className:U("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));Pq.displayName=mq.displayName;const Aq=y.forwardRef(({className:e,...t},n)=>g.jsx(vq,{ref:n,className:U("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));Aq.displayName=vq.displayName;const Tq=y.forwardRef(({className:e,inset:t,children:n,...r},o)=>g.jsxs(kq,{ref:o,className:U("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,g.jsx(Oa,{className:"ml-auto h-4 w-4"})]}));Tq.displayName=kq.displayName;const Mq=y.forwardRef(({className:e,...t},n)=>g.jsx(Oq,{ref:n,className:U("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Mq.displayName=Oq.displayName;const Nq=y.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...o},i)=>g.jsx(yq,{children:g.jsx(bq,{ref:i,align:t,alignOffset:n,sideOffset:r,className:U("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Nq.displayName=bq.displayName;const Dq=y.forwardRef(({className:e,inset:t,...n},r)=>g.jsx(xq,{ref:r,className:U("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Dq.displayName=xq.displayName;const $q=y.forwardRef(({className:e,children:t,checked:n,...r},o)=>g.jsxs(Sq,{ref:o,className:U("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(Eq,{children:g.jsx(ka,{className:"h-4 w-4"})})}),t]}));$q.displayName=Sq.displayName;const Iq=y.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(Cq,{ref:r,className:U("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(Eq,{children:g.jsx(yx,{className:"h-4 w-4 fill-current"})})}),t]}));Iq.displayName=Cq.displayName;const Fq=y.forwardRef(({className:e,inset:t,...n},r)=>g.jsx(wq,{ref:r,className:U("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Fq.displayName=wq.displayName;const Lq=y.forwardRef(({className:e,...t},n)=>g.jsx(_q,{ref:n,className:U("-mx-1 my-1 h-px bg-muted",e),...t}));Lq.displayName=_q.displayName;const zq=({className:e,...t})=>g.jsx("span",{className:U("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});zq.displayname="MenubarShortcut";const Rh=tp,jq=Zm,Rq=kl,Bq=np,kk=y.forwardRef(({className:e,...t},n)=>g.jsx(El,{className:U("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));kk.displayName=El.displayName;const gDe=ba("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),id=y.forwardRef(({side:e="right",className:t,children:n,...r},o)=>g.jsxs(Bq,{children:[g.jsx(kk,{}),g.jsxs(_l,{ref:o,className:U(gDe({side:e}),t),...r,children:[g.jsxs(kl,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[g.jsx(sp,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));id.displayName=_l.displayName;const Bh=({className:e,...t})=>g.jsx("div",{className:U("flex flex-col space-y-2 text-center sm:text-left",e),...t});Bh.displayName="SheetHeader";const U0=({className:e,...t})=>g.jsx("div",{className:U("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});U0.displayName="SheetFooter";const Vh=y.forwardRef(({className:e,...t},n)=>g.jsx(gu,{ref:n,className:U("text-lg font-semibold text-foreground",e),...t}));Vh.displayName=gu.displayName;const qh=y.forwardRef(({className:e,...t},n)=>g.jsx(mu,{ref:n,className:U("text-sm text-muted-foreground",e),...t}));qh.displayName=mu.displayName;function Uh(e,[t,n]){return Math.min(n,Math.max(t,e))}function mDe(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Ok="ScrollArea",[Vq]=en(Ok),[vDe,Io]=Vq(Ok),qq=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:i=600,...a}=e,[s,l]=y.useState(null),[c,u]=y.useState(null),[d,f]=y.useState(null),[p,h]=y.useState(null),[m,v]=y.useState(null),[b,w]=y.useState(0),[x,S]=y.useState(0),[C,_]=y.useState(!1),[k,O]=y.useState(!1),P=He(t,T=>l(T)),A=Qo(o);return g.jsx(vDe,{scope:n,type:r,dir:A,scrollHideDelay:i,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:C,onScrollbarXEnabledChange:_,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:k,onScrollbarYEnabledChange:O,onCornerWidthChange:w,onCornerHeightChange:S,children:g.jsx(_e.div,{dir:A,...a,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});qq.displayName=Ok;var Uq="ScrollAreaViewport",Hq=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...i}=e,a=Io(Uq,n),s=y.useRef(null),l=He(t,s,a.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),g.jsx(_e.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:g.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Hq.displayName=Uq;var ra="ScrollAreaScrollbar",Pk=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Io(ra,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s=e.orientation==="horizontal";return y.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),o.type==="hover"?g.jsx(yDe,{...r,ref:t,forceMount:n}):o.type==="scroll"?g.jsx(bDe,{...r,ref:t,forceMount:n}):o.type==="auto"?g.jsx(Wq,{...r,ref:t,forceMount:n}):o.type==="always"?g.jsx(Ak,{...r,ref:t}):null});Pk.displayName=ra;var yDe=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Io(ra,e.__scopeScrollArea),[i,a]=y.useState(!1);return y.useEffect(()=>{const s=o.scrollArea;let l=0;if(s){const c=()=>{window.clearTimeout(l),a(!0)},u=()=>{l=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),g.jsx(Xt,{present:n||i,children:g.jsx(Wq,{"data-state":i?"visible":"hidden",...r,ref:t})})}),bDe=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Io(ra,e.__scopeScrollArea),i=e.orientation==="horizontal",a=G0(()=>l("SCROLL_END"),100),[s,l]=mDe("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,o.scrollHideDelay,l]),y.useEffect(()=>{const c=o.viewport,u=i?"scrollLeft":"scrollTop";if(c){let d=c[u];const f=()=>{const p=c[u];d!==p&&(l("SCROLL"),a()),d=p};return c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[o.viewport,i,l,a]),g.jsx(Xt,{present:n||s!=="hidden",children:g.jsx(Ak,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ce(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:ce(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),Wq=y.forwardRef((e,t)=>{const n=Io(ra,e.__scopeScrollArea),{forceMount:r,...o}=e,[i,a]=y.useState(!1),s=e.orientation==="horizontal",l=G0(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;a(s?c:u)}},10);return ad(n.viewport,l),ad(n.content,l),g.jsx(Xt,{present:r||i,children:g.jsx(Ak,{"data-state":i?"visible":"hidden",...o,ref:t})})}),Ak=y.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Io(ra,e.__scopeScrollArea),i=y.useRef(null),a=y.useRef(0),[s,l]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=Xq(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:f=>a.current=f};function d(f,p){return _De(f,a.current,s,p)}return n==="horizontal"?g.jsx(wDe,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollLeft,p=Qq(f,s,o.dir);i.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):n==="vertical"?g.jsx(xDe,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollTop,p=Qq(f,s);i.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),wDe=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=Io(ra,e.__scopeScrollArea),[a,s]=y.useState(),l=y.useRef(null),c=He(t,l,i.onScrollbarXChange);return y.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),g.jsx(Gq,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":K0(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(i.viewport){const f=i.viewport.scrollLeft+u.deltaX;e.onWheelScroll(f),eU(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:W0(a.paddingLeft),paddingEnd:W0(a.paddingRight)}})}})}),xDe=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=Io(ra,e.__scopeScrollArea),[a,s]=y.useState(),l=y.useRef(null),c=He(t,l,i.onScrollbarYChange);return y.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),g.jsx(Gq,{"data-orientation":"vertical",...o,ref:c,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":K0(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(i.viewport){const f=i.viewport.scrollTop+u.deltaY;e.onWheelScroll(f),eU(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:W0(a.paddingTop),paddingEnd:W0(a.paddingBottom)}})}})}),[SDe,Kq]=Vq(ra),Gq=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...f}=e,p=Io(ra,n),[h,m]=y.useState(null),v=He(t,P=>m(P)),b=y.useRef(null),w=y.useRef(""),x=p.viewport,S=r.content-r.viewport,C=Et(u),_=Et(l),k=G0(d,10);function O(P){if(b.current){const A=P.clientX-b.current.left,T=P.clientY-b.current.top;c({x:A,y:T})}}return y.useEffect(()=>{const P=A=>{const T=A.target;(h==null?void 0:h.contains(T))&&C(A,S)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[x,h,S,C]),y.useEffect(_,[r,_]),ad(h,k),ad(p.content,k),g.jsx(SDe,{scope:n,scrollbar:h,hasThumb:o,onThumbChange:Et(i),onThumbPointerUp:Et(a),onThumbPositionChange:_,onThumbPointerDown:Et(s),children:g.jsx(_e.div,{...f,ref:v,style:{position:"absolute",...f.style},onPointerDown:ce(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),b.current=h.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),O(P))}),onPointerMove:ce(e.onPointerMove,O),onPointerUp:ce(e.onPointerUp,P=>{const A=P.target;A.hasPointerCapture(P.pointerId)&&A.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=w.current,p.viewport&&(p.viewport.style.scrollBehavior=""),b.current=null})})})}),H0="ScrollAreaThumb",Yq=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Kq(H0,e.__scopeScrollArea);return g.jsx(Xt,{present:n||o.hasThumb,children:g.jsx(CDe,{ref:t,...r})})}),CDe=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,i=Io(H0,n),a=Kq(H0,n),{onThumbPositionChange:s}=a,l=He(t,d=>a.onThumbChange(d)),c=y.useRef(void 0),u=G0(()=>{c.current&&(c.current(),c.current=void 0)},100);return y.useEffect(()=>{const d=i.viewport;if(d){const f=()=>{if(u(),!c.current){const p=kDe(d,s);c.current=p,s()}};return s(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[i.viewport,u,s]),g.jsx(_e.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ce(e.onPointerDownCapture,d=>{const p=d.target.getBoundingClientRect(),h=d.clientX-p.left,m=d.clientY-p.top;a.onThumbPointerDown({x:h,y:m})}),onPointerUp:ce(e.onPointerUp,a.onThumbPointerUp)})});Yq.displayName=H0;var Tk="ScrollAreaCorner",Zq=y.forwardRef((e,t)=>{const n=Io(Tk,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?g.jsx(EDe,{...e,ref:t}):null});Zq.displayName=Tk;var EDe=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Io(Tk,n),[i,a]=y.useState(0),[s,l]=y.useState(0),c=!!(i&&s);return ad(o.scrollbarX,()=>{var d;const u=((d=o.scrollbarX)==null?void 0:d.offsetHeight)||0;o.onCornerHeightChange(u),l(u)}),ad(o.scrollbarY,()=>{var d;const u=((d=o.scrollbarY)==null?void 0:d.offsetWidth)||0;o.onCornerWidthChange(u),a(u)}),c?g.jsx(_e.div,{...r,ref:t,style:{width:i,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function W0(e){return e?parseInt(e,10):0}function Xq(e,t){const n=e/t;return isNaN(n)?0:n}function K0(e){const t=Xq(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function _De(e,t,n,r="ltr"){const o=K0(n),i=o/2,a=t||i,s=o-a,l=n.scrollbar.paddingStart+a,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return Jq([l,c],d)(e)}function Qq(e,t,n="ltr"){const r=K0(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,s=i-r,l=n==="ltr"?[0,a]:[a*-1,0],c=Uh(e,l);return Jq([0,a],[0,s])(c)}function Jq(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function eU(e,t){return e>0&&e<t}var kDe=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){const i={left:e.scrollLeft,top:e.scrollTop},a=n.left!==i.left,s=n.top!==i.top;(a||s)&&t(),n=i,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function G0(e,t){const n=Et(e),r=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),y.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function ad(e,t){const n=Et(t);tn(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var tU=qq,ODe=Hq,PDe=Zq;const Y0=y.forwardRef(({className:e,children:t,scrollTo:n,...r},o)=>{const i=y.useRef(null);return y.useEffect(()=>{i.current&&n&&i.current.scrollTo({left:n,behavior:"smooth"})},[n]),g.jsxs(tU,{type:"always",ref:o,className:U("relative overflow-hidden",e),...r,children:[g.jsx("div",{className:"w-full mt-1"}),g.jsx(ODe,{className:"h-full w-full rounded-[inherit] snap-y snap-mandatory ",ref:i,children:t}),g.jsx("div",{className:"w-full mt-1"}),g.jsx(Hh,{orientation:"vertical"}),g.jsx(Hh,{orientation:"horizontal"}),g.jsx(PDe,{})]})});Y0.displayName=tU.displayName;const Hh=y.forwardRef(({className:e,orientation:t="vertical",...n},r)=>g.jsx(Pk,{ref:r,orientation:t,className:U("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:g.jsx(Yq,{className:"relative flex-1 rounded-full bg-border bg-stone-300"})}));Hh.displayName=Pk.displayName;const Z0=({title:e,description:t,isOpen:n,onClose:r,children:o,className:i,allowDismissal:a=!0,userPopup:s=!1})=>{const l=c=>{c||r()};return s?g.jsx(a_,{open:n,onOpenChange:l,children:g.jsxs(u0,{className:i,onPointerDownOutside:a?()=>{}:c=>c.preventDefault(),children:[g.jsxs(l_,{children:[g.jsx(d0,{}),g.jsx(c_,{})]}),g.jsx("div",{children:o})]})}):g.jsx(Rh,{open:n,onOpenChange:l,children:g.jsxs(id,{className:" w-[1000px] sm:w-[700px] max-w-md lg:max-w-3xl "+i,onPointerDownOutside:a?()=>{}:c=>c.preventDefault(),children:[g.jsxs(Bh,{children:[g.jsx(Vh,{className:"ml-4",children:e}),g.jsx(qh,{children:t})]}),g.jsx(Y0,{className:"px-6",children:g.jsx("div",{children:o})}),g.jsx(U0,{})]})})};var nU=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"}),ADe="VisuallyHidden",X0=y.forwardRef((e,t)=>g.jsx(_e.span,{...e,ref:t,style:{...nU,...e.style}}));X0.displayName=ADe;var rU=X0,ic="NavigationMenu",[Mk,oU,TDe]=va(ic),[Nk,MDe,NDe]=va(ic),[Dk]=en(ic,[TDe,NDe]),[DDe,Fo]=Dk(ic),[$De,IDe]=Dk(ic),iU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:c,...u}=e,[d,f]=y.useState(null),p=He(t,P=>f(P)),h=Qo(c),m=y.useRef(0),v=y.useRef(0),b=y.useRef(0),[w,x]=y.useState(!0),[S,C]=Zt({prop:r,onChange:P=>{const A=P!=="",T=s>0;A?(window.clearTimeout(b.current),T&&x(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>x(!0),s)),o==null||o(P)},defaultProp:i??"",caller:ic}),_=y.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>C(""),150)},[C]),k=y.useCallback(P=>{window.clearTimeout(v.current),C(P)},[C]),O=y.useCallback(P=>{S===P?window.clearTimeout(v.current):m.current=window.setTimeout(()=>{window.clearTimeout(v.current),C(P)},a)},[S,C,a]);return y.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(v.current),window.clearTimeout(b.current)},[]),g.jsx(aU,{scope:n,isRootMenu:!0,value:S,dir:h,orientation:l,rootNavigationMenu:d,onTriggerEnter:P=>{window.clearTimeout(m.current),w?O(P):k(P)},onTriggerLeave:()=>{window.clearTimeout(m.current),_()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:_,onItemSelect:P=>{C(A=>A===P?"":P)},onItemDismiss:()=>C(""),children:g.jsx(_e.nav,{"aria-label":"Main","data-orientation":l,dir:h,...u,ref:p})})});iU.displayName=ic;var $k="NavigationMenuSub",FDe=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",...s}=e,l=Fo($k,n),[c,u]=Zt({prop:r,onChange:o,defaultProp:i??"",caller:$k});return g.jsx(aU,{scope:n,isRootMenu:!1,value:c,dir:l.dir,orientation:a,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:d=>u(d),onItemSelect:d=>u(d),onItemDismiss:()=>u(""),children:g.jsx(_e.div,{"data-orientation":a,...s,ref:t})})});FDe.displayName=$k;var aU=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:f,onContentLeave:p}=e,[h,m]=y.useState(null),[v,b]=y.useState(new Map),[w,x]=y.useState(null);return g.jsx(DDe,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:Hu(s),baseId:Ht(),dir:o,orientation:i,viewport:h,onViewportChange:m,indicatorTrack:w,onIndicatorTrackChange:x,onTriggerEnter:Et(u),onTriggerLeave:Et(d),onContentEnter:Et(f),onContentLeave:Et(p),onItemSelect:Et(l),onItemDismiss:Et(c),onViewportContentChange:y.useCallback((S,C)=>{b(_=>(_.set(S,C),new Map(_)))},[]),onViewportContentRemove:y.useCallback(S=>{b(C=>C.has(S)?(C.delete(S),new Map(C)):C)},[]),children:g.jsx(Mk.Provider,{scope:t,children:g.jsx($De,{scope:t,items:v,children:a})})})},sU="NavigationMenuList",lU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fo(sU,n),i=g.jsx(_e.ul,{"data-orientation":o.orientation,...r,ref:t});return g.jsx(_e.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:g.jsx(Mk.Slot,{scope:n,children:o.isRootMenu?g.jsx(bU,{asChild:!0,children:i}):i})})});lU.displayName=sU;var cU="NavigationMenuItem",[LDe,uU]=Dk(cU),dU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=Ht(),a=r||i||"LEGACY_REACT_AUTO_VALUE",s=y.useRef(null),l=y.useRef(null),c=y.useRef(null),u=y.useRef(()=>{}),d=y.useRef(!1),f=y.useCallback((h="start")=>{if(s.current){u.current();const m=zk(s.current);m.length&&jk(h==="start"?m:m.reverse())}},[]),p=y.useCallback(()=>{if(s.current){const h=zk(s.current);h.length&&(u.current=UDe(h))}},[]);return g.jsx(LDe,{scope:n,value:a,triggerRef:l,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:d,onEntryKeyDown:f,onFocusProxyEnter:f,onRootContentClose:p,onContentFocusOutside:p,children:g.jsx(_e.li,{...o,ref:t})})});dU.displayName=cU;var Ik="NavigationMenuTrigger",fU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Fo(Ik,e.__scopeNavigationMenu),a=uU(Ik,e.__scopeNavigationMenu),s=y.useRef(null),l=He(s,a.triggerRef,t),c=SU(i.baseId,a.value),u=CU(i.baseId,a.value),d=y.useRef(!1),f=y.useRef(!1),p=a.value===i.value;return g.jsxs(g.Fragment,{children:[g.jsx(Mk.ItemSlot,{scope:n,value:a.value,children:g.jsx(xU,{asChild:!0,children:g.jsx(_e.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":Bk(p),"aria-expanded":p,"aria-controls":u,...o,ref:l,onPointerEnter:ce(e.onPointerEnter,()=>{f.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:ce(e.onPointerMove,J0(()=>{r||f.current||a.wasEscapeCloseRef.current||d.current||(i.onTriggerEnter(a.value),d.current=!0)})),onPointerLeave:ce(e.onPointerLeave,J0(()=>{r||(i.onTriggerLeave(),d.current=!1)})),onClick:ce(e.onClick,()=>{i.onItemSelect(a.value),f.current=p}),onKeyDown:ce(e.onKeyDown,h=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];p&&h.key===v&&(a.onEntryKeyDown(),h.preventDefault())})})})}),p&&g.jsxs(g.Fragment,{children:[g.jsx(rU,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:h=>{const m=a.contentRef.current,v=h.relatedTarget,b=v===s.current,w=m==null?void 0:m.contains(v);(b||!w)&&a.onFocusProxyEnter(b?"start":"end")}}),i.viewport&&g.jsx("span",{"aria-owns":u})]})]})});fU.displayName=Ik;var zDe="NavigationMenuLink",pU="navigationMenu.linkSelect",hU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return g.jsx(xU,{asChild:!0,children:g.jsx(_e.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:ce(e.onClick,a=>{const s=a.target,l=new CustomEvent(pU,{bubbles:!0,cancelable:!0});if(s.addEventListener(pU,c=>o==null?void 0:o(c),{once:!0}),Sf(s,l),!l.defaultPrevented&&!a.metaKey){const c=new CustomEvent(Q0,{bubbles:!0,cancelable:!0});Sf(s,c)}},{checkForDefaultPrevented:!1})})})});hU.displayName=zDe;var Fk="NavigationMenuIndicator",gU=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Fo(Fk,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?tr.createPortal(g.jsx(Xt,{present:n||i,children:g.jsx(jDe,{...r,ref:t})}),o.indicatorTrack):null});gU.displayName=Fk;var jDe=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fo(Fk,n),i=oU(n),[a,s]=y.useState(null),[l,c]=y.useState(null),u=o.orientation==="horizontal",d=!!o.value;y.useEffect(()=>{var m;const h=(m=i().find(v=>v.value===o.value))==null?void 0:m.ref.current;h&&s(h)},[i,o.value]);const f=()=>{a&&c({size:u?a.offsetWidth:a.offsetHeight,offset:u?a.offsetLeft:a.offsetTop})};return Rk(a,f),Rk(o.indicatorTrack,f),l?g.jsx(_e.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...u?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),sd="NavigationMenuContent",mU=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Fo(sd,e.__scopeNavigationMenu),i=uU(sd,e.__scopeNavigationMenu),a=He(i.contentRef,t),s=i.value===o.value,l={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?g.jsx(RDe,{forceMount:n,...l,ref:a}):g.jsx(Xt,{present:n||s,children:g.jsx(vU,{"data-state":Bk(s),...l,ref:a,onPointerEnter:ce(e.onPointerEnter,o.onContentEnter),onPointerLeave:ce(e.onPointerLeave,J0(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})});mU.displayName=sd;var RDe=y.forwardRef((e,t)=>{const n=Fo(sd,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return tn(()=>{r(e.value,{ref:t,...e})},[e,t,r]),tn(()=>()=>o(e.value),[e.value,o]),null}),Q0="navigationMenu.rootContentDismiss",vU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...c}=e,u=Fo(sd,n),d=y.useRef(null),f=He(d,t),p=SU(u.baseId,r),h=CU(u.baseId,r),m=oU(n),v=y.useRef(null),{onItemDismiss:b}=u;y.useEffect(()=>{const x=d.current;if(u.isRootMenu&&x){const S=()=>{var C;b(),s(),x.contains(document.activeElement)&&((C=o.current)==null||C.focus())};return x.addEventListener(Q0,S),()=>x.removeEventListener(Q0,S)}},[u.isRootMenu,e.value,o,b,s]);const w=y.useMemo(()=>{const S=m().map(A=>A.value);u.dir==="rtl"&&S.reverse();const C=S.indexOf(u.value),_=S.indexOf(u.previousValue),k=r===u.value,O=_===S.indexOf(r);if(!k&&!O)return v.current;const P=(()=>{if(C!==_){if(k&&_!==-1)return C>_?"from-end":"from-start";if(O&&C!==-1)return C>_?"to-start":"to-end"}return null})();return v.current=P,P},[u.previousValue,u.value,u.dir,m,r]);return g.jsx(bU,{asChild:!0,children:g.jsx(Ea,{id:h,"aria-labelledby":p,"data-motion":w,"data-orientation":u.orientation,...c,ref:f,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;const x=new Event(Q0,{bubbles:!0,cancelable:!0});(S=d.current)==null||S.dispatchEvent(x)},onFocusOutside:ce(e.onFocusOutside,x=>{var C;l();const S=x.target;(C=u.rootNavigationMenu)!=null&&C.contains(S)&&x.preventDefault()}),onPointerDownOutside:ce(e.onPointerDownOutside,x=>{var k;const S=x.target,C=m().some(O=>{var P;return(P=O.ref.current)==null?void 0:P.contains(S)}),_=u.isRootMenu&&((k=u.viewport)==null?void 0:k.contains(S));(C||_||!u.isRootMenu)&&x.preventDefault()}),onKeyDown:ce(e.onKeyDown,x=>{var _;const S=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!S){const k=zk(x.currentTarget),O=document.activeElement,P=k.findIndex(N=>N===O),T=x.shiftKey?k.slice(0,P).reverse():k.slice(P+1,k.length);jk(T)?x.preventDefault():(_=i.current)==null||_.focus()}}),onEscapeKeyDown:ce(e.onEscapeKeyDown,x=>{a.current=!0})})})}),Lk="NavigationMenuViewport",yU=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!Fo(Lk,e.__scopeNavigationMenu).value;return g.jsx(Xt,{present:n||i,children:g.jsx(BDe,{...r,ref:t})})});yU.displayName=Lk;var BDe=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=Fo(Lk,n),a=He(t,i.onViewportChange),s=IDe(sd,e.__scopeNavigationMenu),[l,c]=y.useState(null),[u,d]=y.useState(null),f=l?(l==null?void 0:l.width)+"px":void 0,p=l?(l==null?void 0:l.height)+"px":void 0,h=!!i.value,m=h?i.value:i.previousValue;return Rk(u,()=>{u&&c({width:u.offsetWidth,height:u.offsetHeight})}),g.jsx(_e.div,{"data-state":Bk(h),"data-orientation":i.orientation,...o,ref:a,style:{pointerEvents:!h&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":p,...o.style},onPointerEnter:ce(e.onPointerEnter,i.onContentEnter),onPointerLeave:ce(e.onPointerLeave,J0(i.onContentLeave)),children:Array.from(s.items).map(([b,{ref:w,forceMount:x,...S}])=>{const C=m===b;return g.jsx(Xt,{present:x||C,children:g.jsx(vU,{...S,ref:fr(w,_=>{C&&_&&d(_)})})},b)})})}),VDe="FocusGroup",bU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fo(VDe,n);return g.jsx(Nk.Provider,{scope:n,children:g.jsx(Nk.Slot,{scope:n,children:g.jsx(_e.div,{dir:o.dir,...r,ref:t})})})}),wU=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],qDe="FocusGroupItem",xU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=MDe(n),i=Fo(qDe,n);return g.jsx(Nk.ItemSlot,{scope:n,children:g.jsx(_e.button,{...r,ref:t,onKeyDown:ce(e.onKeyDown,a=>{if(["Home","End",...wU].includes(a.key)){let l=o().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&l.reverse(),wU.includes(a.key)){const d=l.indexOf(a.currentTarget);l=l.slice(d+1)}setTimeout(()=>jk(l)),a.preventDefault()}})})})});function zk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jk(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function UDe(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Rk(e,t){const n=Et(t);tn(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function Bk(e){return e?"open":"closed"}function SU(e,t){return`${e}-trigger-${t}`}function CU(e,t){return`${e}-content-${t}`}function J0(e){return t=>t.pointerType==="mouse"?e(t):void 0}var EU=iU,_U=lU,HDe=dU,kU=fU,WDe=hU,OU=gU,PU=mU,AU=yU;const TU=y.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(EU,{ref:r,className:U("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,g.jsx(Vk,{})]}));TU.displayName=EU.displayName;const MU=y.forwardRef(({className:e,...t},n)=>g.jsx(_U,{ref:n,className:U("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));MU.displayName=_U.displayName;const KDe=HDe,NU=ba(" group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-slate-400 hover:cursor-pointer focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:text-white data-[active]:bg-slate-600 data-[state=open]:bg-accent/50"),DU=y.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(kU,{ref:r,className:U(NU(),"group",e),...n,children:[t," ",g.jsx(Jm,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));DU.displayName=kU.displayName;const $U=y.forwardRef(({className:e,...t},n)=>g.jsx(PU,{ref:n,className:U("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));$U.displayName=PU.displayName;const GDe=WDe,Vk=y.forwardRef(({className:e,...t},n)=>g.jsx("div",{className:U("absolute left-0 top-full flex justify-center"),children:g.jsx(AU,{className:U("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));Vk.displayName=AU.displayName;const IU=y.forwardRef(({className:e,...t},n)=>g.jsx(OU,{ref:n,className:U("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:g.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));IU.displayName=OU.displayName;function YDe(e){const t=ZDe(e),n=y.forwardRef((r,o)=>{const{children:i,...a}=r,s=y.Children.toArray(i),l=s.find(QDe);if(l){const c=l.props.children,u=s.map(d=>d===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:d);return g.jsx(t,{...a,ref:o,children:y.isValidElement(c)?y.cloneElement(c,void 0,u):null})}return g.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function ZDe(e){const t=y.forwardRef((n,r)=>{const{children:o,...i}=n;if(y.isValidElement(o)){const a=e$e(o),s=JDe(i,o.props);return o.type!==y.Fragment&&(s.ref=r?fr(r,a):a),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var XDe=Symbol("radix.slottable");function QDe(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===XDe}function JDe(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function e$e(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var eb="Popover",[FU]=en(eb,[ta]),Wh=ta(),[t$e,js]=FU(eb),LU=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Wh(t),l=y.useRef(null),[c,u]=y.useState(!1),[d,f]=Zt({prop:r,defaultProp:o??!1,onChange:i,caller:eb});return g.jsx(Ju,{...s,children:g.jsx(t$e,{scope:t,contentId:Ht(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:c,onCustomAnchorAdd:y.useCallback(()=>u(!0),[]),onCustomAnchorRemove:y.useCallback(()=>u(!1),[]),modal:a,children:n})})};LU.displayName=eb;var zU="PopoverAnchor",jU=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=js(zU,n),i=Wh(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return y.useEffect(()=>(a(),()=>s()),[a,s]),g.jsx(ed,{...i,...r,ref:t})});jU.displayName=zU;var RU="PopoverTrigger",BU=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=js(RU,n),i=Wh(n),a=He(t,o.triggerRef),s=g.jsx(_e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":WU(o.open),...r,ref:a,onClick:ce(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:g.jsx(ed,{asChild:!0,...i,children:s})});BU.displayName=RU;var qk="PopoverPortal",[n$e,r$e]=FU(qk,{forceMount:void 0}),VU=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=js(qk,t);return g.jsx(n$e,{scope:t,forceMount:n,children:g.jsx(Xt,{present:n||i.open,children:g.jsx(xl,{asChild:!0,container:o,children:r})})})};VU.displayName=qk;var ld="PopoverContent",qU=y.forwardRef((e,t)=>{const n=r$e(ld,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=js(ld,e.__scopePopover);return g.jsx(Xt,{present:r||i.open,children:i.modal?g.jsx(i$e,{...o,ref:t}):g.jsx(a$e,{...o,ref:t})})});qU.displayName=ld;var o$e=YDe("PopoverContent.RemoveScroll"),i$e=y.forwardRef((e,t)=>{const n=js(ld,e.__scopePopover),r=y.useRef(null),o=He(t,r),i=y.useRef(!1);return y.useEffect(()=>{const a=r.current;if(a)return Km(a)},[]),g.jsx(ep,{as:o$e,allowPinchZoom:!0,children:g.jsx(UU,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ce(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),a$e=y.forwardRef((e,t)=>{const n=js(ld,e.__scopePopover),r=y.useRef(!1),o=y.useRef(!1);return g.jsx(UU,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),UU=y.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=js(ld,n),p=Wh(n);return jm(),g.jsx(Jf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(Ea,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:g.jsx(bh,{"data-state":WU(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),HU="PopoverClose",s$e=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=js(HU,n);return g.jsx(_e.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,()=>o.onOpenChange(!1))})});s$e.displayName=HU;var l$e="PopoverArrow",c$e=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Wh(n);return g.jsx(wh,{...o,...r,ref:t})});c$e.displayName=l$e;function WU(e){return e?"open":"closed"}var u$e=LU,d$e=jU,f$e=BU,p$e=VU,KU=qU;const cd=u$e,ud=f$e,h$e=d$e,ac=y.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>g.jsx(p$e,{children:g.jsx(KU,{ref:o,align:t,sideOffset:n,className:U("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));ac.displayName=KU.displayName;function g$e(e,t=[]){let n=[];function r(i,a){const s=y.createContext(a);s.displayName=i+"Context";const l=n.length;n=[...n,a];const c=d=>{var b;const{scope:f,children:p,...h}=d,m=((b=f==null?void 0:f[e])==null?void 0:b[l])||s,v=y.useMemo(()=>h,Object.values(h));return g.jsx(m.Provider,{value:v,children:p})};c.displayName=i+"Provider";function u(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[l])||s,h=y.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(a=>y.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,m$e(o,...t)]}function m$e(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var v$e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],GU=v$e.reduce((e,t)=>{const n=yu(`Primitive.${t}`),r=y.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Uk="Progress",Hk=100,[y$e]=g$e(Uk),[b$e,w$e]=y$e(Uk),YU=y.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=x$e,...a}=e;(o||o===0)&&!JU(o)&&console.error(S$e(`${o}`,"Progress"));const s=JU(o)?o:Hk;r!==null&&!eH(r,s)&&console.error(C$e(`${r}`,"Progress"));const l=eH(r,s)?r:null,c=tb(l)?i(l,s):void 0;return g.jsx(b$e,{scope:n,value:l,max:s,children:g.jsx(GU.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":tb(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":QU(l,s),"data-value":l??void 0,"data-max":s,...a,ref:t})})});YU.displayName=Uk;var ZU="ProgressIndicator",XU=y.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=w$e(ZU,n);return g.jsx(GU.div,{"data-state":QU(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});XU.displayName=ZU;function x$e(e,t){return`${Math.round(e/t*100)}%`}function QU(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function tb(e){return typeof e=="number"}function JU(e){return tb(e)&&!isNaN(e)&&e>0}function eH(e,t){return tb(e)&&!isNaN(e)&&e<=t&&e>=0}function S$e(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Hk}\`.`}function C$e(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
460
|
+
}`;const WV=y.forwardRef(({className:e,containerClassName:t,...n},r)=>g.jsx(HV,{ref:r,containerClassName:U("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:U("disabled:cursor-not-allowed",e),...n}));WV.displayName="InputOTP";const KV=y.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:U("flex items-center",e),...t}));KV.displayName="InputOTPGroup";const GV=y.forwardRef(({index:e,className:t,...n},r)=>{const o=y.useContext(UV),{char:i,hasFakeCaret:a,isActive:s}=o.slots[e];return g.jsxs("div",{ref:r,className:U("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",s&&"z-10 ring-1 ring-ring",t),...n,children:[i,a&&g.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:g.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})});GV.displayName="InputOTPSlot";const YV=y.forwardRef(({...e},t)=>g.jsx("div",{ref:t,role:"separator",...e,children:g.jsx(fte,{})}));YV.displayName="InputOTPSeparator";var jh="Menubar",[xk,VNe,qNe]=va(jh),[ZV]=en(jh,[qNe,na]),xr=kh(),XV=na(),[UNe,Sk]=ZV(jh),QV=y.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:i,loop:a=!0,dir:s,...l}=e,c=Qo(s),u=XV(n),[d,f]=Zt({prop:r,onChange:o,defaultProp:i??"",caller:jh}),[p,h]=y.useState(null);return g.jsx(UNe,{scope:n,value:d,onMenuOpen:y.useCallback(m=>{f(m),h(m)},[f]),onMenuClose:y.useCallback(()=>f(""),[f]),onMenuToggle:y.useCallback(m=>{f(v=>v?"":m),h(m)},[f]),dir:c,loop:a,children:g.jsx(xk.Provider,{scope:n,children:g.jsx(xk.Slot,{scope:n,children:g.jsx(Sh,{asChild:!0,...u,orientation:"horizontal",loop:a,dir:c,currentTabStopId:p,onCurrentTabStopIdChange:h,children:g.jsx(_e.div,{role:"menubar",...l,ref:t})})})})})});QV.displayName=jh;var Ck="MenubarMenu",[HNe,JV]=ZV(Ck),eq=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=Ht(),i=n||o||"LEGACY_REACT_AUTO_VALUE",a=Sk(Ck,t),s=xr(t),l=y.useRef(null),c=y.useRef(!1),u=a.value===i;return y.useEffect(()=>{u||(c.current=!1)},[u]),g.jsx(HNe,{scope:t,value:i,triggerId:Ht(),triggerRef:l,contentId:Ht(),wasKeyboardTriggerOpenRef:c,children:g.jsx($_,{...s,open:u,onOpenChange:d=>{d||a.onMenuClose()},modal:!1,dir:a.dir,...r})})};eq.displayName=Ck;var Ek="MenubarTrigger",tq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,i=XV(n),a=xr(n),s=Sk(Ek,n),l=JV(Ek,n),c=y.useRef(null),u=He(t,c,l.triggerRef),[d,f]=y.useState(!1),p=s.value===l.value;return g.jsx(xk.ItemSlot,{scope:n,value:l.value,disabled:r,children:g.jsx(Ch,{asChild:!0,...i,focusable:!r,tabStopId:l.value,children:g.jsx(I_,{asChild:!0,...a,children:g.jsx(_e.button,{type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?l.contentId:void 0,"data-highlighted":d?"":void 0,"data-state":p?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:u,onPointerDown:ce(e.onPointerDown,h=>{!r&&h.button===0&&h.ctrlKey===!1&&(s.onMenuOpen(l.value),p||h.preventDefault())}),onPointerEnter:ce(e.onPointerEnter,()=>{var m;!!s.value&&!p&&(s.onMenuOpen(l.value),(m=c.current)==null||m.focus())}),onKeyDown:ce(e.onKeyDown,h=>{r||(["Enter"," "].includes(h.key)&&s.onMenuToggle(l.value),h.key==="ArrowDown"&&s.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(h.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,h.preventDefault()))}),onFocus:ce(e.onFocus,()=>f(!0)),onBlur:ce(e.onBlur,()=>f(!1))})})})})});tq.displayName=Ek;var WNe="MenubarPortal",nq=e=>{const{__scopeMenubar:t,...n}=e,r=xr(t);return g.jsx(F_,{...r,...n})};nq.displayName=WNe;var _k="MenubarContent",rq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,i=xr(n),a=Sk(_k,n),s=JV(_k,n),l=VNe(n),c=y.useRef(!1);return g.jsx(L_,{id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":"",...i,...o,ref:t,align:r,onCloseAutoFocus:ce(e.onCloseAutoFocus,u=>{var f;!!!a.value&&!c.current&&((f=s.triggerRef.current)==null||f.focus()),c.current=!1,u.preventDefault()}),onFocusOutside:ce(e.onFocusOutside,u=>{const d=u.target;l().some(p=>{var h;return(h=p.ref.current)==null?void 0:h.contains(d)})&&u.preventDefault()}),onInteractOutside:ce(e.onInteractOutside,()=>{c.current=!0}),onEntryFocus:u=>{s.wasKeyboardTriggerOpenRef.current||u.preventDefault()},onKeyDown:ce(e.onKeyDown,u=>{if(["ArrowRight","ArrowLeft"].includes(u.key)){const d=u.target,f=d.hasAttribute("data-radix-menubar-subtrigger"),p=d.closest("[data-radix-menubar-content]")!==u.currentTarget,m=(a.dir==="rtl"?"ArrowRight":"ArrowLeft")===u.key;if(!m&&f||p&&m)return;let w=l().filter(C=>!C.disabled).map(C=>C.value);m&&w.reverse();const x=w.indexOf(s.value);w=a.loop?iDe(w,x+1):w.slice(x+1);const[S]=w;S&&a.onMenuOpen(S)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});rq.displayName=_k;var KNe="MenubarGroup",oq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(z_,{...o,...r,ref:t})});oq.displayName=KNe;var GNe="MenubarLabel",iq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(j_,{...o,...r,ref:t})});iq.displayName=GNe;var YNe="MenubarItem",aq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(R_,{...o,...r,ref:t})});aq.displayName=YNe;var ZNe="MenubarCheckboxItem",sq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(B_,{...o,...r,ref:t})});sq.displayName=ZNe;var XNe="MenubarRadioGroup",lq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(V_,{...o,...r,ref:t})});lq.displayName=XNe;var QNe="MenubarRadioItem",cq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(q_,{...o,...r,ref:t})});cq.displayName=QNe;var JNe="MenubarItemIndicator",uq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(U_,{...o,...r,ref:t})});uq.displayName=JNe;var eDe="MenubarSeparator",dq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(H_,{...o,...r,ref:t})});dq.displayName=eDe;var tDe="MenubarArrow",nDe=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(W_,{...o,...r,ref:t})});nDe.displayName=tDe;var fq="MenubarSub",pq=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=xr(t),[s,l]=Zt({prop:r,defaultProp:i??!1,onChange:o,caller:fq});return g.jsx(K_,{...a,open:s,onOpenChange:l,children:n})};pq.displayName=fq;var rDe="MenubarSubTrigger",hq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(G_,{"data-radix-menubar-subtrigger":"",...o,...r,ref:t})});hq.displayName=rDe;var oDe="MenubarSubContent",gq=y.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=xr(n);return g.jsx(Y_,{...o,"data-radix-menubar-content":"",...r,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});gq.displayName=oDe;function iDe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var mq=QV,aDe=eq,vq=tq,yq=nq,bq=rq,sDe=oq,wq=iq,xq=aq,Sq=sq,lDe=lq,Cq=cq,Eq=uq,_q=dq,cDe=pq,kq=hq,Oq=gq;const uDe=aDe,dDe=sDe,fDe=yq,pDe=cDe,hDe=lDe,Pq=y.forwardRef(({className:e,...t},n)=>g.jsx(mq,{ref:n,className:U("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));Pq.displayName=mq.displayName;const Aq=y.forwardRef(({className:e,...t},n)=>g.jsx(vq,{ref:n,className:U("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));Aq.displayName=vq.displayName;const Tq=y.forwardRef(({className:e,inset:t,children:n,...r},o)=>g.jsxs(kq,{ref:o,className:U("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,g.jsx(Oa,{className:"ml-auto h-4 w-4"})]}));Tq.displayName=kq.displayName;const Mq=y.forwardRef(({className:e,...t},n)=>g.jsx(Oq,{ref:n,className:U("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Mq.displayName=Oq.displayName;const Nq=y.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...o},i)=>g.jsx(yq,{children:g.jsx(bq,{ref:i,align:t,alignOffset:n,sideOffset:r,className:U("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Nq.displayName=bq.displayName;const Dq=y.forwardRef(({className:e,inset:t,...n},r)=>g.jsx(xq,{ref:r,className:U("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Dq.displayName=xq.displayName;const $q=y.forwardRef(({className:e,children:t,checked:n,...r},o)=>g.jsxs(Sq,{ref:o,className:U("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(Eq,{children:g.jsx(ka,{className:"h-4 w-4"})})}),t]}));$q.displayName=Sq.displayName;const Iq=y.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(Cq,{ref:r,className:U("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(Eq,{children:g.jsx(yx,{className:"h-4 w-4 fill-current"})})}),t]}));Iq.displayName=Cq.displayName;const Fq=y.forwardRef(({className:e,inset:t,...n},r)=>g.jsx(wq,{ref:r,className:U("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Fq.displayName=wq.displayName;const Lq=y.forwardRef(({className:e,...t},n)=>g.jsx(_q,{ref:n,className:U("-mx-1 my-1 h-px bg-muted",e),...t}));Lq.displayName=_q.displayName;const zq=({className:e,...t})=>g.jsx("span",{className:U("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});zq.displayname="MenubarShortcut";const Rh=tp,jq=Zm,Rq=kl,Bq=np,kk=y.forwardRef(({className:e,...t},n)=>g.jsx(El,{className:U("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));kk.displayName=El.displayName;const gDe=ba("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),id=y.forwardRef(({side:e="right",className:t,children:n,...r},o)=>g.jsxs(Bq,{children:[g.jsx(kk,{}),g.jsxs(_l,{ref:o,className:U(gDe({side:e}),t),...r,children:[g.jsxs(kl,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[g.jsx(sp,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));id.displayName=_l.displayName;const Bh=({className:e,...t})=>g.jsx("div",{className:U("flex flex-col space-y-2 text-center sm:text-left",e),...t});Bh.displayName="SheetHeader";const U0=({className:e,...t})=>g.jsx("div",{className:U("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});U0.displayName="SheetFooter";const Vh=y.forwardRef(({className:e,...t},n)=>g.jsx(gu,{ref:n,className:U("text-lg font-semibold text-foreground",e),...t}));Vh.displayName=gu.displayName;const qh=y.forwardRef(({className:e,...t},n)=>g.jsx(mu,{ref:n,className:U("text-sm text-muted-foreground",e),...t}));qh.displayName=mu.displayName;function Uh(e,[t,n]){return Math.min(n,Math.max(t,e))}function mDe(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Ok="ScrollArea",[Vq]=en(Ok),[vDe,Io]=Vq(Ok),qq=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:i=600,...a}=e,[s,l]=y.useState(null),[c,u]=y.useState(null),[d,f]=y.useState(null),[p,h]=y.useState(null),[m,v]=y.useState(null),[b,w]=y.useState(0),[x,S]=y.useState(0),[C,_]=y.useState(!1),[k,O]=y.useState(!1),P=He(t,T=>l(T)),A=Qo(o);return g.jsx(vDe,{scope:n,type:r,dir:A,scrollHideDelay:i,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:C,onScrollbarXEnabledChange:_,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:k,onScrollbarYEnabledChange:O,onCornerWidthChange:w,onCornerHeightChange:S,children:g.jsx(_e.div,{dir:A,...a,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});qq.displayName=Ok;var Uq="ScrollAreaViewport",Hq=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...i}=e,a=Io(Uq,n),s=y.useRef(null),l=He(t,s,a.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),g.jsx(_e.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:g.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Hq.displayName=Uq;var ra="ScrollAreaScrollbar",Pk=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Io(ra,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s=e.orientation==="horizontal";return y.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),o.type==="hover"?g.jsx(yDe,{...r,ref:t,forceMount:n}):o.type==="scroll"?g.jsx(bDe,{...r,ref:t,forceMount:n}):o.type==="auto"?g.jsx(Wq,{...r,ref:t,forceMount:n}):o.type==="always"?g.jsx(Ak,{...r,ref:t}):null});Pk.displayName=ra;var yDe=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Io(ra,e.__scopeScrollArea),[i,a]=y.useState(!1);return y.useEffect(()=>{const s=o.scrollArea;let l=0;if(s){const c=()=>{window.clearTimeout(l),a(!0)},u=()=>{l=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),g.jsx(Xt,{present:n||i,children:g.jsx(Wq,{"data-state":i?"visible":"hidden",...r,ref:t})})}),bDe=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Io(ra,e.__scopeScrollArea),i=e.orientation==="horizontal",a=G0(()=>l("SCROLL_END"),100),[s,l]=mDe("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,o.scrollHideDelay,l]),y.useEffect(()=>{const c=o.viewport,u=i?"scrollLeft":"scrollTop";if(c){let d=c[u];const f=()=>{const p=c[u];d!==p&&(l("SCROLL"),a()),d=p};return c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[o.viewport,i,l,a]),g.jsx(Xt,{present:n||s!=="hidden",children:g.jsx(Ak,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ce(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:ce(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),Wq=y.forwardRef((e,t)=>{const n=Io(ra,e.__scopeScrollArea),{forceMount:r,...o}=e,[i,a]=y.useState(!1),s=e.orientation==="horizontal",l=G0(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;a(s?c:u)}},10);return ad(n.viewport,l),ad(n.content,l),g.jsx(Xt,{present:r||i,children:g.jsx(Ak,{"data-state":i?"visible":"hidden",...o,ref:t})})}),Ak=y.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Io(ra,e.__scopeScrollArea),i=y.useRef(null),a=y.useRef(0),[s,l]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=Xq(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:f=>a.current=f};function d(f,p){return _De(f,a.current,s,p)}return n==="horizontal"?g.jsx(wDe,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollLeft,p=Qq(f,s,o.dir);i.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):n==="vertical"?g.jsx(xDe,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollTop,p=Qq(f,s);i.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),wDe=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=Io(ra,e.__scopeScrollArea),[a,s]=y.useState(),l=y.useRef(null),c=He(t,l,i.onScrollbarXChange);return y.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),g.jsx(Gq,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":K0(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(i.viewport){const f=i.viewport.scrollLeft+u.deltaX;e.onWheelScroll(f),eU(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:W0(a.paddingLeft),paddingEnd:W0(a.paddingRight)}})}})}),xDe=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=Io(ra,e.__scopeScrollArea),[a,s]=y.useState(),l=y.useRef(null),c=He(t,l,i.onScrollbarYChange);return y.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),g.jsx(Gq,{"data-orientation":"vertical",...o,ref:c,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":K0(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(i.viewport){const f=i.viewport.scrollTop+u.deltaY;e.onWheelScroll(f),eU(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:W0(a.paddingTop),paddingEnd:W0(a.paddingBottom)}})}})}),[SDe,Kq]=Vq(ra),Gq=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...f}=e,p=Io(ra,n),[h,m]=y.useState(null),v=He(t,P=>m(P)),b=y.useRef(null),w=y.useRef(""),x=p.viewport,S=r.content-r.viewport,C=Et(u),_=Et(l),k=G0(d,10);function O(P){if(b.current){const A=P.clientX-b.current.left,T=P.clientY-b.current.top;c({x:A,y:T})}}return y.useEffect(()=>{const P=A=>{const T=A.target;(h==null?void 0:h.contains(T))&&C(A,S)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[x,h,S,C]),y.useEffect(_,[r,_]),ad(h,k),ad(p.content,k),g.jsx(SDe,{scope:n,scrollbar:h,hasThumb:o,onThumbChange:Et(i),onThumbPointerUp:Et(a),onThumbPositionChange:_,onThumbPointerDown:Et(s),children:g.jsx(_e.div,{...f,ref:v,style:{position:"absolute",...f.style},onPointerDown:ce(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),b.current=h.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),O(P))}),onPointerMove:ce(e.onPointerMove,O),onPointerUp:ce(e.onPointerUp,P=>{const A=P.target;A.hasPointerCapture(P.pointerId)&&A.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=w.current,p.viewport&&(p.viewport.style.scrollBehavior=""),b.current=null})})})}),H0="ScrollAreaThumb",Yq=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Kq(H0,e.__scopeScrollArea);return g.jsx(Xt,{present:n||o.hasThumb,children:g.jsx(CDe,{ref:t,...r})})}),CDe=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,i=Io(H0,n),a=Kq(H0,n),{onThumbPositionChange:s}=a,l=He(t,d=>a.onThumbChange(d)),c=y.useRef(void 0),u=G0(()=>{c.current&&(c.current(),c.current=void 0)},100);return y.useEffect(()=>{const d=i.viewport;if(d){const f=()=>{if(u(),!c.current){const p=kDe(d,s);c.current=p,s()}};return s(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[i.viewport,u,s]),g.jsx(_e.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ce(e.onPointerDownCapture,d=>{const p=d.target.getBoundingClientRect(),h=d.clientX-p.left,m=d.clientY-p.top;a.onThumbPointerDown({x:h,y:m})}),onPointerUp:ce(e.onPointerUp,a.onThumbPointerUp)})});Yq.displayName=H0;var Tk="ScrollAreaCorner",Zq=y.forwardRef((e,t)=>{const n=Io(Tk,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?g.jsx(EDe,{...e,ref:t}):null});Zq.displayName=Tk;var EDe=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Io(Tk,n),[i,a]=y.useState(0),[s,l]=y.useState(0),c=!!(i&&s);return ad(o.scrollbarX,()=>{var d;const u=((d=o.scrollbarX)==null?void 0:d.offsetHeight)||0;o.onCornerHeightChange(u),l(u)}),ad(o.scrollbarY,()=>{var d;const u=((d=o.scrollbarY)==null?void 0:d.offsetWidth)||0;o.onCornerWidthChange(u),a(u)}),c?g.jsx(_e.div,{...r,ref:t,style:{width:i,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function W0(e){return e?parseInt(e,10):0}function Xq(e,t){const n=e/t;return isNaN(n)?0:n}function K0(e){const t=Xq(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function _De(e,t,n,r="ltr"){const o=K0(n),i=o/2,a=t||i,s=o-a,l=n.scrollbar.paddingStart+a,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return Jq([l,c],d)(e)}function Qq(e,t,n="ltr"){const r=K0(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,s=i-r,l=n==="ltr"?[0,a]:[a*-1,0],c=Uh(e,l);return Jq([0,a],[0,s])(c)}function Jq(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function eU(e,t){return e>0&&e<t}var kDe=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){const i={left:e.scrollLeft,top:e.scrollTop},a=n.left!==i.left,s=n.top!==i.top;(a||s)&&t(),n=i,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function G0(e,t){const n=Et(e),r=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),y.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function ad(e,t){const n=Et(t);tn(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var tU=qq,ODe=Hq,PDe=Zq;const Y0=y.forwardRef(({className:e,children:t,scrollTo:n,...r},o)=>{const i=y.useRef(null);return y.useEffect(()=>{i.current&&n&&i.current.scrollTo({left:n,behavior:"smooth"})},[n]),g.jsxs(tU,{type:"always",ref:o,className:U("relative overflow-hidden",e),...r,children:[g.jsx("div",{className:"w-full mt-1"}),g.jsx(ODe,{className:"h-full w-full rounded-[inherit] snap-y snap-mandatory ",ref:i,children:t}),g.jsx("div",{className:"w-full mt-1"}),g.jsx(Hh,{orientation:"vertical"}),g.jsx(Hh,{orientation:"horizontal"}),g.jsx(PDe,{})]})});Y0.displayName=tU.displayName;const Hh=y.forwardRef(({className:e,orientation:t="vertical",...n},r)=>g.jsx(Pk,{ref:r,orientation:t,className:U("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:g.jsx(Yq,{className:"relative flex-1 rounded-full bg-border bg-stone-300"})}));Hh.displayName=Pk.displayName;const Z0=({title:e,description:t,isOpen:n,onClose:r,children:o,className:i,allowDismissal:a=!0,userPopup:s=!1})=>{const l=c=>{c||r()};return s?g.jsx(a_,{open:n,onOpenChange:l,children:g.jsxs(u0,{className:i,onPointerDownOutside:a?()=>{}:c=>c.preventDefault(),children:[g.jsxs(l_,{children:[g.jsx(d0,{}),g.jsx(c_,{})]}),g.jsx("div",{children:o})]})}):g.jsx(Rh,{open:n,onOpenChange:l,children:g.jsxs(id,{className:" w-[1000px] sm:w-[700px] max-w-md lg:max-w-3xl flex flex-col "+i,onPointerDownOutside:a?()=>{}:c=>c.preventDefault(),children:[g.jsxs(Bh,{children:[g.jsx(Vh,{className:"ml-4",children:e}),g.jsx(qh,{children:t})]}),g.jsx(Y0,{className:"flex-1 px-6 -mx-6",children:g.jsx("div",{className:"px-6",children:o})}),g.jsx(U0,{})]})})};var nU=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"}),ADe="VisuallyHidden",X0=y.forwardRef((e,t)=>g.jsx(_e.span,{...e,ref:t,style:{...nU,...e.style}}));X0.displayName=ADe;var rU=X0,ic="NavigationMenu",[Mk,oU,TDe]=va(ic),[Nk,MDe,NDe]=va(ic),[Dk]=en(ic,[TDe,NDe]),[DDe,Fo]=Dk(ic),[$De,IDe]=Dk(ic),iU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:c,...u}=e,[d,f]=y.useState(null),p=He(t,P=>f(P)),h=Qo(c),m=y.useRef(0),v=y.useRef(0),b=y.useRef(0),[w,x]=y.useState(!0),[S,C]=Zt({prop:r,onChange:P=>{const A=P!=="",T=s>0;A?(window.clearTimeout(b.current),T&&x(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>x(!0),s)),o==null||o(P)},defaultProp:i??"",caller:ic}),_=y.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>C(""),150)},[C]),k=y.useCallback(P=>{window.clearTimeout(v.current),C(P)},[C]),O=y.useCallback(P=>{S===P?window.clearTimeout(v.current):m.current=window.setTimeout(()=>{window.clearTimeout(v.current),C(P)},a)},[S,C,a]);return y.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(v.current),window.clearTimeout(b.current)},[]),g.jsx(aU,{scope:n,isRootMenu:!0,value:S,dir:h,orientation:l,rootNavigationMenu:d,onTriggerEnter:P=>{window.clearTimeout(m.current),w?O(P):k(P)},onTriggerLeave:()=>{window.clearTimeout(m.current),_()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:_,onItemSelect:P=>{C(A=>A===P?"":P)},onItemDismiss:()=>C(""),children:g.jsx(_e.nav,{"aria-label":"Main","data-orientation":l,dir:h,...u,ref:p})})});iU.displayName=ic;var $k="NavigationMenuSub",FDe=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",...s}=e,l=Fo($k,n),[c,u]=Zt({prop:r,onChange:o,defaultProp:i??"",caller:$k});return g.jsx(aU,{scope:n,isRootMenu:!1,value:c,dir:l.dir,orientation:a,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:d=>u(d),onItemSelect:d=>u(d),onItemDismiss:()=>u(""),children:g.jsx(_e.div,{"data-orientation":a,...s,ref:t})})});FDe.displayName=$k;var aU=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:f,onContentLeave:p}=e,[h,m]=y.useState(null),[v,b]=y.useState(new Map),[w,x]=y.useState(null);return g.jsx(DDe,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:Hu(s),baseId:Ht(),dir:o,orientation:i,viewport:h,onViewportChange:m,indicatorTrack:w,onIndicatorTrackChange:x,onTriggerEnter:Et(u),onTriggerLeave:Et(d),onContentEnter:Et(f),onContentLeave:Et(p),onItemSelect:Et(l),onItemDismiss:Et(c),onViewportContentChange:y.useCallback((S,C)=>{b(_=>(_.set(S,C),new Map(_)))},[]),onViewportContentRemove:y.useCallback(S=>{b(C=>C.has(S)?(C.delete(S),new Map(C)):C)},[]),children:g.jsx(Mk.Provider,{scope:t,children:g.jsx($De,{scope:t,items:v,children:a})})})},sU="NavigationMenuList",lU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fo(sU,n),i=g.jsx(_e.ul,{"data-orientation":o.orientation,...r,ref:t});return g.jsx(_e.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:g.jsx(Mk.Slot,{scope:n,children:o.isRootMenu?g.jsx(bU,{asChild:!0,children:i}):i})})});lU.displayName=sU;var cU="NavigationMenuItem",[LDe,uU]=Dk(cU),dU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=Ht(),a=r||i||"LEGACY_REACT_AUTO_VALUE",s=y.useRef(null),l=y.useRef(null),c=y.useRef(null),u=y.useRef(()=>{}),d=y.useRef(!1),f=y.useCallback((h="start")=>{if(s.current){u.current();const m=zk(s.current);m.length&&jk(h==="start"?m:m.reverse())}},[]),p=y.useCallback(()=>{if(s.current){const h=zk(s.current);h.length&&(u.current=UDe(h))}},[]);return g.jsx(LDe,{scope:n,value:a,triggerRef:l,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:d,onEntryKeyDown:f,onFocusProxyEnter:f,onRootContentClose:p,onContentFocusOutside:p,children:g.jsx(_e.li,{...o,ref:t})})});dU.displayName=cU;var Ik="NavigationMenuTrigger",fU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Fo(Ik,e.__scopeNavigationMenu),a=uU(Ik,e.__scopeNavigationMenu),s=y.useRef(null),l=He(s,a.triggerRef,t),c=SU(i.baseId,a.value),u=CU(i.baseId,a.value),d=y.useRef(!1),f=y.useRef(!1),p=a.value===i.value;return g.jsxs(g.Fragment,{children:[g.jsx(Mk.ItemSlot,{scope:n,value:a.value,children:g.jsx(xU,{asChild:!0,children:g.jsx(_e.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":Bk(p),"aria-expanded":p,"aria-controls":u,...o,ref:l,onPointerEnter:ce(e.onPointerEnter,()=>{f.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:ce(e.onPointerMove,J0(()=>{r||f.current||a.wasEscapeCloseRef.current||d.current||(i.onTriggerEnter(a.value),d.current=!0)})),onPointerLeave:ce(e.onPointerLeave,J0(()=>{r||(i.onTriggerLeave(),d.current=!1)})),onClick:ce(e.onClick,()=>{i.onItemSelect(a.value),f.current=p}),onKeyDown:ce(e.onKeyDown,h=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];p&&h.key===v&&(a.onEntryKeyDown(),h.preventDefault())})})})}),p&&g.jsxs(g.Fragment,{children:[g.jsx(rU,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:h=>{const m=a.contentRef.current,v=h.relatedTarget,b=v===s.current,w=m==null?void 0:m.contains(v);(b||!w)&&a.onFocusProxyEnter(b?"start":"end")}}),i.viewport&&g.jsx("span",{"aria-owns":u})]})]})});fU.displayName=Ik;var zDe="NavigationMenuLink",pU="navigationMenu.linkSelect",hU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return g.jsx(xU,{asChild:!0,children:g.jsx(_e.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:ce(e.onClick,a=>{const s=a.target,l=new CustomEvent(pU,{bubbles:!0,cancelable:!0});if(s.addEventListener(pU,c=>o==null?void 0:o(c),{once:!0}),Sf(s,l),!l.defaultPrevented&&!a.metaKey){const c=new CustomEvent(Q0,{bubbles:!0,cancelable:!0});Sf(s,c)}},{checkForDefaultPrevented:!1})})})});hU.displayName=zDe;var Fk="NavigationMenuIndicator",gU=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Fo(Fk,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?tr.createPortal(g.jsx(Xt,{present:n||i,children:g.jsx(jDe,{...r,ref:t})}),o.indicatorTrack):null});gU.displayName=Fk;var jDe=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fo(Fk,n),i=oU(n),[a,s]=y.useState(null),[l,c]=y.useState(null),u=o.orientation==="horizontal",d=!!o.value;y.useEffect(()=>{var m;const h=(m=i().find(v=>v.value===o.value))==null?void 0:m.ref.current;h&&s(h)},[i,o.value]);const f=()=>{a&&c({size:u?a.offsetWidth:a.offsetHeight,offset:u?a.offsetLeft:a.offsetTop})};return Rk(a,f),Rk(o.indicatorTrack,f),l?g.jsx(_e.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...u?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),sd="NavigationMenuContent",mU=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Fo(sd,e.__scopeNavigationMenu),i=uU(sd,e.__scopeNavigationMenu),a=He(i.contentRef,t),s=i.value===o.value,l={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?g.jsx(RDe,{forceMount:n,...l,ref:a}):g.jsx(Xt,{present:n||s,children:g.jsx(vU,{"data-state":Bk(s),...l,ref:a,onPointerEnter:ce(e.onPointerEnter,o.onContentEnter),onPointerLeave:ce(e.onPointerLeave,J0(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})});mU.displayName=sd;var RDe=y.forwardRef((e,t)=>{const n=Fo(sd,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return tn(()=>{r(e.value,{ref:t,...e})},[e,t,r]),tn(()=>()=>o(e.value),[e.value,o]),null}),Q0="navigationMenu.rootContentDismiss",vU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...c}=e,u=Fo(sd,n),d=y.useRef(null),f=He(d,t),p=SU(u.baseId,r),h=CU(u.baseId,r),m=oU(n),v=y.useRef(null),{onItemDismiss:b}=u;y.useEffect(()=>{const x=d.current;if(u.isRootMenu&&x){const S=()=>{var C;b(),s(),x.contains(document.activeElement)&&((C=o.current)==null||C.focus())};return x.addEventListener(Q0,S),()=>x.removeEventListener(Q0,S)}},[u.isRootMenu,e.value,o,b,s]);const w=y.useMemo(()=>{const S=m().map(A=>A.value);u.dir==="rtl"&&S.reverse();const C=S.indexOf(u.value),_=S.indexOf(u.previousValue),k=r===u.value,O=_===S.indexOf(r);if(!k&&!O)return v.current;const P=(()=>{if(C!==_){if(k&&_!==-1)return C>_?"from-end":"from-start";if(O&&C!==-1)return C>_?"to-start":"to-end"}return null})();return v.current=P,P},[u.previousValue,u.value,u.dir,m,r]);return g.jsx(bU,{asChild:!0,children:g.jsx(Ea,{id:h,"aria-labelledby":p,"data-motion":w,"data-orientation":u.orientation,...c,ref:f,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;const x=new Event(Q0,{bubbles:!0,cancelable:!0});(S=d.current)==null||S.dispatchEvent(x)},onFocusOutside:ce(e.onFocusOutside,x=>{var C;l();const S=x.target;(C=u.rootNavigationMenu)!=null&&C.contains(S)&&x.preventDefault()}),onPointerDownOutside:ce(e.onPointerDownOutside,x=>{var k;const S=x.target,C=m().some(O=>{var P;return(P=O.ref.current)==null?void 0:P.contains(S)}),_=u.isRootMenu&&((k=u.viewport)==null?void 0:k.contains(S));(C||_||!u.isRootMenu)&&x.preventDefault()}),onKeyDown:ce(e.onKeyDown,x=>{var _;const S=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!S){const k=zk(x.currentTarget),O=document.activeElement,P=k.findIndex(N=>N===O),T=x.shiftKey?k.slice(0,P).reverse():k.slice(P+1,k.length);jk(T)?x.preventDefault():(_=i.current)==null||_.focus()}}),onEscapeKeyDown:ce(e.onEscapeKeyDown,x=>{a.current=!0})})})}),Lk="NavigationMenuViewport",yU=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!Fo(Lk,e.__scopeNavigationMenu).value;return g.jsx(Xt,{present:n||i,children:g.jsx(BDe,{...r,ref:t})})});yU.displayName=Lk;var BDe=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=Fo(Lk,n),a=He(t,i.onViewportChange),s=IDe(sd,e.__scopeNavigationMenu),[l,c]=y.useState(null),[u,d]=y.useState(null),f=l?(l==null?void 0:l.width)+"px":void 0,p=l?(l==null?void 0:l.height)+"px":void 0,h=!!i.value,m=h?i.value:i.previousValue;return Rk(u,()=>{u&&c({width:u.offsetWidth,height:u.offsetHeight})}),g.jsx(_e.div,{"data-state":Bk(h),"data-orientation":i.orientation,...o,ref:a,style:{pointerEvents:!h&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":p,...o.style},onPointerEnter:ce(e.onPointerEnter,i.onContentEnter),onPointerLeave:ce(e.onPointerLeave,J0(i.onContentLeave)),children:Array.from(s.items).map(([b,{ref:w,forceMount:x,...S}])=>{const C=m===b;return g.jsx(Xt,{present:x||C,children:g.jsx(vU,{...S,ref:fr(w,_=>{C&&_&&d(_)})})},b)})})}),VDe="FocusGroup",bU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fo(VDe,n);return g.jsx(Nk.Provider,{scope:n,children:g.jsx(Nk.Slot,{scope:n,children:g.jsx(_e.div,{dir:o.dir,...r,ref:t})})})}),wU=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],qDe="FocusGroupItem",xU=y.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=MDe(n),i=Fo(qDe,n);return g.jsx(Nk.ItemSlot,{scope:n,children:g.jsx(_e.button,{...r,ref:t,onKeyDown:ce(e.onKeyDown,a=>{if(["Home","End",...wU].includes(a.key)){let l=o().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&l.reverse(),wU.includes(a.key)){const d=l.indexOf(a.currentTarget);l=l.slice(d+1)}setTimeout(()=>jk(l)),a.preventDefault()}})})})});function zk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jk(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function UDe(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Rk(e,t){const n=Et(t);tn(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function Bk(e){return e?"open":"closed"}function SU(e,t){return`${e}-trigger-${t}`}function CU(e,t){return`${e}-content-${t}`}function J0(e){return t=>t.pointerType==="mouse"?e(t):void 0}var EU=iU,_U=lU,HDe=dU,kU=fU,WDe=hU,OU=gU,PU=mU,AU=yU;const TU=y.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(EU,{ref:r,className:U("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,g.jsx(Vk,{})]}));TU.displayName=EU.displayName;const MU=y.forwardRef(({className:e,...t},n)=>g.jsx(_U,{ref:n,className:U("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));MU.displayName=_U.displayName;const KDe=HDe,NU=ba(" group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-slate-400 hover:cursor-pointer focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:text-white data-[active]:bg-slate-600 data-[state=open]:bg-accent/50"),DU=y.forwardRef(({className:e,children:t,...n},r)=>g.jsxs(kU,{ref:r,className:U(NU(),"group",e),...n,children:[t," ",g.jsx(Jm,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));DU.displayName=kU.displayName;const $U=y.forwardRef(({className:e,...t},n)=>g.jsx(PU,{ref:n,className:U("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));$U.displayName=PU.displayName;const GDe=WDe,Vk=y.forwardRef(({className:e,...t},n)=>g.jsx("div",{className:U("absolute left-0 top-full flex justify-center"),children:g.jsx(AU,{className:U("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));Vk.displayName=AU.displayName;const IU=y.forwardRef(({className:e,...t},n)=>g.jsx(OU,{ref:n,className:U("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:g.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));IU.displayName=OU.displayName;function YDe(e){const t=ZDe(e),n=y.forwardRef((r,o)=>{const{children:i,...a}=r,s=y.Children.toArray(i),l=s.find(QDe);if(l){const c=l.props.children,u=s.map(d=>d===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:d);return g.jsx(t,{...a,ref:o,children:y.isValidElement(c)?y.cloneElement(c,void 0,u):null})}return g.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function ZDe(e){const t=y.forwardRef((n,r)=>{const{children:o,...i}=n;if(y.isValidElement(o)){const a=e$e(o),s=JDe(i,o.props);return o.type!==y.Fragment&&(s.ref=r?fr(r,a):a),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var XDe=Symbol("radix.slottable");function QDe(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===XDe}function JDe(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function e$e(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var eb="Popover",[FU]=en(eb,[ta]),Wh=ta(),[t$e,js]=FU(eb),LU=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Wh(t),l=y.useRef(null),[c,u]=y.useState(!1),[d,f]=Zt({prop:r,defaultProp:o??!1,onChange:i,caller:eb});return g.jsx(Ju,{...s,children:g.jsx(t$e,{scope:t,contentId:Ht(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:c,onCustomAnchorAdd:y.useCallback(()=>u(!0),[]),onCustomAnchorRemove:y.useCallback(()=>u(!1),[]),modal:a,children:n})})};LU.displayName=eb;var zU="PopoverAnchor",jU=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=js(zU,n),i=Wh(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return y.useEffect(()=>(a(),()=>s()),[a,s]),g.jsx(ed,{...i,...r,ref:t})});jU.displayName=zU;var RU="PopoverTrigger",BU=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=js(RU,n),i=Wh(n),a=He(t,o.triggerRef),s=g.jsx(_e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":WU(o.open),...r,ref:a,onClick:ce(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:g.jsx(ed,{asChild:!0,...i,children:s})});BU.displayName=RU;var qk="PopoverPortal",[n$e,r$e]=FU(qk,{forceMount:void 0}),VU=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=js(qk,t);return g.jsx(n$e,{scope:t,forceMount:n,children:g.jsx(Xt,{present:n||i.open,children:g.jsx(xl,{asChild:!0,container:o,children:r})})})};VU.displayName=qk;var ld="PopoverContent",qU=y.forwardRef((e,t)=>{const n=r$e(ld,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=js(ld,e.__scopePopover);return g.jsx(Xt,{present:r||i.open,children:i.modal?g.jsx(i$e,{...o,ref:t}):g.jsx(a$e,{...o,ref:t})})});qU.displayName=ld;var o$e=YDe("PopoverContent.RemoveScroll"),i$e=y.forwardRef((e,t)=>{const n=js(ld,e.__scopePopover),r=y.useRef(null),o=He(t,r),i=y.useRef(!1);return y.useEffect(()=>{const a=r.current;if(a)return Km(a)},[]),g.jsx(ep,{as:o$e,allowPinchZoom:!0,children:g.jsx(UU,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ce(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),a$e=y.forwardRef((e,t)=>{const n=js(ld,e.__scopePopover),r=y.useRef(!1),o=y.useRef(!1);return g.jsx(UU,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),UU=y.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=js(ld,n),p=Wh(n);return jm(),g.jsx(Jf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(Ea,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:g.jsx(bh,{"data-state":WU(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),HU="PopoverClose",s$e=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=js(HU,n);return g.jsx(_e.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,()=>o.onOpenChange(!1))})});s$e.displayName=HU;var l$e="PopoverArrow",c$e=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Wh(n);return g.jsx(wh,{...o,...r,ref:t})});c$e.displayName=l$e;function WU(e){return e?"open":"closed"}var u$e=LU,d$e=jU,f$e=BU,p$e=VU,KU=qU;const cd=u$e,ud=f$e,h$e=d$e,ac=y.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>g.jsx(p$e,{children:g.jsx(KU,{ref:o,align:t,sideOffset:n,className:U("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));ac.displayName=KU.displayName;function g$e(e,t=[]){let n=[];function r(i,a){const s=y.createContext(a);s.displayName=i+"Context";const l=n.length;n=[...n,a];const c=d=>{var b;const{scope:f,children:p,...h}=d,m=((b=f==null?void 0:f[e])==null?void 0:b[l])||s,v=y.useMemo(()=>h,Object.values(h));return g.jsx(m.Provider,{value:v,children:p})};c.displayName=i+"Provider";function u(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[l])||s,h=y.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(a=>y.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,m$e(o,...t)]}function m$e(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var v$e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],GU=v$e.reduce((e,t)=>{const n=yu(`Primitive.${t}`),r=y.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Uk="Progress",Hk=100,[y$e]=g$e(Uk),[b$e,w$e]=y$e(Uk),YU=y.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=x$e,...a}=e;(o||o===0)&&!JU(o)&&console.error(S$e(`${o}`,"Progress"));const s=JU(o)?o:Hk;r!==null&&!eH(r,s)&&console.error(C$e(`${r}`,"Progress"));const l=eH(r,s)?r:null,c=tb(l)?i(l,s):void 0;return g.jsx(b$e,{scope:n,value:l,max:s,children:g.jsx(GU.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":tb(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":QU(l,s),"data-value":l??void 0,"data-max":s,...a,ref:t})})});YU.displayName=Uk;var ZU="ProgressIndicator",XU=y.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=w$e(ZU,n);return g.jsx(GU.div,{"data-state":QU(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});XU.displayName=ZU;function x$e(e,t){return`${Math.round(e/t*100)}%`}function QU(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function tb(e){return typeof e=="number"}function JU(e){return tb(e)&&!isNaN(e)&&e>0}function eH(e,t){return tb(e)&&!isNaN(e)&&e<=t&&e>=0}function S$e(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Hk}\`.`}function C$e(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
461
461
|
- a positive number
|
|
462
462
|
- less than the value passed to \`max\` (or ${Hk} if no \`max\` prop is set)
|
|
463
463
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal.tsx"],"names":[],"mappings":"AAcA,UAAU,UAAU;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal.tsx"],"names":[],"mappings":"AAcA,UAAU,UAAU;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAiDtC,CAAC"}
|
package/package.json
CHANGED