aravint-ui-navigation 1.0.8 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,26 +25,26 @@ 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 h = An(u) || An(f);
29
- return o[l][h];
28
+ const g = An(u) || An(f);
29
+ return o[l][g];
30
30
  }), a = n && Object.entries(n).reduce((l, u) => {
31
- let [f, h] = u;
32
- return h === void 0 || (l[f] = h), l;
31
+ let [f, g] = u;
32
+ return g === void 0 || (l[f] = g), l;
33
33
  }, {}), c = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((l, u) => {
34
- let { class: f, className: h, ...m } = u;
34
+ let { class: f, className: g, ...m } = u;
35
35
  return Object.entries(m).every((p) => {
36
- let [g, x] = p;
36
+ let [h, x] = p;
37
37
  return Array.isArray(x) ? x.includes({
38
38
  ...i,
39
39
  ...a
40
- }[g]) : {
40
+ }[h]) : {
41
41
  ...i,
42
42
  ...a
43
- }[g] === x;
43
+ }[h] === x;
44
44
  }) ? [
45
45
  ...l,
46
46
  f,
47
- h
47
+ g
48
48
  ] : l;
49
49
  }, []);
50
50
  return kn(e, s, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
@@ -156,23 +156,23 @@ 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 g = o[p];
159
+ let h = o[p];
160
160
  if (s === 0 && a === 0) {
161
- if (g === Ft) {
161
+ if (h === Ft) {
162
162
  i.push(o.slice(c, p)), c = p + jo;
163
163
  continue;
164
164
  }
165
- if (g === "/") {
165
+ if (h === "/") {
166
166
  l = p;
167
167
  continue;
168
168
  }
169
169
  }
170
- g === "[" ? s++ : g === "]" ? s-- : g === "(" ? a++ : g === ")" && a--;
170
+ h === "[" ? s++ : h === "]" ? s-- : h === "(" ? a++ : h === ")" && a--;
171
171
  }
172
- const u = i.length === 0 ? o : o.substring(c), f = Ko(u), h = f !== u, m = l && l > c ? l - c : void 0;
172
+ const u = i.length === 0 ? o : o.substring(c), f = Ko(u), g = f !== u, m = l && l > c ? l - c : void 0;
173
173
  return {
174
174
  modifiers: i,
175
- hasImportantModifier: h,
175
+ hasImportantModifier: g,
176
176
  baseClassName: f,
177
177
  maybePostfixModifierPosition: m
178
178
  };
@@ -222,16 +222,16 @@ 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: h,
225
+ modifiers: g,
226
226
  hasImportantModifier: m,
227
227
  baseClassName: p,
228
- maybePostfixModifierPosition: g
228
+ maybePostfixModifierPosition: h
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 = !!g, v = r(x ? p.substring(0, g) : p);
234
+ let x = !!h, v = r(x ? p.substring(0, h) : p);
235
235
  if (!v) {
236
236
  if (!x) {
237
237
  c = u + (c.length > 0 ? " " + c : c);
@@ -243,7 +243,7 @@ const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kn = ar, c
243
243
  }
244
244
  x = !1;
245
245
  }
246
- const y = i(h).join(":"), w = m ? y + Bt : y, b = w + v;
246
+ const y = i(g).join(":"), w = m ? y + Bt : y, b = w + v;
247
247
  if (s.includes(b))
248
248
  continue;
249
249
  s.push(b);
@@ -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"), h = q("text-shadow"), m = q("drop-shadow"), p = q("blur"), g = 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"), 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 = () => [
306
306
  "center",
307
307
  "top",
308
308
  "bottom",
@@ -328,7 +328,7 @@ const q = (e) => {
328
328
  repeat: ["", "x", "y", "space", "round"]
329
329
  }], Y = () => ["auto", "cover", "contain", mi, di, {
330
330
  size: [O, N]
331
- }], ne = () => [Ot, He, Pe], $ = () => [
331
+ }], re = () => [Ot, He, Pe], $ = () => [
332
332
  // Deprecated since Tailwind CSS v4.0.0
333
333
  "",
334
334
  "none",
@@ -1336,21 +1336,21 @@ const q = (e) => {
1336
1336
  * @see https://tailwindcss.com/docs/gradient-color-stops
1337
1337
  */
1338
1338
  "gradient-from-pos": [{
1339
- from: ne()
1339
+ from: re()
1340
1340
  }],
1341
1341
  /**
1342
1342
  * Gradient Color Stops Via Position
1343
1343
  * @see https://tailwindcss.com/docs/gradient-color-stops
1344
1344
  */
1345
1345
  "gradient-via-pos": [{
1346
- via: ne()
1346
+ via: re()
1347
1347
  }],
1348
1348
  /**
1349
1349
  * Gradient Color Stops To Position
1350
1350
  * @see https://tailwindcss.com/docs/gradient-color-stops
1351
1351
  */
1352
1352
  "gradient-to-pos": [{
1353
- to: ne()
1353
+ to: re()
1354
1354
  }],
1355
1355
  /**
1356
1356
  * Gradient Color Stops From
@@ -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", h, et, Qe]
1779
+ "text-shadow": ["none", g, et, Qe]
1780
1780
  }],
1781
1781
  /**
1782
1782
  * Text Shadow Color
@@ -2276,7 +2276,7 @@ const q = (e) => {
2276
2276
  * @see https://tailwindcss.com/docs/perspective
2277
2277
  */
2278
2278
  perspective: [{
2279
- perspective: [g, O, N]
2279
+ perspective: [h, O, N]
2280
2280
  }],
2281
2281
  /**
2282
2282
  * Perspective Origin
@@ -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 ie(...e) {
2775
+ function ee(...e) {
2776
2776
  return yi(ar(e));
2777
2777
  }
2778
2778
  function me(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
@@ -2812,13 +2812,13 @@ function xr(e, t = []) {
2812
2812
  n = [...n, s];
2813
2813
  const l = (f) => {
2814
2814
  var v;
2815
- const { scope: h, children: m, ...p } = f, g = ((v = h == null ? void 0 : h[e]) == null ? void 0 : v[c]) || a, x = d.useMemo(() => p, Object.values(p));
2816
- return /* @__PURE__ */ T(g.Provider, { value: x, children: m });
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 });
2817
2817
  };
2818
2818
  l.displayName = i + "Provider";
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);
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);
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}\``);
@@ -2964,21 +2964,21 @@ 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), 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), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), v = g.indexOf(x), y = u ? g.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), 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) => {
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
- }, h), P = _i((k) => {
2970
+ }, g), 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
- }, h);
2973
+ }, g);
2974
2974
  return Si((k) => {
2975
2975
  y === l.layers.size - 1 && (r == null || r(k), !k.defaultPrevented && a && (k.preventDefault(), a()));
2976
- }, h), d.useEffect(() => {
2976
+ }, g), d.useEffect(() => {
2977
2977
  if (u)
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);
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);
2980
2980
  };
2981
- }, [u, h, n, l]), d.useEffect(() => () => {
2981
+ }, [u, g, 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({});
@@ -3075,7 +3075,7 @@ function Bi(e) {
3075
3075
  n((r) => r ?? String($i++));
3076
3076
  }, [e]), t ? `radix-${t}` : "";
3077
3077
  }
3078
- const Fi = ["top", "right", "bottom", "left"], Ce = Math.min, ee = Math.max, lt = Math.round, tt = Math.floor, ue = (e) => ({
3078
+ const Fi = ["top", "right", "bottom", "left"], Ce = Math.min, te = Math.max, lt = Math.round, tt = Math.floor, ue = (e) => ({
3079
3079
  x: e,
3080
3080
  y: e
3081
3081
  }), Vi = {
@@ -3085,7 +3085,7 @@ const Fi = ["top", "right", "bottom", "left"], Ce = Math.min, ee = Math.max, lt
3085
3085
  top: "bottom"
3086
3086
  };
3087
3087
  function Wt(e, t, n) {
3088
- return ee(e, Ce(t, n));
3088
+ return te(e, Ce(t, n));
3089
3089
  }
3090
3090
  function ve(e, t) {
3091
3091
  return typeof e == "function" ? e(t) : 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, h = r[a] / 2 - o[a] / 2;
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;
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] -= h * (n && l ? -1 : 1);
3222
+ m[s] -= g * (n && l ? -1 : 1);
3223
3223
  break;
3224
3224
  case "end":
3225
- m[s] += h * (n && l ? -1 : 1);
3225
+ m[s] += g * (n && l ? -1 : 1);
3226
3226
  break;
3227
3227
  }
3228
3228
  return m;
@@ -3241,9 +3241,9 @@ async function qi(e, t) {
3241
3241
  boundary: l = "clippingAncestors",
3242
3242
  rootBoundary: u = "viewport",
3243
3243
  elementContext: f = "floating",
3244
- altBoundary: h = !1,
3244
+ altBoundary: g = !1,
3245
3245
  padding: m = 0
3246
- } = ve(t, e), p = Ar(m), x = a[h ? f === "floating" ? "reference" : "floating" : f], v = dt(await i.getClippingRect({
3246
+ } = ve(t, e), p = Ar(m), x = a[g ? f === "floating" ? "reference" : "floating" : f], v = dt(await i.getClippingRect({
3247
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)),
3248
3248
  boundary: l,
3249
3249
  rootBoundary: u,
@@ -3289,10 +3289,10 @@ const Xi = 50, Zi = async (e, t, n) => {
3289
3289
  }), {
3290
3290
  x: u,
3291
3291
  y: f
3292
- } = _n(l, r, c), h = r, m = 0;
3292
+ } = _n(l, r, c), g = r, m = 0;
3293
3293
  const p = {};
3294
- for (let g = 0; g < i.length; g++) {
3295
- const x = i[g];
3294
+ for (let h = 0; h < i.length; h++) {
3295
+ const x = i[h];
3296
3296
  if (!x)
3297
3297
  continue;
3298
3298
  const {
@@ -3307,7 +3307,7 @@ const Xi = 50, Zi = async (e, t, n) => {
3307
3307
  x: u,
3308
3308
  y: f,
3309
3309
  initialPlacement: r,
3310
- placement: h,
3310
+ placement: g,
3311
3311
  strategy: o,
3312
3312
  middlewareData: p,
3313
3313
  rects: l,
@@ -3320,19 +3320,19 @@ const Xi = 50, Zi = async (e, t, n) => {
3320
3320
  u = w ?? u, f = b ?? f, p[v] = {
3321
3321
  ...p[v],
3322
3322
  ...A
3323
- }, P && m < Xi && (m++, typeof P == "object" && (P.placement && (h = P.placement), P.rects && (l = P.rects === !0 ? await s.getElementRects({
3323
+ }, P && m < Xi && (m++, typeof P == "object" && (P.placement && (g = 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, h, c)), g = -1);
3330
+ } = _n(l, g, c)), h = -1);
3331
3331
  }
3332
3332
  return {
3333
3333
  x: u,
3334
3334
  y: f,
3335
- placement: h,
3335
+ placement: g,
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), h = {
3357
+ const f = Ar(u), g = {
3358
3358
  x: n,
3359
3359
  y: r
3360
- }, m = on(o), p = rn(m), g = 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] - h[m] - i.floating[p], A = h[m] - i.reference[m], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
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));
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 - g[p] / 2 - 1, C = Ce(f[v], M), S = Ce(f[y], M), I = C, z = k - g[p] - S, L = k / 2 - g[p] / 2 + R, H = Wt(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;
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;
3364
3364
  return {
3365
- [m]: h[m] + V,
3365
+ [m]: g[m] + V,
3366
3366
  data: {
3367
3367
  [m]: H,
3368
3368
  centerOffset: L - H - V,
@@ -3389,16 +3389,16 @@ const Xi = 50, Zi = async (e, t, n) => {
3389
3389
  } = t, {
3390
3390
  mainAxis: u = !0,
3391
3391
  crossAxis: f = !0,
3392
- fallbackPlacements: h,
3392
+ fallbackPlacements: g,
3393
3393
  fallbackStrategy: m = "bestFit",
3394
3394
  fallbackAxisSideDirection: p = "none",
3395
- flipAlignment: g = !0,
3395
+ flipAlignment: h = !0,
3396
3396
  ...x
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 = h || (w || !g ? [ut(a)] : Hi(a)), P = p !== "none";
3401
- !h && P && A.push(...Ki(a, g, p, b));
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
3402
  const k = [a, ...A], R = await c.detectOverflow(t, x), M = [];
3403
3403
  let C = ((r = i.flip) == null ? void 0 : r.overflows) || [];
3404
3404
  if (u && M.push(R[v]), f) {
@@ -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: h,
3519
+ mainAxis: g,
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: h * l
3533
+ y: g * l
3534
3534
  } : {
3535
- x: h * l,
3535
+ x: g * l,
3536
3536
  y: m * u
3537
3537
  };
3538
3538
  }
@@ -3587,20 +3587,20 @@ 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), h = le(ye(o)), m = nn(h);
3591
- let p = u[m], g = u[h];
3590
+ }, f = await i.detectOverflow(t, l), g = le(ye(o)), m = nn(g);
3591
+ let p = u[m], h = u[g];
3592
3592
  if (s) {
3593
3593
  const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", w = p + f[v], b = p - f[y];
3594
3594
  p = Wt(w, p, b);
3595
3595
  }
3596
3596
  if (a) {
3597
- const v = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", w = g + f[v], b = g - f[y];
3598
- g = Wt(w, g, b);
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);
3599
3599
  }
3600
3600
  const x = c.fn({
3601
3601
  ...t,
3602
3602
  [m]: p,
3603
- [h]: g
3603
+ [g]: h
3604
3604
  });
3605
3605
  return {
3606
3606
  ...x,
@@ -3609,7 +3609,7 @@ const ns = function(e) {
3609
3609
  y: x.y - r,
3610
3610
  enabled: {
3611
3611
  [m]: s,
3612
- [h]: a
3612
+ [g]: 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), h = nn(f);
3636
- let m = u[h], p = u[f];
3637
- const g = ve(a, t), x = typeof g == "number" ? {
3638
- mainAxis: g,
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,
3639
3639
  crossAxis: 0
3640
3640
  } : {
3641
3641
  mainAxis: 0,
3642
3642
  crossAxis: 0,
3643
- ...g
3643
+ ...h
3644
3644
  };
3645
3645
  if (c) {
3646
- const w = h === "y" ? "height" : "width", b = i.reference[h] - i.floating[w] + x.mainAxis, A = i.reference[h] + i.reference[w] - x.mainAxis;
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;
3647
3647
  m < b ? m = b : m > A && (m = A);
3648
3648
  }
3649
3649
  if (l) {
3650
3650
  var v, y;
3651
- const w = h === "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);
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);
3652
3652
  p < A ? p = A : p > P && (p = P);
3653
3653
  }
3654
3654
  return {
3655
- [h]: m,
3655
+ [g]: 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), h = Fe(o), m = le(o) === "y", {
3675
+ } = ve(e, t), u = await s.detectOverflow(t, l), f = ye(o), g = Fe(o), m = le(o) === "y", {
3676
3676
  width: p,
3677
- height: g
3677
+ height: h
3678
3678
  } = i.floating;
3679
3679
  let x, v;
3680
- f === "top" || f === "bottom" ? (x = f, v = h === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (v = f, x = h === "end" ? "top" : "bottom");
3681
- const y = g - u.top - u.bottom, w = p - u.left - u.right, b = Ce(g - u[x], y), A = Ce(p - u[v], w), P = !t.middlewareData.shift;
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;
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 && !h) {
3684
- const C = ee(u.left, 0), S = ee(u.right, 0), I = ee(u.top, 0), z = ee(u.bottom, 0);
3685
- m ? R = p - 2 * (C !== 0 || S !== 0 ? C + S : ee(u.left, u.right)) : k = g - 2 * (I !== 0 || z !== 0 ? I + z : ee(u.top, u.bottom));
3683
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = w), (r = t.middlewareData.shift) != null && r.enabled.y && (k = y), P && !g) {
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));
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 || g !== M.height ? {
3693
+ return p !== M.width || h !== M.height ? {
3694
3694
  reset: {
3695
3695
  rects: !0
3696
3696
  }
@@ -3704,7 +3704,7 @@ function xt() {
3704
3704
  function Ve(e) {
3705
3705
  return Tr(e) ? (e.nodeName || "").toLowerCase() : "#document";
3706
3706
  }
3707
- function te(e) {
3707
+ function ne(e) {
3708
3708
  var t;
3709
3709
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
3710
3710
  }
@@ -3713,16 +3713,16 @@ function de(e) {
3713
3713
  return (t = (Tr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
3714
3714
  }
3715
3715
  function Tr(e) {
3716
- return xt() ? e instanceof Node || e instanceof te(e).Node : !1;
3716
+ return xt() ? e instanceof Node || e instanceof ne(e).Node : !1;
3717
3717
  }
3718
3718
  function se(e) {
3719
- return xt() ? e instanceof Element || e instanceof te(e).Element : !1;
3719
+ return xt() ? e instanceof Element || e instanceof ne(e).Element : !1;
3720
3720
  }
3721
- function oe(e) {
3722
- return xt() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
3721
+ function ie(e) {
3722
+ return xt() ? e instanceof HTMLElement || e instanceof ne(e).HTMLElement : !1;
3723
3723
  }
3724
3724
  function Ut(e) {
3725
- return !xt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
3725
+ return !xt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ne(e).ShadowRoot;
3726
3726
  }
3727
3727
  function Xe(e) {
3728
3728
  const {
@@ -3730,7 +3730,7 @@ function Xe(e) {
3730
3730
  overflowX: n,
3731
3731
  overflowY: r,
3732
3732
  display: o
3733
- } = re(e);
3733
+ } = oe(e);
3734
3734
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && o !== "inline" && o !== "contents";
3735
3735
  }
3736
3736
  function ss(e) {
@@ -3751,12 +3751,12 @@ function wt(e) {
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
3753
  function sn(e) {
3754
- const t = se(e) ? re(e) : e;
3754
+ const t = se(e) ? oe(e) : e;
3755
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 || "");
3756
3756
  }
3757
3757
  function ls(e) {
3758
3758
  let t = Re(e);
3759
- for (; oe(t) && !Le(t); ) {
3759
+ for (; ie(t) && !Le(t); ) {
3760
3760
  if (sn(t))
3761
3761
  return t;
3762
3762
  if (wt(t))
@@ -3771,8 +3771,8 @@ function an() {
3771
3771
  function Le(e) {
3772
3772
  return /^(html|body|#document)$/.test(Ve(e));
3773
3773
  }
3774
- function re(e) {
3775
- return te(e).getComputedStyle(e);
3774
+ function oe(e) {
3775
+ return ne(e).getComputedStyle(e);
3776
3776
  }
3777
3777
  function Et(e) {
3778
3778
  return se(e) ? {
@@ -3797,12 +3797,12 @@ function Re(e) {
3797
3797
  }
3798
3798
  function Pr(e) {
3799
3799
  const t = Re(e);
3800
- return Le(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : oe(t) && Xe(t) ? t : Pr(t);
3800
+ return Le(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ie(t) && Xe(t) ? t : Pr(t);
3801
3801
  }
3802
3802
  function Ke(e, t, n) {
3803
3803
  var r;
3804
3804
  t === void 0 && (t = []), n === void 0 && (n = !0);
3805
- const o = Pr(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = te(o);
3805
+ const o = Pr(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = ne(o);
3806
3806
  if (i) {
3807
3807
  const a = jt(s);
3808
3808
  return t.concat(s, s.visualViewport || [], Xe(o) ? o : [], a && n ? Ke(a) : []);
@@ -3813,9 +3813,9 @@ function jt(e) {
3813
3813
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
3814
3814
  }
3815
3815
  function Sr(e) {
3816
- const t = re(e);
3816
+ const t = oe(e);
3817
3817
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
3818
- const o = oe(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = lt(n) !== i || lt(r) !== s;
3818
+ const o = ie(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = lt(n) !== i || lt(r) !== s;
3819
3819
  return a && (n = i, r = s), {
3820
3820
  width: n,
3821
3821
  height: r,
@@ -3827,7 +3827,7 @@ function cn(e) {
3827
3827
  }
3828
3828
  function De(e) {
3829
3829
  const t = cn(e);
3830
- if (!oe(t))
3830
+ if (!ie(t))
3831
3831
  return ue(1);
3832
3832
  const n = t.getBoundingClientRect(), {
3833
3833
  width: r,
@@ -3842,14 +3842,14 @@ function De(e) {
3842
3842
  }
3843
3843
  const us = /* @__PURE__ */ ue(0);
3844
3844
  function Nr(e) {
3845
- const t = te(e);
3845
+ const t = ne(e);
3846
3846
  return !an() || !t.visualViewport ? us : {
3847
3847
  x: t.visualViewport.offsetLeft,
3848
3848
  y: t.visualViewport.offsetTop
3849
3849
  };
3850
3850
  }
3851
3851
  function ds(e, t, n) {
3852
- return t === void 0 && (t = !1), !n || t && n !== te(e) ? !1 : t;
3852
+ return t === void 0 && (t = !1), !n || t && n !== ne(e) ? !1 : t;
3853
3853
  }
3854
3854
  function Oe(e, t, n, r) {
3855
3855
  t === void 0 && (t = !1), n === void 0 && (n = !1);
@@ -3859,11 +3859,11 @@ function Oe(e, t, n, r) {
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 h = te(i), m = r && se(r) ? te(r) : r;
3863
- let p = h, g = jt(p);
3864
- for (; g && r && m !== p; ) {
3865
- const x = De(g), v = g.getBoundingClientRect(), y = re(g), w = v.left + (g.clientLeft + parseFloat(y.paddingLeft)) * x.x, b = v.top + (g.clientTop + parseFloat(y.paddingTop)) * x.y;
3866
- c *= x.x, l *= x.y, u *= x.x, f *= x.y, c += w, l += b, p = te(g), g = jt(p);
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);
3867
3867
  }
3868
3868
  }
3869
3869
  return dt({
@@ -3898,27 +3898,27 @@ function fs(e) {
3898
3898
  scrollLeft: 0,
3899
3899
  scrollTop: 0
3900
3900
  }, l = ue(1);
3901
- const u = ue(0), f = oe(r);
3901
+ const u = ue(0), f = ie(r);
3902
3902
  if ((f || !f && !i) && ((Ve(r) !== "body" || Xe(s)) && (c = Et(r)), f)) {
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 h = s && !f && !i ? Or(s, c) : ue(0);
3906
+ const g = 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 + h.x,
3911
- y: n.y * l.y - c.scrollTop * l.y + u.y + h.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
3912
3912
  };
3913
3913
  }
3914
3914
  function ps(e) {
3915
3915
  return Array.from(e.getClientRects());
3916
3916
  }
3917
3917
  function ms(e) {
3918
- const t = de(e), n = Et(e), r = e.ownerDocument.body, o = ee(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ee(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
3918
+ const t = de(e), n = Et(e), r = e.ownerDocument.body, o = te(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = te(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
3919
3919
  let s = -n.scrollLeft + Ct(e);
3920
3920
  const a = -n.scrollTop;
3921
- return re(r).direction === "rtl" && (s += ee(t.clientWidth, r.clientWidth) - o), {
3921
+ return oe(r).direction === "rtl" && (s += te(t.clientWidth, r.clientWidth) - o), {
3922
3922
  width: o,
3923
3923
  height: i,
3924
3924
  x: s,
@@ -3927,7 +3927,7 @@ function ms(e) {
3927
3927
  }
3928
3928
  const Bn = 25;
3929
3929
  function gs(e, t) {
3930
- const n = te(e), r = de(e), o = n.visualViewport;
3930
+ const n = ne(e), r = de(e), o = n.visualViewport;
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;
@@ -3936,7 +3936,7 @@ function gs(e, t) {
3936
3936
  }
3937
3937
  const l = Ct(r);
3938
3938
  if (l <= 0) {
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);
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);
3940
3940
  p <= Bn && (i -= p);
3941
3941
  } else l <= Bn && (i += l);
3942
3942
  return {
@@ -3947,7 +3947,7 @@ function gs(e, t) {
3947
3947
  };
3948
3948
  }
3949
3949
  function hs(e, t) {
3950
- const n = Oe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = oe(e) ? De(e) : ue(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, c = o * i.x, l = r * i.y;
3950
+ const n = Oe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = ie(e) ? De(e) : ue(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, c = o * i.x, l = r * i.y;
3951
3951
  return {
3952
3952
  width: s,
3953
3953
  height: a,
@@ -3976,17 +3976,17 @@ function Fn(e, t, n) {
3976
3976
  }
3977
3977
  function Ir(e, t) {
3978
3978
  const n = Re(e);
3979
- return n === t || !se(n) || Le(n) ? !1 : re(n).position === "fixed" || Ir(n, t);
3979
+ return n === t || !se(n) || Le(n) ? !1 : oe(n).position === "fixed" || Ir(n, t);
3980
3980
  }
3981
3981
  function bs(e, t) {
3982
3982
  const n = t.get(e);
3983
3983
  if (n)
3984
3984
  return n;
3985
3985
  let r = Ke(e, [], !1).filter((a) => se(a) && Ve(a) !== "body"), o = null;
3986
- const i = re(e).position === "fixed";
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 = re(s), c = sn(s);
3989
+ const a = oe(s), c = sn(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,9 +4000,9 @@ 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 h = 1; h < s.length; h++) {
4004
- const m = Fn(t, s[h], o);
4005
- c = ee(m.top, c), l = Ce(m.right, l), u = Ce(m.bottom, u), f = ee(m.left, f);
4003
+ for (let g = 1; g < s.length; g++) {
4004
+ const m = Fn(t, s[g], o);
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 {
4008
4008
  width: l - f,
@@ -4022,7 +4022,7 @@ function ys(e) {
4022
4022
  };
4023
4023
  }
4024
4024
  function xs(e, t, n) {
4025
- const r = oe(t), o = de(t), i = n === "fixed", s = Oe(e, !0, i, t);
4025
+ const r = ie(t), o = de(t), i = n === "fixed", s = Oe(e, !0, i, t);
4026
4026
  let a = {
4027
4027
  scrollLeft: 0,
4028
4028
  scrollTop: 0
@@ -4037,19 +4037,19 @@ 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, h = 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, g = s.top + a.scrollTop - c.y - u.y;
4041
4041
  return {
4042
4042
  x: f,
4043
- y: h,
4043
+ y: g,
4044
4044
  width: s.width,
4045
4045
  height: s.height
4046
4046
  };
4047
4047
  }
4048
4048
  function Dt(e) {
4049
- return re(e).position === "static";
4049
+ return oe(e).position === "static";
4050
4050
  }
4051
4051
  function Vn(e, t) {
4052
- if (!oe(e) || re(e).position === "fixed")
4052
+ if (!ie(e) || oe(e).position === "fixed")
4053
4053
  return null;
4054
4054
  if (t)
4055
4055
  return t(e);
@@ -4057,10 +4057,10 @@ function Vn(e, t) {
4057
4057
  return de(e) === n && (n = n.ownerDocument.body), n;
4058
4058
  }
4059
4059
  function Mr(e, t) {
4060
- const n = te(e);
4060
+ const n = ne(e);
4061
4061
  if (wt(e))
4062
4062
  return n;
4063
- if (!oe(e)) {
4063
+ if (!ie(e)) {
4064
4064
  let o = Re(e);
4065
4065
  for (; o && !Le(o); ) {
4066
4066
  if (se(o) && !Dt(o))
@@ -4087,7 +4087,7 @@ const ws = async function(e) {
4087
4087
  };
4088
4088
  };
4089
4089
  function Es(e) {
4090
- return re(e).direction === "rtl";
4090
+ return oe(e).direction === "rtl";
4091
4091
  }
4092
4092
  const Cs = {
4093
4093
  convertOffsetParentRelativeRectToViewportRelativeRect: fs,
@@ -4116,14 +4116,14 @@ function Rs(e, t) {
4116
4116
  const l = e.getBoundingClientRect(), {
4117
4117
  left: u,
4118
4118
  top: f,
4119
- width: h,
4119
+ width: g,
4120
4120
  height: m
4121
4121
  } = l;
4122
- if (a || t(), !h || !m)
4122
+ if (a || t(), !g || !m)
4123
4123
  return;
4124
- const p = tt(f), g = tt(o.clientWidth - (u + h)), x = tt(o.clientHeight - (f + m)), v = tt(u), w = {
4125
- rootMargin: -p + "px " + -g + "px " + -x + "px " + -v + "px",
4126
- threshold: ee(0, Ce(1, c)) || 1
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",
4126
+ threshold: te(0, Ce(1, c)) || 1
4127
4127
  };
4128
4128
  let b = !0;
4129
4129
  function A(P) {
@@ -4165,19 +4165,19 @@ function As(e, t, n, r) {
4165
4165
  }), i && v.addEventListener("resize", n);
4166
4166
  });
4167
4167
  const f = l && a ? Rs(l, n) : null;
4168
- let h = -1, m = null;
4168
+ let g = -1, m = null;
4169
4169
  s && (m = new ResizeObserver((v) => {
4170
4170
  let [y] = v;
4171
- y && y.target === l && m && t && (m.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
4171
+ y && y.target === l && m && t && (m.unobserve(t), cancelAnimationFrame(g), g = 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, g = c ? Oe(e) : null;
4176
+ let p, h = c ? Oe(e) : null;
4177
4177
  c && x();
4178
4178
  function x() {
4179
4179
  const v = Oe(e);
4180
- g && !Dr(g, v) && n(), g = v, p = requestAnimationFrame(x);
4180
+ h && !Dr(h, v) && n(), h = v, p = requestAnimationFrame(x);
4181
4181
  }
4182
4182
  return n(), () => {
4183
4183
  var v;
@@ -4265,10 +4265,10 @@ function Ls(e) {
4265
4265
  placement: t,
4266
4266
  middlewareData: {},
4267
4267
  isPositioned: !1
4268
- }), [h, m] = d.useState(r);
4269
- ft(h, r) || m(r);
4270
- const [p, g] = d.useState(null), [x, v] = d.useState(null), y = d.useCallback((E) => {
4271
- E !== P.current && (P.current = E, g(E));
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));
4272
4272
  }, []), w = d.useCallback((E) => {
4273
4273
  E !== k.current && (k.current = E, v(E));
4274
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(() => {
@@ -4277,7 +4277,7 @@ function Ls(e) {
4277
4277
  const E = {
4278
4278
  placement: t,
4279
4279
  strategy: n,
4280
- middleware: h
4280
+ middleware: g
4281
4281
  };
4282
4282
  S.current && (E.platform = S.current), Is(P.current, k.current, E).then((_) => {
4283
4283
  const K = {
@@ -4292,7 +4292,7 @@ function Ls(e) {
4292
4292
  f(K);
4293
4293
  }));
4294
4294
  });
4295
- }, [h, t, n, S, I]);
4295
+ }, [g, t, n, S, I]);
4296
4296
  at(() => {
4297
4297
  l === !1 && R.current.isPositioned && (R.current.isPositioned = !1, f((E) => ({
4298
4298
  ...E,
@@ -4481,10 +4481,10 @@ 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: h = !1,
4484
+ hideWhenDetached: g = !1,
4485
4485
  updatePositionStrategy: m = "optimized",
4486
4486
  onPlaced: p,
4487
- ...g
4487
+ ...h
4488
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 = {
4489
4489
  padding: C,
4490
4490
  boundary: S.filter(Zs),
@@ -4518,13 +4518,13 @@ 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
- h && Ws({ strategy: "referenceHidden", ...z })
4521
+ g && Ws({ strategy: "referenceHidden", ...z })
4522
4522
  ]
4523
4523
  }), [_, K] = Gr(D), Y = yt(p);
4524
4524
  Ee(() => {
4525
4525
  V && (Y == null || Y());
4526
4526
  }, [V, Y]);
4527
- const ne = (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();
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
4529
  v && fe(window.getComputedStyle(v).zIndex);
4530
4530
  }, [v]), /* @__PURE__ */ T(
@@ -4557,7 +4557,7 @@ var un = "PopperContent", [Ys, qs] = zr(un), Hr = d.forwardRef(
4557
4557
  scope: n,
4558
4558
  placedSide: _,
4559
4559
  onArrowChange: A,
4560
- arrowX: ne,
4560
+ arrowX: re,
4561
4561
  arrowY: $,
4562
4562
  shouldHideArrow: U,
4563
4563
  children: /* @__PURE__ */ T(
@@ -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
- ...g,
4568
+ ...h,
4569
4569
  ref: w,
4570
4570
  style: {
4571
- ...g.style,
4571
+ ...h.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"
@@ -4641,9 +4641,9 @@ var Js = (e) => ({
4641
4641
  options: e,
4642
4642
  fn(t) {
4643
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], h = (((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 = "", 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 } };
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 } };
4647
4647
  }
4648
4648
  });
4649
4649
  function Gr(e) {
@@ -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 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;
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;
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 g = nt(r.current).includes(CSS.escape(m.animationName));
4697
- if (m.target === t && g && (c("ANIMATION_END"), !o.current)) {
4696
+ const h = nt(r.current).includes(CSS.escape(m.animationName));
4697
+ if (m.target === t && h && (c("ANIMATION_END"), !o.current)) {
4698
4698
  const x = t.style.animationFillMode;
4699
4699
  t.style.animationFillMode = "forwards", l = u.setTimeout(() => {
4700
4700
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = x);
4701
4701
  });
4702
4702
  }
4703
- }, h = (m) => {
4703
+ }, g = (m) => {
4704
4704
  m.target === t && (i.current = nt(r.current));
4705
4705
  };
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);
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);
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 h = ua(u) ? u(e) : u;
4752
- h !== e && ((f = s.current) == null || f.call(s, h));
4751
+ const g = ua(u) ? u(e) : u;
4752
+ g !== e && ((f = s.current) == null || f.call(s, g));
4753
4753
  } else
4754
4754
  i(u);
4755
4755
  },
@@ -4842,7 +4842,7 @@ 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), h = Bi(), m = d.useRef(0), p = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, x = d.useRef(!1), [v, y] = ca({
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({
4846
4846
  prop: r,
4847
4847
  defaultProp: o ?? !1,
4848
4848
  onChange: (k) => {
@@ -4856,15 +4856,15 @@ var Ye = "Tooltip", [ha, Ze] = Rt(Ye), Zr = (e) => {
4856
4856
  }, [y]), P = d.useCallback(() => {
4857
4857
  window.clearTimeout(m.current), m.current = window.setTimeout(() => {
4858
4858
  x.current = !0, y(!0), m.current = 0;
4859
- }, g);
4860
- }, [g, y]);
4859
+ }, h);
4860
+ }, [h, y]);
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: h,
4867
+ contentId: g,
4868
4868
  open: v,
4869
4869
  stateAttribute: w,
4870
4870
  trigger: u,
@@ -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, (h) => {
4897
- h.pointerType !== "touch" && !u.current && !i.isPointerInTransitRef.current && (o.onTriggerEnter(), u.current = !0);
4896
+ onPointerMove: me(e.onPointerMove, (g) => {
4897
+ g.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;
@@ -4925,31 +4925,31 @@ var _e = "TooltipContent", eo = d.forwardRef(
4925
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 }) });
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, h = d.useCallback(() => {
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(() => {
4929
4929
  a(null), f(!1);
4930
4930
  }, [f]), m = d.useCallback(
4931
- (p, g) => {
4932
- const x = p.currentTarget, v = { x: p.clientX, y: p.clientY }, y = Ca(v, x.getBoundingClientRect()), w = Ra(v, y), b = Aa(g.getBoundingClientRect()), A = Ta([...w, ...b]);
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]);
4933
4933
  a(A), f(!0);
4934
4934
  },
4935
4935
  [f]
4936
4936
  );
4937
- return d.useEffect(() => () => h(), [h]), d.useEffect(() => {
4937
+ return d.useEffect(() => () => g(), [g]), d.useEffect(() => {
4938
4938
  if (c && u) {
4939
- const p = (x) => m(x, u), g = (x) => m(x, c);
4940
- return c.addEventListener("pointerleave", p), u.addEventListener("pointerleave", g), () => {
4941
- c.removeEventListener("pointerleave", p), u.removeEventListener("pointerleave", g);
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);
4942
4942
  };
4943
4943
  }
4944
- }, [c, u, m, h]), d.useEffect(() => {
4944
+ }, [c, u, m, g]), d.useEffect(() => {
4945
4945
  if (s) {
4946
- const p = (g) => {
4947
- const x = g.target, v = { x: g.clientX, y: g.clientY }, y = (c == null ? void 0 : c.contains(x)) || (u == null ? void 0 : u.contains(x)), w = !ka(v, s);
4948
- y ? h() : w && (h(), l());
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());
4949
4949
  };
4950
4950
  return document.addEventListener("pointermove", p), () => document.removeEventListener("pointermove", p);
4951
4951
  }
4952
- }, [c, u, s, l, h]), /* @__PURE__ */ T(to, { ...e, ref: i });
4952
+ }, [c, u, s, l, g]), /* @__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 {
@@ -4962,8 +4962,8 @@ var _e = "TooltipContent", eo = d.forwardRef(
4962
4962
  } = e, c = Ze(_e, n), l = At(n), { onClose: u } = c;
4963
4963
  return d.useEffect(() => (document.addEventListener(Gt, u), () => document.removeEventListener(Gt, u)), [u]), d.useEffect(() => {
4964
4964
  if (c.trigger) {
4965
- const f = (h) => {
4966
- const m = h.target;
4965
+ const f = (g) => {
4966
+ const m = g.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, h = c.y;
5075
- u > r != h > r && n < (f - l) * (r - u) / (h - u) + l && (o = !o);
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);
5076
5076
  }
5077
5077
  return o;
5078
5078
  }
@@ -5168,19 +5168,19 @@ const Da = cr(
5168
5168
  style: l,
5169
5169
  iconButton: u = !1,
5170
5170
  tooltipLabel: f,
5171
- saveColor: h = "#003B71",
5171
+ saveColor: g = "#003B71",
5172
5172
  deleteColor: m = "#FF6070",
5173
5173
  updateColor: p = "#003B71",
5174
- cancelColor: g = "#ffffff",
5174
+ cancelColor: h = "#ffffff",
5175
5175
  outlineColor: x = "#003B71",
5176
5176
  ...v
5177
5177
  }, y) => {
5178
5178
  const b = {
5179
5179
  ...t && {
5180
- save: { backgroundColor: h },
5180
+ save: { backgroundColor: g },
5181
5181
  delete: { backgroundColor: m },
5182
5182
  update: { backgroundColor: p },
5183
- cancel: { backgroundColor: g },
5183
+ cancel: { backgroundColor: h },
5184
5184
  outline: { backgroundColor: x }
5185
5185
  }[t],
5186
5186
  ...l
@@ -5189,7 +5189,7 @@ const Da = cr(
5189
5189
  {
5190
5190
  ref: y,
5191
5191
  "data-testid": a,
5192
- className: ie(Da({ variant: t, size: n }), e),
5192
+ className: ee(Da({ variant: t, size: n }), e),
5193
5193
  style: b,
5194
5194
  disabled: o || r,
5195
5195
  ...v,
@@ -5620,7 +5620,7 @@ 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, h = l ? Ya(i, c) : Ne, m = l && a ? nc(a) : void 0, p = l ? qt(h, m) ?? {} : Ne;
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
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;
5625
5625
  }
5626
5626
  function nc(e) {
@@ -5682,7 +5682,7 @@ 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), h = J((v, y) => {
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
5686
  c.set(v, y ?? null), f.current += 1, u(f.current);
5687
5687
  }), m = J((v) => {
5688
5688
  c.delete(v), f.current += 1, u(f.current);
@@ -5719,20 +5719,20 @@ function bo(e) {
5719
5719
  }, [n]), Z(() => () => {
5720
5720
  r && (r.current = []);
5721
5721
  }, [r]);
5722
- const g = J((v) => (a.add(v), () => {
5722
+ const h = J((v) => (a.add(v), () => {
5723
5723
  a.delete(v);
5724
5724
  }));
5725
5725
  Z(() => {
5726
5726
  a.forEach((v) => v(p));
5727
5727
  }, [a, p]);
5728
5728
  const x = d.useMemo(() => ({
5729
- register: h,
5729
+ register: g,
5730
5730
  unregister: m,
5731
- subscribeMapChange: g,
5731
+ subscribeMapChange: h,
5732
5732
  elementsRef: n,
5733
5733
  labelsRef: r,
5734
5734
  nextIndexRef: s
5735
- }), [h, m, g, n, r, s]);
5735
+ }), [g, m, h, n, r, s]);
5736
5736
  return /* @__PURE__ */ T(vn.Provider, {
5737
5737
  value: x,
5738
5738
  children: t
@@ -5796,7 +5796,7 @@ 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, h = d.useRef([]), [m, p] = d.useState(() => /* @__PURE__ */ new Map()), [g, x] = za({
5799
+ } = t, f = t.defaultValue !== void 0, g = d.useRef([]), [m, p] = d.useState(() => /* @__PURE__ */ new Map()), [h, x] = za({
5800
5800
  controlled: c,
5801
5801
  default: o,
5802
5802
  name: "Tabs",
@@ -5809,15 +5809,15 @@ const vo = /* @__PURE__ */ d.forwardRef(function(t, n) {
5809
5809
  return W;
5810
5810
  return null;
5811
5811
  }, [y]), [P, k] = d.useState(() => ({
5812
- previousValue: g,
5812
+ previousValue: h,
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 !== g && (C = Xn(R, g, s, y), S = R != null && g != null && A(g) == null);
5820
- const I = S ? R : g, z = R !== I || M !== C;
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;
5821
5821
  Z(() => {
5822
5822
  z && k({
5823
5823
  previousValue: I,
@@ -5825,7 +5825,7 @@ 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(g, F, s, y);
5828
+ const G = Xn(h, F, s, y);
5829
5829
  W.activationDirection = G, i == null || i(F, W), !W.isCanceled && x(F);
5830
5830
  }), H = J((F, W) => {
5831
5831
  i == null || i(F, Jt(W, void 0, void 0, {
@@ -5859,12 +5859,12 @@ const vo = /* @__PURE__ */ d.forwardRef(function(t, n) {
5859
5859
  setTabMap: w,
5860
5860
  unregisterMountedTabPanel: V,
5861
5861
  tabActivationDirection: C,
5862
- value: g
5863
- }), [A, _, E, L, s, D, w, V, C, g]), Y = d.useMemo(() => {
5862
+ value: h
5863
+ }), [A, _, E, L, s, D, w, V, C, h]), Y = d.useMemo(() => {
5864
5864
  for (const F of y.values())
5865
- if (F != null && F.value === g)
5865
+ if (F != null && F.value === h)
5866
5866
  return F;
5867
- }, [y, g]), ne = d.useMemo(() => {
5867
+ }, [y, h]), re = d.useMemo(() => {
5868
5868
  for (const F of y.values())
5869
5869
  if (F != null && !F.disabled)
5870
5870
  return F.value;
@@ -5880,17 +5880,17 @@ const vo = /* @__PURE__ */ d.forwardRef(function(t, n) {
5880
5880
  }), H(ae, Te), $.current = !1;
5881
5881
  }
5882
5882
  if (y.size === 0) {
5883
- fe.current && g !== null && !((xe = b.current) != null && xe.isConnected) && F(null, Yn);
5883
+ fe.current && h !== null && !((xe = b.current) != null && xe.isConnected) && F(null, Yn);
5884
5884
  return;
5885
5885
  }
5886
5886
  fe.current = !0, b.current = y.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)
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)
5889
5889
  return;
5890
5890
  const Q = $.current;
5891
5891
  if (W || G) {
5892
- const ae = ne ?? null;
5893
- if (g === ae) {
5892
+ const ae = re ?? null;
5893
+ if (h === ae) {
5894
5894
  $.current = !1;
5895
5895
  return;
5896
5896
  }
@@ -5898,8 +5898,8 @@ const vo = /* @__PURE__ */ d.forwardRef(function(t, n) {
5898
5898
  Q ? Te = qn : W && (Te = mc), F(ae, Te);
5899
5899
  return;
5900
5900
  }
5901
- Q && Y != null && (H(g, qn), $.current = !1);
5902
- }, [ne, v, H, Y, x, y, g]);
5901
+ Q && Y != null && (H(h, qn), $.current = !1);
5902
+ }, [re, v, H, Y, x, y, h]);
5903
5903
  const ke = Tt("div", t, {
5904
5904
  state: {
5905
5905
  orientation: s,
@@ -5912,7 +5912,7 @@ const vo = /* @__PURE__ */ d.forwardRef(function(t, n) {
5912
5912
  return /* @__PURE__ */ T(yn.Provider, {
5913
5913
  value: K,
5914
5914
  children: /* @__PURE__ */ T(bo, {
5915
- elementsRef: h,
5915
+ elementsRef: g,
5916
5916
  children: ke
5917
5917
  })
5918
5918
  });
@@ -6011,7 +6011,7 @@ function vc(e = {}) {
6011
6011
  isNativeButton: o
6012
6012
  });
6013
6013
  process.env.NODE_ENV !== "production" && d.useEffect(() => {
6014
- var p, g;
6014
+ var p, h;
6015
6015
  if (!s.current)
6016
6016
  return;
6017
6017
  const m = rt(s.current);
@@ -6021,7 +6021,7 @@ function vc(e = {}) {
6021
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}`);
6022
6022
  }
6023
6023
  } else if (m) {
6024
- const x = ((g = ge.captureOwnerStack) == null ? void 0 : g.call(ge)) || "";
6024
+ const x = ((h = ge.captureOwnerStack) == null ? void 0 : h.call(ge)) || "";
6025
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}`);
6026
6026
  }
6027
6027
  }, [o]);
@@ -6033,7 +6033,7 @@ function vc(e = {}) {
6033
6033
  const f = d.useCallback((m = {}) => {
6034
6034
  const {
6035
6035
  onClick: p,
6036
- onMouseDown: g,
6036
+ onMouseDown: h,
6037
6037
  onKeyUp: x,
6038
6038
  onKeyDown: v,
6039
6039
  onPointerDown: y,
@@ -6048,7 +6048,7 @@ function vc(e = {}) {
6048
6048
  p == null || p(b);
6049
6049
  },
6050
6050
  onMouseDown(b) {
6051
- t || g == null || g(b);
6051
+ t || h == null || h(b);
6052
6052
  },
6053
6053
  onKeyDown(b) {
6054
6054
  if (t || (ht(b), v == null || v(b), b.baseUIHandlerPrevented))
@@ -6083,16 +6083,16 @@ function vc(e = {}) {
6083
6083
  } : {
6084
6084
  role: "button"
6085
6085
  }, l, w);
6086
- }, [t, l, c, o]), h = J((m) => {
6086
+ }, [t, l, c, o]), g = J((m) => {
6087
6087
  s.current = m, u();
6088
6088
  });
6089
6089
  return {
6090
6090
  getButtonProps: f,
6091
- buttonRef: h
6091
+ buttonRef: g
6092
6092
  };
6093
6093
  }
6094
6094
  function rt(e) {
6095
- return oe(e) && e.tagName === "BUTTON";
6095
+ return ie(e) && e.tagName === "BUTTON";
6096
6096
  }
6097
6097
  function yc(e) {
6098
6098
  return !!((e == null ? void 0 : e.tagName) === "A" && (e != null && e.href));
@@ -6115,15 +6115,15 @@ function Eo(e = {}) {
6115
6115
  elementsRef: l,
6116
6116
  labelsRef: u,
6117
6117
  nextIndexRef: f
6118
- } = lc(), h = d.useRef(-1), [m, p] = d.useState(i ?? (o === xc.GuessFromOrder ? () => {
6119
- if (h.current === -1) {
6118
+ } = lc(), g = d.useRef(-1), [m, p] = d.useState(i ?? (o === xc.GuessFromOrder ? () => {
6119
+ if (g.current === -1) {
6120
6120
  const v = f.current;
6121
- f.current += 1, h.current = v;
6121
+ f.current += 1, g.current = v;
6122
6122
  }
6123
- return h.current;
6124
- } : -1)), g = d.useRef(null), x = d.useCallback((v) => {
6123
+ return g.current;
6124
+ } : -1)), h = d.useRef(null), x = d.useCallback((v) => {
6125
6125
  var y;
6126
- if (g.current = v, m !== -1 && v !== null && (l.current[m] = v, u)) {
6126
+ if (h.current = v, m !== -1 && v !== null && (l.current[m] = v, u)) {
6127
6127
  const w = t !== void 0;
6128
6128
  u.current[m] = w ? t : ((y = r == null ? void 0 : r.current) == null ? void 0 : y.textContent) ?? v.textContent;
6129
6129
  }
@@ -6131,7 +6131,7 @@ function Eo(e = {}) {
6131
6131
  return Z(() => {
6132
6132
  if (i != null)
6133
6133
  return;
6134
- const v = g.current;
6134
+ const v = h.current;
6135
6135
  if (v)
6136
6136
  return s(v, n), () => {
6137
6137
  a(v);
@@ -6140,7 +6140,7 @@ function Eo(e = {}) {
6140
6140
  if (i == null)
6141
6141
  return c((v) => {
6142
6142
  var w;
6143
- const y = g.current ? (w = v.get(g.current)) == null ? void 0 : w.index : null;
6143
+ const y = h.current ? (w = v.get(h.current)) == null ? void 0 : w.index : null;
6144
6144
  y != null && p(y);
6145
6145
  });
6146
6146
  }, [i, c, p]), {
@@ -6246,7 +6246,7 @@ function Qt(e, t, n) {
6246
6246
  function Tc(e) {
6247
6247
  return e.visibility === "hidden" || e.visibility === "collapse";
6248
6248
  }
6249
- function Pc(e, t = e ? re(e) : null) {
6249
+ function Pc(e, t = e ? oe(e) : null) {
6250
6250
  return !e || !e.isConnected || !t || Tc(t) ? !1 : typeof e.checkVisibility == "function" ? e.checkVisibility() : t.display !== "none" && t.display !== "contents";
6251
6251
  }
6252
6252
  const Co = /* @__PURE__ */ d.forwardRef(function(t, n) {
@@ -6261,11 +6261,11 @@ const Co = /* @__PURE__ */ d.forwardRef(function(t, n) {
6261
6261
  ...u
6262
6262
  } = t, {
6263
6263
  value: f,
6264
- getTabPanelIdByValue: h,
6264
+ getTabPanelIdByValue: g,
6265
6265
  orientation: m,
6266
6266
  tabActivationDirection: p
6267
6267
  } = xn(), {
6268
- activateOnFocus: g,
6268
+ activateOnFocus: h,
6269
6269
  highlightedTabIndex: x,
6270
6270
  onTabActivation: v,
6271
6271
  registerTabResizeObserverElement: y,
@@ -6310,14 +6310,14 @@ const Co = /* @__PURE__ */ d.forwardRef(function(t, n) {
6310
6310
  disabled: o,
6311
6311
  native: c,
6312
6312
  focusableWhenDisabled: !0
6313
- }), H = h(s), D = d.useRef(!1), V = d.useRef(!1);
6313
+ }), H = g(s), D = d.useRef(!1), V = d.useRef(!1);
6314
6314
  function E($) {
6315
6315
  C || o || v(s, Jt(Kn, $.nativeEvent, void 0, {
6316
6316
  activationDirection: "none"
6317
6317
  }));
6318
6318
  }
6319
6319
  function _($) {
6320
- C || (M > -1 && !o && w(M), !o && g && (!D.current || // keyboard or touch focus
6320
+ C || (M > -1 && !o && w(M), !o && h && (!D.current || // keyboard or touch focus
6321
6321
  D.current && V.current) && v(s, Jt(Kn, $.nativeEvent, void 0, {
6322
6322
  activationDirection: "none"
6323
6323
  })));
@@ -6562,13 +6562,13 @@ const Wc = {
6562
6562
  value: l,
6563
6563
  getTabIdByPanelValue: u,
6564
6564
  orientation: f,
6565
- tabActivationDirection: h,
6565
+ tabActivationDirection: g,
6566
6566
  registerMountedTabPanel: m,
6567
6567
  unregisterMountedTabPanel: p
6568
- } = xn(), g = yo(), x = d.useMemo(() => ({
6569
- id: g,
6568
+ } = xn(), h = yo(), x = d.useMemo(() => ({
6569
+ id: h,
6570
6570
  value: o
6571
- }), [g, o]), {
6571
+ }), [h, o]), {
6572
6572
  ref: v,
6573
6573
  index: y
6574
6574
  } = Eo({
@@ -6580,7 +6580,7 @@ const Wc = {
6580
6580
  } = Fc(w), k = !b, R = u(o), M = {
6581
6581
  hidden: k,
6582
6582
  orientation: f,
6583
- tabActivationDirection: h,
6583
+ tabActivationDirection: g,
6584
6584
  transitionStatus: A
6585
6585
  }, C = d.useRef(null), S = Tt("div", t, {
6586
6586
  state: M,
@@ -6588,7 +6588,7 @@ const Wc = {
6588
6588
  props: [{
6589
6589
  "aria-labelledby": R,
6590
6590
  hidden: k,
6591
- id: g,
6591
+ id: h,
6592
6592
  role: "tabpanel",
6593
6593
  tabIndex: w ? 0 : -1,
6594
6594
  inert: Sc(!w),
@@ -6603,11 +6603,11 @@ const Wc = {
6603
6603
  w || P(!1);
6604
6604
  }
6605
6605
  }), Z(() => {
6606
- if (!(k && !s) && g != null)
6607
- return m(o, g), () => {
6608
- p(o, g);
6606
+ if (!(k && !s) && h != null)
6607
+ return m(o, h), () => {
6608
+ p(o, h);
6609
6609
  };
6610
- }, [k, s, o, g, m, p]), s || b ? S : null;
6610
+ }, [k, s, o, h, m, p]), s || b ? S : null;
6611
6611
  });
6612
6612
  process.env.NODE_ENV !== "production" && (Ro.displayName = "TabsPanel");
6613
6613
  function Hc(e) {
@@ -6615,10 +6615,10 @@ function Hc(e) {
6615
6615
  }
6616
6616
  const je = "ArrowUp", Ge = "ArrowDown", bt = "ArrowLeft", vt = "ArrowRight", St = "Home", Nt = "End", Ao = /* @__PURE__ */ new Set([bt, vt]), Uc = /* @__PURE__ */ new Set([bt, vt, St, Nt]), ko = /* @__PURE__ */ new Set([je, Ge]), jc = /* @__PURE__ */ new Set([je, Ge, St, Nt]), To = /* @__PURE__ */ new Set([...Ao, ...ko]), Gc = /* @__PURE__ */ new Set([...To, St, Nt]), Kc = "Shift", Yc = "Control", qc = "Alt", Xc = "Meta", Zc = /* @__PURE__ */ new Set([Kc, Yc, qc, Xc]);
6617
6617
  function Jc(e) {
6618
- return oe(e) && e.tagName === "INPUT";
6618
+ return ie(e) && e.tagName === "INPUT";
6619
6619
  }
6620
6620
  function nr(e) {
6621
- return !!(Jc(e) && e.selectionStart != null || oe(e) && e.tagName === "TEXTAREA");
6621
+ return !!(Jc(e) && e.selectionStart != null || ie(e) && e.tagName === "TEXTAREA");
6622
6622
  }
6623
6623
  function rr(e, t, n, r) {
6624
6624
  if (!e || !t || !t.scrollTo)
@@ -6673,8 +6673,8 @@ function el(e) {
6673
6673
  enableHomeAndEndKeys: l = !1,
6674
6674
  stopEventPropagation: u = !1,
6675
6675
  disabledIndices: f,
6676
- modifierKeys: h = Qc
6677
- } = e, [m, p] = d.useState(0), g = 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: 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) => {
6678
6678
  if ((a ?? p)(C), S) {
6679
6679
  const I = y.current[C];
6680
6680
  rr(x.current, I, i, n);
@@ -6707,7 +6707,7 @@ function el(e) {
6707
6707
  }, [f, s, b, y, A]);
6708
6708
  const k = J((C, S, I) => o ? o(C, S, I, y) : I), R = J((C) => {
6709
6709
  const S = l ? Gc : To;
6710
- if (!S.has(C.key) || tl(C, h) || !x.current)
6710
+ if (!S.has(C.key) || tl(C, g) || !x.current)
6711
6711
  return;
6712
6712
  const z = i === "rtl", L = z ? bt : vt, H = {
6713
6713
  horizontal: L,
@@ -6737,7 +6737,7 @@ function el(e) {
6737
6737
  orientation: n,
6738
6738
  rtl: z
6739
6739
  }));
6740
- const ne = {
6740
+ const re = {
6741
6741
  horizontal: [L],
6742
6742
  vertical: [Ge],
6743
6743
  both: [L, Ge]
@@ -6745,12 +6745,12 @@ function el(e) {
6745
6745
  horizontal: [D],
6746
6746
  vertical: [je],
6747
6747
  both: [D, je]
6748
- }[n], U = g ? S : {
6748
+ }[n], U = h ? 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 && (ne.includes(C.key) || $.includes(C.key)) && (t && _ === Y && ne.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, _, y))) : t && _ === K && $.includes(C.key) ? (_ = Y, o && (_ = o(C, b, _, y))) : _ = Ue(y.current, {
6754
6754
  startingIndex: _,
6755
6755
  decrement: $.includes(C.key),
6756
6756
  disabledIndices: f
@@ -6801,10 +6801,10 @@ function rl(e) {
6801
6801
  onHighlightedIndexChange: l,
6802
6802
  orientation: u,
6803
6803
  grid: f,
6804
- loopFocus: h,
6804
+ loopFocus: g,
6805
6805
  onLoop: m,
6806
6806
  enableHomeAndEndKeys: p,
6807
- onMapChange: g,
6807
+ onMapChange: h,
6808
6808
  stopEventPropagation: x = !0,
6809
6809
  rootRef: v,
6810
6810
  disabledIndices: y,
@@ -6821,7 +6821,7 @@ function rl(e) {
6821
6821
  relayKeyboardEvent: z
6822
6822
  } = el({
6823
6823
  grid: f,
6824
- loopFocus: h,
6824
+ loopFocus: g,
6825
6825
  onLoop: m,
6826
6826
  orientation: u,
6827
6827
  highlightedIndex: c,
@@ -6848,7 +6848,7 @@ function rl(e) {
6848
6848
  children: /* @__PURE__ */ T(bo, {
6849
6849
  elementsRef: S,
6850
6850
  onMapChange: (D) => {
6851
- g == null || g(D), I(D);
6851
+ h == null || h(D), I(D);
6852
6852
  },
6853
6853
  children: L
6854
6854
  })
@@ -6866,9 +6866,9 @@ const So = /* @__PURE__ */ d.forwardRef(function(t, n) {
6866
6866
  onValueChange: l,
6867
6867
  orientation: u,
6868
6868
  value: f,
6869
- setTabMap: h,
6869
+ setTabMap: g,
6870
6870
  tabActivationDirection: m
6871
- } = xn(), [p, g] = 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
+ } = 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);
6872
6872
  Z(() => {
6873
6873
  if (typeof ResizeObserver > "u")
6874
6874
  return;
@@ -6905,9 +6905,9 @@ const So = /* @__PURE__ */ d.forwardRef(function(t, n) {
6905
6905
  registerIndicatorUpdateListener: A,
6906
6906
  registerTabResizeObserverElement: P,
6907
6907
  onTabActivation: k,
6908
- setHighlightedTabIndex: g,
6908
+ setHighlightedTabIndex: h,
6909
6909
  tabsListElement: x
6910
- }), [r, p, A, P, k, g, x]);
6910
+ }), [r, p, A, P, k, h, x]);
6911
6911
  return /* @__PURE__ */ T(En.Provider, {
6912
6912
  value: C,
6913
6913
  children: /* @__PURE__ */ T(rl, {
@@ -6922,8 +6922,8 @@ const So = /* @__PURE__ */ d.forwardRef(function(t, n) {
6922
6922
  enableHomeAndEndKeys: !0,
6923
6923
  loopFocus: i,
6924
6924
  orientation: u,
6925
- onHighlightedIndexChange: g,
6926
- onMapChange: h,
6925
+ onHighlightedIndexChange: h,
6926
+ onMapChange: g,
6927
6927
  disabledIndices: Zt
6928
6928
  })
6929
6929
  });
@@ -6939,9 +6939,8 @@ function ol({
6939
6939
  {
6940
6940
  orientation: t,
6941
6941
  "data-slot": "tabs",
6942
- className: ie(
6943
- "group/tabs flex gap-2 flex-col h-",
6944
- "flex-col",
6942
+ className: ee(
6943
+ "group/tabs flex h-full min-h-0 flex-col gap-2",
6945
6944
  e
6946
6945
  ),
6947
6946
  ...n
@@ -6972,7 +6971,7 @@ function sl({
6972
6971
  {
6973
6972
  "data-slot": "tabs-list",
6974
6973
  "data-variant": t,
6975
- className: ie(il({ variant: t }), e),
6974
+ className: ee(il({ variant: t }), e),
6976
6975
  ...n
6977
6976
  }
6978
6977
  );
@@ -6982,7 +6981,7 @@ function al({ className: e, ...t }) {
6982
6981
  Co,
6983
6982
  {
6984
6983
  "data-slot": "tabs-trigger",
6985
- className: ie(
6984
+ className: ee(
6986
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",
6987
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",
6988
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",
@@ -6998,7 +6997,7 @@ function cl({ className: e, ...t }) {
6998
6997
  Ro,
6999
6998
  {
7000
6999
  "data-slot": "tabs-content",
7001
- className: ie("flex-1 text-sm outline-none", e),
7000
+ className: ee("flex-1 text-sm outline-none", e),
7002
7001
  ...t
7003
7002
  }
7004
7003
  );
@@ -7012,10 +7011,10 @@ const gl = ({
7012
7011
  showTabNumbers: i = !0,
7013
7012
  variant: s = "default"
7014
7013
  }) => {
7015
- var l;
7016
- const a = n || t || ((l = e[0]) == null ? void 0 : l.id), c = {
7017
- default: ie(
7018
- "relative px-6 py-3 text-sm font-medium transition-all duration-300 ease-out",
7014
+ var u;
7015
+ const a = n || t || ((u = e[0]) == null ? void 0 : u.id), c = {
7016
+ default: ee(
7017
+ "group relative px-6 py-3 text-sm font-medium transition-all duration-300 ease-out",
7019
7018
  "text-muted-foreground hover:text-foreground",
7020
7019
  "data-[state=active]:text-foreground data-[state=active]:font-semibold",
7021
7020
  "after:absolute after:bottom-0 after:left-0 after:right-0 after:h-0.5 after:bg-gradient-to-r after:from-blue-500 after:via-purple-500 after:to-pink-500",
@@ -7023,8 +7022,8 @@ const gl = ({
7023
7022
  "disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:text-muted-foreground",
7024
7023
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-blue-500"
7025
7024
  ),
7026
- gradient: ie(
7027
- "relative px-6 py-3 text-sm font-medium transition-all duration-300 ease-out",
7025
+ gradient: ee(
7026
+ "group relative px-6 py-3 text-sm font-medium transition-all duration-300 ease-out",
7028
7027
  "text-muted-foreground/80 hover:text-muted-foreground",
7029
7028
  "data-[state=active]:text-white data-[state=active]:font-semibold",
7030
7029
  "data-[state=active]:bg-gradient-to-r data-[state=active]:from-blue-600 data-[state=active]:via-purple-600 data-[state=active]:to-pink-600",
@@ -7033,13 +7032,38 @@ const gl = ({
7033
7032
  "disabled:opacity-50 disabled:cursor-not-allowed",
7034
7033
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-blue-500"
7035
7034
  ),
7036
- minimal: ie(
7037
- "relative px-4 py-2 text-sm font-medium transition-all duration-300",
7035
+ minimal: ee(
7036
+ "group relative px-4 py-2 text-sm font-medium transition-all duration-300",
7038
7037
  "text-muted-foreground hover:text-foreground hover:bg-secondary/50 rounded-md",
7039
7038
  "data-[state=active]:text-foreground data-[state=active]:bg-secondary",
7040
7039
  "data-[state=active]:font-semibold",
7041
7040
  "disabled:opacity-50 disabled:cursor-not-allowed",
7042
7041
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-blue-500"
7042
+ ),
7043
+ // Matches the Figma reference: bordered number chip, green accent on active,
7044
+ // slim underline beneath only the active tab.
7045
+ outline: ee(
7046
+ "group relative px-4 py-3 text-sm font-semibold transition-colors duration-200 ease-out",
7047
+ "text-foreground/70 hover:text-foreground",
7048
+ "data-[state=active]:text-emerald-600",
7049
+ "after:absolute after:bottom-0 after:left-0 after:right-0 after:h-[2px] after:bg-emerald-500",
7050
+ "after:scale-x-0 after:transition-transform after:duration-200 data-[state=active]:after:scale-x-100",
7051
+ "disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:text-foreground/70",
7052
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-emerald-500"
7053
+ )
7054
+ }, l = {
7055
+ default: ee(
7056
+ "bg-blue-100/60 text-blue-600",
7057
+ "group-data-[state=active]:bg-blue-500 group-data-[state=active]:text-white"
7058
+ ),
7059
+ gradient: ee(
7060
+ "text-white/60",
7061
+ "group-data-[state=active]:bg-white/20 group-data-[state=active]:text-white"
7062
+ ),
7063
+ minimal: "bg-secondary/60 text-secondary-foreground",
7064
+ outline: ee(
7065
+ "border border-border text-muted-foreground bg-transparent rounded-[6px]",
7066
+ "group-data-[state=active]:border-emerald-500 group-data-[state=active]:text-emerald-600"
7043
7067
  )
7044
7068
  };
7045
7069
  return /* @__PURE__ */ be(
@@ -7048,52 +7072,55 @@ const gl = ({
7048
7072
  value: n || a,
7049
7073
  onValueChange: r,
7050
7074
  defaultValue: t,
7051
- className: ie("w-full", o),
7075
+ className: ee("w-full h-full min-h-0 flex flex-col", o),
7052
7076
  children: [
7053
7077
  /* @__PURE__ */ T(
7054
7078
  sl,
7055
7079
  {
7056
- className: ie(
7057
- "inline-flex gap-1 rounded-none bg-transparent h-auto p-0 w-full border-b",
7080
+ className: ee(
7081
+ "inline-flex gap-1 rounded-none bg-transparent h-auto p-0 w-full border-b shrink-0",
7058
7082
  s === "default" && "border-b border-border",
7059
7083
  s === "gradient" && "border-b border-border/30 gap-2 bg-background/50 px-2 py-2 rounded-lg",
7060
- s === "minimal" && "border-b border-border/50 gap-0"
7084
+ s === "minimal" && "border-b border-border/50 gap-0",
7085
+ s === "outline" && "border-b border-border gap-0 justify-start"
7061
7086
  ),
7062
- children: e.map((u, f) => /* @__PURE__ */ T(
7087
+ children: e.map((f, g) => /* @__PURE__ */ T(
7063
7088
  al,
7064
7089
  {
7065
- value: u.id,
7066
- disabled: u.disabled,
7067
- className: c[s],
7090
+ value: f.id,
7091
+ disabled: f.disabled,
7092
+ className: ee(
7093
+ c[s],
7094
+ s === "outline" && "flex-none"
7095
+ ),
7068
7096
  children: /* @__PURE__ */ be("div", { className: "flex items-center gap-2", children: [
7069
7097
  i && /* @__PURE__ */ T(
7070
7098
  "span",
7071
7099
  {
7072
- className: ie(
7073
- "inline-flex items-center justify-center w-5 h-5 rounded-full text-xs font-bold transition-all duration-300",
7074
- s === "default" && "bg-blue-100/60 text-blue-600 group-data-[state=active]:bg-blue-500 group-data-[state=active]:text-white",
7075
- s === "gradient" && "data-[state=active]:bg-white/20 data-[state=active]:text-white text-muted-foreground/60",
7076
- s === "minimal" && "bg-secondary/60 text-secondary-foreground"
7100
+ className: ee(
7101
+ "inline-flex items-center justify-center w-5 h-5 text-xs font-bold transition-all duration-200",
7102
+ s !== "outline" && "rounded-full",
7103
+ l[s]
7077
7104
  ),
7078
- children: f + 1
7105
+ children: g + 1
7079
7106
  }
7080
7107
  ),
7081
- u.icon && /* @__PURE__ */ T("span", { className: "inline-flex", children: u.icon }),
7082
- /* @__PURE__ */ T("span", { children: u.label })
7108
+ f.icon && /* @__PURE__ */ T("span", { className: "inline-flex", children: f.icon }),
7109
+ /* @__PURE__ */ T("span", { children: f.label })
7083
7110
  ] })
7084
7111
  },
7085
- u.id
7112
+ f.id
7086
7113
  ))
7087
7114
  }
7088
7115
  ),
7089
- /* @__PURE__ */ T("div", { className: "relative flex-1 min-h-0 overflow-hidde", children: e.map((u) => /* @__PURE__ */ T(
7116
+ /* @__PURE__ */ T("div", { className: "relative flex-1 min-h-0 overflow-hidden", children: e.map((f) => /* @__PURE__ */ T(
7090
7117
  cl,
7091
7118
  {
7092
- value: u.id,
7093
- className: "mt-0 animate-in fade-in-50 duration-300 data-[state=inactive]:hidden",
7094
- children: u.content
7119
+ value: f.id,
7120
+ className: "mt-0 h-full min-h-0 overflow-y-auto animate-in fade-in-50 duration-300 data-[state=inactive]:hidden",
7121
+ children: f.content
7095
7122
  },
7096
- u.id
7123
+ f.id
7097
7124
  )) })
7098
7125
  ]
7099
7126
  }
@@ -7109,5 +7136,5 @@ export {
7109
7136
  ao as TooltipTrigger,
7110
7137
  ml as TruncatedText,
7111
7138
  Da as buttonVariants,
7112
- ie as cn
7139
+ ee as cn
7113
7140
  };