@mt-gloss/ui 0.1.79 → 0.1.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { u as Ze, C as qe } from "./Expandable-Deyl6mWK.js";
2
2
  import { Q as Sr, V as kr, T as Dr, U as xr, a5 as Tr, b8 as Rr, aB as Mr, aj as Pr, $ as Ir, ap as Er, N as Ar, aa as Fr, bo as Or, P as Lr, B as $r, a as zr, A as Br, K as Kr, bj as Gr, J as Hr, L as Wr, E as Vr, D as jr, H as Ur, F as Yr, by as Zr, b as qr, c as Qr, O as Xr, q as Jr, af as es, aP as ts, A as as, K as ns, J as rs, L as ss, E as is, D as os, H as ls, F as cs, b1 as ds, b4 as us, b3 as ms, b2 as gs, b5 as ps, aE as hs, a7 as fs, a6 as bs, as as vs, m as ys, o as ws, aH as _s, ad as Cs, ba as Ns, ab as Ss, bp as ks, _ as Ds, bI as xs, bH as Ts, bJ as Rs, ar as Ms, aS as Ps, bc as Is, bN as Es, bw as As, p as Fs, ao as Os, bC as Ls, bt as $s, a2 as zs, at as Bs, a4 as Ks, bB as Gs, bS as Hs, G as Ws, f as Vs, ac as js, bK as Us, aV as Ys, t as Zs, x as qs, I as Qs, i as Xs, ay as Js, bO as ei, M as ti, y as ai, W as ni, Z as ri, X as si, Y as ii, au as oi, bi as li, bQ as ci, bM as di, aq as ui, w as mi, bq as gi, aU as pi, al as hi, aM as fi, ai as bi, an as vi, aw as yi, aT as wi, ae as _i, av as Ci, e as Ni, R as Si, l as ki, r as Di, aJ as xi, bz as Ti, bA as Ri, ak as Mi, ag as Pi, j as Ii, z as Ei, b9 as Ai, ah as Fi, bP as Oi, be as Li, bh as $i, bf as zi, bg as Bi, k as Ki, bb as Gi, bn as Hi, S as Wi, bl as Vi, bm as ji, ax as Ui, bd as Yi, bR as Zi, am as qi, v as Qi, bL as Xi, n as Ji, h as eo, s as to, a0 as ao, a1 as no, a9 as ro, bk as so, bx as io, bE as oo, aC as lo, aD as co, a8 as uo, aQ as mo, aR as go, aF as po, aG as ho, aI as fo, aX as bo, aY as vo, br as yo, bG as wo, bF as _o, a_ as Co, a$ as No, az as So, aA as ko, b7 as Do, b6 as xo, b0 as To, aN as Ro, aO as Mo, aZ as Po, aK as Io, aL as Eo, d as Ao, bD as Fo, bs as Oo, bu as Lo, bv as $o, aW as zo, a3 as Bo, bT as Ko, g as Go } from "./Expandable-Deyl6mWK.js";
3
- import { jsxs as v, jsx as r, Fragment as $ } from "react/jsx-runtime";
3
+ import { jsxs as w, jsx as r, Fragment as $ } from "react/jsx-runtime";
4
4
  import * as B from "react";
5
- import F, { useRef as P, useEffect as A, useState as E, useCallback as _, useId as Qe, forwardRef as Xe, useMemo as re, createContext as Je, useContext as et } from "react";
5
+ import F, { useRef as P, useEffect as A, useState as E, useCallback as C, useId as Qe, forwardRef as Xe, useMemo as re, createContext as Je, useContext as et } from "react";
6
6
  import { motion as G, useMotionValue as tt, AnimatePresence as at, useDragControls as nt } from "framer-motion";
7
7
  import { B as rt, a as X, b as ce, U as fe } from "./UIContext-DP6JGCto.js";
8
8
  import { c as Wo, u as Vo } from "./UIContext-DP6JGCto.js";
@@ -36,63 +36,63 @@ function nn(e) {
36
36
  isItemDisabled: l,
37
37
  onSelect: u,
38
38
  onEscape: c
39
- } = e, [m, f] = E(-1), d = n !== void 0 ? n : m, g = _(
39
+ } = e, [m, h] = E(-1), d = n !== void 0 ? n : m, g = C(
40
40
  (p) => {
41
- n === void 0 && f(p), a?.(p);
41
+ n === void 0 && h(p), a?.(p);
42
42
  },
43
43
  [n, a]
44
- ), w = _(() => t.map((p, b) => ({ item: p, index: b })).filter(({ item: p, index: b }) => !l?.(p, b)).map(({ index: p }) => p), [t, l]), N = _(
45
- (p, b) => {
46
- const y = w();
47
- if (y.length === 0) return -1;
48
- const D = y.indexOf(p);
44
+ ), y = C(() => t.map((p, v) => ({ item: p, index: v })).filter(({ item: p, index: v }) => !l?.(p, v)).map(({ index: p }) => p), [t, l]), k = C(
45
+ (p, v) => {
46
+ const _ = y();
47
+ if (_.length === 0) return -1;
48
+ const D = _.indexOf(p);
49
49
  if (D === -1)
50
- return b === 1 ? y.find((x) => x > p) ?? (i ? y[0] : -1) : [...y].reverse().find((I) => I < p) ?? (i ? y[y.length - 1] : -1);
51
- let T = D + b;
52
- return i ? T = (T + y.length) % y.length : T = Math.max(0, Math.min(y.length - 1, T)), y[T];
50
+ return v === 1 ? _.find((x) => x > p) ?? (i ? _[0] : -1) : [..._].reverse().find((I) => I < p) ?? (i ? _[_.length - 1] : -1);
51
+ let T = D + v;
52
+ return i ? T = (T + _.length) % _.length : T = Math.max(0, Math.min(_.length - 1, T)), _[T];
53
53
  },
54
- [w, i]
55
- ), h = _(() => {
56
- const p = w();
54
+ [y, i]
55
+ ), f = C(() => {
56
+ const p = y();
57
57
  p.length > 0 && g(p[0]);
58
- }, [w, g]), S = _(() => {
59
- const p = w();
58
+ }, [y, g]), b = C(() => {
59
+ const p = y();
60
60
  p.length > 0 && g(p[p.length - 1]);
61
- }, [w, g]), M = _(() => {
62
- const p = N(d, 1);
61
+ }, [y, g]), M = C(() => {
62
+ const p = k(d, 1);
63
63
  p !== -1 && g(p);
64
- }, [d, N, g]), C = _(() => {
65
- const p = N(d, -1);
64
+ }, [d, k, g]), N = C(() => {
65
+ const p = k(d, -1);
66
66
  p !== -1 && g(p);
67
- }, [d, N, g]), k = _(() => {
67
+ }, [d, k, g]), S = C(() => {
68
68
  g(-1);
69
- }, [g]), R = _(
69
+ }, [g]), R = C(
70
70
  (p) => {
71
71
  if (!o) return;
72
- const { key: b } = p, y = b === "ArrowUp" && (s === "vertical" || s === "both"), D = b === "ArrowDown" && (s === "vertical" || s === "both"), T = b === "ArrowLeft" && (s === "horizontal" || s === "both"), x = b === "ArrowRight" && (s === "horizontal" || s === "both");
73
- if (y || T) {
74
- p.preventDefault(), d === -1 ? S() : C();
72
+ const { key: v } = p, _ = v === "ArrowUp" && (s === "vertical" || s === "both"), D = v === "ArrowDown" && (s === "vertical" || s === "both"), T = v === "ArrowLeft" && (s === "horizontal" || s === "both"), x = v === "ArrowRight" && (s === "horizontal" || s === "both");
73
+ if (_ || T) {
74
+ p.preventDefault(), d === -1 ? b() : N();
75
75
  return;
76
76
  }
77
77
  if (D || x) {
78
- p.preventDefault(), d === -1 ? h() : M();
78
+ p.preventDefault(), d === -1 ? f() : M();
79
79
  return;
80
80
  }
81
- if (b === "Home") {
82
- p.preventDefault(), h();
81
+ if (v === "Home") {
82
+ p.preventDefault(), f();
83
83
  return;
84
84
  }
85
- if (b === "End") {
86
- p.preventDefault(), S();
85
+ if (v === "End") {
86
+ p.preventDefault(), b();
87
87
  return;
88
88
  }
89
- if ((b === "Enter" || b === " ") && d >= 0 && d < t.length) {
89
+ if ((v === "Enter" || v === " ") && d >= 0 && d < t.length) {
90
90
  p.preventDefault();
91
91
  const I = t[d];
92
92
  l?.(I, d) || u?.(I, d);
93
93
  return;
94
94
  }
95
- if (b === "Escape") {
95
+ if (v === "Escape") {
96
96
  c?.();
97
97
  return;
98
98
  }
@@ -102,10 +102,10 @@ function nn(e) {
102
102
  s,
103
103
  d,
104
104
  t,
105
- h,
106
- S,
105
+ f,
106
+ b,
107
107
  M,
108
- C,
108
+ N,
109
109
  l,
110
110
  u,
111
111
  c
@@ -115,11 +115,11 @@ function nn(e) {
115
115
  focusedIndex: d,
116
116
  setFocusedIndex: g,
117
117
  handleKeyDown: R,
118
- focusFirst: h,
119
- focusLast: S,
118
+ focusFirst: f,
119
+ focusLast: b,
120
120
  focusNext: M,
121
- focusPrevious: C,
122
- resetFocus: k
121
+ focusPrevious: N,
122
+ resetFocus: S
123
123
  };
124
124
  }
125
125
  const mt = ({
@@ -135,14 +135,14 @@ const mt = ({
135
135
  Number.isNaN(g) || a(g);
136
136
  }, c = (g) => {
137
137
  g.key === "Enter" ? (g.preventDefault(), u()) : g.key === "Escape" && (g.preventDefault(), i?.());
138
- }, m = Qe(), f = `gloss-target-input-field-${m}`, d = s ? `gloss-target-input-hint-${m}` : void 0;
139
- return /* @__PURE__ */ v("div", { className: "gloss-target-input", children: [
140
- /* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor: f, children: e }),
141
- /* @__PURE__ */ v("div", { className: "gloss-target-input__field-row", children: [
138
+ }, m = Qe(), h = `gloss-target-input-field-${m}`, d = s ? `gloss-target-input-hint-${m}` : void 0;
139
+ return /* @__PURE__ */ w("div", { className: "gloss-target-input", children: [
140
+ /* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor: h, children: e }),
141
+ /* @__PURE__ */ w("div", { className: "gloss-target-input__field-row", children: [
142
142
  /* @__PURE__ */ r(
143
143
  "input",
144
144
  {
145
- id: f,
145
+ id: h,
146
146
  type: "number",
147
147
  className: "gloss-target-input__field",
148
148
  value: o,
@@ -155,7 +155,7 @@ const mt = ({
155
155
  t && /* @__PURE__ */ r("span", { className: "gloss-target-input__unit", children: t })
156
156
  ] }),
157
157
  s && /* @__PURE__ */ r("p", { id: d, className: "gloss-target-input__hint", children: s }),
158
- /* @__PURE__ */ v("div", { className: "gloss-target-input__actions", children: [
158
+ /* @__PURE__ */ w("div", { className: "gloss-target-input__actions", children: [
159
159
  /* @__PURE__ */ r(
160
160
  "button",
161
161
  {
@@ -295,7 +295,7 @@ function yt({
295
295
  overflowActions: s,
296
296
  onClose: o
297
297
  }) {
298
- const [l, u] = E(null), c = P(null), m = _(() => {
298
+ const [l, u] = E(null), c = P(null), m = C(() => {
299
299
  if (!t) return { ...ye, top: 0, left: 0 };
300
300
  const g = t.getBoundingClientRect();
301
301
  return {
@@ -306,18 +306,18 @@ function yt({
306
306
  }, [t]);
307
307
  if (A(() => {
308
308
  if (!e) return;
309
- const g = (w) => {
310
- w.key === "Escape" && o();
309
+ const g = (y) => {
310
+ y.key === "Escape" && o();
311
311
  };
312
312
  return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
313
313
  }, [e, o]), A(() => {
314
314
  if (!e) return;
315
- const g = (w) => {
316
- c.current && !c.current.contains(w.target) && o();
315
+ const g = (y) => {
316
+ c.current && !c.current.contains(y.target) && o();
317
317
  };
318
318
  return document.addEventListener("pointerdown", g, !0), () => document.removeEventListener("pointerdown", g, !0);
319
319
  }, [e, o]), !e) return null;
320
- const f = s && s.length > 0, d = /* @__PURE__ */ v(
320
+ const h = s && s.length > 0, d = /* @__PURE__ */ w(
321
321
  "div",
322
322
  {
323
323
  ref: c,
@@ -352,8 +352,8 @@ function yt({
352
352
  children: "Show on graph"
353
353
  }
354
354
  ),
355
- f && /* @__PURE__ */ r("div", { style: vt }),
356
- f && s?.map((g) => /* @__PURE__ */ r(
355
+ h && /* @__PURE__ */ r("div", { style: vt }),
356
+ h && s?.map((g) => /* @__PURE__ */ r(
357
357
  "button",
358
358
  {
359
359
  role: "menuitem",
@@ -557,7 +557,7 @@ function Ae(e) {
557
557
  staggerMs: u
558
558
  } = e;
559
559
  if (!t) return null;
560
- const c = n === "grow", m = c ? s + a : s + i, f = c ? o - i : o - a, d = Math.max(0, f - m);
560
+ const c = n === "grow", m = c ? s + a : s + i, h = c ? o - i : o - a, d = Math.max(0, h - m);
561
561
  return /* @__PURE__ */ r(
562
562
  "div",
563
563
  {
@@ -577,7 +577,7 @@ function Ae(e) {
577
577
  left: m,
578
578
  width: d
579
579
  },
580
- children: (n === "grow" ? [0, 1, 2, 3, 4] : [4, 3, 2, 1, 0]).map((w, N) => /* @__PURE__ */ r(
580
+ children: (n === "grow" ? [0, 1, 2, 3, 4] : [4, 3, 2, 1, 0]).map((y, k) => /* @__PURE__ */ r(
581
581
  G.span,
582
582
  {
583
583
  className: [
@@ -592,11 +592,11 @@ function Ae(e) {
592
592
  duration: l / 1e3,
593
593
  repeat: 1 / 0,
594
594
  ease: "easeInOut",
595
- delay: w * u / 1e3
595
+ delay: y * u / 1e3
596
596
  },
597
597
  children: "›"
598
598
  },
599
- N
599
+ k
600
600
  ))
601
601
  }
602
602
  );
@@ -625,7 +625,7 @@ function Ce(e) {
625
625
  }
626
626
  function Fe(e) {
627
627
  const { visible: t, currentTarget: n, previewTarget: a, mode: i, showSizeTooltip: s = !0 } = e;
628
- return !t || s === !1 ? null : /* @__PURE__ */ v(
628
+ return !t || s === !1 ? null : /* @__PURE__ */ w(
629
629
  G.div,
630
630
  {
631
631
  "aria-hidden": "true",
@@ -637,7 +637,7 @@ function Fe(e) {
637
637
  exit: { opacity: 0 },
638
638
  transition: { duration: 0.18 },
639
639
  children: [
640
- i === "directional" && /* @__PURE__ */ v($, { children: [
640
+ i === "directional" && /* @__PURE__ */ w($, { children: [
641
641
  /* @__PURE__ */ r(
642
642
  _e,
643
643
  {
@@ -654,7 +654,7 @@ function Fe(e) {
654
654
  }
655
655
  )
656
656
  ] }),
657
- i === "sized" && /* @__PURE__ */ v($, { children: [
657
+ i === "sized" && /* @__PURE__ */ w($, { children: [
658
658
  /* @__PURE__ */ r("span", { className: "gloss-resize-pill-tooltip__label", children: Ce(n) }),
659
659
  /* @__PURE__ */ r("span", { className: "gloss-resize-pill-tooltip__arrow", children: "→" }),
660
660
  /* @__PURE__ */ r("span", { className: "gloss-resize-pill-tooltip__label", children: Ce(a) })
@@ -725,13 +725,13 @@ function kt(e) {
725
725
  buttonHeight: c,
726
726
  buttonWidth: m
727
727
  } = e;
728
- let f = null;
728
+ let h = null;
729
729
  if (a === "directional") {
730
730
  const d = typeof t == "number" && typeof n == "number" && t < n ? "left" : "right";
731
- f = /* @__PURE__ */ r(Ct, { direction: d });
731
+ h = /* @__PURE__ */ r(Ct, { direction: d });
732
732
  } else
733
- f = /* @__PURE__ */ r(St, { target: t });
734
- return /* @__PURE__ */ v(
733
+ h = /* @__PURE__ */ r(St, { target: t });
734
+ return /* @__PURE__ */ w(
735
735
  "button",
736
736
  {
737
737
  type: "button",
@@ -750,7 +750,7 @@ function kt(e) {
750
750
  onPointerLeave: () => u?.(),
751
751
  "aria-label": `Resize to ${String(t)}`,
752
752
  children: [
753
- /* @__PURE__ */ r("span", { className: "gloss-resize-pill__glyph", children: f }),
753
+ /* @__PURE__ */ r("span", { className: "gloss-resize-pill__glyph", children: h }),
754
754
  /* @__PURE__ */ r("span", { className: "gloss-resize-pill__check", children: /* @__PURE__ */ r(Nt, {}) })
755
755
  ]
756
756
  }
@@ -761,8 +761,8 @@ const Dt = Xe(
761
761
  const a = {
762
762
  ...Ie,
763
763
  ...t.physics
764
- }, i = t.pillVisible && !t.forceIdle && t.resizePillEnabled !== !1, s = t.availableTargets, o = t.orientation ?? "vertical", l = t.buttonHover !== null && t.previewTarget !== void 0 && t.previewTarget !== null && t.previewTarget !== t.currentTarget && !t.forceIdle && t.resizePillEnabled !== !1, u = l && t.previewTarget != null ? t.resolveTargetWidth(t.previewTarget) : t.hostWidth, c = t.chainStartX ?? 0, m = t.chainEndX ?? t.hostWidth, f = t.chainDirection ?? "grow";
765
- return /* @__PURE__ */ v(at, { children: [
764
+ }, i = t.pillVisible && !t.forceIdle && t.resizePillEnabled !== !1, s = t.availableTargets, o = t.orientation ?? "vertical", l = t.buttonHover !== null && t.previewTarget !== void 0 && t.previewTarget !== null && t.previewTarget !== t.currentTarget && !t.forceIdle && t.resizePillEnabled !== !1, u = l && t.previewTarget != null ? t.resolveTargetWidth(t.previewTarget) : t.hostWidth, c = t.chainStartX ?? 0, m = t.chainEndX ?? t.hostWidth, h = t.chainDirection ?? "grow";
765
+ return /* @__PURE__ */ w(at, { children: [
766
766
  i && /* @__PURE__ */ r(
767
767
  G.div,
768
768
  {
@@ -828,7 +828,7 @@ const Dt = Xe(
828
828
  Ae,
829
829
  {
830
830
  visible: !0,
831
- direction: f,
831
+ direction: h,
832
832
  pillClearancePx: a.pillClearancePx,
833
833
  ghostClearancePx: a.ghostClearancePx,
834
834
  startX: c,
@@ -857,54 +857,54 @@ function fn(e) {
857
857
  const t = {
858
858
  ...Ie,
859
859
  ...e.physics
860
- }, [n, a] = E("idle"), [i, s] = E(e.currentTarget), [o, l] = E(null), u = P(!1), c = P(null), m = P(null), f = P(e.currentTarget);
861
- f.current = e.currentTarget;
860
+ }, [n, a] = E("idle"), [i, s] = E(e.currentTarget), [o, l] = E(null), u = P(!1), c = P(null), m = P(null), h = P(e.currentTarget);
861
+ h.current = e.currentTarget;
862
862
  const d = P(e.onCommit);
863
863
  d.current = e.onCommit;
864
864
  const g = P(e.forceIdle);
865
865
  g.current = e.forceIdle;
866
- const w = P(e.onPhaseChange);
867
- w.current = e.onPhaseChange, A(() => {
868
- w.current?.(n);
866
+ const y = P(e.onPhaseChange);
867
+ y.current = e.onPhaseChange, A(() => {
868
+ y.current?.(n);
869
869
  }, [n]), A(() => {
870
870
  e.forceIdle && (m.current && (clearTimeout(m.current), m.current = null), a("idle"), l(null));
871
871
  }, [e.forceIdle]), A(() => () => {
872
872
  c.current && clearTimeout(c.current), m.current && clearTimeout(m.current);
873
873
  }, []);
874
- const N = _(() => {
875
- u.current || g.current || (s(f.current), a("pill-visible"));
876
- }, []), h = _(() => {
874
+ const k = C(() => {
875
+ u.current || g.current || (s(h.current), a("pill-visible"));
876
+ }, []), f = C(() => {
877
877
  a("idle"), l(null);
878
- }, []), S = _(
878
+ }, []), b = C(
879
879
  (x) => {
880
880
  u.current = !0, c.current && clearTimeout(c.current), c.current = setTimeout(() => {
881
881
  u.current = !1, c.current = null;
882
882
  }, t.fadeGraceMs), l(null), a("fading"), d.current(x);
883
883
  },
884
884
  [t.fadeGraceMs]
885
- ), M = _(() => {
886
- m.current && (clearTimeout(m.current), m.current = null), N();
887
- }, [N]), C = _(() => {
885
+ ), M = C(() => {
886
+ m.current && (clearTimeout(m.current), m.current = null), k();
887
+ }, [k]), N = C(() => {
888
888
  m.current && clearTimeout(m.current), m.current = setTimeout(() => {
889
- h(), m.current = null;
889
+ f(), m.current = null;
890
890
  }, t.hoverHideGraceMs);
891
- }, [h, t.hoverHideGraceMs]), k = _(() => {
891
+ }, [f, t.hoverHideGraceMs]), S = C(() => {
892
892
  m.current && (clearTimeout(m.current), m.current = null);
893
- }, []), R = _(() => {
893
+ }, []), R = C(() => {
894
894
  m.current && clearTimeout(m.current), m.current = setTimeout(() => {
895
- h(), m.current = null;
895
+ f(), m.current = null;
896
896
  }, t.hoverHideGraceMs);
897
- }, [h, t.hoverHideGraceMs]), p = _((x) => {
898
- const I = f.current;
897
+ }, [f, t.hoverHideGraceMs]), p = C((x) => {
898
+ const I = h.current;
899
899
  let L;
900
900
  x === "compact" || x === "medium" || x === "full" ? L = x : typeof I == "number" && typeof x == "number" ? L = x > I ? "grow" : "shrink" : L = "grow", l(L), a("pre-commit");
901
- }, []), b = _(() => {
901
+ }, []), v = C(() => {
902
902
  l(null), a((x) => x === "pre-commit" ? "pill-visible" : x);
903
- }, []), y = _(
903
+ }, []), _ = C(
904
904
  (x) => {
905
- S(x);
905
+ b(x);
906
906
  },
907
- [S]
907
+ [b]
908
908
  );
909
909
  let D = null;
910
910
  return o !== null && (o === "compact" || o === "medium" || o === "full" ? (D = o, D === e.currentTarget && (D = null)) : o === "grow" && typeof e.currentTarget == "number" ? D = e.currentTarget + 1 : o === "shrink" && typeof e.currentTarget == "number" && (D = e.currentTarget - 1)), {
@@ -915,14 +915,14 @@ function fn(e) {
915
915
  previewTarget: D,
916
916
  handlers: {
917
917
  onTriggerEnter: M,
918
- onTriggerLeave: C,
919
- onPillEnter: k,
918
+ onTriggerLeave: N,
919
+ onPillEnter: S,
920
920
  onPillLeave: R,
921
921
  onButtonEnter: p,
922
- onButtonLeave: b,
923
- onButtonClick: y
922
+ onButtonLeave: v,
923
+ onButtonClick: _
924
924
  },
925
- commit: S
925
+ commit: b
926
926
  };
927
927
  }
928
928
  function bn(e) {
@@ -1210,22 +1210,22 @@ function Oe({
1210
1210
  onCreatePage: o,
1211
1211
  onManagePages: l
1212
1212
  }) {
1213
- const u = _(
1213
+ const u = C(
1214
1214
  (d) => {
1215
1215
  s(d), t();
1216
1216
  },
1217
1217
  [s, t]
1218
- ), c = _(
1218
+ ), c = C(
1219
1219
  (d, g) => {
1220
1220
  (g.key === "Enter" || g.key === " ") && (g.preventDefault(), u(d));
1221
1221
  },
1222
1222
  [u]
1223
- ), m = _(() => {
1223
+ ), m = C(() => {
1224
1224
  o(), t();
1225
- }, [o, t]), f = _(() => {
1225
+ }, [o, t]), h = C(() => {
1226
1226
  l(), t();
1227
1227
  }, [l, t]);
1228
- return /* @__PURE__ */ v(
1228
+ return /* @__PURE__ */ w(
1229
1229
  rt,
1230
1230
  {
1231
1231
  definition: {
@@ -1241,7 +1241,7 @@ function Oe({
1241
1241
  children: [
1242
1242
  /* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((d) => {
1243
1243
  const g = d.id === i;
1244
- return /* @__PURE__ */ v(
1244
+ return /* @__PURE__ */ w(
1245
1245
  "li",
1246
1246
  {
1247
1247
  role: "menuitemradio",
@@ -1250,7 +1250,7 @@ function Oe({
1250
1250
  tabIndex: 0,
1251
1251
  className: `gloss-page-dropdown__item${g ? " gloss-page-dropdown__item--active" : ""}`,
1252
1252
  onClick: () => u(d.id),
1253
- onKeyDown: (w) => c(d.id, w),
1253
+ onKeyDown: (y) => c(d.id, y),
1254
1254
  children: [
1255
1255
  /* @__PURE__ */ r(
1256
1256
  "span",
@@ -1287,7 +1287,7 @@ function Oe({
1287
1287
  {
1288
1288
  role: "menuitem",
1289
1289
  className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
1290
- onClick: f,
1290
+ onClick: h,
1291
1291
  children: "Manage pages"
1292
1292
  }
1293
1293
  )
@@ -1307,12 +1307,12 @@ const Et = function({
1307
1307
  displayMode: u = "count",
1308
1308
  activePage: c
1309
1309
  }) {
1310
- const m = P(null), [f, d] = E(!1), g = _(() => {
1311
- d((S) => !S);
1312
- }, []), w = _(() => {
1310
+ const m = P(null), [h, d] = E(!1), g = C(() => {
1311
+ d((b) => !b);
1312
+ }, []), y = C(() => {
1313
1313
  d(!1);
1314
- }, []), N = a[t]?.id ?? "";
1315
- return /* @__PURE__ */ v(
1314
+ }, []), k = a[t]?.id ?? "";
1315
+ return /* @__PURE__ */ w(
1316
1316
  "div",
1317
1317
  {
1318
1318
  className: "gloss-page-chip",
@@ -1332,13 +1332,13 @@ const Et = function({
1332
1332
  {
1333
1333
  className: `gloss-page-chip__trigger${u === "name" ? " gloss-page-chip__trigger--name" : ""}`,
1334
1334
  "aria-haspopup": "menu",
1335
- "aria-expanded": f,
1335
+ "aria-expanded": h,
1336
1336
  "aria-label": u === "name" ? `${c ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
1337
1337
  onClick: g,
1338
- children: u === "name" ? /* @__PURE__ */ v($, { children: [
1338
+ children: u === "name" ? /* @__PURE__ */ w($, { children: [
1339
1339
  /* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children: c ?? "" }),
1340
1340
  /* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
1341
- ] }) : /* @__PURE__ */ v($, { children: [
1341
+ ] }) : /* @__PURE__ */ w($, { children: [
1342
1342
  t + 1,
1343
1343
  " / ",
1344
1344
  n
@@ -1348,11 +1348,11 @@ const Et = function({
1348
1348
  /* @__PURE__ */ r(
1349
1349
  Oe,
1350
1350
  {
1351
- open: f,
1352
- onDismiss: w,
1351
+ open: h,
1352
+ onDismiss: y,
1353
1353
  anchorRef: m,
1354
1354
  pages: a,
1355
- activePageId: N,
1355
+ activePageId: k,
1356
1356
  onPageChange: i,
1357
1357
  onCreatePage: s,
1358
1358
  onManagePages: o
@@ -2043,28 +2043,28 @@ const Ht = ({
2043
2043
  }) => {
2044
2044
  const s = P(null), o = P([]), l = Gt(), u = re(() => Array.from(e), [e]);
2045
2045
  if (u.length === 0) return null;
2046
- const c = a ? `Configure ${a}: choose a dimension` : void 0, m = l ? "10ms" : "200ms", f = (d, g) => {
2047
- const w = u.length - 1, N = (h) => {
2048
- const S = o.current[h];
2049
- S && S.focus();
2046
+ const c = a ? `Configure ${a}: choose a dimension` : void 0, m = l ? "10ms" : "200ms", h = (d, g) => {
2047
+ const y = u.length - 1, k = (f) => {
2048
+ const b = o.current[f];
2049
+ b && b.focus();
2050
2050
  };
2051
2051
  switch (d.key) {
2052
2052
  case "ArrowRight":
2053
2053
  case "ArrowDown": {
2054
- d.preventDefault(), N(g === w ? 0 : g + 1);
2054
+ d.preventDefault(), k(g === y ? 0 : g + 1);
2055
2055
  break;
2056
2056
  }
2057
2057
  case "ArrowLeft":
2058
2058
  case "ArrowUp": {
2059
- d.preventDefault(), N(g === 0 ? w : g - 1);
2059
+ d.preventDefault(), k(g === 0 ? y : g - 1);
2060
2060
  break;
2061
2061
  }
2062
2062
  case "Home": {
2063
- d.preventDefault(), N(0);
2063
+ d.preventDefault(), k(0);
2064
2064
  break;
2065
2065
  }
2066
2066
  case "End": {
2067
- d.preventDefault(), N(w);
2067
+ d.preventDefault(), k(y);
2068
2068
  break;
2069
2069
  }
2070
2070
  case "Enter":
@@ -2088,25 +2088,25 @@ const Ht = ({
2088
2088
  "--gloss-reconfig-backside-buttons-transition-duration": m
2089
2089
  },
2090
2090
  children: u.map((d, g) => {
2091
- const w = Kt[d], N = n === d;
2092
- return /* @__PURE__ */ v(
2091
+ const y = Kt[d], k = n === d;
2092
+ return /* @__PURE__ */ w(
2093
2093
  "button",
2094
2094
  {
2095
- ref: (h) => {
2096
- o.current[g] = h;
2095
+ ref: (f) => {
2096
+ o.current[g] = f;
2097
2097
  },
2098
2098
  type: "button",
2099
2099
  "data-dimension": d,
2100
2100
  className: Se(
2101
2101
  "gloss-reconfig-backside-buttons__button",
2102
- N && "gloss-reconfig-backside-buttons__button--active"
2102
+ k && "gloss-reconfig-backside-buttons__button--active"
2103
2103
  ),
2104
- "aria-current": N ? "true" : void 0,
2104
+ "aria-current": k ? "true" : void 0,
2105
2105
  onClick: () => t(d),
2106
- onKeyDown: (h) => f(h, g),
2106
+ onKeyDown: (f) => h(f, g),
2107
2107
  children: [
2108
2108
  /* @__PURE__ */ r(
2109
- w,
2109
+ y,
2110
2110
  {
2111
2111
  className: "gloss-reconfig-backside-buttons__button-icon",
2112
2112
  "aria-hidden": "true"
@@ -2297,7 +2297,7 @@ const Vt = function(t) {
2297
2297
  }
2298
2298
  );
2299
2299
  const { cards: n, composite: a } = t;
2300
- return /* @__PURE__ */ v(
2300
+ return /* @__PURE__ */ w(
2301
2301
  "div",
2302
2302
  {
2303
2303
  className: "gloss-metric-group gloss-metric-group--composite",
@@ -2323,7 +2323,7 @@ const Vt = function(t) {
2323
2323
  style: { background: a.accentColor }
2324
2324
  }
2325
2325
  ),
2326
- a?.label && /* @__PURE__ */ v("div", { className: "gloss-metric-group__label", children: [
2326
+ a?.label && /* @__PURE__ */ w("div", { className: "gloss-metric-group__label", children: [
2327
2327
  /* @__PURE__ */ r("span", { children: a.label }),
2328
2328
  a?.trend && /* @__PURE__ */ r(
2329
2329
  "span",
@@ -2390,17 +2390,17 @@ function Yt() {
2390
2390
  } catch {
2391
2391
  }
2392
2392
  }, [e]);
2393
- const n = _(
2393
+ const n = C(
2394
2394
  (s, o) => {
2395
2395
  t((l) => ({ ...l, [s]: o }));
2396
2396
  },
2397
2397
  []
2398
- ), a = _(
2398
+ ), a = C(
2399
2399
  (s) => {
2400
2400
  t((o) => ({ ...o, [s]: V[s] }));
2401
2401
  },
2402
2402
  []
2403
- ), i = _(() => {
2403
+ ), i = C(() => {
2404
2404
  t({ ...V });
2405
2405
  }, []);
2406
2406
  return { values: e, setValue: n, resetRow: a, resetAll: i };
@@ -2420,7 +2420,7 @@ function qt(e, t) {
2420
2420
  return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
2421
2421
  }
2422
2422
  function Qt() {
2423
- return /* @__PURE__ */ v(
2423
+ return /* @__PURE__ */ w(
2424
2424
  "svg",
2425
2425
  {
2426
2426
  width: "14",
@@ -2440,13 +2440,13 @@ function Qt() {
2440
2440
  );
2441
2441
  }
2442
2442
  function Xt({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
2443
- const s = _(
2443
+ const s = C(
2444
2444
  (o) => {
2445
2445
  (o.key === "r" || o.key === "R") && (o.preventDefault(), a());
2446
2446
  },
2447
2447
  [a]
2448
2448
  );
2449
- return /* @__PURE__ */ v(
2449
+ return /* @__PURE__ */ w(
2450
2450
  "div",
2451
2451
  {
2452
2452
  className: `gloss-dev-tuning-panel__row${i ? " gloss-dev-tuning-panel__row--flash" : ""}`,
@@ -2454,7 +2454,7 @@ function Xt({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
2454
2454
  onKeyDown: s,
2455
2455
  children: [
2456
2456
  /* @__PURE__ */ r("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
2457
- /* @__PURE__ */ v("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
2457
+ /* @__PURE__ */ w("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
2458
2458
  qt(t, e.step),
2459
2459
  e.unit ? ` ${e.unit}` : ""
2460
2460
  ] }),
@@ -2499,17 +2499,17 @@ function ea(e = {}) {
2499
2499
  }
2500
2500
  ea.displayName = "DevTuningPanel";
2501
2501
  function ta() {
2502
- const e = Yt(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = E(null), l = P(null), u = _((d) => {
2502
+ const e = Yt(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = E(null), l = P(null), u = C((d) => {
2503
2503
  l.current && clearTimeout(l.current), o(d), l.current = setTimeout(() => {
2504
2504
  o(null), l.current = null;
2505
2505
  }, 200);
2506
- }, []), c = _(
2506
+ }, []), c = C(
2507
2507
  (d, g) => {
2508
2508
  n(d, g), d === "snapInPx" && g > t.snapOutPx && (n("snapOutPx", g), u("snapOutPx"));
2509
2509
  },
2510
2510
  [n, t.snapOutPx, u]
2511
- ), m = re(() => Zt, []), f = nt();
2512
- return /* @__PURE__ */ v(
2511
+ ), m = re(() => Zt, []), h = nt();
2512
+ return /* @__PURE__ */ w(
2513
2513
  G.div,
2514
2514
  {
2515
2515
  className: "gloss-dev-tuning-panel",
@@ -2518,14 +2518,14 @@ function ta() {
2518
2518
  "data-testid": "gloss-dev-tuning-panel",
2519
2519
  drag: !0,
2520
2520
  dragListener: !1,
2521
- dragControls: f,
2521
+ dragControls: h,
2522
2522
  dragMomentum: !1,
2523
2523
  children: [
2524
- /* @__PURE__ */ v(
2524
+ /* @__PURE__ */ w(
2525
2525
  "div",
2526
2526
  {
2527
2527
  className: "gloss-dev-tuning-panel__header",
2528
- onPointerDown: (d) => f.start(d),
2528
+ onPointerDown: (d) => h.start(d),
2529
2529
  children: [
2530
2530
  /* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
2531
2531
  /* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
@@ -2568,11 +2568,11 @@ function Yn({
2568
2568
  bottomY: u,
2569
2569
  enterMs: c = U.envelopeEnterMs,
2570
2570
  exitMs: m = U.envelopeExitMs,
2571
- className: f,
2571
+ className: h,
2572
2572
  style: d
2573
2573
  }) {
2574
2574
  if (e === "hidden") return null;
2575
- const g = Math.max(0, i - a), w = Math.max(0, u - l), N = {
2575
+ const g = Math.max(0, i - a), y = Math.max(0, u - l), k = {
2576
2576
  "--gloss-resize-envelope-enter-ms": `${c}ms`,
2577
2577
  "--gloss-resize-envelope-exit-ms": `${m}ms`,
2578
2578
  "--gloss-resize-envelope-origin-x": `${t - a}px`,
@@ -2580,16 +2580,16 @@ function Yn({
2580
2580
  left: a,
2581
2581
  top: l,
2582
2582
  width: g,
2583
- height: w,
2583
+ height: y,
2584
2584
  ...d
2585
2585
  };
2586
- return /* @__PURE__ */ v(
2586
+ return /* @__PURE__ */ w(
2587
2587
  "div",
2588
2588
  {
2589
- className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`, f].filter(Boolean).join(" "),
2589
+ className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`, h].filter(Boolean).join(" "),
2590
2590
  "data-state": e,
2591
2591
  "data-testid": "gloss-resize-envelope",
2592
- style: N,
2592
+ style: k,
2593
2593
  "aria-hidden": "true",
2594
2594
  children: [
2595
2595
  /* @__PURE__ */ r(
@@ -2616,14 +2616,14 @@ function Yn({
2616
2616
  style: { left: g - 1 }
2617
2617
  }
2618
2618
  ),
2619
- o.filter((h) => h > s && h < i).map((h) => /* @__PURE__ */ r(
2619
+ o.filter((f) => f > s && f < i).map((f) => /* @__PURE__ */ r(
2620
2620
  "div",
2621
2621
  {
2622
2622
  className: "gloss-resize-envelope__snap-line",
2623
2623
  "data-snap-line": !0,
2624
- style: { left: h - a }
2624
+ style: { left: f - a }
2625
2625
  },
2626
- h
2626
+ f
2627
2627
  ))
2628
2628
  ]
2629
2629
  }
@@ -2815,8 +2815,8 @@ function nr({
2815
2815
  onPack: l,
2816
2816
  ariaLabel: u
2817
2817
  }) {
2818
- const c = a ?? "Add card to this cell", m = i ?? u ?? "Pack row — shift cards left", f = t ?? l, { affordancesVisible: d } = Ze();
2819
- return /* @__PURE__ */ v(B.Fragment, { children: [
2818
+ const c = a ?? "Add card to this cell", m = i ?? u ?? "Pack row — shift cards left", h = t ?? l, { affordancesVisible: d } = Ze();
2819
+ return /* @__PURE__ */ w(B.Fragment, { children: [
2820
2820
  /* @__PURE__ */ r(De, { visible: d, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
2821
2821
  "button",
2822
2822
  {
@@ -2844,7 +2844,7 @@ function nr({
2844
2844
  className: ["gloss-empty-cell-pack-affordance", s].filter(Boolean).join(" "),
2845
2845
  style: o,
2846
2846
  onClick: (g) => {
2847
- g.stopPropagation(), f?.();
2847
+ g.stopPropagation(), h?.();
2848
2848
  },
2849
2849
  children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
2850
2850
  }
@@ -2866,16 +2866,16 @@ function rr({
2866
2866
  return de("drag-ghost", () => {
2867
2867
  if (process.env.NODE_ENV === "production")
2868
2868
  return { values: {}, spec: null, state: "idle", t: performance.now() };
2869
- const f = m.current?.getBoundingClientRect() ?? null;
2869
+ const h = m.current?.getBoundingClientRect() ?? null;
2870
2870
  return {
2871
2871
  values: {
2872
2872
  x: s.get(),
2873
2873
  y: o.get(),
2874
- bounds_x: f?.x ?? 0,
2875
- bounds_y: f?.y ?? 0,
2876
- bounds_w: f?.width ?? 0,
2877
- bounds_h: f?.height ?? 0,
2878
- visible: f ? 1 : 0
2874
+ bounds_x: h?.x ?? 0,
2875
+ bounds_y: h?.y ?? 0,
2876
+ bounds_w: h?.width ?? 0,
2877
+ bounds_h: h?.height ?? 0,
2878
+ visible: h ? 1 : 0
2879
2879
  },
2880
2880
  spec: {
2881
2881
  tint: e,
@@ -2889,38 +2889,38 @@ function rr({
2889
2889
  }), de("commit-ghost-singleton", () => {
2890
2890
  if (process.env.NODE_ENV === "production")
2891
2891
  return { values: {}, spec: null, state: "idle", t: performance.now() };
2892
- const f = m.current;
2893
- let d = 0, g = "", w = "", N = "";
2894
- if (f)
2892
+ const h = m.current;
2893
+ let d = 0, g = "", y = "", k = "";
2894
+ if (h)
2895
2895
  try {
2896
- const M = window.getComputedStyle(f), C = M.outline || "", k = M.border || "", R = M.boxShadow || "", p = !!C && C !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(C), b = !!k && k !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(k), y = !!R && R !== "none";
2897
- d = p || b || y ? 1 : 0, g = p ? C : "", w = b ? k : "", N = y ? R : "";
2896
+ const M = window.getComputedStyle(h), N = M.outline || "", S = M.border || "", R = M.boxShadow || "", p = !!N && N !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(N), v = !!S && S !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(S), _ = !!R && R !== "none";
2897
+ d = p || v || _ ? 1 : 0, g = p ? N : "", y = v ? S : "", k = _ ? R : "";
2898
2898
  } catch {
2899
2899
  }
2900
- const h = f?.getBoundingClientRect() ?? null, S = f ? "drag-clone" : "subsumed-by-tracking-outline";
2900
+ const f = h?.getBoundingClientRect() ?? null, b = h ? "drag-clone" : "subsumed-by-tracking-outline";
2901
2901
  return {
2902
2902
  values: {
2903
2903
  x: s.get(),
2904
2904
  y: o.get(),
2905
- bounds_x: h?.x ?? 0,
2906
- bounds_y: h?.y ?? 0,
2907
- bounds_w: h?.width ?? 0,
2908
- bounds_h: h?.height ?? 0,
2909
- visible: f ? 1 : 0,
2905
+ bounds_x: f?.x ?? 0,
2906
+ bounds_y: f?.y ?? 0,
2907
+ bounds_w: f?.width ?? 0,
2908
+ bounds_h: f?.height ?? 0,
2909
+ visible: h ? 1 : 0,
2910
2910
  outlineOnClone: d
2911
2911
  },
2912
2912
  spec: {
2913
- mode: S,
2913
+ mode: b,
2914
2914
  tint: e,
2915
2915
  outlineSrc: g,
2916
- borderSrc: w,
2917
- boxShadowSrc: N
2916
+ borderSrc: y,
2917
+ boxShadowSrc: k
2918
2918
  // D-01 contract: Frame 1 (current/buggy) shows outline-on-clone=true;
2919
2919
  // Frame 2 (decided): outline-on-clone=false (subsumed by tracking
2920
2920
  // outline). Wave 2 audit-D-01 reads this field across drag mid-flight
2921
2921
  // + post-drop frames and records frame match.
2922
2922
  },
2923
- state: f ? "active" : "idle",
2923
+ state: h ? "active" : "idle",
2924
2924
  t: performance.now()
2925
2925
  };
2926
2926
  }), /* @__PURE__ */ r(
@@ -2953,7 +2953,7 @@ function Ge({
2953
2953
  className: u,
2954
2954
  motionWidth: c
2955
2955
  }) {
2956
- const m = n * a + (n - 1) * i, d = (t.section * na + t.col) * (a + i), g = t.row * (s + i), w = e === "resize" ? 2.5 : 2, N = o === "dashed-retreated" ? "dashed" : "solid", h = e === "drag" ? "gloss-snap-outline" : "gloss-tracking-outline", S = {
2956
+ const m = n * a + (n - 1) * i, d = (t.section * na + t.col) * (a + i), g = t.row * (s + i), y = e === "resize" ? 2.5 : 2, k = o === "dashed-retreated" ? "dashed" : "solid", f = e === "drag" ? "gloss-snap-outline" : "gloss-tracking-outline", b = {
2957
2957
  className: [
2958
2958
  "gloss-tracking-outline",
2959
2959
  `gloss-tracking-outline--${e}`,
@@ -2963,7 +2963,7 @@ function Ge({
2963
2963
  e === "drag" ? "gloss-drag-feedback-snap-outline" : null,
2964
2964
  u
2965
2965
  ].filter(Boolean).join(" "),
2966
- "data-testid": h,
2966
+ "data-testid": f,
2967
2967
  "data-tracking-outline": "",
2968
2968
  "data-gesture": e,
2969
2969
  "data-pattern": o,
@@ -2972,25 +2972,25 @@ function Ge({
2972
2972
  return c ? /* @__PURE__ */ r(
2973
2973
  G.div,
2974
2974
  {
2975
- ...S,
2975
+ ...b,
2976
2976
  style: {
2977
2977
  transform: `translate(${d}px, ${g}px)`,
2978
2978
  width: c,
2979
2979
  height: s,
2980
- borderWidth: w,
2981
- borderStyle: N
2980
+ borderWidth: y,
2981
+ borderStyle: k
2982
2982
  }
2983
2983
  }
2984
2984
  ) : /* @__PURE__ */ r(
2985
2985
  "div",
2986
2986
  {
2987
- ...S,
2987
+ ...b,
2988
2988
  style: {
2989
2989
  transform: `translate(${d}px, ${g}px)`,
2990
2990
  width: m,
2991
2991
  height: s,
2992
- borderWidth: w,
2993
- borderStyle: N,
2992
+ borderWidth: y,
2993
+ borderStyle: k,
2994
2994
  transition: `transform ${l}ms cubic-bezier(0.4, 0, 0.2, 1)`
2995
2995
  }
2996
2996
  }
@@ -3011,8 +3011,8 @@ function ir({
3011
3011
  return { values: {}, spec: null, state: "idle", t: performance.now() };
3012
3012
  const o = s.current;
3013
3013
  let l = 0, u = 0, c = 0, m = 0;
3014
- for (const f of o) {
3015
- const d = f.x.get(), g = f.y.get();
3014
+ for (const h of o) {
3015
+ const d = h.x.get(), g = h.y.get();
3016
3016
  Math.abs(d) > Math.abs(c) && (c = d, l = d), Math.abs(g) > Math.abs(m) && (m = g, u = g);
3017
3017
  }
3018
3018
  return {
@@ -3066,14 +3066,14 @@ const ra = ({
3066
3066
  return () => cancelAnimationFrame(c);
3067
3067
  }, [e.value, t.value]);
3068
3068
  const s = e.label ?? "ACTUAL", o = t.label ?? "ELAPSED";
3069
- return /* @__PURE__ */ v(
3069
+ return /* @__PURE__ */ w(
3070
3070
  "div",
3071
3071
  {
3072
3072
  className: "gloss-dual-pace-bars",
3073
3073
  role: "img",
3074
3074
  "aria-label": `${s}: ${e.value}%, ${o}: ${t.value}%`,
3075
3075
  children: [
3076
- /* @__PURE__ */ v("div", { className: "gloss-dual-pace-bars__row", children: [
3076
+ /* @__PURE__ */ w("div", { className: "gloss-dual-pace-bars__row", children: [
3077
3077
  /* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children: s }),
3078
3078
  /* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
3079
3079
  "div",
@@ -3088,12 +3088,12 @@ const ra = ({
3088
3088
  "aria-label": `${s}: ${e.value}%`
3089
3089
  }
3090
3090
  ) }),
3091
- /* @__PURE__ */ v("span", { className: "gloss-dual-pace-bars__track-value", children: [
3091
+ /* @__PURE__ */ w("span", { className: "gloss-dual-pace-bars__track-value", children: [
3092
3092
  e.value,
3093
3093
  "%"
3094
3094
  ] })
3095
3095
  ] }),
3096
- /* @__PURE__ */ v("div", { className: "gloss-dual-pace-bars__row", children: [
3096
+ /* @__PURE__ */ w("div", { className: "gloss-dual-pace-bars__row", children: [
3097
3097
  /* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children: o }),
3098
3098
  /* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
3099
3099
  "div",
@@ -3108,7 +3108,7 @@ const ra = ({
3108
3108
  "aria-label": `${o}: ${t.value}%`
3109
3109
  }
3110
3110
  ) }),
3111
- /* @__PURE__ */ v("span", { className: "gloss-dual-pace-bars__track-value", children: [
3111
+ /* @__PURE__ */ w("span", { className: "gloss-dual-pace-bars__track-value", children: [
3112
3112
  t.value,
3113
3113
  "%"
3114
3114
  ] })
@@ -3116,22 +3116,22 @@ const ra = ({
3116
3116
  ]
3117
3117
  }
3118
3118
  );
3119
- }, sa = ({ label: e, value: t, severity: n }) => /* @__PURE__ */ v(
3119
+ }, sa = ({ label: e, value: t, severity: n }) => /* @__PURE__ */ w(
3120
3120
  "div",
3121
3121
  {
3122
3122
  className: `gloss-gap-readout gloss-gap-readout--${n}`,
3123
3123
  "aria-label": `${e}: ${t}`,
3124
3124
  children: [
3125
3125
  /* @__PURE__ */ r("hr", { className: "gloss-gap-readout__separator" }),
3126
- /* @__PURE__ */ v("div", { className: "gloss-gap-readout__strip", children: [
3126
+ /* @__PURE__ */ w("div", { className: "gloss-gap-readout__strip", children: [
3127
3127
  /* @__PURE__ */ r("span", { className: "gloss-gap-readout__label", children: e }),
3128
3128
  /* @__PURE__ */ r("span", { className: "gloss-gap-readout__value", children: t })
3129
3129
  ] })
3130
3130
  ]
3131
3131
  }
3132
- ), ia = ({ label: e, onSetTarget: t }) => /* @__PURE__ */ v("div", { className: "gloss-pace-placeholder", children: [
3132
+ ), ia = ({ label: e, onSetTarget: t }) => /* @__PURE__ */ w("div", { className: "gloss-pace-placeholder", children: [
3133
3133
  /* @__PURE__ */ r("p", { className: "gloss-pace-placeholder__heading", children: "Set a target" }),
3134
- /* @__PURE__ */ v("p", { className: "gloss-pace-placeholder__context", children: [
3134
+ /* @__PURE__ */ w("p", { className: "gloss-pace-placeholder__context", children: [
3135
3135
  "for ",
3136
3136
  e
3137
3137
  ] }),
@@ -3169,10 +3169,10 @@ const ra = ({
3169
3169
  onFlipChange: n,
3170
3170
  quickConfigSlot: o,
3171
3171
  onRemove: e.onRemove,
3172
- children: /* @__PURE__ */ v("div", { className: `gloss-pace-card ${e.isStale ? "gloss-metric-data-stale" : ""}`, children: [
3172
+ children: /* @__PURE__ */ w("div", { className: `gloss-pace-card ${e.isStale ? "gloss-metric-data-stale" : ""}`, children: [
3173
3173
  /* @__PURE__ */ r("div", { className: "gloss-pace-card__label", children: e.label }),
3174
3174
  e.subtitle && /* @__PURE__ */ r("div", { className: "gloss-pace-card__subtitle", children: e.subtitle }),
3175
- /* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: i ? /* @__PURE__ */ v($, { children: [
3175
+ /* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: i ? /* @__PURE__ */ w($, { children: [
3176
3176
  /* @__PURE__ */ r(
3177
3177
  ra,
3178
3178
  {
@@ -3192,7 +3192,7 @@ const ra = ({
3192
3192
  ] })
3193
3193
  }
3194
3194
  );
3195
- }, lr = () => /* @__PURE__ */ v("div", { className: "gloss-pace-tile-preview", "aria-hidden": "true", children: [
3195
+ }, lr = () => /* @__PURE__ */ w("div", { className: "gloss-pace-tile-preview", "aria-hidden": "true", children: [
3196
3196
  /* @__PURE__ */ r(
3197
3197
  "div",
3198
3198
  {
@@ -3223,7 +3223,7 @@ function oa({ id: e, label: t, selected: n, focused: a, disabled: i, badge: s, o
3223
3223
  onClick: () => {
3224
3224
  i || o(e);
3225
3225
  },
3226
- children: /* @__PURE__ */ v("span", { className: "gloss-lens-chip__inner", children: [
3226
+ children: /* @__PURE__ */ w("span", { className: "gloss-lens-chip__inner", children: [
3227
3227
  /* @__PURE__ */ r("span", { className: "gloss-lens-chip__label", children: t }),
3228
3228
  s && /* @__PURE__ */ r("span", { className: "gloss-lens-chip__badge", children: s })
3229
3229
  ] })
@@ -3291,7 +3291,7 @@ function la({
3291
3291
  }
3292
3292
  la.displayName = "LensChipGroup";
3293
3293
  function ca({ heading: e, children: t }) {
3294
- return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */ v("section", { className: "gloss-starter-rail", "aria-label": e, children: [
3294
+ return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */ w("section", { className: "gloss-starter-rail", "aria-label": e, children: [
3295
3295
  /* @__PURE__ */ r("header", { className: "gloss-starter-rail__heading", children: e }),
3296
3296
  /* @__PURE__ */ r("div", { className: "gloss-starter-rail__tiles", children: t })
3297
3297
  ] });
@@ -3299,9 +3299,9 @@ function ca({ heading: e, children: t }) {
3299
3299
  ca.displayName = "StarterRail";
3300
3300
  function da({ heading: e, children: t, emptyStateLabel: n }) {
3301
3301
  const a = !t || Array.isArray(t) && t.length === 0;
3302
- return /* @__PURE__ */ v("section", { className: "gloss-more-in-lens-rail", "aria-label": e, children: [
3302
+ return /* @__PURE__ */ w("section", { className: "gloss-more-in-lens-rail", "aria-label": e, children: [
3303
3303
  /* @__PURE__ */ r("header", { className: "gloss-more-in-lens-rail__heading", children: e }),
3304
- /* @__PURE__ */ v("div", { className: "gloss-more-in-lens-rail__tiles", children: [
3304
+ /* @__PURE__ */ w("div", { className: "gloss-more-in-lens-rail__tiles", children: [
3305
3305
  t,
3306
3306
  a && n && /* @__PURE__ */ r("p", { className: "gloss-more-in-lens-rail__empty", children: n })
3307
3307
  ] })
@@ -3324,7 +3324,7 @@ function K({
3324
3324
  `gloss-entity-row--${s}`,
3325
3325
  o ? "gloss-entity-row--clickable" : "",
3326
3326
  l ?? ""
3327
- ].filter(Boolean).join(" "), m = /* @__PURE__ */ v($, { children: [
3327
+ ].filter(Boolean).join(" "), m = /* @__PURE__ */ w($, { children: [
3328
3328
  e !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__lead", children: e }),
3329
3329
  /* @__PURE__ */ r("span", { className: "gloss-entity-row__name", title: t, children: t }),
3330
3330
  n !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__secondary", children: n }),
@@ -3343,8 +3343,8 @@ function K({
3343
3343
  gap: 4,
3344
3344
  cursor: "pointer"
3345
3345
  },
3346
- onClick: (f) => {
3347
- f.stopPropagation(), o();
3346
+ onClick: (h) => {
3347
+ h.stopPropagation(), o();
3348
3348
  },
3349
3349
  children: m
3350
3350
  }
@@ -3391,7 +3391,7 @@ function He({
3391
3391
  }
3392
3392
  );
3393
3393
  const a = t === "up" ? "▲" : t === "down" ? "▼" : "—";
3394
- return /* @__PURE__ */ v(
3394
+ return /* @__PURE__ */ w(
3395
3395
  "span",
3396
3396
  {
3397
3397
  role: "img",
@@ -3431,7 +3431,7 @@ function ma({
3431
3431
  isStale: i
3432
3432
  }) {
3433
3433
  const s = n ?? 3;
3434
- return /* @__PURE__ */ v($, { children: [
3434
+ return /* @__PURE__ */ w($, { children: [
3435
3435
  /* @__PURE__ */ r(
3436
3436
  X,
3437
3437
  {
@@ -3473,14 +3473,14 @@ function ma({
3473
3473
  )) })
3474
3474
  }
3475
3475
  ),
3476
- /* @__PURE__ */ v("div", { className: "gloss-leaderboard__zone-c", children: [
3476
+ /* @__PURE__ */ w("div", { className: "gloss-leaderboard__zone-c", children: [
3477
3477
  a ?? "WoW",
3478
3478
  " rank change"
3479
3479
  ] })
3480
3480
  ] });
3481
3481
  }
3482
3482
  ma.displayName = "LeaderboardCard";
3483
- const ga = () => /* @__PURE__ */ v(
3483
+ const ga = () => /* @__PURE__ */ w(
3484
3484
  "div",
3485
3485
  {
3486
3486
  className: "leaderboard-tile-preview",
@@ -3522,7 +3522,7 @@ function fa({
3522
3522
  isStale: o
3523
3523
  }) {
3524
3524
  const l = t.filter((c) => ha(c, n)), u = l.slice(0, a ?? 3);
3525
- return l.length === 0 ? /* @__PURE__ */ v($, { children: [
3525
+ return l.length === 0 ? /* @__PURE__ */ w($, { children: [
3526
3526
  /* @__PURE__ */ r(
3527
3527
  X,
3528
3528
  {
@@ -3533,7 +3533,7 @@ function fa({
3533
3533
  ),
3534
3534
  /* @__PURE__ */ r("div", { className: "gloss-exception-list__empty", role: "status", children: i ?? "No exceptions" }),
3535
3535
  s && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: s })
3536
- ] }) : /* @__PURE__ */ v($, { children: [
3536
+ ] }) : /* @__PURE__ */ w($, { children: [
3537
3537
  /* @__PURE__ */ r(
3538
3538
  X,
3539
3539
  {
@@ -3564,7 +3564,7 @@ function fa({
3564
3564
  ] });
3565
3565
  }
3566
3566
  fa.displayName = "ExceptionListCard";
3567
- const ba = () => /* @__PURE__ */ v(
3567
+ const ba = () => /* @__PURE__ */ w(
3568
3568
  "div",
3569
3569
  {
3570
3570
  className: "exception-list-tile-preview",
@@ -3620,7 +3620,7 @@ const xe = ["MTD", "QTD", "YTD", "LYTD", "7D"], Te = ["$248K", "$612K", "$1.24M"
3620
3620
  {
3621
3621
  className: `gloss-stacked-group-tile-preview gloss-stacked-group-tile-preview--slots-${e}`,
3622
3622
  "aria-hidden": "true",
3623
- children: a.map((i, s) => /* @__PURE__ */ v("div", { className: "gloss-stacked-group-tile-preview__row", children: [
3623
+ children: a.map((i, s) => /* @__PURE__ */ w("div", { className: "gloss-stacked-group-tile-preview__row", children: [
3624
3624
  /* @__PURE__ */ r("span", { className: "gloss-stacked-group-tile-preview__row-label", children: i.label }),
3625
3625
  /* @__PURE__ */ r("span", { className: "gloss-stacked-group-tile-preview__row-value", children: i.value }),
3626
3626
  /* @__PURE__ */ r(
@@ -3695,7 +3695,7 @@ function fr({
3695
3695
  const u = (e.section * ya + e.col) * (a + s), c = e.row * (i + s), m = t === "eligibility" ? j.eligibilityFill : t === "commit" ? j.commitFill : t === "rejection" ? j.rejectionFill : (
3696
3696
  /* ramp */
3697
3697
  n ?? j.eligibilityFill
3698
- ), f = t === "rejection", d = f ? j.rejectionStroke : "transparent", g = f ? "dashed" : "solid";
3698
+ ), h = t === "rejection", d = h ? j.rejectionStroke : "transparent", g = h ? "dashed" : "solid";
3699
3699
  return /* @__PURE__ */ r(
3700
3700
  "div",
3701
3701
  {
@@ -3772,7 +3772,7 @@ function br({
3772
3772
  pointerEvents: "none"
3773
3773
  },
3774
3774
  children: _a.map((m) => {
3775
- const f = m.peakR * 2;
3775
+ const h = m.peakR * 2;
3776
3776
  return /* @__PURE__ */ r(
3777
3777
  "div",
3778
3778
  {
@@ -3784,8 +3784,8 @@ function br({
3784
3784
  position: "absolute",
3785
3785
  left: l - m.peakR,
3786
3786
  top: u - m.peakR,
3787
- width: f,
3788
- height: f,
3787
+ width: h,
3788
+ height: h,
3789
3789
  borderRadius: "50%",
3790
3790
  borderStyle: "solid",
3791
3791
  borderWidth: m.strokeW,
@@ -3809,10 +3809,10 @@ function vr(e) {
3809
3809
  return /* @__PURE__ */ r(Ge, { gesture: "resize", ...e });
3810
3810
  }
3811
3811
  function Ca(e, t, n) {
3812
- const a = Math.max(0, Math.min(1, n)), i = (f) => [
3813
- parseInt(f.slice(1, 3), 16),
3814
- parseInt(f.slice(3, 5), 16),
3815
- parseInt(f.slice(5, 7), 16)
3812
+ const a = Math.max(0, Math.min(1, n)), i = (h) => [
3813
+ parseInt(h.slice(1, 3), 16),
3814
+ parseInt(h.slice(3, 5), 16),
3815
+ parseInt(h.slice(5, 7), 16)
3816
3816
  ], [s, o, l] = i(e), [u, c, m] = i(t);
3817
3817
  return `rgb(${Math.round(s + (u - s) * a)}, ${Math.round(o + (c - o) * a)}, ${Math.round(
3818
3818
  l + (m - l) * a
@@ -3825,8 +3825,8 @@ function Sa(e) {
3825
3825
  return e === "dragging";
3826
3826
  }
3827
3827
  function yr(e) {
3828
- const { edgeHover: t, sourceCell: n, cascadeResult: a } = e, s = Ke() === "reduced", o = B.useRef(t.currentColSpan), l = B.useRef({ armed: !0, fireKey: 0, lastResult: null }), u = B.useRef(t.currentColSpan), c = B.useRef("idle"), m = B.useRef(t.currentColSpan), f = Sa(t.state);
3829
- if (s ? (c.current = "settled", m.current = t.currentColSpan, u.current = t.currentColSpan) : f ? c.current = t.currentColSpan !== u.current ? "incoming" : "outgoing" : (t.currentColSpan !== u.current && (m.current = t.currentColSpan, u.current = t.currentColSpan), c.current !== "idle" && (c.current = "settled")), !f)
3828
+ const { edgeHover: t, sourceCell: n, cascadeResult: a } = e, s = Ke() === "reduced", o = B.useRef(t.currentColSpan), l = B.useRef({ armed: !0, fireKey: 0, lastResult: null }), u = B.useRef(t.currentColSpan), c = B.useRef("idle"), m = B.useRef(t.currentColSpan), h = Sa(t.state);
3829
+ if (s ? (c.current = "settled", m.current = t.currentColSpan, u.current = t.currentColSpan) : h ? c.current = t.currentColSpan !== u.current ? "incoming" : "outgoing" : (t.currentColSpan !== u.current && (m.current = t.currentColSpan, u.current = t.currentColSpan), c.current !== "idle" && (c.current = "settled")), !h)
3830
3830
  return l.current.armed = !0, l.current.lastResult = null, {
3831
3831
  trackingOutline: null,
3832
3832
  cellTints: [],
@@ -3835,17 +3835,17 @@ function yr(e) {
3835
3835
  phase: c.current,
3836
3836
  displayColSpan: m.current
3837
3837
  };
3838
- const d = t.hysteresisTargetColSpan, g = t.previewColSpan, w = a?.result === "rejected";
3839
- w || (o.current = d), w && l.current.armed && l.current.lastResult !== "rejected" && (l.current.fireKey += 1, l.current.armed = !1), l.current.lastResult = w ? "rejected" : "ok";
3840
- const N = w ? o.current : d, h = {
3838
+ const d = t.hysteresisTargetColSpan, g = t.previewColSpan, y = a?.result === "rejected";
3839
+ y || (o.current = d), y && l.current.armed && l.current.lastResult !== "rejected" && (l.current.fireKey += 1, l.current.armed = !1), l.current.lastResult = y ? "rejected" : "ok";
3840
+ const k = y ? o.current : d, f = {
3841
3841
  cell: { section: 0, col: 0, row: 0 },
3842
- colSpan: N,
3843
- pattern: w ? "dashed-retreated" : "solid"
3844
- }, S = [];
3845
- if (w) {
3846
- const k = n.col + o.current, R = n.col + d - 1;
3847
- for (let p = k; p <= R && p <= 2; p++)
3848
- S.push({
3842
+ colSpan: k,
3843
+ pattern: y ? "dashed-retreated" : "solid"
3844
+ }, b = [];
3845
+ if (y) {
3846
+ const S = n.col + o.current, R = n.col + d - 1;
3847
+ for (let p = S; p <= R && p <= 2; p++)
3848
+ b.push({
3849
3849
  cell: {
3850
3850
  section: 0,
3851
3851
  col: p - n.col,
@@ -3854,30 +3854,30 @@ function yr(e) {
3854
3854
  variant: "rejection"
3855
3855
  });
3856
3856
  } else {
3857
- const k = Math.abs(g - d), R = Math.max(0, Math.min(1, 1 - k));
3857
+ const S = Math.abs(g - d), R = Math.max(0, Math.min(1, 1 - S));
3858
3858
  for (let p = n.col; p < n.col + d && p <= 2; p++) {
3859
3859
  if (p === n.col) continue;
3860
- const b = p === n.col + d - 1, y = {
3860
+ const v = p === n.col + d - 1, _ = {
3861
3861
  section: 0,
3862
3862
  col: p - n.col,
3863
3863
  row: 0
3864
3864
  };
3865
- b && t.direction.startsWith("grow") && d > 1 && !s && k > 0 && k < 1 ? S.push({
3866
- cell: y,
3865
+ v && t.direction.startsWith("grow") && d > 1 && !s && S > 0 && S < 1 ? b.push({
3866
+ cell: _,
3867
3867
  variant: "ramp",
3868
3868
  rampColor: Ca(Me.eligibilityFill, Me.commitFill, R)
3869
- }) : b ? S.push({ cell: y, variant: "commit" }) : S.push({ cell: y, variant: "eligibility" });
3869
+ }) : v ? b.push({ cell: _, variant: "commit" }) : b.push({ cell: _, variant: "eligibility" });
3870
3870
  }
3871
3871
  }
3872
3872
  const M = [];
3873
3873
  if (t.currentColSpan > d)
3874
- for (let k = n.col + d; k < n.col + t.currentColSpan && k <= 2; k++)
3874
+ for (let S = n.col + d; S < n.col + t.currentColSpan && S <= 2; S++)
3875
3875
  M.push({
3876
3876
  section: 0,
3877
- col: k - n.col,
3877
+ col: S - n.col,
3878
3878
  row: 0
3879
3879
  });
3880
- const C = l.current.fireKey > 0 ? {
3880
+ const N = l.current.fireKey > 0 ? {
3881
3881
  cell: {
3882
3882
  section: 0,
3883
3883
  col: Na(
@@ -3888,9 +3888,9 @@ function yr(e) {
3888
3888
  fireKey: l.current.fireKey
3889
3889
  } : null;
3890
3890
  return {
3891
- trackingOutline: h,
3892
- cellTints: S,
3893
- refusePulse: C,
3891
+ trackingOutline: f,
3892
+ cellTints: b,
3893
+ refusePulse: N,
3894
3894
  shrinkFreedCells: M,
3895
3895
  phase: c.current,
3896
3896
  displayColSpan: m.current
@@ -3930,7 +3930,7 @@ function ka({
3930
3930
  }
3931
3931
  }, [a, i]);
3932
3932
  const u = s ? { top: s.top, left: s.left } : {};
3933
- return /* @__PURE__ */ v(
3933
+ return /* @__PURE__ */ w(
3934
3934
  "div",
3935
3935
  {
3936
3936
  className: W["gloss-inline-nudge"],
@@ -3940,7 +3940,7 @@ function ka({
3940
3940
  "data-reduced-motion": l ? "true" : void 0,
3941
3941
  children: [
3942
3942
  /* @__PURE__ */ r("span", { className: W["gloss-inline-nudge__message"], children: e }),
3943
- /* @__PURE__ */ v("div", { className: W["gloss-inline-nudge__actions"], children: [
3943
+ /* @__PURE__ */ w("div", { className: W["gloss-inline-nudge__actions"], children: [
3944
3944
  /* @__PURE__ */ r(
3945
3945
  "button",
3946
3946
  {
@@ -3993,17 +3993,17 @@ function Ta({
3993
3993
  }) {
3994
3994
  const o = i === void 0 ? 0.01 : !Number.isFinite(i) || i <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
3995
3995
  `ThresholdRamp: step (${i}) must be a positive finite number; falling back to 0.01.`
3996
- ), 0.01) : i, l = _(
3996
+ ), 0.01) : i, l = C(
3997
3997
  (p) => Math.round(p / o) * o,
3998
3998
  [o]
3999
- ), u = P(null), [c, m] = E(null), [f, d] = E(e), g = xa(e), w = P(g);
3999
+ ), u = P(null), [c, m] = E(null), [h, d] = E(e), g = xa(e), y = P(g);
4000
4000
  A(() => {
4001
- w.current !== g && (w.current = g, !c && d(e));
4001
+ y.current !== g && (y.current = g, !c && d(e));
4002
4002
  }, [g, e, c]);
4003
- const N = re(() => Da(f, n, a), [f, n, a]), h = _(
4003
+ const k = re(() => Da(h, n, a), [h, n, a]), f = C(
4004
4004
  (p) => {
4005
4005
  if (!u.current) return n;
4006
- const b = u.current.getBoundingClientRect(), y = b.width || 1, D = Math.max(0, Math.min(1, (p - b.left) / y)), T = n + D * (a - n);
4006
+ const v = u.current.getBoundingClientRect(), _ = v.width || 1, D = Math.max(0, Math.min(1, (p - v.left) / _)), T = n + D * (a - n);
4007
4007
  return l(T);
4008
4008
  },
4009
4009
  [n, a, l]
@@ -4013,47 +4013,47 @@ function Ta({
4013
4013
  `ThresholdRamp: max (${a}) must be greater than min (${n}); rendering degenerate strip.`
4014
4014
  );
4015
4015
  }, [n, a]);
4016
- const S = _(
4017
- (p, b) => {
4018
- const y = f.find((D) => D.id === b);
4019
- s || y?.disabled || (p.preventDefault(), m(b));
4016
+ const b = C(
4017
+ (p, v) => {
4018
+ const _ = h.find((D) => D.id === v);
4019
+ s || _?.disabled || (p.preventDefault(), m(v));
4020
4020
  },
4021
- [s, f]
4022
- ), M = P(f);
4023
- M.current = f;
4024
- const C = P(t);
4025
- C.current = t, A(() => {
4021
+ [s, h]
4022
+ ), M = P(h);
4023
+ M.current = h;
4024
+ const N = P(t);
4025
+ N.current = t, A(() => {
4026
4026
  if (!c) return;
4027
- const p = (y) => {
4028
- const D = h(y.clientX);
4027
+ const p = (_) => {
4028
+ const D = f(_.clientX);
4029
4029
  d(
4030
4030
  (T) => T.map((x) => x.id === c ? { ...x, value: D } : x)
4031
4031
  );
4032
- }, b = (y) => {
4033
- const D = h(y.clientX), T = M.current.map(
4032
+ }, v = (_) => {
4033
+ const D = f(_.clientX), T = M.current.map(
4034
4034
  (x) => x.id === c ? { ...x, value: D } : x
4035
4035
  );
4036
- d(T), m(null), C.current(T);
4036
+ d(T), m(null), N.current(T);
4037
4037
  };
4038
- return window.addEventListener("pointermove", p), window.addEventListener("pointerup", b), window.addEventListener("pointercancel", b), () => {
4039
- window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", b), window.removeEventListener("pointercancel", b);
4038
+ return window.addEventListener("pointermove", p), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
4039
+ window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
4040
4040
  };
4041
- }, [c, h]);
4042
- const k = a - n > 0 ? a - n : 1, R = _(
4043
- (p, b) => {
4044
- if (s || b.disabled) return;
4045
- const y = a - n;
4046
- if (y <= 0) return;
4047
- const D = p.shiftKey ? y / 20 : y / 100;
4048
- let T = b.value;
4041
+ }, [c, f]);
4042
+ const S = a - n > 0 ? a - n : 1, R = C(
4043
+ (p, v) => {
4044
+ if (s || v.disabled) return;
4045
+ const _ = a - n;
4046
+ if (_ <= 0) return;
4047
+ const D = p.shiftKey ? _ / 20 : _ / 100;
4048
+ let T = v.value;
4049
4049
  switch (p.key) {
4050
4050
  case "ArrowRight":
4051
4051
  case "ArrowUp":
4052
- T = b.value + D;
4052
+ T = v.value + D;
4053
4053
  break;
4054
4054
  case "ArrowLeft":
4055
4055
  case "ArrowDown":
4056
- T = b.value - D;
4056
+ T = v.value - D;
4057
4057
  break;
4058
4058
  case "Home":
4059
4059
  T = n;
@@ -4066,34 +4066,34 @@ function Ta({
4066
4066
  }
4067
4067
  p.preventDefault();
4068
4068
  const x = Math.max(n, Math.min(a, T)), I = l(x);
4069
- if (I === b.value) return;
4070
- const L = f.map(
4071
- (Z) => Z.id === b.id ? { ...Z, value: I } : Z
4069
+ if (I === v.value) return;
4070
+ const L = h.map(
4071
+ (Z) => Z.id === v.id ? { ...Z, value: I } : Z
4072
4072
  );
4073
4073
  d(L), t(L);
4074
4074
  },
4075
- [s, n, a, f, t, l]
4075
+ [s, n, a, h, t, l]
4076
4076
  );
4077
4077
  return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ r(
4078
4078
  "div",
4079
4079
  {
4080
4080
  ref: u,
4081
4081
  className: "gloss-threshold-ramp__track",
4082
- style: { background: N },
4083
- children: f.map((p) => {
4084
- const b = (p.value - n) / k * 100;
4082
+ style: { background: k },
4083
+ children: h.map((p) => {
4084
+ const v = (p.value - n) / S * 100;
4085
4085
  return /* @__PURE__ */ r(
4086
4086
  "span",
4087
4087
  {
4088
4088
  className: "gloss-threshold-ramp__stop",
4089
4089
  style: {
4090
- left: `${b}%`,
4090
+ left: `${v}%`,
4091
4091
  color: pe(p)
4092
4092
  },
4093
4093
  "data-disabled": p.disabled || void 0,
4094
4094
  "data-dragging": c === p.id || void 0,
4095
- onPointerDown: (y) => S(y, p.id),
4096
- onKeyDown: (y) => R(y, p),
4095
+ onPointerDown: (_) => b(_, p.id),
4096
+ onKeyDown: (_) => R(_, p),
4097
4097
  "aria-label": p.label ?? `Stop at ${p.value}`,
4098
4098
  role: "slider",
4099
4099
  "aria-valuenow": p.value,
@@ -4114,9 +4114,9 @@ function Ra() {
4114
4114
  return et(We);
4115
4115
  }
4116
4116
  function Ma({ option: e }) {
4117
- const t = Ra(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = _(() => {
4117
+ const t = Ra(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = C(() => {
4118
4118
  a || t?.select(e.value);
4119
- }, [a, t, e.value]), s = _(
4119
+ }, [a, t, e.value]), s = C(
4120
4120
  (c) => {
4121
4121
  a || t?.onKeyNav(c, e.value);
4122
4122
  },
@@ -4151,63 +4151,63 @@ function Pa({
4151
4151
  disabled: i = !1,
4152
4152
  name: s
4153
4153
  }) {
4154
- const o = t !== void 0, [l, u] = E(n), c = o ? t : l, m = _(
4155
- (C) => {
4156
- o || u(C), a?.(C);
4154
+ const o = t !== void 0, [l, u] = E(n), c = o ? t : l, m = C(
4155
+ (N) => {
4156
+ o || u(N), a?.(N);
4157
4157
  },
4158
4158
  [o, a]
4159
- ), f = _(
4160
- (C) => c === C,
4159
+ ), h = C(
4160
+ (N) => c === N,
4161
4161
  [c]
4162
- ), d = P(/* @__PURE__ */ new Map()), g = _((C, k) => {
4163
- k ? d.current.set(C, k) : d.current.delete(C);
4164
- }, []), w = e.filter((C) => !C.disabled && !i), N = w.find((C) => C.value === c)?.value ?? w[0]?.value, h = _((C) => {
4165
- const k = d.current.get(C);
4166
- k && k.focus();
4167
- }, []), S = _(
4168
- (C, k) => {
4162
+ ), d = P(/* @__PURE__ */ new Map()), g = C((N, S) => {
4163
+ S ? d.current.set(N, S) : d.current.delete(N);
4164
+ }, []), y = e.filter((N) => !N.disabled && !i), k = y.find((N) => N.value === c)?.value ?? y[0]?.value, f = C((N) => {
4165
+ const S = d.current.get(N);
4166
+ S && S.focus();
4167
+ }, []), b = C(
4168
+ (N, S) => {
4169
4169
  if (i) return;
4170
4170
  const R = e.filter((D) => !D.disabled);
4171
4171
  if (R.length === 0) return;
4172
- const p = R.findIndex((D) => D.value === k);
4172
+ const p = R.findIndex((D) => D.value === S);
4173
4173
  if (p === -1) return;
4174
- let b = p;
4175
- switch (C.key) {
4174
+ let v = p;
4175
+ switch (N.key) {
4176
4176
  case "ArrowRight":
4177
4177
  case "ArrowDown":
4178
- b = (p + 1) % R.length;
4178
+ v = (p + 1) % R.length;
4179
4179
  break;
4180
4180
  case "ArrowLeft":
4181
4181
  case "ArrowUp":
4182
- b = (p - 1 + R.length) % R.length;
4182
+ v = (p - 1 + R.length) % R.length;
4183
4183
  break;
4184
4184
  case "Home":
4185
- b = 0;
4185
+ v = 0;
4186
4186
  break;
4187
4187
  case "End":
4188
- b = R.length - 1;
4188
+ v = R.length - 1;
4189
4189
  break;
4190
4190
  case " ":
4191
4191
  case "Enter":
4192
- C.preventDefault(), m(k);
4192
+ N.preventDefault(), m(S);
4193
4193
  return;
4194
4194
  default:
4195
4195
  return;
4196
4196
  }
4197
- C.preventDefault();
4198
- const y = R[b].value;
4199
- h(y), m(y);
4197
+ N.preventDefault();
4198
+ const _ = R[v].value;
4199
+ f(_), m(_);
4200
4200
  },
4201
- [i, e, m, h]
4201
+ [i, e, m, f]
4202
4202
  ), M = {
4203
4203
  selectedValue: c,
4204
4204
  select: m,
4205
- isSelected: f,
4205
+ isSelected: h,
4206
4206
  groupDisabled: i,
4207
4207
  name: s,
4208
4208
  registerRef: g,
4209
- firstFocusableValue: N,
4210
- onKeyNav: S
4209
+ firstFocusableValue: k,
4210
+ onKeyNav: b
4211
4211
  };
4212
4212
  return /* @__PURE__ */ r(We.Provider, { value: M, children: /* @__PURE__ */ r(
4213
4213
  "div",
@@ -4217,7 +4217,7 @@ function Pa({
4217
4217
  "aria-label": s,
4218
4218
  "aria-disabled": i,
4219
4219
  "data-disabled": i || void 0,
4220
- children: e.map((C) => /* @__PURE__ */ r(Ma, { option: C }, C.value))
4220
+ children: e.map((N) => /* @__PURE__ */ r(Ma, { option: N }, N.value))
4221
4221
  }
4222
4222
  ) });
4223
4223
  }
@@ -4241,9 +4241,9 @@ function Ea(e) {
4241
4241
  }
4242
4242
  function Aa(e) {
4243
4243
  const [t, n] = E(
4244
- () => e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
4245
- `useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
4246
- ), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
4244
+ () => e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
4245
+ `useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
4246
+ ), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
4247
4247
  ), [a, i] = E(null), [s, o] = E(null), l = P(null), u = P(e.onZoneChange);
4248
4248
  u.current = e.onZoneChange;
4249
4249
  const c = re(
@@ -4252,63 +4252,63 @@ function Aa(e) {
4252
4252
  ), m = P(c);
4253
4253
  A(() => {
4254
4254
  m.current !== c && (m.current = c, !a && n(
4255
- e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
4256
- `useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
4257
- ), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
4255
+ e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
4256
+ `useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
4257
+ ), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
4258
4258
  ));
4259
4259
  }, [c, e.zones, a]);
4260
- const f = _(
4261
- (h) => {
4262
- const S = h.active.id;
4263
- let M = null, C = null;
4264
- for (const k of t) {
4265
- const R = k.items.find((p) => p.id === S);
4260
+ const h = C(
4261
+ (f) => {
4262
+ const b = f.active.id;
4263
+ let M = null, N = null;
4264
+ for (const S of t) {
4265
+ const R = S.items.find((p) => p.id === b);
4266
4266
  if (R) {
4267
- M = R, C = k.zoneKey;
4267
+ M = R, N = S.zoneKey;
4268
4268
  break;
4269
4269
  }
4270
4270
  }
4271
- l.current = C, i(M), o(C);
4271
+ l.current = N, i(M), o(N);
4272
4272
  },
4273
4273
  [t]
4274
- ), d = _(
4275
- (h) => {
4276
- if (!h.over) {
4274
+ ), d = C(
4275
+ (f) => {
4276
+ if (!f.over) {
4277
4277
  o(l.current);
4278
4278
  return;
4279
4279
  }
4280
- const S = Pe(t, h.over.id);
4281
- o(S);
4280
+ const b = Pe(t, f.over.id);
4281
+ o(b);
4282
4282
  },
4283
4283
  [t]
4284
- ), g = _(
4285
- (h) => {
4286
- const { active: S, over: M } = h, C = () => {
4284
+ ), g = C(
4285
+ (f) => {
4286
+ const { active: b, over: M } = f, N = () => {
4287
4287
  l.current = null, i(null), o(null);
4288
4288
  };
4289
4289
  if (!M) {
4290
- C();
4290
+ N();
4291
4291
  return;
4292
4292
  }
4293
- const k = he(t, S.id), R = Pe(t, M.id);
4294
- if (!k || !R) {
4295
- C();
4293
+ const S = he(t, b.id), R = Pe(t, M.id);
4294
+ if (!S || !R) {
4295
+ N();
4296
4296
  return;
4297
4297
  }
4298
- let p = t.map((b) => ({ ...b, items: [...b.items] }));
4299
- if (k === R) {
4300
- const b = p.findIndex((I) => I.zoneKey === k), y = p[b], D = y.items.findIndex((I) => I.id === S.id), T = y.items.findIndex((I) => I.id === M.id), x = T >= 0 ? T : Math.max(0, y.items.length - 1);
4301
- p[b] = {
4302
- ...y,
4303
- items: Ia(y.items, D, x)
4298
+ let p = t.map((v) => ({ ...v, items: [...v.items] }));
4299
+ if (S === R) {
4300
+ const v = p.findIndex((I) => I.zoneKey === S), _ = p[v], D = _.items.findIndex((I) => I.id === b.id), T = _.items.findIndex((I) => I.id === M.id), x = T >= 0 ? T : Math.max(0, _.items.length - 1);
4301
+ p[v] = {
4302
+ ..._,
4303
+ items: Ia(_.items, D, x)
4304
4304
  };
4305
4305
  } else {
4306
- const b = p.findIndex((O) => O.zoneKey === k), y = p.findIndex((O) => O.zoneKey === R), D = p[b], T = p[y], x = D.items.find((O) => O.id === S.id);
4306
+ const v = p.findIndex((O) => O.zoneKey === S), _ = p.findIndex((O) => O.zoneKey === R), D = p[v], T = p[_], x = D.items.find((O) => O.id === b.id);
4307
4307
  if (!x) {
4308
- C();
4308
+ N();
4309
4309
  return;
4310
4310
  }
4311
- const I = D.items.filter((O) => O.id !== S.id), L = T.items.findIndex((O) => O.id === M.id), Z = L >= 0 ? L : T.items.length;
4311
+ const I = D.items.filter((O) => O.id !== b.id), L = T.items.findIndex((O) => O.id === M.id), Z = L >= 0 ? L : T.items.length;
4312
4312
  let be = I, H = [...T.items];
4313
4313
  if (T.maxItems !== void 0 && H.length >= T.maxItems) {
4314
4314
  const O = H[H.length - 1];
@@ -4319,24 +4319,24 @@ function Aa(e) {
4319
4319
  x,
4320
4320
  ...H.slice(ve)
4321
4321
  ];
4322
- p[b] = { ...D, items: be }, p[y] = { ...T, items: Ye };
4322
+ p[v] = { ...D, items: be }, p[_] = { ...T, items: Ye };
4323
4323
  }
4324
- n(p), u.current?.(p), C();
4324
+ n(p), u.current?.(p), N();
4325
4325
  },
4326
4326
  [t]
4327
- ), w = _(
4328
- (h) => ({
4329
- id: h,
4330
- "data-zone-key": h
4327
+ ), y = C(
4328
+ (f) => ({
4329
+ id: f,
4330
+ "data-zone-key": f
4331
4331
  }),
4332
4332
  []
4333
- ), N = _(
4334
- (h) => {
4335
- const S = he(t, h.id) ?? "";
4333
+ ), k = C(
4334
+ (f) => {
4335
+ const b = he(t, f.id) ?? "";
4336
4336
  return {
4337
- id: h.id,
4338
- "data-item-id": h.id,
4339
- "data-zone-key": S
4337
+ id: f.id,
4338
+ "data-item-id": f.id,
4339
+ "data-zone-key": b
4340
4340
  };
4341
4341
  },
4342
4342
  [t]
@@ -4345,9 +4345,9 @@ function Aa(e) {
4345
4345
  zones: t,
4346
4346
  activeZone: s,
4347
4347
  activeItem: a,
4348
- getZoneProps: w,
4349
- getItemProps: N,
4350
- handleDragStart: f,
4348
+ getZoneProps: y,
4349
+ getItemProps: k,
4350
+ handleDragStart: h,
4351
4351
  handleDragOver: d,
4352
4352
  handleDragEnd: g
4353
4353
  };
@@ -4418,7 +4418,7 @@ function za(e) {
4418
4418
  renderDragOverlay: s
4419
4419
  }
4420
4420
  ) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((c) => {
4421
- const m = c.items.map((f) => /* @__PURE__ */ r(F.Fragment, { children: i(f) }, f.id));
4421
+ const m = c.items.map((h) => /* @__PURE__ */ r(F.Fragment, { children: i(h) }, h.id));
4422
4422
  return /* @__PURE__ */ r("div", { ...o.getZoneProps(c.zoneKey), children: a(c.zoneKey, c.items, m) }, c.zoneKey);
4423
4423
  }) });
4424
4424
  }
@@ -4430,21 +4430,21 @@ function Ve({
4430
4430
  renderItem: a,
4431
4431
  renderDragOverlay: i
4432
4432
  }) {
4433
- const { core: s, sortable: o, utilities: l } = t, { DndContext: u, DragOverlay: c, useSensors: m, useSensor: f, useDroppable: d, PointerSensor: g, KeyboardSensor: w, closestCenter: N } = s, { SortableContext: h, verticalListSortingStrategy: S } = o, M = m(
4434
- f(g, { activationConstraint: { distance: 5 } }),
4435
- f(w)
4436
- ), C = u, k = c, R = h;
4437
- return /* @__PURE__ */ v(
4438
- C,
4433
+ const { core: s, sortable: o, utilities: l } = t, { DndContext: u, DragOverlay: c, useSensors: m, useSensor: h, useDroppable: d, PointerSensor: g, KeyboardSensor: y, closestCenter: k } = s, { SortableContext: f, verticalListSortingStrategy: b } = o, M = m(
4434
+ h(g, { activationConstraint: { distance: 5 } }),
4435
+ h(y)
4436
+ ), N = u, S = c, R = f;
4437
+ return /* @__PURE__ */ w(
4438
+ N,
4439
4439
  {
4440
4440
  sensors: M,
4441
- collisionDetection: N,
4441
+ collisionDetection: k,
4442
4442
  onDragStart: e.handleDragStart,
4443
4443
  onDragOver: e.handleDragOver,
4444
4444
  onDragEnd: e.handleDragEnd,
4445
4445
  children: [
4446
4446
  e.zones.map((p) => {
4447
- const b = p.items.map((D) => D.id), y = p.items.map((D) => /* @__PURE__ */ r(
4447
+ const v = p.items.map((D) => D.id), _ = p.items.map((D) => /* @__PURE__ */ r(
4448
4448
  je,
4449
4449
  {
4450
4450
  id: D.id,
@@ -4460,12 +4460,12 @@ function Ve({
4460
4460
  zoneKey: p.zoneKey,
4461
4461
  zoneProps: e.getZoneProps(p.zoneKey),
4462
4462
  useDroppable: d,
4463
- children: /* @__PURE__ */ r(R, { items: b, strategy: S, children: n(p.zoneKey, p.items, y) })
4463
+ children: /* @__PURE__ */ r(R, { items: v, strategy: b, children: n(p.zoneKey, p.items, _) })
4464
4464
  },
4465
4465
  p.zoneKey
4466
4466
  );
4467
4467
  }),
4468
- /* @__PURE__ */ r(k, { children: e.activeItem ? i?.(e.activeItem) ?? a(e.activeItem) : null })
4468
+ /* @__PURE__ */ r(S, { children: e.activeItem ? i?.(e.activeItem) ?? a(e.activeItem) : null })
4469
4469
  ]
4470
4470
  }
4471
4471
  );
@@ -4503,7 +4503,7 @@ function wr({
4503
4503
  "--gloss-bottom-toolbar-height": `${a}px`,
4504
4504
  ...s
4505
4505
  };
4506
- return /* @__PURE__ */ v(
4506
+ return /* @__PURE__ */ w(
4507
4507
  "div",
4508
4508
  {
4509
4509
  role: "toolbar",
@@ -4549,27 +4549,29 @@ function _r({
4549
4549
  pulseIndex: s,
4550
4550
  pulseNonce: o,
4551
4551
  currentSection: l,
4552
- sectionsPerView: u = 1
4552
+ sectionsPerView: u = 1,
4553
4553
  // D-09 default
4554
+ isHiding: c
4554
4555
  }) {
4555
- const c = l ?? t ?? 0, m = Math.max(0, Math.min(e - 1, c)), f = Math.min(e - 1, m + Math.max(0, u - 1)), d = [m, f], g = B.useRef([]);
4556
- return g.current.length = e, e <= 1 || d[0] === 0 && d[1] === e - 1 ? null : /* @__PURE__ */ v(
4556
+ const m = l ?? t ?? 0, h = Math.max(0, Math.min(e - 1, m)), d = Math.min(e - 1, h + Math.max(0, u - 1)), g = [h, d], y = B.useRef([]);
4557
+ return y.current.length = e, !c && e <= 1 || !c && g[0] === 0 && g[1] === e - 1 ? null : /* @__PURE__ */ w(
4557
4558
  "div",
4558
4559
  {
4559
4560
  role: "tablist",
4560
4561
  "aria-label": a,
4561
4562
  "data-testid": "gloss-section-dots",
4562
4563
  className: "gloss-section-dots",
4563
- onKeyDown: (N) => {
4564
+ "data-hiding": c ? "true" : void 0,
4565
+ onKeyDown: (f) => {
4564
4566
  if (e !== 0) {
4565
- if (N.key === "ArrowRight") {
4566
- N.preventDefault();
4567
- const h = (c + 1) % e;
4568
- n(h), requestAnimationFrame(() => g.current[h]?.focus());
4569
- } else if (N.key === "ArrowLeft") {
4570
- N.preventDefault();
4571
- const h = (c - 1 + e) % e;
4572
- n(h), requestAnimationFrame(() => g.current[h]?.focus());
4567
+ if (f.key === "ArrowRight") {
4568
+ f.preventDefault();
4569
+ const b = (m + 1) % e;
4570
+ n(b), requestAnimationFrame(() => y.current[b]?.focus());
4571
+ } else if (f.key === "ArrowLeft") {
4572
+ f.preventDefault();
4573
+ const b = (m - 1 + e) % e;
4574
+ n(b), requestAnimationFrame(() => y.current[b]?.focus());
4573
4575
  }
4574
4576
  }
4575
4577
  },
@@ -4580,30 +4582,30 @@ function _r({
4580
4582
  className: "gloss-section-dots__blob",
4581
4583
  "aria-hidden": "true",
4582
4584
  style: {
4583
- "--blob-start": d[0],
4584
- "--blob-end": d[1]
4585
+ "--blob-start": g[0],
4586
+ "--blob-end": g[1]
4585
4587
  }
4586
4588
  }
4587
4589
  ),
4588
- Array.from({ length: e }, (N, h) => /* @__PURE__ */ r(
4590
+ Array.from({ length: e }, (f, b) => /* @__PURE__ */ r(
4589
4591
  "button",
4590
4592
  {
4591
- ref: (S) => {
4592
- g.current[h] = S;
4593
+ ref: (M) => {
4594
+ y.current[b] = M;
4593
4595
  },
4594
4596
  type: "button",
4595
4597
  role: "tab",
4596
- "aria-selected": h === c,
4597
- "aria-label": h === i ? "Unconfirmed section" : `Section ${h + 1}`,
4598
- "data-state": h === i ? "provisional-hollow" : h === s ? "pulse" : h === c ? "current" : "hollow",
4599
- "data-section-index": h,
4598
+ "aria-selected": b === m,
4599
+ "aria-label": b === i ? "Unconfirmed section" : `Section ${b + 1}`,
4600
+ "data-state": b === i ? "provisional-hollow" : b === s ? "pulse" : b === m ? "current" : "hollow",
4601
+ "data-section-index": b,
4600
4602
  className: [
4601
4603
  "gloss-section-dots__dot",
4602
- h === c && "gloss-section-dots__dot--current"
4604
+ b === m && "gloss-section-dots__dot--current"
4603
4605
  ].filter(Boolean).join(" "),
4604
- onClick: () => n(h)
4606
+ onClick: () => n(b)
4605
4607
  },
4606
- h === s ? `${h}-${o ?? 0}` : h
4608
+ b === s ? `${b}-${o ?? 0}` : b
4607
4609
  ))
4608
4610
  ]
4609
4611
  }
@@ -4616,7 +4618,7 @@ const Ba = F.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
4616
4618
  Ba.displayName = "ContainerToolbar";
4617
4619
  const Ka = F.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...i }, s) => {
4618
4620
  const o = { ...i };
4619
- return delete o.className, delete o.style, /* @__PURE__ */ v("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
4621
+ return delete o.className, delete o.style, /* @__PURE__ */ w("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
4620
4622
  e && /* @__PURE__ */ r("legend", { className: "gloss-container-form-section__legend", children: e }),
4621
4623
  t && /* @__PURE__ */ r("p", { className: "gloss-container-form-section__description", children: t }),
4622
4624
  /* @__PURE__ */ r(fe, { region: "form-section", density: n, children: a })