aravint-ui-navigation 1.0.13 → 1.0.15

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.
@@ -3,8 +3,8 @@ var Mo = (e, t, n) => t in e ? Io(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var ce = (e, t, n) => Mo(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as T, Fragment as ir, jsxs as be } from "react/jsx-runtime";
5
5
  import * as d from "react";
6
- import Cn, { useLayoutEffect as Do, forwardRef as Lo, useRef as _o, useState as zo, createElement as Rn } from "react";
7
- import * as en from "react-dom";
6
+ import $t, { useLayoutEffect as Do, forwardRef as Lo, useRef as _o, useState as zo, createElement as Rn } from "react";
7
+ import * as tn from "react-dom";
8
8
  import $o, { createPortal as Bo } from "react-dom";
9
9
  function sr(e) {
10
10
  var t, n, r = "";
@@ -25,37 +25,37 @@ const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kn = ar, c
25
25
  const { variants: o, defaultVariants: i } = t, s = Object.keys(o).map((l) => {
26
26
  const u = n == null ? void 0 : n[l], f = i == null ? void 0 : i[l];
27
27
  if (u === null) return null;
28
- const g = An(u) || An(f);
29
- return o[l][g];
28
+ const h = An(u) || An(f);
29
+ return o[l][h];
30
30
  }), a = n && Object.entries(n).reduce((l, u) => {
31
- let [f, g] = u;
32
- return g === void 0 || (l[f] = g), l;
31
+ let [f, h] = u;
32
+ return h === void 0 || (l[f] = h), l;
33
33
  }, {}), c = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((l, u) => {
34
- let { class: f, className: g, ...m } = u;
34
+ let { class: f, className: h, ...m } = u;
35
35
  return Object.entries(m).every((p) => {
36
- let [h, x] = p;
37
- return Array.isArray(x) ? x.includes({
36
+ let [g, v] = p;
37
+ return Array.isArray(v) ? v.includes({
38
38
  ...i,
39
39
  ...a
40
- }[h]) : {
40
+ }[g]) : {
41
41
  ...i,
42
42
  ...a
43
- }[h] === x;
43
+ }[g] === v;
44
44
  }) ? [
45
45
  ...l,
46
46
  f,
47
- g
47
+ h
48
48
  ] : l;
49
49
  }, []);
50
50
  return kn(e, s, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
51
- }, tn = "-", Fo = (e) => {
51
+ }, nn = "-", Fo = (e) => {
52
52
  const t = Wo(e), {
53
53
  conflictingClassGroups: n,
54
54
  conflictingClassGroupModifiers: r
55
55
  } = e;
56
56
  return {
57
57
  getClassGroupId: (s) => {
58
- const a = s.split(tn);
58
+ const a = s.split(nn);
59
59
  return a[0] === "" && a.length !== 1 && a.shift(), lr(a, t) || Vo(s);
60
60
  },
61
61
  getConflictingClassGroupIds: (s, a) => {
@@ -72,7 +72,7 @@ const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kn = ar, c
72
72
  return o;
73
73
  if (t.validators.length === 0)
74
74
  return;
75
- const i = e.join(tn);
75
+ const i = e.join(nn);
76
76
  return (s = t.validators.find(({
77
77
  validator: a
78
78
  }) => a(i))) == null ? void 0 : s.classGroupId;
@@ -91,9 +91,9 @@ const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kn = ar, c
91
91
  validators: []
92
92
  };
93
93
  for (const o in n)
94
- $t(n[o], r, o, t);
94
+ Bt(n[o], r, o, t);
95
95
  return r;
96
- }, $t = (e, t, n, r) => {
96
+ }, Bt = (e, t, n, r) => {
97
97
  e.forEach((o) => {
98
98
  if (typeof o == "string") {
99
99
  const i = o === "" ? t : Pn(t, o);
@@ -102,7 +102,7 @@ const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kn = ar, c
102
102
  }
103
103
  if (typeof o == "function") {
104
104
  if (Ho(o)) {
105
- $t(o(r), t, n, r);
105
+ Bt(o(r), t, n, r);
106
106
  return;
107
107
  }
108
108
  t.validators.push({
@@ -112,12 +112,12 @@ const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kn = ar, c
112
112
  return;
113
113
  }
114
114
  Object.entries(o).forEach(([i, s]) => {
115
- $t(s, Pn(t, i), n, r);
115
+ Bt(s, Pn(t, i), n, r);
116
116
  });
117
117
  });
118
118
  }, Pn = (e, t) => {
119
119
  let n = e;
120
- return t.split(tn).forEach((r) => {
120
+ return t.split(nn).forEach((r) => {
121
121
  n.nextPart.has(r) || n.nextPart.set(r, {
122
122
  nextPart: /* @__PURE__ */ new Map(),
123
123
  validators: []
@@ -147,7 +147,7 @@ const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kn = ar, c
147
147
  n.has(i) ? n.set(i, s) : o(i, s);
148
148
  }
149
149
  };
150
- }, Bt = "!", Ft = ":", jo = Ft.length, Go = (e) => {
150
+ }, Ft = "!", Vt = ":", jo = Vt.length, Go = (e) => {
151
151
  const {
152
152
  prefix: t,
153
153
  experimentalParseClassName: n
@@ -156,29 +156,29 @@ const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kn = ar, c
156
156
  const i = [];
157
157
  let s = 0, a = 0, c = 0, l;
158
158
  for (let p = 0; p < o.length; p++) {
159
- let h = o[p];
159
+ let g = o[p];
160
160
  if (s === 0 && a === 0) {
161
- if (h === Ft) {
161
+ if (g === Vt) {
162
162
  i.push(o.slice(c, p)), c = p + jo;
163
163
  continue;
164
164
  }
165
- if (h === "/") {
165
+ if (g === "/") {
166
166
  l = p;
167
167
  continue;
168
168
  }
169
169
  }
170
- h === "[" ? s++ : h === "]" ? s-- : h === "(" ? a++ : h === ")" && a--;
170
+ g === "[" ? s++ : g === "]" ? s-- : g === "(" ? a++ : g === ")" && a--;
171
171
  }
172
- const u = i.length === 0 ? o : o.substring(c), f = Ko(u), g = f !== u, m = l && l > c ? l - c : void 0;
172
+ const u = i.length === 0 ? o : o.substring(c), f = Ko(u), h = f !== u, m = l && l > c ? l - c : void 0;
173
173
  return {
174
174
  modifiers: i,
175
- hasImportantModifier: g,
175
+ hasImportantModifier: h,
176
176
  baseClassName: f,
177
177
  maybePostfixModifierPosition: m
178
178
  };
179
179
  };
180
180
  if (t) {
181
- const o = t + Ft, i = r;
181
+ const o = t + Vt, i = r;
182
182
  r = (s) => s.startsWith(o) ? i(s.substring(o.length)) : {
183
183
  isExternal: !0,
184
184
  modifiers: [],
@@ -195,7 +195,7 @@ const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kn = ar, c
195
195
  });
196
196
  }
197
197
  return r;
198
- }, Ko = (e) => e.endsWith(Bt) ? e.substring(0, e.length - 1) : e.startsWith(Bt) ? e.substring(1) : e, Yo = (e) => {
198
+ }, Ko = (e) => e.endsWith(Ft) ? e.substring(0, e.length - 1) : e.startsWith(Ft) ? e.substring(1) : e, Yo = (e) => {
199
199
  const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0]));
200
200
  return (r) => {
201
201
  if (r.length <= 1)
@@ -222,32 +222,32 @@ const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kn = ar, c
222
222
  for (let l = a.length - 1; l >= 0; l -= 1) {
223
223
  const u = a[l], {
224
224
  isExternal: f,
225
- modifiers: g,
225
+ modifiers: h,
226
226
  hasImportantModifier: m,
227
227
  baseClassName: p,
228
- maybePostfixModifierPosition: h
228
+ maybePostfixModifierPosition: g
229
229
  } = n(u);
230
230
  if (f) {
231
231
  c = u + (c.length > 0 ? " " + c : c);
232
232
  continue;
233
233
  }
234
- let x = !!h, v = r(x ? p.substring(0, h) : p);
235
- if (!v) {
236
- if (!x) {
234
+ let v = !!g, y = r(v ? p.substring(0, g) : p);
235
+ if (!y) {
236
+ if (!v) {
237
237
  c = u + (c.length > 0 ? " " + c : c);
238
238
  continue;
239
239
  }
240
- if (v = r(p), !v) {
240
+ if (y = r(p), !y) {
241
241
  c = u + (c.length > 0 ? " " + c : c);
242
242
  continue;
243
243
  }
244
- x = !1;
244
+ v = !1;
245
245
  }
246
- const y = i(g).join(":"), w = m ? y + Bt : y, b = w + v;
246
+ const x = i(h).join(":"), w = m ? x + Ft : x, b = w + y;
247
247
  if (s.includes(b))
248
248
  continue;
249
249
  s.push(b);
250
- const A = o(v, x);
250
+ const A = o(y, v);
251
251
  for (let P = 0; P < A.length; ++P) {
252
252
  const k = A[P];
253
253
  s.push(w + k);
@@ -302,7 +302,7 @@ const q = (e) => {
302
302
  const r = fr.exec(e);
303
303
  return r ? r[1] ? t(r[1]) : n : !1;
304
304
  }, mr = (e) => e === "position" || e === "percentage", gr = (e) => e === "image" || e === "url", hr = (e) => e === "length" || e === "size" || e === "bg-size", br = (e) => e === "length", hi = (e) => e === "number", bi = (e) => e === "family-name", vr = (e) => e === "shadow", vi = () => {
305
- const e = q("color"), t = q("font"), n = q("text"), r = q("font-weight"), o = q("tracking"), i = q("leading"), s = q("breakpoint"), a = q("container"), c = q("spacing"), l = q("radius"), u = q("shadow"), f = q("inset-shadow"), g = q("text-shadow"), m = q("drop-shadow"), p = q("blur"), h = q("perspective"), x = q("aspect"), v = q("ease"), y = q("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], b = () => [
305
+ const e = q("color"), t = q("font"), n = q("text"), r = q("font-weight"), o = q("tracking"), i = q("leading"), s = q("breakpoint"), a = q("container"), c = q("spacing"), l = q("radius"), u = q("shadow"), f = q("inset-shadow"), h = q("text-shadow"), m = q("drop-shadow"), p = q("blur"), g = q("perspective"), v = q("aspect"), y = q("ease"), x = q("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], b = () => [
306
306
  "center",
307
307
  "top",
308
308
  "bottom",
@@ -343,7 +343,7 @@ const q = (e) => {
343
343
  p,
344
344
  O,
345
345
  N
346
- ], F = () => ["none", B, O, N], W = () => ["none", B, O, N], G = () => [B, O, N], Q = () => [Me, "full", ...R()];
346
+ ], F = () => ["none", B, O, N], W = () => ["none", B, O, N], G = () => [B, O, N], ee = () => [Me, "full", ...R()];
347
347
  return {
348
348
  cacheSize: 500,
349
349
  theme: {
@@ -376,7 +376,7 @@ const q = (e) => {
376
376
  * @see https://tailwindcss.com/docs/aspect-ratio
377
377
  */
378
378
  aspect: [{
379
- aspect: ["auto", "square", Me, N, O, x]
379
+ aspect: ["auto", "square", Me, N, O, v]
380
380
  }],
381
381
  /**
382
382
  * Container
@@ -1776,7 +1776,7 @@ const q = (e) => {
1776
1776
  * @see https://tailwindcss.com/docs/text-shadow
1777
1777
  */
1778
1778
  "text-shadow": [{
1779
- "text-shadow": ["none", g, et, Qe]
1779
+ "text-shadow": ["none", h, et, Qe]
1780
1780
  }],
1781
1781
  /**
1782
1782
  * Text Shadow Color
@@ -2245,7 +2245,7 @@ const q = (e) => {
2245
2245
  * @see https://tailwindcss.com/docs/transition-timing-function
2246
2246
  */
2247
2247
  ease: [{
2248
- ease: ["linear", "initial", v, O, N]
2248
+ ease: ["linear", "initial", y, O, N]
2249
2249
  }],
2250
2250
  /**
2251
2251
  * Transition Delay
@@ -2259,7 +2259,7 @@ const q = (e) => {
2259
2259
  * @see https://tailwindcss.com/docs/animation
2260
2260
  */
2261
2261
  animate: [{
2262
- animate: ["none", y, O, N]
2262
+ animate: ["none", x, O, N]
2263
2263
  }],
2264
2264
  // ------------------
2265
2265
  // --- Transforms ---
@@ -2276,7 +2276,7 @@ const q = (e) => {
2276
2276
  * @see https://tailwindcss.com/docs/perspective
2277
2277
  */
2278
2278
  perspective: [{
2279
- perspective: [h, O, N]
2279
+ perspective: [g, O, N]
2280
2280
  }],
2281
2281
  /**
2282
2282
  * Perspective Origin
@@ -2393,28 +2393,28 @@ const q = (e) => {
2393
2393
  * @see https://tailwindcss.com/docs/translate
2394
2394
  */
2395
2395
  translate: [{
2396
- translate: Q()
2396
+ translate: ee()
2397
2397
  }],
2398
2398
  /**
2399
2399
  * Translate X
2400
2400
  * @see https://tailwindcss.com/docs/translate
2401
2401
  */
2402
2402
  "translate-x": [{
2403
- "translate-x": Q()
2403
+ "translate-x": ee()
2404
2404
  }],
2405
2405
  /**
2406
2406
  * Translate Y
2407
2407
  * @see https://tailwindcss.com/docs/translate
2408
2408
  */
2409
2409
  "translate-y": [{
2410
- "translate-y": Q()
2410
+ "translate-y": ee()
2411
2411
  }],
2412
2412
  /**
2413
2413
  * Translate Z
2414
2414
  * @see https://tailwindcss.com/docs/translate
2415
2415
  */
2416
2416
  "translate-z": [{
2417
- "translate-z": Q()
2417
+ "translate-z": ee()
2418
2418
  }],
2419
2419
  /**
2420
2420
  * Translate None
@@ -2772,7 +2772,7 @@ const q = (e) => {
2772
2772
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
2773
2773
  };
2774
2774
  }, yi = /* @__PURE__ */ Qo(vi);
2775
- function ee(...e) {
2775
+ function Q(...e) {
2776
2776
  return yi(ar(e));
2777
2777
  }
2778
2778
  function me(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
@@ -2811,14 +2811,14 @@ function xr(e, t = []) {
2811
2811
  const a = d.createContext(s), c = n.length;
2812
2812
  n = [...n, s];
2813
2813
  const l = (f) => {
2814
- var v;
2815
- const { scope: g, children: m, ...p } = f, h = ((v = g == null ? void 0 : g[e]) == null ? void 0 : v[c]) || a, x = d.useMemo(() => p, Object.values(p));
2816
- return /* @__PURE__ */ T(h.Provider, { value: x, children: m });
2814
+ var y;
2815
+ const { scope: h, children: m, ...p } = f, g = ((y = h == null ? void 0 : h[e]) == null ? void 0 : y[c]) || a, v = d.useMemo(() => p, Object.values(p));
2816
+ return /* @__PURE__ */ T(g.Provider, { value: v, children: m });
2817
2817
  };
2818
2818
  l.displayName = i + "Provider";
2819
- function u(f, g) {
2820
- var h;
2821
- const m = ((h = g == null ? void 0 : g[e]) == null ? void 0 : h[c]) || a, p = d.useContext(m);
2819
+ function u(f, h) {
2820
+ var g;
2821
+ const m = ((g = h == null ? void 0 : h[e]) == null ? void 0 : g[c]) || a, p = d.useContext(m);
2822
2822
  if (p) return p;
2823
2823
  if (s !== void 0) return s;
2824
2824
  throw new Error(`\`${f}\` must be used within \`${i}\``);
@@ -2930,7 +2930,7 @@ var Ti = [
2930
2930
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
2931
2931
  }, {});
2932
2932
  function Pi(e, t) {
2933
- e && en.flushSync(() => e.dispatchEvent(t));
2933
+ e && tn.flushSync(() => e.dispatchEvent(t));
2934
2934
  }
2935
2935
  function yt(e) {
2936
2936
  const t = d.useRef(e);
@@ -2950,7 +2950,7 @@ function Si(e, t = globalThis == null ? void 0 : globalThis.document) {
2950
2950
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
2951
2951
  }, [n, t]);
2952
2952
  }
2953
- var Ni = "DismissableLayer", Vt = "dismissableLayer.update", Oi = "dismissableLayer.pointerDownOutside", Ii = "dismissableLayer.focusOutside", In, Er = d.createContext({
2953
+ var Ni = "DismissableLayer", Wt = "dismissableLayer.update", Oi = "dismissableLayer.pointerDownOutside", Ii = "dismissableLayer.focusOutside", In, Er = d.createContext({
2954
2954
  layers: /* @__PURE__ */ new Set(),
2955
2955
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
2956
2956
  branches: /* @__PURE__ */ new Set()
@@ -2964,25 +2964,25 @@ var Ni = "DismissableLayer", Vt = "dismissableLayer.update", Oi = "dismissableLa
2964
2964
  onInteractOutside: s,
2965
2965
  onDismiss: a,
2966
2966
  ...c
2967
- } = e, l = d.useContext(Er), [u, f] = d.useState(null), g = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = d.useState({}), p = Ie(t, (k) => f(k)), h = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), v = h.indexOf(x), y = u ? h.indexOf(u) : -1, w = l.layersWithOutsidePointerEventsDisabled.size > 0, b = y >= v, A = Li((k) => {
2967
+ } = e, l = d.useContext(Er), [u, f] = d.useState(null), h = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = d.useState({}), p = Ie(t, (k) => f(k)), g = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(v), x = u ? g.indexOf(u) : -1, w = l.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, A = Li((k) => {
2968
2968
  const R = k.target, M = [...l.branches].some((C) => C.contains(R));
2969
2969
  !b || M || (o == null || o(k), s == null || s(k), k.defaultPrevented || a == null || a());
2970
- }, g), P = _i((k) => {
2970
+ }, h), P = _i((k) => {
2971
2971
  const R = k.target;
2972
2972
  [...l.branches].some((C) => C.contains(R)) || (i == null || i(k), s == null || s(k), k.defaultPrevented || a == null || a());
2973
- }, g);
2973
+ }, h);
2974
2974
  return Si((k) => {
2975
- y === l.layers.size - 1 && (r == null || r(k), !k.defaultPrevented && a && (k.preventDefault(), a()));
2976
- }, g), d.useEffect(() => {
2975
+ x === l.layers.size - 1 && (r == null || r(k), !k.defaultPrevented && a && (k.preventDefault(), a()));
2976
+ }, h), d.useEffect(() => {
2977
2977
  if (u)
2978
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (In = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), Mn(), () => {
2979
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = In);
2978
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (In = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), Mn(), () => {
2979
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = In);
2980
2980
  };
2981
- }, [u, g, n, l]), d.useEffect(() => () => {
2981
+ }, [u, h, n, l]), d.useEffect(() => () => {
2982
2982
  u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), Mn());
2983
2983
  }, [u, l]), d.useEffect(() => {
2984
2984
  const k = () => m({});
2985
- return document.addEventListener(Vt, k), () => document.removeEventListener(Vt, k);
2985
+ return document.addEventListener(Wt, k), () => document.removeEventListener(Wt, k);
2986
2986
  }, []), /* @__PURE__ */ T(
2987
2987
  Ae.div,
2988
2988
  {
@@ -3059,7 +3059,7 @@ function _i(e, t = globalThis == null ? void 0 : globalThis.document) {
3059
3059
  };
3060
3060
  }
3061
3061
  function Mn() {
3062
- const e = new CustomEvent(Vt);
3062
+ const e = new CustomEvent(Wt);
3063
3063
  document.dispatchEvent(e);
3064
3064
  }
3065
3065
  function Rr(e, t, n, { discrete: r }) {
@@ -3084,7 +3084,7 @@ const Fi = ["top", "right", "bottom", "left"], Ce = Math.min, te = Math.max, lt
3084
3084
  bottom: "top",
3085
3085
  top: "bottom"
3086
3086
  };
3087
- function Wt(e, t, n) {
3087
+ function Ht(e, t, n) {
3088
3088
  return te(e, Ce(t, n));
3089
3089
  }
3090
3090
  function ve(e, t) {
@@ -3096,30 +3096,30 @@ function ye(e) {
3096
3096
  function Fe(e) {
3097
3097
  return e.split("-")[1];
3098
3098
  }
3099
- function nn(e) {
3099
+ function rn(e) {
3100
3100
  return e === "x" ? "y" : "x";
3101
3101
  }
3102
- function rn(e) {
3102
+ function on(e) {
3103
3103
  return e === "y" ? "height" : "width";
3104
3104
  }
3105
3105
  function le(e) {
3106
3106
  const t = e[0];
3107
3107
  return t === "t" || t === "b" ? "y" : "x";
3108
3108
  }
3109
- function on(e) {
3110
- return nn(le(e));
3109
+ function sn(e) {
3110
+ return rn(le(e));
3111
3111
  }
3112
3112
  function Wi(e, t, n) {
3113
3113
  n === void 0 && (n = !1);
3114
- const r = Fe(e), o = on(e), i = rn(o);
3114
+ const r = Fe(e), o = sn(e), i = on(o);
3115
3115
  let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
3116
3116
  return t.reference[i] > t.floating[i] && (s = ut(s)), [s, ut(s)];
3117
3117
  }
3118
3118
  function Hi(e) {
3119
3119
  const t = ut(e);
3120
- return [Ht(e), t, Ht(t)];
3120
+ return [Ut(e), t, Ut(t)];
3121
3121
  }
3122
- function Ht(e) {
3122
+ function Ut(e) {
3123
3123
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
3124
3124
  }
3125
3125
  const Dn = ["left", "right"], Ln = ["right", "left"], Ui = ["top", "bottom"], ji = ["bottom", "top"];
@@ -3138,7 +3138,7 @@ function Gi(e, t, n) {
3138
3138
  function Ki(e, t, n, r) {
3139
3139
  const o = Fe(e);
3140
3140
  let i = Gi(ye(e), n === "start", r);
3141
- return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ht)))), i;
3141
+ return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ut)))), i;
3142
3142
  }
3143
3143
  function ut(e) {
3144
3144
  const t = ye(e);
@@ -3184,7 +3184,7 @@ function _n(e, t, n) {
3184
3184
  reference: r,
3185
3185
  floating: o
3186
3186
  } = e;
3187
- const i = le(t), s = on(t), a = rn(s), c = ye(t), l = i === "y", u = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, g = r[a] / 2 - o[a] / 2;
3187
+ const i = le(t), s = sn(t), a = on(s), c = ye(t), l = i === "y", u = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, h = r[a] / 2 - o[a] / 2;
3188
3188
  let m;
3189
3189
  switch (c) {
3190
3190
  case "top":
@@ -3219,10 +3219,10 @@ function _n(e, t, n) {
3219
3219
  }
3220
3220
  switch (Fe(t)) {
3221
3221
  case "start":
3222
- m[s] -= g * (n && l ? -1 : 1);
3222
+ m[s] -= h * (n && l ? -1 : 1);
3223
3223
  break;
3224
3224
  case "end":
3225
- m[s] += g * (n && l ? -1 : 1);
3225
+ m[s] += h * (n && l ? -1 : 1);
3226
3226
  break;
3227
3227
  }
3228
3228
  return m;
@@ -3241,14 +3241,14 @@ async function qi(e, t) {
3241
3241
  boundary: l = "clippingAncestors",
3242
3242
  rootBoundary: u = "viewport",
3243
3243
  elementContext: f = "floating",
3244
- altBoundary: g = !1,
3244
+ altBoundary: h = !1,
3245
3245
  padding: m = 0
3246
- } = ve(t, e), p = Ar(m), x = a[g ? f === "floating" ? "reference" : "floating" : f], v = dt(await i.getClippingRect({
3247
- element: (n = await (i.isElement == null ? void 0 : i.isElement(x))) == null || n ? x : x.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
3246
+ } = ve(t, e), p = Ar(m), v = a[h ? f === "floating" ? "reference" : "floating" : f], y = dt(await i.getClippingRect({
3247
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
3248
3248
  boundary: l,
3249
3249
  rootBoundary: u,
3250
3250
  strategy: c
3251
- })), y = f === "floating" ? {
3251
+ })), x = f === "floating" ? {
3252
3252
  x: r,
3253
3253
  y: o,
3254
3254
  width: s.floating.width,
@@ -3261,15 +3261,15 @@ async function qi(e, t) {
3261
3261
  y: 1
3262
3262
  }, A = dt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
3263
3263
  elements: a,
3264
- rect: y,
3264
+ rect: x,
3265
3265
  offsetParent: w,
3266
3266
  strategy: c
3267
- }) : y);
3267
+ }) : x);
3268
3268
  return {
3269
- top: (v.top - A.top + p.top) / b.y,
3270
- bottom: (A.bottom - v.bottom + p.bottom) / b.y,
3271
- left: (v.left - A.left + p.left) / b.x,
3272
- right: (A.right - v.right + p.right) / b.x
3269
+ top: (y.top - A.top + p.top) / b.y,
3270
+ bottom: (A.bottom - y.bottom + p.bottom) / b.y,
3271
+ left: (y.left - A.left + p.left) / b.x,
3272
+ right: (A.right - y.right + p.right) / b.x
3273
3273
  };
3274
3274
  }
3275
3275
  const Xi = 50, Zi = async (e, t, n) => {
@@ -3289,25 +3289,25 @@ const Xi = 50, Zi = async (e, t, n) => {
3289
3289
  }), {
3290
3290
  x: u,
3291
3291
  y: f
3292
- } = _n(l, r, c), g = r, m = 0;
3292
+ } = _n(l, r, c), h = r, m = 0;
3293
3293
  const p = {};
3294
- for (let h = 0; h < i.length; h++) {
3295
- const x = i[h];
3296
- if (!x)
3294
+ for (let g = 0; g < i.length; g++) {
3295
+ const v = i[g];
3296
+ if (!v)
3297
3297
  continue;
3298
3298
  const {
3299
- name: v,
3300
- fn: y
3301
- } = x, {
3299
+ name: y,
3300
+ fn: x
3301
+ } = v, {
3302
3302
  x: w,
3303
3303
  y: b,
3304
3304
  data: A,
3305
3305
  reset: P
3306
- } = await y({
3306
+ } = await x({
3307
3307
  x: u,
3308
3308
  y: f,
3309
3309
  initialPlacement: r,
3310
- placement: g,
3310
+ placement: h,
3311
3311
  strategy: o,
3312
3312
  middlewareData: p,
3313
3313
  rects: l,
@@ -3317,22 +3317,22 @@ const Xi = 50, Zi = async (e, t, n) => {
3317
3317
  floating: t
3318
3318
  }
3319
3319
  });
3320
- u = w ?? u, f = b ?? f, p[v] = {
3321
- ...p[v],
3320
+ u = w ?? u, f = b ?? f, p[y] = {
3321
+ ...p[y],
3322
3322
  ...A
3323
- }, P && m < Xi && (m++, typeof P == "object" && (P.placement && (g = P.placement), P.rects && (l = P.rects === !0 ? await s.getElementRects({
3323
+ }, P && m < Xi && (m++, typeof P == "object" && (P.placement && (h = P.placement), P.rects && (l = P.rects === !0 ? await s.getElementRects({
3324
3324
  reference: e,
3325
3325
  floating: t,
3326
3326
  strategy: o
3327
3327
  }) : P.rects), {
3328
3328
  x: u,
3329
3329
  y: f
3330
- } = _n(l, g, c)), h = -1);
3330
+ } = _n(l, h, c)), g = -1);
3331
3331
  }
3332
3332
  return {
3333
3333
  x: u,
3334
3334
  y: f,
3335
- placement: g,
3335
+ placement: h,
3336
3336
  strategy: o,
3337
3337
  middlewareData: p
3338
3338
  };
@@ -3354,15 +3354,15 @@ const Xi = 50, Zi = async (e, t, n) => {
3354
3354
  } = ve(e, t) || {};
3355
3355
  if (l == null)
3356
3356
  return {};
3357
- const f = Ar(u), g = {
3357
+ const f = Ar(u), h = {
3358
3358
  x: n,
3359
3359
  y: r
3360
- }, m = on(o), p = rn(m), h = await s.getDimensions(l), x = m === "y", v = x ? "top" : "left", y = x ? "bottom" : "right", w = x ? "clientHeight" : "clientWidth", b = i.reference[p] + i.reference[m] - g[m] - i.floating[p], A = g[m] - i.reference[m], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
3360
+ }, m = sn(o), p = on(m), g = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", x = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", b = i.reference[p] + i.reference[m] - h[m] - i.floating[p], A = h[m] - i.reference[m], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
3361
3361
  let k = P ? P[w] : 0;
3362
3362
  (!k || !await (s.isElement == null ? void 0 : s.isElement(P))) && (k = a.floating[w] || i.floating[p]);
3363
- const R = b / 2 - A / 2, M = k / 2 - h[p] / 2 - 1, C = Ce(f[v], M), S = Ce(f[y], M), I = C, z = k - h[p] - S, L = k / 2 - h[p] / 2 + R, H = Wt(I, L, z), D = !c.arrow && Fe(o) != null && L !== H && i.reference[p] / 2 - (L < I ? C : S) - h[p] / 2 < 0, V = D ? L < I ? L - I : L - z : 0;
3363
+ const R = b / 2 - A / 2, M = k / 2 - g[p] / 2 - 1, C = Ce(f[y], M), S = Ce(f[x], M), I = C, z = k - g[p] - S, L = k / 2 - g[p] / 2 + R, H = Ht(I, L, z), D = !c.arrow && Fe(o) != null && L !== H && i.reference[p] / 2 - (L < I ? C : S) - g[p] / 2 < 0, V = D ? L < I ? L - I : L - z : 0;
3364
3364
  return {
3365
- [m]: g[m] + V,
3365
+ [m]: h[m] + V,
3366
3366
  data: {
3367
3367
  [m]: H,
3368
3368
  centerOffset: L - H - V,
@@ -3389,19 +3389,19 @@ const Xi = 50, Zi = async (e, t, n) => {
3389
3389
  } = t, {
3390
3390
  mainAxis: u = !0,
3391
3391
  crossAxis: f = !0,
3392
- fallbackPlacements: g,
3392
+ fallbackPlacements: h,
3393
3393
  fallbackStrategy: m = "bestFit",
3394
3394
  fallbackAxisSideDirection: p = "none",
3395
- flipAlignment: h = !0,
3396
- ...x
3395
+ flipAlignment: g = !0,
3396
+ ...v
3397
3397
  } = ve(e, t);
3398
3398
  if ((n = i.arrow) != null && n.alignmentOffset)
3399
3399
  return {};
3400
- const v = ye(o), y = le(a), w = ye(a) === a, b = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), A = g || (w || !h ? [ut(a)] : Hi(a)), P = p !== "none";
3401
- !g && P && A.push(...Ki(a, h, p, b));
3402
- const k = [a, ...A], R = await c.detectOverflow(t, x), M = [];
3400
+ const y = ye(o), x = le(a), w = ye(a) === a, b = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), A = h || (w || !g ? [ut(a)] : Hi(a)), P = p !== "none";
3401
+ !h && P && A.push(...Ki(a, g, p, b));
3402
+ const k = [a, ...A], R = await c.detectOverflow(t, v), M = [];
3403
3403
  let C = ((r = i.flip) == null ? void 0 : r.overflows) || [];
3404
- if (u && M.push(R[v]), f) {
3404
+ if (u && M.push(R[y]), f) {
3405
3405
  const L = Wi(o, s, b);
3406
3406
  M.push(R[L[0]], R[L[1]]);
3407
3407
  }
@@ -3411,9 +3411,9 @@ const Xi = 50, Zi = async (e, t, n) => {
3411
3411
  }], !M.every((L) => L <= 0)) {
3412
3412
  var S, I;
3413
3413
  const L = (((S = i.flip) == null ? void 0 : S.index) || 0) + 1, H = k[L];
3414
- if (H && (!(f === "alignment" ? y !== le(H) : !1) || // We leave the current main axis only if every placement on that axis
3414
+ if (H && (!(f === "alignment" ? x !== le(H) : !1) || // We leave the current main axis only if every placement on that axis
3415
3415
  // overflows the main axis.
3416
- C.every((E) => le(E.placement) === y ? E.overflows[0] > 0 : !0)))
3416
+ C.every((E) => le(E.placement) === x ? E.overflows[0] > 0 : !0)))
3417
3417
  return {
3418
3418
  data: {
3419
3419
  index: L,
@@ -3431,7 +3431,7 @@ const Xi = 50, Zi = async (e, t, n) => {
3431
3431
  const V = (z = C.filter((E) => {
3432
3432
  if (P) {
3433
3433
  const _ = le(E.placement);
3434
- return _ === y || // Create a bias to the `y` side axis due to horizontal
3434
+ return _ === x || // Create a bias to the `y` side axis due to horizontal
3435
3435
  // reading directions favoring greater width.
3436
3436
  _ === "y";
3437
3437
  }
@@ -3516,7 +3516,7 @@ async function ts(e, t) {
3516
3516
  elements: o
3517
3517
  } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = ye(n), a = Fe(n), c = le(n) === "y", l = kr.has(s) ? -1 : 1, u = i && c ? -1 : 1, f = ve(t, e);
3518
3518
  let {
3519
- mainAxis: g,
3519
+ mainAxis: h,
3520
3520
  crossAxis: m,
3521
3521
  alignmentAxis: p
3522
3522
  } = typeof f == "number" ? {
@@ -3530,9 +3530,9 @@ async function ts(e, t) {
3530
3530
  };
3531
3531
  return a && typeof p == "number" && (m = a === "end" ? p * -1 : p), c ? {
3532
3532
  x: m * u,
3533
- y: g * l
3533
+ y: h * l
3534
3534
  } : {
3535
- x: g * l,
3535
+ x: h * l,
3536
3536
  y: m * u
3537
3537
  };
3538
3538
  }
@@ -3572,13 +3572,13 @@ const ns = function(e) {
3572
3572
  mainAxis: s = !0,
3573
3573
  crossAxis: a = !1,
3574
3574
  limiter: c = {
3575
- fn: (v) => {
3575
+ fn: (y) => {
3576
3576
  let {
3577
- x: y,
3577
+ x,
3578
3578
  y: w
3579
- } = v;
3579
+ } = y;
3580
3580
  return {
3581
- x: y,
3581
+ x,
3582
3582
  y: w
3583
3583
  };
3584
3584
  }
@@ -3587,29 +3587,29 @@ const ns = function(e) {
3587
3587
  } = ve(e, t), u = {
3588
3588
  x: n,
3589
3589
  y: r
3590
- }, f = await i.detectOverflow(t, l), g = le(ye(o)), m = nn(g);
3591
- let p = u[m], h = u[g];
3590
+ }, f = await i.detectOverflow(t, l), h = le(ye(o)), m = rn(h);
3591
+ let p = u[m], g = u[h];
3592
3592
  if (s) {
3593
- const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", w = p + f[v], b = p - f[y];
3594
- p = Wt(w, p, b);
3593
+ const y = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", w = p + f[y], b = p - f[x];
3594
+ p = Ht(w, p, b);
3595
3595
  }
3596
3596
  if (a) {
3597
- const v = g === "y" ? "top" : "left", y = g === "y" ? "bottom" : "right", w = h + f[v], b = h - f[y];
3598
- h = Wt(w, h, b);
3597
+ const y = h === "y" ? "top" : "left", x = h === "y" ? "bottom" : "right", w = g + f[y], b = g - f[x];
3598
+ g = Ht(w, g, b);
3599
3599
  }
3600
- const x = c.fn({
3600
+ const v = c.fn({
3601
3601
  ...t,
3602
3602
  [m]: p,
3603
- [g]: h
3603
+ [h]: g
3604
3604
  });
3605
3605
  return {
3606
- ...x,
3606
+ ...v,
3607
3607
  data: {
3608
- x: x.x - n,
3609
- y: x.y - r,
3608
+ x: v.x - n,
3609
+ y: v.y - r,
3610
3610
  enabled: {
3611
3611
  [m]: s,
3612
- [g]: a
3612
+ [h]: a
3613
3613
  }
3614
3614
  }
3615
3615
  };
@@ -3632,27 +3632,27 @@ const ns = function(e) {
3632
3632
  } = ve(e, t), u = {
3633
3633
  x: n,
3634
3634
  y: r
3635
- }, f = le(o), g = nn(f);
3636
- let m = u[g], p = u[f];
3637
- const h = ve(a, t), x = typeof h == "number" ? {
3638
- mainAxis: h,
3635
+ }, f = le(o), h = rn(f);
3636
+ let m = u[h], p = u[f];
3637
+ const g = ve(a, t), v = typeof g == "number" ? {
3638
+ mainAxis: g,
3639
3639
  crossAxis: 0
3640
3640
  } : {
3641
3641
  mainAxis: 0,
3642
3642
  crossAxis: 0,
3643
- ...h
3643
+ ...g
3644
3644
  };
3645
3645
  if (c) {
3646
- const w = g === "y" ? "height" : "width", b = i.reference[g] - i.floating[w] + x.mainAxis, A = i.reference[g] + i.reference[w] - x.mainAxis;
3646
+ const w = h === "y" ? "height" : "width", b = i.reference[h] - i.floating[w] + v.mainAxis, A = i.reference[h] + i.reference[w] - v.mainAxis;
3647
3647
  m < b ? m = b : m > A && (m = A);
3648
3648
  }
3649
3649
  if (l) {
3650
- var v, y;
3651
- const w = g === "y" ? "width" : "height", b = kr.has(ye(o)), A = i.reference[f] - i.floating[w] + (b && ((v = s.offset) == null ? void 0 : v[f]) || 0) + (b ? 0 : x.crossAxis), P = i.reference[f] + i.reference[w] + (b ? 0 : ((y = s.offset) == null ? void 0 : y[f]) || 0) - (b ? x.crossAxis : 0);
3650
+ var y, x;
3651
+ const w = h === "y" ? "width" : "height", b = kr.has(ye(o)), A = i.reference[f] - i.floating[w] + (b && ((y = s.offset) == null ? void 0 : y[f]) || 0) + (b ? 0 : v.crossAxis), P = i.reference[f] + i.reference[w] + (b ? 0 : ((x = s.offset) == null ? void 0 : x[f]) || 0) - (b ? v.crossAxis : 0);
3652
3652
  p < A ? p = A : p > P && (p = P);
3653
3653
  }
3654
3654
  return {
3655
- [g]: m,
3655
+ [h]: m,
3656
3656
  [f]: p
3657
3657
  };
3658
3658
  }
@@ -3672,17 +3672,17 @@ const ns = function(e) {
3672
3672
  apply: c = () => {
3673
3673
  },
3674
3674
  ...l
3675
- } = ve(e, t), u = await s.detectOverflow(t, l), f = ye(o), g = Fe(o), m = le(o) === "y", {
3675
+ } = ve(e, t), u = await s.detectOverflow(t, l), f = ye(o), h = Fe(o), m = le(o) === "y", {
3676
3676
  width: p,
3677
- height: h
3677
+ height: g
3678
3678
  } = i.floating;
3679
- let x, v;
3680
- f === "top" || f === "bottom" ? (x = f, v = g === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (v = f, x = g === "end" ? "top" : "bottom");
3681
- const y = h - u.top - u.bottom, w = p - u.left - u.right, b = Ce(h - u[x], y), A = Ce(p - u[v], w), P = !t.middlewareData.shift;
3679
+ let v, y;
3680
+ f === "top" || f === "bottom" ? (v = f, y = h === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = f, v = h === "end" ? "top" : "bottom");
3681
+ const x = g - u.top - u.bottom, w = p - u.left - u.right, b = Ce(g - u[v], x), A = Ce(p - u[y], w), P = !t.middlewareData.shift;
3682
3682
  let k = b, R = A;
3683
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = w), (r = t.middlewareData.shift) != null && r.enabled.y && (k = y), P && !g) {
3683
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = w), (r = t.middlewareData.shift) != null && r.enabled.y && (k = x), P && !h) {
3684
3684
  const C = te(u.left, 0), S = te(u.right, 0), I = te(u.top, 0), z = te(u.bottom, 0);
3685
- m ? R = p - 2 * (C !== 0 || S !== 0 ? C + S : te(u.left, u.right)) : k = h - 2 * (I !== 0 || z !== 0 ? I + z : te(u.top, u.bottom));
3685
+ m ? R = p - 2 * (C !== 0 || S !== 0 ? C + S : te(u.left, u.right)) : k = g - 2 * (I !== 0 || z !== 0 ? I + z : te(u.top, u.bottom));
3686
3686
  }
3687
3687
  await c({
3688
3688
  ...t,
@@ -3690,7 +3690,7 @@ const ns = function(e) {
3690
3690
  availableHeight: k
3691
3691
  });
3692
3692
  const M = await s.getDimensions(a.floating);
3693
- return p !== M.width || h !== M.height ? {
3693
+ return p !== M.width || g !== M.height ? {
3694
3694
  reset: {
3695
3695
  rects: !0
3696
3696
  }
@@ -3721,7 +3721,7 @@ function se(e) {
3721
3721
  function ie(e) {
3722
3722
  return xt() ? e instanceof HTMLElement || e instanceof ne(e).HTMLElement : !1;
3723
3723
  }
3724
- function Ut(e) {
3724
+ function jt(e) {
3725
3725
  return !xt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ne(e).ShadowRoot;
3726
3726
  }
3727
3727
  function Xe(e) {
@@ -3750,14 +3750,14 @@ function wt(e) {
3750
3750
  }
3751
3751
  const as = /transform|translate|scale|rotate|perspective|filter/, cs = /paint|layout|strict|content/, Se = (e) => !!e && e !== "none";
3752
3752
  let Mt;
3753
- function sn(e) {
3753
+ function an(e) {
3754
3754
  const t = se(e) ? oe(e) : e;
3755
- return Se(t.transform) || Se(t.translate) || Se(t.scale) || Se(t.rotate) || Se(t.perspective) || !an() && (Se(t.backdropFilter) || Se(t.filter)) || as.test(t.willChange || "") || cs.test(t.contain || "");
3755
+ return Se(t.transform) || Se(t.translate) || Se(t.scale) || Se(t.rotate) || Se(t.perspective) || !cn() && (Se(t.backdropFilter) || Se(t.filter)) || as.test(t.willChange || "") || cs.test(t.contain || "");
3756
3756
  }
3757
3757
  function ls(e) {
3758
3758
  let t = Re(e);
3759
3759
  for (; ie(t) && !Le(t); ) {
3760
- if (sn(t))
3760
+ if (an(t))
3761
3761
  return t;
3762
3762
  if (wt(t))
3763
3763
  return null;
@@ -3765,7 +3765,7 @@ function ls(e) {
3765
3765
  }
3766
3766
  return null;
3767
3767
  }
3768
- function an() {
3768
+ function cn() {
3769
3769
  return Mt == null && (Mt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Mt;
3770
3770
  }
3771
3771
  function Le(e) {
@@ -3790,10 +3790,10 @@ function Re(e) {
3790
3790
  // Step into the shadow DOM of the parent of a slotted node.
3791
3791
  e.assignedSlot || // DOM Element detected.
3792
3792
  e.parentNode || // ShadowRoot detected.
3793
- Ut(e) && e.host || // Fallback.
3793
+ jt(e) && e.host || // Fallback.
3794
3794
  de(e)
3795
3795
  );
3796
- return Ut(t) ? t.host : t;
3796
+ return jt(t) ? t.host : t;
3797
3797
  }
3798
3798
  function Pr(e) {
3799
3799
  const t = Re(e);
@@ -3804,12 +3804,12 @@ function Ke(e, t, n) {
3804
3804
  t === void 0 && (t = []), n === void 0 && (n = !0);
3805
3805
  const o = Pr(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = ne(o);
3806
3806
  if (i) {
3807
- const a = jt(s);
3807
+ const a = Gt(s);
3808
3808
  return t.concat(s, s.visualViewport || [], Xe(o) ? o : [], a && n ? Ke(a) : []);
3809
3809
  } else
3810
3810
  return t.concat(o, Ke(o, [], n));
3811
3811
  }
3812
- function jt(e) {
3812
+ function Gt(e) {
3813
3813
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
3814
3814
  }
3815
3815
  function Sr(e) {
@@ -3822,11 +3822,11 @@ function Sr(e) {
3822
3822
  $: a
3823
3823
  };
3824
3824
  }
3825
- function cn(e) {
3825
+ function ln(e) {
3826
3826
  return se(e) ? e : e.contextElement;
3827
3827
  }
3828
3828
  function De(e) {
3829
- const t = cn(e);
3829
+ const t = ln(e);
3830
3830
  if (!ie(t))
3831
3831
  return ue(1);
3832
3832
  const n = t.getBoundingClientRect(), {
@@ -3843,7 +3843,7 @@ function De(e) {
3843
3843
  const us = /* @__PURE__ */ ue(0);
3844
3844
  function Nr(e) {
3845
3845
  const t = ne(e);
3846
- return !an() || !t.visualViewport ? us : {
3846
+ return !cn() || !t.visualViewport ? us : {
3847
3847
  x: t.visualViewport.offsetLeft,
3848
3848
  y: t.visualViewport.offsetTop
3849
3849
  };
@@ -3853,17 +3853,17 @@ function ds(e, t, n) {
3853
3853
  }
3854
3854
  function Oe(e, t, n, r) {
3855
3855
  t === void 0 && (t = !1), n === void 0 && (n = !1);
3856
- const o = e.getBoundingClientRect(), i = cn(e);
3856
+ const o = e.getBoundingClientRect(), i = ln(e);
3857
3857
  let s = ue(1);
3858
3858
  t && (r ? se(r) && (s = De(r)) : s = De(e));
3859
3859
  const a = ds(i, n, r) ? Nr(i) : ue(0);
3860
3860
  let c = (o.left + a.x) / s.x, l = (o.top + a.y) / s.y, u = o.width / s.x, f = o.height / s.y;
3861
3861
  if (i) {
3862
- const g = ne(i), m = r && se(r) ? ne(r) : r;
3863
- let p = g, h = jt(p);
3864
- for (; h && r && m !== p; ) {
3865
- const x = De(h), v = h.getBoundingClientRect(), y = oe(h), w = v.left + (h.clientLeft + parseFloat(y.paddingLeft)) * x.x, b = v.top + (h.clientTop + parseFloat(y.paddingTop)) * x.y;
3866
- c *= x.x, l *= x.y, u *= x.x, f *= x.y, c += w, l += b, p = ne(h), h = jt(p);
3862
+ const h = ne(i), m = r && se(r) ? ne(r) : r;
3863
+ let p = h, g = Gt(p);
3864
+ for (; g && r && m !== p; ) {
3865
+ const v = De(g), y = g.getBoundingClientRect(), x = oe(g), w = y.left + (g.clientLeft + parseFloat(x.paddingLeft)) * v.x, b = y.top + (g.clientTop + parseFloat(x.paddingTop)) * v.y;
3866
+ c *= v.x, l *= v.y, u *= v.x, f *= v.y, c += w, l += b, p = ne(g), g = Gt(p);
3867
3867
  }
3868
3868
  }
3869
3869
  return dt({
@@ -3903,12 +3903,12 @@ function fs(e) {
3903
3903
  const m = Oe(r);
3904
3904
  l = De(r), u.x = m.x + r.clientLeft, u.y = m.y + r.clientTop;
3905
3905
  }
3906
- const g = s && !f && !i ? Or(s, c) : ue(0);
3906
+ const h = s && !f && !i ? Or(s, c) : ue(0);
3907
3907
  return {
3908
3908
  width: n.width * l.x,
3909
3909
  height: n.height * l.y,
3910
- x: n.x * l.x - c.scrollLeft * l.x + u.x + g.x,
3911
- y: n.y * l.y - c.scrollTop * l.y + u.y + g.y
3910
+ x: n.x * l.x - c.scrollLeft * l.x + u.x + h.x,
3911
+ y: n.y * l.y - c.scrollTop * l.y + u.y + h.y
3912
3912
  };
3913
3913
  }
3914
3914
  function ps(e) {
@@ -3931,12 +3931,12 @@ function gs(e, t) {
3931
3931
  let i = r.clientWidth, s = r.clientHeight, a = 0, c = 0;
3932
3932
  if (o) {
3933
3933
  i = o.width, s = o.height;
3934
- const u = an();
3934
+ const u = cn();
3935
3935
  (!u || u && t === "fixed") && (a = o.offsetLeft, c = o.offsetTop);
3936
3936
  }
3937
3937
  const l = Ct(r);
3938
3938
  if (l <= 0) {
3939
- const u = r.ownerDocument, f = u.body, g = getComputedStyle(f), m = u.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, p = Math.abs(r.clientWidth - f.clientWidth - m);
3939
+ const u = r.ownerDocument, f = u.body, h = getComputedStyle(f), m = u.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, p = Math.abs(r.clientWidth - f.clientWidth - m);
3940
3940
  p <= Bn && (i -= p);
3941
3941
  } else l <= Bn && (i += l);
3942
3942
  return {
@@ -3986,7 +3986,7 @@ function bs(e, t) {
3986
3986
  const i = oe(e).position === "fixed";
3987
3987
  let s = i ? Re(e) : e;
3988
3988
  for (; se(s) && !Le(s); ) {
3989
- const a = oe(s), c = sn(s);
3989
+ const a = oe(s), c = an(s);
3990
3990
  !c && a.position === "fixed" && (o = null), (i ? !c && !o : !c && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || Xe(s) && !c && Ir(e, s)) ? r = r.filter((u) => u !== s) : o = a, s = Re(s);
3991
3991
  }
3992
3992
  return t.set(e, r), r;
@@ -4000,8 +4000,8 @@ function vs(e) {
4000
4000
  } = e;
4001
4001
  const s = [...n === "clippingAncestors" ? wt(t) ? [] : bs(t, this._c) : [].concat(n), r], a = Fn(t, s[0], o);
4002
4002
  let c = a.top, l = a.right, u = a.bottom, f = a.left;
4003
- for (let g = 1; g < s.length; g++) {
4004
- const m = Fn(t, s[g], o);
4003
+ for (let h = 1; h < s.length; h++) {
4004
+ const m = Fn(t, s[h], o);
4005
4005
  c = te(m.top, c), l = Ce(m.right, l), u = Ce(m.bottom, u), f = te(m.left, f);
4006
4006
  }
4007
4007
  return {
@@ -4037,10 +4037,10 @@ function xs(e, t, n) {
4037
4037
  c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
4038
4038
  } else o && l();
4039
4039
  i && !r && o && l();
4040
- const u = o && !r && !i ? Or(o, a) : ue(0), f = s.left + a.scrollLeft - c.x - u.x, g = s.top + a.scrollTop - c.y - u.y;
4040
+ const u = o && !r && !i ? Or(o, a) : ue(0), f = s.left + a.scrollLeft - c.x - u.x, h = s.top + a.scrollTop - c.y - u.y;
4041
4041
  return {
4042
4042
  x: f,
4043
- y: g,
4043
+ y: h,
4044
4044
  width: s.width,
4045
4045
  height: s.height
4046
4046
  };
@@ -4072,7 +4072,7 @@ function Mr(e, t) {
4072
4072
  let r = Vn(e, t);
4073
4073
  for (; r && ss(r) && Dt(r); )
4074
4074
  r = Vn(r, t);
4075
- return r && Le(r) && Dt(r) && !sn(r) ? n : r || ls(e) || n;
4075
+ return r && Le(r) && Dt(r) && !an(r) ? n : r || ls(e) || n;
4076
4076
  }
4077
4077
  const ws = async function(e) {
4078
4078
  const t = this.getOffsetParent || Mr, n = this.getDimensions, r = await n(e.floating);
@@ -4116,13 +4116,13 @@ function Rs(e, t) {
4116
4116
  const l = e.getBoundingClientRect(), {
4117
4117
  left: u,
4118
4118
  top: f,
4119
- width: g,
4119
+ width: h,
4120
4120
  height: m
4121
4121
  } = l;
4122
- if (a || t(), !g || !m)
4122
+ if (a || t(), !h || !m)
4123
4123
  return;
4124
- const p = tt(f), h = tt(o.clientWidth - (u + g)), x = tt(o.clientHeight - (f + m)), v = tt(u), w = {
4125
- rootMargin: -p + "px " + -h + "px " + -x + "px " + -v + "px",
4124
+ const p = tt(f), g = tt(o.clientWidth - (u + h)), v = tt(o.clientHeight - (f + m)), y = tt(u), w = {
4125
+ rootMargin: -p + "px " + -g + "px " + -v + "px " + -y + "px",
4126
4126
  threshold: te(0, Ce(1, c)) || 1
4127
4127
  };
4128
4128
  let b = !0;
@@ -4158,32 +4158,32 @@ function As(e, t, n, r) {
4158
4158
  elementResize: s = typeof ResizeObserver == "function",
4159
4159
  layoutShift: a = typeof IntersectionObserver == "function",
4160
4160
  animationFrame: c = !1
4161
- } = r, l = cn(e), u = o || i ? [...l ? Ke(l) : [], ...t ? Ke(t) : []] : [];
4162
- u.forEach((v) => {
4163
- o && v.addEventListener("scroll", n, {
4161
+ } = r, l = ln(e), u = o || i ? [...l ? Ke(l) : [], ...t ? Ke(t) : []] : [];
4162
+ u.forEach((y) => {
4163
+ o && y.addEventListener("scroll", n, {
4164
4164
  passive: !0
4165
- }), i && v.addEventListener("resize", n);
4165
+ }), i && y.addEventListener("resize", n);
4166
4166
  });
4167
4167
  const f = l && a ? Rs(l, n) : null;
4168
- let g = -1, m = null;
4169
- s && (m = new ResizeObserver((v) => {
4170
- let [y] = v;
4171
- y && y.target === l && m && t && (m.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
4168
+ let h = -1, m = null;
4169
+ s && (m = new ResizeObserver((y) => {
4170
+ let [x] = y;
4171
+ x && x.target === l && m && t && (m.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
4172
4172
  var w;
4173
4173
  (w = m) == null || w.observe(t);
4174
4174
  })), n();
4175
4175
  }), l && !c && m.observe(l), t && m.observe(t));
4176
- let p, h = c ? Oe(e) : null;
4177
- c && x();
4178
- function x() {
4179
- const v = Oe(e);
4180
- h && !Dr(h, v) && n(), h = v, p = requestAnimationFrame(x);
4176
+ let p, g = c ? Oe(e) : null;
4177
+ c && v();
4178
+ function v() {
4179
+ const y = Oe(e);
4180
+ g && !Dr(g, y) && n(), g = y, p = requestAnimationFrame(v);
4181
4181
  }
4182
4182
  return n(), () => {
4183
- var v;
4184
- u.forEach((y) => {
4185
- o && y.removeEventListener("scroll", n), i && y.removeEventListener("resize", n);
4186
- }), f == null || f(), (v = m) == null || v.disconnect(), m = null, c && cancelAnimationFrame(p);
4183
+ var y;
4184
+ u.forEach((x) => {
4185
+ o && x.removeEventListener("scroll", n), i && x.removeEventListener("resize", n);
4186
+ }), f == null || f(), (y = m) == null || y.disconnect(), m = null, c && cancelAnimationFrame(p);
4187
4187
  };
4188
4188
  }
4189
4189
  const ks = ns, Ts = rs, Ps = Qi, Ss = is, Ns = es, Wn = Ji, Os = os, Is = (e, t, n) => {
@@ -4265,19 +4265,19 @@ function Ls(e) {
4265
4265
  placement: t,
4266
4266
  middlewareData: {},
4267
4267
  isPositioned: !1
4268
- }), [g, m] = d.useState(r);
4269
- ft(g, r) || m(r);
4270
- const [p, h] = d.useState(null), [x, v] = d.useState(null), y = d.useCallback((E) => {
4271
- E !== P.current && (P.current = E, h(E));
4268
+ }), [h, m] = d.useState(r);
4269
+ ft(h, r) || m(r);
4270
+ const [p, g] = d.useState(null), [v, y] = d.useState(null), x = d.useCallback((E) => {
4271
+ E !== P.current && (P.current = E, g(E));
4272
4272
  }, []), w = d.useCallback((E) => {
4273
- E !== k.current && (k.current = E, v(E));
4274
- }, []), b = i || p, A = s || x, P = d.useRef(null), k = d.useRef(null), R = d.useRef(u), M = c != null, C = Lt(c), S = Lt(o), I = Lt(l), z = d.useCallback(() => {
4273
+ E !== k.current && (k.current = E, y(E));
4274
+ }, []), b = i || p, A = s || v, P = d.useRef(null), k = d.useRef(null), R = d.useRef(u), M = c != null, C = Lt(c), S = Lt(o), I = Lt(l), z = d.useCallback(() => {
4275
4275
  if (!P.current || !k.current)
4276
4276
  return;
4277
4277
  const E = {
4278
4278
  placement: t,
4279
4279
  strategy: n,
4280
- middleware: g
4280
+ middleware: h
4281
4281
  };
4282
4282
  S.current && (E.platform = S.current), Is(P.current, k.current, E).then((_) => {
4283
4283
  const K = {
@@ -4288,11 +4288,11 @@ function Ls(e) {
4288
4288
  // setting it to `true` when `open === false` (must be specified).
4289
4289
  isPositioned: I.current !== !1
4290
4290
  };
4291
- L.current && !ft(R.current, K) && (R.current = K, en.flushSync(() => {
4291
+ L.current && !ft(R.current, K) && (R.current = K, tn.flushSync(() => {
4292
4292
  f(K);
4293
4293
  }));
4294
4294
  });
4295
- }, [g, t, n, S, I]);
4295
+ }, [h, t, n, S, I]);
4296
4296
  at(() => {
4297
4297
  l === !1 && R.current.isPositioned && (R.current.isPositioned = !1, f((E) => ({
4298
4298
  ...E,
@@ -4312,9 +4312,9 @@ function Ls(e) {
4312
4312
  const H = d.useMemo(() => ({
4313
4313
  reference: P,
4314
4314
  floating: k,
4315
- setReference: y,
4315
+ setReference: x,
4316
4316
  setFloating: w
4317
- }), [y, w]), D = d.useMemo(() => ({
4317
+ }), [x, w]), D = d.useMemo(() => ({
4318
4318
  reference: b,
4319
4319
  floating: A
4320
4320
  }), [b, A]), V = d.useMemo(() => {
@@ -4452,11 +4452,11 @@ function Gs(e) {
4452
4452
  n(void 0);
4453
4453
  }, [e]), t;
4454
4454
  }
4455
- var ln = "Popper", [zr, $r] = xr(ln), [Ks, Br] = zr(ln), Fr = (e) => {
4455
+ var un = "Popper", [zr, $r] = xr(un), [Ks, Br] = zr(un), Fr = (e) => {
4456
4456
  const { __scopePopper: t, children: n } = e, [r, o] = d.useState(null);
4457
4457
  return /* @__PURE__ */ T(Ks, { scope: t, anchor: r, onAnchorChange: o, children: n });
4458
4458
  };
4459
- Fr.displayName = ln;
4459
+ Fr.displayName = un;
4460
4460
  var Vr = "PopperAnchor", Wr = d.forwardRef(
4461
4461
  (e, t) => {
4462
4462
  const { __scopePopper: n, virtualRef: r, ...o } = e, i = Br(Vr, n), s = d.useRef(null), a = Ie(t, s), c = d.useRef(null);
@@ -4467,9 +4467,9 @@ var Vr = "PopperAnchor", Wr = d.forwardRef(
4467
4467
  }
4468
4468
  );
4469
4469
  Wr.displayName = Vr;
4470
- var un = "PopperContent", [Ys, qs] = zr(un), Hr = d.forwardRef(
4470
+ var dn = "PopperContent", [Ys, qs] = zr(dn), Hr = d.forwardRef(
4471
4471
  (e, t) => {
4472
- var j, ke, F, W, G, Q;
4472
+ var j, ke, F, W, G, ee;
4473
4473
  const {
4474
4474
  __scopePopper: n,
4475
4475
  side: r = "bottom",
@@ -4481,11 +4481,11 @@ var un = "PopperContent", [Ys, qs] = zr(un), Hr = d.forwardRef(
4481
4481
  collisionBoundary: l = [],
4482
4482
  collisionPadding: u = 0,
4483
4483
  sticky: f = "partial",
4484
- hideWhenDetached: g = !1,
4484
+ hideWhenDetached: h = !1,
4485
4485
  updatePositionStrategy: m = "optimized",
4486
4486
  onPlaced: p,
4487
- ...h
4488
- } = e, x = Br(un, n), [v, y] = d.useState(null), w = Ie(t, (xe) => y(xe)), [b, A] = d.useState(null), P = Gs(b), k = (P == null ? void 0 : P.width) ?? 0, R = (P == null ? void 0 : P.height) ?? 0, M = r + (i !== "center" ? "-" + i : ""), C = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, S = Array.isArray(l) ? l : [l], I = S.length > 0, z = {
4487
+ ...g
4488
+ } = e, v = Br(dn, n), [y, x] = d.useState(null), w = Ie(t, (xe) => x(xe)), [b, A] = d.useState(null), P = Gs(b), k = (P == null ? void 0 : P.width) ?? 0, R = (P == null ? void 0 : P.height) ?? 0, M = r + (i !== "center" ? "-" + i : ""), C = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, S = Array.isArray(l) ? l : [l], I = S.length > 0, z = {
4489
4489
  padding: C,
4490
4490
  boundary: S.filter(Zs),
4491
4491
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -4498,7 +4498,7 @@ var un = "PopperContent", [Ys, qs] = zr(un), Hr = d.forwardRef(
4498
4498
  animationFrame: m === "always"
4499
4499
  }),
4500
4500
  elements: {
4501
- reference: x.anchor
4501
+ reference: v.anchor
4502
4502
  },
4503
4503
  middleware: [
4504
4504
  zs({ mainAxis: o + R, alignmentAxis: s }),
@@ -4518,7 +4518,7 @@ var un = "PopperContent", [Ys, qs] = zr(un), Hr = d.forwardRef(
4518
4518
  }),
4519
4519
  b && Hs({ element: b, padding: a }),
4520
4520
  Js({ arrowWidth: k, arrowHeight: R }),
4521
- g && Ws({ strategy: "referenceHidden", ...z })
4521
+ h && Ws({ strategy: "referenceHidden", ...z })
4522
4522
  ]
4523
4523
  }), [_, K] = Gr(D), Y = yt(p);
4524
4524
  Ee(() => {
@@ -4526,8 +4526,8 @@ var un = "PopperContent", [Ys, qs] = zr(un), Hr = d.forwardRef(
4526
4526
  }, [V, Y]);
4527
4527
  const re = (j = E.arrow) == null ? void 0 : j.x, $ = (ke = E.arrow) == null ? void 0 : ke.y, U = ((F = E.arrow) == null ? void 0 : F.centerOffset) !== 0, [X, fe] = d.useState();
4528
4528
  return Ee(() => {
4529
- v && fe(window.getComputedStyle(v).zIndex);
4530
- }, [v]), /* @__PURE__ */ T(
4529
+ y && fe(window.getComputedStyle(y).zIndex);
4530
+ }, [y]), /* @__PURE__ */ T(
4531
4531
  "div",
4532
4532
  {
4533
4533
  ref: L.setFloating,
@@ -4545,7 +4545,7 @@ var un = "PopperContent", [Ys, qs] = zr(un), Hr = d.forwardRef(
4545
4545
  // hide the content if using the hide middleware and should be hidden
4546
4546
  // set visibility to hidden and disable pointer events so the UI behaves
4547
4547
  // as if the PopperContent isn't there at all
4548
- ...((Q = E.hide) == null ? void 0 : Q.referenceHidden) && {
4548
+ ...((ee = E.hide) == null ? void 0 : ee.referenceHidden) && {
4549
4549
  visibility: "hidden",
4550
4550
  pointerEvents: "none"
4551
4551
  }
@@ -4565,10 +4565,10 @@ var un = "PopperContent", [Ys, qs] = zr(un), Hr = d.forwardRef(
4565
4565
  {
4566
4566
  "data-side": _,
4567
4567
  "data-align": K,
4568
- ...h,
4568
+ ...g,
4569
4569
  ref: w,
4570
4570
  style: {
4571
- ...h.style,
4571
+ ...g.style,
4572
4572
  // if the PopperContent hasn't been placed yet (not all measurements done)
4573
4573
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
4574
4574
  animation: V ? void 0 : "none"
@@ -4581,7 +4581,7 @@ var un = "PopperContent", [Ys, qs] = zr(un), Hr = d.forwardRef(
4581
4581
  );
4582
4582
  }
4583
4583
  );
4584
- Hr.displayName = un;
4584
+ Hr.displayName = dn;
4585
4585
  var Ur = "PopperArrow", Xs = {
4586
4586
  top: "bottom",
4587
4587
  right: "left",
@@ -4640,10 +4640,10 @@ var Js = (e) => ({
4640
4640
  name: "transformOrigin",
4641
4641
  options: e,
4642
4642
  fn(t) {
4643
- var x, v, y;
4644
- const { placement: n, rects: r, middlewareData: o } = t, s = ((x = o.arrow) == null ? void 0 : x.centerOffset) !== 0, a = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [l, u] = Gr(n), f = { start: "0%", center: "50%", end: "100%" }[u], g = (((v = o.arrow) == null ? void 0 : v.x) ?? 0) + a / 2, m = (((y = o.arrow) == null ? void 0 : y.y) ?? 0) + c / 2;
4645
- let p = "", h = "";
4646
- return l === "bottom" ? (p = s ? f : `${g}px`, h = `${-c}px`) : l === "top" ? (p = s ? f : `${g}px`, h = `${r.floating.height + c}px`) : l === "right" ? (p = `${-c}px`, h = s ? f : `${m}px`) : l === "left" && (p = `${r.floating.width + c}px`, h = s ? f : `${m}px`), { data: { x: p, y: h } };
4643
+ var v, y, x;
4644
+ const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, a = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [l, u] = Gr(n), f = { start: "0%", center: "50%", end: "100%" }[u], h = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + a / 2, m = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + c / 2;
4645
+ let p = "", g = "";
4646
+ return l === "bottom" ? (p = s ? f : `${h}px`, g = `${-c}px`) : l === "top" ? (p = s ? f : `${h}px`, g = `${r.floating.height + c}px`) : l === "right" ? (p = `${-c}px`, g = s ? f : `${m}px`) : l === "left" && (p = `${r.floating.width + c}px`, g = s ? f : `${m}px`), { data: { x: p, y: g } };
4647
4647
  }
4648
4648
  });
4649
4649
  function Gr(e) {
@@ -4661,11 +4661,11 @@ Kr.displayName = ra;
4661
4661
  function oa(e, t) {
4662
4662
  return d.useReducer((n, r) => t[n][r] ?? n, e);
4663
4663
  }
4664
- var dn = (e) => {
4664
+ var fn = (e) => {
4665
4665
  const { present: t, children: n } = e, r = ia(t), o = typeof n == "function" ? n({ present: r.isPresent }) : d.Children.only(n), i = Ie(r.ref, sa(o));
4666
4666
  return typeof n == "function" || r.isPresent ? d.cloneElement(o, { ref: i }) : null;
4667
4667
  };
4668
- dn.displayName = "Presence";
4668
+ fn.displayName = "Presence";
4669
4669
  function ia(e) {
4670
4670
  const [t, n] = d.useState(), r = d.useRef(null), o = d.useRef(e), i = d.useRef("none"), s = e ? "mounted" : "unmounted", [a, c] = oa(s, {
4671
4671
  mounted: {
@@ -4686,25 +4686,25 @@ function ia(e) {
4686
4686
  }, [a]), Ee(() => {
4687
4687
  const l = r.current, u = o.current;
4688
4688
  if (u !== e) {
4689
- const g = i.current, m = nt(l);
4690
- e ? c("MOUNT") : m === "none" || (l == null ? void 0 : l.display) === "none" ? c("UNMOUNT") : c(u && g !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
4689
+ const h = i.current, m = nt(l);
4690
+ e ? c("MOUNT") : m === "none" || (l == null ? void 0 : l.display) === "none" ? c("UNMOUNT") : c(u && h !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
4691
4691
  }
4692
4692
  }, [e, c]), Ee(() => {
4693
4693
  if (t) {
4694
4694
  let l;
4695
4695
  const u = t.ownerDocument.defaultView ?? window, f = (m) => {
4696
- const h = nt(r.current).includes(CSS.escape(m.animationName));
4697
- if (m.target === t && h && (c("ANIMATION_END"), !o.current)) {
4698
- const x = t.style.animationFillMode;
4696
+ const g = nt(r.current).includes(CSS.escape(m.animationName));
4697
+ if (m.target === t && g && (c("ANIMATION_END"), !o.current)) {
4698
+ const v = t.style.animationFillMode;
4699
4699
  t.style.animationFillMode = "forwards", l = u.setTimeout(() => {
4700
- t.style.animationFillMode === "forwards" && (t.style.animationFillMode = x);
4700
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
4701
4701
  });
4702
4702
  }
4703
- }, g = (m) => {
4703
+ }, h = (m) => {
4704
4704
  m.target === t && (i.current = nt(r.current));
4705
4705
  };
4706
- return t.addEventListener("animationstart", g), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
4707
- u.clearTimeout(l), t.removeEventListener("animationstart", g), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
4706
+ return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
4707
+ u.clearTimeout(l), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
4708
4708
  };
4709
4709
  } else
4710
4710
  c("ANIMATION_END");
@@ -4748,8 +4748,8 @@ function ca({
4748
4748
  (u) => {
4749
4749
  var f;
4750
4750
  if (a) {
4751
- const g = ua(u) ? u(e) : u;
4752
- g !== e && ((f = s.current) == null || f.call(s, g));
4751
+ const h = ua(u) ? u(e) : u;
4752
+ h !== e && ((f = s.current) == null || f.call(s, h));
4753
4753
  } else
4754
4754
  i(u);
4755
4755
  },
@@ -4797,7 +4797,7 @@ var da = Object.freeze({
4797
4797
  Yr.displayName = fa;
4798
4798
  var pa = Yr, [Rt] = xr("Tooltip", [
4799
4799
  $r
4800
- ]), At = $r(), qr = "TooltipProvider", ma = 700, Gt = "tooltip.open", [ga, fn] = Rt(qr), Xr = (e) => {
4800
+ ]), At = $r(), qr = "TooltipProvider", ma = 700, Kt = "tooltip.open", [ga, pn] = Rt(qr), Xr = (e) => {
4801
4801
  const {
4802
4802
  __scopeTooltip: t,
4803
4803
  delayDuration: n = ma,
@@ -4842,30 +4842,30 @@ var Ye = "Tooltip", [ha, Ze] = Rt(Ye), Zr = (e) => {
4842
4842
  onOpenChange: i,
4843
4843
  disableHoverableContent: s,
4844
4844
  delayDuration: a
4845
- } = e, c = fn(Ye, e.__scopeTooltip), l = At(t), [u, f] = d.useState(null), g = Bi(), m = d.useRef(0), p = s ?? c.disableHoverableContent, h = a ?? c.delayDuration, x = d.useRef(!1), [v, y] = ca({
4845
+ } = e, c = pn(Ye, e.__scopeTooltip), l = At(t), [u, f] = d.useState(null), h = Bi(), m = d.useRef(0), p = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, v = d.useRef(!1), [y, x] = ca({
4846
4846
  prop: r,
4847
4847
  defaultProp: o ?? !1,
4848
4848
  onChange: (k) => {
4849
- k ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Gt))) : c.onClose(), i == null || i(k);
4849
+ k ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Kt))) : c.onClose(), i == null || i(k);
4850
4850
  },
4851
4851
  caller: Ye
4852
- }), w = d.useMemo(() => v ? x.current ? "delayed-open" : "instant-open" : "closed", [v]), b = d.useCallback(() => {
4853
- window.clearTimeout(m.current), m.current = 0, x.current = !1, y(!0);
4854
- }, [y]), A = d.useCallback(() => {
4855
- window.clearTimeout(m.current), m.current = 0, y(!1);
4856
- }, [y]), P = d.useCallback(() => {
4852
+ }), w = d.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), b = d.useCallback(() => {
4853
+ window.clearTimeout(m.current), m.current = 0, v.current = !1, x(!0);
4854
+ }, [x]), A = d.useCallback(() => {
4855
+ window.clearTimeout(m.current), m.current = 0, x(!1);
4856
+ }, [x]), P = d.useCallback(() => {
4857
4857
  window.clearTimeout(m.current), m.current = window.setTimeout(() => {
4858
- x.current = !0, y(!0), m.current = 0;
4859
- }, h);
4860
- }, [h, y]);
4858
+ v.current = !0, x(!0), m.current = 0;
4859
+ }, g);
4860
+ }, [g, x]);
4861
4861
  return d.useEffect(() => () => {
4862
4862
  m.current && (window.clearTimeout(m.current), m.current = 0);
4863
4863
  }, []), /* @__PURE__ */ T(Qs, { ...l, children: /* @__PURE__ */ T(
4864
4864
  ha,
4865
4865
  {
4866
4866
  scope: t,
4867
- contentId: g,
4868
- open: v,
4867
+ contentId: h,
4868
+ open: y,
4869
4869
  stateAttribute: w,
4870
4870
  trigger: u,
4871
4871
  onTriggerChange: f,
@@ -4883,9 +4883,9 @@ var Ye = "Tooltip", [ha, Ze] = Rt(Ye), Zr = (e) => {
4883
4883
  ) });
4884
4884
  };
4885
4885
  Zr.displayName = Ye;
4886
- var Kt = "TooltipTrigger", Jr = d.forwardRef(
4886
+ var Yt = "TooltipTrigger", Jr = d.forwardRef(
4887
4887
  (e, t) => {
4888
- const { __scopeTooltip: n, ...r } = e, o = Ze(Kt, n), i = fn(Kt, n), s = At(n), a = d.useRef(null), c = Ie(t, a, o.onTriggerChange), l = d.useRef(!1), u = d.useRef(!1), f = d.useCallback(() => l.current = !1, []);
4888
+ const { __scopeTooltip: n, ...r } = e, o = Ze(Yt, n), i = pn(Yt, n), s = At(n), a = d.useRef(null), c = Ie(t, a, o.onTriggerChange), l = d.useRef(!1), u = d.useRef(!1), f = d.useCallback(() => l.current = !1, []);
4889
4889
  return d.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ T(ea, { asChild: !0, ...s, children: /* @__PURE__ */ T(
4890
4890
  Ae.button,
4891
4891
  {
@@ -4893,8 +4893,8 @@ var Kt = "TooltipTrigger", Jr = d.forwardRef(
4893
4893
  "data-state": o.stateAttribute,
4894
4894
  ...r,
4895
4895
  ref: c,
4896
- onPointerMove: me(e.onPointerMove, (g) => {
4897
- g.pointerType !== "touch" && !u.current && !i.isPointerInTransitRef.current && (o.onTriggerEnter(), u.current = !0);
4896
+ onPointerMove: me(e.onPointerMove, (h) => {
4897
+ h.pointerType !== "touch" && !u.current && !i.isPointerInTransitRef.current && (o.onTriggerEnter(), u.current = !0);
4898
4898
  }),
4899
4899
  onPointerLeave: me(e.onPointerLeave, () => {
4900
4900
  o.onTriggerLeave(), u.current = !1;
@@ -4911,45 +4911,45 @@ var Kt = "TooltipTrigger", Jr = d.forwardRef(
4911
4911
  ) });
4912
4912
  }
4913
4913
  );
4914
- Jr.displayName = Kt;
4915
- var pn = "TooltipPortal", [ba, va] = Rt(pn, {
4914
+ Jr.displayName = Yt;
4915
+ var mn = "TooltipPortal", [ba, va] = Rt(mn, {
4916
4916
  forceMount: void 0
4917
4917
  }), Qr = (e) => {
4918
- const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, i = Ze(pn, t);
4919
- return /* @__PURE__ */ T(ba, { scope: t, forceMount: n, children: /* @__PURE__ */ T(dn, { present: n || i.open, children: /* @__PURE__ */ T(Kr, { asChild: !0, container: o, children: r }) }) });
4918
+ const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, i = Ze(mn, t);
4919
+ return /* @__PURE__ */ T(ba, { scope: t, forceMount: n, children: /* @__PURE__ */ T(fn, { present: n || i.open, children: /* @__PURE__ */ T(Kr, { asChild: !0, container: o, children: r }) }) });
4920
4920
  };
4921
- Qr.displayName = pn;
4921
+ Qr.displayName = mn;
4922
4922
  var _e = "TooltipContent", eo = d.forwardRef(
4923
4923
  (e, t) => {
4924
4924
  const n = va(_e, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...i } = e, s = Ze(_e, e.__scopeTooltip);
4925
- return /* @__PURE__ */ T(dn, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ T(to, { side: o, ...i, ref: t }) : /* @__PURE__ */ T(ya, { side: o, ...i, ref: t }) });
4925
+ return /* @__PURE__ */ T(fn, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ T(to, { side: o, ...i, ref: t }) : /* @__PURE__ */ T(ya, { side: o, ...i, ref: t }) });
4926
4926
  }
4927
4927
  ), ya = d.forwardRef((e, t) => {
4928
- const n = Ze(_e, e.__scopeTooltip), r = fn(_e, e.__scopeTooltip), o = d.useRef(null), i = Ie(t, o), [s, a] = d.useState(null), { trigger: c, onClose: l } = n, u = o.current, { onPointerInTransitChange: f } = r, g = d.useCallback(() => {
4928
+ const n = Ze(_e, e.__scopeTooltip), r = pn(_e, e.__scopeTooltip), o = d.useRef(null), i = Ie(t, o), [s, a] = d.useState(null), { trigger: c, onClose: l } = n, u = o.current, { onPointerInTransitChange: f } = r, h = d.useCallback(() => {
4929
4929
  a(null), f(!1);
4930
4930
  }, [f]), m = d.useCallback(
4931
- (p, h) => {
4932
- const x = p.currentTarget, v = { x: p.clientX, y: p.clientY }, y = Ca(v, x.getBoundingClientRect()), w = Ra(v, y), b = Aa(h.getBoundingClientRect()), A = Ta([...w, ...b]);
4931
+ (p, g) => {
4932
+ const v = p.currentTarget, y = { x: p.clientX, y: p.clientY }, x = Ca(y, v.getBoundingClientRect()), w = Ra(y, x), b = Aa(g.getBoundingClientRect()), A = Ta([...w, ...b]);
4933
4933
  a(A), f(!0);
4934
4934
  },
4935
4935
  [f]
4936
4936
  );
4937
- return d.useEffect(() => () => g(), [g]), d.useEffect(() => {
4937
+ return d.useEffect(() => () => h(), [h]), d.useEffect(() => {
4938
4938
  if (c && u) {
4939
- const p = (x) => m(x, u), h = (x) => m(x, c);
4940
- return c.addEventListener("pointerleave", p), u.addEventListener("pointerleave", h), () => {
4941
- c.removeEventListener("pointerleave", p), u.removeEventListener("pointerleave", h);
4939
+ const p = (v) => m(v, u), g = (v) => m(v, c);
4940
+ return c.addEventListener("pointerleave", p), u.addEventListener("pointerleave", g), () => {
4941
+ c.removeEventListener("pointerleave", p), u.removeEventListener("pointerleave", g);
4942
4942
  };
4943
4943
  }
4944
- }, [c, u, m, g]), d.useEffect(() => {
4944
+ }, [c, u, m, h]), d.useEffect(() => {
4945
4945
  if (s) {
4946
- const p = (h) => {
4947
- const x = h.target, v = { x: h.clientX, y: h.clientY }, y = (c == null ? void 0 : c.contains(x)) || (u == null ? void 0 : u.contains(x)), w = !ka(v, s);
4948
- y ? g() : w && (g(), l());
4946
+ const p = (g) => {
4947
+ const v = g.target, y = { x: g.clientX, y: g.clientY }, x = (c == null ? void 0 : c.contains(v)) || (u == null ? void 0 : u.contains(v)), w = !ka(y, s);
4948
+ x ? h() : w && (h(), l());
4949
4949
  };
4950
4950
  return document.addEventListener("pointermove", p), () => document.removeEventListener("pointermove", p);
4951
4951
  }
4952
- }, [c, u, s, l, g]), /* @__PURE__ */ T(to, { ...e, ref: i });
4952
+ }, [c, u, s, l, h]), /* @__PURE__ */ T(to, { ...e, ref: i });
4953
4953
  }), [xa, wa] = Rt(Ye, { isInside: !1 }), Ea = /* @__PURE__ */ Ci("TooltipContent"), to = d.forwardRef(
4954
4954
  (e, t) => {
4955
4955
  const {
@@ -4960,10 +4960,10 @@ var _e = "TooltipContent", eo = d.forwardRef(
4960
4960
  onPointerDownOutside: s,
4961
4961
  ...a
4962
4962
  } = e, c = Ze(_e, n), l = At(n), { onClose: u } = c;
4963
- return d.useEffect(() => (document.addEventListener(Gt, u), () => document.removeEventListener(Gt, u)), [u]), d.useEffect(() => {
4963
+ return d.useEffect(() => (document.addEventListener(Kt, u), () => document.removeEventListener(Kt, u)), [u]), d.useEffect(() => {
4964
4964
  if (c.trigger) {
4965
- const f = (g) => {
4966
- const m = g.target;
4965
+ const f = (h) => {
4966
+ const m = h.target;
4967
4967
  m != null && m.contains(c.trigger) && u();
4968
4968
  };
4969
4969
  return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
@@ -5071,8 +5071,8 @@ function ka(e, t) {
5071
5071
  const { x: n, y: r } = e;
5072
5072
  let o = !1;
5073
5073
  for (let i = 0, s = t.length - 1; i < t.length; s = i++) {
5074
- const a = t[i], c = t[s], l = a.x, u = a.y, f = c.x, g = c.y;
5075
- u > r != g > r && n < (f - l) * (r - u) / (g - u) + l && (o = !o);
5074
+ const a = t[i], c = t[s], l = a.x, u = a.y, f = c.x, h = c.y;
5075
+ u > r != h > r && n < (f - l) * (r - u) / (h - u) + l && (o = !o);
5076
5076
  }
5077
5077
  return o;
5078
5078
  }
@@ -5106,7 +5106,7 @@ function Pa(e) {
5106
5106
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
5107
5107
  }
5108
5108
  var Sa = Xr, Na = Zr, Oa = Jr, Ia = Qr, oo = eo, Ma = ro;
5109
- const io = Sa, so = Na, ao = Oa, mn = d.forwardRef(({ className: e, sideOffset: t = 6, style: n, ...r }, o) => {
5109
+ const io = Sa, so = Na, ao = Oa, gn = d.forwardRef(({ className: e, sideOffset: t = 6, style: n, ...r }, o) => {
5110
5110
  const i = {
5111
5111
  backgroundColor: "#000000",
5112
5112
  color: "#ffffff",
@@ -5128,7 +5128,7 @@ const io = Sa, so = Na, ao = Oa, mn = d.forwardRef(({ className: e, sideOffset:
5128
5128
  }
5129
5129
  ) });
5130
5130
  });
5131
- mn.displayName = oo.displayName;
5131
+ gn.displayName = oo.displayName;
5132
5132
  const Da = cr(
5133
5133
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
5134
5134
  {
@@ -5168,31 +5168,31 @@ const Da = cr(
5168
5168
  style: l,
5169
5169
  iconButton: u = !1,
5170
5170
  tooltipLabel: f,
5171
- saveColor: g = "#003B71",
5171
+ saveColor: h = "#003B71",
5172
5172
  deleteColor: m = "#FF6070",
5173
5173
  updateColor: p = "#003B71",
5174
- cancelColor: h = "#ffffff",
5175
- outlineColor: x = "#003B71",
5176
- ...v
5177
- }, y) => {
5174
+ cancelColor: g = "#ffffff",
5175
+ outlineColor: v = "#003B71",
5176
+ ...y
5177
+ }, x) => {
5178
5178
  const b = {
5179
5179
  ...t && {
5180
- save: { backgroundColor: g },
5180
+ save: { backgroundColor: h },
5181
5181
  delete: { backgroundColor: m },
5182
5182
  update: { backgroundColor: p },
5183
- cancel: { backgroundColor: h },
5184
- outline: { backgroundColor: x }
5183
+ cancel: { backgroundColor: g },
5184
+ outline: { backgroundColor: v }
5185
5185
  }[t],
5186
5186
  ...l
5187
5187
  }, A = /* @__PURE__ */ T(
5188
5188
  "button",
5189
5189
  {
5190
- ref: y,
5190
+ ref: x,
5191
5191
  "data-testid": a,
5192
- className: ee(Da({ variant: t, size: n }), e),
5192
+ className: Q(Da({ variant: t, size: n }), e),
5193
5193
  style: b,
5194
5194
  disabled: o || r,
5195
- ...v,
5195
+ ...y,
5196
5196
  children: /* @__PURE__ */ be(ir, { children: [
5197
5197
  r && /* @__PURE__ */ T("div", { className: "w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin" }),
5198
5198
  !r && s && s,
@@ -5203,7 +5203,7 @@ const Da = cr(
5203
5203
  );
5204
5204
  return u ? /* @__PURE__ */ T(io, { children: /* @__PURE__ */ be(so, { children: [
5205
5205
  /* @__PURE__ */ T(ao, { asChild: !0, children: A }),
5206
- f && /* @__PURE__ */ T(mn, { children: f })
5206
+ f && /* @__PURE__ */ T(gn, { children: f })
5207
5207
  ] }) }) : A;
5208
5208
  }
5209
5209
  );
@@ -5227,7 +5227,7 @@ const _a = ({
5227
5227
  },
5228
5228
  className: "flex items-center gap-2 w-full px-3 py-2 text-xs hover:bg-[#f0f4fa]",
5229
5229
  children: [
5230
- /* @__PURE__ */ T("span", { className: o.iconClassName, children: Cn.isValidElement(o.icon) ? Cn.cloneElement(o.icon, {
5230
+ /* @__PURE__ */ T("span", { className: o.iconClassName, children: $t.isValidElement(o.icon) ? $t.cloneElement(o.icon, {
5231
5231
  className: `${o.iconWidth || "w-4"} ${o.iconHeight || "h-4"}`
5232
5232
  }) : o.icon }),
5233
5233
  /* @__PURE__ */ T("span", { className: o.textClassName, children: o.label })
@@ -5290,15 +5290,15 @@ const _a = ({
5290
5290
  const r = String(e ?? ""), o = r.length > t, i = o ? `${r.slice(0, t)}..` : r;
5291
5291
  return o ? /* @__PURE__ */ T(io, { children: /* @__PURE__ */ be(so, { children: [
5292
5292
  /* @__PURE__ */ T(ao, { asChild: !0, children: /* @__PURE__ */ T("div", { className: `flex items-center cursor-pointer ${n}`, children: i }) }),
5293
- r && /* @__PURE__ */ T(mn, { children: r })
5293
+ r && /* @__PURE__ */ T(gn, { children: r })
5294
5294
  ] }) }) : /* @__PURE__ */ T("div", { className: `flex items-center ${n}`, children: i });
5295
5295
  };
5296
- let Yt;
5297
- process.env.NODE_ENV !== "production" && (Yt = /* @__PURE__ */ new Set());
5296
+ let qt;
5297
+ process.env.NODE_ENV !== "production" && (qt = /* @__PURE__ */ new Set());
5298
5298
  function pt(...e) {
5299
5299
  if (process.env.NODE_ENV !== "production") {
5300
5300
  const t = e.join(" ");
5301
- Yt.has(t) || (Yt.add(t), console.error(`Base UI: ${t}`));
5301
+ qt.has(t) || (qt.add(t), console.error(`Base UI: ${t}`));
5302
5302
  }
5303
5303
  }
5304
5304
  function za({
@@ -5468,7 +5468,7 @@ function Gn(e) {
5468
5468
  const t = e, n = t.props;
5469
5469
  return (uo(19) ? n == null ? void 0 : n.ref : t.ref) ?? null;
5470
5470
  }
5471
- function qt(e, t) {
5471
+ function Xt(e, t) {
5472
5472
  if (e && !t)
5473
5473
  return e;
5474
5474
  if (!e && t)
@@ -5479,15 +5479,15 @@ function qt(e, t) {
5479
5479
  ...t
5480
5480
  };
5481
5481
  }
5482
- let Xt;
5483
- process.env.NODE_ENV !== "production" && (Xt = /* @__PURE__ */ new Set());
5482
+ let Zt;
5483
+ process.env.NODE_ENV !== "production" && (Zt = /* @__PURE__ */ new Set());
5484
5484
  function Ka(...e) {
5485
5485
  if (process.env.NODE_ENV !== "production") {
5486
5486
  const t = e.join(" ");
5487
- Xt.has(t) || (Xt.add(t), console.warn(`Base UI: ${t}`));
5487
+ Zt.has(t) || (Zt.add(t), console.warn(`Base UI: ${t}`));
5488
5488
  }
5489
5489
  }
5490
- const Zt = Object.freeze([]), Ne = Object.freeze({});
5490
+ const Jt = Object.freeze([]), Ne = Object.freeze({});
5491
5491
  function Ya(e, t) {
5492
5492
  const n = {};
5493
5493
  for (const r in e) {
@@ -5507,8 +5507,8 @@ function qa(e, t) {
5507
5507
  function Xa(e, t) {
5508
5508
  return typeof e == "function" ? e(t) : e;
5509
5509
  }
5510
- const gn = {};
5511
- function hn(e, t, n, r, o) {
5510
+ const hn = {};
5511
+ function bn(e, t, n, r, o) {
5512
5512
  if (!n && !r && !e)
5513
5513
  return gt(t);
5514
5514
  let i = gt(e);
@@ -5516,7 +5516,7 @@ function hn(e, t, n, r, o) {
5516
5516
  }
5517
5517
  function Za(e) {
5518
5518
  if (e.length === 0)
5519
- return gn;
5519
+ return hn;
5520
5520
  if (e.length === 1)
5521
5521
  return gt(e[0]);
5522
5522
  let t = gt(e[0]);
@@ -5525,12 +5525,12 @@ function Za(e) {
5525
5525
  return t;
5526
5526
  }
5527
5527
  function gt(e) {
5528
- return bn(e) ? {
5529
- ...po(e, gn)
5528
+ return vn(e) ? {
5529
+ ...po(e, hn)
5530
5530
  } : Ja(e);
5531
5531
  }
5532
5532
  function ct(e, t) {
5533
- return bn(t) ? po(t, e) : Qa(e, t);
5533
+ return vn(t) ? po(t, e) : Qa(e, t);
5534
5534
  }
5535
5535
  function Ja(e) {
5536
5536
  const t = {
@@ -5549,7 +5549,7 @@ function Qa(e, t) {
5549
5549
  const r = t[n];
5550
5550
  switch (n) {
5551
5551
  case "style": {
5552
- e[n] = qt(e.style, r);
5552
+ e[n] = Xt(e.style, r);
5553
5553
  break;
5554
5554
  }
5555
5555
  case "className": {
@@ -5566,11 +5566,11 @@ function fo(e, t) {
5566
5566
  const n = e.charCodeAt(0), r = e.charCodeAt(1), o = e.charCodeAt(2);
5567
5567
  return n === 111 && r === 110 && o >= 65 && o <= 90 && (typeof t == "function" || typeof t > "u");
5568
5568
  }
5569
- function bn(e) {
5569
+ function vn(e) {
5570
5570
  return typeof e == "function";
5571
5571
  }
5572
5572
  function po(e, t) {
5573
- return bn(e) ? e(t) : e ?? gn;
5573
+ return vn(e) ? e(t) : e ?? hn;
5574
5574
  }
5575
5575
  function ec(e, t) {
5576
5576
  return t ? e ? (...n) => {
@@ -5620,18 +5620,18 @@ function tc(e, t = {}) {
5620
5620
  props: a,
5621
5621
  stateAttributesMapping: c,
5622
5622
  enabled: l = !0
5623
- } = t, u = l ? qa(n, i) : void 0, f = l ? Xa(r, i) : void 0, g = l ? Ya(i, c) : Ne, m = l && a ? nc(a) : void 0, p = l ? qt(g, m) ?? {} : Ne;
5624
- return typeof document < "u" && (l ? Array.isArray(s) ? p.ref = Ha([p.ref, Gn(o), ...s]) : p.ref = mt(p.ref, Gn(o), s) : mt(null, null)), l ? (u !== void 0 && (p.className = go(p.className, u)), f !== void 0 && (p.style = qt(p.style, f)), p) : Ne;
5623
+ } = t, u = l ? qa(n, i) : void 0, f = l ? Xa(r, i) : void 0, h = l ? Ya(i, c) : Ne, m = l && a ? nc(a) : void 0, p = l ? Xt(h, m) ?? {} : Ne;
5624
+ return typeof document < "u" && (l ? Array.isArray(s) ? p.ref = Ha([p.ref, Gn(o), ...s]) : p.ref = mt(p.ref, Gn(o), s) : mt(null, null)), l ? (u !== void 0 && (p.className = go(p.className, u)), f !== void 0 && (p.style = Xt(p.style, f)), p) : Ne;
5625
5625
  }
5626
5626
  function nc(e) {
5627
- return Array.isArray(e) ? Za(e) : hn(void 0, e);
5627
+ return Array.isArray(e) ? Za(e) : bn(void 0, e);
5628
5628
  }
5629
5629
  const rc = Symbol.for("react.lazy"), oc = /^[A-Z][A-Za-z0-9$]*$/, ic = /[a-z]/;
5630
5630
  function sc(e, t, n, r) {
5631
5631
  if (t) {
5632
5632
  if (typeof t == "function")
5633
5633
  return process.env.NODE_ENV !== "production" && ac(t), t(n, r);
5634
- const o = hn(n, t.props);
5634
+ const o = bn(n, t.props);
5635
5635
  o.ref = n.ref;
5636
5636
  let i = t;
5637
5637
  if ((i == null ? void 0 : i.$$typeof) === rc && (i = d.Children.toArray(t)[0]), process.env.NODE_ENV !== "production" && !/* @__PURE__ */ d.isValidElement(i))
@@ -5658,7 +5658,7 @@ function cc(e, t) {
5658
5658
  key: t.key
5659
5659
  }) : /* @__PURE__ */ d.createElement(e, t);
5660
5660
  }
5661
- const vn = /* @__PURE__ */ d.createContext({
5661
+ const yn = /* @__PURE__ */ d.createContext({
5662
5662
  register: () => {
5663
5663
  },
5664
5664
  unregister: () => {
@@ -5672,9 +5672,9 @@ const vn = /* @__PURE__ */ d.createContext({
5672
5672
  current: 0
5673
5673
  }
5674
5674
  });
5675
- process.env.NODE_ENV !== "production" && (vn.displayName = "CompositeListContext");
5675
+ process.env.NODE_ENV !== "production" && (yn.displayName = "CompositeListContext");
5676
5676
  function lc() {
5677
- return d.useContext(vn);
5677
+ return d.useContext(yn);
5678
5678
  }
5679
5679
  function bo(e) {
5680
5680
  const {
@@ -5682,35 +5682,35 @@ function bo(e) {
5682
5682
  elementsRef: n,
5683
5683
  labelsRef: r,
5684
5684
  onMapChange: o
5685
- } = e, i = J(o), s = d.useRef(0), a = ze(dc).current, c = ze(uc).current, [l, u] = d.useState(0), f = d.useRef(l), g = J((v, y) => {
5686
- c.set(v, y ?? null), f.current += 1, u(f.current);
5687
- }), m = J((v) => {
5688
- c.delete(v), f.current += 1, u(f.current);
5685
+ } = e, i = J(o), s = d.useRef(0), a = ze(dc).current, c = ze(uc).current, [l, u] = d.useState(0), f = d.useRef(l), h = J((y, x) => {
5686
+ c.set(y, x ?? null), f.current += 1, u(f.current);
5687
+ }), m = J((y) => {
5688
+ c.delete(y), f.current += 1, u(f.current);
5689
5689
  }), p = d.useMemo(() => {
5690
- const v = /* @__PURE__ */ new Map();
5690
+ const y = /* @__PURE__ */ new Map();
5691
5691
  return Array.from(c.keys()).filter((w) => w.isConnected).sort(fc).forEach((w, b) => {
5692
5692
  const A = c.get(w) ?? {};
5693
- v.set(w, {
5693
+ y.set(w, {
5694
5694
  ...A,
5695
5695
  index: b
5696
5696
  });
5697
- }), v;
5697
+ }), y;
5698
5698
  }, [c, l]);
5699
5699
  Z(() => {
5700
5700
  if (typeof MutationObserver != "function" || p.size === 0)
5701
5701
  return;
5702
- const v = new MutationObserver((y) => {
5702
+ const y = new MutationObserver((x) => {
5703
5703
  const w = /* @__PURE__ */ new Set(), b = (A) => w.has(A) ? w.delete(A) : w.add(A);
5704
- y.forEach((A) => {
5704
+ x.forEach((A) => {
5705
5705
  A.removedNodes.forEach(b), A.addedNodes.forEach(b);
5706
5706
  }), w.size === 0 && (f.current += 1, u(f.current));
5707
5707
  });
5708
- return p.forEach((y, w) => {
5709
- w.parentElement && v.observe(w.parentElement, {
5708
+ return p.forEach((x, w) => {
5709
+ w.parentElement && y.observe(w.parentElement, {
5710
5710
  childList: !0
5711
5711
  });
5712
5712
  }), () => {
5713
- v.disconnect();
5713
+ y.disconnect();
5714
5714
  };
5715
5715
  }, [p]), Z(() => {
5716
5716
  f.current === l && (n.current.length !== p.size && (n.current.length = p.size), r && r.current.length !== p.size && (r.current.length = p.size), s.current = p.size), i(p);
@@ -5719,22 +5719,22 @@ function bo(e) {
5719
5719
  }, [n]), Z(() => () => {
5720
5720
  r && (r.current = []);
5721
5721
  }, [r]);
5722
- const h = J((v) => (a.add(v), () => {
5723
- a.delete(v);
5722
+ const g = J((y) => (a.add(y), () => {
5723
+ a.delete(y);
5724
5724
  }));
5725
5725
  Z(() => {
5726
- a.forEach((v) => v(p));
5726
+ a.forEach((y) => y(p));
5727
5727
  }, [a, p]);
5728
- const x = d.useMemo(() => ({
5729
- register: g,
5728
+ const v = d.useMemo(() => ({
5729
+ register: h,
5730
5730
  unregister: m,
5731
- subscribeMapChange: h,
5731
+ subscribeMapChange: g,
5732
5732
  elementsRef: n,
5733
5733
  labelsRef: r,
5734
5734
  nextIndexRef: s
5735
- }), [g, m, h, n, r, s]);
5736
- return /* @__PURE__ */ T(vn.Provider, {
5737
- value: x,
5735
+ }), [h, m, g, n, r, s]);
5736
+ return /* @__PURE__ */ T(yn.Provider, {
5737
+ value: v,
5738
5738
  children: t
5739
5739
  });
5740
5740
  }
@@ -5748,10 +5748,10 @@ function fc(e, t) {
5748
5748
  const n = e.compareDocumentPosition(t);
5749
5749
  return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
5750
5750
  }
5751
- const yn = /* @__PURE__ */ d.createContext(void 0);
5752
- process.env.NODE_ENV !== "production" && (yn.displayName = "TabsRootContext");
5753
- function xn() {
5754
- const e = d.useContext(yn);
5751
+ const xn = /* @__PURE__ */ d.createContext(void 0);
5752
+ process.env.NODE_ENV !== "production" && (xn.displayName = "TabsRootContext");
5753
+ function wn() {
5754
+ const e = d.useContext(xn);
5755
5755
  if (e === void 0)
5756
5756
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>." : kt(64));
5757
5757
  return e;
@@ -5764,7 +5764,7 @@ const Pt = {
5764
5764
  [pc.activationDirection]: e
5765
5765
  })
5766
5766
  }, Kn = "none", mc = "disabled", Yn = "missing", qn = "initial";
5767
- function Jt(e, t, n, r) {
5767
+ function Qt(e, t, n, r) {
5768
5768
  let o = !1, i = !1;
5769
5769
  const s = r ?? Ne;
5770
5770
  return {
@@ -5796,28 +5796,28 @@ const vo = /* @__PURE__ */ d.forwardRef(function(t, n) {
5796
5796
  value: c,
5797
5797
  style: l,
5798
5798
  ...u
5799
- } = t, f = t.defaultValue !== void 0, g = d.useRef([]), [m, p] = d.useState(() => /* @__PURE__ */ new Map()), [h, x] = za({
5799
+ } = t, f = t.defaultValue !== void 0, h = d.useRef([]), [m, p] = d.useState(() => /* @__PURE__ */ new Map()), [g, v] = za({
5800
5800
  controlled: c,
5801
5801
  default: o,
5802
5802
  name: "Tabs",
5803
5803
  state: "value"
5804
- }), v = c !== void 0, [y, w] = d.useState(() => /* @__PURE__ */ new Map()), b = d.useRef(void 0), A = d.useCallback((F) => {
5804
+ }), y = c !== void 0, [x, w] = d.useState(() => /* @__PURE__ */ new Map()), b = d.useRef(void 0), A = d.useCallback((F) => {
5805
5805
  if (F === void 0)
5806
5806
  return null;
5807
- for (const [W, G] of y.entries())
5807
+ for (const [W, G] of x.entries())
5808
5808
  if (G != null && F === (G.value ?? G.index))
5809
5809
  return W;
5810
5810
  return null;
5811
- }, [y]), [P, k] = d.useState(() => ({
5812
- previousValue: h,
5811
+ }, [x]), [P, k] = d.useState(() => ({
5812
+ previousValue: g,
5813
5813
  tabActivationDirection: "none"
5814
5814
  })), {
5815
5815
  previousValue: R,
5816
5816
  tabActivationDirection: M
5817
5817
  } = P;
5818
5818
  let C = M, S = !1;
5819
- R !== h && (C = Xn(R, h, s, y), S = R != null && h != null && A(h) == null);
5820
- const I = S ? R : h, z = R !== I || M !== C;
5819
+ R !== g && (C = Xn(R, g, s, x), S = R != null && g != null && A(g) == null);
5820
+ const I = S ? R : g, z = R !== I || M !== C;
5821
5821
  Z(() => {
5822
5822
  z && k({
5823
5823
  previousValue: I,
@@ -5825,31 +5825,31 @@ const vo = /* @__PURE__ */ d.forwardRef(function(t, n) {
5825
5825
  });
5826
5826
  }, [I, z, C]);
5827
5827
  const L = J((F, W) => {
5828
- const G = Xn(h, F, s, y);
5829
- W.activationDirection = G, i == null || i(F, W), !W.isCanceled && x(F);
5828
+ const G = Xn(g, F, s, x);
5829
+ W.activationDirection = G, i == null || i(F, W), !W.isCanceled && v(F);
5830
5830
  }), H = J((F, W) => {
5831
- i == null || i(F, Jt(W, void 0, void 0, {
5831
+ i == null || i(F, Qt(W, void 0, void 0, {
5832
5832
  activationDirection: "none"
5833
5833
  }));
5834
5834
  }), D = J((F, W) => {
5835
5835
  p((G) => {
5836
5836
  if (G.get(F) === W)
5837
5837
  return G;
5838
- const Q = new Map(G);
5839
- return Q.set(F, W), Q;
5838
+ const ee = new Map(G);
5839
+ return ee.set(F, W), ee;
5840
5840
  });
5841
5841
  }), V = J((F, W) => {
5842
5842
  p((G) => {
5843
5843
  if (!G.has(F) || G.get(F) !== W)
5844
5844
  return G;
5845
- const Q = new Map(G);
5846
- return Q.delete(F), Q;
5845
+ const ee = new Map(G);
5846
+ return ee.delete(F), ee;
5847
5847
  });
5848
5848
  }), E = d.useCallback((F) => m.get(F), [m]), _ = d.useCallback((F) => {
5849
- for (const W of y.values())
5849
+ for (const W of x.values())
5850
5850
  if (F === (W == null ? void 0 : W.value))
5851
5851
  return W == null ? void 0 : W.id;
5852
- }, [y]), K = d.useMemo(() => ({
5852
+ }, [x]), K = d.useMemo(() => ({
5853
5853
  getTabElementBySelectedValue: A,
5854
5854
  getTabIdByPanelValue: _,
5855
5855
  getTabPanelIdByValue: E,
@@ -5859,47 +5859,47 @@ const vo = /* @__PURE__ */ d.forwardRef(function(t, n) {
5859
5859
  setTabMap: w,
5860
5860
  unregisterMountedTabPanel: V,
5861
5861
  tabActivationDirection: C,
5862
- value: h
5863
- }), [A, _, E, L, s, D, w, V, C, h]), Y = d.useMemo(() => {
5864
- for (const F of y.values())
5865
- if (F != null && F.value === h)
5862
+ value: g
5863
+ }), [A, _, E, L, s, D, w, V, C, g]), Y = d.useMemo(() => {
5864
+ for (const F of x.values())
5865
+ if (F != null && F.value === g)
5866
5866
  return F;
5867
- }, [y, h]), re = d.useMemo(() => {
5868
- for (const F of y.values())
5867
+ }, [x, g]), re = d.useMemo(() => {
5868
+ for (const F of x.values())
5869
5869
  if (F != null && !F.disabled)
5870
5870
  return F.value;
5871
- }, [y]), $ = d.useRef(!f), U = d.useRef(o), X = d.useRef(f), fe = d.useRef(!1);
5871
+ }, [x]), $ = d.useRef(!f), U = d.useRef(o), X = d.useRef(f), fe = d.useRef(!1);
5872
5872
  Z(() => {
5873
5873
  var xe;
5874
- if (v)
5874
+ if (y)
5875
5875
  return;
5876
5876
  function F(ae, Te) {
5877
- x(ae), k((We) => We.previousValue === ae && We.tabActivationDirection === "none" ? We : {
5877
+ v(ae), k((We) => We.previousValue === ae && We.tabActivationDirection === "none" ? We : {
5878
5878
  previousValue: ae,
5879
5879
  tabActivationDirection: "none"
5880
5880
  }), H(ae, Te), $.current = !1;
5881
5881
  }
5882
- if (y.size === 0) {
5883
- fe.current && h !== null && !((xe = b.current) != null && xe.isConnected) && F(null, Yn);
5882
+ if (x.size === 0) {
5883
+ fe.current && g !== null && !((xe = b.current) != null && xe.isConnected) && F(null, Yn);
5884
5884
  return;
5885
5885
  }
5886
- fe.current = !0, b.current = y.keys().next().value;
5887
- const W = Y == null ? void 0 : Y.disabled, G = Y == null && h !== null;
5888
- if (!W && h === U.current && (X.current = !1), X.current && W && h === U.current)
5886
+ fe.current = !0, b.current = x.keys().next().value;
5887
+ const W = Y == null ? void 0 : Y.disabled, G = Y == null && g !== null;
5888
+ if (!W && g === U.current && (X.current = !1), X.current && W && g === U.current)
5889
5889
  return;
5890
- const Q = $.current;
5890
+ const ee = $.current;
5891
5891
  if (W || G) {
5892
5892
  const ae = re ?? null;
5893
- if (h === ae) {
5893
+ if (g === ae) {
5894
5894
  $.current = !1;
5895
5895
  return;
5896
5896
  }
5897
5897
  let Te = Yn;
5898
- Q ? Te = qn : W && (Te = mc), F(ae, Te);
5898
+ ee ? Te = qn : W && (Te = mc), F(ae, Te);
5899
5899
  return;
5900
5900
  }
5901
- Q && Y != null && (H(h, qn), $.current = !1);
5902
- }, [re, v, H, Y, x, y, h]);
5901
+ ee && Y != null && (H(g, qn), $.current = !1);
5902
+ }, [re, y, H, Y, v, x, g]);
5903
5903
  const ke = Tt("div", t, {
5904
5904
  state: {
5905
5905
  orientation: s,
@@ -5909,10 +5909,10 @@ const vo = /* @__PURE__ */ d.forwardRef(function(t, n) {
5909
5909
  props: u,
5910
5910
  stateAttributesMapping: Pt
5911
5911
  });
5912
- return /* @__PURE__ */ T(yn.Provider, {
5912
+ return /* @__PURE__ */ T(xn.Provider, {
5913
5913
  value: K,
5914
5914
  children: /* @__PURE__ */ T(bo, {
5915
- elementsRef: g,
5915
+ elementsRef: h,
5916
5916
  children: ke
5917
5917
  })
5918
5918
  });
@@ -5966,10 +5966,10 @@ function hc(e, t) {
5966
5966
  function yo(e) {
5967
5967
  return hc(e, "base-ui");
5968
5968
  }
5969
- const wn = /* @__PURE__ */ d.createContext(void 0);
5970
- process.env.NODE_ENV !== "production" && (wn.displayName = "CompositeRootContext");
5969
+ const En = /* @__PURE__ */ d.createContext(void 0);
5970
+ process.env.NODE_ENV !== "production" && (En.displayName = "CompositeRootContext");
5971
5971
  function xo(e = !1) {
5972
- const t = d.useContext(wn);
5972
+ const t = d.useContext(En);
5973
5973
  if (t === void 0 && !e)
5974
5974
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." : kt(16));
5975
5975
  return t;
@@ -6011,18 +6011,18 @@ function vc(e = {}) {
6011
6011
  isNativeButton: o
6012
6012
  });
6013
6013
  process.env.NODE_ENV !== "production" && d.useEffect(() => {
6014
- var p, h;
6014
+ var p, g;
6015
6015
  if (!s.current)
6016
6016
  return;
6017
6017
  const m = rt(s.current);
6018
6018
  if (o) {
6019
6019
  if (!m) {
6020
- const x = ((p = ge.captureOwnerStack) == null ? void 0 : p.call(ge)) || "";
6021
- pt(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${x}`);
6020
+ const v = ((p = ge.captureOwnerStack) == null ? void 0 : p.call(ge)) || "";
6021
+ pt(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${v}`);
6022
6022
  }
6023
6023
  } else if (m) {
6024
- const x = ((h = ge.captureOwnerStack) == null ? void 0 : h.call(ge)) || "";
6025
- pt(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${x}`);
6024
+ const v = ((g = ge.captureOwnerStack) == null ? void 0 : g.call(ge)) || "";
6025
+ pt(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${v}`);
6026
6026
  }
6027
6027
  }, [o]);
6028
6028
  const u = d.useCallback(() => {
@@ -6033,13 +6033,13 @@ function vc(e = {}) {
6033
6033
  const f = d.useCallback((m = {}) => {
6034
6034
  const {
6035
6035
  onClick: p,
6036
- onMouseDown: h,
6037
- onKeyUp: x,
6038
- onKeyDown: v,
6039
- onPointerDown: y,
6036
+ onMouseDown: g,
6037
+ onKeyUp: v,
6038
+ onKeyDown: y,
6039
+ onPointerDown: x,
6040
6040
  ...w
6041
6041
  } = m;
6042
- return hn({
6042
+ return bn({
6043
6043
  onClick(b) {
6044
6044
  if (t) {
6045
6045
  b.preventDefault();
@@ -6048,10 +6048,10 @@ function vc(e = {}) {
6048
6048
  p == null || p(b);
6049
6049
  },
6050
6050
  onMouseDown(b) {
6051
- t || h == null || h(b);
6051
+ t || g == null || g(b);
6052
6052
  },
6053
6053
  onKeyDown(b) {
6054
- if (t || (ht(b), v == null || v(b), b.baseUIHandlerPrevented))
6054
+ if (t || (ht(b), y == null || y(b), b.baseUIHandlerPrevented))
6055
6055
  return;
6056
6056
  const A = b.target === b.currentTarget, P = b.currentTarget, k = rt(P), R = !o && yc(P), M = A && (o ? k : !R), C = b.key === "Enter", S = b.key === " ", I = P.getAttribute("role"), z = (I == null ? void 0 : I.startsWith("menuitem")) || I === "option" || I === "gridcell";
6057
6057
  if (A && c && S) {
@@ -6064,7 +6064,7 @@ function vc(e = {}) {
6064
6064
  },
6065
6065
  onKeyUp(b) {
6066
6066
  if (!t) {
6067
- if (ht(b), x == null || x(b), b.target === b.currentTarget && o && c && rt(b.currentTarget) && b.key === " ") {
6067
+ if (ht(b), v == null || v(b), b.target === b.currentTarget && o && c && rt(b.currentTarget) && b.key === " ") {
6068
6068
  b.preventDefault();
6069
6069
  return;
6070
6070
  }
@@ -6076,19 +6076,19 @@ function vc(e = {}) {
6076
6076
  b.preventDefault();
6077
6077
  return;
6078
6078
  }
6079
- y == null || y(b);
6079
+ x == null || x(b);
6080
6080
  }
6081
6081
  }, o ? {
6082
6082
  type: "button"
6083
6083
  } : {
6084
6084
  role: "button"
6085
6085
  }, l, w);
6086
- }, [t, l, c, o]), g = J((m) => {
6086
+ }, [t, l, c, o]), h = J((m) => {
6087
6087
  s.current = m, u();
6088
6088
  });
6089
6089
  return {
6090
6090
  getButtonProps: f,
6091
- buttonRef: g
6091
+ buttonRef: h
6092
6092
  };
6093
6093
  }
6094
6094
  function rt(e) {
@@ -6115,36 +6115,36 @@ function Eo(e = {}) {
6115
6115
  elementsRef: l,
6116
6116
  labelsRef: u,
6117
6117
  nextIndexRef: f
6118
- } = lc(), g = d.useRef(-1), [m, p] = d.useState(i ?? (o === xc.GuessFromOrder ? () => {
6119
- if (g.current === -1) {
6120
- const v = f.current;
6121
- f.current += 1, g.current = v;
6118
+ } = lc(), h = d.useRef(-1), [m, p] = d.useState(i ?? (o === xc.GuessFromOrder ? () => {
6119
+ if (h.current === -1) {
6120
+ const y = f.current;
6121
+ f.current += 1, h.current = y;
6122
6122
  }
6123
- return g.current;
6124
- } : -1)), h = d.useRef(null), x = d.useCallback((v) => {
6125
- var y;
6126
- if (h.current = v, m !== -1 && v !== null && (l.current[m] = v, u)) {
6123
+ return h.current;
6124
+ } : -1)), g = d.useRef(null), v = d.useCallback((y) => {
6125
+ var x;
6126
+ if (g.current = y, m !== -1 && y !== null && (l.current[m] = y, u)) {
6127
6127
  const w = t !== void 0;
6128
- u.current[m] = w ? t : ((y = r == null ? void 0 : r.current) == null ? void 0 : y.textContent) ?? v.textContent;
6128
+ u.current[m] = w ? t : ((x = r == null ? void 0 : r.current) == null ? void 0 : x.textContent) ?? y.textContent;
6129
6129
  }
6130
6130
  }, [m, l, u, t, r]);
6131
6131
  return Z(() => {
6132
6132
  if (i != null)
6133
6133
  return;
6134
- const v = h.current;
6135
- if (v)
6136
- return s(v, n), () => {
6137
- a(v);
6134
+ const y = g.current;
6135
+ if (y)
6136
+ return s(y, n), () => {
6137
+ a(y);
6138
6138
  };
6139
6139
  }, [i, s, a, n]), Z(() => {
6140
6140
  if (i == null)
6141
- return c((v) => {
6141
+ return c((y) => {
6142
6142
  var w;
6143
- const y = h.current ? (w = v.get(h.current)) == null ? void 0 : w.index : null;
6144
- y != null && p(y);
6143
+ const x = g.current ? (w = y.get(g.current)) == null ? void 0 : w.index : null;
6144
+ x != null && p(x);
6145
6145
  });
6146
6146
  }, [i, c, p]), {
6147
- ref: x,
6147
+ ref: v,
6148
6148
  index: m
6149
6149
  };
6150
6150
  }
@@ -6175,10 +6175,10 @@ function wc(e = {}) {
6175
6175
  index: i
6176
6176
  };
6177
6177
  }
6178
- const En = /* @__PURE__ */ d.createContext(void 0);
6179
- process.env.NODE_ENV !== "production" && (En.displayName = "TabsListContext");
6178
+ const Cn = /* @__PURE__ */ d.createContext(void 0);
6179
+ process.env.NODE_ENV !== "production" && (Cn.displayName = "TabsListContext");
6180
6180
  function Ec() {
6181
- const e = d.useContext(En);
6181
+ const e = d.useContext(Cn);
6182
6182
  if (e === void 0)
6183
6183
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>." : kt(65));
6184
6184
  return e;
@@ -6197,7 +6197,7 @@ function Rc(e, t) {
6197
6197
  const n = (r = t.getRootNode) == null ? void 0 : r.call(t);
6198
6198
  if (e.contains(t))
6199
6199
  return !0;
6200
- if (n && Ut(n)) {
6200
+ if (n && jt(n)) {
6201
6201
  let o = t;
6202
6202
  for (; o; ) {
6203
6203
  if (e === o)
@@ -6234,10 +6234,10 @@ function Ue(e, {
6234
6234
  let i = t;
6235
6235
  do
6236
6236
  i += n ? -o : o;
6237
- while (i >= 0 && i <= e.length - 1 && Qt(e, i, r));
6237
+ while (i >= 0 && i <= e.length - 1 && en(e, i, r));
6238
6238
  return i;
6239
6239
  }
6240
- function Qt(e, t, n) {
6240
+ function en(e, t, n) {
6241
6241
  if (typeof n == "function" ? n(t) : (n == null ? void 0 : n.includes(t)) ?? !1)
6242
6242
  return !0;
6243
6243
  const o = e[t];
@@ -6261,14 +6261,14 @@ const Co = /* @__PURE__ */ d.forwardRef(function(t, n) {
6261
6261
  ...u
6262
6262
  } = t, {
6263
6263
  value: f,
6264
- getTabPanelIdByValue: g,
6264
+ getTabPanelIdByValue: h,
6265
6265
  orientation: m,
6266
6266
  tabActivationDirection: p
6267
- } = xn(), {
6268
- activateOnFocus: h,
6269
- highlightedTabIndex: x,
6270
- onTabActivation: v,
6271
- registerTabResizeObserverElement: y,
6267
+ } = wn(), {
6268
+ activateOnFocus: g,
6269
+ highlightedTabIndex: v,
6270
+ onTabActivation: y,
6271
+ registerTabResizeObserverElement: x,
6272
6272
  setHighlightedTabIndex: w,
6273
6273
  tabsListElement: b
6274
6274
  } = Ec(), A = yo(a), P = d.useMemo(() => ({
@@ -6287,13 +6287,13 @@ const Co = /* @__PURE__ */ d.forwardRef(function(t, n) {
6287
6287
  Z(() => {
6288
6288
  const $ = I.current;
6289
6289
  if ($)
6290
- return y($);
6291
- }, [y]), Z(() => {
6290
+ return x($);
6291
+ }, [x]), Z(() => {
6292
6292
  if (S.current) {
6293
6293
  S.current = !1;
6294
6294
  return;
6295
6295
  }
6296
- if (!(C && M > -1 && x !== M))
6296
+ if (!(C && M > -1 && v !== M))
6297
6297
  return;
6298
6298
  const $ = b;
6299
6299
  if ($ != null) {
@@ -6302,7 +6302,7 @@ const Co = /* @__PURE__ */ d.forwardRef(function(t, n) {
6302
6302
  return;
6303
6303
  }
6304
6304
  o || w(M);
6305
- }, [C, M, x, w, o, b]);
6305
+ }, [C, M, v, w, o, b]);
6306
6306
  const {
6307
6307
  getButtonProps: z,
6308
6308
  buttonRef: L
@@ -6310,15 +6310,15 @@ const Co = /* @__PURE__ */ d.forwardRef(function(t, n) {
6310
6310
  disabled: o,
6311
6311
  native: c,
6312
6312
  focusableWhenDisabled: !0
6313
- }), H = g(s), D = d.useRef(!1), V = d.useRef(!1);
6313
+ }), H = h(s), D = d.useRef(!1), V = d.useRef(!1);
6314
6314
  function E($) {
6315
- C || o || v(s, Jt(Kn, $.nativeEvent, void 0, {
6315
+ C || o || y(s, Qt(Kn, $.nativeEvent, void 0, {
6316
6316
  activationDirection: "none"
6317
6317
  }));
6318
6318
  }
6319
6319
  function _($) {
6320
- C || (M > -1 && !o && w(M), !o && h && (!D.current || // keyboard or touch focus
6321
- D.current && V.current) && v(s, Jt(Kn, $.nativeEvent, void 0, {
6320
+ C || (M > -1 && !o && w(M), !o && g && (!D.current || // keyboard or touch focus
6321
+ D.current && V.current) && y(s, Qt(Kn, $.nativeEvent, void 0, {
6322
6322
  activationDirection: "none"
6323
6323
  })));
6324
6324
  }
@@ -6454,7 +6454,7 @@ function $c(e, t = !1, n = !0) {
6454
6454
  if (s == null)
6455
6455
  return;
6456
6456
  const a = s, c = () => {
6457
- en.flushSync(o);
6457
+ tn.flushSync(o);
6458
6458
  };
6459
6459
  if (typeof a.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED) {
6460
6460
  o();
@@ -6562,17 +6562,17 @@ const Wc = {
6562
6562
  value: l,
6563
6563
  getTabIdByPanelValue: u,
6564
6564
  orientation: f,
6565
- tabActivationDirection: g,
6565
+ tabActivationDirection: h,
6566
6566
  registerMountedTabPanel: m,
6567
6567
  unregisterMountedTabPanel: p
6568
- } = xn(), h = yo(), x = d.useMemo(() => ({
6569
- id: h,
6568
+ } = wn(), g = yo(), v = d.useMemo(() => ({
6569
+ id: g,
6570
6570
  value: o
6571
- }), [h, o]), {
6572
- ref: v,
6573
- index: y
6571
+ }), [g, o]), {
6572
+ ref: y,
6573
+ index: x
6574
6574
  } = Eo({
6575
- metadata: x
6575
+ metadata: v
6576
6576
  }), w = o === l, {
6577
6577
  mounted: b,
6578
6578
  transitionStatus: A,
@@ -6580,19 +6580,19 @@ const Wc = {
6580
6580
  } = Fc(w), k = !b, R = u(o), M = {
6581
6581
  hidden: k,
6582
6582
  orientation: f,
6583
- tabActivationDirection: g,
6583
+ tabActivationDirection: h,
6584
6584
  transitionStatus: A
6585
6585
  }, C = d.useRef(null), S = Tt("div", t, {
6586
6586
  state: M,
6587
- ref: [n, v, C],
6587
+ ref: [n, y, C],
6588
6588
  props: [{
6589
6589
  "aria-labelledby": R,
6590
6590
  hidden: k,
6591
- id: h,
6591
+ id: g,
6592
6592
  role: "tabpanel",
6593
6593
  tabIndex: w ? 0 : -1,
6594
6594
  inert: Sc(!w),
6595
- [Vc.index]: y
6595
+ [Vc.index]: x
6596
6596
  }, c],
6597
6597
  stateAttributesMapping: Wc
6598
6598
  });
@@ -6603,11 +6603,11 @@ const Wc = {
6603
6603
  w || P(!1);
6604
6604
  }
6605
6605
  }), Z(() => {
6606
- if (!(k && !s) && h != null)
6607
- return m(o, h), () => {
6608
- p(o, h);
6606
+ if (!(k && !s) && g != null)
6607
+ return m(o, g), () => {
6608
+ p(o, g);
6609
6609
  };
6610
- }, [k, s, o, h, m, p]), s || b ? S : null;
6610
+ }, [k, s, o, g, m, p]), s || b ? S : null;
6611
6611
  });
6612
6612
  process.env.NODE_ENV !== "production" && (Ro.displayName = "TabsPanel");
6613
6613
  function Hc(e) {
@@ -6673,11 +6673,11 @@ function el(e) {
6673
6673
  enableHomeAndEndKeys: l = !1,
6674
6674
  stopEventPropagation: u = !1,
6675
6675
  disabledIndices: f,
6676
- modifierKeys: g = Qc
6677
- } = e, [m, p] = d.useState(0), h = r != null, x = d.useRef(null), v = mt(x, c), y = d.useRef([]), w = d.useRef(!1), b = s ?? m, A = J((C, S = !1) => {
6676
+ modifierKeys: h = Qc
6677
+ } = e, [m, p] = d.useState(0), g = r != null, v = d.useRef(null), y = mt(v, c), x = d.useRef([]), w = d.useRef(!1), b = s ?? m, A = J((C, S = !1) => {
6678
6678
  if ((a ?? p)(C), S) {
6679
- const I = y.current[C];
6680
- rr(x.current, I, i, n);
6679
+ const I = x.current[C];
6680
+ rr(v.current, I, i, n);
6681
6681
  }
6682
6682
  }), P = J((C) => {
6683
6683
  if (C.size === 0 || w.current)
@@ -6686,28 +6686,28 @@ function el(e) {
6686
6686
  const S = Array.from(C.keys()), I = S.find((L) => L == null ? void 0 : L.hasAttribute(wo)) ?? null, z = I ? S.indexOf(I) : -1;
6687
6687
  if (z !== -1)
6688
6688
  A(z);
6689
- else if (Qt(S, b, f)) {
6689
+ else if (en(S, b, f)) {
6690
6690
  const L = Ue(S, {
6691
6691
  disabledIndices: f
6692
6692
  });
6693
6693
  zt(S, L) || A(L);
6694
6694
  }
6695
- rr(x.current, I, i, n);
6695
+ rr(v.current, I, i, n);
6696
6696
  });
6697
6697
  Z(() => {
6698
6698
  if (f == null || s != null || !w.current)
6699
6699
  return;
6700
- const C = y.current;
6701
- if (Qt(C, b, f)) {
6700
+ const C = x.current;
6701
+ if (en(C, b, f)) {
6702
6702
  const S = Ue(C, {
6703
6703
  disabledIndices: f
6704
6704
  });
6705
6705
  zt(C, S) || A(S);
6706
6706
  }
6707
- }, [f, s, b, y, A]);
6708
- const k = J((C, S, I) => o ? o(C, S, I, y) : I), R = J((C) => {
6707
+ }, [f, s, b, x, A]);
6708
+ const k = J((C, S, I) => o ? o(C, S, I, x) : I), R = J((C) => {
6709
6709
  const S = l ? Gc : To;
6710
- if (!S.has(C.key) || tl(C, g) || !x.current)
6710
+ if (!S.has(C.key) || tl(C, h) || !v.current)
6711
6711
  return;
6712
6712
  const z = i === "rtl", L = z ? bt : vt, H = {
6713
6713
  horizontal: L,
@@ -6724,10 +6724,10 @@ function el(e) {
6724
6724
  return;
6725
6725
  }
6726
6726
  let _ = b;
6727
- const K = Ac(y, f), Y = kc(y, f);
6727
+ const K = Ac(x, f), Y = kc(x, f);
6728
6728
  r != null && (_ = r({
6729
6729
  disabledIndices: f,
6730
- elementsRef: y,
6730
+ elementsRef: x,
6731
6731
  event: C,
6732
6732
  highlightedIndex: b,
6733
6733
  loopFocus: t,
@@ -6745,32 +6745,32 @@ function el(e) {
6745
6745
  horizontal: [D],
6746
6746
  vertical: [je],
6747
6747
  both: [D, je]
6748
- }[n], U = h ? S : {
6748
+ }[n], U = g ? S : {
6749
6749
  horizontal: l ? Uc : Ao,
6750
6750
  vertical: l ? jc : ko,
6751
6751
  both: S
6752
6752
  }[n];
6753
- l && (C.key === St ? _ = K : C.key === Nt && (_ = Y)), _ === b && (re.includes(C.key) || $.includes(C.key)) && (t && _ === Y && re.includes(C.key) ? (_ = K, o && (_ = o(C, b, _, y))) : t && _ === K && $.includes(C.key) ? (_ = Y, o && (_ = o(C, b, _, y))) : _ = Ue(y.current, {
6753
+ l && (C.key === St ? _ = K : C.key === Nt && (_ = Y)), _ === b && (re.includes(C.key) || $.includes(C.key)) && (t && _ === Y && re.includes(C.key) ? (_ = K, o && (_ = o(C, b, _, x))) : t && _ === K && $.includes(C.key) ? (_ = Y, o && (_ = o(C, b, _, x))) : _ = Ue(x.current, {
6754
6754
  startingIndex: _,
6755
6755
  decrement: $.includes(C.key),
6756
6756
  disabledIndices: f
6757
- })), _ !== b && !zt(y.current, _) && (u && C.stopPropagation(), U.has(C.key) && C.preventDefault(), A(_, !0), queueMicrotask(() => {
6757
+ })), _ !== b && !zt(x.current, _) && (u && C.stopPropagation(), U.has(C.key) && C.preventDefault(), A(_, !0), queueMicrotask(() => {
6758
6758
  var X;
6759
- (X = y.current[_]) == null || X.focus();
6759
+ (X = x.current[_]) == null || X.focus();
6760
6760
  }));
6761
6761
  });
6762
6762
  return {
6763
6763
  props: {
6764
- ref: v,
6764
+ ref: y,
6765
6765
  onFocus(C) {
6766
- const S = x.current, I = er(C.nativeEvent);
6766
+ const S = v.current, I = er(C.nativeEvent);
6767
6767
  !S || I == null || !nr(I) || I.setSelectionRange(0, I.value.length ?? 0);
6768
6768
  },
6769
6769
  onKeyDown: R
6770
6770
  },
6771
6771
  highlightedIndex: b,
6772
6772
  onHighlightedIndexChange: A,
6773
- elementsRef: y,
6773
+ elementsRef: x,
6774
6774
  disabledIndices: f,
6775
6775
  onMapChange: P,
6776
6776
  relayKeyboardEvent: R
@@ -6793,21 +6793,21 @@ function rl(e) {
6793
6793
  render: t,
6794
6794
  className: n,
6795
6795
  style: r,
6796
- refs: o = Zt,
6797
- props: i = Zt,
6796
+ refs: o = Jt,
6797
+ props: i = Jt,
6798
6798
  state: s = Ne,
6799
6799
  stateAttributesMapping: a,
6800
6800
  highlightedIndex: c,
6801
6801
  onHighlightedIndexChange: l,
6802
6802
  orientation: u,
6803
6803
  grid: f,
6804
- loopFocus: g,
6804
+ loopFocus: h,
6805
6805
  onLoop: m,
6806
6806
  enableHomeAndEndKeys: p,
6807
- onMapChange: h,
6808
- stopEventPropagation: x = !0,
6809
- rootRef: v,
6810
- disabledIndices: y,
6807
+ onMapChange: g,
6808
+ stopEventPropagation: v = !0,
6809
+ rootRef: y,
6810
+ disabledIndices: x,
6811
6811
  modifierKeys: w,
6812
6812
  highlightItemOnHover: b = !1,
6813
6813
  tag: A = "div",
@@ -6821,16 +6821,16 @@ function rl(e) {
6821
6821
  relayKeyboardEvent: z
6822
6822
  } = el({
6823
6823
  grid: f,
6824
- loopFocus: g,
6824
+ loopFocus: h,
6825
6825
  onLoop: m,
6826
6826
  orientation: u,
6827
6827
  highlightedIndex: c,
6828
6828
  onHighlightedIndexChange: l,
6829
- rootRef: v,
6830
- stopEventPropagation: x,
6829
+ rootRef: y,
6830
+ stopEventPropagation: v,
6831
6831
  enableHomeAndEndKeys: p,
6832
6832
  direction: k,
6833
- disabledIndices: y,
6833
+ disabledIndices: x,
6834
6834
  modifierKeys: w
6835
6835
  }), L = Tt(A, e, {
6836
6836
  state: s,
@@ -6843,12 +6843,12 @@ function rl(e) {
6843
6843
  highlightItemOnHover: b,
6844
6844
  relayKeyboardEvent: z
6845
6845
  }), [M, C, b, z]);
6846
- return /* @__PURE__ */ T(wn.Provider, {
6846
+ return /* @__PURE__ */ T(En.Provider, {
6847
6847
  value: H,
6848
6848
  children: /* @__PURE__ */ T(bo, {
6849
6849
  elementsRef: S,
6850
6850
  onMapChange: (D) => {
6851
- h == null || h(D), I(D);
6851
+ g == null || g(D), I(D);
6852
6852
  },
6853
6853
  children: L
6854
6854
  })
@@ -6866,25 +6866,25 @@ const So = /* @__PURE__ */ d.forwardRef(function(t, n) {
6866
6866
  onValueChange: l,
6867
6867
  orientation: u,
6868
6868
  value: f,
6869
- setTabMap: g,
6869
+ setTabMap: h,
6870
6870
  tabActivationDirection: m
6871
- } = xn(), [p, h] = d.useState(0), [x, v] = d.useState(null), y = d.useRef(/* @__PURE__ */ new Set()), w = d.useRef(/* @__PURE__ */ new Set()), b = d.useRef(null);
6871
+ } = wn(), [p, g] = d.useState(0), [v, y] = d.useState(null), x = d.useRef(/* @__PURE__ */ new Set()), w = d.useRef(/* @__PURE__ */ new Set()), b = d.useRef(null);
6872
6872
  Z(() => {
6873
6873
  if (typeof ResizeObserver > "u")
6874
6874
  return;
6875
6875
  const S = new ResizeObserver(() => {
6876
- y.current.forEach((I) => {
6876
+ x.current.forEach((I) => {
6877
6877
  I();
6878
6878
  });
6879
6879
  });
6880
- return b.current = S, x && S.observe(x), w.current.forEach((I) => {
6880
+ return b.current = S, v && S.observe(v), w.current.forEach((I) => {
6881
6881
  S.observe(I);
6882
6882
  }), () => {
6883
6883
  S.disconnect(), b.current = null;
6884
6884
  };
6885
- }, [x]);
6886
- const A = J((S) => (y.current.add(S), () => {
6887
- y.current.delete(S);
6885
+ }, [v]);
6886
+ const A = J((S) => (x.current.add(S), () => {
6887
+ x.current.delete(S);
6888
6888
  })), P = J((S) => {
6889
6889
  var I;
6890
6890
  return w.current.add(S), (I = b.current) == null || I.observe(S), () => {
@@ -6905,26 +6905,26 @@ const So = /* @__PURE__ */ d.forwardRef(function(t, n) {
6905
6905
  registerIndicatorUpdateListener: A,
6906
6906
  registerTabResizeObserverElement: P,
6907
6907
  onTabActivation: k,
6908
- setHighlightedTabIndex: h,
6909
- tabsListElement: x
6910
- }), [r, p, A, P, k, h, x]);
6911
- return /* @__PURE__ */ T(En.Provider, {
6908
+ setHighlightedTabIndex: g,
6909
+ tabsListElement: v
6910
+ }), [r, p, A, P, k, g, v]);
6911
+ return /* @__PURE__ */ T(Cn.Provider, {
6912
6912
  value: C,
6913
6913
  children: /* @__PURE__ */ T(rl, {
6914
6914
  render: s,
6915
6915
  className: o,
6916
6916
  style: a,
6917
6917
  state: R,
6918
- refs: [n, v],
6918
+ refs: [n, y],
6919
6919
  props: [M, c],
6920
6920
  stateAttributesMapping: Pt,
6921
6921
  highlightedIndex: p,
6922
6922
  enableHomeAndEndKeys: !0,
6923
6923
  loopFocus: i,
6924
6924
  orientation: u,
6925
- onHighlightedIndexChange: h,
6926
- onMapChange: g,
6927
- disabledIndices: Zt
6925
+ onHighlightedIndexChange: g,
6926
+ onMapChange: h,
6927
+ disabledIndices: Jt
6928
6928
  })
6929
6929
  });
6930
6930
  });
@@ -6939,7 +6939,7 @@ function ol({
6939
6939
  {
6940
6940
  orientation: t,
6941
6941
  "data-slot": "tabs",
6942
- className: ee(
6942
+ className: Q(
6943
6943
  "group/tabs flex h-full min-h-0 flex-col gap-2",
6944
6944
  e
6945
6945
  ),
@@ -6971,7 +6971,7 @@ function sl({
6971
6971
  {
6972
6972
  "data-slot": "tabs-list",
6973
6973
  "data-variant": t,
6974
- className: ee(il({ variant: t }), e),
6974
+ className: Q(il({ variant: t }), e),
6975
6975
  ...n
6976
6976
  }
6977
6977
  );
@@ -6981,7 +6981,7 @@ function al({ className: e, ...t }) {
6981
6981
  Co,
6982
6982
  {
6983
6983
  "data-slot": "tabs-trigger",
6984
- className: ee(
6984
+ className: Q(
6985
6985
  "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
6986
6986
  "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
6987
6987
  "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground",
@@ -6997,7 +6997,7 @@ function cl({ className: e, ...t }) {
6997
6997
  Ro,
6998
6998
  {
6999
6999
  "data-slot": "tabs-content",
7000
- className: ee("flex-1 text-sm outline-none", e),
7000
+ className: Q("flex-1 text-sm outline-none", e),
7001
7001
  ...t
7002
7002
  }
7003
7003
  );
@@ -7011,9 +7011,11 @@ const gl = ({
7011
7011
  showTabNumbers: i = !0,
7012
7012
  variant: s = "default"
7013
7013
  }) => {
7014
- var u;
7015
- const a = n || t || ((u = e[0]) == null ? void 0 : u.id), c = {
7016
- default: ee(
7014
+ var g;
7015
+ const a = n || t || ((g = e[0]) == null ? void 0 : g.id), [c, l] = $t.useState(a), u = n ?? c, f = (v) => {
7016
+ n || l(v), r == null || r(v);
7017
+ }, h = {
7018
+ default: Q(
7017
7019
  "group relative px-6 py-3 text-sm font-medium transition-all duration-300 ease-out",
7018
7020
  "text-muted-foreground hover:text-foreground",
7019
7021
  "data-[state=active]:text-foreground data-[state=active]:font-semibold",
@@ -7022,7 +7024,7 @@ const gl = ({
7022
7024
  "disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:text-muted-foreground",
7023
7025
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-blue-500"
7024
7026
  ),
7025
- gradient: ee(
7027
+ gradient: Q(
7026
7028
  "group relative px-6 py-3 text-sm font-medium transition-all duration-300 ease-out",
7027
7029
  "text-muted-foreground/80 hover:text-muted-foreground",
7028
7030
  "data-[state=active]:text-white data-[state=active]:font-semibold",
@@ -7032,7 +7034,7 @@ const gl = ({
7032
7034
  "disabled:opacity-50 disabled:cursor-not-allowed",
7033
7035
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-blue-500"
7034
7036
  ),
7035
- minimal: ee(
7037
+ minimal: Q(
7036
7038
  "group relative px-4 py-2 text-sm font-medium transition-all duration-300",
7037
7039
  "text-muted-foreground hover:text-foreground hover:bg-secondary/50 rounded-md",
7038
7040
  "data-[state=active]:text-foreground data-[state=active]:bg-secondary",
@@ -7042,84 +7044,95 @@ const gl = ({
7042
7044
  ),
7043
7045
  // Matches the Figma reference: bordered number chip, green accent on active,
7044
7046
  // slim underline beneath only the active tab.
7045
- outline: ee(
7047
+ outline: Q(
7046
7048
  "group relative px-4 py-3 text-sm font-semibold transition-colors duration-200 ease-out",
7047
- "border-solid border-t-[3px] border-x-[1px] border-b-0 border-transparent",
7048
7049
  "text-foreground/70 hover:text-foreground",
7049
- "data-[state=active]:border-[#059669] data-[state=active]:text-[#059669] data-[state=active]:font-bold",
7050
7050
  "disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:text-foreground/70",
7051
7051
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-emerald-500"
7052
7052
  )
7053
- }, l = {
7054
- default: ee(
7053
+ }, m = {
7054
+ default: Q(
7055
7055
  "bg-blue-100/60 text-blue-600",
7056
7056
  "group-data-[state=active]:bg-blue-500 group-data-[state=active]:text-white"
7057
7057
  ),
7058
- gradient: ee(
7058
+ gradient: Q(
7059
7059
  "text-white/60",
7060
7060
  "group-data-[state=active]:bg-white/20 group-data-[state=active]:text-white"
7061
7061
  ),
7062
7062
  minimal: "bg-secondary/60 text-secondary-foreground",
7063
- outline: ee(
7063
+ outline: Q(
7064
7064
  "border border-border text-muted-foreground bg-transparent rounded-[6px]",
7065
7065
  "group-data-[state=active]:border-[#059669] group-data-[state=active]:text-[#059669]"
7066
7066
  )
7067
+ }, p = {
7068
+ borderTopWidth: 3,
7069
+ borderRightWidth: 1,
7070
+ borderBottomWidth: 0,
7071
+ borderLeftWidth: 1,
7072
+ borderStyle: "solid",
7073
+ borderColor: "#059669",
7074
+ color: "#059669",
7075
+ fontWeight: 700
7067
7076
  };
7068
7077
  return /* @__PURE__ */ be(
7069
7078
  ol,
7070
7079
  {
7071
- value: n || a,
7072
- onValueChange: r,
7080
+ value: u,
7081
+ onValueChange: f,
7073
7082
  defaultValue: t,
7074
- className: ee("w-full h-full min-h-0 flex flex-col", o),
7083
+ className: Q("w-full h-full min-h-0 flex flex-col", o),
7075
7084
  children: [
7076
7085
  /* @__PURE__ */ T(
7077
7086
  sl,
7078
7087
  {
7079
- className: ee(
7088
+ className: Q(
7080
7089
  "inline-flex gap-1 rounded-none bg-transparent h-auto p-0 w-full border-b shrink-0",
7081
7090
  s === "default" && "border-b border-border",
7082
7091
  s === "gradient" && "border-b border-border/30 gap-2 bg-background/50 px-2 py-2 rounded-lg",
7083
7092
  s === "minimal" && "border-b border-border/50 gap-0",
7084
7093
  s === "outline" && "border-b border-border gap-0 justify-start"
7085
7094
  ),
7086
- children: e.map((f, g) => /* @__PURE__ */ T(
7095
+ children: e.map((v, y) => /* @__PURE__ */ T(
7087
7096
  al,
7088
7097
  {
7089
- value: f.id,
7090
- disabled: f.disabled,
7091
- className: ee(
7092
- c[s],
7098
+ value: v.id,
7099
+ disabled: v.disabled,
7100
+ className: Q(
7101
+ h[s],
7093
7102
  s === "outline" && "flex-none"
7094
7103
  ),
7104
+ style: s === "outline" && u === v.id ? p : void 0,
7095
7105
  children: /* @__PURE__ */ be("div", { className: "flex items-center gap-2", children: [
7096
7106
  i && /* @__PURE__ */ T(
7097
7107
  "span",
7098
7108
  {
7099
- className: ee(
7109
+ className: Q(
7100
7110
  "inline-flex items-center justify-center w-5 h-5 text-xs font-bold transition-all duration-200",
7101
7111
  s !== "outline" && "rounded-full",
7102
- l[s]
7112
+ m[s]
7103
7113
  ),
7104
- children: g + 1
7114
+ children: y + 1
7105
7115
  }
7106
7116
  ),
7107
- f.icon && /* @__PURE__ */ T("span", { className: "inline-flex", children: f.icon }),
7108
- /* @__PURE__ */ T("span", { children: f.label })
7117
+ v.icon && /* @__PURE__ */ T("span", { className: "inline-flex", children: v.icon }),
7118
+ /* @__PURE__ */ T("span", { children: v.label })
7109
7119
  ] })
7110
7120
  },
7111
- f.id
7121
+ v.id
7112
7122
  ))
7113
7123
  }
7114
7124
  ),
7115
- /* @__PURE__ */ T("div", { className: "relative flex-1 min-h-0 overflow-hidden", children: e.map((f) => /* @__PURE__ */ T(
7125
+ /* @__PURE__ */ T("div", { className: "relative flex-1 min-h-0 overflow-hidden", children: e.map((v) => /* @__PURE__ */ T(
7116
7126
  cl,
7117
7127
  {
7118
- value: f.id,
7119
- className: "mt-0 h-full min-h-0 overflow-y-auto animate-in fade-in-50 duration-300 data-[state=inactive]:hidden",
7120
- children: f.content
7128
+ value: v.id,
7129
+ className: Q(
7130
+ "mt-0 h-full min-h-0 overflow-y-auto animate-in fade-in-50 duration-300 data-[state=inactive]:hidden"
7131
+ ),
7132
+ style: s === "outline" && u === v.id ? p : void 0,
7133
+ children: v.content
7121
7134
  },
7122
- f.id
7135
+ v.id
7123
7136
  )) })
7124
7137
  ]
7125
7138
  }
@@ -7130,10 +7143,10 @@ export {
7130
7143
  gl as CustomTabs,
7131
7144
  pl as ExportButton,
7132
7145
  so as Tooltip,
7133
- mn as TooltipContent,
7146
+ gn as TooltipContent,
7134
7147
  io as TooltipProvider,
7135
7148
  ao as TooltipTrigger,
7136
7149
  ml as TruncatedText,
7137
7150
  Da as buttonVariants,
7138
- ee as cn
7151
+ Q as cn
7139
7152
  };