@namuna-nur/ui-kit 1.9.4 → 1.9.5

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.
@@ -1,5 +1,5 @@
1
1
  import * as c from "react";
2
- import ae, { forwardRef as ue, useLayoutEffect as oi, useState as Yr, createElement as be, useRef as mr } from "react";
2
+ import ae, { forwardRef as ue, useLayoutEffect as oi, useState as Yr, createElement as ge, useRef as mr } from "react";
3
3
  import { a as A, f as ai } from "./twMerge.js";
4
4
  import * as Xr from "react-dom";
5
5
  import ii from "react-dom";
@@ -79,14 +79,14 @@ function li() {
79
79
  case w:
80
80
  return (y._context.displayName || "Context") + ".Consumer";
81
81
  case R:
82
- var T = y.render;
83
- return y = y.displayName, y || (y = T.displayName || T.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
84
- case M:
85
- return T = y.displayName || null, T !== null ? T : e(y.type) || "Memo";
82
+ var M = y.render;
83
+ return y = y.displayName, y || (y = M.displayName || M.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
84
+ case T:
85
+ return M = y.displayName || null, M !== null ? M : e(y.type) || "Memo";
86
86
  case D:
87
- T = y._payload, y = y._init;
87
+ M = y._payload, y = y._init;
88
88
  try {
89
- return e(y(T));
89
+ return e(y(M));
90
90
  } catch {
91
91
  }
92
92
  }
@@ -98,15 +98,15 @@ function li() {
98
98
  function n(y) {
99
99
  try {
100
100
  t(y);
101
- var T = !1;
101
+ var M = !1;
102
102
  } catch {
103
- T = !0;
103
+ M = !0;
104
104
  }
105
- if (T) {
106
- T = console;
107
- var F = T.error, U = typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object";
105
+ if (M) {
106
+ M = console;
107
+ var F = M.error, U = typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object";
108
108
  return F.call(
109
- T,
109
+ M,
110
110
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
111
111
  U
112
112
  ), t(y);
@@ -117,8 +117,8 @@ function li() {
117
117
  if (typeof y == "object" && y !== null && y.$$typeof === D)
118
118
  return "<...>";
119
119
  try {
120
- var T = e(y);
121
- return T ? "<" + T + ">" : "<...>";
120
+ var M = e(y);
121
+ return M ? "<" + M + ">" : "<...>";
122
122
  } catch {
123
123
  return "<...>";
124
124
  }
@@ -132,16 +132,16 @@ function li() {
132
132
  }
133
133
  function i(y) {
134
134
  if ($.call(y, "key")) {
135
- var T = Object.getOwnPropertyDescriptor(y, "key").get;
136
- if (T && T.isReactWarning) return !1;
135
+ var M = Object.getOwnPropertyDescriptor(y, "key").get;
136
+ if (M && M.isReactWarning) return !1;
137
137
  }
138
138
  return y.key !== void 0;
139
139
  }
140
- function s(y, T) {
140
+ function s(y, M) {
141
141
  function F() {
142
142
  j || (j = !0, console.error(
143
143
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
144
- T
144
+ M
145
145
  ));
146
146
  }
147
147
  F.isReactWarning = !0, Object.defineProperty(y, "key", {
@@ -155,12 +155,12 @@ function li() {
155
155
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
156
156
  )), y = this.props.ref, y !== void 0 ? y : null;
157
157
  }
158
- function l(y, T, F, U, fe, ee) {
158
+ function l(y, M, F, U, fe, ee) {
159
159
  var N = F.ref;
160
160
  return y = {
161
161
  $$typeof: g,
162
162
  type: y,
163
- key: T,
163
+ key: M,
164
164
  props: F,
165
165
  _owner: U
166
166
  }, (N !== void 0 ? N : null) !== null ? Object.defineProperty(y, "ref", {
@@ -188,8 +188,8 @@ function li() {
188
188
  value: ee
189
189
  }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
190
190
  }
191
- function f(y, T, F, U, fe, ee) {
192
- var N = T.children;
191
+ function f(y, M, F, U, fe, ee) {
192
+ var N = M.children;
193
193
  if (N !== void 0)
194
194
  if (U)
195
195
  if (L(N)) {
@@ -201,10 +201,10 @@ function li() {
201
201
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
202
202
  );
203
203
  else u(N);
204
- if ($.call(T, "key")) {
204
+ if ($.call(M, "key")) {
205
205
  N = e(y);
206
- var J = Object.keys(T).filter(function(Re) {
207
- return Re !== "key";
206
+ var J = Object.keys(M).filter(function(Ee) {
207
+ return Ee !== "key";
208
208
  });
209
209
  U = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", B[N + U] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
210
210
  `A props object containing a "key" prop is being spread into JSX:
@@ -219,11 +219,11 @@ React keys must be passed directly to JSX without using spread:
219
219
  N
220
220
  ), B[N + U] = !0);
221
221
  }
222
- if (N = null, F !== void 0 && (n(F), N = "" + F), i(T) && (n(T.key), N = "" + T.key), "key" in T) {
222
+ if (N = null, F !== void 0 && (n(F), N = "" + F), i(M) && (n(M.key), N = "" + M.key), "key" in M) {
223
223
  F = {};
224
- for (var Y in T)
225
- Y !== "key" && (F[Y] = T[Y]);
226
- } else F = T;
224
+ for (var Y in M)
225
+ Y !== "key" && (F[Y] = M[Y]);
226
+ } else F = M;
227
227
  return N && s(
228
228
  F,
229
229
  typeof y == "function" ? y.displayName || y.name || "Unknown" : y
@@ -242,7 +242,7 @@ React keys must be passed directly to JSX without using spread:
242
242
  function p(y) {
243
243
  return typeof y == "object" && y !== null && y.$$typeof === g;
244
244
  }
245
- var h = ae, g = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), C = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), W = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, L = Array.isArray, z = console.createTask ? console.createTask : function() {
245
+ var h = ae, g = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), C = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), W = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, L = Array.isArray, z = console.createTask ? console.createTask : function() {
246
246
  return null;
247
247
  };
248
248
  h = {
@@ -254,21 +254,21 @@ React keys must be passed directly to JSX without using spread:
254
254
  h,
255
255
  a
256
256
  )(), P = z(r(a)), B = {};
257
- Ke.Fragment = b, Ke.jsx = function(y, T, F) {
257
+ Ke.Fragment = b, Ke.jsx = function(y, M, F) {
258
258
  var U = 1e4 > W.recentlyCreatedOwnerStacks++;
259
259
  return f(
260
260
  y,
261
- T,
261
+ M,
262
262
  F,
263
263
  !1,
264
264
  U ? Error("react-stack-top-frame") : O,
265
265
  U ? z(r(y)) : P
266
266
  );
267
- }, Ke.jsxs = function(y, T, F) {
267
+ }, Ke.jsxs = function(y, M, F) {
268
268
  var U = 1e4 > W.recentlyCreatedOwnerStacks++;
269
269
  return f(
270
270
  y,
271
- T,
271
+ M,
272
272
  F,
273
273
  !0,
274
274
  U ? Error("react-stack-top-frame") : O,
@@ -415,7 +415,7 @@ const Ye = {
415
415
  ...d
416
416
  }, l) => {
417
417
  var v;
418
- const f = Me.icon, u = Me.variants[r], p = f.variants[r], h = (v = Me.shape) == null ? void 0 : v[o], g = f.disabled[r];
418
+ const f = Te.icon, u = Te.variants[r], p = f.variants[r], h = (v = Te.shape) == null ? void 0 : v[o], g = f.disabled[r];
419
419
  return /* @__PURE__ */ m.jsxs(
420
420
  "button",
421
421
  {
@@ -425,18 +425,18 @@ const Ye = {
425
425
  ref: l,
426
426
  disabled: t,
427
427
  className: A(
428
- Me.base,
428
+ Te.base,
429
429
  u.base,
430
430
  u.focus,
431
431
  h,
432
- a && Me.badgeStyles.base,
432
+ a && Te.badgeStyles.base,
433
433
  !t && u.hover,
434
434
  !t && u.active,
435
435
  t && u.disabled,
436
436
  e == null ? void 0 : e.button
437
437
  ),
438
438
  children: [
439
- a && /* @__PURE__ */ m.jsx("span", { className: Me.badgeStyles.badgeStyles, children: a }),
439
+ a && /* @__PURE__ */ m.jsx("span", { className: Te.badgeStyles.badgeStyles, children: a }),
440
440
  !!n && /* @__PURE__ */ m.jsx(
441
441
  n,
442
442
  {
@@ -453,12 +453,12 @@ const Ye = {
453
453
  viewBox: i == null ? void 0 : i.viewBox
454
454
  }
455
455
  ),
456
- !!s && /* @__PURE__ */ m.jsx(ge, { className: e == null ? void 0 : e.text, children: s })
456
+ !!s && /* @__PURE__ */ m.jsx(_e, { className: e == null ? void 0 : e.text, children: s })
457
457
  ]
458
458
  }
459
459
  );
460
460
  }
461
- ), Me = {
461
+ ), Te = {
462
462
  base: "group inline-flex items-center justify-center rounded-[10px] outline-none border",
463
463
  icon: {
464
464
  base: "text-inherit",
@@ -635,7 +635,7 @@ const Ye = {
635
635
  }
636
636
  ),
637
637
  a && /* @__PURE__ */ m.jsxs(
638
- ge,
638
+ _e,
639
639
  {
640
640
  variant: "span",
641
641
  className: A(
@@ -686,7 +686,7 @@ const Ye = {
686
686
  base: "text-secondary-10 text-sm font-sans font-semibold leading-none",
687
687
  disabled: "text-dark-30/25 cursor-not-allowed"
688
688
  };
689
- function we(e, t = []) {
689
+ function ye(e, t = []) {
690
690
  let n = [];
691
691
  function r(a, i) {
692
692
  const s = c.createContext(i), d = n.length;
@@ -810,7 +810,7 @@ function xi(e) {
810
810
  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);
811
811
  }
812
812
  function Jr(e) {
813
- const t = e + "CollectionProvider", [n, r] = we(t), [o, a] = n(
813
+ const t = e + "CollectionProvider", [n, r] = ye(t), [o, a] = n(
814
814
  t,
815
815
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
816
816
  ), i = (v) => {
@@ -936,11 +936,11 @@ function Qr(e, t) {
936
936
  function Ei(e, t) {
937
937
  return c.useReducer((n, r) => t[n][r] ?? n, e);
938
938
  }
939
- var Se = (e) => {
939
+ var we = (e) => {
940
940
  const { present: t, children: n } = e, r = Ri(t), o = typeof n == "function" ? n({ present: r.isPresent }) : c.Children.only(n), a = K(r.ref, _i(o));
941
941
  return typeof n == "function" || r.isPresent ? c.cloneElement(o, { ref: a }) : null;
942
942
  };
943
- Se.displayName = "Presence";
943
+ we.displayName = "Presence";
944
944
  function Ri(e) {
945
945
  const [t, n] = c.useState(), r = c.useRef(null), o = c.useRef(e), a = c.useRef("none"), i = e ? "mounted" : "unmounted", [s, d] = Ei(i, {
946
946
  mounted: {
@@ -1006,9 +1006,9 @@ function Pe(e) {
1006
1006
  n((r) => r ?? String(Ai++));
1007
1007
  }, [e]), t ? `radix-${t}` : "";
1008
1008
  }
1009
- var Ti = c.createContext(void 0);
1009
+ var Mi = c.createContext(void 0);
1010
1010
  function dn(e) {
1011
- const t = c.useContext(Ti);
1011
+ const t = c.useContext(Mi);
1012
1012
  return e || t || "ltr";
1013
1013
  }
1014
1014
  function ne(e) {
@@ -1020,7 +1020,7 @@ function ne(e) {
1020
1020
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
1021
1021
  }, []);
1022
1022
  }
1023
- function Mi(e, t = globalThis == null ? void 0 : globalThis.document) {
1023
+ function Ti(e, t = globalThis == null ? void 0 : globalThis.document) {
1024
1024
  const n = ne(e);
1025
1025
  c.useEffect(() => {
1026
1026
  const r = (o) => {
@@ -1044,13 +1044,13 @@ var Oi = "DismissableLayer", tn = "dismissableLayer.update", ki = "dismissableLa
1044
1044
  onDismiss: s,
1045
1045
  ...d
1046
1046
  } = e, l = c.useContext(eo), [f, u] = c.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = c.useState({}), g = K(t, (E) => u(E)), v = Array.from(l.layers), [b] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), x = v.indexOf(b), S = f ? v.indexOf(f) : -1, w = l.layersWithOutsidePointerEventsDisabled.size > 0, C = S >= x, R = Di((E) => {
1047
- const M = E.target, D = [...l.branches].some((I) => I.contains(M));
1047
+ const T = E.target, D = [...l.branches].some((I) => I.contains(T));
1048
1048
  !C || D || (o == null || o(E), i == null || i(E), E.defaultPrevented || s == null || s());
1049
1049
  }, p), _ = Ni((E) => {
1050
- const M = E.target;
1051
- [...l.branches].some((I) => I.contains(M)) || (a == null || a(E), i == null || i(E), E.defaultPrevented || s == null || s());
1050
+ const T = E.target;
1051
+ [...l.branches].some((I) => I.contains(T)) || (a == null || a(E), i == null || i(E), E.defaultPrevented || s == null || s());
1052
1052
  }, p);
1053
- return Mi((E) => {
1053
+ return Ti((E) => {
1054
1054
  S === l.layers.size - 1 && (r == null || r(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
1055
1055
  }, p), c.useEffect(() => {
1056
1056
  if (f)
@@ -1287,7 +1287,7 @@ function _r(e, t) {
1287
1287
  function Vi(e) {
1288
1288
  return e.filter((t) => t.tagName !== "A");
1289
1289
  }
1290
- const Gi = ["top", "right", "bottom", "left"], xe = Math.min, q = Math.max, yt = Math.round, dt = Math.floor, ce = (e) => ({
1290
+ const Gi = ["top", "right", "bottom", "left"], be = Math.min, q = Math.max, yt = Math.round, dt = Math.floor, ce = (e) => ({
1291
1291
  x: e,
1292
1292
  y: e
1293
1293
  }), Hi = {
@@ -1300,7 +1300,7 @@ const Gi = ["top", "right", "bottom", "left"], xe = Math.min, q = Math.max, yt =
1300
1300
  end: "start"
1301
1301
  };
1302
1302
  function nn(e, t, n) {
1303
- return q(e, xe(t, n));
1303
+ return q(e, be(t, n));
1304
1304
  }
1305
1305
  function pe(e, t) {
1306
1306
  return typeof e == "function" ? e(t) : e;
@@ -1393,7 +1393,7 @@ function St(e) {
1393
1393
  y: n
1394
1394
  };
1395
1395
  }
1396
- function Tr(e, t, n) {
1396
+ function Mr(e, t, n) {
1397
1397
  let {
1398
1398
  reference: r,
1399
1399
  floating: o
@@ -1455,7 +1455,7 @@ const ts = async (e, t, n) => {
1455
1455
  }), {
1456
1456
  x: f,
1457
1457
  y: u
1458
- } = Tr(l, r, d), p = r, h = {}, g = 0;
1458
+ } = Mr(l, r, d), p = r, h = {}, g = 0;
1459
1459
  for (let v = 0; v < s.length; v++) {
1460
1460
  const {
1461
1461
  name: b,
@@ -1492,7 +1492,7 @@ const ts = async (e, t, n) => {
1492
1492
  }) : R.rects), {
1493
1493
  x: f,
1494
1494
  y: u
1495
- } = Tr(l, p, d)), v = -1);
1495
+ } = Mr(l, p, d)), v = -1);
1496
1496
  }
1497
1497
  return {
1498
1498
  x: f,
@@ -1571,7 +1571,7 @@ const ns = (e) => ({
1571
1571
  }, h = hn(o), g = mn(h), v = await i.getDimensions(l), b = h === "y", x = b ? "top" : "left", S = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", C = a.reference[g] + a.reference[h] - p[h] - a.floating[g], R = p[h] - a.reference[h], _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
1572
1572
  let E = _ ? _[w] : 0;
1573
1573
  (!E || !await (i.isElement == null ? void 0 : i.isElement(_))) && (E = s.floating[w] || a.floating[g]);
1574
- const M = C / 2 - R / 2, D = E / 2 - v[g] / 2 - 1, I = xe(u[x], D), G = xe(u[S], D), W = I, $ = E - v[g] - G, L = E / 2 - v[g] / 2 + M, z = nn(W, L, $), j = !d.arrow && Ve(o) != null && L !== z && a.reference[g] / 2 - (L < W ? I : G) - v[g] / 2 < 0, V = j ? L < W ? L - W : L - $ : 0;
1574
+ const T = C / 2 - R / 2, D = E / 2 - v[g] / 2 - 1, I = be(u[x], D), G = be(u[S], D), W = I, $ = E - v[g] - G, L = E / 2 - v[g] / 2 + T, z = nn(W, L, $), j = !d.arrow && Ve(o) != null && L !== z && a.reference[g] / 2 - (L < W ? I : G) - v[g] / 2 < 0, V = j ? L < W ? L - W : L - $ : 0;
1575
1575
  return {
1576
1576
  [h]: p[h] + V,
1577
1577
  data: {
@@ -1610,11 +1610,11 @@ const ns = (e) => ({
1610
1610
  return {};
1611
1611
  const x = me(o), S = se(s), w = me(s) === s, C = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), R = p || (w || !v ? [wt(s)] : Xi(s)), _ = g !== "none";
1612
1612
  !p && _ && R.push(...Qi(s, v, g, C));
1613
- const E = [s, ...R], M = await Je(t, b), D = [];
1613
+ const E = [s, ...R], T = await Je(t, b), D = [];
1614
1614
  let I = ((r = a.flip) == null ? void 0 : r.overflows) || [];
1615
- if (f && D.push(M[x]), u) {
1615
+ if (f && D.push(T[x]), u) {
1616
1616
  const L = Yi(o, i, C);
1617
- D.push(M[L[0]], M[L[1]]);
1617
+ D.push(T[L[0]], T[L[1]]);
1618
1618
  }
1619
1619
  if (I = [...I, {
1620
1620
  placement: o,
@@ -1666,7 +1666,7 @@ const ns = (e) => ({
1666
1666
  }
1667
1667
  };
1668
1668
  };
1669
- function Mr(e, t) {
1669
+ function Tr(e, t) {
1670
1670
  return {
1671
1671
  top: e.top - t.height,
1672
1672
  right: e.right - t.width,
@@ -1693,7 +1693,7 @@ const os = function(e) {
1693
1693
  const a = await Je(t, {
1694
1694
  ...o,
1695
1695
  elementContext: "reference"
1696
- }), i = Mr(a, n.reference);
1696
+ }), i = Tr(a, n.reference);
1697
1697
  return {
1698
1698
  data: {
1699
1699
  referenceHiddenOffsets: i,
@@ -1705,7 +1705,7 @@ const os = function(e) {
1705
1705
  const a = await Je(t, {
1706
1706
  ...o,
1707
1707
  altBoundary: !0
1708
- }), i = Mr(a, n.floating);
1708
+ }), i = Tr(a, n.floating);
1709
1709
  return {
1710
1710
  data: {
1711
1711
  escapedOffsets: i,
@@ -1887,15 +1887,15 @@ const is = function(e) {
1887
1887
  } = a.floating;
1888
1888
  let b, x;
1889
1889
  u === "top" || u === "bottom" ? (b = u, x = p === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (x = u, b = p === "end" ? "top" : "bottom");
1890
- const S = v - f.top - f.bottom, w = g - f.left - f.right, C = xe(v - f[b], S), R = xe(g - f[x], w), _ = !t.middlewareData.shift;
1891
- let E = C, M = R;
1892
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (M = w), (r = t.middlewareData.shift) != null && r.enabled.y && (E = S), _ && !p) {
1890
+ const S = v - f.top - f.bottom, w = g - f.left - f.right, C = be(v - f[b], S), R = be(g - f[x], w), _ = !t.middlewareData.shift;
1891
+ let E = C, T = R;
1892
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = w), (r = t.middlewareData.shift) != null && r.enabled.y && (E = S), _ && !p) {
1893
1893
  const I = q(f.left, 0), G = q(f.right, 0), W = q(f.top, 0), $ = q(f.bottom, 0);
1894
- h ? M = g - 2 * (I !== 0 || G !== 0 ? I + G : q(f.left, f.right)) : E = v - 2 * (W !== 0 || $ !== 0 ? W + $ : q(f.top, f.bottom));
1894
+ h ? T = g - 2 * (I !== 0 || G !== 0 ? I + G : q(f.left, f.right)) : E = v - 2 * (W !== 0 || $ !== 0 ? W + $ : q(f.top, f.bottom));
1895
1895
  }
1896
1896
  await d({
1897
1897
  ...t,
1898
- availableWidth: M,
1898
+ availableWidth: T,
1899
1899
  availableHeight: E
1900
1900
  });
1901
1901
  const D = await i.getDimensions(s.floating);
@@ -1948,7 +1948,7 @@ function fs(e) {
1948
1948
  return ds.has(Ge(e));
1949
1949
  }
1950
1950
  const ps = [":popover-open", ":modal"];
1951
- function Tt(e) {
1951
+ function Mt(e) {
1952
1952
  return ps.some((t) => {
1953
1953
  try {
1954
1954
  return e.matches(t);
@@ -1963,13 +1963,13 @@ function vn(e) {
1963
1963
  return ms.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || hs.some((r) => (n.willChange || "").includes(r)) || vs.some((r) => (n.contain || "").includes(r));
1964
1964
  }
1965
1965
  function gs(e) {
1966
- let t = ye(e);
1966
+ let t = xe(e);
1967
1967
  for (; le(t) && !Be(t); ) {
1968
1968
  if (vn(t))
1969
1969
  return t;
1970
- if (Tt(t))
1970
+ if (Mt(t))
1971
1971
  return null;
1972
- t = ye(t);
1972
+ t = xe(t);
1973
1973
  }
1974
1974
  return null;
1975
1975
  }
@@ -1983,7 +1983,7 @@ function Be(e) {
1983
1983
  function oe(e) {
1984
1984
  return Z(e).getComputedStyle(e);
1985
1985
  }
1986
- function Mt(e) {
1986
+ function Tt(e) {
1987
1987
  return re(e) ? {
1988
1988
  scrollLeft: e.scrollLeft,
1989
1989
  scrollTop: e.scrollTop
@@ -1992,7 +1992,7 @@ function Mt(e) {
1992
1992
  scrollTop: e.scrollY
1993
1993
  };
1994
1994
  }
1995
- function ye(e) {
1995
+ function xe(e) {
1996
1996
  if (Ge(e) === "html")
1997
1997
  return e;
1998
1998
  const t = (
@@ -2005,7 +2005,7 @@ function ye(e) {
2005
2005
  return kr(t) ? t.host : t;
2006
2006
  }
2007
2007
  function co(e) {
2008
- const t = ye(e);
2008
+ const t = xe(e);
2009
2009
  return Be(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && rt(t) ? t : co(t);
2010
2010
  }
2011
2011
  function Qe(e, t, n) {
@@ -2083,7 +2083,7 @@ function Ae(e, t, n, r) {
2083
2083
  });
2084
2084
  }
2085
2085
  function Ot(e, t) {
2086
- const n = Mt(e).scrollLeft;
2086
+ const n = Tt(e).scrollLeft;
2087
2087
  return t ? t.left + n : Ae(de(e)).left + n;
2088
2088
  }
2089
2089
  function fo(e, t) {
@@ -2100,7 +2100,7 @@ function ws(e) {
2100
2100
  offsetParent: r,
2101
2101
  strategy: o
2102
2102
  } = e;
2103
- const a = o === "fixed", i = de(r), s = t ? Tt(t.floating) : !1;
2103
+ const a = o === "fixed", i = de(r), s = t ? Mt(t.floating) : !1;
2104
2104
  if (r === i || s && a)
2105
2105
  return n;
2106
2106
  let d = {
@@ -2108,7 +2108,7 @@ function ws(e) {
2108
2108
  scrollTop: 0
2109
2109
  }, l = ce(1);
2110
2110
  const f = ce(0), u = le(r);
2111
- if ((u || !u && !a) && ((Ge(r) !== "body" || rt(i)) && (d = Mt(r)), le(r))) {
2111
+ if ((u || !u && !a) && ((Ge(r) !== "body" || rt(i)) && (d = Tt(r)), le(r))) {
2112
2112
  const h = Ae(r);
2113
2113
  l = Fe(r), f.x = h.x + r.clientLeft, f.y = h.y + r.clientTop;
2114
2114
  }
@@ -2124,7 +2124,7 @@ function Ss(e) {
2124
2124
  return Array.from(e.getClientRects());
2125
2125
  }
2126
2126
  function Cs(e) {
2127
- const t = de(e), n = Mt(e), r = e.ownerDocument.body, o = q(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = q(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2127
+ const t = de(e), n = Tt(e), r = e.ownerDocument.body, o = q(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = q(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2128
2128
  let i = -n.scrollLeft + Ot(e);
2129
2129
  const s = -n.scrollTop;
2130
2130
  return oe(r).direction === "rtl" && (i += q(t.clientWidth, r.clientWidth) - o), {
@@ -2185,7 +2185,7 @@ function jr(e, t, n) {
2185
2185
  return St(r);
2186
2186
  }
2187
2187
  function po(e, t) {
2188
- const n = ye(e);
2188
+ const n = xe(e);
2189
2189
  return n === t || !re(n) || Be(n) ? !1 : oe(n).position === "fixed" || po(n, t);
2190
2190
  }
2191
2191
  function Ps(e, t) {
@@ -2194,10 +2194,10 @@ function Ps(e, t) {
2194
2194
  return n;
2195
2195
  let r = Qe(e, [], !1).filter((s) => re(s) && Ge(s) !== "body"), o = null;
2196
2196
  const a = oe(e).position === "fixed";
2197
- let i = a ? ye(e) : e;
2197
+ let i = a ? xe(e) : e;
2198
2198
  for (; re(i) && !Be(i); ) {
2199
2199
  const s = oe(i), d = vn(i);
2200
- !d && s.position === "fixed" && (o = null), (a ? !d && !o : !d && s.position === "static" && !!o && Rs.has(o.position) || rt(i) && !d && po(e, i)) ? r = r.filter((f) => f !== i) : o = s, i = ye(i);
2200
+ !d && s.position === "fixed" && (o = null), (a ? !d && !o : !d && s.position === "static" && !!o && Rs.has(o.position) || rt(i) && !d && po(e, i)) ? r = r.filter((f) => f !== i) : o = s, i = xe(i);
2201
2201
  }
2202
2202
  return t.set(e, r), r;
2203
2203
  }
@@ -2208,9 +2208,9 @@ function As(e) {
2208
2208
  rootBoundary: r,
2209
2209
  strategy: o
2210
2210
  } = e;
2211
- const i = [...n === "clippingAncestors" ? Tt(t) ? [] : Ps(t, this._c) : [].concat(n), r], s = i[0], d = i.reduce((l, f) => {
2211
+ const i = [...n === "clippingAncestors" ? Mt(t) ? [] : Ps(t, this._c) : [].concat(n), r], s = i[0], d = i.reduce((l, f) => {
2212
2212
  const u = jr(t, f, o);
2213
- return l.top = q(u.top, l.top), l.right = xe(u.right, l.right), l.bottom = xe(u.bottom, l.bottom), l.left = q(u.left, l.left), l;
2213
+ return l.top = q(u.top, l.top), l.right = be(u.right, l.right), l.bottom = be(u.bottom, l.bottom), l.left = q(u.left, l.left), l;
2214
2214
  }, jr(t, s, o));
2215
2215
  return {
2216
2216
  width: d.right - d.left,
@@ -2219,7 +2219,7 @@ function As(e) {
2219
2219
  y: d.top
2220
2220
  };
2221
2221
  }
2222
- function Ts(e) {
2222
+ function Ms(e) {
2223
2223
  const {
2224
2224
  width: t,
2225
2225
  height: n
@@ -2229,7 +2229,7 @@ function Ts(e) {
2229
2229
  height: n
2230
2230
  };
2231
2231
  }
2232
- function Ms(e, t, n) {
2232
+ function Ts(e, t, n) {
2233
2233
  const r = le(t), o = de(t), a = n === "fixed", i = Ae(e, !0, a, t);
2234
2234
  let s = {
2235
2235
  scrollLeft: 0,
@@ -2240,7 +2240,7 @@ function Ms(e, t, n) {
2240
2240
  d.x = Ot(o);
2241
2241
  }
2242
2242
  if (r || !r && !a)
2243
- if ((Ge(t) !== "body" || rt(o)) && (s = Mt(t)), r) {
2243
+ if ((Ge(t) !== "body" || rt(o)) && (s = Tt(t)), r) {
2244
2244
  const h = Ae(t, !0, a, t);
2245
2245
  d.x = h.x + t.clientLeft, d.y = h.y + t.clientTop;
2246
2246
  } else o && l();
@@ -2266,14 +2266,14 @@ function Dr(e, t) {
2266
2266
  }
2267
2267
  function mo(e, t) {
2268
2268
  const n = Z(e);
2269
- if (Tt(e))
2269
+ if (Mt(e))
2270
2270
  return n;
2271
2271
  if (!le(e)) {
2272
- let o = ye(e);
2272
+ let o = xe(e);
2273
2273
  for (; o && !Be(o); ) {
2274
2274
  if (re(o) && !Gt(o))
2275
2275
  return o;
2276
- o = ye(o);
2276
+ o = xe(o);
2277
2277
  }
2278
2278
  return n;
2279
2279
  }
@@ -2285,7 +2285,7 @@ function mo(e, t) {
2285
2285
  const Os = async function(e) {
2286
2286
  const t = this.getOffsetParent || mo, n = this.getDimensions, r = await n(e.floating);
2287
2287
  return {
2288
- reference: Ms(e.reference, await t(e.floating), e.strategy),
2288
+ reference: Ts(e.reference, await t(e.floating), e.strategy),
2289
2289
  floating: {
2290
2290
  x: 0,
2291
2291
  y: 0,
@@ -2304,7 +2304,7 @@ const Is = {
2304
2304
  getOffsetParent: mo,
2305
2305
  getElementRects: Os,
2306
2306
  getClientRects: Ss,
2307
- getDimensions: Ts,
2307
+ getDimensions: Ms,
2308
2308
  getScale: Fe,
2309
2309
  isElement: re,
2310
2310
  isRTL: ks
@@ -2331,7 +2331,7 @@ function js(e, t) {
2331
2331
  return;
2332
2332
  const g = dt(u), v = dt(o.clientWidth - (f + p)), b = dt(o.clientHeight - (u + h)), x = dt(f), w = {
2333
2333
  rootMargin: -g + "px " + -v + "px " + -b + "px " + -x + "px",
2334
- threshold: q(0, xe(1, d)) || 1
2334
+ threshold: q(0, be(1, d)) || 1
2335
2335
  };
2336
2336
  let C = !0;
2337
2337
  function R(_) {
@@ -2479,7 +2479,7 @@ function Hs(e) {
2479
2479
  O !== _.current && (_.current = O, v(O));
2480
2480
  }, []), w = c.useCallback((O) => {
2481
2481
  O !== E.current && (E.current = O, x(O));
2482
- }, []), C = a || g, R = i || b, _ = c.useRef(null), E = c.useRef(null), M = c.useRef(f), D = d != null, I = Ht(d), G = Ht(o), W = Ht(l), $ = c.useCallback(() => {
2482
+ }, []), C = a || g, R = i || b, _ = c.useRef(null), E = c.useRef(null), T = c.useRef(f), D = d != null, I = Ht(d), G = Ht(o), W = Ht(l), $ = c.useCallback(() => {
2483
2483
  if (!_.current || !E.current)
2484
2484
  return;
2485
2485
  const O = {
@@ -2496,13 +2496,13 @@ function Hs(e) {
2496
2496
  // setting it to `true` when `open === false` (must be specified).
2497
2497
  isPositioned: W.current !== !1
2498
2498
  };
2499
- L.current && !Ct(M.current, B) && (M.current = B, Xr.flushSync(() => {
2499
+ L.current && !Ct(T.current, B) && (T.current = B, Xr.flushSync(() => {
2500
2500
  u(B);
2501
2501
  }));
2502
2502
  });
2503
2503
  }, [p, t, n, G, W]);
2504
2504
  gt(() => {
2505
- l === !1 && M.current.isPositioned && (M.current.isPositioned = !1, u((O) => ({
2505
+ l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, u((O) => ({
2506
2506
  ...O,
2507
2507
  isPositioned: !1
2508
2508
  })));
@@ -2636,7 +2636,7 @@ function bo(e) {
2636
2636
  n(void 0);
2637
2637
  }, [e]), t;
2638
2638
  }
2639
- var xn = "Popper", [xo, kt] = we(xn), [nc, yo] = xo(xn), wo = (e) => {
2639
+ var xn = "Popper", [xo, kt] = ye(xn), [nc, yo] = xo(xn), wo = (e) => {
2640
2640
  const { __scopePopper: t, children: n } = e, [r, o] = c.useState(null);
2641
2641
  return /* @__PURE__ */ m.jsx(nc, { scope: t, anchor: r, onAnchorChange: o, children: n });
2642
2642
  };
@@ -2653,7 +2653,7 @@ var So = "PopperAnchor", Co = c.forwardRef(
2653
2653
  Co.displayName = So;
2654
2654
  var yn = "PopperContent", [rc, oc] = xo(yn), Eo = c.forwardRef(
2655
2655
  (e, t) => {
2656
- var N, J, Y, Re, dr, fr;
2656
+ var N, J, Y, Ee, dr, fr;
2657
2657
  const {
2658
2658
  __scopePopper: n,
2659
2659
  side: r = "bottom",
@@ -2669,7 +2669,7 @@ var yn = "PopperContent", [rc, oc] = xo(yn), Eo = c.forwardRef(
2669
2669
  updatePositionStrategy: h = "optimized",
2670
2670
  onPlaced: g,
2671
2671
  ...v
2672
- } = e, b = yo(yn, n), [x, S] = c.useState(null), w = K(t, (He) => S(He)), [C, R] = c.useState(null), _ = bo(C), E = (_ == null ? void 0 : _.width) ?? 0, M = (_ == null ? void 0 : _.height) ?? 0, D = r + (a !== "center" ? "-" + a : ""), I = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, G = Array.isArray(l) ? l : [l], W = G.length > 0, $ = {
2672
+ } = e, b = yo(yn, n), [x, S] = c.useState(null), w = K(t, (He) => S(He)), [C, R] = c.useState(null), _ = bo(C), E = (_ == null ? void 0 : _.width) ?? 0, T = (_ == null ? void 0 : _.height) ?? 0, D = r + (a !== "center" ? "-" + a : ""), I = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, G = Array.isArray(l) ? l : [l], W = G.length > 0, $ = {
2673
2673
  padding: I,
2674
2674
  boundary: G.filter(ic),
2675
2675
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -2685,7 +2685,7 @@ var yn = "PopperContent", [rc, oc] = xo(yn), Eo = c.forwardRef(
2685
2685
  reference: b.anchor
2686
2686
  },
2687
2687
  middleware: [
2688
- Ks({ mainAxis: o + M, alignmentAxis: i }),
2688
+ Ks({ mainAxis: o + T, alignmentAxis: i }),
2689
2689
  d && Ys({
2690
2690
  mainAxis: !0,
2691
2691
  crossAxis: !1,
@@ -2701,14 +2701,14 @@ var yn = "PopperContent", [rc, oc] = xo(yn), Eo = c.forwardRef(
2701
2701
  }
2702
2702
  }),
2703
2703
  C && Qs({ element: C, padding: s }),
2704
- sc({ arrowWidth: E, arrowHeight: M }),
2704
+ sc({ arrowWidth: E, arrowHeight: T }),
2705
2705
  p && Js({ strategy: "referenceHidden", ...$ })
2706
2706
  ]
2707
2707
  }), [P, B] = Po(j), y = ne(g);
2708
2708
  te(() => {
2709
2709
  V && (y == null || y());
2710
2710
  }, [V, y]);
2711
- const T = (N = O.arrow) == null ? void 0 : N.x, F = (J = O.arrow) == null ? void 0 : J.y, U = ((Y = O.arrow) == null ? void 0 : Y.centerOffset) !== 0, [fe, ee] = c.useState();
2711
+ const M = (N = O.arrow) == null ? void 0 : N.x, F = (J = O.arrow) == null ? void 0 : J.y, U = ((Y = O.arrow) == null ? void 0 : Y.centerOffset) !== 0, [fe, ee] = c.useState();
2712
2712
  return te(() => {
2713
2713
  x && ee(window.getComputedStyle(x).zIndex);
2714
2714
  }, [x]), /* @__PURE__ */ m.jsx(
@@ -2723,7 +2723,7 @@ var yn = "PopperContent", [rc, oc] = xo(yn), Eo = c.forwardRef(
2723
2723
  minWidth: "max-content",
2724
2724
  zIndex: fe,
2725
2725
  "--radix-popper-transform-origin": [
2726
- (Re = O.transformOrigin) == null ? void 0 : Re.x,
2726
+ (Ee = O.transformOrigin) == null ? void 0 : Ee.x,
2727
2727
  (dr = O.transformOrigin) == null ? void 0 : dr.y
2728
2728
  ].join(" "),
2729
2729
  // hide the content if using the hide middleware and should be hidden
@@ -2741,7 +2741,7 @@ var yn = "PopperContent", [rc, oc] = xo(yn), Eo = c.forwardRef(
2741
2741
  scope: n,
2742
2742
  placedSide: P,
2743
2743
  onArrowChange: R,
2744
- arrowX: T,
2744
+ arrowX: M,
2745
2745
  arrowY: F,
2746
2746
  shouldHideArrow: U,
2747
2747
  children: /* @__PURE__ */ m.jsx(
@@ -2834,7 +2834,7 @@ function Po(e) {
2834
2834
  const [t, n = "center"] = e.split("-");
2835
2835
  return [t, n];
2836
2836
  }
2837
- var wn = wo, Sn = Co, Ao = Eo, To = _o, cc = "Portal", Cn = c.forwardRef((e, t) => {
2837
+ var wn = wo, Sn = Co, Ao = Eo, Mo = _o, cc = "Portal", Cn = c.forwardRef((e, t) => {
2838
2838
  var s;
2839
2839
  const { container: n, ...r } = e, [o, a] = c.useState(!1);
2840
2840
  te(() => a(!0), []);
@@ -2847,13 +2847,13 @@ var lc = function(e) {
2847
2847
  return null;
2848
2848
  var t = Array.isArray(e) ? e[0] : e;
2849
2849
  return t.ownerDocument.body;
2850
- }, Ie = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), pt = {}, zt = 0, Mo = function(e) {
2851
- return e && (e.host || Mo(e.parentNode));
2850
+ }, Ie = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), pt = {}, zt = 0, To = function(e) {
2851
+ return e && (e.host || To(e.parentNode));
2852
2852
  }, uc = function(e, t) {
2853
2853
  return t.map(function(n) {
2854
2854
  if (e.contains(n))
2855
2855
  return n;
2856
- var r = Mo(n);
2856
+ var r = To(n);
2857
2857
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
2858
2858
  }).filter(function(n) {
2859
2859
  return !!n;
@@ -3210,13 +3210,13 @@ var _c = function() {
3210
3210
  gap: 0
3211
3211
  }, Xt = function(e) {
3212
3212
  return parseInt(e || "", 10) || 0;
3213
- }, Tc = function(e) {
3213
+ }, Mc = function(e) {
3214
3214
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
3215
3215
  return [Xt(n), Xt(r), Xt(o)];
3216
- }, Mc = function(e) {
3216
+ }, Tc = function(e) {
3217
3217
  if (e === void 0 && (e = "margin"), typeof window > "u")
3218
3218
  return Ac;
3219
- var t = Tc(e), n = document.documentElement.clientWidth, r = window.innerWidth;
3219
+ var t = Mc(e), n = document.documentElement.clientWidth, r = window.innerWidth;
3220
3220
  return {
3221
3221
  left: t[0],
3222
3222
  top: t[1],
@@ -3281,7 +3281,7 @@ var _c = function() {
3281
3281
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
3282
3282
  Ic();
3283
3283
  var a = c.useMemo(function() {
3284
- return Mc(o);
3284
+ return Tc(o);
3285
3285
  }, [o]);
3286
3286
  return c.createElement(Oc, { styles: kc(a, !t, o, n ? "" : "!important") });
3287
3287
  }, sn = !1;
@@ -3396,10 +3396,10 @@ function Hc(e) {
3396
3396
  var x = ht(v), S = n.current, w = "deltaX" in v ? v.deltaX : S[0] - x[0], C = "deltaY" in v ? v.deltaY : S[1] - x[1], R, _ = v.target, E = Math.abs(w) > Math.abs(C) ? "h" : "v";
3397
3397
  if ("touches" in v && E === "h" && _.type === "range")
3398
3398
  return !1;
3399
- var M = Br(E, _);
3400
- if (!M)
3399
+ var T = Br(E, _);
3400
+ if (!T)
3401
3401
  return !0;
3402
- if (M ? R = E : (R = E === "v" ? "h" : "v", M = Br(E, _)), !M)
3402
+ if (T ? R = E : (R = E === "v" ? "h" : "v", T = Br(E, _)), !T)
3403
3403
  return !1;
3404
3404
  if (!r.current && "changedTouches" in v && (w || C) && (r.current = R), !R)
3405
3405
  return !0;
@@ -3465,9 +3465,9 @@ var En = c.forwardRef(function(e, t) {
3465
3465
  return c.createElement(It, ie({}, e, { ref: t, sideCar: Kc }));
3466
3466
  });
3467
3467
  En.classNames = It.classNames;
3468
- var jt = "Popover", [$o, Yc] = we(jt, [
3468
+ var jt = "Popover", [$o, Yc] = ye(jt, [
3469
3469
  kt
3470
- ]), ot = kt(), [Xc, Ce] = $o(jt), Rn = (e) => {
3470
+ ]), ot = kt(), [Xc, Se] = $o(jt), Rn = (e) => {
3471
3471
  const {
3472
3472
  __scopePopover: t,
3473
3473
  children: n,
@@ -3501,14 +3501,14 @@ var jt = "Popover", [$o, Yc] = we(jt, [
3501
3501
  Rn.displayName = jt;
3502
3502
  var Bo = "PopoverAnchor", _n = c.forwardRef(
3503
3503
  (e, t) => {
3504
- const { __scopePopover: n, ...r } = e, o = Ce(Bo, n), a = ot(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: s } = o;
3504
+ const { __scopePopover: n, ...r } = e, o = Se(Bo, n), a = ot(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: s } = o;
3505
3505
  return c.useEffect(() => (i(), () => s()), [i, s]), /* @__PURE__ */ m.jsx(Sn, { ...a, ...r, ref: t });
3506
3506
  }
3507
3507
  );
3508
3508
  _n.displayName = Bo;
3509
3509
  var Wo = "PopoverTrigger", Pn = c.forwardRef(
3510
3510
  (e, t) => {
3511
- const { __scopePopover: n, ...r } = e, o = Ce(Wo, n), a = ot(n), i = K(t, o.triggerRef), s = /* @__PURE__ */ m.jsx(
3511
+ const { __scopePopover: n, ...r } = e, o = Se(Wo, n), a = ot(n), i = K(t, o.triggerRef), s = /* @__PURE__ */ m.jsx(
3512
3512
  H.button,
3513
3513
  {
3514
3514
  type: "button",
@@ -3527,21 +3527,21 @@ var Wo = "PopoverTrigger", Pn = c.forwardRef(
3527
3527
  Pn.displayName = Wo;
3528
3528
  var An = "PopoverPortal", [qc, Zc] = $o(An, {
3529
3529
  forceMount: void 0
3530
- }), Tn = (e) => {
3531
- const { __scopePopover: t, forceMount: n, children: r, container: o } = e, a = Ce(An, t);
3532
- return /* @__PURE__ */ m.jsx(qc, { scope: t, forceMount: n, children: /* @__PURE__ */ m.jsx(Se, { present: n || a.open, children: /* @__PURE__ */ m.jsx(Cn, { asChild: !0, container: o, children: r }) }) });
3530
+ }), Mn = (e) => {
3531
+ const { __scopePopover: t, forceMount: n, children: r, container: o } = e, a = Se(An, t);
3532
+ return /* @__PURE__ */ m.jsx(qc, { scope: t, forceMount: n, children: /* @__PURE__ */ m.jsx(we, { present: n || a.open, children: /* @__PURE__ */ m.jsx(Cn, { asChild: !0, container: o, children: r }) }) });
3533
3533
  };
3534
- Tn.displayName = An;
3535
- var We = "PopoverContent", Mn = c.forwardRef(
3534
+ Mn.displayName = An;
3535
+ var We = "PopoverContent", Tn = c.forwardRef(
3536
3536
  (e, t) => {
3537
- const n = Zc(We, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, a = Ce(We, e.__scopePopover);
3538
- return /* @__PURE__ */ m.jsx(Se, { present: r || a.open, children: a.modal ? /* @__PURE__ */ m.jsx(Qc, { ...o, ref: t }) : /* @__PURE__ */ m.jsx(el, { ...o, ref: t }) });
3537
+ const n = Zc(We, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, a = Se(We, e.__scopePopover);
3538
+ return /* @__PURE__ */ m.jsx(we, { present: r || a.open, children: a.modal ? /* @__PURE__ */ m.jsx(Qc, { ...o, ref: t }) : /* @__PURE__ */ m.jsx(el, { ...o, ref: t }) });
3539
3539
  }
3540
3540
  );
3541
- Mn.displayName = We;
3541
+ Tn.displayName = We;
3542
3542
  var Jc = /* @__PURE__ */ Ze("PopoverContent.RemoveScroll"), Qc = c.forwardRef(
3543
3543
  (e, t) => {
3544
- const n = Ce(We, e.__scopePopover), r = c.useRef(null), o = K(t, r), a = c.useRef(!1);
3544
+ const n = Se(We, e.__scopePopover), r = c.useRef(null), o = K(t, r), a = c.useRef(!1);
3545
3545
  return c.useEffect(() => {
3546
3546
  const i = r.current;
3547
3547
  if (i) return Oo(i);
@@ -3574,7 +3574,7 @@ var Jc = /* @__PURE__ */ Ze("PopoverContent.RemoveScroll"), Qc = c.forwardRef(
3574
3574
  }
3575
3575
  ), el = c.forwardRef(
3576
3576
  (e, t) => {
3577
- const n = Ce(We, e.__scopePopover), r = c.useRef(!1), o = c.useRef(!1);
3577
+ const n = Se(We, e.__scopePopover), r = c.useRef(!1), o = c.useRef(!1);
3578
3578
  return /* @__PURE__ */ m.jsx(
3579
3579
  Uo,
3580
3580
  {
@@ -3608,7 +3608,7 @@ var Jc = /* @__PURE__ */ Ze("PopoverContent.RemoveScroll"), Qc = c.forwardRef(
3608
3608
  onFocusOutside: l,
3609
3609
  onInteractOutside: f,
3610
3610
  ...u
3611
- } = e, p = Ce(We, n), h = ot(n);
3611
+ } = e, p = Se(We, n), h = ot(n);
3612
3612
  return ro(), /* @__PURE__ */ m.jsx(
3613
3613
  fn,
3614
3614
  {
@@ -3653,7 +3653,7 @@ var Jc = /* @__PURE__ */ Ze("PopoverContent.RemoveScroll"), Qc = c.forwardRef(
3653
3653
  }
3654
3654
  ), Vo = "PopoverClose", On = c.forwardRef(
3655
3655
  (e, t) => {
3656
- const { __scopePopover: n, ...r } = e, o = Ce(Vo, n);
3656
+ const { __scopePopover: n, ...r } = e, o = Se(Vo, n);
3657
3657
  return /* @__PURE__ */ m.jsx(
3658
3658
  H.button,
3659
3659
  {
@@ -3669,14 +3669,14 @@ On.displayName = Vo;
3669
3669
  var tl = "PopoverArrow", kn = c.forwardRef(
3670
3670
  (e, t) => {
3671
3671
  const { __scopePopover: n, ...r } = e, o = ot(n);
3672
- return /* @__PURE__ */ m.jsx(To, { ...o, ...r, ref: t });
3672
+ return /* @__PURE__ */ m.jsx(Mo, { ...o, ...r, ref: t });
3673
3673
  }
3674
3674
  );
3675
3675
  kn.displayName = tl;
3676
3676
  function Go(e) {
3677
3677
  return e ? "open" : "closed";
3678
3678
  }
3679
- var Ho = Rn, nl = _n, zo = Pn, rl = Tn, ol = Mn, al = On, il = kn;
3679
+ var Ho = Rn, nl = _n, zo = Pn, rl = Mn, ol = Tn, al = On, il = kn;
3680
3680
  const sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3681
3681
  __proto__: null,
3682
3682
  Anchor: nl,
@@ -3687,8 +3687,8 @@ const sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3687
3687
  PopoverAnchor: _n,
3688
3688
  PopoverArrow: kn,
3689
3689
  PopoverClose: On,
3690
- PopoverContent: Mn,
3691
- PopoverPortal: Tn,
3690
+ PopoverContent: Tn,
3691
+ PopoverPortal: Mn,
3692
3692
  PopoverTrigger: Pn,
3693
3693
  Portal: rl,
3694
3694
  Root: Ho,
@@ -3709,7 +3709,7 @@ const sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3709
3709
  }
3710
3710
  ) })
3711
3711
  );
3712
- var qt = "rovingFocusGroup.onEntryFocus", pl = { bubbles: !1, cancelable: !0 }, at = "RovingFocusGroup", [cn, Ko, ml] = Jr(at), [hl, Dt] = we(
3712
+ var qt = "rovingFocusGroup.onEntryFocus", pl = { bubbles: !1, cancelable: !0 }, at = "RovingFocusGroup", [cn, Ko, ml] = Jr(at), [hl, Dt] = ye(
3713
3713
  at,
3714
3714
  [ml]
3715
3715
  ), [vl, gl] = hl(at), Yo = c.forwardRef(
@@ -3735,9 +3735,9 @@ var bl = c.forwardRef((e, t) => {
3735
3735
  caller: at
3736
3736
  }), [x, S] = c.useState(!1), w = ne(l), C = Ko(n), R = c.useRef(!1), [_, E] = c.useState(0);
3737
3737
  return c.useEffect(() => {
3738
- const M = p.current;
3739
- if (M)
3740
- return M.addEventListener(qt, w), () => M.removeEventListener(qt, w);
3738
+ const T = p.current;
3739
+ if (T)
3740
+ return T.addEventListener(qt, w), () => T.removeEventListener(qt, w);
3741
3741
  }, [w]), /* @__PURE__ */ m.jsx(
3742
3742
  vl,
3743
3743
  {
@@ -3747,16 +3747,16 @@ var bl = c.forwardRef((e, t) => {
3747
3747
  loop: o,
3748
3748
  currentTabStopId: v,
3749
3749
  onItemFocus: c.useCallback(
3750
- (M) => b(M),
3750
+ (T) => b(T),
3751
3751
  [b]
3752
3752
  ),
3753
3753
  onItemShiftTab: c.useCallback(() => S(!0), []),
3754
3754
  onFocusableItemAdd: c.useCallback(
3755
- () => E((M) => M + 1),
3755
+ () => E((T) => T + 1),
3756
3756
  []
3757
3757
  ),
3758
3758
  onFocusableItemRemove: c.useCallback(
3759
- () => E((M) => M - 1),
3759
+ () => E((T) => T - 1),
3760
3760
  []
3761
3761
  ),
3762
3762
  children: /* @__PURE__ */ m.jsx(
@@ -3770,11 +3770,11 @@ var bl = c.forwardRef((e, t) => {
3770
3770
  onMouseDown: k(e.onMouseDown, () => {
3771
3771
  R.current = !0;
3772
3772
  }),
3773
- onFocus: k(e.onFocus, (M) => {
3773
+ onFocus: k(e.onFocus, (T) => {
3774
3774
  const D = !R.current;
3775
- if (M.target === M.currentTarget && D && !x) {
3775
+ if (T.target === T.currentTarget && D && !x) {
3776
3776
  const I = new CustomEvent(qt, pl);
3777
- if (M.currentTarget.dispatchEvent(I), !I.defaultPrevented) {
3777
+ if (T.currentTarget.dispatchEvent(I), !I.defaultPrevented) {
3778
3778
  const G = C().filter((j) => j.focusable), W = G.find((j) => j.active), $ = G.find((j) => j.id === v), z = [W, $, ...G].filter(
3779
3779
  Boolean
3780
3780
  ).map((j) => j.ref.current);
@@ -3879,11 +3879,11 @@ var Jo = Yo, Qo = qo, ln = ["Enter", " "], Cl = ["ArrowDown", "PageUp", "Home"],
3879
3879
  }, _l = {
3880
3880
  ltr: ["ArrowLeft"],
3881
3881
  rtl: ["ArrowRight"]
3882
- }, it = "Menu", [et, Pl, Al] = Jr(it), [Te, ta] = we(it, [
3882
+ }, it = "Menu", [et, Pl, Al] = Jr(it), [Me, ta] = ye(it, [
3883
3883
  Al,
3884
3884
  kt,
3885
3885
  Dt
3886
- ]), st = kt(), na = Dt(), [ra, Ee] = Te(it), [Tl, ct] = Te(it), oa = (e) => {
3886
+ ]), st = kt(), na = Dt(), [ra, Ce] = Me(it), [Ml, ct] = Me(it), oa = (e) => {
3887
3887
  const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: i = !0 } = e, s = st(t), [d, l] = c.useState(null), f = c.useRef(!1), u = ne(a), p = dn(o);
3888
3888
  return c.useEffect(() => {
3889
3889
  const h = () => {
@@ -3901,7 +3901,7 @@ var Jo = Yo, Qo = qo, ln = ["Enter", " "], Cl = ["ArrowDown", "PageUp", "Home"],
3901
3901
  content: d,
3902
3902
  onContentChange: l,
3903
3903
  children: /* @__PURE__ */ m.jsx(
3904
- Tl,
3904
+ Ml,
3905
3905
  {
3906
3906
  scope: t,
3907
3907
  onClose: c.useCallback(() => u(!1), [u]),
@@ -3915,28 +3915,28 @@ var Jo = Yo, Qo = qo, ln = ["Enter", " "], Cl = ["ArrowDown", "PageUp", "Home"],
3915
3915
  ) });
3916
3916
  };
3917
3917
  oa.displayName = it;
3918
- var Ml = "MenuAnchor", In = c.forwardRef(
3918
+ var Tl = "MenuAnchor", In = c.forwardRef(
3919
3919
  (e, t) => {
3920
3920
  const { __scopeMenu: n, ...r } = e, o = st(n);
3921
3921
  return /* @__PURE__ */ m.jsx(Sn, { ...o, ...r, ref: t });
3922
3922
  }
3923
3923
  );
3924
- In.displayName = Ml;
3925
- var jn = "MenuPortal", [Ol, aa] = Te(jn, {
3924
+ In.displayName = Tl;
3925
+ var jn = "MenuPortal", [Ol, aa] = Me(jn, {
3926
3926
  forceMount: void 0
3927
3927
  }), ia = (e) => {
3928
- const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, a = Ee(jn, t);
3929
- return /* @__PURE__ */ m.jsx(Ol, { scope: t, forceMount: n, children: /* @__PURE__ */ m.jsx(Se, { present: n || a.open, children: /* @__PURE__ */ m.jsx(Cn, { asChild: !0, container: o, children: r }) }) });
3928
+ const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, a = Ce(jn, t);
3929
+ return /* @__PURE__ */ m.jsx(Ol, { scope: t, forceMount: n, children: /* @__PURE__ */ m.jsx(we, { present: n || a.open, children: /* @__PURE__ */ m.jsx(Cn, { asChild: !0, container: o, children: r }) }) });
3930
3930
  };
3931
3931
  ia.displayName = jn;
3932
- var Q = "MenuContent", [kl, Dn] = Te(Q), sa = c.forwardRef(
3932
+ var Q = "MenuContent", [kl, Dn] = Me(Q), sa = c.forwardRef(
3933
3933
  (e, t) => {
3934
- const n = aa(Q, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Ee(Q, e.__scopeMenu), i = ct(Q, e.__scopeMenu);
3935
- return /* @__PURE__ */ m.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ m.jsx(Se, { present: r || a.open, children: /* @__PURE__ */ m.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ m.jsx(Il, { ...o, ref: t }) : /* @__PURE__ */ m.jsx(jl, { ...o, ref: t }) }) }) });
3934
+ const n = aa(Q, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Ce(Q, e.__scopeMenu), i = ct(Q, e.__scopeMenu);
3935
+ return /* @__PURE__ */ m.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ m.jsx(we, { present: r || a.open, children: /* @__PURE__ */ m.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ m.jsx(Il, { ...o, ref: t }) : /* @__PURE__ */ m.jsx(jl, { ...o, ref: t }) }) }) });
3936
3936
  }
3937
3937
  ), Il = c.forwardRef(
3938
3938
  (e, t) => {
3939
- const n = Ee(Q, e.__scopeMenu), r = c.useRef(null), o = K(t, r);
3939
+ const n = Ce(Q, e.__scopeMenu), r = c.useRef(null), o = K(t, r);
3940
3940
  return c.useEffect(() => {
3941
3941
  const a = r.current;
3942
3942
  if (a) return Oo(a);
@@ -3958,7 +3958,7 @@ var Q = "MenuContent", [kl, Dn] = Te(Q), sa = c.forwardRef(
3958
3958
  );
3959
3959
  }
3960
3960
  ), jl = c.forwardRef((e, t) => {
3961
- const n = Ee(Q, e.__scopeMenu);
3961
+ const n = Ce(Q, e.__scopeMenu);
3962
3962
  return /* @__PURE__ */ m.jsx(
3963
3963
  Nn,
3964
3964
  {
@@ -3987,17 +3987,17 @@ var Q = "MenuContent", [kl, Dn] = Te(Q), sa = c.forwardRef(
3987
3987
  onDismiss: h,
3988
3988
  disableOutsideScroll: g,
3989
3989
  ...v
3990
- } = e, b = Ee(Q, n), x = ct(Q, n), S = st(n), w = na(n), C = Pl(n), [R, _] = c.useState(null), E = c.useRef(null), M = K(t, E, b.onContentChange), D = c.useRef(0), I = c.useRef(""), G = c.useRef(0), W = c.useRef(null), $ = c.useRef("right"), L = c.useRef(0), z = g ? En : c.Fragment, j = g ? { as: Dl, allowPinchZoom: !0 } : void 0, V = (P) => {
3990
+ } = e, b = Ce(Q, n), x = ct(Q, n), S = st(n), w = na(n), C = Pl(n), [R, _] = c.useState(null), E = c.useRef(null), T = K(t, E, b.onContentChange), D = c.useRef(0), I = c.useRef(""), G = c.useRef(0), W = c.useRef(null), $ = c.useRef("right"), L = c.useRef(0), z = g ? En : c.Fragment, j = g ? { as: Dl, allowPinchZoom: !0 } : void 0, V = (P) => {
3991
3991
  var N, J;
3992
- const B = I.current + P, y = C().filter((Y) => !Y.disabled), T = document.activeElement, F = (N = y.find((Y) => Y.ref.current === T)) == null ? void 0 : N.textValue, U = y.map((Y) => Y.textValue), fe = Kl(U, B, F), ee = (J = y.find((Y) => Y.textValue === fe)) == null ? void 0 : J.ref.current;
3993
- (function Y(Re) {
3994
- I.current = Re, window.clearTimeout(D.current), Re !== "" && (D.current = window.setTimeout(() => Y(""), 1e3));
3992
+ const B = I.current + P, y = C().filter((Y) => !Y.disabled), M = document.activeElement, F = (N = y.find((Y) => Y.ref.current === M)) == null ? void 0 : N.textValue, U = y.map((Y) => Y.textValue), fe = Kl(U, B, F), ee = (J = y.find((Y) => Y.textValue === fe)) == null ? void 0 : J.ref.current;
3993
+ (function Y(Ee) {
3994
+ I.current = Ee, window.clearTimeout(D.current), Ee !== "" && (D.current = window.setTimeout(() => Y(""), 1e3));
3995
3995
  })(B), ee && setTimeout(() => ee.focus());
3996
3996
  };
3997
3997
  c.useEffect(() => () => window.clearTimeout(D.current), []), ro();
3998
3998
  const O = c.useCallback((P) => {
3999
- var y, T;
4000
- return $.current === ((y = W.current) == null ? void 0 : y.side) && Xl(P, (T = W.current) == null ? void 0 : T.area);
3999
+ var y, M;
4000
+ return $.current === ((y = W.current) == null ? void 0 : y.side) && Xl(P, (M = W.current) == null ? void 0 : M.area);
4001
4001
  }, []);
4002
4002
  return /* @__PURE__ */ m.jsx(
4003
4003
  kl,
@@ -4071,11 +4071,11 @@ var Q = "MenuContent", [kl, Dn] = Te(Q), sa = c.forwardRef(
4071
4071
  dir: x.dir,
4072
4072
  ...S,
4073
4073
  ...v,
4074
- ref: M,
4074
+ ref: T,
4075
4075
  style: { outline: "none", ...v.style },
4076
4076
  onKeyDown: k(v.onKeyDown, (P) => {
4077
- const y = P.target.closest("[data-radix-menu-content]") === P.currentTarget, T = P.ctrlKey || P.altKey || P.metaKey, F = P.key.length === 1;
4078
- y && (P.key === "Tab" && P.preventDefault(), !T && F && V(P.key));
4077
+ const y = P.target.closest("[data-radix-menu-content]") === P.currentTarget, M = P.ctrlKey || P.altKey || P.metaKey, F = P.key.length === 1;
4078
+ y && (P.key === "Tab" && P.preventDefault(), !M && F && V(P.key));
4079
4079
  const U = E.current;
4080
4080
  if (P.target !== U || !El.includes(P.key)) return;
4081
4081
  P.preventDefault();
@@ -4090,8 +4090,8 @@ var Q = "MenuContent", [kl, Dn] = Te(Q), sa = c.forwardRef(
4090
4090
  tt((P) => {
4091
4091
  const B = P.target, y = L.current !== P.clientX;
4092
4092
  if (P.currentTarget.contains(B) && y) {
4093
- const T = P.clientX > L.current ? "right" : "left";
4094
- $.current = T, L.current = P.clientX;
4093
+ const M = P.clientX > L.current ? "right" : "left";
4094
+ $.current = M, L.current = P.clientX;
4095
4095
  }
4096
4096
  })
4097
4097
  )
@@ -4214,7 +4214,7 @@ var la = c.forwardRef(
4214
4214
  }
4215
4215
  );
4216
4216
  ua.displayName = Fl;
4217
- var da = "MenuRadioGroup", [$l, Bl] = Te(
4217
+ var da = "MenuRadioGroup", [$l, Bl] = Me(
4218
4218
  da,
4219
4219
  { value: void 0, onValueChange: () => {
4220
4220
  } }
@@ -4249,14 +4249,14 @@ var pa = "MenuRadioItem", ma = c.forwardRef(
4249
4249
  }
4250
4250
  );
4251
4251
  ma.displayName = pa;
4252
- var Fn = "MenuItemIndicator", [ha, Wl] = Te(
4252
+ var Fn = "MenuItemIndicator", [ha, Wl] = Me(
4253
4253
  Fn,
4254
4254
  { checked: !1 }
4255
4255
  ), va = c.forwardRef(
4256
4256
  (e, t) => {
4257
4257
  const { __scopeMenu: n, forceMount: r, ...o } = e, a = Wl(Fn, n);
4258
4258
  return /* @__PURE__ */ m.jsx(
4259
- Se,
4259
+ we,
4260
4260
  {
4261
4261
  present: r || Rt(a.checked) || a.checked === !0,
4262
4262
  children: /* @__PURE__ */ m.jsx(
@@ -4290,12 +4290,12 @@ ga.displayName = Ul;
4290
4290
  var Vl = "MenuArrow", ba = c.forwardRef(
4291
4291
  (e, t) => {
4292
4292
  const { __scopeMenu: n, ...r } = e, o = st(n);
4293
- return /* @__PURE__ */ m.jsx(To, { ...o, ...r, ref: t });
4293
+ return /* @__PURE__ */ m.jsx(Mo, { ...o, ...r, ref: t });
4294
4294
  }
4295
4295
  );
4296
4296
  ba.displayName = Vl;
4297
- var $n = "MenuSub", [Gl, xa] = Te($n), ya = (e) => {
4298
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, a = Ee($n, t), i = st(t), [s, d] = c.useState(null), [l, f] = c.useState(null), u = ne(o);
4297
+ var $n = "MenuSub", [Gl, xa] = Me($n), ya = (e) => {
4298
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, a = Ce($n, t), i = st(t), [s, d] = c.useState(null), [l, f] = c.useState(null), u = ne(o);
4299
4299
  return c.useEffect(() => (a.open === !1 && u(!1), () => u(!1)), [a.open, u]), /* @__PURE__ */ m.jsx(wn, { ...i, children: /* @__PURE__ */ m.jsx(
4300
4300
  ra,
4301
4301
  {
@@ -4321,7 +4321,7 @@ var $n = "MenuSub", [Gl, xa] = Te($n), ya = (e) => {
4321
4321
  ya.displayName = $n;
4322
4322
  var qe = "MenuSubTrigger", wa = c.forwardRef(
4323
4323
  (e, t) => {
4324
- const n = Ee(qe, e.__scopeMenu), r = ct(qe, e.__scopeMenu), o = xa(qe, e.__scopeMenu), a = Dn(qe, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: d } = a, l = { __scopeMenu: e.__scopeMenu }, f = c.useCallback(() => {
4324
+ const n = Ce(qe, e.__scopeMenu), r = ct(qe, e.__scopeMenu), o = xa(qe, e.__scopeMenu), a = Dn(qe, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: d } = a, l = { __scopeMenu: e.__scopeMenu }, f = c.useCallback(() => {
4325
4325
  i.current && window.clearTimeout(i.current), i.current = null;
4326
4326
  }, []);
4327
4327
  return c.useEffect(() => f, [f]), c.useEffect(() => {
@@ -4392,8 +4392,8 @@ var qe = "MenuSubTrigger", wa = c.forwardRef(
4392
4392
  wa.displayName = qe;
4393
4393
  var Sa = "MenuSubContent", Ca = c.forwardRef(
4394
4394
  (e, t) => {
4395
- const n = aa(Q, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Ee(Q, e.__scopeMenu), i = ct(Q, e.__scopeMenu), s = xa(Sa, e.__scopeMenu), d = c.useRef(null), l = K(t, d);
4396
- return /* @__PURE__ */ m.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ m.jsx(Se, { present: r || a.open, children: /* @__PURE__ */ m.jsx(et.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ m.jsx(
4395
+ const n = aa(Q, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Ce(Q, e.__scopeMenu), i = ct(Q, e.__scopeMenu), s = xa(Sa, e.__scopeMenu), d = c.useRef(null), l = K(t, d);
4396
+ return /* @__PURE__ */ m.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ m.jsx(we, { present: r || a.open, children: /* @__PURE__ */ m.jsx(et.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ m.jsx(
4397
4397
  Nn,
4398
4398
  {
4399
4399
  id: s.contentId,
@@ -4469,7 +4469,7 @@ function Xl(e, t) {
4469
4469
  function tt(e) {
4470
4470
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
4471
4471
  }
4472
- var ql = oa, Zl = In, Jl = ia, Ql = sa, eu = Ln, tu = ca, nu = Nt, ru = ua, ou = fa, au = ma, iu = va, su = ga, cu = ba, lu = ya, uu = wa, du = Ca, Lt = "DropdownMenu", [fu, pu] = we(
4472
+ var ql = oa, Zl = In, Jl = ia, Ql = sa, eu = Ln, tu = ca, nu = Nt, ru = ua, ou = fa, au = ma, iu = va, su = ga, cu = ba, lu = ya, uu = wa, du = Ca, Lt = "DropdownMenu", [fu, pu] = ye(
4473
4473
  Lt,
4474
4474
  [ta]
4475
4475
  ), X = ta(), [mu, Ra] = fu(Lt), Wn = (e) => {
@@ -4653,12 +4653,12 @@ var _u = "DropdownMenuSubContent", tr = c.forwardRef((e, t) => {
4653
4653
  );
4654
4654
  });
4655
4655
  tr.displayName = _u;
4656
- var Pu = Wn, Au = Un, Tu = Vn, Mu = Gn, Ou = Hn, Ta = zn, ku = Kn, Iu = Yn, ju = Xn, Ma = qn, Oa = Zn, ka = Jn, Du = Qn, Nu = Aa, Ia = er, ja = tr;
4656
+ var Pu = Wn, Au = Un, Mu = Vn, Tu = Gn, Ou = Hn, Ma = zn, ku = Kn, Iu = Yn, ju = Xn, Ta = qn, Oa = Zn, ka = Jn, Du = Qn, Nu = Aa, Ia = er, ja = tr;
4657
4657
  const Lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4658
4658
  __proto__: null,
4659
4659
  Arrow: Du,
4660
4660
  CheckboxItem: Iu,
4661
- Content: Mu,
4661
+ Content: Tu,
4662
4662
  DropdownMenu: Wn,
4663
4663
  DropdownMenuArrow: Qn,
4664
4664
  DropdownMenuCheckboxItem: Yn,
@@ -4678,10 +4678,10 @@ const Lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4678
4678
  Group: Ou,
4679
4679
  Item: ku,
4680
4680
  ItemIndicator: Oa,
4681
- Label: Ta,
4682
- Portal: Tu,
4681
+ Label: Ma,
4682
+ Portal: Mu,
4683
4683
  RadioGroup: ju,
4684
- RadioItem: Ma,
4684
+ RadioItem: Ta,
4685
4685
  Root: Pu,
4686
4686
  Separator: ka,
4687
4687
  Sub: Nu,
@@ -4699,7 +4699,7 @@ function Ft(e, t) {
4699
4699
  }
4700
4700
  var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4701
4701
  var n = e.color, r = n === void 0 ? "currentColor" : n, o = Ft(e, Fu);
4702
- return be("svg", Object.assign({
4702
+ return ge("svg", Object.assign({
4703
4703
  width: "15",
4704
4704
  height: "15",
4705
4705
  viewBox: "0 0 15 15",
@@ -4707,7 +4707,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4707
4707
  xmlns: "http://www.w3.org/2000/svg"
4708
4708
  }, o, {
4709
4709
  ref: t
4710
- }), be("path", {
4710
+ }), ge("path", {
4711
4711
  d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
4712
4712
  fill: r,
4713
4713
  fillRule: "evenodd",
@@ -4715,7 +4715,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4715
4715
  }));
4716
4716
  }), Bu = ["color"], Wu = /* @__PURE__ */ ue(function(e, t) {
4717
4717
  var n = e.color, r = n === void 0 ? "currentColor" : n, o = Ft(e, Bu);
4718
- return be("svg", Object.assign({
4718
+ return ge("svg", Object.assign({
4719
4719
  width: "15",
4720
4720
  height: "15",
4721
4721
  viewBox: "0 0 15 15",
@@ -4723,7 +4723,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4723
4723
  xmlns: "http://www.w3.org/2000/svg"
4724
4724
  }, o, {
4725
4725
  ref: t
4726
- }), be("path", {
4726
+ }), ge("path", {
4727
4727
  d: "M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",
4728
4728
  fill: r,
4729
4729
  fillRule: "evenodd",
@@ -4731,7 +4731,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4731
4731
  }));
4732
4732
  }), Uu = ["color"], uf = /* @__PURE__ */ ue(function(e, t) {
4733
4733
  var n = e.color, r = n === void 0 ? "currentColor" : n, o = Ft(e, Uu);
4734
- return be("svg", Object.assign({
4734
+ return ge("svg", Object.assign({
4735
4735
  width: "15",
4736
4736
  height: "15",
4737
4737
  viewBox: "0 0 15 15",
@@ -4739,7 +4739,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4739
4739
  xmlns: "http://www.w3.org/2000/svg"
4740
4740
  }, o, {
4741
4741
  ref: t
4742
- }), be("path", {
4742
+ }), ge("path", {
4743
4743
  d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
4744
4744
  fill: r,
4745
4745
  fillRule: "evenodd",
@@ -4747,7 +4747,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4747
4747
  }));
4748
4748
  }), Vu = ["color"], Gu = /* @__PURE__ */ ue(function(e, t) {
4749
4749
  var n = e.color, r = n === void 0 ? "currentColor" : n, o = Ft(e, Vu);
4750
- return be("svg", Object.assign({
4750
+ return ge("svg", Object.assign({
4751
4751
  width: "15",
4752
4752
  height: "15",
4753
4753
  viewBox: "0 0 15 15",
@@ -4755,7 +4755,7 @@ var Fu = ["color"], $u = /* @__PURE__ */ ue(function(e, t) {
4755
4755
  xmlns: "http://www.w3.org/2000/svg"
4756
4756
  }, o, {
4757
4757
  ref: t
4758
- }), be("path", {
4758
+ }), ge("path", {
4759
4759
  d: "M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",
4760
4760
  fill: r
4761
4761
  }));
@@ -4847,7 +4847,7 @@ const od = c.forwardRef(({ checked: e, children: t, className: n, ...r }, o) =>
4847
4847
  ));
4848
4848
  od.displayName = Da.displayName;
4849
4849
  const ad = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m.jsxs(
4850
- Ma,
4850
+ Ta,
4851
4851
  {
4852
4852
  ref: r,
4853
4853
  className: A(
@@ -4863,7 +4863,7 @@ const ad = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
4863
4863
  ));
4864
4864
  ad.displayName = Zu.displayName;
4865
4865
  const id = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ m.jsx(
4866
- Ta,
4866
+ Ma,
4867
4867
  {
4868
4868
  ref: r,
4869
4869
  className: A(
@@ -4887,7 +4887,7 @@ const sd = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m.jsx(
4887
4887
  }
4888
4888
  ));
4889
4889
  sd.displayName = Qu.displayName;
4890
- var $t = "Tabs", [cd, ld] = we($t, [
4890
+ var $t = "Tabs", [cd, ld] = ye($t, [
4891
4891
  Dt
4892
4892
  ]), Fa = Dt(), [ud, nr] = cd($t), rr = c.forwardRef(
4893
4893
  (e, t) => {
@@ -5001,7 +5001,7 @@ var Wa = "TabsContent", ir = c.forwardRef(
5001
5001
  return c.useEffect(() => {
5002
5002
  const p = requestAnimationFrame(() => u.current = !1);
5003
5003
  return () => cancelAnimationFrame(p);
5004
- }, []), /* @__PURE__ */ m.jsx(Se, { present: o || f, children: ({ present: p }) => /* @__PURE__ */ m.jsx(
5004
+ }, []), /* @__PURE__ */ m.jsx(we, { present: o || f, children: ({ present: p }) => /* @__PURE__ */ m.jsx(
5005
5005
  H.div,
5006
5006
  {
5007
5007
  "data-state": f ? "active" : "inactive",
@@ -5218,7 +5218,7 @@ const he = {
5218
5218
  variant: t = "default",
5219
5219
  className: n
5220
5220
  }) => /* @__PURE__ */ m.jsx(
5221
- ge,
5221
+ _e,
5222
5222
  {
5223
5223
  className: A(Gr.base, Gr.status[t], n),
5224
5224
  "data-testid": "status",
@@ -5238,7 +5238,7 @@ function gd(e) {
5238
5238
  const t = c.useRef({ value: e, previous: e });
5239
5239
  return c.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
5240
5240
  }
5241
- var Bt = "Switch", [bd, xd] = we(Bt), [yd, wd] = bd(Bt), sr = c.forwardRef(
5241
+ var Bt = "Switch", [bd, xd] = ye(Bt), [yd, wd] = bd(Bt), sr = c.forwardRef(
5242
5242
  (e, t) => {
5243
5243
  const {
5244
5244
  __scopeSwitch: n,
@@ -5439,7 +5439,7 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5439
5439
  }
5440
5440
  );
5441
5441
  }
5442
- ), ge = ({
5442
+ ), _e = ({
5443
5443
  children: e,
5444
5444
  className: t = "",
5445
5445
  variant: n = "p",
@@ -5459,8 +5459,8 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5459
5459
  ...s
5460
5460
  }, d) => {
5461
5461
  var v, b;
5462
- const l = _e.base, f = _e.state, u = _e.disabled, p = _e.styles, h = _e.maxLength;
5463
- return /* @__PURE__ */ m.jsxs("div", { className: _e.root, children: [
5462
+ const l = Re.base, f = Re.state, u = Re.disabled, p = Re.styles, h = Re.maxLength;
5463
+ return /* @__PURE__ */ m.jsxs("div", { className: Re.root, children: [
5464
5464
  /* @__PURE__ */ m.jsx(
5465
5465
  "textarea",
5466
5466
  {
@@ -5482,8 +5482,8 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5482
5482
  )
5483
5483
  }
5484
5484
  ),
5485
- /* @__PURE__ */ m.jsx("div", { className: _e.messageContainer, children: i && /* @__PURE__ */ m.jsxs(
5486
- ge,
5485
+ /* @__PURE__ */ m.jsx("div", { className: Re.messageContainer, children: i && /* @__PURE__ */ m.jsxs(
5486
+ _e,
5487
5487
  {
5488
5488
  variant: "span",
5489
5489
  className: A(
@@ -5499,7 +5499,7 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5499
5499
  ) })
5500
5500
  ] });
5501
5501
  }
5502
- ), _e = {
5502
+ ), Re = {
5503
5503
  root: "flex flex-col gap-1 w-full",
5504
5504
  base: "w-full min-h-[60px] bg-gray-50 text-sm text-dark-10 font-sans font-medium leading-none px-3.5 py-3 border border-gray-50 rounded-[10px] placeholder:text-sm placeholder:text-dark-40/50 transition-colors duration-200",
5505
5505
  disabled: "text-dark-40/25 bg-dark-30/[.08] cursor-not-allowed",
@@ -5578,7 +5578,7 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5578
5578
  className: _,
5579
5579
  text: E = ""
5580
5580
  }) => /* @__PURE__ */ m.jsx(
5581
- ge,
5581
+ _e,
5582
5582
  {
5583
5583
  className: A(
5584
5584
  v.placeholder,
@@ -5656,7 +5656,7 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5656
5656
  style: { minWidth: "var(--radix-popper-anchor-width)" },
5657
5657
  onOpenAutoFocus: R,
5658
5658
  ref: g,
5659
- children: d ? /* @__PURE__ */ m.jsx("div", { className: A(b.items, "cursor-default"), children: /* @__PURE__ */ m.jsx(ge, { className: A(b.itemsText), children: "Загрузка..." }) }) : o && o.length > 0 ? o.map((_) => /* @__PURE__ */ m.jsx(
5659
+ children: d ? /* @__PURE__ */ m.jsx("div", { className: A(b.items, "cursor-default") }) : o && o.length > 0 ? o.map((_) => /* @__PURE__ */ m.jsx(
5660
5660
  "div",
5661
5661
  {
5662
5662
  "data-value": _.value,
@@ -5665,7 +5665,7 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5665
5665
  E.preventDefault(), E.stopPropagation(), r(_.value), f(!1);
5666
5666
  },
5667
5667
  children: /* @__PURE__ */ m.jsx(
5668
- ge,
5668
+ _e,
5669
5669
  {
5670
5670
  className: A(
5671
5671
  b.itemsText,
@@ -5678,7 +5678,7 @@ const Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5678
5678
  )
5679
5679
  },
5680
5680
  _.value
5681
- )) : /* @__PURE__ */ m.jsx("div", { className: A(b.items, "cursor-default"), children: /* @__PURE__ */ m.jsx(ge, { className: A(b.itemsText), children: "Нет данных" }) })
5681
+ )) : /* @__PURE__ */ m.jsx("div", { className: A(b.items, "cursor-default"), children: /* @__PURE__ */ m.jsx(_e, { className: A(b.itemsText), children: "Нет данных" }) })
5682
5682
  }
5683
5683
  ) })
5684
5684
  ] }) });
@@ -5748,9 +5748,9 @@ function Ad(e, t = []) {
5748
5748
  );
5749
5749
  };
5750
5750
  };
5751
- return o.scopeName = e, [r, Td(o, ...t)];
5751
+ return o.scopeName = e, [r, Md(o, ...t)];
5752
5752
  }
5753
- function Td(...e) {
5753
+ function Md(...e) {
5754
5754
  const t = e[0];
5755
5755
  if (e.length === 1) return t;
5756
5756
  const n = () => {
@@ -5768,12 +5768,12 @@ function Td(...e) {
5768
5768
  };
5769
5769
  return n.scopeName = t.scopeName, n;
5770
5770
  }
5771
- var Md = Symbol.for("react.lazy"), _t = c[" use ".trim().toString()];
5771
+ var Td = Symbol.for("react.lazy"), _t = c[" use ".trim().toString()];
5772
5772
  function Od(e) {
5773
5773
  return typeof e == "object" && e !== null && "then" in e;
5774
5774
  }
5775
5775
  function Ka(e) {
5776
- return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Md && "_payload" in e && Od(e._payload);
5776
+ return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Td && "_payload" in e && Od(e._payload);
5777
5777
  }
5778
5778
  // @__NO_SIDE_EFFECTS__
5779
5779
  function kd(e) {
@@ -6137,7 +6137,7 @@ export {
6137
6137
  Rd as N,
6138
6138
  kt as O,
6139
6139
  H as P,
6140
- To as Q,
6140
+ Mo as Q,
6141
6141
  vd as R,
6142
6142
  mf as S,
6143
6143
  hf as T,
@@ -6170,11 +6170,11 @@ export {
6170
6170
  Ye as b,
6171
6171
  Oe as c,
6172
6172
  ke as d,
6173
- ge as e,
6173
+ _e as e,
6174
6174
  vf as f,
6175
- _e as g,
6175
+ Re as g,
6176
6176
  gf as h,
6177
- Me as i,
6177
+ Te as i,
6178
6178
  Zt as j,
6179
6179
  bf as k,
6180
6180
  br as l,
@@ -6186,10 +6186,10 @@ export {
6186
6186
  he as r,
6187
6187
  Gr as s,
6188
6188
  Xe as t,
6189
- we as u,
6189
+ ye as u,
6190
6190
  K as v,
6191
6191
  af as w,
6192
6192
  Ue as x,
6193
- Se as y,
6193
+ we as y,
6194
6194
  k as z
6195
6195
  };