@voxel51/voodo 2.11.0 → 2.12.0

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/dist/index.js CHANGED
@@ -902,7 +902,7 @@ const h1 = {
902
902
  ]
903
903
  }
904
904
  }
905
- }), w = (...e) => Ro(I(...e)), Fo = "_bars_fcps7_6", Zo = "_bar_fcps7_6", We = {
905
+ }), f = (...e) => Ro(I(...e)), Fo = "_bars_fcps7_6", Zo = "_bar_fcps7_6", We = {
906
906
  bars: Fo,
907
907
  bar: Zo
908
908
  }, Yt = {
@@ -932,7 +932,7 @@ const h1 = {
932
932
  {
933
933
  role: "status",
934
934
  "aria-label": "Loading",
935
- className: w(We.bars, o),
935
+ className: f(We.bars, o),
936
936
  style: { "--loader-size": `${jo[r]}px`, ...l },
937
937
  ...s,
938
938
  children: [
@@ -946,7 +946,7 @@ const h1 = {
946
946
  {
947
947
  role: "status",
948
948
  "aria-label": "Loading",
949
- className: w(
949
+ className: f(
950
950
  Wo[r],
951
951
  L(p.Primary),
952
952
  o
@@ -1141,7 +1141,7 @@ const Uo = {
1141
1141
  return /* @__PURE__ */ n(
1142
1142
  "span",
1143
1143
  {
1144
- className: w(
1144
+ className: f(
1145
1145
  s !== void 0 && "inline-flex shrink-0 [&>svg]:size-full",
1146
1146
  o
1147
1147
  ),
@@ -1235,7 +1235,7 @@ const ye = "text-caption", a1 = {
1235
1235
  wrapperClassName: m,
1236
1236
  ...g
1237
1237
  }) => {
1238
- const [v, C] = r1(!1), x = c1(null), f = c1(void 0), S = c1(void 0), E = c1(0), M = c1(!1), { refs: z, floatingStyles: F, placement: T, middlewareData: O } = tt({
1238
+ const [v, C] = r1(!1), x = c1(null), w = c1(void 0), S = c1(void 0), E = c1(0), M = c1(!1), { refs: z, floatingStyles: F, placement: T, middlewareData: O } = tt({
1239
1239
  open: v,
1240
1240
  placement: e,
1241
1241
  strategy: "fixed",
@@ -1252,15 +1252,15 @@ const ye = "text-caption", a1 = {
1252
1252
  });
1253
1253
  f1(
1254
1254
  () => () => {
1255
- window.clearTimeout(f.current), window.clearTimeout(S.current);
1255
+ window.clearTimeout(w.current), window.clearTimeout(S.current);
1256
1256
  },
1257
1257
  []
1258
1258
  );
1259
1259
  const N = j(() => {
1260
- window.clearTimeout(f.current), C(!0);
1260
+ window.clearTimeout(w.current), C(!0);
1261
1261
  }, []), W = j(() => {
1262
- if (window.clearTimeout(f.current), i) {
1263
- f.current = window.setTimeout(
1262
+ if (window.clearTimeout(w.current), i) {
1263
+ w.current = window.setTimeout(
1264
1264
  () => C(!1),
1265
1265
  Nc
1266
1266
  );
@@ -1280,7 +1280,7 @@ const ye = "text-caption", a1 = {
1280
1280
  ref: z.setFloating,
1281
1281
  role: "tooltip",
1282
1282
  "data-side": _,
1283
- className: w(
1283
+ className: f(
1284
1284
  N1(d ? k1.AboveModal : k1.High),
1285
1285
  "w-max",
1286
1286
  "py-1 px-2.5",
@@ -1317,14 +1317,14 @@ const ye = "text-caption", a1 = {
1317
1317
  {
1318
1318
  ...g,
1319
1319
  ref: z.setReference,
1320
- className: w("relative", m),
1320
+ className: f("relative", m),
1321
1321
  onMouseEnter: () => {
1322
1322
  Date.now() - E.current > Pc && !V() && N();
1323
1323
  },
1324
1324
  onMouseLeave: W,
1325
1325
  onPointerDown: (P) => {
1326
1326
  g.onPointerDown?.(P), M.current = !1, k(P.target) && C(!1), P.pointerType === "touch" && (E.current = Date.now(), window.clearTimeout(S.current), S.current = window.setTimeout(() => {
1327
- M.current = !0, N(), f.current = window.setTimeout(
1327
+ M.current = !0, N(), w.current = window.setTimeout(
1328
1328
  () => C(!1),
1329
1329
  Dc
1330
1330
  );
@@ -1367,7 +1367,7 @@ const Ac = "bg-(image:--gradient-action-expressive) bg-clip-text text-transparen
1367
1367
  const [h, m] = r1(!1), g = r !== void 0 && It(r), v = /* @__PURE__ */ n(
1368
1368
  "span",
1369
1369
  {
1370
- className: w(
1370
+ className: f(
1371
1371
  D1(e),
1372
1372
  g && !o && L(r),
1373
1373
  o && Ac,
@@ -1381,8 +1381,8 @@ const Ac = "bg-(image:--gradient-action-expressive) bg-clip-text text-transparen
1381
1381
  );
1382
1382
  if (!l) return v;
1383
1383
  const C = (x) => {
1384
- const f = x.currentTarget.firstElementChild;
1385
- m(!!f && f.scrollWidth > f.clientWidth);
1384
+ const w = x.currentTarget.firstElementChild;
1385
+ m(!!w && w.scrollWidth > w.clientWidth);
1386
1386
  };
1387
1387
  return /* @__PURE__ */ n(
1388
1388
  Oe,
@@ -1445,7 +1445,7 @@ const Fc = ({
1445
1445
  }) => /* @__PURE__ */ n(Pt, { open: s, anchor: e, children: /* @__PURE__ */ y(
1446
1446
  "div",
1447
1447
  {
1448
- className: w(
1448
+ className: f(
1449
1449
  "flex flex-nowrap",
1450
1450
  "gap-x-sm",
1451
1451
  "items-center",
@@ -1464,7 +1464,7 @@ const Fc = ({
1464
1464
  {
1465
1465
  content: o,
1466
1466
  size: 18,
1467
- className: w("shrink-0", L(t2(a)))
1467
+ className: f("shrink-0", L(t2(a)))
1468
1468
  }
1469
1469
  ),
1470
1470
  l && /* @__PURE__ */ n(e1, { variant: b.BodySecondary, color: t2(a), children: l })
@@ -1494,7 +1494,7 @@ const ie = {
1494
1494
  surface: "bg-content-bg-success/10",
1495
1495
  text: p.Success
1496
1496
  }
1497
- }, Wc = w(
1497
+ }, Wc = f(
1498
1498
  "flex shrink-0",
1499
1499
  "[&_:is(a,button)]:text-current [&_:is(a,button)_*]:text-current",
1500
1500
  "[&_:is(a,button):hover]:text-current [&_:is(a,button):hover]:bg-current/10"
@@ -1511,7 +1511,7 @@ const ie = {
1511
1511
  "div",
1512
1512
  {
1513
1513
  role: e === ie.Failure ? "alert" : "status",
1514
- className: w(
1514
+ className: f(
1515
1515
  "flex items-center gap-4 rounded-md px-3 py-2",
1516
1516
  i,
1517
1517
  l
@@ -1528,7 +1528,7 @@ const ie = {
1528
1528
  children: s
1529
1529
  }
1530
1530
  ),
1531
- r && /* @__PURE__ */ n("span", { className: w(Wc, L(d)), children: r })
1531
+ r && /* @__PURE__ */ n("span", { className: f(Wc, L(d)), children: r })
1532
1532
  ]
1533
1533
  }
1534
1534
  );
@@ -1621,7 +1621,7 @@ const _c = {
1621
1621
  "--avatar-bg-dark": s(d),
1622
1622
  "--avatar-fg-dark": s(h)
1623
1623
  };
1624
- }, Xc = w(
1624
+ }, Xc = f(
1625
1625
  "bg-(--avatar-bg) text-(--avatar-fg)",
1626
1626
  "dark:bg-(--avatar-bg-dark) dark:text-(--avatar-fg-dark)"
1627
1627
  ), Kc = ({
@@ -1637,24 +1637,24 @@ const _c = {
1637
1637
  className: m,
1638
1638
  ...g
1639
1639
  }) => {
1640
- const [v, C] = r1(), x = r && r !== v ? r : void 0, f = a === "neutral" || !!x || !!i, S = /* @__PURE__ */ n(
1640
+ const [v, C] = r1(), x = r && r !== v ? r : void 0, w = a === "neutral" || !!x || !!i, S = /* @__PURE__ */ n(
1641
1641
  "span",
1642
1642
  {
1643
1643
  role: "img",
1644
1644
  "aria-label": l ? void 0 : e,
1645
1645
  "aria-hidden": l || void 0,
1646
- className: w(
1646
+ className: f(
1647
1647
  "inline-flex shrink-0 select-none items-center justify-center overflow-hidden",
1648
1648
  t1(h ? Q.Md : Q.Full),
1649
- f && D(B.CardNested),
1650
- f && L(p.Secondary),
1651
- !f && Xc,
1649
+ w && D(B.CardNested),
1650
+ w && L(p.Secondary),
1651
+ !w && Xc,
1652
1652
  _c[o],
1653
1653
  !l && m
1654
1654
  ),
1655
1655
  ...!l && g,
1656
1656
  style: {
1657
- ...!f && Uc(d ?? l2(e)),
1657
+ ...!w && Uc(d ?? l2(e)),
1658
1658
  ...!l && g.style
1659
1659
  },
1660
1660
  children: x ? (
@@ -1677,7 +1677,7 @@ const _c = {
1677
1677
  return /* @__PURE__ */ y(
1678
1678
  "span",
1679
1679
  {
1680
- className: w(
1680
+ className: f(
1681
1681
  "inline-flex min-w-0 items-center",
1682
1682
  E ? "gap-3" : "gap-2",
1683
1683
  L(p.Primary),
@@ -1694,7 +1694,7 @@ const _c = {
1694
1694
  /* @__PURE__ */ n(
1695
1695
  "span",
1696
1696
  {
1697
- className: w(
1697
+ className: f(
1698
1698
  "truncate",
1699
1699
  D1(b.BodyTertiary),
1700
1700
  L(p.Tertiary)
@@ -1725,7 +1725,7 @@ const At = ({ label: e, detail: r }) => /* @__PURE__ */ y("span", { className: "
1725
1725
  r != null && r !== "" && /* @__PURE__ */ n(
1726
1726
  "span",
1727
1727
  {
1728
- className: w(
1728
+ className: f(
1729
1729
  a1[b.BodyTertiary],
1730
1730
  L(p.Secondary)
1731
1731
  ),
@@ -1913,9 +1913,9 @@ const Jc = {
1913
1913
  rel: v,
1914
1914
  ...C
1915
1915
  }) => {
1916
- const x = Tt(), f = _r(a, x.compact), S = $r(f), E = a === "auto" ? x.labelMax : null, M = ge.toArray(h), z = M.some(
1916
+ const x = Tt(), w = _r(a, x.compact), S = $r(w), E = a === "auto" ? x.labelMax : null, M = ge.toArray(h), z = M.some(
1917
1917
  (V) => typeof V == "string" && V.trim() !== "" || typeof V == "number"
1918
- ), F = M.some((V) => De(V)), T = e === h1.Icon || !z && (o || !F && !!(l || s)), O = e === h1.Secondary ? os : rs, N = w(
1918
+ ), F = M.some((V) => De(V)), T = e === h1.Icon || !z && (o || !F && !!(l || s)), O = e === h1.Secondary ? os : rs, N = f(
1919
1919
  "inline-flex items-center justify-center",
1920
1920
  o && !z && "aspect-square min-w-0 shrink-0",
1921
1921
  // circular
@@ -1924,7 +1924,7 @@ const Jc = {
1924
1924
  e === h1.Expressive ? "transition-[filter]" : "transition-colors",
1925
1925
  "hover:cursor-pointer",
1926
1926
  "disabled:cursor-not-allowed disabled:pointer-events-none",
1927
- T ? Ur[r] : f ? ns[f === !0 ? "lg" : f][r] : ts[r],
1927
+ T ? Ur[r] : w ? ns[w === !0 ? "lg" : w][r] : ts[r],
1928
1928
  Jc[e],
1929
1929
  es[e],
1930
1930
  o && "border-0",
@@ -1944,7 +1944,7 @@ const Jc = {
1944
1944
  "span",
1945
1945
  {
1946
1946
  [Re]: "",
1947
- className: jr(f || void 0),
1947
+ className: jr(w || void 0),
1948
1948
  style: E === null ? void 0 : { maxWidth: E },
1949
1949
  children: V
1950
1950
  }
@@ -2011,7 +2011,7 @@ const ke = {
2011
2011
  return /* @__PURE__ */ n(
2012
2012
  "div",
2013
2013
  {
2014
- className: w(
2014
+ className: f(
2015
2015
  s ? "border-1" : W1(a),
2016
2016
  s && n1(K.Default),
2017
2017
  D(d),
@@ -2086,8 +2086,8 @@ const as = {
2086
2086
  ...m
2087
2087
  }, g) => {
2088
2088
  const { ref: v, style: C } = ss(), x = j(
2089
- (f) => {
2090
- a && v(f), typeof g == "function" ? g(f) : g && (g.current = f);
2089
+ (w) => {
2090
+ a && v(w), typeof g == "function" ? g(w) : g && (g.current = w);
2091
2091
  },
2092
2092
  [a, v, g]
2093
2093
  );
@@ -2096,7 +2096,7 @@ const as = {
2096
2096
  {
2097
2097
  ref: x,
2098
2098
  style: a ? { ...C, ...h } : h,
2099
- className: w(
2099
+ className: f(
2100
2100
  "flex",
2101
2101
  o === w1.Column && "flex-col",
2102
2102
  ds[l],
@@ -2131,7 +2131,7 @@ const hs = ({
2131
2131
  spacing: i ? g1.Lg : g1.Md,
2132
2132
  align: I1.Start,
2133
2133
  justify: $1.Between,
2134
- className: w("w-full h-full"),
2134
+ className: f("w-full h-full"),
2135
2135
  children: [
2136
2136
  /* @__PURE__ */ y(
2137
2137
  E1,
@@ -2167,7 +2167,7 @@ const hs = ({
2167
2167
  ]
2168
2168
  }
2169
2169
  ),
2170
- r && /* @__PURE__ */ n("div", { className: w(!i && "w-full"), children: r })
2170
+ r && /* @__PURE__ */ n("div", { className: f(!i && "w-full"), children: r })
2171
2171
  ]
2172
2172
  }
2173
2173
  ) });
@@ -2181,7 +2181,7 @@ const Ot = ({
2181
2181
  /* @__PURE__ */ n(
2182
2182
  Bt,
2183
2183
  {
2184
- className: w(
2184
+ className: f(
2185
2185
  L(p.Tertiary),
2186
2186
  a1[b.BodyTertiary]
2187
2187
  ),
@@ -2225,7 +2225,7 @@ const gs = {
2225
2225
  return /* @__PURE__ */ y(
2226
2226
  Te,
2227
2227
  {
2228
- className: w(
2228
+ className: f(
2229
2229
  "group flex gap-2.5",
2230
2230
  m ? "items-start" : "items-center"
2231
2231
  ),
@@ -2237,7 +2237,7 @@ const gs = {
2237
2237
  onChange: r,
2238
2238
  indeterminate: C,
2239
2239
  disabled: d,
2240
- className: w(
2240
+ className: f(
2241
2241
  "group",
2242
2242
  "peer",
2243
2243
  "relative",
@@ -2291,7 +2291,7 @@ const gs = {
2291
2291
  label: h && /* @__PURE__ */ n(
2292
2292
  ct,
2293
2293
  {
2294
- className: w(
2294
+ className: f(
2295
2295
  // Figma: label is white when enabled, tertiary when disabled
2296
2296
  L(p.Primary),
2297
2297
  "peer-data-disabled:text-content-text-tertiary",
@@ -2317,7 +2317,7 @@ const Kr = ({
2317
2317
  ...o
2318
2318
  }) => /* @__PURE__ */ n("span", { className: I("cursor-pointer", r), ...o, children: e });
2319
2319
  Kr.displayName = "Clickable";
2320
- const Gr = () => w(
2320
+ const Gr = () => f(
2321
2321
  // 20rem is Tailwind's `--container-xs`, i.e. what the named
2322
2322
  // max-width utility for that size is meant to resolve to. The named
2323
2323
  // utility can't be used here: our theme defines
@@ -2340,11 +2340,11 @@ const Gr = () => w(
2340
2340
  // Figma ActionMenu: 226px wide (214px rows inside 6px panel padding).
2341
2341
  // Base UI's positioner reports the room left in the viewport; a longer
2342
2342
  // list scrolls instead of running off screen.
2343
- w(
2343
+ f(
2344
2344
  Gr(),
2345
2345
  "min-w-[226px] max-h-[var(--available-height)] overflow-y-auto"
2346
2346
  )
2347
- ), it = ({ highlighted: e, disabled: r }, o = !1) => w(
2347
+ ), it = ({ highlighted: e, disabled: r }, o = !1) => f(
2348
2348
  "flex w-full items-center",
2349
2349
  "px-2.5 py-1.5",
2350
2350
  t1(Q.Lg),
@@ -2378,7 +2378,7 @@ const Gr = () => w(
2378
2378
  onClick: r ? void 0 : i.onClick
2379
2379
  }
2380
2380
  ),
2381
- className: (d) => w(
2381
+ className: (d) => f(
2382
2382
  it(d),
2383
2383
  "gap-2",
2384
2384
  !!l && "my-0.5 items-start py-2",
@@ -2394,7 +2394,7 @@ const Gr = () => w(
2394
2394
  {
2395
2395
  variant: b.BodyPrimary,
2396
2396
  color: p.Primary,
2397
- className: w("block min-w-0 truncate", e && "font-medium"),
2397
+ className: f("block min-w-0 truncate", e && "font-medium"),
2398
2398
  children: s
2399
2399
  }
2400
2400
  ),
@@ -2438,15 +2438,15 @@ const us = new Set(Object.values(H)), Qr = ({
2438
2438
  onClick: s ? void 0 : m.onClick
2439
2439
  }
2440
2440
  ),
2441
- className: (f) => (
2441
+ className: (w) => (
2442
2442
  // Figma Action Menu Row: 8px gap, 16px icon
2443
- w(it(f, a), "group gap-2", h)
2443
+ f(it(w, a), "group gap-2", h)
2444
2444
  ),
2445
2445
  children: [
2446
2446
  /* @__PURE__ */ n(
2447
2447
  "span",
2448
2448
  {
2449
- className: w(
2449
+ className: f(
2450
2450
  "flex size-5 shrink-0 items-center justify-center",
2451
2451
  L(C)
2452
2452
  ),
@@ -2460,7 +2460,7 @@ const us = new Set(Object.values(H)), Qr = ({
2460
2460
  {
2461
2461
  variant: i,
2462
2462
  color: g,
2463
- className: w(
2463
+ className: f(
2464
2464
  "block truncate",
2465
2465
  g !== p.Primary && !a && "group-data-[highlighted]:text-content-text-primary"
2466
2466
  ),
@@ -2494,7 +2494,7 @@ const qr = ({
2494
2494
  "div",
2495
2495
  {
2496
2496
  role: "presentation",
2497
- className: w("px-2 pt-1.5 pb-3", l),
2497
+ className: f("px-2 pt-1.5 pb-3", l),
2498
2498
  ...s,
2499
2499
  children: /* @__PURE__ */ n(e1, { variant: r, color: o, className: "block", children: e })
2500
2500
  }
@@ -2507,7 +2507,7 @@ const Cs = ({
2507
2507
  "div",
2508
2508
  {
2509
2509
  role: "separator",
2510
- className: w(
2510
+ className: f(
2511
2511
  // Figma ActionMenu divider: 6px above and below, full panel width
2512
2512
  "my-1.5 -mx-1.5 border-t",
2513
2513
  n1(K.Default),
@@ -2532,7 +2532,7 @@ const ps = new Set(Object.values(H)), ws = 4, fs = -7, xs = ({
2532
2532
  T1.SubmenuTrigger,
2533
2533
  {
2534
2534
  disabled: l,
2535
- className: (h) => w(
2535
+ className: (h) => f(
2536
2536
  // Same row metrics as MenuIconTextItem: 8px gap, 16px icon
2537
2537
  it(h),
2538
2538
  "gap-2",
@@ -2546,7 +2546,7 @@ const ps = new Set(Object.values(H)), ws = 4, fs = -7, xs = ({
2546
2546
  /* @__PURE__ */ n(
2547
2547
  "span",
2548
2548
  {
2549
- className: w(
2549
+ className: f(
2550
2550
  "flex size-5 shrink-0 items-center justify-center",
2551
2551
  L(G.Default)
2552
2552
  ),
@@ -2577,7 +2577,7 @@ const ps = new Set(Object.values(H)), ws = 4, fs = -7, xs = ({
2577
2577
  "span",
2578
2578
  {
2579
2579
  "aria-hidden": !0,
2580
- className: w(
2580
+ className: f(
2581
2581
  "flex size-5 shrink-0 items-center justify-center",
2582
2582
  L(G.Default)
2583
2583
  ),
@@ -2618,7 +2618,7 @@ const Yr = ({
2618
2618
  onClick: r ? void 0 : s.onClick
2619
2619
  }
2620
2620
  ),
2621
- className: (a) => w(it(a, o), l),
2621
+ className: (a) => f(it(a, o), l),
2622
2622
  children: /* @__PURE__ */ n(
2623
2623
  e1,
2624
2624
  {
@@ -2658,47 +2658,58 @@ const K1 = {
2658
2658
  portal: l = !0,
2659
2659
  zIndex: s,
2660
2660
  disabled: a,
2661
- className: i,
2662
- ...d
2661
+ open: i,
2662
+ onOpenChange: d,
2663
+ className: h,
2664
+ ...m
2663
2665
  }) => {
2664
- const h = N1(l ? k1.AboveModal : s || k1.High), m = De(e) ? !!e.props.disabled : !1, g = a || m, v = c1(null), C = c1(null), x = () => C.current?.querySelector(Es) ?? null, { side: f, align: S } = ys[o];
2666
+ const g = N1(l ? k1.AboveModal : s || k1.High), v = De(e) ? !!e.props.disabled : !1, C = a || v, x = c1(null), w = c1(null), S = () => w.current?.querySelector(Es) ?? null, { side: E, align: M } = ys[o];
2665
2667
  return /* @__PURE__ */ y(
2666
2668
  "div",
2667
2669
  {
2668
- ref: C,
2669
- className: w("relative inline-block", i),
2670
- ...d,
2670
+ ref: w,
2671
+ className: f("relative inline-block", h),
2672
+ ...m,
2671
2673
  children: [
2672
- /* @__PURE__ */ y(T1.Root, { modal: !1, disabled: g, children: [
2673
- /* @__PURE__ */ n(
2674
- T1.Trigger,
2675
- {
2676
- disabled: g,
2677
- nativeButton: !1,
2678
- render: (E) => /* @__PURE__ */ n("div", { ...E, role: void 0, tabIndex: void 0 }),
2679
- className: g ? "cursor-not-allowed" : "cursor-pointer",
2680
- children: e
2681
- }
2682
- ),
2683
- /* @__PURE__ */ n(T1.Portal, { container: l ? void 0 : v, children: /* @__PURE__ */ n(
2684
- T1.Positioner,
2685
- {
2686
- side: f,
2687
- align: S,
2688
- sideOffset: 4,
2689
- className: h,
2690
- children: /* @__PURE__ */ n(
2691
- T1.Popup,
2674
+ /* @__PURE__ */ y(
2675
+ T1.Root,
2676
+ {
2677
+ modal: !1,
2678
+ disabled: C,
2679
+ open: i === void 0 ? void 0 : i && !C,
2680
+ onOpenChange: d && ((z) => d(z)),
2681
+ children: [
2682
+ /* @__PURE__ */ n(
2683
+ T1.Trigger,
2692
2684
  {
2693
- className: Ft(),
2694
- finalFocus: x,
2695
- children: r
2685
+ disabled: C,
2686
+ nativeButton: !1,
2687
+ render: (z) => /* @__PURE__ */ n("div", { ...z, role: void 0, tabIndex: void 0 }),
2688
+ className: C ? "cursor-not-allowed" : "cursor-pointer",
2689
+ children: e
2696
2690
  }
2697
- )
2698
- }
2699
- ) })
2700
- ] }),
2701
- !l && /* @__PURE__ */ n("span", { ref: v })
2691
+ ),
2692
+ /* @__PURE__ */ n(T1.Portal, { container: l ? void 0 : x, children: /* @__PURE__ */ n(
2693
+ T1.Positioner,
2694
+ {
2695
+ side: E,
2696
+ align: M,
2697
+ sideOffset: 4,
2698
+ className: g,
2699
+ children: /* @__PURE__ */ n(
2700
+ T1.Popup,
2701
+ {
2702
+ className: Ft(),
2703
+ finalFocus: S,
2704
+ children: r
2705
+ }
2706
+ )
2707
+ }
2708
+ ) })
2709
+ ]
2710
+ }
2711
+ ),
2712
+ !l && /* @__PURE__ */ n("span", { ref: x })
2702
2713
  ]
2703
2714
  }
2704
2715
  );
@@ -2726,7 +2737,7 @@ const Jr = L(G.Default), Ss = () => /* @__PURE__ */ n("span", { className: Jr, c
2726
2737
  leadingIcon: h,
2727
2738
  trailingIcon: o ? Ss : Vt,
2728
2739
  "aria-label": C ? `${l}: ${e}` : void 0,
2729
- className: w(
2740
+ className: f(
2730
2741
  // the Icon variant's label is medium; a menu trigger reads as regular body text
2731
2742
  o && a1[r === u.Md ? b.BodySecondary : b.BodyTertiary],
2732
2743
  o && r === u.Md && "h-7 py-1",
@@ -2740,7 +2751,7 @@ const Jr = L(G.Default), Ss = () => /* @__PURE__ */ n("span", { className: Jr, c
2740
2751
  "span",
2741
2752
  {
2742
2753
  [d2]: "",
2743
- className: w(
2754
+ className: f(
2744
2755
  "hidden",
2745
2756
  !v && "sm:mr-1 sm:inline",
2746
2757
  L(p.Secondary)
@@ -2756,7 +2767,7 @@ const Jr = L(G.Default), Ss = () => /* @__PURE__ */ n("span", { className: Jr, c
2756
2767
  }
2757
2768
  );
2758
2769
  if (l == null) return x;
2759
- const f = (S) => {
2770
+ const w = (S) => {
2760
2771
  const E = S.currentTarget.querySelector(`[${d2}]`);
2761
2772
  g(!!E && E.getClientRects().length === 0);
2762
2773
  };
@@ -2764,8 +2775,8 @@ const Jr = L(G.Default), Ss = () => /* @__PURE__ */ n("span", { className: Jr, c
2764
2775
  Oe,
2765
2776
  {
2766
2777
  content: m ? /* @__PURE__ */ n(At, { label: l, detail: e }) : null,
2767
- onMouseOverCapture: f,
2768
- onPointerDownCapture: f,
2778
+ onMouseOverCapture: w,
2779
+ onPointerDownCapture: w,
2769
2780
  children: x
2770
2781
  }
2771
2782
  );
@@ -2919,7 +2930,7 @@ const h2 = {
2919
2930
  },
2920
2931
  { types: ["deleted"], style: { color: H1(p.Failure) } }
2921
2932
  ]
2922
- }, m2 = w(
2933
+ }, m2 = f(
2923
2934
  "min-h-0 overflow-auto",
2924
2935
  D1(b.CodePrimary),
2925
2936
  "leading-5"
@@ -2941,13 +2952,13 @@ const h2 = {
2941
2952
  {
2942
2953
  "data-testid": "code",
2943
2954
  ...a,
2944
- className: w(
2955
+ className: f(
2945
2956
  "relative flex min-w-0 flex-col rounded-md p-4 pr-12",
2946
2957
  D(B.Card),
2947
2958
  s
2948
2959
  ),
2949
2960
  children: [
2950
- o !== void 0 ? /* @__PURE__ */ n("pre", { className: m2, style: h2.plain, children: /* @__PURE__ */ n("code", { children: o }) }) : /* @__PURE__ */ n(Co, { code: e.trimEnd(), language: r, theme: h2, children: ({ style: h, tokens: m, getLineProps: g, getTokenProps: v }) => /* @__PURE__ */ n("pre", { style: h, className: m2, children: /* @__PURE__ */ n("code", { children: m.map((C, x) => /* @__PURE__ */ n("div", { ...g({ line: C }), children: C.map((f, S) => /* @__PURE__ */ n("span", { ...v({ token: f }) }, S)) }, x)) }) }) }),
2961
+ o !== void 0 ? /* @__PURE__ */ n("pre", { className: m2, style: h2.plain, children: /* @__PURE__ */ n("code", { children: o }) }) : /* @__PURE__ */ n(Co, { code: e.trimEnd(), language: r, theme: h2, children: ({ style: h, tokens: m, getLineProps: g, getTokenProps: v }) => /* @__PURE__ */ n("pre", { style: h, className: m2, children: /* @__PURE__ */ n("code", { children: m.map((C, x) => /* @__PURE__ */ n("div", { ...g({ line: C }), children: C.map((w, S) => /* @__PURE__ */ n("span", { ...v({ token: w }) }, S)) }, x)) }) }) }),
2951
2962
  /* @__PURE__ */ n(
2952
2963
  Y1,
2953
2964
  {
@@ -3027,7 +3038,7 @@ const Hs = "dark", Bs = () => typeof document < "u" && document.documentElement.
3027
3038
  }, [v, g]), /* @__PURE__ */ n(
3028
3039
  "div",
3029
3040
  {
3030
- className: w(
3041
+ className: f(
3031
3042
  "min-h-0 overflow-hidden border",
3032
3043
  n1(K.Default),
3033
3044
  t1(Q.Md),
@@ -3049,7 +3060,7 @@ const Hs = "dark", Bs = () => typeof document < "u" && document.documentElement.
3049
3060
  theme: xt,
3050
3061
  loading: /* @__PURE__ */ n(ee, {}),
3051
3062
  beforeMount: (x) => g2(x, g),
3052
- onMount: (x, f) => C(f),
3063
+ onMount: (x, w) => C(w),
3053
3064
  onChange: (x) => o?.(x ?? ""),
3054
3065
  options: {
3055
3066
  readOnly: s,
@@ -3163,7 +3174,7 @@ const Ts = "_root_5p2w0_1", As = "_content_5p2w0_7", Os = "_contentOpen_5p2w0_14
3163
3174
  return /* @__PURE__ */ n(
3164
3175
  "span",
3165
3176
  {
3166
- className: w(
3177
+ className: f(
3167
3178
  "absolute left-0 flex items-center justify-center",
3168
3179
  L(o ? p.Primary : p.Secondary),
3169
3180
  n5[l]
@@ -3191,7 +3202,7 @@ const ne = {
3191
3202
  trailingControl: i
3192
3203
  }) => {
3193
3204
  const d = we(a);
3194
- return w(
3205
+ return f(
3195
3206
  "w-full",
3196
3207
  // Keep the themed surface color in every state. `bg-transparent` lets the surrounding
3197
3208
  // surface show through; we also pin the autofill background so the browser does not paint a
@@ -3235,7 +3246,7 @@ const ne = {
3235
3246
  inputRef: v,
3236
3247
  ...C
3237
3248
  }) => {
3238
- const [x, f] = r1(!1), S = o === ne.Password, [E, M] = r1(
3249
+ const [x, w] = r1(!1), S = o === ne.Password, [E, M] = r1(
3239
3250
  a != null ? String(a) : ""
3240
3251
  ), z = a != null ? String(a) : E, F = o === ne.Email && z.trim().length > 0 && !$s.test(z.trim()), T = !!h || F, O = c1(null), N = (U) => {
3241
3252
  O.current = U, typeof v == "function" ? v(U) : v && (v.current = U);
@@ -3252,7 +3263,7 @@ const ne = {
3252
3263
  d?.(U);
3253
3264
  }, V = (U) => {
3254
3265
  o === ne.Tel && (U.target.value = U.target.value.replace(/[^0-9+\-() ]/g, "")), M(U.target.value), i?.(U);
3255
- }, _ = w(
3266
+ }, _ = f(
3256
3267
  Ie({
3257
3268
  borderless: g,
3258
3269
  disabled: s,
@@ -3265,7 +3276,7 @@ const ne = {
3265
3276
  o === ne.Number && js,
3266
3277
  l
3267
3278
  ), o1 = z.trim().length > 0;
3268
- return /* @__PURE__ */ n("div", { className: "flex flex-col gap-1", children: /* @__PURE__ */ y("div", { className: w("relative", m && "flex items-center"), children: [
3279
+ return /* @__PURE__ */ n("div", { className: "flex flex-col gap-1", children: /* @__PURE__ */ y("div", { className: f("relative", m && "flex items-center"), children: [
3269
3280
  m && /* @__PURE__ */ n(o5, { icon: m, size: e, hasText: o1 }),
3270
3281
  /* @__PURE__ */ n(
3271
3282
  J5,
@@ -3291,7 +3302,7 @@ const ne = {
3291
3302
  "aria-label": x ? "Hide password" : "Show password",
3292
3303
  "aria-pressed": x,
3293
3304
  leadingIcon: x ? Hc : Ec,
3294
- onClick: () => f((U) => !U)
3305
+ onClick: () => w((U) => !U)
3295
3306
  }
3296
3307
  ) })
3297
3308
  ] }) });
@@ -3313,7 +3324,7 @@ const Us = ({
3313
3324
  return /* @__PURE__ */ y(
3314
3325
  "div",
3315
3326
  {
3316
- className: w(
3327
+ className: f(
3317
3328
  "flex w-full items-center gap-1 border pl-3 pr-1",
3318
3329
  D(B.Transparent),
3319
3330
  n1(K.Input),
@@ -3383,7 +3394,7 @@ const Us = ({
3383
3394
  );
3384
3395
  };
3385
3396
  Us.displayName = "SearchInput";
3386
- const Xs = (e, r, o) => w(
3397
+ const Xs = (e, r, o) => f(
3387
3398
  "flex w-full cursor-pointer",
3388
3399
  o ? "items-center gap-2" : "flex-col items-start gap-0.5",
3389
3400
  "px-2 py-1.5 text-left",
@@ -3414,7 +3425,7 @@ const c5 = ({
3414
3425
  className: v,
3415
3426
  portal: C = !1,
3416
3427
  anchor: x,
3417
- inline: f = !1,
3428
+ inline: w = !1,
3418
3429
  zIndex: S,
3419
3430
  commitOnBlur: E = !0,
3420
3431
  borderless: M = !1,
@@ -3463,7 +3474,7 @@ const c5 = ({
3463
3474
  f1(() => {
3464
3475
  $.current && m1.current?.querySelector("input")?.focus();
3465
3476
  }, []);
3466
- const Y = X ?? (T && (f || o.trim()) && e.length ? 0 : null), x1 = j(() => {
3477
+ const Y = X ?? (T && (w || o.trim()) && e.length ? 0 : null), x1 = j(() => {
3467
3478
  q(!1), s1(null);
3468
3479
  }, [q]);
3469
3480
  f1(() => {
@@ -3504,13 +3515,13 @@ const c5 = ({
3504
3515
  J.preventDefault(), r && s(null), x1();
3505
3516
  return;
3506
3517
  }
3507
- const V1 = (o1 || f) && Y !== null ? e[Y] : void 0;
3518
+ const V1 = (o1 || w) && Y !== null ? e[Y] : void 0;
3508
3519
  V1 ? (J.preventDefault(), R1(V1)) : (Fe(), x1());
3509
3520
  return;
3510
3521
  }
3511
3522
  J.key === "Escape" && (o1 && J.stopPropagation(), x1());
3512
3523
  };
3513
- return /* @__PURE__ */ y("div", { ref: d1, className: w("relative", v), ..._, children: [
3524
+ return /* @__PURE__ */ y("div", { ref: d1, className: f("relative", v), ..._, children: [
3514
3525
  /* @__PURE__ */ n(
3515
3526
  le,
3516
3527
  {
@@ -3535,15 +3546,15 @@ const c5 = ({
3535
3546
  }
3536
3547
  }
3537
3548
  ),
3538
- (o1 || f) && (m || e.length > 0 || g !== null) && /* @__PURE__ */ n(l5, { portal: C && !f, children: /* @__PURE__ */ y(
3549
+ (o1 || w) && (m || e.length > 0 || g !== null) && /* @__PURE__ */ n(l5, { portal: C && !w, children: /* @__PURE__ */ y(
3539
3550
  "div",
3540
3551
  {
3541
3552
  id: l1,
3542
3553
  role: "listbox",
3543
3554
  ...W,
3544
- ref: C && !f ? i1.setFloating : void 0,
3545
- style: C && !f ? R : void 0,
3546
- className: f ? "mt-1 max-h-80 overflow-y-auto" : w(
3555
+ ref: C && !w ? i1.setFloating : void 0,
3556
+ style: C && !w ? R : void 0,
3557
+ className: w ? "mt-1 max-h-80 overflow-y-auto" : f(
3547
3558
  C ? void 0 : "absolute top-full left-0 mt-1 w-full",
3548
3559
  "max-h-64 overflow-y-auto",
3549
3560
  Gr(),
@@ -3575,7 +3586,7 @@ const c5 = ({
3575
3586
  "aria-selected": V1 === Y,
3576
3587
  className: Xs(
3577
3588
  V1 === Y,
3578
- f,
3589
+ w,
3579
3590
  !!(J.icon || J.hint)
3580
3591
  ),
3581
3592
  onMouseEnter: () => s1(V1),
@@ -3588,7 +3599,7 @@ const c5 = ({
3588
3599
  {
3589
3600
  content: J.icon,
3590
3601
  size: 14,
3591
- className: w(
3602
+ className: f(
3592
3603
  "shrink-0",
3593
3604
  L(p.Secondary)
3594
3605
  )
@@ -3615,7 +3626,7 @@ const c5 = ({
3615
3626
  J.hint && /* @__PURE__ */ y(
3616
3627
  "span",
3617
3628
  {
3618
- className: w(
3629
+ className: f(
3619
3630
  "flex shrink-0 items-center gap-1.5 whitespace-nowrap",
3620
3631
  L(p.Tertiary)
3621
3632
  ),
@@ -3671,10 +3682,10 @@ const Gs = { width: 320, height: 320 }, bu = (e, r, o = Gs) => {
3671
3682
  ] });
3672
3683
  };
3673
3684
  Qs.displayName = "ContextMenu";
3674
- const jt = "border-content-border-default/30", qs = "bg-content-border-default/30", s5 = ({ children: e, className: r, wrapperClassName: o, ...l }) => /* @__PURE__ */ n("div", { className: w("w-full overflow-x-auto", o), children: /* @__PURE__ */ n(
3685
+ const jt = "border-content-border-default/30", qs = "bg-content-border-default/30", s5 = ({ children: e, className: r, wrapperClassName: o, ...l }) => /* @__PURE__ */ n("div", { className: f("w-full overflow-x-auto", o), children: /* @__PURE__ */ n(
3675
3686
  "table",
3676
3687
  {
3677
- className: w(
3688
+ className: f(
3678
3689
  "w-full border-collapse",
3679
3690
  D(B.Card),
3680
3691
  t1(Q.Md),
@@ -3692,7 +3703,7 @@ const jt = "border-content-border-default/30", qs = "bg-content-border-default/3
3692
3703
  return /* @__PURE__ */ n(
3693
3704
  "tr",
3694
3705
  {
3695
- className: w(
3706
+ className: f(
3696
3707
  "border-b last:border-0",
3697
3708
  jt,
3698
3709
  l && "hover:cursor-pointer",
@@ -3707,7 +3718,7 @@ const jt = "border-content-border-default/30", qs = "bg-content-border-default/3
3707
3718
  children: e,
3708
3719
  className: r,
3709
3720
  ...o
3710
- }) => /* @__PURE__ */ n("thead", { className: w("border-b", jt, r), ...o, children: e }), i5 = ({
3721
+ }) => /* @__PURE__ */ n("thead", { className: f("border-b", jt, r), ...o, children: e }), i5 = ({
3711
3722
  children: e,
3712
3723
  ...r
3713
3724
  }) => /* @__PURE__ */ n("tbody", { ...r, children: e }), Ye = ({
@@ -3717,7 +3728,7 @@ const jt = "border-content-border-default/30", qs = "bg-content-border-default/3
3717
3728
  }) => /* @__PURE__ */ n(
3718
3729
  "td",
3719
3730
  {
3720
- className: w(
3731
+ className: f(
3721
3732
  "px-4 py-3 text-left font-normal",
3722
3733
  L(p.Primary),
3723
3734
  D1(b.BodySecondary),
@@ -3733,7 +3744,7 @@ const jt = "border-content-border-default/30", qs = "bg-content-border-default/3
3733
3744
  }) => /* @__PURE__ */ n(
3734
3745
  "th",
3735
3746
  {
3736
- className: w(
3747
+ className: f(
3737
3748
  "px-4 py-2.5 text-left",
3738
3749
  L(p.Tertiary),
3739
3750
  D1(b.Label),
@@ -3764,7 +3775,7 @@ const Ys = {
3764
3775
  xl: "max-xl:hidden"
3765
3776
  }, Js = { compact: !0, labelMax: null }, e7 = (e) => e === "fit" ? "w-px whitespace-nowrap" : e === "fill" ? "w-full max-w-0" : void 0, h5 = (e) => e && e !== "fit" && e !== "fill" ? { width: e, minWidth: e } : void 0, m5 = Je(null), de = (e) => e.stopPropagation(), He = (e) => e != null && e !== !1 && e !== "", t7 = (e) => (r) => {
3766
3777
  e.props?.onKeyDown?.(r), r.key === "Enter" && r.target === r.currentTarget && e.onClick?.(r);
3767
- }, g5 = (e) => e.onClick ? { onClick: e.onClick, onKeyDown: t7(e), tabIndex: 0 } : {}, v5 = (e) => w(
3778
+ }, g5 = (e) => e.onClick ? { onClick: e.onClick, onKeyDown: t7(e), tabIndex: 0 } : {}, v5 = (e) => f(
3768
3779
  e7(e.width),
3769
3780
  e.hideBelow && Ys[e.hideBelow],
3770
3781
  e.align === "end" && "text-right"
@@ -3775,7 +3786,7 @@ const Ys = {
3775
3786
  /* @__PURE__ */ n(Ne, { ...r.props, ...g5(r), children: e.map((o) => /* @__PURE__ */ n(
3776
3787
  Ye,
3777
3788
  {
3778
- className: w(
3789
+ className: f(
3779
3790
  o.width !== "fit" && "wrap-anywhere",
3780
3791
  v5(o)
3781
3792
  ),
@@ -3823,7 +3834,7 @@ const Ys = {
3823
3834
  {
3824
3835
  ...r.props,
3825
3836
  ...g5(r),
3826
- className: w(
3837
+ className: f(
3827
3838
  "flex flex-col gap-xs border-b p-3 last:border-0",
3828
3839
  jt,
3829
3840
  r.onClick && "hover:cursor-pointer",
@@ -3835,7 +3846,7 @@ const Ys = {
3835
3846
  /* @__PURE__ */ n(
3836
3847
  "div",
3837
3848
  {
3838
- className: w(
3849
+ className: f(
3839
3850
  "min-w-0 flex-1",
3840
3851
  L(p.Primary),
3841
3852
  D1(b.BodySecondary)
@@ -3861,7 +3872,7 @@ const Ys = {
3861
3872
  s.length > 0 && /* @__PURE__ */ n(
3862
3873
  "div",
3863
3874
  {
3864
- className: w(
3875
+ className: f(
3865
3876
  "flex flex-wrap items-baseline gap-x-md gap-y-xs wrap-anywhere",
3866
3877
  L(p.Primary),
3867
3878
  D1(b.Caption)
@@ -3874,7 +3885,7 @@ const Ys = {
3874
3885
  He(a.label) && /* @__PURE__ */ y(
3875
3886
  "span",
3876
3887
  {
3877
- className: w(
3888
+ className: f(
3878
3889
  "flex shrink-0",
3879
3890
  L(p.Secondary)
3880
3891
  ),
@@ -3910,7 +3921,7 @@ const Ys = {
3910
3921
  {
3911
3922
  role: i ? "group" : void 0,
3912
3923
  "aria-label": i,
3913
- className: w(
3924
+ className: f(
3914
3925
  D(B.Card),
3915
3926
  t1(Q.Md),
3916
3927
  s
@@ -3957,7 +3968,7 @@ const Be = {
3957
3968
  {
3958
3969
  onClick: e,
3959
3970
  disabled: r,
3960
- className: w(
3971
+ className: f(
3961
3972
  d,
3962
3973
  "flex items-center justify-center",
3963
3974
  "cursor-pointer",
@@ -3969,7 +3980,7 @@ const Be = {
3969
3980
  children: /* @__PURE__ */ n(
3970
3981
  i,
3971
3982
  {
3972
- className: w(
3983
+ className: f(
3973
3984
  Zs[we(o)],
3974
3985
  L(G.Disabled)
3975
3986
  )
@@ -3982,7 +3993,7 @@ const Be = {
3982
3993
  error: r,
3983
3994
  radius: o = Q.Sm,
3984
3995
  size: l = u.Md
3985
- }) => w(
3996
+ }) => f(
3986
3997
  "w-full",
3987
3998
  D(B.Background),
3988
3999
  L(p.Primary),
@@ -4066,10 +4077,10 @@ const Be = {
4066
4077
  showTimeSelect: v,
4067
4078
  showTimeSelectOnly: C,
4068
4079
  timeIntervals: x,
4069
- ...f
4080
+ ...w
4070
4081
  }) => {
4071
4082
  const S = !!s, E = B1(() => i || (v && C ? "HH:mm" : v ? "yyyy-MM-dd · HH:mm" : "yyyy-MM-dd"), [i, v, C]);
4072
- return /* @__PURE__ */ n(Te, { className: w("flex flex-col gap-1", o), children: /* @__PURE__ */ n(
4083
+ return /* @__PURE__ */ n(Te, { className: f("flex flex-col gap-1", o), children: /* @__PURE__ */ n(
4073
4084
  po,
4074
4085
  {
4075
4086
  selected: s,
@@ -4093,7 +4104,7 @@ const Be = {
4093
4104
  hasValue: S
4094
4105
  }
4095
4106
  ),
4096
- ...f
4107
+ ...w
4097
4108
  }
4098
4109
  ) });
4099
4110
  };
@@ -4118,7 +4129,7 @@ const he = {
4118
4129
  return /* @__PURE__ */ n(
4119
4130
  "div",
4120
4131
  {
4121
- className: w("flex items-center", i ? "flex-col h-full" : ""),
4132
+ className: f("flex items-center", i ? "flex-col h-full" : ""),
4122
4133
  ...a,
4123
4134
  children: h ? /* @__PURE__ */ y(b1, { children: [
4124
4135
  /* @__PURE__ */ n(
@@ -4186,7 +4197,7 @@ const he = {
4186
4197
  return r === he.Dot ? /* @__PURE__ */ n(
4187
4198
  "div",
4188
4199
  {
4189
- className: w(
4200
+ className: f(
4190
4201
  // Figma Divider: border/subtle line, border/default dot. Use the
4191
4202
  // static class rather than a runtime-built `border-[var(...)]`,
4192
4203
  // which Tailwind's scanner cannot see and the safelist does not
@@ -4200,7 +4211,7 @@ const he = {
4200
4211
  ) : /* @__PURE__ */ n(
4201
4212
  "div",
4202
4213
  {
4203
- className: w(
4214
+ className: f(
4204
4215
  o ? qs : "bg-content-border-subtle",
4205
4216
  a ? "w-px h-full" : "h-px flex-1",
4206
4217
  l
@@ -4211,7 +4222,7 @@ const he = {
4211
4222
  }, i7 = ({ className: e, ...r }) => /* @__PURE__ */ n(
4212
4223
  "div",
4213
4224
  {
4214
- className: w(
4225
+ className: f(
4215
4226
  "bg-content-border-default",
4216
4227
  "rounded-full size-[3px] shrink-0 mx-1",
4217
4228
  e
@@ -4231,14 +4242,14 @@ function d7({
4231
4242
  onDragEnd: l
4232
4243
  }) {
4233
4244
  const [s, a] = r1(!1), i = c1(!1), d = c1(0), h = _1(r), m = _1(o), g = _1(l), v = j(
4234
- (f) => {
4235
- i.current = !0, a(!0), d.current = e === "horizontal" ? f.clientX : f.clientY, f.currentTarget.setPointerCapture(f.pointerId), h.current?.();
4245
+ (w) => {
4246
+ i.current = !0, a(!0), d.current = e === "horizontal" ? w.clientX : w.clientY, w.currentTarget.setPointerCapture(w.pointerId), h.current?.();
4236
4247
  },
4237
4248
  [e, h]
4238
4249
  ), C = j(
4239
- (f) => {
4250
+ (w) => {
4240
4251
  if (!i.current) return;
4241
- const S = e === "horizontal" ? f.clientX : f.clientY;
4252
+ const S = e === "horizontal" ? w.clientX : w.clientY;
4242
4253
  m.current(S - d.current);
4243
4254
  },
4244
4255
  [e, m]
@@ -4258,11 +4269,11 @@ function h7({
4258
4269
  size: s,
4259
4270
  ...a
4260
4271
  }) {
4261
- const { open: i, setOpen: d } = Zt(a), [h, m] = r1(0), [g, v] = r1(null), [C, x] = r1(!1), { ref: f } = mt(), S = c1(null), E = j(
4272
+ const { open: i, setOpen: d } = Zt(a), [h, m] = r1(0), [g, v] = r1(null), [C, x] = r1(!1), { ref: w } = mt(), S = c1(null), E = j(
4262
4273
  (R) => {
4263
- S.current = R, f(R);
4274
+ S.current = R, w(R);
4264
4275
  },
4265
- [f]
4276
+ [w]
4266
4277
  ), M = Math.min(h, r);
4267
4278
  let z = M;
4268
4279
  s != null ? z = Math.min(s, r) : g != null && (z = Math.min(g, M));
@@ -4371,7 +4382,7 @@ const Mu = ({
4371
4382
  className: C,
4372
4383
  style: x
4373
4384
  }) => {
4374
- const { axis: f, invert: S } = k7(e), E = f === "vertical", M = u2(f, r), z = u2(f, m), {
4385
+ const { axis: w, invert: S } = k7(e), E = w === "vertical", M = u2(w, r), z = u2(w, m), {
4375
4386
  open: F,
4376
4387
  toggle: T,
4377
4388
  setOpen: O,
@@ -4382,7 +4393,7 @@ const Mu = ({
4382
4393
  dragHandleProps: _,
4383
4394
  contentRef: o1
4384
4395
  } = h7({
4385
- axis: f,
4396
+ axis: w,
4386
4397
  invert: S,
4387
4398
  defaultOpen: a,
4388
4399
  open: i,
@@ -4550,7 +4561,7 @@ const B7 = "_art_1eg5x_5", z7 = "_sweep_1eg5x_15", I7 = "_lock_1eg5x_18", N7 = "
4550
4561
  fill: "none",
4551
4562
  role: "img",
4552
4563
  "aria-label": r,
4553
- className: w(L1.art, e),
4564
+ className: f(L1.art, e),
4554
4565
  children: [
4555
4566
  /* @__PURE__ */ n("defs", { children: /* @__PURE__ */ y("radialGradient", { id: `${s}glow`, cx: "50%", cy: "50%", r: "50%", children: [
4556
4567
  /* @__PURE__ */ n("stop", { offset: "0%", stopColor: S1, stopOpacity: "0.18" }),
@@ -5116,7 +5127,7 @@ const Q7 = ({
5116
5127
  {
5117
5128
  orientation: w1.Column,
5118
5129
  align: I1.Center,
5119
- className: w(
5130
+ className: f(
5120
5131
  "text-center",
5121
5132
  h && r ? "px-4 py-6" : "p-10",
5122
5133
  t1(Q.Md),
@@ -5129,7 +5140,7 @@ const Q7 = ({
5129
5140
  !r && m && /* @__PURE__ */ n(
5130
5141
  "span",
5131
5142
  {
5132
- className: w(
5143
+ className: f(
5133
5144
  "p-3",
5134
5145
  t1(Q.Full),
5135
5146
  D(B.CardElevated)
@@ -5159,7 +5170,7 @@ const Q7 = ({
5159
5170
  /* @__PURE__ */ n(e1, { variant: b.HeadingLg, children: o }),
5160
5171
  l && /* @__PURE__ */ n(e1, { variant: b.BodySecondary, color: p.Muted, children: l })
5161
5172
  ] }),
5162
- i && /* @__PURE__ */ n("div", { className: w(h && r ? "mt-5" : "mt-7", "w-full"), children: i })
5173
+ i && /* @__PURE__ */ n("div", { className: f(h && r ? "mt-5" : "mt-7", "w-full"), children: i })
5163
5174
  ]
5164
5175
  }
5165
5176
  );
@@ -5281,7 +5292,7 @@ const Y7 = {
5281
5292
  /* @__PURE__ */ n(
5282
5293
  "div",
5283
5294
  {
5284
- className: w(
5295
+ className: f(
5285
5296
  "grid grid-cols-1 sm:grid-cols-2",
5286
5297
  Y7[r]
5287
5298
  ),
@@ -5336,7 +5347,7 @@ function r8({
5336
5347
  style: v,
5337
5348
  ...C
5338
5349
  }) {
5339
- const x = c1(null), f = j(
5350
+ const x = c1(null), w = j(
5340
5351
  (z) => {
5341
5352
  const [F] = z;
5342
5353
  F.isIntersecting && h && !m && d && d();
@@ -5346,12 +5357,12 @@ function r8({
5346
5357
  f1(() => {
5347
5358
  const z = x.current;
5348
5359
  if (!z || !d) return;
5349
- const F = new IntersectionObserver(f, {
5360
+ const F = new IntersectionObserver(w, {
5350
5361
  threshold: 0,
5351
5362
  rootMargin: "200px"
5352
5363
  });
5353
5364
  return F.observe(z), () => F.disconnect();
5354
- }, [f, d]);
5365
+ }, [w, d]);
5355
5366
  const S = s === w1.Column, E = S ? {
5356
5367
  gridTemplateColumns: `repeat(${o}, 1fr)`,
5357
5368
  gridAutoRows: `${a}px`,
@@ -5365,7 +5376,7 @@ function r8({
5365
5376
  return /* @__PURE__ */ y(
5366
5377
  "div",
5367
5378
  {
5368
- className: w(
5379
+ className: f(
5369
5380
  "grid",
5370
5381
  S ? "overflow-y-auto overflow-x-hidden" : "overflow-x-auto overflow-y-hidden",
5371
5382
  g
@@ -5391,7 +5402,7 @@ r8.displayName = "ImageList";
5391
5402
  const o8 = ({ className: e, children: r, ...o }) => /* @__PURE__ */ n(
5392
5403
  "kbd",
5393
5404
  {
5394
- className: w(
5405
+ className: f(
5395
5406
  "inline-flex min-w-7 shrink-0 items-center justify-center px-1 tabular-nums whitespace-nowrap",
5396
5407
  D1(b.CodePrimary),
5397
5408
  L(p.Primary),
@@ -5422,7 +5433,7 @@ const p5 = ({
5422
5433
  }) => /* @__PURE__ */ y(
5423
5434
  "div",
5424
5435
  {
5425
- className: w(
5436
+ className: f(
5426
5437
  "flex flex-col",
5427
5438
  "w-full",
5428
5439
  m === u.Sm ? "py-2 pl-3.5 pr-2" : "py-3 px-3.5",
@@ -5435,7 +5446,7 @@ const p5 = ({
5435
5446
  /* @__PURE__ */ y(
5436
5447
  "div",
5437
5448
  {
5438
- className: w(
5449
+ className: f(
5439
5450
  "flex flex-nowrap items-center justify-between",
5440
5451
  "w-full",
5441
5452
  "gap-x-lg"
@@ -5444,7 +5455,7 @@ const p5 = ({
5444
5455
  /* @__PURE__ */ y(
5445
5456
  "div",
5446
5457
  {
5447
- className: w(
5458
+ className: f(
5448
5459
  "flex min-w-0 flex-nowrap items-center",
5449
5460
  m === u.Sm ? "gap-x-sm" : "gap-x-md"
5450
5461
  ),
@@ -5482,7 +5493,7 @@ const p5 = ({
5482
5493
  /* @__PURE__ */ n(
5483
5494
  "div",
5484
5495
  {
5485
- className: w(
5496
+ className: f(
5486
5497
  "flex min-w-0 items-center",
5487
5498
  a1[m === u.Sm ? b.BodyTertiary : b.BodySecondary],
5488
5499
  L(p.Secondary)
@@ -5496,7 +5507,7 @@ const p5 = ({
5496
5507
  /* @__PURE__ */ n(
5497
5508
  "span",
5498
5509
  {
5499
- className: w(
5510
+ className: f(
5500
5511
  "flex shrink-0 flex-nowrap items-center",
5501
5512
  m === u.Sm ? "gap-x-xs" : "gap-x-sm",
5502
5513
  // Action affordances (e.g. icon Buttons) read as light grey, not white.
@@ -5511,7 +5522,7 @@ const p5 = ({
5511
5522
  h && /* @__PURE__ */ n(
5512
5523
  "div",
5513
5524
  {
5514
- className: w(
5525
+ className: f(
5515
5526
  "px-sm py-3",
5516
5527
  // Align with primaryContent by adding margin for checkbox/drag handle
5517
5528
  e && l && "ml-12",
@@ -5559,14 +5570,14 @@ const l8 = Pe(
5559
5570
  }
5560
5571
  )
5561
5572
  ] })
5562
- ] }), v = w(
5573
+ ] }), v = f(
5563
5574
  "flex min-w-0 flex-1 items-start gap-2.5 px-2 py-1.5 text-left",
5564
5575
  a ? "cursor-not-allowed opacity-50" : "cursor-pointer"
5565
5576
  );
5566
5577
  return /* @__PURE__ */ y(
5567
5578
  "div",
5568
5579
  {
5569
- className: w(
5580
+ className: f(
5570
5581
  "flex items-center transition-colors",
5571
5582
  t1(Q.Sm),
5572
5583
  D(
@@ -5611,7 +5622,7 @@ const w5 = ({
5611
5622
  }) => /* @__PURE__ */ n(
5612
5623
  "span",
5613
5624
  {
5614
- className: w(
5625
+ className: f(
5615
5626
  "inline-block size-1.5 shrink-0",
5616
5627
  t1(Q.Full),
5617
5628
  D(e),
@@ -5663,7 +5674,7 @@ const d8 = "_dots_12ry3_6", h8 = "_dot_12ry3_6", Xe = {
5663
5674
  e1,
5664
5675
  {
5665
5676
  role: "status",
5666
- className: w("inline-flex items-baseline", r),
5677
+ className: f("inline-flex items-baseline", r),
5667
5678
  ...o,
5668
5679
  children: [
5669
5680
  e,
@@ -5687,7 +5698,7 @@ const g8 = ({
5687
5698
  {
5688
5699
  variant: b.BodySecondary,
5689
5700
  color: p.Secondary,
5690
- className: w("flex flex-wrap items-center gap-x-2", e),
5701
+ className: f("flex flex-wrap items-center gap-x-2", e),
5691
5702
  ...o,
5692
5703
  children: l.map((s, a) => /* @__PURE__ */ y(
5693
5704
  M2,
@@ -5732,7 +5743,7 @@ const Me = {
5732
5743
  className: v,
5733
5744
  contentClassName: C,
5734
5745
  children: x,
5735
- ...f
5746
+ ...w
5736
5747
  }) => {
5737
5748
  const S = s ?? !!o;
5738
5749
  return /* @__PURE__ */ y(
@@ -5741,7 +5752,7 @@ const Me = {
5741
5752
  open: e,
5742
5753
  onClose: r,
5743
5754
  transition: !0,
5744
- className: w(
5755
+ className: f(
5745
5756
  // spans the viewport, so the root itself has a box (tests and
5746
5757
  // hit-testing find the dialog by it)
5747
5758
  "fixed inset-0",
@@ -5749,19 +5760,19 @@ const Me = {
5749
5760
  Qe(Ge.Normal),
5750
5761
  "transition-opacity data-closed:opacity-0"
5751
5762
  ),
5752
- ...f,
5763
+ ...w,
5753
5764
  children: [
5754
5765
  /* @__PURE__ */ n(
5755
5766
  k2,
5756
5767
  {
5757
- className: w("fixed inset-0", D(Z1.Default))
5768
+ className: f("fixed inset-0", D(Z1.Default))
5758
5769
  }
5759
5770
  ),
5760
5771
  /* @__PURE__ */ n("div", { className: "fixed inset-y-0 left-0 flex w-screen items-center justify-center p-4", children: /* @__PURE__ */ y(
5761
5772
  H2,
5762
5773
  {
5763
5774
  "data-testid": "modal-panel",
5764
- className: w(
5775
+ className: f(
5765
5776
  "flex w-full flex-col overflow-hidden",
5766
5777
  "max-h-[85vh]",
5767
5778
  v8[l],
@@ -5783,7 +5794,7 @@ const Me = {
5783
5794
  (o || S) && /* @__PURE__ */ y(
5784
5795
  "div",
5785
5796
  {
5786
- className: w(
5797
+ className: f(
5787
5798
  "flex flex-none items-start justify-between gap-md",
5788
5799
  "px-6 pt-6 pb-5"
5789
5800
  ),
@@ -5803,7 +5814,7 @@ const Me = {
5803
5814
  /* @__PURE__ */ n(
5804
5815
  B2,
5805
5816
  {
5806
- className: w(
5817
+ className: f(
5807
5818
  a1[b.HeadingLg],
5808
5819
  L(p.Primary)
5809
5820
  ),
@@ -5813,7 +5824,7 @@ const Me = {
5813
5824
  a && /* @__PURE__ */ n(
5814
5825
  Bt,
5815
5826
  {
5816
- className: w(
5827
+ className: f(
5817
5828
  a1[b.BodyPrimary],
5818
5829
  L(p.Secondary)
5819
5830
  ),
@@ -5840,7 +5851,7 @@ const Me = {
5840
5851
  /* @__PURE__ */ n(
5841
5852
  "div",
5842
5853
  {
5843
- className: w(
5854
+ className: f(
5844
5855
  "min-h-0 flex-1 overflow-y-auto px-6",
5845
5856
  o || S ? "pb-6" : "py-6",
5846
5857
  C
@@ -5851,7 +5862,7 @@ const Me = {
5851
5862
  (i || d) && /* @__PURE__ */ y(
5852
5863
  "div",
5853
5864
  {
5854
- className: w(
5865
+ className: f(
5855
5866
  // Figma: 16px between actions, 40px above them, no divider
5856
5867
  "flex flex-none flex-wrap items-center justify-end gap-4",
5857
5868
  "px-6 pt-4 pb-6"
@@ -5879,7 +5890,7 @@ function C8(e, {
5879
5890
  const a = e.join("|"), { ref: i, width: d } = mt(), h = c1(/* @__PURE__ */ new Map()), m = c1(/* @__PURE__ */ new Map()), g = c1(/* @__PURE__ */ new Map()), v = c1(/* @__PURE__ */ new Map()), [C, x] = r1({
5880
5891
  fit: e.length,
5881
5892
  ...U1
5882
- }), [f, S] = r1(0), [E, M] = r1(0), z = c1(null), F = j((k) => {
5893
+ }), [w, S] = r1(0), [E, M] = r1(0), z = c1(null), F = j((k) => {
5883
5894
  const V = z.current;
5884
5895
  !V || V.seen.has(k) || (V.seen.add(k), V.resize.observe(k));
5885
5896
  }, []);
@@ -5944,7 +5955,7 @@ function C8(e, {
5944
5955
  X += (U.get(e[P]) ?? 0) + r, P += 1;
5945
5956
  }
5946
5957
  V({ fit: P, compact: l, labelMax: null });
5947
- }, [a, d, C, f, l, r, o, s]);
5958
+ }, [a, d, C, w, l, r, o, s]);
5948
5959
  const T = j(
5949
5960
  (k) => (V) => {
5950
5961
  V ? (h.current.set(k, V), F(V)) : h.current.delete(k);
@@ -5976,7 +5987,7 @@ const p8 = 4, w8 = { sm: 26, md: 36 }, f8 = (e, r) => De(e) && e.key !== null ?
5976
5987
  ref: v,
5977
5988
  itemRef: C,
5978
5989
  fit: x,
5979
- context: f,
5990
+ context: w,
5980
5991
  natural: S
5981
5992
  } = C8(g, {
5982
5993
  gap: p8,
@@ -5984,12 +5995,12 @@ const p8 = 4, w8 = { sm: 26, md: 36 }, f8 = (e, r) => De(e) && e.key !== null ?
5984
5995
  compactable: o
5985
5996
  }), E = x < m.length, M = c1(a);
5986
5997
  return M.current = a, f1(() => {
5987
- M.current?.({ ...f, folded: E });
5988
- }, [f, E]), /* @__PURE__ */ y(
5998
+ M.current?.({ ...w, folded: E });
5999
+ }, [w, E]), /* @__PURE__ */ y(
5989
6000
  "div",
5990
6001
  {
5991
6002
  ref: v,
5992
- className: w(
6003
+ className: f(
5993
6004
  // never narrower than its menu button, so every item stays reachable
5994
6005
  "flex min-w-9 flex-1 items-center gap-1 overflow-hidden",
5995
6006
  i
@@ -5997,7 +6008,7 @@ const p8 = 4, w8 = { sm: 26, md: 36 }, f8 = (e, r) => De(e) && e.key !== null ?
5997
6008
  style: s && S ? { flex: `0 1 ${S}px`, ...d } : d,
5998
6009
  ...h,
5999
6010
  children: [
6000
- /* @__PURE__ */ n(ze.Provider, { value: f, children: m.slice(0, x).map((z, F) => /* @__PURE__ */ n(
6011
+ /* @__PURE__ */ n(ze.Provider, { value: w, children: m.slice(0, x).map((z, F) => /* @__PURE__ */ n(
6001
6012
  "div",
6002
6013
  {
6003
6014
  ref: C(g[F]),
@@ -6039,7 +6050,7 @@ const p8 = 4, w8 = { sm: 26, md: 36 }, f8 = (e, r) => De(e) && e.key !== null ?
6039
6050
  "py-2 px-3",
6040
6051
  l && "opacity-50 cursor-not-allowed",
6041
6052
  t1(Q.Sm),
6042
- w(
6053
+ f(
6043
6054
  // Use a single subtle base surface for all rows instead of aggressive
6044
6055
  // alternating backgrounds; selection is conveyed via the dedicated
6045
6056
  // `Selected` surface token plus the accent check icon.
@@ -6094,11 +6105,11 @@ const x5 = ({
6094
6105
  "aria-label": C,
6095
6106
  ...x
6096
6107
  }) => {
6097
- const [f, S] = r1(""), [E, M] = r1(() => []), { ref: z, width: F } = mt(), T = c1(null), O = B1(
6098
- () => f ? i?.filter(
6099
- (k) => k.data.label.trim().toLowerCase().includes(f.toLowerCase())
6108
+ const [w, S] = r1(""), [E, M] = r1(() => []), { ref: z, width: F } = mt(), T = c1(null), O = B1(
6109
+ () => w ? i?.filter(
6110
+ (k) => k.data.label.trim().toLowerCase().includes(w.toLowerCase())
6100
6111
  ) : i,
6101
- [i, f]
6112
+ [i, w]
6102
6113
  );
6103
6114
  f1(() => {
6104
6115
  m && m.length > 0 && M([...m]);
@@ -6132,7 +6143,7 @@ const x5 = ({
6132
6143
  onChange: (k) => S(k.target.value),
6133
6144
  onClick: (k) => k.currentTarget.getAttribute("aria-expanded") !== "true" && T.current?.click(),
6134
6145
  placeholder: g,
6135
- className: w(
6146
+ className: f(
6136
6147
  Ie({
6137
6148
  disabled: o,
6138
6149
  size: h,
@@ -6259,7 +6270,7 @@ const C2 = {
6259
6270
  hide: C = [],
6260
6271
  className: x
6261
6272
  }) => {
6262
- const [f, S] = r1(String(e)), [E, M] = r1(null);
6273
+ const [w, S] = r1(String(e)), [E, M] = r1(null);
6263
6274
  f1(() => {
6264
6275
  S(String(e)), M(null);
6265
6276
  }, [e]);
@@ -6275,7 +6286,7 @@ const C2 = {
6275
6286
  const s1 = Math.min(Math.max(X, 1), Math.max(r, 1));
6276
6287
  s1 !== e && o(s1);
6277
6288
  }, k = () => {
6278
- const X = parseInt(f, 10);
6289
+ const X = parseInt(w, 10);
6279
6290
  Number.isNaN(X) ? S(String(e)) : W(X);
6280
6291
  }, V = (X) => {
6281
6292
  X.key === "Enter" && k();
@@ -6381,7 +6392,7 @@ const C2 = {
6381
6392
  className: "h-6 w-12 text-center tabular-nums",
6382
6393
  inputMode: "numeric",
6383
6394
  "aria-label": "Go to page",
6384
- value: f,
6395
+ value: w,
6385
6396
  onFocus: (s1) => s1.target.select(),
6386
6397
  onChange: (s1) => /^\d*$/.test(s1.target.value) && S(s1.target.value),
6387
6398
  onKeyDown: (s1) => {
@@ -6449,7 +6460,7 @@ const C2 = {
6449
6460
  className: "w-12 text-center tabular-nums",
6450
6461
  inputMode: "numeric",
6451
6462
  "aria-label": "Go to page",
6452
- value: f,
6463
+ value: w,
6453
6464
  disabled: d,
6454
6465
  onChange: (X) => /^\d*$/.test(X.target.value) && S(X.target.value),
6455
6466
  onKeyDown: V,
@@ -6573,7 +6584,7 @@ const L8 = {
6573
6584
  );
6574
6585
  };
6575
6586
  y5.displayName = "Pill";
6576
- const B8 = () => w(
6587
+ const B8 = () => f(
6577
6588
  "min-w-[120px]",
6578
6589
  // Same surface as the Figma ActionMenu panel
6579
6590
  "p-2.5",
@@ -6611,7 +6622,7 @@ const B8 = () => w(
6611
6622
  fitViewport: v = !1,
6612
6623
  focusOnOpen: C = !0,
6613
6624
  className: x,
6614
- ...f
6625
+ ...w
6615
6626
  }) => {
6616
6627
  const S = o !== void 0, { open: E, setOpen: M } = Zt({
6617
6628
  defaultOpen: !1,
@@ -6662,7 +6673,7 @@ const B8 = () => w(
6662
6673
  {
6663
6674
  ref: T.setFloating,
6664
6675
  style: O,
6665
- className: w(B8(), U, g),
6676
+ className: f(B8(), U, g),
6666
6677
  ...o1(),
6667
6678
  children: typeof r == "function" ? r({ close: P }) : r
6668
6679
  }
@@ -6672,18 +6683,18 @@ const B8 = () => w(
6672
6683
  return /* @__PURE__ */ y(
6673
6684
  "div",
6674
6685
  {
6675
- className: w(
6686
+ className: f(
6676
6687
  // A width-matched panel hangs from a trigger that spans its container
6677
6688
  d ? "relative block w-full" : "relative inline-block",
6678
6689
  x
6679
6690
  ),
6680
- ...f,
6691
+ ...w,
6681
6692
  children: [
6682
6693
  /* @__PURE__ */ n(
6683
6694
  "div",
6684
6695
  {
6685
6696
  ref: T.setReference,
6686
- className: w(
6697
+ className: f(
6687
6698
  d ? "block w-full" : "inline-block",
6688
6699
  !S && (F ? "cursor-not-allowed" : "cursor-pointer")
6689
6700
  ),
@@ -6769,7 +6780,7 @@ const D8 = ({ className: e, ...r }) => /* @__PURE__ */ n(
6769
6780
  Te,
6770
6781
  {
6771
6782
  ...i,
6772
- className: w(
6783
+ className: f(
6773
6784
  "group flex gap-3",
6774
6785
  s ? "items-start" : "items-center",
6775
6786
  i?.className
@@ -6780,7 +6791,7 @@ const D8 = ({ className: e, ...r }) => /* @__PURE__ */ n(
6780
6791
  {
6781
6792
  value: e,
6782
6793
  disabled: a,
6783
- className: w(
6794
+ className: f(
6784
6795
  "peer",
6785
6796
  // a long label wraps; the circle keeps its size
6786
6797
  "shrink-0",
@@ -6826,7 +6837,7 @@ const D8 = ({ className: e, ...r }) => /* @__PURE__ */ n(
6826
6837
  children: /* @__PURE__ */ n(
6827
6838
  "div",
6828
6839
  {
6829
- className: w(
6840
+ className: f(
6830
6841
  "absolute",
6831
6842
  "inset-0",
6832
6843
  "flex",
@@ -6845,7 +6856,7 @@ const D8 = ({ className: e, ...r }) => /* @__PURE__ */ n(
6845
6856
  label: l && /* @__PURE__ */ n(
6846
6857
  ct,
6847
6858
  {
6848
- className: w(
6859
+ className: f(
6849
6860
  // Figma: label is white when enabled, tertiary when disabled
6850
6861
  L(
6851
6862
  a ? p.Tertiary : p.Primary
@@ -6902,7 +6913,7 @@ const O8 = () => Math.random().toString(36).substring(2, 9).trim(), R8 = ({
6902
6913
  fieldProps: {
6903
6914
  ...h?.fieldProps,
6904
6915
  ...v.fieldProps,
6905
- className: w(
6916
+ className: f(
6906
6917
  h?.fieldProps?.className,
6907
6918
  v.fieldProps?.className
6908
6919
  )
@@ -6962,7 +6973,7 @@ const S5 = ({
6962
6973
  {
6963
6974
  content: l,
6964
6975
  size: 16,
6965
- className: w(
6976
+ className: f(
6966
6977
  "flex shrink-0",
6967
6978
  // icon/default at rest, icon/emphasis on hover and when active.
6968
6979
  e ? L(G.Emphasis) : I(
@@ -7010,7 +7021,7 @@ const F8 = ({
7010
7021
  },
7011
7022
  [a, l]
7012
7023
  );
7013
- return /* @__PURE__ */ n("div", { className: w("flex", "gap-x-md", r), ...s, children: e.map((m) => /* @__PURE__ */ n(
7024
+ return /* @__PURE__ */ n("div", { className: f("flex", "gap-x-md", r), ...s, children: e.map((m) => /* @__PURE__ */ n(
7014
7025
  S5,
7015
7026
  {
7016
7027
  ...m.data,
@@ -7094,7 +7105,7 @@ const Z8 = {
7094
7105
  const z = r.findIndex((O) => O.id === E.id), F = r.findIndex((O) => O.id === M.id), T = ko(r, z, F);
7095
7106
  s?.(T);
7096
7107
  }
7097
- }, f = B1(
7108
+ }, w = B1(
7098
7109
  () => r.map((S) => /* @__PURE__ */ n(
7099
7110
  b5,
7100
7111
  {
@@ -7127,11 +7138,11 @@ const Z8 = {
7127
7138
  {
7128
7139
  items: r.map((S) => S.id),
7129
7140
  strategy: Lo,
7130
- children: f
7141
+ children: w
7131
7142
  }
7132
7143
  )
7133
7144
  }
7134
- ) : f
7145
+ ) : w
7135
7146
  }
7136
7147
  );
7137
7148
  };
@@ -7162,14 +7173,14 @@ const Et = {
7162
7173
  open: e,
7163
7174
  onClose: r,
7164
7175
  transition: !0,
7165
- className: w("relative", N1(k1.High)),
7176
+ className: f("relative", N1(k1.High)),
7166
7177
  ...g,
7167
7178
  children: [
7168
7179
  /* @__PURE__ */ n(
7169
7180
  k2,
7170
7181
  {
7171
7182
  transition: !0,
7172
- className: w(
7183
+ className: f(
7173
7184
  "fixed inset-0",
7174
7185
  D(Z1.Default),
7175
7186
  Qe(Ge.Normal),
@@ -7183,7 +7194,7 @@ const Et = {
7183
7194
  transition: !0,
7184
7195
  "data-testid": "sheet-panel",
7185
7196
  style: { maxWidth: s },
7186
- className: w(
7197
+ className: f(
7187
7198
  "fixed inset-y-0 flex w-full flex-col",
7188
7199
  j8[o],
7189
7200
  D(B.CardElevated),
@@ -7200,7 +7211,7 @@ const Et = {
7200
7211
  /* @__PURE__ */ y(
7201
7212
  "div",
7202
7213
  {
7203
- className: w(
7214
+ className: f(
7204
7215
  "flex flex-none items-center justify-between gap-md",
7205
7216
  i ? "px-3 pt-3 pb-2" : "px-6 pt-6 pb-5"
7206
7217
  ),
@@ -7208,7 +7219,7 @@ const Et = {
7208
7219
  l ? /* @__PURE__ */ n(
7209
7220
  B2,
7210
7221
  {
7211
- className: w(
7222
+ className: f(
7212
7223
  a1[b.HeadingLg],
7213
7224
  L(p.Primary),
7214
7225
  "min-w-0"
@@ -7232,7 +7243,7 @@ const Et = {
7232
7243
  /* @__PURE__ */ n(
7233
7244
  "div",
7234
7245
  {
7235
- className: w(
7246
+ className: f(
7236
7247
  "min-h-0 flex-1 overflow-y-auto px-6",
7237
7248
  l || v ? "pb-6" : "py-6",
7238
7249
  h
@@ -7292,7 +7303,7 @@ const $8 = (e, r) => {
7292
7303
  value: d,
7293
7304
  ...h
7294
7305
  }) => {
7295
- const m = c1(null), g = c1(d), v = Array.isArray(d) ? d : [r, d ?? e], C = v[0], x = v[1], f = Xr(d), S = j(
7306
+ const m = c1(null), g = c1(d), v = Array.isArray(d) ? d : [r, d ?? e], C = v[0], x = v[1], w = Xr(d), S = j(
7296
7307
  (N) => (N - r) / (e - r),
7297
7308
  [e, r]
7298
7309
  ), E = j(
@@ -7409,7 +7420,7 @@ const $8 = (e, r) => {
7409
7420
  onMouseDown: O,
7410
7421
  onKeyDown: (N) => N.stopPropagation(),
7411
7422
  ...h,
7412
- children: !f && /* @__PURE__ */ y(b1, { children: [
7423
+ children: !w && /* @__PURE__ */ y(b1, { children: [
7413
7424
  /* @__PURE__ */ n(
7414
7425
  "div",
7415
7426
  {
@@ -7487,7 +7498,7 @@ const U8 = (e, r, o) => (e - r) / (o - r), X8 = ({ format: e, max: r, min: o, va
7487
7498
  return /* @__PURE__ */ y(
7488
7499
  "div",
7489
7500
  {
7490
- className: w(
7501
+ className: f(
7491
7502
  "relative",
7492
7503
  "flex items-center justify-between",
7493
7504
  "w-full",
@@ -7547,7 +7558,7 @@ const k5 = (e, r) => {
7547
7558
  minLabel: v,
7548
7559
  multi: C,
7549
7560
  onChange: x,
7550
- onChangeCommitted: f,
7561
+ onChangeCommitted: w,
7551
7562
  step: S = 1e-3,
7552
7563
  keyboardStep: E,
7553
7564
  value: M,
@@ -7596,13 +7607,13 @@ const k5 = (e, r) => {
7596
7607
  },
7597
7608
  [P, _, k, N, C, a]
7598
7609
  ), s1 = j(() => {
7599
- if (!f) return;
7610
+ if (!w) return;
7600
7611
  const l1 = a(k);
7601
7612
  if (C) {
7602
7613
  const i1 = a(N);
7603
- _(i1, l1) && f([i1, l1]);
7604
- } else Number.isFinite(l1) && f(l1);
7605
- }, [_, k, N, C, f, a]), m1 = e ? "Click on the slider to set a value" : "Click on the slider or enter a number to set a value";
7614
+ _(i1, l1) && w([i1, l1]);
7615
+ } else Number.isFinite(l1) && w(l1);
7616
+ }, [_, k, N, C, w, a]), m1 = e ? "Click on the slider to set a value" : "Click on the slider or enter a number to set a value";
7606
7617
  return /* @__PURE__ */ y(
7607
7618
  E1,
7608
7619
  {
@@ -7634,7 +7645,7 @@ const k5 = (e, r) => {
7634
7645
  keyboardStep: E,
7635
7646
  value: T,
7636
7647
  onChange: P,
7637
- onChangeCommitted: f
7648
+ onChangeCommitted: w
7638
7649
  }
7639
7650
  ),
7640
7651
  !e && /* @__PURE__ */ y("div", { className: "flex justify-between items-center", children: [
@@ -7724,7 +7735,7 @@ const Bu = ({
7724
7735
  variant: o,
7725
7736
  size: l,
7726
7737
  disabled: s,
7727
- className: w("rounded-r-none", a),
7738
+ className: f("rounded-r-none", a),
7728
7739
  ...i
7729
7740
  }
7730
7741
  ),
@@ -7861,7 +7872,7 @@ const ta = Pe(
7861
7872
  r !== void 0 && /* @__PURE__ */ n(
7862
7873
  "span",
7863
7874
  {
7864
- className: w(
7875
+ className: f(
7865
7876
  "ml-1.5 tabular-nums",
7866
7877
  a1[b.BodySecondary],
7867
7878
  L(G.Subtle)
@@ -7869,7 +7880,7 @@ const ta = Pe(
7869
7880
  children: r.toLocaleString()
7870
7881
  }
7871
7882
  )
7872
- ] }), v = w(
7883
+ ] }), v = f(
7873
7884
  // Figma Tab (Medium): 6px above and 10px below a 16/20 medium label,
7874
7885
  // text/primary when active and text/secondary otherwise. 12px side
7875
7886
  // padding is kept: the list only adds a 4px gap, which is not enough
@@ -7879,7 +7890,7 @@ const ta = Pe(
7879
7890
  "focus-visible:outline-none",
7880
7891
  a1[b.HeadingMd],
7881
7892
  Oo(To.Colors),
7882
- e ? L(p.Primary) : w(
7893
+ e ? L(p.Primary) : f(
7883
7894
  L(p.Secondary),
7884
7895
  L(p.Primary, Z.Hover)
7885
7896
  ),
@@ -7937,10 +7948,10 @@ const na = typeof window > "u" ? f1 : ve, f2 = { left: 0, width: 0, visible: !1,
7937
7948
  i((E) => E.visible ? f2 : E);
7938
7949
  return;
7939
7950
  }
7940
- const x = m.getBoundingClientRect(), f = C.getBoundingClientRect(), S = d.current !== null && d.current !== C;
7951
+ const x = m.getBoundingClientRect(), w = C.getBoundingClientRect(), S = d.current !== null && d.current !== C;
7941
7952
  d.current = C, i({
7942
- left: f.left - x.left,
7943
- width: f.width,
7953
+ left: w.left - x.left,
7954
+ width: w.width,
7944
7955
  visible: !0,
7945
7956
  slide: S
7946
7957
  });
@@ -7955,7 +7966,7 @@ const na = typeof window > "u" ? f1 : ve, f2 = { left: 0, width: 0, visible: !1,
7955
7966
  {
7956
7967
  ref: h,
7957
7968
  role: "tablist",
7958
- className: w("relative flex h-full items-stretch gap-1", e),
7969
+ className: f("relative flex h-full items-stretch gap-1", e),
7959
7970
  ...o,
7960
7971
  children: [
7961
7972
  r,
@@ -7963,9 +7974,9 @@ const na = typeof window > "u" ? f1 : ve, f2 = { left: 0, width: 0, visible: !1,
7963
7974
  "span",
7964
7975
  {
7965
7976
  "aria-hidden": !0,
7966
- className: w(
7977
+ className: f(
7967
7978
  "pointer-events-none absolute bottom-0 h-0.5 rounded-full",
7968
- a.slide && w(
7979
+ a.slide && f(
7969
7980
  "transition-[left,width]",
7970
7981
  Qe(Ge.Moderate),
7971
7982
  Ao(Po.Out)
@@ -8001,7 +8012,7 @@ const zu = ({
8001
8012
  const v = c1(null), C = c1(null), x = B1(() => {
8002
8013
  const E = o.trim().toLowerCase();
8003
8014
  return s.filter((M) => !e.includes(M) && M.toLowerCase().includes(E)).map((M) => ({ id: M, label: M }));
8004
- }, [o, s, e]), f = (E) => {
8015
+ }, [o, s, e]), w = (E) => {
8005
8016
  const M = E.trim();
8006
8017
  M && !e.includes(M) && r([...e, M]), l("");
8007
8018
  }, S = (E) => {
@@ -8018,7 +8029,7 @@ const zu = ({
8018
8029
  onMouseDown: (E) => {
8019
8030
  g.onMouseDown?.(E), E.target === E.currentTarget && (E.preventDefault(), v.current?.querySelector("input")?.focus());
8020
8031
  },
8021
- className: w(
8032
+ className: f(
8022
8033
  "flex min-h-9 w-full flex-wrap items-center gap-1.5 border px-1.5 py-1",
8023
8034
  D(B.Transparent),
8024
8035
  n1(K.Input),
@@ -8032,7 +8043,7 @@ const zu = ({
8032
8043
  e.map((E) => /* @__PURE__ */ y(
8033
8044
  "span",
8034
8045
  {
8035
- className: w(
8046
+ className: f(
8036
8047
  "inline-flex max-w-40 items-center gap-1 rounded-full py-0.5 pr-1 pl-2.5 text-body-secondary",
8037
8048
  D(B.CardElevated),
8038
8049
  L(p.Primary)
@@ -8046,7 +8057,7 @@ const zu = ({
8046
8057
  disabled: d,
8047
8058
  "aria-label": `Remove ${E}`,
8048
8059
  onClick: () => r(e.filter((M) => M !== E)),
8049
- className: w(
8060
+ className: f(
8050
8061
  "inline-flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors",
8051
8062
  L(p.Secondary),
8052
8063
  L(p.Primary, Z.Hover),
@@ -8077,10 +8088,10 @@ const zu = ({
8077
8088
  "aria-label": m,
8078
8089
  inputProps: { className: "h-7 py-1", onKeyDownCapture: S },
8079
8090
  onInputChange: (E) => {
8080
- E === C.current ? (C.current = null, l("")) : E.endsWith(",") ? f(E.slice(0, -1)) : l(E);
8091
+ E === C.current ? (C.current = null, l("")) : E.endsWith(",") ? w(E.slice(0, -1)) : l(E);
8081
8092
  },
8082
8093
  onChange: (E) => {
8083
- E && (C.current = E.label, f(E.label));
8094
+ E && (C.current = E.label, w(E.label));
8084
8095
  }
8085
8096
  }
8086
8097
  )
@@ -8213,12 +8224,12 @@ const Le = {
8213
8224
  containerClassName: a,
8214
8225
  disabled: i,
8215
8226
  ...d
8216
- }) => /* @__PURE__ */ n("div", { className: w("flex flex-col gap-1", a), children: /* @__PURE__ */ n(
8227
+ }) => /* @__PURE__ */ n("div", { className: f("flex flex-col gap-1", a), children: /* @__PURE__ */ n(
8217
8228
  ao,
8218
8229
  {
8219
8230
  rows: l,
8220
8231
  disabled: i,
8221
- className: w(
8232
+ className: f(
8222
8233
  "w-full",
8223
8234
  "appearance-none",
8224
8235
  "transition-colors",
@@ -8264,9 +8275,9 @@ const ha = ({
8264
8275
  {
8265
8276
  target: e ? "_blank" : void 0,
8266
8277
  rel: e ? "noopener noreferrer" : void 0,
8267
- className: w(
8278
+ className: f(
8268
8279
  "underline-offset-2",
8269
- r ? w(L(p.Accent), "hover:underline") : "text-inherit underline",
8280
+ r ? f(L(p.Accent), "hover:underline") : "text-inherit underline",
8270
8281
  o ? "block min-w-0 truncate" : "[overflow-wrap:anywhere]",
8271
8282
  l
8272
8283
  ),
@@ -8284,9 +8295,9 @@ const ma = {
8284
8295
  }, ga = {
8285
8296
  // Filled surfaces take white, as Button does: Figma has no on-fill text
8286
8297
  // token and the old action-*-text slots were never Figma variables.
8287
- [h1.Success]: w(D(v1.ApprovedBg), "text-white"),
8288
- [h1.Danger]: w(D(v1.FailedBg), "text-white")
8289
- }, va = w(
8298
+ [h1.Success]: f(D(v1.ApprovedBg), "text-white"),
8299
+ [h1.Danger]: f(D(v1.FailedBg), "text-white")
8300
+ }, va = f(
8290
8301
  "[&_:is(a,button)]:text-current [&_:is(a,button)_*]:text-current",
8291
8302
  "[&_:is(a,button)]:bg-transparent [&_:is(a,button)]:border-transparent",
8292
8303
  "[&_:is(a,button):hover]:bg-white/15"
@@ -8305,10 +8316,10 @@ const ma = {
8305
8316
  open: v,
8306
8317
  title: C,
8307
8318
  solid: x,
8308
- variant: f = h1.Primary,
8319
+ variant: w = h1.Primary,
8309
8320
  ...S
8310
8321
  }) => {
8311
- const E = x ? ga[f] : void 0, M = Ve(Or), [z, F] = r1(!1), [T, O] = r1(!1), N = z || T, W = c1(i);
8322
+ const E = x ? ga[w] : void 0, M = Ve(Or), [z, F] = r1(!1), [T, O] = r1(!1), N = z || T, W = c1(i);
8312
8323
  W.current = i, f1(() => {
8313
8324
  if (!v || !s || N) return;
8314
8325
  const P = window.setTimeout(() => W.current?.(), s);
@@ -8328,7 +8339,7 @@ const ma = {
8328
8339
  align: I1.Center,
8329
8340
  justify: $1.Between,
8330
8341
  spacing: g1.Lg,
8331
- className: w(
8342
+ className: f(
8332
8343
  // Figma RichToast: 16px padding, radius 8, bg/card with a border/default
8333
8344
  // edge. BoldToast (solid): 8/12 padding, radius 4, no edge.
8334
8345
  E ? "px-3 py-2" : "p-4",
@@ -8337,7 +8348,7 @@ const ma = {
8337
8348
  // (1rem) and clamp the toast to a thin sliver. 28rem (~448px) is the intended cap.
8338
8349
  "w-[90vw] max-w-[28rem]",
8339
8350
  t1(E ? Q.Sm : Q.Lg),
8340
- E ?? w(
8351
+ E ?? f(
8341
8352
  D(B.Card),
8342
8353
  "border",
8343
8354
  n1(K.Default)
@@ -8358,7 +8369,7 @@ const ma = {
8358
8369
  {
8359
8370
  content: a,
8360
8371
  size: E ? 18 : 20,
8361
- className: I("shrink-0", !E && ma[f])
8372
+ className: I("shrink-0", !E && ma[w])
8362
8373
  }
8363
8374
  ),
8364
8375
  C && /* @__PURE__ */ n(
@@ -8385,7 +8396,7 @@ const ma = {
8385
8396
  {
8386
8397
  align: I1.Center,
8387
8398
  spacing: g1.Sm,
8388
- className: w("shrink-0", E && va),
8399
+ className: f("shrink-0", E && va),
8389
8400
  children: [
8390
8401
  e,
8391
8402
  i && /* @__PURE__ */ n(
@@ -8438,7 +8449,7 @@ const ma = {
8438
8449
  }) => /* @__PURE__ */ y(
8439
8450
  Te,
8440
8451
  {
8441
- className: w("flex gap-2", d ? "items-start" : "items-center"),
8452
+ className: f("flex gap-2", d ? "items-start" : "items-center"),
8442
8453
  children: [
8443
8454
  /* @__PURE__ */ n(
8444
8455
  io,
@@ -8446,7 +8457,7 @@ const ma = {
8446
8457
  checked: e,
8447
8458
  onChange: o,
8448
8459
  disabled: r,
8449
- className: w(
8460
+ className: f(
8450
8461
  "group",
8451
8462
  "peer",
8452
8463
  "relative",
@@ -8481,7 +8492,7 @@ const ma = {
8481
8492
  children: /* @__PURE__ */ n(
8482
8493
  "span",
8483
8494
  {
8484
- className: w(
8495
+ className: f(
8485
8496
  "pointer-events-none",
8486
8497
  // center the thumb vertically
8487
8498
  "absolute",
@@ -8510,7 +8521,7 @@ const ma = {
8510
8521
  label: i && /* @__PURE__ */ n(
8511
8522
  ct,
8512
8523
  {
8513
- className: w(
8524
+ className: f(
8514
8525
  L(p.Secondary),
8515
8526
  "peer-data-disabled:text-content-text-tertiary",
8516
8527
  pa[l],
@@ -8577,7 +8588,7 @@ const F1 = {
8577
8588
  }, ba = (e, r, o) => e === F1.Soft || e === F1.Borderless ? "" : r && o ? "rounded-sm" : r ? "rounded-l-sm" : o ? "rounded-r-sm" : "", Ma = (e, r) => {
8578
8589
  const o = [Sa[e], xa[r]];
8579
8590
  return e !== F1.Soft ? o.push(Ea[r]) : o.push(ya[r]), I(...o);
8580
- }, La = (e) => e === F1.Borderless ? [] : e === F1.Soft ? ["p-1 gap-0.5", D(B.CardNested)] : ["border", n1(K.Default)], ka = (e) => e ? L(p.Primary, Z.Selected) : w(
8591
+ }, La = (e) => e === F1.Borderless ? [] : e === F1.Soft ? ["p-1 gap-0.5", D(B.CardNested)] : ["border", n1(K.Default)], ka = (e) => e ? L(p.Primary, Z.Selected) : f(
8581
8592
  // TODO - this is a hack. But it might be the least bad option.
8582
8593
  // override global FO css that targets <button>; secondary only when not hovered
8583
8594
  "!text-content-text-secondary hover:!text-content-text-primary"
@@ -8603,7 +8614,7 @@ const F1 = {
8603
8614
  /* @__PURE__ */ n(
8604
8615
  mo,
8605
8616
  {
8606
- className: w(
8617
+ className: f(
8607
8618
  "toggle-switch-tab-list",
8608
8619
  "flex flex-nowrap items-center",
8609
8620
  "rounded-sm",
@@ -8612,7 +8623,7 @@ const F1 = {
8612
8623
  d
8613
8624
  ),
8614
8625
  children: e.map(({ id: g, data: v }, C) => {
8615
- const x = C === 0, f = C === e.length - 1, S = ({ selected: M }) => w(
8626
+ const x = C === 0, w = C === e.length - 1, S = ({ selected: M }) => f(
8616
8627
  "cursor-pointer",
8617
8628
  "flex-1",
8618
8629
  "flex items-center justify-center",
@@ -8631,7 +8642,7 @@ const F1 = {
8631
8642
  "data-[focus]:outline-none",
8632
8643
  "data-[disabled]:opacity-50",
8633
8644
  "data-[disabled]:cursor-not-allowed",
8634
- ba(r, x, f),
8645
+ ba(r, x, w),
8635
8646
  Ma(r, a)
8636
8647
  ), E = /* @__PURE__ */ n(go, { disabled: v.disabled, className: S, children: v.label });
8637
8648
  return v.tooltip ? /* @__PURE__ */ n(
@@ -8647,7 +8658,7 @@ const F1 = {
8647
8658
  })
8648
8659
  }
8649
8660
  ),
8650
- /* @__PURE__ */ n(vo, { className: w(h), children: e.map(({ id: g, data: v }) => /* @__PURE__ */ n(uo, { className: w("focus:outline-none"), children: v.content }, g)) })
8661
+ /* @__PURE__ */ n(vo, { className: f(h), children: e.map(({ id: g, data: v }) => /* @__PURE__ */ n(uo, { className: f("focus:outline-none"), children: v.content }, g)) })
8651
8662
  ]
8652
8663
  }
8653
8664
  );
@@ -8667,7 +8678,7 @@ const y2 = (e, r, o, l) => e ? r : Math.max(0, Math.min(l, r + o)), Ba = ({
8667
8678
  }), x = c1({
8668
8679
  x: e,
8669
8680
  y: r
8670
- }), f = j(
8681
+ }), w = j(
8671
8682
  (E) => {
8672
8683
  if (!i) return;
8673
8684
  E.preventDefault(), E.stopPropagation(), g(!0);
@@ -8708,7 +8719,7 @@ const y2 = (e, r, o, l) => e ? r : Math.max(0, Math.min(l, r + o)), Ba = ({
8708
8719
  return document.addEventListener("mousemove", S), document.addEventListener("mouseup", E), () => {
8709
8720
  document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", E);
8710
8721
  };
8711
- }, [m, S]), { position: d, isDragging: m, containerRef: v, handleDragStart: f };
8722
+ }, [m, S]), { position: d, isDragging: m, containerRef: v, handleDragStart: w };
8712
8723
  }, B5 = Je(
8713
8724
  w1.Column
8714
8725
  ), za = () => Ve(B5), Ia = 20, Na = 20, Va = ({
@@ -8726,7 +8737,7 @@ const y2 = (e, r, o, l) => e ? r : Math.max(0, Math.min(l, r + o)), Ba = ({
8726
8737
  onClick: v,
8727
8738
  onKeyDown: C,
8728
8739
  onPositionChange: x,
8729
- ...f
8740
+ ...w
8730
8741
  }) => {
8731
8742
  const S = !(o && l), { position: E, isDragging: M, containerRef: z, handleDragStart: F } = Ba({
8732
8743
  initialX: s,
@@ -8748,7 +8759,7 @@ const y2 = (e, r, o, l) => e ? r : Math.max(0, Math.min(l, r + o)), Ba = ({
8748
8759
  });
8749
8760
  }, [z, r]);
8750
8761
  if (!m) return null;
8751
- const V = w(
8762
+ const V = f(
8752
8763
  "flex items-center justify-center",
8753
8764
  "cursor-grab group-data-dragging:cursor-grabbing",
8754
8765
  L(G.Emphasis),
@@ -8756,7 +8767,7 @@ const y2 = (e, r, o, l) => e ? r : Math.max(0, Math.min(l, r + o)), Ba = ({
8756
8767
  r === w1.Column ? "self-stretch py-2 px-1 [&_svg]:rotate-90" : "self-stretch px-2 py-1.5",
8757
8768
  !T && r === w1.Column && "pb-0",
8758
8769
  !T && r === w1.Row && "pr-0"
8759
- ), _ = w(
8770
+ ), _ = f(
8760
8771
  "group absolute flex select-none",
8761
8772
  r === w1.Column ? "flex-col" : "flex-row",
8762
8773
  N1(i),
@@ -8793,7 +8804,7 @@ const y2 = (e, r, o, l) => e ? r : Math.max(0, Math.min(l, r + o)), Ba = ({
8793
8804
  onKeyDown: (P) => {
8794
8805
  P.stopPropagation(), C?.(P);
8795
8806
  },
8796
- ...f,
8807
+ ...w,
8797
8808
  children: [
8798
8809
  S && /* @__PURE__ */ n(
8799
8810
  "div",
@@ -8825,7 +8836,7 @@ const y2 = (e, r, o, l) => e ? r : Math.max(0, Math.min(l, r + o)), Ba = ({
8825
8836
  ) });
8826
8837
  };
8827
8838
  Va.displayName = "Toolbar";
8828
- const Da = (e, r) => w(
8839
+ const Da = (e, r) => f(
8829
8840
  "size-10 flex items-center justify-center transition-all",
8830
8841
  t1(Q.Md),
8831
8842
  e && D(A.SecondaryHover, Z.Hover),
@@ -8836,7 +8847,7 @@ const Da = (e, r) => w(
8836
8847
  `data-[focus]:ring-[${H1(K.Focus)}]`,
8837
8848
  "data-[focus]:ring-offset-1",
8838
8849
  r
8839
- ), Pa = (e, r) => w(
8850
+ ), Pa = (e, r) => f(
8840
8851
  "size-full flex items-center justify-center",
8841
8852
  L(e ? G.Decorative : G.Default),
8842
8853
  r && L(G.Emphasis, Z.Hover)
@@ -8878,7 +8889,7 @@ const Aa = ({
8878
8889
  return /* @__PURE__ */ y(
8879
8890
  "div",
8880
8891
  {
8881
- className: w(
8892
+ className: f(
8882
8893
  `group/toolbar-group flex gap-${g1.Xs}`,
8883
8894
  l === w1.Column ? "w-full flex-col" : "h-full flex-row"
8884
8895
  ),
@@ -8890,7 +8901,7 @@ const Aa = ({
8890
8901
  orientation: l,
8891
8902
  align: I1.Center,
8892
8903
  spacing: g1.Xs,
8893
- className: w(
8904
+ className: f(
8894
8905
  l !== w1.Column && "self-stretch",
8895
8906
  r
8896
8907
  ),
@@ -8902,7 +8913,7 @@ const Aa = ({
8902
8913
  "div",
8903
8914
  {
8904
8915
  role: "separator",
8905
- className: w(
8916
+ className: f(
8906
8917
  l === w1.Column ? "w-full my-0.5 border-t-1" : "h-full mx-0.5 border-l-1",
8907
8918
  n1(K.Strong),
8908
8919
  "group-last/toolbar-group:hidden"
@@ -8938,8 +8949,8 @@ function Ra(e, r = !1) {
8938
8949
  }
8939
8950
  function Fa(e, r = {}, o) {
8940
8951
  function l(s, a, i, d, h) {
8941
- const m = a ? `${a}${gt}${bt(s.name)}` : bt(s.name), g = I5(s), v = o?.get(m), x = Array.isArray(s.values) && s.values.length === 0 && !v?.length, f = g ? [] : s.values?.length ? s.values : v ?? [], S = f.map(
8942
- (E, M) => l(E, m, i + 1, M, f.length)
8952
+ const m = a ? `${a}${gt}${bt(s.name)}` : bt(s.name), g = I5(s), v = o?.get(m), x = Array.isArray(s.values) && s.values.length === 0 && !v?.length, w = g ? [] : s.values?.length ? s.values : v ?? [], S = w.map(
8953
+ (E, M) => l(E, m, i + 1, M, w.length)
8943
8954
  );
8944
8955
  return {
8945
8956
  node: s,
@@ -8968,8 +8979,8 @@ function Wa(e, r, o = Za) {
8968
8979
  function d(v) {
8969
8980
  const C = Xt(v);
8970
8981
  for (let x = 0; x < C.length - 1; x++) {
8971
- const f = z5(C.slice(0, x + 1));
8972
- a.add(f), i.add(f);
8982
+ const w = z5(C.slice(0, x + 1));
8983
+ a.add(w), i.add(w);
8973
8984
  }
8974
8985
  }
8975
8986
  for (const v of l)
@@ -8982,8 +8993,8 @@ function Wa(e, r, o = Za) {
8982
8993
  function m(v, C) {
8983
8994
  if (v.path === C) return v;
8984
8995
  for (const x of v.children) {
8985
- const f = m(x, C);
8986
- if (f) return f;
8996
+ const w = m(x, C);
8997
+ if (w) return w;
8987
8998
  }
8988
8999
  }
8989
9000
  for (const v of l) {
@@ -8991,7 +9002,7 @@ function Wa(e, r, o = Za) {
8991
9002
  C && h(C);
8992
9003
  }
8993
9004
  function g(v) {
8994
- const C = v.children.filter((x) => a.has(x.path)).map((x, f, S) => ({ ...g(x), posinset: f + 1, setsize: S.length }));
9005
+ const C = v.children.filter((x) => a.has(x.path)).map((x, w, S) => ({ ...g(x), posinset: w + 1, setsize: S.length }));
8995
9006
  return { ...v, children: C };
8996
9007
  }
8997
9008
  return { tree: g(e), forceOpenPaths: i };
@@ -9063,9 +9074,9 @@ const N5 = ({
9063
9074
  onRetryLoad: s,
9064
9075
  renderLabel: a
9065
9076
  }) => {
9066
- const { node: i, path: d, depth: h } = e, m = !e.isLeaf, g = r.isSelected(e), v = r.isActive(d), C = r.isOpen(d), x = r.getLoadState(d), f = !!l && m && !g && r.hasSelectedDescendant(e), S = r.getItemProps(e), E = i.deprecated ? p.Muted : p.Primary, M = {
9077
+ const { node: i, path: d, depth: h } = e, m = !e.isLeaf, g = r.isSelected(e), v = r.isActive(d), C = r.isOpen(d), x = r.getLoadState(d), w = !!l && m && !g && r.hasSelectedDescendant(e), S = r.getItemProps(e), E = i.deprecated ? p.Muted : p.Primary, M = {
9067
9078
  paddingLeft: `calc(${h - 1} * ${Ua} + var(--spacing-xs))`
9068
- }, z = w(
9079
+ }, z = f(
9069
9080
  "flex-nowrap",
9070
9081
  "py-1",
9071
9082
  t1(Q.Sm),
@@ -9081,7 +9092,7 @@ const N5 = ({
9081
9092
  tabIndex: -1,
9082
9093
  ...V ?? {},
9083
9094
  onClick: _ ?? V?.onClick,
9084
- className: w(
9095
+ className: f(
9085
9096
  "group",
9086
9097
  "cursor-pointer",
9087
9098
  "shrink-0 flex items-center justify-center size-5 rounded-full",
@@ -9091,7 +9102,7 @@ const N5 = ({
9091
9102
  W,
9092
9103
  {
9093
9104
  size: u.Sm,
9094
- className: w(
9105
+ className: f(
9095
9106
  "text-content-text-secondary",
9096
9107
  !k && "group-hover:text-content-text-primary",
9097
9108
  k
@@ -9127,11 +9138,11 @@ const N5 = ({
9127
9138
  /* @__PURE__ */ y(E1, { orientation: w1.Column, className: "min-w-0 flex-1", children: [
9128
9139
  /* @__PURE__ */ y(E1, { align: I1.Center, spacing: g1.Xs, children: [
9129
9140
  T,
9130
- l && (e.selectable || f) && /* @__PURE__ */ n("div", { className: "pr-1", children: /* @__PURE__ */ n(
9141
+ l && (e.selectable || w) && /* @__PURE__ */ n("div", { className: "pr-1", children: /* @__PURE__ */ n(
9131
9142
  Rt,
9132
9143
  {
9133
9144
  checked: g,
9134
- indeterminate: f,
9145
+ indeterminate: w,
9135
9146
  size: u.Sm,
9136
9147
  radius: Q.Xs,
9137
9148
  className: "pointer-events-none"
@@ -9155,7 +9166,7 @@ const N5 = ({
9155
9166
  !l && /* @__PURE__ */ n(
9156
9167
  "span",
9157
9168
  {
9158
- className: w(
9169
+ className: f(
9159
9170
  "size-5 shrink-0 flex items-center",
9160
9171
  L(M1.Primary)
9161
9172
  ),
@@ -9183,7 +9194,7 @@ const V5 = ({
9183
9194
  onKeyDown: o,
9184
9195
  inputRef: l,
9185
9196
  activeDescendantId: s
9186
- }) => /* @__PURE__ */ n("div", { className: w("shrink-0 p-1.5", D(B.Card)), children: /* @__PURE__ */ y(E1, { align: I1.Center, className: "relative", children: [
9197
+ }) => /* @__PURE__ */ n("div", { className: f("shrink-0 p-1.5", D(B.Card)), children: /* @__PURE__ */ y(E1, { align: I1.Center, className: "relative", children: [
9187
9198
  /* @__PURE__ */ n("span", { className: "pointer-events-none absolute left-2.5 flex items-center", children: /* @__PURE__ */ n(
9188
9199
  Lc,
9189
9200
  {
@@ -9203,7 +9214,7 @@ const V5 = ({
9203
9214
  "aria-label": "Search tree",
9204
9215
  "aria-activedescendant": s,
9205
9216
  placeholder: "Search...",
9206
- className: w(Ie({ disabled: !1 }), "w-full px-8")
9217
+ className: f(Ie({ disabled: !1 }), "w-full px-8")
9207
9218
  }
9208
9219
  ),
9209
9220
  e && /* @__PURE__ */ n(
@@ -9214,7 +9225,7 @@ const V5 = ({
9214
9225
  onClick: () => {
9215
9226
  r(""), l && typeof l == "object" && l.current?.focus();
9216
9227
  },
9217
- className: w(
9228
+ className: f(
9218
9229
  "group",
9219
9230
  "absolute right-1 flex items-center justify-center",
9220
9231
  "p-[5px]",
@@ -9227,7 +9238,7 @@ const V5 = ({
9227
9238
  se,
9228
9239
  {
9229
9240
  size: u.Sm,
9230
- className: w(
9241
+ className: f(
9231
9242
  L(p.Secondary),
9232
9243
  "group-hover:text-content-text-primary",
9233
9244
  "transition-colors duration-150"
@@ -9264,14 +9275,14 @@ const Ka = 36, Ga = 8, Kt = ({
9264
9275
  const M = e.visibleNodes.findIndex((z) => z.path === e.activePath);
9265
9276
  M >= 0 && x.scrollToIndex(M, { align: "auto" });
9266
9277
  }, [e.activePath, e.visibleNodes, x]);
9267
- const f = l && !s, S = c1(null), E = j(() => {
9278
+ const w = l && !s, S = c1(null), E = j(() => {
9268
9279
  !m && !S.current?.contains(document.activeElement) || (h ? d.current?.focus({ preventScroll: !0 }) : S.current?.focus({ preventScroll: !0 }));
9269
9280
  }, [m, h, d]);
9270
9281
  return /* @__PURE__ */ y(
9271
9282
  "div",
9272
9283
  {
9273
9284
  ref: S,
9274
- className: w("flex flex-col overflow-hidden outline-none", v),
9285
+ className: f("flex flex-col overflow-hidden outline-none", v),
9275
9286
  onMouseEnter: E,
9276
9287
  ...!h && {
9277
9288
  tabIndex: 0,
@@ -9289,7 +9300,7 @@ const Ka = 36, Ga = 8, Kt = ({
9289
9300
  activeDescendantId: e.activeDescendantId
9290
9301
  }
9291
9302
  ),
9292
- /* @__PURE__ */ n("div", { ref: C, className: "flex-1 min-h-0 overflow-auto", children: /* @__PURE__ */ n("div", { className: w("p-1.5", h && "pt-0"), children: f ? /* @__PURE__ */ n(E1, { justify: $1.Center, children: /* @__PURE__ */ n(
9303
+ /* @__PURE__ */ n("div", { ref: C, className: "flex-1 min-h-0 overflow-auto", children: /* @__PURE__ */ n("div", { className: f("p-1.5", h && "pt-0"), children: w ? /* @__PURE__ */ n(E1, { justify: $1.Center, children: /* @__PURE__ */ n(
9293
9304
  e1,
9294
9305
  {
9295
9306
  variant: b.Sm,
@@ -9373,7 +9384,7 @@ const D5 = ({
9373
9384
  role: "tree",
9374
9385
  "aria-label": "Tree selection",
9375
9386
  style: { ...r, maxHeight: x ?? "18rem" },
9376
- className: w(
9387
+ className: f(
9377
9388
  "flex flex-col overflow-hidden",
9378
9389
  "border",
9379
9390
  n1(K.Default),
@@ -9408,7 +9419,7 @@ function E2({
9408
9419
  return /* @__PURE__ */ n(
9409
9420
  "span",
9410
9421
  {
9411
- className: w(
9422
+ className: f(
9412
9423
  "pointer-events-none absolute right-2.5 flex items-center",
9413
9424
  "transition-transform duration-150",
9414
9425
  e ? "-rotate-90" : "rotate-90",
@@ -9434,7 +9445,7 @@ function S2({
9434
9445
  type: "button",
9435
9446
  "aria-label": "Clear selection",
9436
9447
  onClick: e,
9437
- className: w(
9448
+ className: f(
9438
9449
  "group",
9439
9450
  "absolute right-7 flex items-center justify-center",
9440
9451
  "p-[5px]",
@@ -9447,7 +9458,7 @@ function S2({
9447
9458
  se,
9448
9459
  {
9449
9460
  size: u.Sm,
9450
- className: w(
9461
+ className: f(
9451
9462
  L(p.Secondary),
9452
9463
  "group-hover:text-content-text-primary",
9453
9464
  "transition-colors duration-150"
@@ -9470,8 +9481,8 @@ const P5 = ({
9470
9481
  onClear: m,
9471
9482
  onRemoveOne: g
9472
9483
  }) => {
9473
- const [v, C] = r1(!1), x = (f) => {
9474
- f.stopPropagation(), m();
9484
+ const [v, C] = r1(!1), x = (w) => {
9485
+ w.stopPropagation(), m();
9475
9486
  };
9476
9487
  return e ? /* @__PURE__ */ y(
9477
9488
  "div",
@@ -9484,12 +9495,12 @@ const P5 = ({
9484
9495
  onClick: () => {
9485
9496
  o || h();
9486
9497
  },
9487
- onKeyDown: (f) => {
9488
- o || (f.key === "Enter" || f.key === " ") && (f.preventDefault(), h());
9498
+ onKeyDown: (w) => {
9499
+ o || (w.key === "Enter" || w.key === " ") && (w.preventDefault(), h());
9489
9500
  },
9490
9501
  onMouseEnter: () => C(!0),
9491
9502
  onMouseLeave: () => C(!1),
9492
- className: w(
9503
+ className: f(
9493
9504
  Ie({ disabled: o }),
9494
9505
  "relative flex flex-wrap items-center gap-1",
9495
9506
  "h-auto min-h-[2.25rem]",
@@ -9497,16 +9508,16 @@ const P5 = ({
9497
9508
  i ? "pr-14" : "pr-8"
9498
9509
  ),
9499
9510
  children: [
9500
- (r ?? []).map((f) => /* @__PURE__ */ n(
9511
+ (r ?? []).map((w) => /* @__PURE__ */ n(
9501
9512
  y5,
9502
9513
  {
9503
9514
  size: u.Xs,
9504
- onRemove: o ? void 0 : () => g(f),
9515
+ onRemove: o ? void 0 : () => g(w),
9505
9516
  backgroundColor: B.CardElevated,
9506
9517
  className: "py-0",
9507
- children: d(f)
9518
+ children: d(w)
9508
9519
  },
9509
- f
9520
+ w
9510
9521
  )),
9511
9522
  !i && l && /* @__PURE__ */ n("span", { className: L(p.Tertiary), children: l }),
9512
9523
  /* @__PURE__ */ n(E2, { isOpen: s, disabled: o }),
@@ -9534,7 +9545,7 @@ const P5 = ({
9534
9545
  value: d(r ?? null),
9535
9546
  onClick: h,
9536
9547
  placeholder: l,
9537
- className: w(
9548
+ className: f(
9538
9549
  Ie({ disabled: o }),
9539
9550
  "w-full cursor-pointer",
9540
9551
  i ? "pr-14" : "pr-8"
@@ -9563,8 +9574,8 @@ function Ya(e) {
9563
9574
  onExpand: h,
9564
9575
  loadState: m,
9565
9576
  defaultExpanded: g
9566
- } = e, v = et(), C = s ?? v, x = B1(() => g instanceof Set ? g : g === !0 ? $a(r) : /* @__PURE__ */ new Set(), [g, r]), f = c1(x);
9567
- f.current = x;
9577
+ } = e, v = et(), C = s ?? v, x = B1(() => g instanceof Set ? g : g === !0 ? $a(r) : /* @__PURE__ */ new Set(), [g, r]), w = c1(x);
9578
+ w.current = x;
9568
9579
  const [S, E] = r1(
9569
9580
  () => new Set(x)
9570
9581
  ), M = c1(S);
@@ -9601,7 +9612,7 @@ function Ya(e) {
9601
9612
  return $.delete(R), $;
9602
9613
  });
9603
9614
  }, []), _ = j(() => {
9604
- E(new Set(f.current));
9615
+ E(new Set(w.current));
9605
9616
  }, []);
9606
9617
  f1(() => {
9607
9618
  if (!a || !z) return;
@@ -9750,7 +9761,7 @@ function T5(e) {
9750
9761
  query: v,
9751
9762
  onQueryChange: C,
9752
9763
  scrollActiveIntoView: x = !1,
9753
- clearQueryOnSelect: f = !1
9764
+ clearQueryOnSelect: w = !1
9754
9765
  } = e, S = v !== void 0, [E, M] = r1(""), [z, F] = r1(""), T = c1(null), O = S ? v : E, N = j(
9755
9766
  ($) => {
9756
9767
  S ? C?.($) : M($);
@@ -9791,7 +9802,7 @@ function T5(e) {
9791
9802
  const Y = h, x1 = q ? [...q] : [], R1 = x1.includes($) ? x1.filter((Fe) => Fe !== $) : [...x1, $];
9792
9803
  Y?.(R1.map(oe));
9793
9804
  } else
9794
- f && N(""), h?.(oe($));
9805
+ w && N(""), h?.(oe($));
9795
9806
  g?.($);
9796
9807
  },
9797
9808
  [
@@ -9800,7 +9811,7 @@ function T5(e) {
9800
9811
  h,
9801
9812
  g,
9802
9813
  N,
9803
- f
9814
+ w
9804
9815
  ]
9805
9816
  ), s1 = j(() => {
9806
9817
  N(""), h?.(o ? [] : null);
@@ -9880,7 +9891,7 @@ const Ja = {
9880
9891
  displayValue: v,
9881
9892
  defaultExpanded: C,
9882
9893
  loadChildren: x,
9883
- matchesQuery: f,
9894
+ matchesQuery: w,
9884
9895
  className: S,
9885
9896
  ...E
9886
9897
  }) => {
@@ -9896,7 +9907,7 @@ const Ja = {
9896
9907
  leavesOnly: s,
9897
9908
  defaultExpanded: C,
9898
9909
  loadChildren: x,
9899
- matchesQuery: f,
9910
+ matchesQuery: w,
9900
9911
  onEscape: F,
9901
9912
  onAfterSelect: T,
9902
9913
  scrollActiveIntoView: !1,
@@ -9958,7 +9969,7 @@ const Ja = {
9958
9969
  },
9959
9970
  [l, P, o]
9960
9971
  ), s1 = O.tree.rowId("panel");
9961
- return /* @__PURE__ */ y("div", { ref: N.setReference, className: w(S, "w-full"), ...E, children: [
9972
+ return /* @__PURE__ */ y("div", { ref: N.setReference, className: f(S, "w-full"), ...E, children: [
9962
9973
  /* @__PURE__ */ n(
9963
9974
  P5,
9964
9975
  {
@@ -10011,7 +10022,7 @@ const ti = (e) => {
10011
10022
  maxHeight: g,
10012
10023
  className: v,
10013
10024
  ...C
10014
- } = e, x = e.selectable === !0, f = x && e.multiSelect === !0, S = j(
10025
+ } = e, x = e.selectable === !0, w = x && e.multiSelect === !0, S = j(
10015
10026
  (W) => {
10016
10027
  if (x) return;
10017
10028
  const k = e.onChange;
@@ -10022,7 +10033,7 @@ const ti = (e) => {
10022
10033
  root: r,
10023
10034
  value: x ? e.value : void 0,
10024
10035
  onChange: x ? e.onChange : void 0,
10025
- multiSelect: f,
10036
+ multiSelect: w,
10026
10037
  leavesOnly: x ? o ?? !1 : !0,
10027
10038
  defaultExpanded: l,
10028
10039
  loadChildren: s,
@@ -10044,7 +10055,7 @@ const ti = (e) => {
10044
10055
  role: "tree",
10045
10056
  "aria-label": "Tree view",
10046
10057
  style: { maxHeight: g ?? "100%" },
10047
- className: w(
10058
+ className: f(
10048
10059
  "flex flex-col overflow-hidden",
10049
10060
  D(B.Card),
10050
10061
  v
@@ -10058,7 +10069,7 @@ const ti = (e) => {
10058
10069
  onQueryChange: E.setQuery,
10059
10070
  debouncedQuery: E.debouncedQuery,
10060
10071
  filteredTree: E.filteredTree,
10061
- multiSelect: f,
10072
+ multiSelect: w,
10062
10073
  onRetryLoad: E.onRetryLoad,
10063
10074
  searchInputRef: E.searchInputRef,
10064
10075
  showSearch: M,
@@ -10493,16 +10504,16 @@ function Du(e, { end: r, activeKey: o, count: l } = {}) {
10493
10504
  left: e.getBoundingClientRect().left,
10494
10505
  right: (r ?? e).getBoundingClientRect()[r ? "left" : "right"]
10495
10506
  }), h = () => {
10496
- const g = i().find((f) => f.dataset.clipKey === o);
10507
+ const g = i().find((w) => w.dataset.clipKey === o);
10497
10508
  if (g) {
10498
- const { left: f, right: S } = d(), E = g.getBoundingClientRect();
10499
- E.right > S ? e.scrollLeft += E.right - S : E.left < f && (e.scrollLeft -= f - E.left);
10509
+ const { left: w, right: S } = d(), E = g.getBoundingClientRect();
10510
+ E.right > S ? e.scrollLeft += E.right - S : E.left < w && (e.scrollLeft -= w - E.left);
10500
10511
  }
10501
- const { left: v, right: C } = d(), x = i().filter((f) => {
10502
- const S = f.getBoundingClientRect();
10512
+ const { left: v, right: C } = d(), x = i().filter((w) => {
10513
+ const S = w.getBoundingClientRect();
10503
10514
  return S.left < v - 1 || S.right > C + 1;
10504
- }).map((f) => f.dataset.clipKey);
10505
- a((f) => f.join() === x.join() ? f : x);
10515
+ }).map((w) => w.dataset.clipKey);
10516
+ a((w) => w.join() === x.join() ? w : x);
10506
10517
  }, m = new ResizeObserver(h);
10507
10518
  return m.observe(e), r && m.observe(r), i().forEach((g) => m.observe(g)), h(), () => m.disconnect();
10508
10519
  }, [e, r, o, l]), s;
@@ -10528,8 +10539,8 @@ const ri = () => typeof CSS > "u" ? void 0 : CSS.highlights, oi = (e) => {
10528
10539
  for (let v = g.nextNode(); v; v = g.nextNode()) {
10529
10540
  const C = v.textContent?.toLowerCase() ?? "";
10530
10541
  for (let x = C.indexOf(i); x >= 0; x = C.indexOf(i, x + i.length)) {
10531
- const f = new Range();
10532
- f.setStart(v, x), f.setEnd(v, x + i.length), m.push(f);
10542
+ const w = new Range();
10543
+ w.setStart(v, x), w.setEnd(v, x + i.length), m.push(w);
10533
10544
  }
10534
10545
  }
10535
10546
  a.set(l, new Highlight(...m));
@@ -10551,12 +10562,12 @@ function Tu({
10551
10562
  const [r, o] = r1(null), [l, s] = r1(U1), [a, i] = r1(!1), d = c1(U1), h = c1({ width: 0, labels: [] });
10552
10563
  return ve(() => {
10553
10564
  if (!r || typeof ResizeObserver > "u") return;
10554
- const m = (f) => {
10565
+ const m = (w) => {
10555
10566
  const S = d.current;
10556
- S.compact === f.compact && S.labelMax === f.labelMax || (d.current = f, s(f));
10567
+ S.compact === w.compact && S.labelMax === w.labelMax || (d.current = w, s(w));
10557
10568
  }, g = () => {
10558
- const f = window.getComputedStyle(r);
10559
- if (f.flexWrap.startsWith("wrap")) {
10569
+ const w = window.getComputedStyle(r);
10570
+ if (w.flexWrap.startsWith("wrap")) {
10560
10571
  m(U1);
10561
10572
  return;
10562
10573
  }
@@ -10567,7 +10578,7 @@ function Tu({
10567
10578
  ...r.querySelectorAll(`[${Re}]`)
10568
10579
  ];
10569
10580
  h.current = {
10570
- width: M.reduce((F, T) => F + T.scrollWidth, 0) + (parseFloat(f.columnGap) || 0) * Math.max(M.length - 1, 0) + (parseFloat(f.paddingLeft) || 0) + (parseFloat(f.paddingRight) || 0) + // labels cut short count at their own width
10581
+ width: M.reduce((F, T) => F + T.scrollWidth, 0) + (parseFloat(w.columnGap) || 0) * Math.max(M.length - 1, 0) + (parseFloat(w.paddingLeft) || 0) + (parseFloat(w.paddingRight) || 0) + // labels cut short count at their own width
10571
10582
  z.reduce(
10572
10583
  (F, T) => F + T.scrollWidth - T.clientWidth,
10573
10584
  0
@@ -10586,7 +10597,7 @@ function Tu({
10586
10597
  );
10587
10598
  };
10588
10599
  g(), i(!0);
10589
- const v = new ResizeObserver(g), C = () => [...r.children].forEach((f) => v.observe(f));
10600
+ const v = new ResizeObserver(g), C = () => [...r.children].forEach((w) => v.observe(w));
10590
10601
  v.observe(r), C();
10591
10602
  const x = new MutationObserver(() => {
10592
10603
  C(), g();