@mt-gloss/ui 0.1.80 → 0.1.82

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