@moises.ai/design-system 4.21.3 → 4.21.4

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
@@ -31,17 +31,17 @@ var Iu = [" ", "Enter", "ArrowUp", "ArrowDown"], Su = [" ", "Enter"], en = "Sele
31
31
  disabled: g,
32
32
  required: f,
33
33
  form: m
34
- } = n, C = jr(t), [k, y] = p.useState(null), [E, b] = p.useState(null), [R, N] = p.useState(!1), w = Io(u), [B, D] = Br({
34
+ } = n, C = jr(t), [k, y] = p.useState(null), [E, b] = p.useState(null), [R, w] = p.useState(!1), N = Io(u), [B, x] = Br({
35
35
  prop: a,
36
36
  defaultProp: o ?? !1,
37
37
  onChange: i,
38
38
  caller: en
39
- }), [M, T] = Br({
39
+ }), [M, D] = Br({
40
40
  prop: l,
41
41
  defaultProp: c,
42
42
  onChange: d,
43
43
  caller: en
44
- }), Q = p.useRef(null), x = k ? m || !!k.closest("form") : !0, [U, O] = p.useState(/* @__PURE__ */ new Set()), P = Array.from(U).map((G) => G.props.value).join(";");
44
+ }), Q = p.useRef(null), T = k ? m || !!k.closest("form") : !0, [U, O] = p.useState(/* @__PURE__ */ new Set()), P = Array.from(U).map((G) => G.props.value).join(";");
45
45
  return /* @__PURE__ */ s(vc, { ...C, children: /* @__PURE__ */ v(
46
46
  wu,
47
47
  {
@@ -52,13 +52,13 @@ var Iu = [" ", "Enter", "ArrowUp", "ArrowDown"], Su = [" ", "Enter"], en = "Sele
52
52
  valueNode: E,
53
53
  onValueNodeChange: b,
54
54
  valueNodeHasChildren: R,
55
- onValueNodeHasChildrenChange: N,
55
+ onValueNodeHasChildrenChange: w,
56
56
  contentId: Ys(),
57
57
  value: M,
58
- onValueChange: T,
58
+ onValueChange: D,
59
59
  open: B,
60
- onOpenChange: D,
61
- dir: w,
60
+ onOpenChange: x,
61
+ dir: N,
62
62
  triggerPointerDownPosRef: Q,
63
63
  disabled: g,
64
64
  children: [
@@ -78,7 +78,7 @@ var Iu = [" ", "Enter", "ArrowUp", "ArrowDown"], Su = [" ", "Enter"], en = "Sele
78
78
  children: r
79
79
  }
80
80
  ) }),
81
- x ? /* @__PURE__ */ v(
81
+ T ? /* @__PURE__ */ v(
82
82
  wi,
83
83
  {
84
84
  "aria-hidden": !0,
@@ -87,7 +87,7 @@ var Iu = [" ", "Enter", "ArrowUp", "ArrowDown"], Su = [" ", "Enter"], en = "Sele
87
87
  name: A,
88
88
  autoComplete: h,
89
89
  value: M,
90
- onChange: (G) => T(G.target.value),
90
+ onChange: (G) => D(G.target.value),
91
91
  disabled: g,
92
92
  form: m,
93
93
  children: [
@@ -210,22 +210,22 @@ var it = 10, [ui, Ot] = Nn(tn), Tu = "SelectContentImpl", Du = Bc("SelectContent
210
210
  avoidCollisions: k,
211
211
  //
212
212
  ...y
213
- } = n, E = Ut(tn, r), [b, R] = p.useState(null), [N, w] = p.useState(null), B = Le(t, (V) => R(V)), [D, M] = p.useState(null), [T, Q] = p.useState(
213
+ } = n, E = Ut(tn, r), [b, R] = p.useState(null), [w, N] = p.useState(null), B = Le(t, (V) => R(V)), [x, M] = p.useState(null), [D, Q] = p.useState(
214
214
  null
215
- ), x = Hr(r), [U, O] = p.useState(!1), P = p.useRef(!1);
215
+ ), T = Hr(r), [U, O] = p.useState(!1), P = p.useRef(!1);
216
216
  p.useEffect(() => {
217
217
  if (b) return Sc(b);
218
218
  }, [b]), Ec();
219
219
  const G = p.useCallback(
220
220
  (V) => {
221
- const [ne, ...fe] = x().map((L) => L.ref.current), [ce] = fe.slice(-1), z = document.activeElement;
221
+ const [ne, ...fe] = T().map((L) => L.ref.current), [ce] = fe.slice(-1), z = document.activeElement;
222
222
  for (const L of V)
223
- if (L === z || (L == null || L.scrollIntoView({ block: "nearest" }), L === ne && N && (N.scrollTop = 0), L === ce && N && (N.scrollTop = N.scrollHeight), L == null || L.focus(), document.activeElement !== z)) return;
223
+ if (L === z || (L == null || L.scrollIntoView({ block: "nearest" }), L === ne && w && (w.scrollTop = 0), L === ce && w && (w.scrollTop = w.scrollHeight), L == null || L.focus(), document.activeElement !== z)) return;
224
224
  },
225
- [x, N]
225
+ [T, w]
226
226
  ), ee = p.useCallback(
227
- () => G([D, b]),
228
- [G, D, b]
227
+ () => G([x, b]),
228
+ [G, x, b]
229
229
  );
230
230
  p.useEffect(() => {
231
231
  U && ee();
@@ -254,7 +254,7 @@ var it = 10, [ui, Ot] = Nn(tn), Tu = "SelectContentImpl", Du = Bc("SelectContent
254
254
  };
255
255
  }, [q]);
256
256
  const [Y, pe] = Ri((V) => {
257
- const ne = x().filter((z) => !z.disabled), fe = ne.find((z) => z.ref.current === document.activeElement), ce = Bi(ne, V, fe);
257
+ const ne = T().filter((z) => !z.disabled), fe = ne.find((z) => z.ref.current === document.activeElement), ce = Bi(ne, V, fe);
258
258
  ce && setTimeout(() => ce.ref.current.focus());
259
259
  }), ue = p.useCallback(
260
260
  (V, ne, fe) => {
@@ -285,14 +285,14 @@ var it = 10, [ui, Ot] = Nn(tn), Tu = "SelectContentImpl", Du = Bc("SelectContent
285
285
  {
286
286
  scope: r,
287
287
  content: b,
288
- viewport: N,
289
- onViewportChange: w,
288
+ viewport: w,
289
+ onViewportChange: N,
290
290
  itemRefCallback: ue,
291
- selectedItem: D,
291
+ selectedItem: x,
292
292
  onItemLeave: me,
293
293
  itemTextRefCallback: K,
294
294
  focusSelectedItem: ee,
295
- selectedItemText: T,
295
+ selectedItemText: D,
296
296
  position: a,
297
297
  isPositioned: U,
298
298
  searchRef: Y,
@@ -340,7 +340,7 @@ var it = 10, [ui, Ot] = Nn(tn), Tu = "SelectContentImpl", Du = Bc("SelectContent
340
340
  onKeyDown: Ee(y.onKeyDown, (V) => {
341
341
  const ne = V.ctrlKey || V.altKey || V.metaKey;
342
342
  if (V.key === "Tab" && V.preventDefault(), !ne && V.key.length === 1 && pe(V.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(V.key)) {
343
- let ce = x().filter((z) => !z.disabled).map((z) => z.ref.current);
343
+ let ce = T().filter((z) => !z.disabled).map((z) => z.ref.current);
344
344
  if (["ArrowUp", "End"].includes(V.key) && (ce = ce.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(V.key)) {
345
345
  const z = V.target, L = ce.indexOf(z);
346
346
  ce = ce.slice(L + 1);
@@ -362,9 +362,9 @@ hi.displayName = Tu;
362
362
  var Ju = "SelectItemAlignedPosition", Ai = p.forwardRef((n, t) => {
363
363
  const { __scopeSelect: r, onPlaced: a, ...o } = n, i = Ut(tn, r), l = Ot(tn, r), [c, d] = p.useState(null), [u, A] = p.useState(null), h = Le(t, (B) => A(B)), g = Hr(r), f = p.useRef(!1), m = p.useRef(!0), { viewport: C, selectedItem: k, selectedItemText: y, focusSelectedItem: E } = l, b = p.useCallback(() => {
364
364
  if (i.trigger && i.valueNode && c && u && C && k && y) {
365
- const B = i.trigger.getBoundingClientRect(), D = u.getBoundingClientRect(), M = i.valueNode.getBoundingClientRect(), T = y.getBoundingClientRect();
365
+ const B = i.trigger.getBoundingClientRect(), x = u.getBoundingClientRect(), M = i.valueNode.getBoundingClientRect(), D = y.getBoundingClientRect();
366
366
  if (i.dir !== "rtl") {
367
- const z = T.left - D.left, L = M.left - z, de = B.left - L, ve = B.width + de, Qe = Math.max(ve, D.width), le = window.innerWidth - it, Me = xr(L, [
367
+ const z = D.left - x.left, L = M.left - z, de = B.left - L, ve = B.width + de, Qe = Math.max(ve, x.width), le = window.innerWidth - it, Me = xr(L, [
368
368
  it,
369
369
  // Prevents the content from going off the starting edge of the
370
370
  // viewport. It may still go off the ending edge, but this can be
@@ -375,13 +375,13 @@ var Ju = "SelectItemAlignedPosition", Ai = p.forwardRef((n, t) => {
375
375
  ]);
376
376
  c.style.minWidth = ve + "px", c.style.left = Me + "px";
377
377
  } else {
378
- const z = D.right - T.right, L = window.innerWidth - M.right - z, de = window.innerWidth - B.right - L, ve = B.width + de, Qe = Math.max(ve, D.width), le = window.innerWidth - it, Me = xr(L, [
378
+ const z = x.right - D.right, L = window.innerWidth - M.right - z, de = window.innerWidth - B.right - L, ve = B.width + de, Qe = Math.max(ve, x.width), le = window.innerWidth - it, Me = xr(L, [
379
379
  it,
380
380
  Math.max(it, le - Qe)
381
381
  ]);
382
382
  c.style.minWidth = ve + "px", c.style.right = Me + "px";
383
383
  }
384
- const Q = g(), x = window.innerHeight - it * 2, U = C.scrollHeight, O = window.getComputedStyle(u), P = parseInt(O.borderTopWidth, 10), G = parseInt(O.paddingTop, 10), ee = parseInt(O.borderBottomWidth, 10), q = parseInt(O.paddingBottom, 10), W = P + G + U + q + ee, Y = Math.min(k.offsetHeight * 5, W), pe = window.getComputedStyle(C), ue = parseInt(pe.paddingTop, 10), me = parseInt(pe.paddingBottom, 10), K = B.top + B.height / 2 - it, $ = x - K, F = k.offsetHeight / 2, V = k.offsetTop + F, ne = P + G + V, fe = W - ne;
384
+ const Q = g(), T = window.innerHeight - it * 2, U = C.scrollHeight, O = window.getComputedStyle(u), P = parseInt(O.borderTopWidth, 10), G = parseInt(O.paddingTop, 10), ee = parseInt(O.borderBottomWidth, 10), q = parseInt(O.paddingBottom, 10), W = P + G + U + q + ee, Y = Math.min(k.offsetHeight * 5, W), pe = window.getComputedStyle(C), ue = parseInt(pe.paddingTop, 10), me = parseInt(pe.paddingBottom, 10), K = B.top + B.height / 2 - it, $ = T - K, F = k.offsetHeight / 2, V = k.offsetTop + F, ne = P + G + V, fe = W - ne;
385
385
  if (ne <= K) {
386
386
  const z = Q.length > 0 && k === Q[Q.length - 1].ref.current;
387
387
  c.style.bottom = "0px";
@@ -401,7 +401,7 @@ var Ju = "SelectItemAlignedPosition", Ai = p.forwardRef((n, t) => {
401
401
  ) + fe;
402
402
  c.style.height = de + "px", C.scrollTop = ne - K + C.offsetTop;
403
403
  }
404
- c.style.margin = `${it}px 0`, c.style.minHeight = Y + "px", c.style.maxHeight = x + "px", a == null || a(), requestAnimationFrame(() => f.current = !0);
404
+ c.style.margin = `${it}px 0`, c.style.minHeight = Y + "px", c.style.maxHeight = T + "px", a == null || a(), requestAnimationFrame(() => f.current = !0);
405
405
  }
406
406
  }, [
407
407
  g,
@@ -416,11 +416,11 @@ var Ju = "SelectItemAlignedPosition", Ai = p.forwardRef((n, t) => {
416
416
  a
417
417
  ]);
418
418
  Mt(() => b(), [b]);
419
- const [R, N] = p.useState();
419
+ const [R, w] = p.useState();
420
420
  Mt(() => {
421
- u && N(window.getComputedStyle(u).zIndex);
421
+ u && w(window.getComputedStyle(u).zIndex);
422
422
  }, [u]);
423
- const w = p.useCallback(
423
+ const N = p.useCallback(
424
424
  (B) => {
425
425
  B && m.current === !0 && (b(), E == null || E(), m.current = !1);
426
426
  },
@@ -432,7 +432,7 @@ var Ju = "SelectItemAlignedPosition", Ai = p.forwardRef((n, t) => {
432
432
  scope: r,
433
433
  contentWrapper: c,
434
434
  shouldExpandOnScrollRef: f,
435
- onScrollButtonChange: w,
435
+ onScrollButtonChange: N,
436
436
  children: /* @__PURE__ */ s(
437
437
  "div",
438
438
  {
@@ -842,29 +842,29 @@ var Ku = ri, Vu = ai, Gu = ii, qu = li, Yu = ci, Xu = di, Zu = pi, _u = mi, $u =
842
842
  inverted: f = !1,
843
843
  form: m,
844
844
  ...C
845
- } = n, k = p.useRef(/* @__PURE__ */ new Set()), y = p.useRef(0), b = l === "horizontal" ? ah : oh, [R = [], N] = Br({
845
+ } = n, k = p.useRef(/* @__PURE__ */ new Set()), y = p.useRef(0), b = l === "horizontal" ? ah : oh, [R = [], w] = Br({
846
846
  prop: A,
847
847
  defaultProp: u,
848
848
  onChange: (Q) => {
849
849
  var U;
850
850
  (U = [...k.current][y.current]) == null || U.focus(), h(Q);
851
851
  }
852
- }), w = p.useRef(R);
852
+ }), N = p.useRef(R);
853
853
  function B(Q) {
854
- const x = uh(R, Q);
855
- T(Q, x);
854
+ const T = uh(R, Q);
855
+ D(Q, T);
856
856
  }
857
- function D(Q) {
858
- T(Q, y.current);
857
+ function x(Q) {
858
+ D(Q, y.current);
859
859
  }
860
860
  function M() {
861
- const Q = w.current[y.current];
861
+ const Q = N.current[y.current];
862
862
  R[y.current] !== Q && g(R);
863
863
  }
864
- function T(Q, x, { commit: U } = { commit: !1 }) {
864
+ function D(Q, T, { commit: U } = { commit: !1 }) {
865
865
  const O = gh(i), P = mh(Math.round((Q - a) / i) * i + a, O), G = xr(P, [a, o]);
866
- N((ee = []) => {
867
- const q = ch(ee, G, x);
866
+ w((ee = []) => {
867
+ const q = ch(ee, G, T);
868
868
  if (ph(q, d * i)) {
869
869
  y.current = q.indexOf(G);
870
870
  const W = String(q) !== String(ee);
@@ -894,20 +894,20 @@ var Ku = ri, Vu = ai, Gu = ii, qu = li, Yu = ci, Xu = di, Zu = pi, _u = mi, $u =
894
894
  ...C,
895
895
  ref: t,
896
896
  onPointerDown: Ee(C.onPointerDown, () => {
897
- c || (w.current = R);
897
+ c || (N.current = R);
898
898
  }),
899
899
  min: a,
900
900
  max: o,
901
901
  inverted: f,
902
902
  onSlideStart: c ? void 0 : B,
903
- onSlideMove: c ? void 0 : D,
903
+ onSlideMove: c ? void 0 : x,
904
904
  onSlideEnd: c ? void 0 : M,
905
- onHomeKeyDown: () => !c && T(a, 0, { commit: !0 }),
906
- onEndKeyDown: () => !c && T(o, R.length - 1, { commit: !0 }),
907
- onStepKeyDown: ({ event: Q, direction: x }) => {
905
+ onHomeKeyDown: () => !c && D(a, 0, { commit: !0 }),
906
+ onEndKeyDown: () => !c && D(o, R.length - 1, { commit: !0 }),
907
+ onStepKeyDown: ({ event: Q, direction: T }) => {
908
908
  if (!c) {
909
- const P = Ji.includes(Q.key) || Q.shiftKey && Qi.includes(Q.key) ? 10 : 1, G = y.current, ee = R[G], q = i * P * x;
910
- T(ee + q, G, { commit: !0 });
909
+ const P = Ji.includes(Q.key) || Q.shiftKey && Qi.includes(Q.key) ? 10 : 1, G = y.current, ee = R[G], q = i * P * T;
910
+ D(ee + q, G, { commit: !0 });
911
911
  }
912
912
  }
913
913
  }
@@ -936,7 +936,7 @@ var [Oi, Pi] = Ui(Rn, {
936
936
  ...A
937
937
  } = n, [h, g] = p.useState(null), f = Le(t, (b) => g(b)), m = p.useRef(void 0), C = Io(o), k = C === "ltr", y = k && !i || !k && i;
938
938
  function E(b) {
939
- const R = m.current || h.getBoundingClientRect(), N = [0, R.width], B = ha(N, y ? [r, a] : [a, r]);
939
+ const R = m.current || h.getBoundingClientRect(), w = [0, R.width], B = ha(w, y ? [r, a] : [a, r]);
940
940
  return m.current = R, B(b - R.left);
941
941
  }
942
942
  return /* @__PURE__ */ s(
@@ -970,8 +970,8 @@ var [Oi, Pi] = Ui(Rn, {
970
970
  m.current = void 0, d == null || d();
971
971
  },
972
972
  onStepKeyDown: (b) => {
973
- const N = Mi[y ? "from-left" : "from-right"].includes(b.key);
974
- u == null || u({ event: b, direction: N ? -1 : 1 });
973
+ const w = Mi[y ? "from-left" : "from-right"].includes(b.key);
974
+ u == null || u({ event: b, direction: w ? -1 : 1 });
975
975
  }
976
976
  }
977
977
  )
@@ -1439,13 +1439,13 @@ const qi = p.forwardRef((n, t) => {
1439
1439
  p.useEffect(() => y(i), [i]);
1440
1440
  const [E, b] = p.useState(l);
1441
1441
  p.useEffect(() => b(l), [l]);
1442
- const [R, N] = p.useState(c);
1443
- return p.useEffect(() => N(c), [c]), p.createElement(pa, { ...u, ref: t, isRoot: !0, hasBackground: d, appearance: A, accentColor: g, grayColor: m, panelBackground: k, radius: E, scaling: R, onAppearanceChange: h, onAccentColorChange: f, onGrayColorChange: C, onPanelBackgroundChange: y, onRadiusChange: b, onScalingChange: N });
1442
+ const [R, w] = p.useState(c);
1443
+ return p.useEffect(() => w(c), [c]), p.createElement(pa, { ...u, ref: t, isRoot: !0, hasBackground: d, appearance: A, accentColor: g, grayColor: m, panelBackground: k, radius: E, scaling: R, onAppearanceChange: h, onAccentColorChange: f, onGrayColorChange: C, onPanelBackgroundChange: y, onRadiusChange: b, onScalingChange: w });
1444
1444
  });
1445
1445
  qi.displayName = "ThemeRoot";
1446
1446
  const pa = p.forwardRef((n, t) => {
1447
- const r = p.useContext(Dr), { asChild: a, isRoot: o, hasBackground: i, appearance: l = (r == null ? void 0 : r.appearance) ?? $e.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? $e.accentColor.default, grayColor: d = (r == null ? void 0 : r.resolvedGrayColor) ?? $e.grayColor.default, panelBackground: u = (r == null ? void 0 : r.panelBackground) ?? $e.panelBackground.default, radius: A = (r == null ? void 0 : r.radius) ?? $e.radius.default, scaling: h = (r == null ? void 0 : r.scaling) ?? $e.scaling.default, onAppearanceChange: g = dn, onAccentColorChange: f = dn, onGrayColorChange: m = dn, onPanelBackgroundChange: C = dn, onRadiusChange: k = dn, onScalingChange: y = dn, ...E } = n, b = a ? Je : "div", R = d === "auto" ? Th(c) : d, N = n.appearance === "light" || n.appearance === "dark", w = i === void 0 ? o || N : i;
1448
- return p.createElement(Dr.Provider, { value: p.useMemo(() => ({ appearance: l, accentColor: c, grayColor: d, resolvedGrayColor: R, panelBackground: u, radius: A, scaling: h, onAppearanceChange: g, onAccentColorChange: f, onGrayColorChange: m, onPanelBackgroundChange: C, onRadiusChange: k, onScalingChange: y }), [l, c, d, R, u, A, h, g, f, m, C, k, y]) }, p.createElement(b, { "data-is-root-theme": o ? "true" : "false", "data-accent-color": c, "data-gray-color": R, "data-has-background": w ? "true" : "false", "data-panel-background": u, "data-radius": A, "data-scaling": h, ref: t, ...E, className: S("radix-themes", { light: l === "light", dark: l === "dark" }, E.className) }));
1447
+ const r = p.useContext(Dr), { asChild: a, isRoot: o, hasBackground: i, appearance: l = (r == null ? void 0 : r.appearance) ?? $e.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? $e.accentColor.default, grayColor: d = (r == null ? void 0 : r.resolvedGrayColor) ?? $e.grayColor.default, panelBackground: u = (r == null ? void 0 : r.panelBackground) ?? $e.panelBackground.default, radius: A = (r == null ? void 0 : r.radius) ?? $e.radius.default, scaling: h = (r == null ? void 0 : r.scaling) ?? $e.scaling.default, onAppearanceChange: g = dn, onAccentColorChange: f = dn, onGrayColorChange: m = dn, onPanelBackgroundChange: C = dn, onRadiusChange: k = dn, onScalingChange: y = dn, ...E } = n, b = a ? Je : "div", R = d === "auto" ? Th(c) : d, w = n.appearance === "light" || n.appearance === "dark", N = i === void 0 ? o || w : i;
1448
+ return p.createElement(Dr.Provider, { value: p.useMemo(() => ({ appearance: l, accentColor: c, grayColor: d, resolvedGrayColor: R, panelBackground: u, radius: A, scaling: h, onAppearanceChange: g, onAccentColorChange: f, onGrayColorChange: m, onPanelBackgroundChange: C, onRadiusChange: k, onScalingChange: y }), [l, c, d, R, u, A, h, g, f, m, C, k, y]) }, p.createElement(b, { "data-is-root-theme": o ? "true" : "false", "data-accent-color": c, "data-gray-color": R, "data-has-background": N ? "true" : "false", "data-panel-background": u, "data-radius": A, "data-scaling": h, ref: t, ...E, className: S("radix-themes", { light: l === "light", dark: l === "dark" }, E.className) }));
1449
1449
  });
1450
1450
  pa.displayName = "ThemeImpl";
1451
1451
  const Ft = (n) => {
@@ -2346,22 +2346,22 @@ const Tm = "_Callout_1lwt5_1", Dm = "_size1_1lwt5_5", Jm = "_onlyButton_1lwt5_5"
2346
2346
  iconButtonProps: A,
2347
2347
  ...h
2348
2348
  }) => {
2349
- const g = !!u, f = !!A, m = g || f, C = qm(r), k = Ym(r), y = r === "3" ? "3" : "2", E = X(null), b = X(null), [R, N] = j("start");
2349
+ const g = !!u, f = !!A, m = g || f, C = qm(r), k = Ym(r), y = r === "3" ? "3" : "2", E = X(null), b = X(null), [R, w] = j("start");
2350
2350
  Wo(() => {
2351
2351
  if (!m) {
2352
- N("start");
2352
+ w("start");
2353
2353
  return;
2354
2354
  }
2355
2355
  if (!E.current || !b.current) return;
2356
2356
  const B = () => {
2357
- const M = E.current.scrollHeight, T = b.current.scrollHeight;
2358
- N(M <= T ? "center" : "start");
2357
+ const M = E.current.scrollHeight, D = b.current.scrollHeight;
2358
+ w(M <= D ? "center" : "start");
2359
2359
  };
2360
2360
  B();
2361
- const D = new ResizeObserver(B);
2362
- return D.observe(E.current), D.observe(b.current), () => D.disconnect();
2361
+ const x = new ResizeObserver(B);
2362
+ return x.observe(E.current), x.observe(b.current), () => x.disconnect();
2363
2363
  }, [m]);
2364
- const w = () => d ? null : /* @__PURE__ */ s(ya, { style: { height: k }, children: /* @__PURE__ */ s(i, { width: C, height: C }) });
2364
+ const N = () => d ? null : /* @__PURE__ */ s(ya, { style: { height: k }, children: /* @__PURE__ */ s(i, { width: C, height: C }) });
2365
2365
  return /* @__PURE__ */ s(rn, { asChild: !0, children: /* @__PURE__ */ s(
2366
2366
  va,
2367
2367
  {
@@ -2387,7 +2387,7 @@ const Tm = "_Callout_1lwt5_1", Dm = "_size1_1lwt5_5", Jm = "_onlyButton_1lwt5_5"
2387
2387
  gap: "2",
2388
2388
  width: "100%",
2389
2389
  children: [
2390
- w(),
2390
+ N(),
2391
2391
  /* @__PURE__ */ v(I, { direction: "column", gap: "1", width: "100%", ref: E, children: [
2392
2392
  c && /* @__PURE__ */ s(_, { size: y, weight: "bold", children: c }),
2393
2393
  /* @__PURE__ */ s(_, { size: y, weight: "regular", children: l || n })
@@ -3108,21 +3108,21 @@ const iC = "_DataTable_1s4n5_1", lC = "_titleText_1s4n5_23", cC = "_artistText_1
3108
3108
  }, []), y = J(
3109
3109
  (B) => {
3110
3110
  var U;
3111
- const D = String(((U = B.active) == null ? void 0 : U.id) ?? "");
3112
- if (!D) return;
3113
- const M = C.get(D);
3111
+ const x = String(((U = B.active) == null ? void 0 : U.id) ?? "");
3112
+ if (!x) return;
3113
+ const M = C.get(x);
3114
3114
  if (!M) return;
3115
- const T = t.has(D), Q = T && r.length > 0 ? r : [M], x = {
3115
+ const D = t.has(x), Q = D && r.length > 0 ? r : [M], T = {
3116
3116
  row: M,
3117
3117
  selectedRows: Q,
3118
- isDraggedRowSelected: T
3118
+ isDraggedRowSelected: D
3119
3119
  };
3120
- u(D), h(D), f(x), i == null || i(x, B.activatorEvent);
3120
+ u(x), h(x), f(T), i == null || i(T, B.activatorEvent);
3121
3121
  },
3122
3122
  [i, C, r, t]
3123
3123
  ), E = J((B) => {
3124
- var D;
3125
- h((D = B.over) != null && D.id ? String(B.over.id) : null);
3124
+ var x;
3125
+ h((x = B.over) != null && x.id ? String(B.over.id) : null);
3126
3126
  }, []), b = J(
3127
3127
  (B) => {
3128
3128
  g != null && g.row && (l == null || l(g.row, B == null ? void 0 : B.activatorEvent)), k();
@@ -3130,16 +3130,16 @@ const iC = "_DataTable_1s4n5_1", lC = "_titleText_1s4n5_23", cC = "_artistText_1
3130
3130
  [g, l, k]
3131
3131
  ), R = J(
3132
3132
  (B) => {
3133
- var Q, x;
3134
- const D = String(((Q = B.active) == null ? void 0 : Q.id) ?? ""), M = (x = B.over) != null && x.id ? String(B.over.id) : null, T = C.get(D) ?? (g == null ? void 0 : g.row);
3135
- if (T && (l == null || l(T, B.activatorEvent)), a && M && D) {
3136
- const U = n.findIndex((P) => P.id === D);
3133
+ var Q, T;
3134
+ const x = String(((Q = B.active) == null ? void 0 : Q.id) ?? ""), M = (T = B.over) != null && T.id ? String(B.over.id) : null, D = C.get(x) ?? (g == null ? void 0 : g.row);
3135
+ if (D && (l == null || l(D, B.activatorEvent)), a && M && x) {
3136
+ const U = n.findIndex((P) => P.id === x);
3137
3137
  let O = null;
3138
3138
  if (M === Ws)
3139
3139
  O = 0;
3140
3140
  else if (M === Ls)
3141
3141
  O = n.length;
3142
- else if (D !== M) {
3142
+ else if (x !== M) {
3143
3143
  const P = n.findIndex((G) => G.id === M);
3144
3144
  P >= 0 && (O = P > U ? P + 1 : P);
3145
3145
  }
@@ -3165,7 +3165,7 @@ const iC = "_DataTable_1s4n5_1", lC = "_titleText_1s4n5_23", cC = "_artistText_1
3165
3165
  C,
3166
3166
  t
3167
3167
  ]
3168
- ), N = oe(
3168
+ ), w = oe(
3169
3169
  () => ({
3170
3170
  sensors: m,
3171
3171
  collisionDetection: Au,
@@ -3175,7 +3175,7 @@ const iC = "_DataTable_1s4n5_1", lC = "_titleText_1s4n5_23", cC = "_artistText_1
3175
3175
  onDragEnd: R
3176
3176
  }),
3177
3177
  [b, R, E, y, m]
3178
- ), w = oe(
3178
+ ), N = oe(
3179
3179
  () => ({
3180
3180
  onDragStart: y,
3181
3181
  onDragOver: E,
@@ -3185,12 +3185,12 @@ const iC = "_DataTable_1s4n5_1", lC = "_titleText_1s4n5_23", cC = "_artistText_1
3185
3185
  [y, E, b, R]
3186
3186
  );
3187
3187
  return {
3188
- dndContextProps: N,
3188
+ dndContextProps: w,
3189
3189
  activeDragRowId: d,
3190
3190
  overDragRowId: A,
3191
3191
  activeDragContext: g,
3192
3192
  sortableItems: n.map((B) => B.id),
3193
- monitorHandlers: w
3193
+ monitorHandlers: N
3194
3194
  };
3195
3195
  }, ur = (n) => typeof n == "string" ? n.toUpperCase() : n, n1 = ({
3196
3196
  columns: n,
@@ -3319,7 +3319,7 @@ const o1 = Te.memo(function({
3319
3319
  dndScopeId: b
3320
3320
  }) {
3321
3321
  var $;
3322
- const R = X(!1), N = X(!1), w = X(!1), B = X(!1), { listeners: D, setNodeRef: M, transform: T, transition: Q, isDragging: x } = Cu({
3322
+ const R = X(!1), w = X(!1), N = X(!1), B = X(!1), { listeners: x, setNodeRef: M, transform: D, transition: Q, isDragging: T } = Cu({
3323
3323
  id: r,
3324
3324
  disabled: !Za({ row: t, rowDraggable: k, reorderable: y }),
3325
3325
  data: {
@@ -3330,16 +3330,16 @@ const o1 = Te.memo(function({
3330
3330
  rowIndex: a
3331
3331
  }
3332
3332
  }), U = {
3333
- ...T ? { transform: ku.Transform.toString(T) } : {},
3333
+ ...D ? { transform: ku.Transform.toString(D) } : {},
3334
3334
  ...Q ? { transition: Q } : {}
3335
3335
  }, O = i ? { ...U, "--row-bg": "var(--aqua-alpha-2)" } : U, P = (F) => {
3336
- if (N.current) {
3337
- N.current = !1;
3336
+ if (w.current) {
3337
+ w.current = !1;
3338
3338
  return;
3339
3339
  }
3340
3340
  F.shiftKey ? (F.preventDefault(), f == null || f(t, a)) : h == null || h(t);
3341
3341
  }, G = (F) => {
3342
- F.pointerType === "touch" && (N.current = !0, F.shiftKey ? f == null || f(t, a) : h == null || h(t));
3342
+ F.pointerType === "touch" && (w.current = !0, F.shiftKey ? f == null || f(t, a) : h == null || h(t));
3343
3343
  }, ee = (F) => {
3344
3344
  F.stopPropagation(), F.shiftKey && (F.preventDefault(), R.current = !0, f == null || f(t, a), setTimeout(() => {
3345
3345
  R.current = !1;
@@ -3355,20 +3355,20 @@ const o1 = Te.memo(function({
3355
3355
  r != null && (B.current = !0, g == null || g(r, !i));
3356
3356
  }
3357
3357
  }, W = (F) => {
3358
- if (F.stopPropagation(), w.current) {
3359
- w.current = !1;
3358
+ if (F.stopPropagation(), N.current) {
3359
+ N.current = !1;
3360
3360
  return;
3361
3361
  }
3362
3362
  F.shiftKey ? (F.preventDefault(), f == null || f(t, a)) : r != null && (g == null || g(r, !i));
3363
3363
  }, Y = (F) => {
3364
- F.pointerType === "touch" && (F.stopPropagation(), w.current = !0, F.shiftKey ? f == null || f(t, a) : r != null && (g == null || g(r, !i)));
3364
+ F.pointerType === "touch" && (F.stopPropagation(), N.current = !0, F.shiftKey ? f == null || f(t, a) : r != null && (g == null || g(r, !i)));
3365
3365
  }, pe = (F) => {
3366
3366
  if (R.current) {
3367
3367
  R.current = !1;
3368
3368
  return;
3369
3369
  }
3370
- if (w.current) {
3371
- w.current = !1;
3370
+ if (N.current) {
3371
+ N.current = !1;
3372
3372
  return;
3373
3373
  }
3374
3374
  if (B.current) {
@@ -3385,12 +3385,12 @@ const o1 = Te.memo(function({
3385
3385
  className: S({
3386
3386
  [re.rowSelected]: i,
3387
3387
  [re.showDropdownOnSelect]: ue,
3388
- [re.rowDragging]: x,
3388
+ [re.rowDragging]: T,
3389
3389
  [re.rowDragOver]: K && E,
3390
3390
  [re.rowReorderable]: K
3391
3391
  }),
3392
3392
  style: O,
3393
- ...me ? D : {},
3393
+ ...me ? x : {},
3394
3394
  children: [
3395
3395
  /* @__PURE__ */ s(
3396
3396
  Tt,
@@ -3521,10 +3521,10 @@ const o1 = Te.memo(function({
3521
3521
  /* @__PURE__ */ s(_, { size: "2", className: re.titleText, children: R.title }),
3522
3522
  /* @__PURE__ */ s(_, { size: "1", className: re.artistText, children: R.artist })
3523
3523
  ] })
3524
- ] }), []), b = J((R, N, w) => {
3525
- var T;
3526
- const B = (R == null ? void 0 : R[N.id]) ?? (R == null ? void 0 : R[`${N.id}Formatted`]), D = ((T = N.render) == null ? void 0 : T.call(N, { row: R, value: B, column: N, index: w })) ?? B;
3527
- return typeof D == "string" || typeof D == "number" || D == null ? /* @__PURE__ */ s(_, { size: "2", className: re.cellText, children: D }) : D;
3524
+ ] }), []), b = J((R, w, N) => {
3525
+ var D;
3526
+ const B = (R == null ? void 0 : R[w.id]) ?? (R == null ? void 0 : R[`${w.id}Formatted`]), x = ((D = w.render) == null ? void 0 : D.call(w, { row: R, value: B, column: w, index: N })) ?? B;
3527
+ return typeof x == "string" || typeof x == "number" || x == null ? /* @__PURE__ */ s(_, { size: "2", className: re.cellText, children: x }) : x;
3528
3528
  }, []);
3529
3529
  return /* @__PURE__ */ s(Ua, { children: /* @__PURE__ */ v(vu, { items: r, strategy: yu, children: [
3530
3530
  f && /* @__PURE__ */ s(
@@ -3535,14 +3535,14 @@ const o1 = Te.memo(function({
3535
3535
  colSpan: y
3536
3536
  }
3537
3537
  ),
3538
- n.map((R, N) => /* @__PURE__ */ s(
3538
+ n.map((R, w) => /* @__PURE__ */ s(
3539
3539
  o1,
3540
3540
  {
3541
3541
  rowId: R.id,
3542
3542
  row: R,
3543
- rowIndex: N,
3543
+ rowIndex: w,
3544
3544
  columns: t,
3545
- isSelected: a(R, N),
3545
+ isSelected: a(R, w),
3546
3546
  anyRowSelected: o,
3547
3547
  selectedCount: i,
3548
3548
  sortedKey: l,
@@ -3591,16 +3591,16 @@ const o1 = Te.memo(function({
3591
3591
  onRowDragEnd: E,
3592
3592
  getDragPreviewLabel: b,
3593
3593
  getDragPreviewCountLabel: R,
3594
- renderDragPreview: N,
3595
- renderDndContext: w = !0,
3594
+ renderDragPreview: w,
3595
+ renderDndContext: N = !0,
3596
3596
  dndScopeId: B,
3597
- ...D
3597
+ ...x
3598
3598
  }) => {
3599
3599
  var Z, Pe;
3600
- const M = X(null), T = c == null ? void 0 : c.field, Q = (Z = t == null ? void 0 : t[0]) == null ? void 0 : Z.id, x = (Pe = t == null ? void 0 : t[1]) == null ? void 0 : Pe.id, U = oe(() => {
3600
+ const M = X(null), D = c == null ? void 0 : c.field, Q = (Z = t == null ? void 0 : t[0]) == null ? void 0 : Z.id, T = (Pe = t == null ? void 0 : t[1]) == null ? void 0 : Pe.id, U = oe(() => {
3601
3601
  if (t != null && t.length)
3602
- return !T || T === Q ? x : T;
3603
- }, [t, T, Q, x]), O = oe(
3602
+ return !D || D === Q ? T : D;
3603
+ }, [t, D, Q, T]), O = oe(
3604
3604
  () => r.map((Ce, ye) => qC(Ce, ye)),
3605
3605
  [r]
3606
3606
  ), P = oe(
@@ -3661,7 +3661,7 @@ const o1 = Te.memo(function({
3661
3661
  dndScopeId: B
3662
3662
  }), L = X(z);
3663
3663
  L.current = z;
3664
- const { style: de, ...ve } = D, Qe = typeof h == "number" ? `${h}px` : h, le = typeof g == "number" ? `${g}px` : g, Me = /* @__PURE__ */ v(
3664
+ const { style: de, ...ve } = x, Qe = typeof h == "number" ? `${h}px` : h, le = typeof g == "number" ? `${g}px` : g, Me = /* @__PURE__ */ v(
3665
3665
  Qa,
3666
3666
  {
3667
3667
  className: S(re.DataTable, n),
@@ -3677,7 +3677,7 @@ const o1 = Te.memo(function({
3677
3677
  n1,
3678
3678
  {
3679
3679
  columns: t,
3680
- sortedKey: T,
3680
+ sortedKey: D,
3681
3681
  sorting: c,
3682
3682
  mobileSecondaryColumnId: U,
3683
3683
  anyRowChecked: Y,
@@ -3700,7 +3700,7 @@ const o1 = Te.memo(function({
3700
3700
  isRowSelected: ee,
3701
3701
  anyRowChecked: Y,
3702
3702
  selectedCount: q,
3703
- sortedKey: T,
3703
+ sortedKey: D,
3704
3704
  mobileSecondaryColumnId: U,
3705
3705
  hasDropdownOptions: ue,
3706
3706
  onClick: me,
@@ -3719,12 +3719,12 @@ const o1 = Te.memo(function({
3719
3719
  $C,
3720
3720
  {
3721
3721
  model: fe,
3722
- renderDragPreview: N,
3722
+ renderDragPreview: w,
3723
3723
  getDragPreviewLabel: b,
3724
3724
  getDragPreviewCountLabel: R
3725
3725
  }
3726
3726
  ) }) : null });
3727
- return w ? /* @__PURE__ */ v(gu, { ...F, children: [
3727
+ return N ? /* @__PURE__ */ v(gu, { ...F, children: [
3728
3728
  Me,
3729
3729
  vt
3730
3730
  ] }) : /* @__PURE__ */ v(be, { children: [
@@ -3764,8 +3764,8 @@ const c1 = "_hasTriggerWithoutClick_19qua_1", d1 = "_hasLeftColor_19qua_10", u1
3764
3764
  leftColor: d,
3765
3765
  ...u
3766
3766
  }) => {
3767
- const [A, h] = j(!1), [g, f] = j(!1), [m, C] = j(!1), k = (w) => {
3768
- i && (w.preventDefault(), w.stopPropagation(), i(w));
3767
+ const [A, h] = j(!1), [g, f] = j(!1), [m, C] = j(!1), k = (N) => {
3768
+ i && (N.preventDefault(), N.stopPropagation(), i(N));
3769
3769
  }, y = () => {
3770
3770
  f(!0);
3771
3771
  }, E = () => {
@@ -3774,7 +3774,7 @@ const c1 = "_hasTriggerWithoutClick_19qua_1", d1 = "_hasLeftColor_19qua_10", u1
3774
3774
  C(!0);
3775
3775
  }, R = () => {
3776
3776
  C(!1);
3777
- }, N = i ? "button" : "div";
3777
+ }, w = i ? "button" : "div";
3778
3778
  return /* @__PURE__ */ s(I, { className: S(je.container, a), ...u, children: /* @__PURE__ */ v(Or, { open: l, onOpenChange: c, modal: !0, children: [
3779
3779
  i && /* @__PURE__ */ s(
3780
3780
  I,
@@ -3809,7 +3809,7 @@ const c1 = "_hasTriggerWithoutClick_19qua_1", d1 = "_hasLeftColor_19qua_10", u1
3809
3809
  }
3810
3810
  ),
3811
3811
  /* @__PURE__ */ s(Pr, { asChild: !0, children: /* @__PURE__ */ v(
3812
- N,
3812
+ w,
3813
3813
  {
3814
3814
  type: i ? "button" : void 0,
3815
3815
  className: S({
@@ -3868,7 +3868,7 @@ const c1 = "_hasTriggerWithoutClick_19qua_1", d1 = "_hasLeftColor_19qua_10", u1
3868
3868
  {
3869
3869
  className: je.content,
3870
3870
  sideOffset: 5,
3871
- onCloseAutoFocus: (w) => w.preventDefault(),
3871
+ onCloseAutoFocus: (N) => N.preventDefault(),
3872
3872
  children: n
3873
3873
  }
3874
3874
  )
@@ -3892,10 +3892,10 @@ const $a = Oa(kd), Sn = Xe(
3892
3892
  wrapCloseMenu: g,
3893
3893
  ...f
3894
3894
  }) => {
3895
- const m = f.open !== void 0, [C, k] = j(!1), y = m ? f.open : C, E = J((w) => {
3895
+ const m = f.open !== void 0, [C, k] = j(!1), y = m ? f.open : C, E = J((N) => {
3896
3896
  var B;
3897
- m || k(w), (B = f == null ? void 0 : f.onOpenChange) == null || B.call(f, w);
3898
- }, [m, f == null ? void 0 : f.onOpenChange]), b = J(() => E(!1), [E]), R = g ? g(b) : b, N = {
3897
+ m || k(N), (B = f == null ? void 0 : f.onOpenChange) == null || B.call(f, N);
3898
+ }, [m, f == null ? void 0 : f.onOpenChange]), b = J(() => E(!1), [E]), R = g ? g(b) : b, w = {
3899
3899
  ...A && {
3900
3900
  width: "var(--radix-dropdown-menu-trigger-width)",
3901
3901
  boxSizing: "border-box"
@@ -3927,21 +3927,21 @@ const $a = Oa(kd), Sn = Xe(
3927
3927
  size: o,
3928
3928
  side: f.side,
3929
3929
  align: f.align,
3930
- style: N,
3930
+ style: w,
3931
3931
  sideOffset: u,
3932
3932
  alignOffset: 0,
3933
- onCloseAutoFocus: (w) => {
3934
- w.preventDefault();
3933
+ onCloseAutoFocus: (N) => {
3934
+ N.preventDefault();
3935
3935
  },
3936
- onClick: (w) => w.stopPropagation(),
3936
+ onClick: (N) => N.stopPropagation(),
3937
3937
  children: /* @__PURE__ */ s(
3938
3938
  Ct,
3939
3939
  {
3940
3940
  scrollbars: "vertical",
3941
3941
  style: { height: c },
3942
3942
  children: t == null ? void 0 : t.map(
3943
- (w) => $a(
3944
- w,
3943
+ (N) => $a(
3944
+ N,
3945
3945
  o,
3946
3946
  i,
3947
3947
  d,
@@ -3959,16 +3959,16 @@ const $a = Oa(kd), Sn = Xe(
3959
3959
  size: o,
3960
3960
  side: f.side,
3961
3961
  align: f.align,
3962
- style: N,
3962
+ style: w,
3963
3963
  sideOffset: u,
3964
3964
  alignOffset: 0,
3965
- onCloseAutoFocus: (w) => {
3966
- w.preventDefault();
3965
+ onCloseAutoFocus: (N) => {
3966
+ N.preventDefault();
3967
3967
  },
3968
- onClick: (w) => w.stopPropagation(),
3968
+ onClick: (N) => N.stopPropagation(),
3969
3969
  children: t == null ? void 0 : t.map(
3970
- (w) => $a(
3971
- w,
3970
+ (N) => $a(
3971
+ N,
3972
3972
  o,
3973
3973
  i,
3974
3974
  d,
@@ -4013,33 +4013,33 @@ const k1 = "_container_64kxk_1", b1 = "_triggerWithClick_64kxk_9", I1 = "_chevro
4013
4013
  ...m
4014
4014
  }) => {
4015
4015
  const C = m.open !== void 0, [k, y] = j(!1), E = C ? m.open : k, b = J(
4016
- (x) => {
4016
+ (T) => {
4017
4017
  var U;
4018
- C || y(x), (U = m == null ? void 0 : m.onOpenChange) == null || U.call(m, x);
4018
+ C || y(T), (U = m == null ? void 0 : m.onOpenChange) == null || U.call(m, T);
4019
4019
  },
4020
4020
  [C, m == null ? void 0 : m.onOpenChange]
4021
- ), R = J(() => b(!1), [b]), N = f ? f(R) : R, w = {
4021
+ ), R = J(() => b(!1), [b]), w = f ? f(R) : R, N = {
4022
4022
  ...u && {
4023
4023
  width: "var(--radix-dropdown-menu-trigger-width)",
4024
4024
  boxSizing: "border-box"
4025
4025
  },
4026
4026
  ...c && { height: c }
4027
- }, B = (x) => {
4028
- A && (x.preventDefault(), x.stopPropagation(), A(x));
4029
- }, D = J((x) => {
4030
- x.key === "Tab" && x.stopPropagation();
4031
- }, []), M = J((x) => {
4032
- x.preventDefault();
4033
- const U = x.currentTarget.querySelector("[data-tools-dropdown-panel]");
4027
+ }, B = (T) => {
4028
+ A && (T.preventDefault(), T.stopPropagation(), A(T));
4029
+ }, x = J((T) => {
4030
+ T.key === "Tab" && T.stopPropagation();
4031
+ }, []), M = J((T) => {
4032
+ T.preventDefault();
4033
+ const U = T.currentTarget.querySelector("[data-tools-dropdown-panel]");
4034
4034
  U == null || U.focus({ preventScroll: !0 });
4035
- }, []), T = () => /* @__PURE__ */ s(
4035
+ }, []), D = () => /* @__PURE__ */ s(
4036
4036
  "div",
4037
4037
  {
4038
4038
  className: At.contentPanel,
4039
4039
  "data-tools-dropdown-panel": !0,
4040
4040
  tabIndex: -1,
4041
- onKeyDown: D,
4042
- children: typeof t == "function" ? t(N) : t
4041
+ onKeyDown: x,
4042
+ children: typeof t == "function" ? t(w) : t
4043
4043
  }
4044
4044
  ), Q = /* @__PURE__ */ s(rn, { asChild: !0, children: /* @__PURE__ */ s(
4045
4045
  Rs,
@@ -4048,15 +4048,15 @@ const k1 = "_container_64kxk_1", b1 = "_triggerWithClick_64kxk_9", I1 = "_chevro
4048
4048
  size: i,
4049
4049
  side: m.side,
4050
4050
  align: m.align,
4051
- style: w,
4051
+ style: N,
4052
4052
  sideOffset: d,
4053
4053
  alignOffset: 0,
4054
4054
  onOpenAutoFocus: M,
4055
- onCloseAutoFocus: (x) => {
4056
- x.preventDefault();
4055
+ onCloseAutoFocus: (T) => {
4056
+ T.preventDefault();
4057
4057
  },
4058
- onClick: (x) => x.stopPropagation(),
4059
- children: c ? /* @__PURE__ */ s(Ct, { scrollbars: "vertical", style: { height: c }, children: T() }) : T()
4058
+ onClick: (T) => T.stopPropagation(),
4059
+ children: c ? /* @__PURE__ */ s(Ct, { scrollbars: "vertical", style: { height: c }, children: D() }) : D()
4060
4060
  }
4061
4061
  ) });
4062
4062
  return /* @__PURE__ */ s(I, { className: S(At.container, r), children: /* @__PURE__ */ v(
@@ -4123,9 +4123,9 @@ const T1 = "_popoverPortal_nadny_1", D1 = "_popoverContent_nadny_9", J1 = "_cont
4123
4123
  ...h
4124
4124
  }) => {
4125
4125
  const g = h.open !== void 0, [f, m] = j(!1), C = g ? h.open : f, k = J(
4126
- (D) => {
4126
+ (x) => {
4127
4127
  var M;
4128
- g || m(D), (M = h == null ? void 0 : h.onOpenChange) == null || M.call(h, D);
4128
+ g || m(x), (M = h == null ? void 0 : h.onOpenChange) == null || M.call(h, x);
4129
4129
  },
4130
4130
  [g, h == null ? void 0 : h.onOpenChange]
4131
4131
  ), y = J(() => k(!1), [k]), E = u ? u(y) : y, b = {
@@ -4134,13 +4134,13 @@ const T1 = "_popoverPortal_nadny_1", D1 = "_popoverContent_nadny_9", J1 = "_cont
4134
4134
  boxSizing: "border-box"
4135
4135
  },
4136
4136
  ...l && { height: l }
4137
- }, R = J((D) => {
4138
- D.key === "Tab" && D.stopPropagation();
4139
- }, []), N = J((D) => {
4140
- D.preventDefault();
4141
- const M = D.currentTarget.querySelector("[data-tools-popover-panel]");
4137
+ }, R = J((x) => {
4138
+ x.key === "Tab" && x.stopPropagation();
4139
+ }, []), w = J((x) => {
4140
+ x.preventDefault();
4141
+ const M = x.currentTarget.querySelector("[data-tools-popover-panel]");
4142
4142
  M == null || M.focus({ preventScroll: !0 });
4143
- }, []), w = () => /* @__PURE__ */ s(
4143
+ }, []), N = () => /* @__PURE__ */ s(
4144
4144
  "div",
4145
4145
  {
4146
4146
  className: ps.contentPanel,
@@ -4158,12 +4158,12 @@ const T1 = "_popoverPortal_nadny_1", D1 = "_popoverContent_nadny_9", J1 = "_cont
4158
4158
  style: b,
4159
4159
  sideOffset: c,
4160
4160
  alignOffset: 0,
4161
- onOpenAutoFocus: N,
4162
- onCloseAutoFocus: (D) => {
4163
- D.preventDefault();
4161
+ onOpenAutoFocus: w,
4162
+ onCloseAutoFocus: (x) => {
4163
+ x.preventDefault();
4164
4164
  },
4165
- onClick: (D) => D.stopPropagation(),
4166
- children: l ? /* @__PURE__ */ s(Ct, { scrollbars: "vertical", style: { height: l }, children: w() }) : w()
4165
+ onClick: (x) => x.stopPropagation(),
4166
+ children: l ? /* @__PURE__ */ s(Ct, { scrollbars: "vertical", style: { height: l }, children: N() }) : N()
4167
4167
  }
4168
4168
  ) });
4169
4169
  return /* @__PURE__ */ v(
@@ -4378,22 +4378,22 @@ function ev({ initialScreen: n, animated: t, children: r }) {
4378
4378
  u.current = a;
4379
4379
  const h = oe(() => {
4380
4380
  const Q = {};
4381
- return wd.forEach(r, (x) => {
4382
- (x == null ? void 0 : x.type) === Kl && (Q[x.props.name] = x.props);
4381
+ return wd.forEach(r, (T) => {
4382
+ (T == null ? void 0 : T.type) === Kl && (Q[T.props.name] = T.props);
4383
4383
  }), Q;
4384
- }, [r]), g = J((Q, x = null) => {
4385
- t && x && $1(A.current, x), o(Q), l({}), d((U) => U + 1);
4384
+ }, [r]), g = J((Q, T = null) => {
4385
+ t && T && $1(A.current, T), o(Q), l({}), d((U) => U + 1);
4386
4386
  }, [t]), f = J(
4387
- (Q, x = {}) => g((U) => [...U, { name: Q, params: x }], "forward"),
4387
+ (Q, T = {}) => g((U) => [...U, { name: Q, params: T }], "forward"),
4388
4388
  [g]
4389
4389
  ), m = J(
4390
4390
  () => g((Q) => Q.length > 1 ? Q.slice(0, -1) : Q, "back"),
4391
4391
  [g]
4392
4392
  ), C = J(
4393
- (Q) => g((x) => {
4394
- const U = x.findIndex((O) => O.name === Q);
4393
+ (Q) => g((T) => {
4394
+ const U = T.findIndex((O) => O.name === Q);
4395
4395
  if (U === -1) throw new Error(`Screen "${Q}" is not in the stack`);
4396
- return x.slice(0, U + 1);
4396
+ return T.slice(0, U + 1);
4397
4397
  }, "back"),
4398
4398
  [g]
4399
4399
  ), k = J(
@@ -4404,18 +4404,18 @@ function ev({ initialScreen: n, animated: t, children: r }) {
4404
4404
  [f, m, C, k, y, a]
4405
4405
  ), b = a[a.length - 1], R = h[b.name];
4406
4406
  if (!R) return null;
4407
- const N = oe(
4408
- () => a.map((Q, x) => {
4407
+ const w = oe(
4408
+ () => a.map((Q, T) => {
4409
4409
  var U;
4410
- return (U = h[Q.name]) != null && U.keepMounted ? { entry: Q, stackIndex: x } : null;
4410
+ return (U = h[Q.name]) != null && U.keepMounted ? { entry: Q, stackIndex: T } : null;
4411
4411
  }).filter(Boolean),
4412
4412
  [a, h]
4413
- ), w = (Q, x) => Q in i ? i[Q] : R[Q] ?? x, B = R.component, D = R.keepMounted === !0, M = J(
4413
+ ), N = (Q, T) => Q in i ? i[Q] : R[Q] ?? T, B = R.component, x = R.keepMounted === !0, M = J(
4414
4414
  (Q) => {
4415
4415
  u.current[u.current.length - 1].name === b.name && l((U) => ({ ...U, ...Q }));
4416
4416
  },
4417
4417
  [b.name]
4418
- ), T = oe(
4418
+ ), D = oe(
4419
4419
  () => ({ name: b.name, params: b.params || {}, setOptions: M }),
4420
4420
  [b.name, b.params, M]
4421
4421
  );
@@ -4423,12 +4423,12 @@ function ev({ initialScreen: n, animated: t, children: r }) {
4423
4423
  /* @__PURE__ */ s(
4424
4424
  jl,
4425
4425
  {
4426
- title: w("title"),
4426
+ title: N("title"),
4427
4427
  onBack: y ? m : void 0,
4428
- headerLeft: w("headerLeft"),
4429
- headerRight: w("headerRight"),
4430
- allowClose: w("allowClose", !0),
4431
- onClose: w("onClose")
4428
+ headerLeft: N("headerLeft"),
4429
+ headerRight: N("headerRight"),
4430
+ allowClose: N("allowClose", !0),
4431
+ onClose: N("onClose")
4432
4432
  }
4433
4433
  ),
4434
4434
  /* @__PURE__ */ v(
@@ -4444,10 +4444,10 @@ function ev({ initialScreen: n, animated: t, children: r }) {
4444
4444
  overflow: "hidden"
4445
4445
  },
4446
4446
  children: [
4447
- N.map(({ entry: Q, stackIndex: x }) => {
4447
+ w.map(({ entry: Q, stackIndex: T }) => {
4448
4448
  const U = h[Q.name];
4449
4449
  if (!(U != null && U.component)) return null;
4450
- const O = U.component, P = Q.name === b.name, G = P ? T : { name: Q.name, params: Q.params || {}, setOptions: () => {
4450
+ const O = U.component, P = Q.name === b.name, G = P ? D : { name: Q.name, params: Q.params || {}, setOptions: () => {
4451
4451
  } };
4452
4452
  return /* @__PURE__ */ s(
4453
4453
  "div",
@@ -4467,10 +4467,10 @@ function ev({ initialScreen: n, animated: t, children: r }) {
4467
4467
  },
4468
4468
  children: /* @__PURE__ */ s(Hs.Provider, { value: G, children: /* @__PURE__ */ s(O, {}) })
4469
4469
  },
4470
- `layer-${x}`
4470
+ `layer-${T}`
4471
4471
  );
4472
4472
  }),
4473
- !D && /* @__PURE__ */ s(Hs.Provider, { value: T, children: /* @__PURE__ */ s(B, {}) }, c)
4473
+ !x && /* @__PURE__ */ s(Hs.Provider, { value: D, children: /* @__PURE__ */ s(B, {}) }, c)
4474
4474
  ]
4475
4475
  }
4476
4476
  )
@@ -4896,8 +4896,8 @@ const aB = ls, Rv = "_sliderRoot_19e7a_23", Bv = "_sliderTrack_19e7a_31", xv = "
4896
4896
  }, Mv = ({ onChangeValue: n, volume: t, disabled: r }) => {
4897
4897
  const [a, o] = j(!1), i = X(), l = X(0), c = J((R) => {
4898
4898
  if (R < 1e-3) return -1 / 0;
4899
- const N = 20 * Math.log10(R);
4900
- return N < -60 ? -60 : N;
4899
+ const w = 20 * Math.log10(R);
4900
+ return w < -60 ? -60 : w;
4901
4901
  }, []), d = J((R) => R === -1 / 0 || R <= -60 ? 0 : Math.pow(10, R / 20), []), u = oe(() => {
4902
4902
  const R = c(t);
4903
4903
  return R === -1 / 0 ? -60 : Math.max(-60, Math.min(6, R));
@@ -5133,24 +5133,24 @@ const Fa = Xe(function({
5133
5133
  hover: c = !1,
5134
5134
  resetPeakHold: d
5135
5135
  }) {
5136
- const [u, A] = t, h = js(no(u ?? 0)), g = js(no(A ?? 0)), [f, m] = j(!1), C = X(!1), k = X(null), y = X(null), E = X(null), b = X(0), R = X(null), [N, w] = j(0), [B, D] = j(!1);
5136
+ const [u, A] = t, h = js(no(u ?? 0)), g = js(no(A ?? 0)), [f, m] = j(!1), C = X(!1), k = X(null), y = X(null), E = X(null), b = X(0), R = X(null), [w, N] = j(0), [B, x] = j(!1);
5137
5137
  ie(() => {
5138
- b.current = 0, w(0);
5138
+ b.current = 0, N(0);
5139
5139
  }, [d]), ie(() => () => clearTimeout(R.current), []);
5140
5140
  const M = Math.max(
5141
5141
  0,
5142
5142
  Math.min(100, ql(r) * 100)
5143
- ), T = Ks(h), Q = Ks(g), x = Math.max(T, Q);
5143
+ ), D = Ks(h), Q = Ks(g), T = Math.max(D, Q);
5144
5144
  ie(() => {
5145
- x > b.current && (b.current = x, w(x), D(!0), clearTimeout(R.current), R.current = setTimeout(() => {
5146
- D(!1), requestAnimationFrame(() => {
5145
+ T > b.current && (b.current = T, N(T), x(!0), clearTimeout(R.current), R.current = setTimeout(() => {
5146
+ x(!1), requestAnimationFrame(() => {
5147
5147
  requestAnimationFrame(() => {
5148
- b.current = 0, w(0);
5148
+ b.current = 0, N(0);
5149
5149
  });
5150
5150
  });
5151
- }, 400)), x <= 0 && (b.current = 0, w(0));
5152
- }, [x]);
5153
- const U = $v(N), O = N > 0, P = J(
5151
+ }, 400)), T <= 0 && (b.current = 0, N(0));
5152
+ }, [T]);
5153
+ const U = $v(w), O = w > 0, P = J(
5154
5154
  (Y) => {
5155
5155
  var ue;
5156
5156
  if (!a) return;
@@ -5217,7 +5217,7 @@ const Fa = Xe(function({
5217
5217
  {
5218
5218
  className: `${We.peakDotTop} ${B ? We.peakRising : ""}`,
5219
5219
  style: {
5220
- left: `min(calc(${N}% + 3px), calc(100% - 3px))`,
5220
+ left: `min(calc(${w}% + 3px), calc(100% - 3px))`,
5221
5221
  background: U,
5222
5222
  opacity: O ? 1 : 0
5223
5223
  }
@@ -5228,7 +5228,7 @@ const Fa = Xe(function({
5228
5228
  {
5229
5229
  className: `${We.peakDotBottom} ${B ? We.peakRising : ""}`,
5230
5230
  style: {
5231
- left: `min(calc(${N}% + 3px), calc(100% - 3px))`,
5231
+ left: `min(calc(${w}% + 3px), calc(100% - 3px))`,
5232
5232
  background: U,
5233
5233
  opacity: O ? 1 : 0
5234
5234
  }
@@ -5515,10 +5515,10 @@ const Ir = 19.5, Sr = 19.5, ao = 14, oo = 18, yy = [
5515
5515
  if (b.preventDefault(), b.stopPropagation(), r) return;
5516
5516
  const R = b.wheelDelta ?? -b.deltaY * 25;
5517
5517
  if (!R || Math.abs(R) <= 50) return;
5518
- const N = Date.now();
5519
- if (N - h.current < 100) return;
5520
- const w = R > 0 ? 1 : -1, B = lo(n, a, w);
5521
- t(B), h.current = N;
5518
+ const w = Date.now();
5519
+ if (w - h.current < 100) return;
5520
+ const N = R > 0 ? 1 : -1, B = lo(n, a, N);
5521
+ t(B), h.current = w;
5522
5522
  },
5523
5523
  [t, n, a, r]
5524
5524
  ), f = J(
@@ -5535,8 +5535,8 @@ const Ir = 19.5, Sr = 19.5, ao = 14, oo = 18, yy = [
5535
5535
  if (!c || r) return;
5536
5536
  const R = u - b.clientY;
5537
5537
  if (Math.abs(R) <= 20) return;
5538
- const N = R > 0 ? 1 : -1, w = lo(n, a, N);
5539
- t(w), A(b.clientY), h.current = Date.now();
5538
+ const w = R > 0 ? 1 : -1, N = lo(n, a, w);
5539
+ t(N), A(b.clientY), h.current = Date.now();
5540
5540
  },
5541
5541
  [c, u, n, t, a, r]
5542
5542
  ), C = J(() => {
@@ -5579,25 +5579,25 @@ const Ir = 19.5, Sr = 19.5, ao = 14, oo = 18, yy = [
5579
5579
  tooltipCloseDelay: d
5580
5580
  });
5581
5581
  k.current = { tooltipDelayDuration: c, tooltipCloseDelay: d };
5582
- const y = Array.isArray(i) && i.length > 0, E = oe(() => (i == null ? void 0 : i.find((W) => W.default)) || (i == null ? void 0 : i[0]) || { position: 0, color: "neutral", default: !0 }, [i]), { containerRef: b, isDragging: R, handleClick: N, handleDotClick: w } = Sy({
5582
+ const y = Array.isArray(i) && i.length > 0, E = oe(() => (i == null ? void 0 : i.find((W) => W.default)) || (i == null ? void 0 : i[0]) || { position: 0, color: "neutral", default: !0 }, [i]), { containerRef: b, isDragging: R, handleClick: w, handleDotClick: N } = Sy({
5583
5583
  value: t,
5584
5584
  onChange: r,
5585
5585
  disabled: a,
5586
5586
  dots: i || [],
5587
5587
  defaultDot: E,
5588
5588
  clickableDots: o
5589
- }), B = oe(() => typeof t == "object" && t !== null ? t.position : by(t, i), [t, i]), D = oe(() => typeof t == "object" && t !== null ? t : (i == null ? void 0 : i.find((W) => W.position === B)) ?? null, [t, i, B]), { pointerRotation: M, pointerColor: T } = oe(() => Iy(B, a), [B, a]);
5589
+ }), B = oe(() => typeof t == "object" && t !== null ? t.position : by(t, i), [t, i]), x = oe(() => typeof t == "object" && t !== null ? t : (i == null ? void 0 : i.find((W) => W.position === B)) ?? null, [t, i, B]), { pointerRotation: M, pointerColor: D } = oe(() => Iy(B, a), [B, a]);
5590
5590
  if (ie(() => () => {
5591
5591
  m.current != null && clearTimeout(m.current), C.current != null && clearTimeout(C.current);
5592
5592
  }, []), !y)
5593
5593
  return console.warn("Knob: dots prop is required and must be a non-empty array"), null;
5594
5594
  const Q = () => {
5595
5595
  m.current != null && (clearTimeout(m.current), m.current = null);
5596
- }, x = () => {
5596
+ }, T = () => {
5597
5597
  C.current != null && (clearTimeout(C.current), C.current = null);
5598
5598
  }, U = () => {
5599
5599
  if (a) return;
5600
- x(), Q();
5600
+ T(), Q();
5601
5601
  const { tooltipDelayDuration: W } = k.current;
5602
5602
  if (W <= 0) {
5603
5603
  f(!0);
@@ -5619,7 +5619,7 @@ const Ir = 19.5, Sr = 19.5, ao = 14, oo = 18, yy = [
5619
5619
  }, P = (W) => {
5620
5620
  const Y = io[W.color] || io.neutral, pe = W.position === B, ue = A === W.position && o;
5621
5621
  return a ? Y.default : pe ? Y.active : ue ? Y.hover : Y.default;
5622
- }, G = u ? u(D ?? t) : (D == null ? void 0 : D.label) ?? (D == null ? void 0 : D.value) ?? B, ee = !a && (g || R), q = /* @__PURE__ */ s(
5622
+ }, G = u ? u(x ?? t) : (x == null ? void 0 : x.label) ?? (x == null ? void 0 : x.value) ?? B, ee = !a && (g || R), q = /* @__PURE__ */ s(
5623
5623
  "div",
5624
5624
  {
5625
5625
  className: S(
@@ -5649,7 +5649,7 @@ const Ir = 19.5, Sr = 19.5, ao = 14, oo = 18, yy = [
5649
5649
  "path",
5650
5650
  {
5651
5651
  d: "M19.5 4.5 L19.5 12",
5652
- stroke: T,
5652
+ stroke: D,
5653
5653
  strokeWidth: 1,
5654
5654
  transform: "rotate(90 19.5 19.5)"
5655
5655
  }
@@ -5674,7 +5674,7 @@ const Ir = 19.5, Sr = 19.5, ao = 14, oo = 18, yy = [
5674
5674
  onMouseEnter: () => h(W.position),
5675
5675
  onMouseLeave: () => h(null),
5676
5676
  onClick: (me) => {
5677
- me.stopPropagation(), w(W.position);
5677
+ me.stopPropagation(), N(W.position);
5678
5678
  }
5679
5679
  }
5680
5680
  ),
@@ -5697,7 +5697,7 @@ const Ir = 19.5, Sr = 19.5, ao = 14, oo = 18, yy = [
5697
5697
  ue && h(null);
5698
5698
  },
5699
5699
  onClick: (me) => {
5700
- ue && (me.stopPropagation(), w(W.position));
5700
+ ue && (me.stopPropagation(), N(W.position));
5701
5701
  }
5702
5702
  }
5703
5703
  )
@@ -5712,7 +5712,7 @@ const Ir = 19.5, Sr = 19.5, ao = 14, oo = 18, yy = [
5712
5712
  ref: b,
5713
5713
  className: S(pr.content, n),
5714
5714
  "data-no-drag": "true",
5715
- onClick: N,
5715
+ onClick: w,
5716
5716
  style: { cursor: a ? "default" : "ns-resize" },
5717
5717
  children: l ? /* @__PURE__ */ s(
5718
5718
  Ge,
@@ -5972,13 +5972,13 @@ const ik = "_listCardsItem_1exuc_1", lk = "_listCardsItemDescriptionWrappable_1e
5972
5972
  style: g,
5973
5973
  ...f
5974
5974
  }) => {
5975
- const m = (i == null ? void 0 : i.id) || o, C = (i == null ? void 0 : i.name) || r, k = (i == null ? void 0 : i.description) || a, y = (i == null ? void 0 : i.image) || t, E = (i == null ? void 0 : i.icon) || c, b = y && (y != null && y.startsWith("url(")) ? y == null ? void 0 : y.substring(4, (y == null ? void 0 : y.length) - 1).replace(/"/g, "") : y, R = (D) => {
5976
- D.stopPropagation(), D.preventDefault(), A == null || A();
5977
- }, N = {
5975
+ const m = (i == null ? void 0 : i.id) || o, C = (i == null ? void 0 : i.name) || r, k = (i == null ? void 0 : i.description) || a, y = (i == null ? void 0 : i.image) || t, E = (i == null ? void 0 : i.icon) || c, b = y && (y != null && y.startsWith("url(")) ? y == null ? void 0 : y.substring(4, (y == null ? void 0 : y.length) - 1).replace(/"/g, "") : y, R = (x) => {
5976
+ x.stopPropagation(), x.preventDefault(), A == null || A();
5977
+ }, w = {
5978
5978
  1: { avatar: 60, icon: 15 },
5979
5979
  2: { avatar: 68, icon: 15 },
5980
5980
  3: { avatar: 80, icon: 15 }
5981
- }, w = typeof h == "string" ? parseInt(h, 10) : h, B = N[w] || N[1];
5981
+ }, N = typeof h == "string" ? parseInt(h, 10) : h, B = w[N] || w[1];
5982
5982
  return /* @__PURE__ */ s(
5983
5983
  nr,
5984
5984
  {
@@ -6068,7 +6068,7 @@ const ik = "_listCardsItem_1exuc_1", lk = "_listCardsItemDescriptionWrappable_1e
6068
6068
  style: y,
6069
6069
  ...E
6070
6070
  }) => {
6071
- const b = (i == null ? void 0 : i.id) || o, R = (i == null ? void 0 : i.name) || r, N = (i == null ? void 0 : i.avatar) || t, w = (i == null ? void 0 : i.description) || a, B = N && (N != null && N.startsWith("url(")) ? N == null ? void 0 : N.substring(4, (N == null ? void 0 : N.length) - 1).replace(/"/g, "") : N;
6071
+ const b = (i == null ? void 0 : i.id) || o, R = (i == null ? void 0 : i.name) || r, w = (i == null ? void 0 : i.avatar) || t, N = (i == null ? void 0 : i.description) || a, B = w && (w != null && w.startsWith("url(")) ? w == null ? void 0 : w.substring(4, (w == null ? void 0 : w.length) - 1).replace(/"/g, "") : w;
6072
6072
  return /* @__PURE__ */ v(
6073
6073
  "div",
6074
6074
  {
@@ -6139,7 +6139,7 @@ const ik = "_listCardsItem_1exuc_1", lk = "_listCardsItemDescriptionWrappable_1e
6139
6139
  as: "div",
6140
6140
  size: "1",
6141
6141
  className: he.listCardsItemDescriptionWrappable,
6142
- children: w
6142
+ children: N
6143
6143
  }
6144
6144
  )
6145
6145
  ]
@@ -6154,8 +6154,8 @@ const ik = "_listCardsItem_1exuc_1", lk = "_listCardsItemDescriptionWrappable_1e
6154
6154
  "div",
6155
6155
  {
6156
6156
  className: he.clickableAvatar,
6157
- onClick: u ? (D) => {
6158
- D.stopPropagation(), D.preventDefault(), u(D);
6157
+ onClick: u ? (x) => {
6158
+ x.stopPropagation(), x.preventDefault(), u(x);
6159
6159
  } : void 0,
6160
6160
  children: co(
6161
6161
  A ? /* @__PURE__ */ s("div", { className: he.avatarContent, children: A }) : /* @__PURE__ */ s(dt, { src: B, className: he.listCardsAvatar }),
@@ -6188,8 +6188,8 @@ const ik = "_listCardsItem_1exuc_1", lk = "_listCardsItemDescriptionWrappable_1e
6188
6188
  he.favoriteButton,
6189
6189
  !l && he.seeDetailsButton
6190
6190
  ),
6191
- onClick: (D) => {
6192
- D.stopPropagation(), D.preventDefault(), c(D);
6191
+ onClick: (x) => {
6192
+ x.stopPropagation(), x.preventDefault(), c(x);
6193
6193
  },
6194
6194
  children: l ? /* @__PURE__ */ s(Ud, {}) : /* @__PURE__ */ s(Od, {})
6195
6195
  }
@@ -6201,8 +6201,8 @@ const ik = "_listCardsItem_1exuc_1", lk = "_listCardsItemDescriptionWrappable_1e
6201
6201
  he.buttonGhost,
6202
6202
  he.seeDetailsButton
6203
6203
  ),
6204
- onClick: (D) => {
6205
- D.stopPropagation(), D.preventDefault(), d(D);
6204
+ onClick: (x) => {
6205
+ x.stopPropagation(), x.preventDefault(), d(x);
6206
6206
  },
6207
6207
  children: g
6208
6208
  }
@@ -6512,16 +6512,16 @@ const rb = "_content_15iux_1", sb = "_pan_15iux_13", ab = "_disabled_15iux_26",
6512
6512
  tooltipDelayDuration: d = 0,
6513
6513
  tooltipCloseDelay: u = 500
6514
6514
  }) => {
6515
- const A = X(null), h = X(null), [g, f] = j(!1), m = X(null), C = X(0), k = X(null), y = X(t), E = X(0), b = X(null), R = X(null), N = X({
6515
+ const A = X(null), h = X(null), [g, f] = j(!1), m = X(null), C = X(0), k = X(null), y = X(t), E = X(0), b = X(null), R = X(null), w = X({
6516
6516
  tooltipDelayDuration: d,
6517
6517
  tooltipCloseDelay: u
6518
6518
  });
6519
- N.current = { tooltipDelayDuration: d, tooltipCloseDelay: u };
6520
- const [w, B] = j(!1), [D, M] = j(!1), T = J(() => {
6519
+ w.current = { tooltipDelayDuration: d, tooltipCloseDelay: u };
6520
+ const [N, B] = j(!1), [x, M] = j(!1), D = J(() => {
6521
6521
  b.current != null && (clearTimeout(b.current), b.current = null);
6522
6522
  }, []), Q = J(() => {
6523
6523
  R.current != null && (clearTimeout(R.current), R.current = null);
6524
- }, []), x = J(() => {
6524
+ }, []), T = J(() => {
6525
6525
  var de;
6526
6526
  const z = k.current, L = h.current;
6527
6527
  if (z != null && ((de = L == null ? void 0 : L.hasPointerCapture) != null && de.call(L, z)))
@@ -6532,8 +6532,8 @@ const rb = "_content_15iux_1", sb = "_pan_15iux_13", ab = "_disabled_15iux_26",
6532
6532
  k.current = null, f(!1);
6533
6533
  }, []);
6534
6534
  ie(() => {
6535
- a && (x(), T(), Q(), M(!1), B(!1));
6536
- }, [a, x, T, Q]), ie(() => () => {
6535
+ a && (T(), D(), Q(), M(!1), B(!1));
6536
+ }, [a, T, D, Q]), ie(() => () => {
6537
6537
  b.current != null && clearTimeout(b.current), R.current != null && clearTimeout(R.current);
6538
6538
  }, []), ie(() => {
6539
6539
  if (!g) return;
@@ -6544,16 +6544,16 @@ const rb = "_content_15iux_1", sb = "_pan_15iux_13", ab = "_disabled_15iux_26",
6544
6544
  }, [g]), ie(() => {
6545
6545
  if (!g) return;
6546
6546
  const z = (le) => k.current == null || le.pointerId === k.current, L = (le) => {
6547
- z(le) && x();
6548
- }, de = () => x(), ve = (le) => {
6549
- le.key === "Escape" && (le.preventDefault(), x());
6547
+ z(le) && T();
6548
+ }, de = () => T(), ve = (le) => {
6549
+ le.key === "Escape" && (le.preventDefault(), T());
6550
6550
  }, Qe = () => {
6551
- document.visibilityState !== "visible" && x();
6551
+ document.visibilityState !== "visible" && T();
6552
6552
  };
6553
6553
  return window.addEventListener("pointerup", L), window.addEventListener("pointercancel", L), window.addEventListener("blur", de), window.addEventListener("contextmenu", de), window.addEventListener("keydown", ve), document.addEventListener("visibilitychange", Qe), () => {
6554
6554
  window.removeEventListener("pointerup", L), window.removeEventListener("pointercancel", L), window.removeEventListener("blur", de), window.removeEventListener("contextmenu", de), window.removeEventListener("keydown", ve), document.removeEventListener("visibilitychange", Qe);
6555
6555
  };
6556
- }, [g, x]);
6556
+ }, [g, T]);
6557
6557
  const U = J(
6558
6558
  (z) => {
6559
6559
  y.current = mr(z), !E.current && (E.current = requestAnimationFrame(() => {
@@ -6591,14 +6591,14 @@ const rb = "_content_15iux_1", sb = "_pan_15iux_13", ab = "_disabled_15iux_26",
6591
6591
  [g, t, U]
6592
6592
  ), ee = J(
6593
6593
  (z) => {
6594
- k.current != null && z.pointerId !== k.current || x();
6594
+ k.current != null && z.pointerId !== k.current || T();
6595
6595
  },
6596
- [x]
6596
+ [T]
6597
6597
  ), q = J(
6598
6598
  (z) => {
6599
- z.preventDefault(), x();
6599
+ z.preventDefault(), T();
6600
6600
  },
6601
- [x]
6601
+ [T]
6602
6602
  ), W = J(
6603
6603
  (z) => {
6604
6604
  z.detail === 2 && U(0);
@@ -6644,8 +6644,8 @@ const rb = "_content_15iux_1", sb = "_pan_15iux_13", ab = "_disabled_15iux_26",
6644
6644
  return Math.round(z * 100);
6645
6645
  }, [t, o, i, c]), V = () => {
6646
6646
  if (a) return;
6647
- Q(), T();
6648
- const { tooltipDelayDuration: z } = N.current;
6647
+ Q(), D();
6648
+ const { tooltipDelayDuration: z } = w.current;
6649
6649
  if (z <= 0) {
6650
6650
  M(!0);
6651
6651
  return;
@@ -6655,8 +6655,8 @@ const rb = "_content_15iux_1", sb = "_pan_15iux_13", ab = "_disabled_15iux_26",
6655
6655
  }, z);
6656
6656
  }, ne = () => {
6657
6657
  if (g) return;
6658
- T();
6659
- const { tooltipCloseDelay: z } = N.current;
6658
+ D();
6659
+ const { tooltipCloseDelay: z } = w.current;
6660
6660
  if (z <= 0) {
6661
6661
  M(!1);
6662
6662
  return;
@@ -6664,7 +6664,7 @@ const rb = "_content_15iux_1", sb = "_pan_15iux_13", ab = "_disabled_15iux_26",
6664
6664
  R.current = setTimeout(() => {
6665
6665
  R.current = null, M(!1);
6666
6666
  }, z);
6667
- }, fe = !a && (g || w || D), ce = /* @__PURE__ */ s(
6667
+ }, fe = !a && (g || N || x), ce = /* @__PURE__ */ s(
6668
6668
  "div",
6669
6669
  {
6670
6670
  ref: h,
@@ -7191,28 +7191,28 @@ class Rb extends sr {
7191
7191
  if (g.button !== i || d.has(g.pointerId) || (d.set(g.pointerId, g), d.size > 1)) return;
7192
7192
  const f = g.pointerId;
7193
7193
  let m = g.clientX, C = g.clientY, k = !1;
7194
- const y = Date.now(), E = r.getBoundingClientRect(), { left: b, top: R } = E, N = (T) => {
7195
- if (T.pointerId !== f || T.defaultPrevented || d.size > 1 || u && Date.now() - y < l) return;
7196
- const Q = T.clientX, x = T.clientY, U = Q - m, O = x - C;
7197
- (k || Math.abs(U) > o || Math.abs(O) > o) && (T.preventDefault(), T.stopPropagation(), k || (c.set({ type: "start", x: m - b, y: C - R }), k = !0), c.set({ type: "move", x: Q - b, y: x - R, deltaX: U, deltaY: O }), m = Q, C = x);
7198
- }, w = (T) => {
7199
- if (d.delete(T.pointerId)) {
7200
- if (T.pointerId === f && k) {
7201
- const Q = T.clientX, x = T.clientY;
7202
- c.set({ type: "end", x: Q - b, y: x - R });
7194
+ const y = Date.now(), E = r.getBoundingClientRect(), { left: b, top: R } = E, w = (D) => {
7195
+ if (D.pointerId !== f || D.defaultPrevented || d.size > 1 || u && Date.now() - y < l) return;
7196
+ const Q = D.clientX, T = D.clientY, U = Q - m, O = T - C;
7197
+ (k || Math.abs(U) > o || Math.abs(O) > o) && (D.preventDefault(), D.stopPropagation(), k || (c.set({ type: "start", x: m - b, y: C - R }), k = !0), c.set({ type: "move", x: Q - b, y: T - R, deltaX: U, deltaY: O }), m = Q, C = T);
7198
+ }, N = (D) => {
7199
+ if (d.delete(D.pointerId)) {
7200
+ if (D.pointerId === f && k) {
7201
+ const Q = D.clientX, T = D.clientY;
7202
+ c.set({ type: "end", x: Q - b, y: T - R });
7203
7203
  }
7204
7204
  d.size === 0 && A();
7205
7205
  }
7206
- }, B = (T) => {
7207
- T.relatedTarget && T.relatedTarget !== document.documentElement || w(T);
7208
- }, D = (T) => {
7209
- k && (T.stopPropagation(), T.preventDefault());
7210
- }, M = (T) => {
7211
- T.defaultPrevented || d.size > 1 || k && T.preventDefault();
7206
+ }, B = (D) => {
7207
+ D.relatedTarget && D.relatedTarget !== document.documentElement || N(D);
7208
+ }, x = (D) => {
7209
+ k && (D.stopPropagation(), D.preventDefault());
7210
+ }, M = (D) => {
7211
+ D.defaultPrevented || d.size > 1 || k && D.preventDefault();
7212
7212
  };
7213
- document.addEventListener("pointermove", N), document.addEventListener("pointerup", w), document.addEventListener("pointerout", B), document.addEventListener("pointercancel", B), document.addEventListener("touchmove", M, { passive: !1 }), document.addEventListener("click", D, { capture: !0 }), A = () => {
7214
- document.removeEventListener("pointermove", N), document.removeEventListener("pointerup", w), document.removeEventListener("pointerout", B), document.removeEventListener("pointercancel", B), document.removeEventListener("touchmove", M), setTimeout(() => {
7215
- document.removeEventListener("click", D, { capture: !0 });
7213
+ document.addEventListener("pointermove", w), document.addEventListener("pointerup", N), document.addEventListener("pointerout", B), document.addEventListener("pointercancel", B), document.addEventListener("touchmove", M, { passive: !1 }), document.addEventListener("click", x, { capture: !0 }), A = () => {
7214
+ document.removeEventListener("pointermove", w), document.removeEventListener("pointerup", N), document.removeEventListener("pointerout", B), document.removeEventListener("pointercancel", B), document.removeEventListener("touchmove", M), setTimeout(() => {
7215
+ document.removeEventListener("click", x, { capture: !0 });
7216
7216
  }, 10);
7217
7217
  };
7218
7218
  };
@@ -7382,21 +7382,21 @@ class Rb extends sr {
7382
7382
  }
7383
7383
  renderBarWaveform(t, r, a, o) {
7384
7384
  const { width: i, height: l } = a.canvas, { halfHeight: c, barWidth: d, barRadius: u, barIndexScale: A, barSpacing: h, barMinHeight: g } = function({ width: m, height: C, length: k, options: y, pixelRatio: E }) {
7385
- const b = C / 2, R = y.barWidth ? y.barWidth * E : 1, N = y.barGap ? y.barGap * E : y.barWidth ? R / 2 : 0, w = R + N || 1;
7386
- return { halfHeight: b, barWidth: R, barGap: N, barRadius: y.barRadius || 0, barMinHeight: y.barMinHeight ? y.barMinHeight * E : 0, barIndexScale: k > 0 ? m / w / k : 0, barSpacing: w };
7387
- }({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), f = function({ channelData: m, barIndexScale: C, barSpacing: k, barWidth: y, halfHeight: E, vScale: b, canvasHeight: R, barAlign: N, barMinHeight: w }) {
7388
- const B = m[0] || [], D = m[1] || B, M = B.length, T = [];
7389
- let Q = 0, x = 0, U = 0;
7385
+ const b = C / 2, R = y.barWidth ? y.barWidth * E : 1, w = y.barGap ? y.barGap * E : y.barWidth ? R / 2 : 0, N = R + w || 1;
7386
+ return { halfHeight: b, barWidth: R, barGap: w, barRadius: y.barRadius || 0, barMinHeight: y.barMinHeight ? y.barMinHeight * E : 0, barIndexScale: k > 0 ? m / N / k : 0, barSpacing: N };
7387
+ }({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), f = function({ channelData: m, barIndexScale: C, barSpacing: k, barWidth: y, halfHeight: E, vScale: b, canvasHeight: R, barAlign: w, barMinHeight: N }) {
7388
+ const B = m[0] || [], x = m[1] || B, M = B.length, D = [];
7389
+ let Q = 0, T = 0, U = 0;
7390
7390
  for (let O = 0; O <= M; O++) {
7391
7391
  const P = Math.round(O * C);
7392
7392
  if (P > Q) {
7393
- const { topHeight: q, totalHeight: W } = Eb({ maxTop: x, maxBottom: U, halfHeight: E, vScale: b, barMinHeight: w, barAlign: N }), Y = wb({ barAlign: N, halfHeight: E, topHeight: q, totalHeight: W, canvasHeight: R });
7394
- T.push({ x: Q * k, y: Y, width: y, height: W }), Q = P, x = 0, U = 0;
7393
+ const { topHeight: q, totalHeight: W } = Eb({ maxTop: T, maxBottom: U, halfHeight: E, vScale: b, barMinHeight: N, barAlign: w }), Y = wb({ barAlign: w, halfHeight: E, topHeight: q, totalHeight: W, canvasHeight: R });
7394
+ D.push({ x: Q * k, y: Y, width: y, height: W }), Q = P, T = 0, U = 0;
7395
7395
  }
7396
- const G = Math.abs(B[O] || 0), ee = Math.abs(D[O] || 0);
7397
- G > x && (x = G), ee > U && (U = ee);
7396
+ const G = Math.abs(B[O] || 0), ee = Math.abs(x[O] || 0);
7397
+ G > T && (T = G), ee > U && (U = ee);
7398
7398
  }
7399
- return T;
7399
+ return D;
7400
7400
  }({ channelData: t, barIndexScale: A, barSpacing: h, barWidth: d, halfHeight: c, vScale: o, canvasHeight: l, barAlign: r.barAlign, barMinHeight: g });
7401
7401
  a.beginPath();
7402
7402
  for (const m of f) u && "roundRect" in a ? a.roundRect(m.x, m.y, m.width, m.height, u) : a.rect(m.x, m.y, m.width, m.height);
@@ -7407,17 +7407,17 @@ class Rb extends sr {
7407
7407
  const g = A / 2, f = d[0] || [];
7408
7408
  return [f, d[1] || f].map((m, C) => {
7409
7409
  const k = m.length, y = k ? u / k : 0, E = g, b = C === 0 ? -1 : 1, R = [{ x: 0, y: E }];
7410
- let N = 0, w = 0;
7410
+ let w = 0, N = 0;
7411
7411
  for (let B = 0; B <= k; B++) {
7412
- const D = Math.round(B * y);
7413
- if (D > N) {
7414
- const T = E + (Math.round(w * g * h) || 1) * b;
7415
- R.push({ x: N, y: T }), N = D, w = 0;
7412
+ const x = Math.round(B * y);
7413
+ if (x > w) {
7414
+ const D = E + (Math.round(N * g * h) || 1) * b;
7415
+ R.push({ x: w, y: D }), w = x, N = 0;
7416
7416
  }
7417
7417
  const M = Math.abs(m[B] || 0);
7418
- M > w && (w = M);
7418
+ M > N && (N = M);
7419
7419
  }
7420
- return R.push({ x: N, y: E }), R;
7420
+ return R.push({ x: w, y: E }), R;
7421
7421
  });
7422
7422
  }({ channelData: t, width: i, height: l, vScale: o });
7423
7423
  a.beginPath();
@@ -7468,10 +7468,10 @@ class Rb extends sr {
7468
7468
  const C = m * A;
7469
7469
  let k = Math.min(u - C, A);
7470
7470
  if (k = go(k, r), k <= 0) return;
7471
- const y = function({ channelData: E, offset: b, clampedWidth: R, totalWidth: N }) {
7472
- return E.map((w) => {
7473
- const B = Math.floor(b / N * w.length), D = Math.floor((b + R) / N * w.length);
7474
- return w.slice(B, D);
7471
+ const y = function({ channelData: E, offset: b, clampedWidth: R, totalWidth: w }) {
7472
+ return E.map((N) => {
7473
+ const B = Math.floor(b / w * N.length), x = Math.floor((b + R) / w * N.length);
7474
+ return N.slice(B, x);
7475
7475
  });
7476
7476
  }({ channelData: t, offset: C, clampedWidth: k, totalWidth: u });
7477
7477
  this.renderSingleCanvas(y, r, k, o, C, i, l);
@@ -7760,8 +7760,8 @@ class $n extends Sb {
7760
7760
  super({ media: r, mediaControls: t.mediaControls, autoplay: t.autoplay, playbackRate: t.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this._isDestroyed = !1, this._loadVersion = 0, this.options = Object.assign({}, xb, t);
7761
7761
  const { state: a, actions: o } = function(c) {
7762
7762
  var d, u, A, h, g, f;
7763
- const m = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : Re(0), C = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : Re(0), k = (A = c == null ? void 0 : c.isPlaying) !== null && A !== void 0 ? A : Re(!1), y = (h = c == null ? void 0 : c.isSeeking) !== null && h !== void 0 ? h : Re(!1), E = (g = c == null ? void 0 : c.volume) !== null && g !== void 0 ? g : Re(1), b = (f = c == null ? void 0 : c.playbackRate) !== null && f !== void 0 ? f : Re(1), R = Re(null), N = Re(null), w = Re(""), B = Re(0), D = Re(0), M = Zt(() => !k.value, [k]), T = Zt(() => R.value !== null, [R]), Q = Zt(() => T.value && C.value > 0, [T, C]), x = Zt(() => m.value, [m]), U = Zt(() => C.value > 0 ? m.value / C.value : 0, [m, C]);
7764
- return { state: { currentTime: m, duration: C, isPlaying: k, isPaused: M, isSeeking: y, volume: E, playbackRate: b, audioBuffer: R, peaks: N, url: w, zoom: B, scrollPosition: D, canPlay: T, isReady: Q, progress: x, progressPercent: U }, actions: { setCurrentTime: (O) => {
7763
+ const m = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : Re(0), C = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : Re(0), k = (A = c == null ? void 0 : c.isPlaying) !== null && A !== void 0 ? A : Re(!1), y = (h = c == null ? void 0 : c.isSeeking) !== null && h !== void 0 ? h : Re(!1), E = (g = c == null ? void 0 : c.volume) !== null && g !== void 0 ? g : Re(1), b = (f = c == null ? void 0 : c.playbackRate) !== null && f !== void 0 ? f : Re(1), R = Re(null), w = Re(null), N = Re(""), B = Re(0), x = Re(0), M = Zt(() => !k.value, [k]), D = Zt(() => R.value !== null, [R]), Q = Zt(() => D.value && C.value > 0, [D, C]), T = Zt(() => m.value, [m]), U = Zt(() => C.value > 0 ? m.value / C.value : 0, [m, C]);
7764
+ return { state: { currentTime: m, duration: C, isPlaying: k, isPaused: M, isSeeking: y, volume: E, playbackRate: b, audioBuffer: R, peaks: w, url: N, zoom: B, scrollPosition: x, canPlay: D, isReady: Q, progress: T, progressPercent: U }, actions: { setCurrentTime: (O) => {
7765
7765
  const P = Math.max(0, Math.min(C.value || 1 / 0, O));
7766
7766
  m.set(P);
7767
7767
  }, setDuration: (O) => {
@@ -7779,13 +7779,13 @@ class $n extends Sb {
7779
7779
  }, setAudioBuffer: (O) => {
7780
7780
  R.set(O), O && C.set(O.duration);
7781
7781
  }, setPeaks: (O) => {
7782
- N.set(O);
7783
- }, setUrl: (O) => {
7784
7782
  w.set(O);
7783
+ }, setUrl: (O) => {
7784
+ N.set(O);
7785
7785
  }, setZoom: (O) => {
7786
7786
  B.set(Math.max(0, O));
7787
7787
  }, setScrollPosition: (O) => {
7788
- D.set(Math.max(0, O));
7788
+ x.set(Math.max(0, O));
7789
7789
  } } };
7790
7790
  }({ isPlaying: this.isPlayingSignal, currentTime: this.currentTimeSignal, duration: this.durationSignal, volume: this.volumeSignal, playbackRate: this.playbackRateSignal, isSeeking: this.seekingSignal });
7791
7791
  this.wavesurferState = a, this.wavesurferActions = o, this.timer = new Bb();
@@ -8130,14 +8130,14 @@ const ic = Xe((n) => {
8130
8130
  id: f,
8131
8131
  tabIndex: m
8132
8132
  }, C) {
8133
- const [k, y] = j(!1), [E, b] = j(!1), [R, N] = j(!1), w = X(null), B = X(!1), D = X(null), M = X(null), T = a || !E;
8133
+ const [k, y] = j(!1), [E, b] = j(!1), [R, w] = j(!1), N = X(null), B = X(!1), x = X(null), M = X(null), D = a || !E;
8134
8134
  ie(() => {
8135
- typeof navigator < "u" && N(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
8135
+ typeof navigator < "u" && w(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
8136
8136
  }, []);
8137
8137
  const Q = J(() => {
8138
8138
  var K;
8139
- (K = w.current) == null || K.pause();
8140
- }, []), x = J(
8139
+ (K = N.current) == null || K.pause();
8140
+ }, []), T = J(
8141
8141
  (K) => {
8142
8142
  h && (K == null || K.setOptions({ progressColor: u }));
8143
8143
  },
@@ -8154,21 +8154,21 @@ const ic = Xe((n) => {
8154
8154
  wasPlaying: !!((ve = o == null ? void 0 : o.state) != null && ve.isPlaying)
8155
8155
  };
8156
8156
  const ce = (Qe = ne.getCurrentTime) == null ? void 0 : Qe.call(ne), z = !!((le = ne == null ? void 0 : ne.isPlaying) != null && le.call(ne)), L = z || !!((Me = o == null ? void 0 : o.state) != null && Me.isPlaying);
8157
- return ne !== V && (ne.pause(), x(ne)), typeof $ == "number" ? K.setTime($) : F && typeof ce == "number" && K.setTime(ce), {
8157
+ return ne !== V && (ne.pause(), T(ne)), typeof $ == "number" ? K.setTime($) : F && typeof ce == "number" && K.setTime(ce), {
8158
8158
  isHandoff: !0,
8159
8159
  previousActive: ne,
8160
8160
  previousWasPlaying: z,
8161
8161
  wasPlaying: L
8162
8162
  };
8163
8163
  },
8164
- [x, o]
8164
+ [T, o]
8165
8165
  ), O = J(() => {
8166
- const K = w.current;
8166
+ const K = N.current;
8167
8167
  K && (R || K.setOptions({ progressColor: A }), K.play());
8168
8168
  }, [R, A]), P = J(() => {
8169
8169
  var V;
8170
- const K = w.current;
8171
- if (T || !K) return;
8170
+ const K = N.current;
8171
+ if (D || !K) return;
8172
8172
  const $ = (V = o == null ? void 0 : o.state) == null ? void 0 : V.active;
8173
8173
  if ($ && $ !== K) {
8174
8174
  const ne = U(K, {
@@ -8178,7 +8178,7 @@ const ic = Xe((n) => {
8178
8178
  } else
8179
8179
  M.current = null;
8180
8180
  O();
8181
- }, [T, O, U, o]);
8181
+ }, [D, O, U, o]);
8182
8182
  Nd(
8183
8183
  C,
8184
8184
  () => ({
@@ -8187,23 +8187,23 @@ const ic = Xe((n) => {
8187
8187
  isReady: () => E,
8188
8188
  isPlaying: () => {
8189
8189
  var K;
8190
- return !!((K = w.current) != null && K.isPlaying());
8190
+ return !!((K = N.current) != null && K.isPlaying());
8191
8191
  }
8192
8192
  }),
8193
8193
  [P, Q, E]
8194
8194
  ), ie(() => {
8195
- w.current && t && (w.current.load(t), b(!1));
8195
+ N.current && t && (N.current.load(t), b(!1));
8196
8196
  }, [t]);
8197
8197
  const G = J((K) => {
8198
- w.current = K, b(!0), y(!1);
8198
+ N.current = K, b(!0), y(!1);
8199
8199
  }, []), ee = J(
8200
8200
  (K) => {
8201
- const $ = B.current, F = M.current, V = D.current;
8201
+ const $ = B.current, F = M.current, V = x.current;
8202
8202
  y(!0), l == null || l(!0), $ || i == null || i(), o && (U(K, {
8203
8203
  seekTime: $ ? V : void 0,
8204
8204
  syncTime: !$ && !F,
8205
8205
  skipPauseFor: F
8206
- }), B.current = !1, D.current = null, M.current = null, o.setter((ne) => ({
8206
+ }), B.current = !1, x.current = null, M.current = null, o.setter((ne) => ({
8207
8207
  ...ne,
8208
8208
  isPlaying: !0,
8209
8209
  lastPlayed: K,
@@ -8212,16 +8212,16 @@ const ic = Xe((n) => {
8212
8212
  },
8213
8213
  [U, l, i, o]
8214
8214
  ), q = J(() => {
8215
- y(!1), l == null || l(!1), o && (o.state.active !== w.current && x(w.current), o.setter((K) => K.active !== w.current ? K : {
8215
+ y(!1), l == null || l(!1), o && (o.state.active !== N.current && T(N.current), o.setter((K) => K.active !== N.current ? K : {
8216
8216
  ...K,
8217
8217
  isPlaying: !1
8218
8218
  }));
8219
- }, [l, o, x]), W = J(
8219
+ }, [l, o, T]), W = J(
8220
8220
  (K) => {
8221
8221
  if (!o) return;
8222
8222
  const $ = o.state.active;
8223
8223
  if ($ && $ !== K) {
8224
- x($);
8224
+ T($);
8225
8225
  return;
8226
8226
  }
8227
8227
  o.setter((V) => ({
@@ -8229,11 +8229,11 @@ const ic = Xe((n) => {
8229
8229
  active: K
8230
8230
  }));
8231
8231
  },
8232
- [x, o]
8232
+ [T, o]
8233
8233
  ), Y = J(
8234
8234
  (K, $) => {
8235
8235
  var ce, z;
8236
- if (T || i == null || i(), !o) return;
8236
+ if (D || i == null || i(), !o) return;
8237
8237
  const F = o.state.active;
8238
8238
  if (!(F && F !== K)) {
8239
8239
  o.setter((L) => ({
@@ -8246,7 +8246,7 @@ const ic = Xe((n) => {
8246
8246
  const ne = typeof $ == "number" ? $ : ((ce = K.getCurrentTime) == null ? void 0 : ce.call(K)) ?? 0, fe = U(K, {
8247
8247
  seekTime: ne
8248
8248
  });
8249
- D.current = ne, B.current = !0, fe.previousWasPlaying || (z = F.emit) == null || z.call(F, "pause"), R || K.setOptions({ progressColor: A }), fe.wasPlaying && K.play(), o.setter((L) => ({
8249
+ x.current = ne, B.current = !0, fe.previousWasPlaying || (z = F.emit) == null || z.call(F, "pause"), R || K.setOptions({ progressColor: A }), fe.wasPlaying && K.play(), o.setter((L) => ({
8250
8250
  ...L,
8251
8251
  active: K,
8252
8252
  lastPlayed: K,
@@ -8258,27 +8258,27 @@ const ic = Xe((n) => {
8258
8258
  R,
8259
8259
  A,
8260
8260
  U,
8261
- T,
8261
+ D,
8262
8262
  i
8263
8263
  ]
8264
8264
  ), pe = J(() => {
8265
8265
  var K;
8266
- d ? (K = w.current) == null || K.play() : (y(!1), l == null || l(!1), o && o.setter(($) => ({
8266
+ d ? (K = N.current) == null || K.play() : (y(!1), l == null || l(!1), o && o.setter(($) => ({
8267
8267
  ...$,
8268
8268
  isPlaying: !1,
8269
8269
  active: null
8270
8270
  })));
8271
8271
  }, [d, l, o]), ue = J(() => {
8272
- if (!(T || !w.current)) {
8273
- if (w.current.isPlaying()) {
8272
+ if (!(D || !N.current)) {
8273
+ if (N.current.isPlaying()) {
8274
8274
  Q();
8275
8275
  return;
8276
8276
  }
8277
8277
  P();
8278
8278
  }
8279
- }, [T, Q, P]), me = J(() => {
8280
- T || i == null || i();
8281
- }, [T, i]);
8279
+ }, [D, Q, P]), me = J(() => {
8280
+ D || i == null || i();
8281
+ }, [D, i]);
8282
8282
  return /* @__PURE__ */ v(
8283
8283
  "div",
8284
8284
  {
@@ -8287,13 +8287,13 @@ const ic = Xe((n) => {
8287
8287
  St.previewCard,
8288
8288
  r && St.selected,
8289
8289
  k && St.playing,
8290
- T && St.skeleton,
8290
+ D && St.skeleton,
8291
8291
  g
8292
8292
  ),
8293
8293
  onClick: me,
8294
8294
  role: "option",
8295
8295
  "aria-selected": r,
8296
- tabIndex: T ? -1 : m ?? 0,
8296
+ tabIndex: D ? -1 : m ?? 0,
8297
8297
  onKeyDown: (K) => {
8298
8298
  (K.key === "Enter" || K.key === " ") && (K.preventDefault(), me());
8299
8299
  },
@@ -8304,7 +8304,7 @@ const ic = Xe((n) => {
8304
8304
  type: "button",
8305
8305
  className: S(St.leftButton, k && St.isPlaying),
8306
8306
  onClick: ue,
8307
- disabled: T,
8307
+ disabled: D,
8308
8308
  "aria-label": k ? "Pause" : "Play",
8309
8309
  children: k ? /* @__PURE__ */ s(Ko, { width: 18, height: 18, "aria-hidden": "true" }) : /* @__PURE__ */ s(Vo, { width: 18, height: 18, "aria-hidden": "true" })
8310
8310
  }
@@ -8525,7 +8525,7 @@ const pI = ({
8525
8525
  },
8526
8526
  labels: {},
8527
8527
  showCover: !0,
8528
- lockHifi: !1
8528
+ toggleHifi: !1
8529
8529
  }), gI = "_tracksCollapsible_5gsn9_1", mI = "_extraTracksCollapsible_5gsn9_5", fI = "_extraTracksInner_5gsn9_10", CI = "_tracksContent_5gsn9_14", Pn = {
8530
8530
  tracksCollapsible: gI,
8531
8531
  extraTracksCollapsible: mI,
@@ -8611,26 +8611,28 @@ const pI = ({
8611
8611
  failed: c = !1,
8612
8612
  children: d,
8613
8613
  labels: u = {},
8614
- ...A
8614
+ duration: A,
8615
+ toggleHifi: h,
8616
+ ...g
8615
8617
  }) => {
8616
8618
  const {
8617
- projects: h,
8618
- onProjectClick: g,
8619
- openedItem: f,
8620
- setOpenedItem: m
8621
- } = tt(zt), C = J(() => {
8619
+ projects: f,
8620
+ onProjectClick: m,
8621
+ openedItem: C,
8622
+ setOpenedItem: k
8623
+ } = tt(zt), y = J(() => {
8622
8624
  if (c) return;
8623
- const k = h.find((y) => y.id === n);
8624
- f === n ? (m(null), g == null || g(k, !1)) : (m(n), g == null || g(k, !0));
8625
- }, [n, f, m, g, h, c]);
8625
+ const E = f.find((b) => b.id === n);
8626
+ C === n ? (k(null), m == null || m(E, !1)) : (k(n), m == null || m(E, !0));
8627
+ }, [n, C, k, m, f, c]);
8626
8628
  return /* @__PURE__ */ v(
8627
8629
  I,
8628
8630
  {
8629
8631
  direction: "column",
8630
8632
  p: "1",
8631
- className: `${Yt.item} ${f === n ? Yt.opened : ""} ${c ? Yt.failed : ""}`,
8632
- onClick: C,
8633
- ...A,
8633
+ className: `${Yt.item} ${C === n ? Yt.opened : ""} ${c ? Yt.failed : ""}`,
8634
+ onClick: y,
8635
+ ...g,
8634
8636
  children: [
8635
8637
  /* @__PURE__ */ v(I, { direction: "row", gap: "3", children: [
8636
8638
  /* @__PURE__ */ s(I, { className: Yt.projectCover, children: /* @__PURE__ */ s(ar, { type: o, cover: a, title: t, size: "48px" }) }),
@@ -8777,7 +8779,7 @@ const zI = ({
8777
8779
  onSubmit: l,
8778
8780
  setIsChangingStems: c
8779
8781
  }) => {
8780
- const { openedItem: d, onShowPaywall: u, lockHifi: A } = tt(zt), {
8782
+ const { openedItem: d, onShowPaywall: u, toggleHifi: A } = tt(zt), {
8781
8783
  stemsSelected: h,
8782
8784
  hasChanges: g,
8783
8785
  onToggleStems: f
@@ -8867,33 +8869,35 @@ const zI = ({
8867
8869
  children: d,
8868
8870
  labels: u = {},
8869
8871
  stemSeparation: A,
8870
- ...h
8872
+ duration: h,
8873
+ toggleHifi: g,
8874
+ ...f
8871
8875
  }) => {
8872
8876
  const {
8873
- projects: g,
8874
- onProjectClick: f,
8875
- onSubmitStemSeparation: m,
8876
- openedItem: C,
8877
- setOpenedItem: k
8878
- } = tt(zt), [y, E] = j(!1), b = C === n;
8877
+ projects: m,
8878
+ onProjectClick: C,
8879
+ onSubmitStemSeparation: k,
8880
+ openedItem: y,
8881
+ setOpenedItem: E
8882
+ } = tt(zt), [b, R] = j(!1), w = y === n;
8879
8883
  ie(() => {
8880
- b || E(!1);
8881
- }, [b]);
8882
- const R = J(() => {
8884
+ w || R(!1);
8885
+ }, [w]);
8886
+ const N = J(() => {
8883
8887
  if (c) return;
8884
- const w = g.find((B) => B.id === n);
8885
- C === n ? (k(null), f == null || f(w, !1)) : (k(n), f == null || f(w, !0));
8886
- }, [n, C, k, f, g, c]), N = J((w) => {
8887
- w.stopPropagation(), E((B) => !B);
8888
+ const x = m.find((M) => M.id === n);
8889
+ y === n ? (E(null), C == null || C(x, !1)) : (E(n), C == null || C(x, !0));
8890
+ }, [n, y, E, C, m, c]), B = J((x) => {
8891
+ x.stopPropagation(), R((M) => !M);
8888
8892
  }, []);
8889
8893
  return /* @__PURE__ */ v(
8890
8894
  I,
8891
8895
  {
8892
8896
  direction: "column",
8893
8897
  p: "1",
8894
- className: `${pt.item} ${C === n ? pt.opened : ""} ${c ? pt.failed : ""}`,
8895
- onClick: R,
8896
- ...h,
8898
+ className: `${pt.item} ${y === n ? pt.opened : ""} ${c ? pt.failed : ""}`,
8899
+ onClick: N,
8900
+ ...f,
8897
8901
  children: [
8898
8902
  /* @__PURE__ */ v(I, { direction: "row", gap: "3", children: [
8899
8903
  /* @__PURE__ */ s(I, { className: pt.projectCover, children: /* @__PURE__ */ s(ar, { type: o, cover: a, title: t, size: "48px" }) }),
@@ -8930,16 +8934,16 @@ const zI = ({
8930
8934
  direction: "column",
8931
8935
  pt: "1",
8932
8936
  pr: "1",
8933
- className: `${pt.changeStems} ${y ? pt.changeStemsVisible : ""}`,
8934
- children: b ? /* @__PURE__ */ s(
8937
+ className: `${pt.changeStems} ${b ? pt.changeStemsVisible : ""}`,
8938
+ children: w ? /* @__PURE__ */ s(
8935
8939
  nn,
8936
8940
  {
8937
8941
  variant: "soft",
8938
8942
  color: "gray",
8939
8943
  size: "1",
8940
- onClick: N,
8944
+ onClick: B,
8941
8945
  style: { minWidth: 101 },
8942
- children: y ? u.cancel || "Cancel" : u.changeStems || "Change Stems"
8946
+ children: b ? u.cancel || "Cancel" : u.changeStems || "Change Stems"
8943
8947
  }
8944
8948
  ) : null
8945
8949
  }
@@ -8952,12 +8956,12 @@ const zI = ({
8952
8956
  zI,
8953
8957
  {
8954
8958
  id: n,
8955
- project: g.find((w) => w.id === n),
8956
- open: b && y,
8959
+ project: m.find((x) => x.id === n),
8960
+ open: w && b,
8957
8961
  selected: A.selected,
8958
8962
  options: A.options,
8959
- onSubmit: m,
8960
- setIsChangingStems: E
8963
+ onSubmit: k,
8964
+ setIsChangingStems: R
8961
8965
  }
8962
8966
  ),
8963
8967
  /* @__PURE__ */ s(
@@ -8968,7 +8972,7 @@ const zI = ({
8968
8972
  tracks: i,
8969
8973
  loading: l,
8970
8974
  labels: u,
8971
- open: b && !y,
8975
+ open: w && !b,
8972
8976
  children: d
8973
8977
  }
8974
8978
  )
@@ -9143,32 +9147,32 @@ const zI = ({
9143
9147
  }, h0 = ({ ...n }) => {
9144
9148
  const { onClickTrack: t, onChangeTransfer: r, projects: a, labels: o = {}, showCover: i = !0 } = tt(zt), { projectId: l, id: c, title: d, cover: u, transfers: A, audioUrl: h, loading: g } = n, f = oe(() => A && A.length > 0, [A]), m = 24, C = -24, [k, y] = j(null);
9145
9149
  ie(() => {
9146
- var w;
9147
- f && k === null && y(parseInt(((w = A == null ? void 0 : A[0]) == null ? void 0 : w.pitchShift) ?? 0));
9150
+ var N;
9151
+ f && k === null && y(parseInt(((N = A == null ? void 0 : A[0]) == null ? void 0 : N.pitchShift) ?? 0));
9148
9152
  }, [f, k]);
9149
9153
  const E = oe(() => {
9150
9154
  if (!f && g || f && k === null)
9151
9155
  return !0;
9152
9156
  if (k !== null) {
9153
- const w = A.find((B) => parseInt(B.pitchShift) === k);
9154
- return (w == null ? void 0 : w.loading) === !0 || !(w != null && w.audioUrl);
9157
+ const N = A.find((B) => parseInt(B.pitchShift) === k);
9158
+ return (N == null ? void 0 : N.loading) === !0 || !(N != null && N.audioUrl);
9155
9159
  }
9156
9160
  return !1;
9157
- }, [g, f, k, A]), b = J((w) => {
9161
+ }, [g, f, k, A]), b = J((N) => {
9158
9162
  var B;
9159
- return f ? (B = A == null ? void 0 : A.find((D) => parseInt(D.pitchShift) === w)) == null ? void 0 : B.audioUrl : h;
9160
- }, [f, A, h]), R = J((w) => {
9161
- y(w);
9162
- const B = b(w), D = a.find((M) => M.id === l);
9163
- r == null || r(D, {
9163
+ return f ? (B = A == null ? void 0 : A.find((x) => parseInt(x.pitchShift) === N)) == null ? void 0 : B.audioUrl : h;
9164
+ }, [f, A, h]), R = J((N) => {
9165
+ y(N);
9166
+ const B = b(N), x = a.find((M) => M.id === l);
9167
+ r == null || r(x, {
9164
9168
  id: c,
9165
9169
  title: d,
9166
9170
  audioUrl: B,
9167
9171
  processTrack: !B,
9168
- pitchShift: w
9172
+ pitchShift: N
9169
9173
  });
9170
- }, [r, l, c, d, A]), N = J((w) => {
9171
- w.stopPropagation(), !E && (t == null || t({
9174
+ }, [r, l, c, d, A]), w = J((N) => {
9175
+ N.stopPropagation(), !E && (t == null || t({
9172
9176
  ...n,
9173
9177
  id: c,
9174
9178
  title: d,
@@ -9182,7 +9186,7 @@ const zI = ({
9182
9186
  direction: "row",
9183
9187
  gap: "3",
9184
9188
  className: `${pn.itemTrack} ${!f && !h || E ? pn.disabledHover : ""}`,
9185
- onClick: N,
9189
+ onClick: w,
9186
9190
  children: [
9187
9191
  /* @__PURE__ */ v("div", { className: pn.cover, children: [
9188
9192
  /* @__PURE__ */ s(I, { className: pn.coverImage, children: u && i ? /* @__PURE__ */ s("img", { src: u, alt: d, width: 48, height: 48 }) : /* @__PURE__ */ s(Gd, { width: 16, height: 16 }) }),
@@ -9208,7 +9212,7 @@ const zI = ({
9208
9212
  size: "1",
9209
9213
  disabled: E,
9210
9214
  loading: E,
9211
- onClick: N,
9215
+ onClick: w,
9212
9216
  style: { minWidth: "63px" },
9213
9217
  children: o.process || "Process"
9214
9218
  }
@@ -9235,7 +9239,7 @@ const zI = ({
9235
9239
  onShowPaywall: c,
9236
9240
  labels: d = {},
9237
9241
  showCover: u = !0,
9238
- lockHifi: A = !1
9242
+ toggleHifi: A = !1
9239
9243
  }) => {
9240
9244
  const [h, g] = j(null);
9241
9245
  return /* @__PURE__ */ s(
@@ -9253,7 +9257,7 @@ const zI = ({
9253
9257
  setOpenedItem: g,
9254
9258
  labels: d,
9255
9259
  showCover: u,
9256
- lockHifi: A
9260
+ toggleHifi: A
9257
9261
  },
9258
9262
  children: /* @__PURE__ */ s(I, { direction: "column", width: "100%", children: t.map((f) => f.type === "stems" ? /* @__PURE__ */ s(XI, { ...f, labels: d, children: n }, f.id) : /* @__PURE__ */ s(NI, { ...f, labels: d, children: n }, f.id)) })
9259
9263
  }
@@ -9317,41 +9321,41 @@ const v0 = "_starButton_1311l_1", y0 = "_disabled_1311l_17", k0 = "_readOnly_131
9317
9321
  ...h
9318
9322
  }) => {
9319
9323
  const [g, f] = j(r || 0), [m, C] = j(0), k = t !== void 0 ? t : g, y = t !== void 0, E = J(
9320
- (w) => {
9324
+ (N) => {
9321
9325
  if (a || o) return;
9322
- const B = w + 1, D = B === k ? 0 : B;
9323
- y || f(D), i == null || i({ value: D });
9326
+ const B = N + 1, x = B === k ? 0 : B;
9327
+ y || f(x), i == null || i({ value: x });
9324
9328
  },
9325
9329
  [a, o, y, i, k]
9326
9330
  ), b = J(
9327
- (w) => {
9331
+ (N) => {
9328
9332
  if (a || o) return;
9329
- const B = w.currentTarget.getBoundingClientRect(), D = w.clientX - B.left, M = B.width / n, T = Math.floor(D / M), x = Math.max(0, Math.min(T, n - 1)) + 1;
9330
- x !== m && (C(x), l == null || l({ value: x }));
9333
+ const B = N.currentTarget.getBoundingClientRect(), x = N.clientX - B.left, M = B.width / n, D = Math.floor(x / M), T = Math.max(0, Math.min(D, n - 1)) + 1;
9334
+ T !== m && (C(T), l == null || l({ value: T }));
9331
9335
  },
9332
9336
  [a, o, n, m, l]
9333
9337
  ), R = J(() => {
9334
9338
  a || o || (C(0), l == null || l({ value: 0 }));
9335
- }, [a, o, l]), N = (w) => {
9336
- const B = m > 0 ? w < m : w < k, D = m > 0 && w < m, M = w < k;
9339
+ }, [a, o, l]), w = (N) => {
9340
+ const B = m > 0 ? N < m : N < k, x = m > 0 && N < m, M = N < k;
9337
9341
  return /* @__PURE__ */ s(
9338
9342
  "button",
9339
9343
  {
9340
9344
  type: "button",
9341
9345
  className: S(_e.starButton, {
9342
9346
  [_e.filled]: B,
9343
- [_e.hovered]: D,
9347
+ [_e.hovered]: x,
9344
9348
  [_e.active]: M,
9345
9349
  [_e.disabled]: a,
9346
9350
  [_e.readOnly]: o
9347
9351
  }),
9348
- onClick: () => E(w),
9352
+ onClick: () => E(N),
9349
9353
  disabled: a || o,
9350
- "aria-label": `Rate ${w + 1} out of ${n}`,
9354
+ "aria-label": `Rate ${N + 1} out of ${n}`,
9351
9355
  ...h,
9352
9356
  children: B ? /* @__PURE__ */ s(qd, { className: _e.starIcon }) : /* @__PURE__ */ s(Yd, { className: _e.starIcon })
9353
9357
  },
9354
- w
9358
+ N
9355
9359
  );
9356
9360
  };
9357
9361
  return /* @__PURE__ */ v(
@@ -9377,7 +9381,7 @@ const v0 = "_starButton_1311l_1", y0 = "_disabled_1311l_17", k0 = "_readOnly_131
9377
9381
  "aria-label": `Rating: ${k} out of ${n} stars`,
9378
9382
  onMouseMove: b,
9379
9383
  onMouseLeave: R,
9380
- children: Array.from({ length: n }, (w, B) => N(B))
9384
+ children: Array.from({ length: n }, (N, B) => w(B))
9381
9385
  }
9382
9386
  ),
9383
9387
  (u || A) && /* @__PURE__ */ v(
@@ -9446,20 +9450,20 @@ const T0 = "_select_103tg_1", D0 = "_levelMeter_103tg_5", J0 = "_levelMeterTrack
9446
9450
  onOpenChange: y,
9447
9451
  ...E
9448
9452
  }) => {
9449
- const b = o === null ? "" : o, R = a === null ? void 0 : a, N = !!u, w = N && !!A, B = N && !A || h, [D, M] = j(!1), T = X(!1), Q = (x) => {
9450
- if (!w) {
9451
- y == null || y(x);
9453
+ const b = o === null ? "" : o, R = a === null ? void 0 : a, w = !!u, N = w && !!A, B = w && !A || h, [x, M] = j(!1), D = X(!1), Q = (T) => {
9454
+ if (!N) {
9455
+ y == null || y(T);
9452
9456
  return;
9453
9457
  }
9454
- if (x) {
9455
- M(!0), y == null || y(!0), T.current = !0, setTimeout(() => {
9458
+ if (T) {
9459
+ M(!0), y == null || y(!0), D.current = !0, setTimeout(() => {
9456
9460
  k == null || k(), setTimeout(() => {
9457
- T.current = !1;
9461
+ D.current = !1;
9458
9462
  }, 50);
9459
9463
  }, 0);
9460
9464
  return;
9461
9465
  }
9462
- if (T.current) {
9466
+ if (D.current) {
9463
9467
  M(!0);
9464
9468
  return;
9465
9469
  }
@@ -9479,7 +9483,7 @@ const T0 = "_select_103tg_1", D0 = "_levelMeter_103tg_5", J0 = "_levelMeterTrack
9479
9483
  className: S(n),
9480
9484
  ...E,
9481
9485
  disabled: B,
9482
- open: w ? D : E.open,
9486
+ open: N ? x : E.open,
9483
9487
  onOpenChange: Q,
9484
9488
  children: [
9485
9489
  /* @__PURE__ */ s(
@@ -9492,7 +9496,7 @@ const T0 = "_select_103tg_1", D0 = "_levelMeter_103tg_5", J0 = "_levelMeterTrack
9492
9496
  className: S(Fe.selectTrigger, {
9493
9497
  [Fe.ghost]: d === "ghost",
9494
9498
  [Fe.soft]: d === "soft",
9495
- [Fe.triggerDisabled]: w
9499
+ [Fe.triggerDisabled]: N
9496
9500
  })
9497
9501
  }
9498
9502
  ),
@@ -9502,8 +9506,8 @@ const T0 = "_select_103tg_1", D0 = "_levelMeter_103tg_5", J0 = "_levelMeterTrack
9502
9506
  position: "popper",
9503
9507
  className: Fe.selectContent,
9504
9508
  style: { height: g },
9505
- children: /* @__PURE__ */ s(Da, { children: i.map((x) => {
9506
- if (x.type === "separator")
9509
+ children: /* @__PURE__ */ s(Da, { children: i.map((T) => {
9510
+ if (T.type === "separator")
9507
9511
  return /* @__PURE__ */ s(
9508
9512
  st,
9509
9513
  {
@@ -9513,13 +9517,13 @@ const T0 = "_select_103tg_1", D0 = "_levelMeter_103tg_5", J0 = "_levelMeterTrack
9513
9517
  background: "var(--neutral-alpha-4)"
9514
9518
  }
9515
9519
  },
9516
- x.value
9520
+ T.value
9517
9521
  );
9518
- const U = w || !!x.disabled || h;
9522
+ const U = N || !!T.disabled || h;
9519
9523
  return /* @__PURE__ */ v(
9520
9524
  xi,
9521
9525
  {
9522
- value: x.value,
9526
+ value: T.value,
9523
9527
  className: S("rt-SelectItem", Fe.selectItem, {
9524
9528
  [Fe.hideIndicator]: !f,
9525
9529
  [Fe.size1]: c === "1",
@@ -9543,11 +9547,11 @@ const T0 = "_select_103tg_1", D0 = "_levelMeter_103tg_5", J0 = "_levelMeterTrack
9543
9547
  style: {
9544
9548
  color: U ? "var(--neutral-alpha-9)" : "var(--neutral-12)"
9545
9549
  },
9546
- children: x.label
9550
+ children: T.label
9547
9551
  }
9548
9552
  ),
9549
- x.aiDetected && /* @__PURE__ */ s("span", { className: Fe.aiDetected, "aria-hidden": !0, children: "✦" }),
9550
- x.extra && /* @__PURE__ */ v(
9553
+ T.aiDetected && /* @__PURE__ */ s("span", { className: Fe.aiDetected, "aria-hidden": !0, children: "✦" }),
9554
+ T.extra && /* @__PURE__ */ v(
9551
9555
  H,
9552
9556
  {
9553
9557
  size: c,
@@ -9557,23 +9561,23 @@ const T0 = "_select_103tg_1", D0 = "_levelMeter_103tg_5", J0 = "_levelMeterTrack
9557
9561
  },
9558
9562
  children: [
9559
9563
  " ",
9560
- x.extra
9564
+ T.extra
9561
9565
  ]
9562
9566
  }
9563
9567
  )
9564
9568
  ] }) }),
9565
- x.rightIcon && /* @__PURE__ */ s("span", { className: Fe.rightSlot, children: /* @__PURE__ */ s(
9569
+ T.rightIcon && /* @__PURE__ */ s("span", { className: Fe.rightSlot, children: /* @__PURE__ */ s(
9566
9570
  "span",
9567
9571
  {
9568
9572
  className: S(Fe.rightIcon, {
9569
9573
  [Fe.rightIconDisabled]: U
9570
9574
  }),
9571
- children: x.rightIcon
9575
+ children: T.rightIcon
9572
9576
  }
9573
9577
  ) })
9574
9578
  ]
9575
9579
  },
9576
- x.value
9580
+ T.value
9577
9581
  );
9578
9582
  }) })
9579
9583
  }
@@ -9632,49 +9636,49 @@ const tS = "_boxVertical_ujop8_21", nS = "_sliderRoot_ujop8_27", rS = "_sliderRo
9632
9636
  scrollWheel: y = !1,
9633
9637
  ...E
9634
9638
  }) => {
9635
- const { onWheel: b, ...R } = E, N = m === "vertical", w = (T) => (T - c) / (d - c) * 100, B = J(
9636
- (T) => {
9637
- if (b == null || b(T), h || !r || T.defaultPrevented) return;
9638
- const Q = N ? T.deltaY : Math.abs(T.deltaX) > Math.abs(T.deltaY) ? T.deltaX : T.deltaY;
9639
+ const { onWheel: b, ...R } = E, w = m === "vertical", N = (D) => (D - c) / (d - c) * 100, B = J(
9640
+ (D) => {
9641
+ if (b == null || b(D), h || !r || D.defaultPrevented) return;
9642
+ const Q = w ? D.deltaY : Math.abs(D.deltaX) > Math.abs(D.deltaY) ? D.deltaX : D.deltaY;
9639
9643
  if (Q === 0) return;
9640
- T.preventDefault();
9641
- const x = (o == null ? void 0 : o[0]) ?? c, U = Q < 0 ? 1 : -1, O = Math.min(
9644
+ D.preventDefault();
9645
+ const T = (o == null ? void 0 : o[0]) ?? c, U = Q < 0 ? 1 : -1, O = Math.min(
9642
9646
  d,
9643
- Math.max(c, x + U * u)
9647
+ Math.max(c, T + U * u)
9644
9648
  );
9645
- O !== x && r([O]);
9649
+ O !== T && r([O]);
9646
9650
  },
9647
9651
  [
9648
9652
  h,
9649
9653
  r,
9650
- N,
9654
+ w,
9651
9655
  d,
9652
9656
  c,
9653
9657
  b,
9654
9658
  u,
9655
9659
  o
9656
9660
  ]
9657
- ), D = typeof k == "number" ? `${k}px` : k, M = typeof C == "number" ? `${C}px` : C;
9661
+ ), x = typeof k == "number" ? `${k}px` : k, M = typeof C == "number" ? `${C}px` : C;
9658
9662
  return /* @__PURE__ */ v(
9659
9663
  Ne,
9660
9664
  {
9661
- width: N ? "100%" : M,
9662
- className: S(N && ke.boxVertical),
9663
- style: N ? { "--slider-vertical-height": D } : void 0,
9665
+ width: w ? "100%" : M,
9666
+ className: S(w && ke.boxVertical),
9667
+ style: w ? { "--slider-vertical-height": x } : void 0,
9664
9668
  children: [
9665
9669
  t && /* @__PURE__ */ v(
9666
9670
  I,
9667
9671
  {
9668
9672
  mb: "2",
9669
9673
  width: "100%",
9670
- justify: N ? "center" : "between",
9674
+ justify: w ? "center" : "between",
9671
9675
  align: "center",
9672
9676
  gap: "2",
9673
9677
  children: [
9674
9678
  /* @__PURE__ */ v(I, { align: "center", gap: "2", wrap: "wrap", justify: "center", children: [
9675
9679
  /* @__PURE__ */ s(H, { size: "2", style: { color: "var(--white)" }, children: t }),
9676
9680
  l && /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(rt, { content: l }) }),
9677
- N && i && /* @__PURE__ */ s(
9681
+ w && i && /* @__PURE__ */ s(
9678
9682
  H,
9679
9683
  {
9680
9684
  size: "2",
@@ -9684,7 +9688,7 @@ const tS = "_boxVertical_ujop8_21", nS = "_sliderRoot_ujop8_27", rS = "_sliderRo
9684
9688
  }
9685
9689
  )
9686
9690
  ] }),
9687
- !N && i && /* @__PURE__ */ s(
9691
+ !w && i && /* @__PURE__ */ s(
9688
9692
  H,
9689
9693
  {
9690
9694
  size: "2",
@@ -9696,7 +9700,7 @@ const tS = "_boxVertical_ujop8_21", nS = "_sliderRoot_ujop8_27", rS = "_sliderRo
9696
9700
  ]
9697
9701
  }
9698
9702
  ),
9699
- /* @__PURE__ */ s(I, { direction: "column", align: N ? "center" : void 0, children: /* @__PURE__ */ s(
9703
+ /* @__PURE__ */ s(I, { direction: "column", align: w ? "center" : void 0, children: /* @__PURE__ */ s(
9700
9704
  Vr,
9701
9705
  {
9702
9706
  min: c,
@@ -9707,7 +9711,7 @@ const tS = "_boxVertical_ujop8_21", nS = "_sliderRoot_ujop8_27", rS = "_sliderRo
9707
9711
  disabled: h,
9708
9712
  orientation: m,
9709
9713
  className: S(ke.sliderRoot, n, {
9710
- [ke.sliderRootVertical]: N
9714
+ [ke.sliderRootVertical]: w
9711
9715
  }),
9712
9716
  onWheel: y ? B : b,
9713
9717
  ...R,
@@ -9715,7 +9719,7 @@ const tS = "_boxVertical_ujop8_21", nS = "_sliderRoot_ujop8_27", rS = "_sliderRo
9715
9719
  I,
9716
9720
  {
9717
9721
  className: S(ke.sliderContainer, {
9718
- [ke.sliderContainerVertical]: N
9722
+ [ke.sliderContainerVertical]: w
9719
9723
  }),
9720
9724
  children: [
9721
9725
  /* @__PURE__ */ v(
@@ -9725,10 +9729,10 @@ const tS = "_boxVertical_ujop8_21", nS = "_sliderRoot_ujop8_27", rS = "_sliderRo
9725
9729
  [ke.sliderTrackSize1]: A === "1",
9726
9730
  [ke.sliderTrackSize2]: A === "2",
9727
9731
  [ke.sliderTrackSize3]: A === "3",
9728
- [ke.sliderTrackVertical]: N,
9729
- [ke.sliderTrackVerticalSize1]: N && A === "1",
9730
- [ke.sliderTrackVerticalSize2]: N && A === "2",
9731
- [ke.sliderTrackVerticalSize3]: N && A === "3"
9732
+ [ke.sliderTrackVertical]: w,
9733
+ [ke.sliderTrackVerticalSize1]: w && A === "1",
9734
+ [ke.sliderTrackVerticalSize2]: w && A === "2",
9735
+ [ke.sliderTrackVerticalSize3]: w && A === "3"
9732
9736
  }),
9733
9737
  children: [
9734
9738
  /* @__PURE__ */ s(
@@ -9755,17 +9759,17 @@ const tS = "_boxVertical_ujop8_21", nS = "_sliderRoot_ujop8_27", rS = "_sliderRo
9755
9759
  ]
9756
9760
  }
9757
9761
  ),
9758
- f.length > 0 && /* @__PURE__ */ s("div", { className: ke.markersContainer, children: f.map((T, Q) => /* @__PURE__ */ s(
9762
+ f.length > 0 && /* @__PURE__ */ s("div", { className: ke.markersContainer, children: f.map((D, Q) => /* @__PURE__ */ s(
9759
9763
  "div",
9760
9764
  {
9761
9765
  className: S(ke.marker, {
9762
9766
  [ke.markerSize3]: A === "3",
9763
- [ke.markerVertical]: N
9767
+ [ke.markerVertical]: w
9764
9768
  }),
9765
- style: N ? {
9766
- bottom: `${w(T)}%`
9769
+ style: w ? {
9770
+ bottom: `${N(D)}%`
9767
9771
  } : {
9768
- left: `${w(T)}%`
9772
+ left: `${N(D)}%`
9769
9773
  }
9770
9774
  },
9771
9775
  Q
@@ -10156,16 +10160,16 @@ const dc = ({
10156
10160
  onDragEnter: E,
10157
10161
  onDragLeave: b,
10158
10162
  onDragOver: R,
10159
- onDrop: N,
10160
- isLoading: w = !1
10163
+ onDrop: w,
10164
+ isLoading: N = !1
10161
10165
  }) => {
10162
- const [B, D] = j(!1), M = !!y, { setNodeRef: T, isOver: Q } = ti({
10166
+ const [B, x] = j(!1), M = !!y, { setNodeRef: D, isOver: Q } = ti({
10163
10167
  id: y ?? "__setlist-item-noop__",
10164
10168
  disabled: !M
10165
- }), x = () => {
10166
- D(!0);
10169
+ }), T = () => {
10170
+ x(!0);
10167
10171
  }, U = () => {
10168
- D(!1);
10172
+ x(!1);
10169
10173
  }, O = (G) => {
10170
10174
  G.stopPropagation();
10171
10175
  }, P = (G) => {
@@ -10174,7 +10178,7 @@ const dc = ({
10174
10178
  return /* @__PURE__ */ v(
10175
10179
  I,
10176
10180
  {
10177
- ref: M ? T : void 0,
10181
+ ref: M ? D : void 0,
10178
10182
  gap: "3",
10179
10183
  align: "center",
10180
10184
  role: r ? "button" : void 0,
@@ -10186,13 +10190,13 @@ const dc = ({
10186
10190
  [ae.menuOpen]: u,
10187
10191
  [ae.dropTarget]: C && k || Q
10188
10192
  }),
10189
- onMouseEnter: x,
10193
+ onMouseEnter: T,
10190
10194
  onMouseLeave: U,
10191
10195
  "data-setlist-id": t,
10192
10196
  onDragEnter: C ? E : void 0,
10193
10197
  onDragLeave: C ? b : void 0,
10194
10198
  onDragOver: C ? R : void 0,
10195
- onDrop: C ? N : void 0,
10199
+ onDrop: C ? w : void 0,
10196
10200
  onKeyDown: r ? (G) => {
10197
10201
  (G.key === "Enter" || G.key === " ") && (G.preventDefault(), r == null || r());
10198
10202
  } : void 0,
@@ -10207,7 +10211,7 @@ const dc = ({
10207
10211
  [ae.collapsedInner]: f
10208
10212
  }),
10209
10213
  children: [
10210
- (i || w) && /* @__PURE__ */ s("div", { className: ae.avatarSetlist, children: w ? /* @__PURE__ */ s(br, { className: ae.avatarSetlistSkeleton }) : typeof i == "string" ? /* @__PURE__ */ s(
10214
+ (i || N) && /* @__PURE__ */ s("div", { className: ae.avatarSetlist, children: N ? /* @__PURE__ */ s(br, { className: ae.avatarSetlistSkeleton }) : typeof i == "string" ? /* @__PURE__ */ s(
10211
10215
  dt,
10212
10216
  {
10213
10217
  src: i,
@@ -10220,12 +10224,12 @@ const dc = ({
10220
10224
  I,
10221
10225
  {
10222
10226
  direction: "column",
10223
- gap: w ? "1" : "0",
10227
+ gap: N ? "1" : "0",
10224
10228
  className: S(ae.textWrapper, {
10225
10229
  [ae.textWrapperHidden]: f
10226
10230
  }),
10227
10231
  children: [
10228
- (l || w) && (w ? /* @__PURE__ */ s(br, { className: ae.textNewSetlistSkeleton }) : /* @__PURE__ */ s(
10232
+ (l || N) && (N ? /* @__PURE__ */ s(br, { className: ae.textNewSetlistSkeleton }) : /* @__PURE__ */ s(
10229
10233
  H,
10230
10234
  {
10231
10235
  size: "2",
@@ -10235,7 +10239,7 @@ const dc = ({
10235
10239
  children: l
10236
10240
  }
10237
10241
  )),
10238
- (c || w) && (w ? /* @__PURE__ */ s(br, { className: ae.textSubtitleSkeleton }) : /* @__PURE__ */ s(
10242
+ (c || N) && (N ? /* @__PURE__ */ s(br, { className: ae.textSubtitleSkeleton }) : /* @__PURE__ */ s(
10239
10243
  H,
10240
10244
  {
10241
10245
  size: "1",
@@ -10295,22 +10299,22 @@ const dc = ({
10295
10299
  }) => {
10296
10300
  const { close: k, isMobile: y } = rs(), [E, b] = j(null), R = (Z) => {
10297
10301
  r == null || r(Z), y && k();
10298
- }, N = () => {
10302
+ }, w = () => {
10299
10303
  c == null || c(), y && k();
10300
- }, [w, B] = j(!1), [D, M] = j(!1), [T, Q] = j(!1), [x, U] = j(!1), O = X(null), P = X(null), G = X(null), ee = X(A), q = 50, W = 200, Y = 44, pe = 4, ue = A && c ? 1 : 0, me = A && !w && !x, K = n, $ = n.length + (c ? 1 : 0), F = Math.min(4, $), V = W + Math.max(0, F - 1) * q, ne = V, fe = () => {
10304
+ }, [N, B] = j(!1), [x, M] = j(!1), [D, Q] = j(!1), [T, U] = j(!1), O = X(null), P = X(null), G = X(null), ee = X(A), q = 50, W = 200, Y = 44, pe = 4, ue = A && c ? 1 : 0, me = A && !N && !T, K = n, $ = n.length + (c ? 1 : 0), F = Math.min(4, $), V = W + Math.max(0, F - 1) * q, ne = V, fe = () => {
10301
10305
  O.current && (clearTimeout(O.current), O.current = null), P.current && (clearTimeout(P.current), P.current = null), M(!1), Q(!0), B(!0), P.current = setTimeout(() => {
10302
10306
  Q(!1), P.current = null;
10303
10307
  }, ne);
10304
10308
  }, ce = () => {
10305
- A && (O.current && (clearTimeout(O.current), O.current = null), D ? M(!1) : w || fe());
10309
+ A && (O.current && (clearTimeout(O.current), O.current = null), x ? M(!1) : N || fe());
10306
10310
  }, z = () => {
10307
- A && w && (P.current && (clearTimeout(P.current), P.current = null), Q(!1), M(!0), O.current = setTimeout(() => {
10311
+ A && N && (P.current && (clearTimeout(P.current), P.current = null), Q(!1), M(!0), O.current = setTimeout(() => {
10308
10312
  O.current = null, B(!1), M(!1);
10309
10313
  }, ne));
10310
10314
  }, L = (Z) => {
10311
10315
  A && (Z.stopPropagation(), fe());
10312
10316
  }, de = () => {
10313
- A && !w && fe();
10317
+ A && !N && fe();
10314
10318
  }, ve = () => {
10315
10319
  if (!A) return;
10316
10320
  const Z = G.current;
@@ -10323,13 +10327,13 @@ const dc = ({
10323
10327
  ee.current = A, A && !Z ? (U(!0), Q(!1), M(!0)) : !A && Z && (B(!1), U(!0), M(!1), Q(!0));
10324
10328
  }
10325
10329
  ie(() => {
10326
- if (!x) return;
10330
+ if (!T) return;
10327
10331
  O.current && (clearTimeout(O.current), O.current = null), P.current && (clearTimeout(P.current), P.current = null);
10328
10332
  const Z = setTimeout(() => {
10329
10333
  U(!1), M(!1), Q(!1);
10330
10334
  }, ne);
10331
10335
  return () => clearTimeout(Z);
10332
- }, [x, ne]), ie(() => () => {
10336
+ }, [T, ne]), ie(() => () => {
10333
10337
  O.current && clearTimeout(O.current), P.current && clearTimeout(P.current);
10334
10338
  }, []);
10335
10339
  const Qe = (Z) => {
@@ -10353,10 +10357,10 @@ const dc = ({
10353
10357
  boxShadow: ye[Z],
10354
10358
  transform: nt < 1 ? `scaleX(${nt})` : void 0
10355
10359
  };
10356
- }, le = A && !me || x, Me = A || x, vt = (Z) => {
10360
+ }, le = A && !me || T, Me = A || T, vt = (Z) => {
10357
10361
  if (!le) return;
10358
10362
  const Pe = Z < F;
10359
- if (D) {
10363
+ if (x) {
10360
10364
  if (Pe) {
10361
10365
  const Ce = -(Z * (Y - pe)), ye = Z === 0 ? 1 : (Y - Z * 2) / Y;
10362
10366
  return {
@@ -10371,7 +10375,7 @@ const dc = ({
10371
10375
  zIndex: $ - Z
10372
10376
  };
10373
10377
  }
10374
- if (T) {
10378
+ if (D) {
10375
10379
  if (Pe) {
10376
10380
  const Ce = -(Z * (Y - pe)), ye = Z === 0 ? 1 : (Y - Z * 2) / Y;
10377
10381
  return {
@@ -10430,11 +10434,11 @@ const dc = ({
10430
10434
  ) : /* @__PURE__ */ s(
10431
10435
  yE,
10432
10436
  {
10433
- onClick: N,
10437
+ onClick: w,
10434
10438
  className: S(C, {
10435
10439
  [ae.staggerItem]: le,
10436
- [ae.staggerAnimateIn]: le && T,
10437
- [ae.staggerAnimateOut]: le && D
10440
+ [ae.staggerAnimateIn]: le && D,
10441
+ [ae.staggerAnimateOut]: le && x
10438
10442
  }),
10439
10443
  style: vt(0),
10440
10444
  collapsed: Me,
@@ -10480,11 +10484,11 @@ const dc = ({
10480
10484
  [ae.collapsedStackItem]: me,
10481
10485
  [ae.collapsedTransition]: A && me,
10482
10486
  [ae.staggerItem]: le,
10483
- [ae.staggerAnimateIn]: le && T && we,
10484
- [ae.staggerAnimateOut]: le && D && we,
10485
- [ae.fadeAnimateIn]: le && T && !we,
10486
- [ae.fadeAnimateOut]: le && D && !we,
10487
- [ae.fadeHidden]: !we && A && !w && !x
10487
+ [ae.staggerAnimateIn]: le && D && we,
10488
+ [ae.staggerAnimateOut]: le && x && we,
10489
+ [ae.fadeAnimateIn]: le && D && !we,
10490
+ [ae.fadeAnimateOut]: le && x && !we,
10491
+ [ae.fadeHidden]: !we && A && !N && !T
10488
10492
  }),
10489
10493
  style: {
10490
10494
  ...Qe(Pe),
@@ -10574,25 +10578,25 @@ const dc = ({
10574
10578
  a == null && E(q), o == null || o(q);
10575
10579
  },
10576
10580
  [a, o]
10577
- ), N = h ? !1 : r && !b, w = () => {
10581
+ ), w = h ? !1 : r && !b, N = () => {
10578
10582
  h || (k(!1), R(!1), i((q) => !q));
10579
10583
  }, B = () => {
10580
10584
  h || k(!0);
10581
- }, D = () => {
10585
+ }, x = () => {
10582
10586
  h || k(!1);
10583
10587
  }, M = (q) => {
10584
- N ? w() : l && l(q);
10585
- }, T = () => {
10588
+ w ? N() : l && l(q);
10589
+ }, D = () => {
10586
10590
  h || !r || R(!0);
10587
10591
  }, Q = () => {
10588
10592
  R(!1);
10589
- }, x = (q) => {
10590
- B(), q.buttons > 0 && T();
10593
+ }, T = (q) => {
10594
+ B(), q.buttons > 0 && D();
10591
10595
  }, U = () => {
10592
- T();
10596
+ D();
10593
10597
  }, O = (q) => {
10594
- h || !r || (q.preventDefault(), T());
10595
- }, P = N ? "Expand menu" : "Moises", G = "Moises";
10598
+ h || !r || (q.preventDefault(), D());
10599
+ }, P = w ? "Expand menu" : "Moises", G = "Moises";
10596
10600
  ie(() => {
10597
10601
  if (!b) return;
10598
10602
  const q = () => {
@@ -10609,7 +10613,7 @@ const dc = ({
10609
10613
  "div",
10610
10614
  {
10611
10615
  className: S(Ae.logoToggleContainer, {
10612
- [Ae.logoToggleContainerCollapsed]: N
10616
+ [Ae.logoToggleContainerCollapsed]: w
10613
10617
  }),
10614
10618
  children: [
10615
10619
  /* @__PURE__ */ s(
@@ -10618,7 +10622,7 @@ const dc = ({
10618
10622
  width: 32,
10619
10623
  height: 17,
10620
10624
  className: S(Ae.logoInContainer, {
10621
- [Ae.logoInContainerHidden]: N && C
10625
+ [Ae.logoInContainerHidden]: w && C
10622
10626
  })
10623
10627
  }
10624
10628
  ),
@@ -10628,7 +10632,7 @@ const dc = ({
10628
10632
  width: 16,
10629
10633
  height: 16,
10630
10634
  className: S(Ae.toggleInContainer, {
10631
- [Ae.toggleInContainerVisible]: N && C
10635
+ [Ae.toggleInContainerVisible]: w && C
10632
10636
  })
10633
10637
  }
10634
10638
  )
@@ -10640,7 +10644,7 @@ const dc = ({
10640
10644
  {
10641
10645
  height: 12.269,
10642
10646
  className: S(Ae.moisesIcon, {
10643
- [Ae.moisesIconHidden]: N
10647
+ [Ae.moisesIconHidden]: w
10644
10648
  })
10645
10649
  }
10646
10650
  )
@@ -10649,7 +10653,7 @@ const dc = ({
10649
10653
  "div",
10650
10654
  {
10651
10655
  className: S(Ae.root, {
10652
- [Ae.rootCollapsed]: N,
10656
+ [Ae.rootCollapsed]: w,
10653
10657
  [Ae.rootMobile]: h
10654
10658
  }),
10655
10659
  ...u,
@@ -10677,7 +10681,7 @@ const dc = ({
10677
10681
  gap: "2",
10678
10682
  height: "38px",
10679
10683
  style: {
10680
- cursor: N || l ? "pointer" : "default"
10684
+ cursor: w || l ? "pointer" : "default"
10681
10685
  },
10682
10686
  children: [
10683
10687
  /* @__PURE__ */ s(Ha, { width: 32, height: 17 }),
@@ -10724,19 +10728,19 @@ const dc = ({
10724
10728
  {
10725
10729
  direction: "column",
10726
10730
  className: Ae.desktopSidebar,
10727
- onMouseEnter: x,
10728
- onMouseLeave: D,
10731
+ onMouseEnter: T,
10732
+ onMouseLeave: x,
10729
10733
  onDragEnter: U,
10730
10734
  onDragOver: O,
10731
10735
  onDrop: Q,
10732
10736
  children: [
10733
- N ? /* @__PURE__ */ s("div", { className: Ae.headerWrapper, children: /* @__PURE__ */ s(Ge, { content: c, side: "right", sideOffset: 5, align: "center", alignOffset: 0, children: /* @__PURE__ */ s("div", { className: Ae.tooltipTriggerWrapper, children: /* @__PURE__ */ v(
10737
+ w ? /* @__PURE__ */ s("div", { className: Ae.headerWrapper, children: /* @__PURE__ */ s(Ge, { content: c, side: "right", sideOffset: 5, align: "center", alignOffset: 0, children: /* @__PURE__ */ s("div", { className: Ae.tooltipTriggerWrapper, children: /* @__PURE__ */ v(
10734
10738
  I,
10735
10739
  {
10736
10740
  align: "center",
10737
10741
  justify: "between",
10738
10742
  className: S(Ae.header, {
10739
- [Ae.headerCollapsed]: N
10743
+ [Ae.headerCollapsed]: w
10740
10744
  }),
10741
10745
  children: [
10742
10746
  /* @__PURE__ */ s(
@@ -10752,7 +10756,7 @@ const dc = ({
10752
10756
  align: "center",
10753
10757
  gap: "2",
10754
10758
  style: {
10755
- cursor: N || l ? "pointer" : "default"
10759
+ cursor: w || l ? "pointer" : "default"
10756
10760
  },
10757
10761
  children: ee
10758
10762
  }
@@ -10763,9 +10767,9 @@ const dc = ({
10763
10767
  "button",
10764
10768
  {
10765
10769
  type: "button",
10766
- onClick: w,
10770
+ onClick: N,
10767
10771
  className: S(Ae.toggleButton, {
10768
- [Ae.toggleButtonHidden]: N
10772
+ [Ae.toggleButtonHidden]: w
10769
10773
  }),
10770
10774
  "aria-label": "Collapse menu",
10771
10775
  children: /* @__PURE__ */ s(cs, { width: 16, height: 16 })
@@ -10779,7 +10783,7 @@ const dc = ({
10779
10783
  align: "center",
10780
10784
  justify: "between",
10781
10785
  className: S(Ae.header, {
10782
- [Ae.headerCollapsed]: N
10786
+ [Ae.headerCollapsed]: w
10783
10787
  }),
10784
10788
  children: [
10785
10789
  /* @__PURE__ */ s(
@@ -10795,7 +10799,7 @@ const dc = ({
10795
10799
  align: "center",
10796
10800
  gap: "2",
10797
10801
  style: {
10798
- cursor: N || l ? "pointer" : "default"
10802
+ cursor: w || l ? "pointer" : "default"
10799
10803
  },
10800
10804
  children: ee
10801
10805
  }
@@ -10806,9 +10810,9 @@ const dc = ({
10806
10810
  "button",
10807
10811
  {
10808
10812
  type: "button",
10809
- onClick: w,
10813
+ onClick: N,
10810
10814
  className: S(Ae.toggleButton, {
10811
- [Ae.toggleButtonHidden]: N
10815
+ [Ae.toggleButtonHidden]: w
10812
10816
  }),
10813
10817
  "aria-label": "Collapse menu",
10814
10818
  children: /* @__PURE__ */ s(cs, { width: 16, height: 16 })
@@ -10854,7 +10858,7 @@ const _E = "_sectionTitle_bwlze_1", $E = "_separator_bwlze_17", fo = {
10854
10858
  sidebarTooltip: m,
10855
10859
  children: C
10856
10860
  }) => {
10857
- const [k, y] = j(!1), [E, b] = j(!1), { isMobile: R } = uc(), N = R ? !1 : k && !E;
10861
+ const [k, y] = j(!1), [E, b] = j(!1), { isMobile: R } = uc(), w = R ? !1 : k && !E;
10858
10862
  return /* @__PURE__ */ v(be, { children: [
10859
10863
  /* @__PURE__ */ v(
10860
10864
  hc,
@@ -10866,14 +10870,14 @@ const _E = "_sectionTitle_bwlze_1", $E = "_separator_bwlze_17", fo = {
10866
10870
  tooltip: m,
10867
10871
  children: [
10868
10872
  /* @__PURE__ */ v(I, { direction: "column", children: [
10869
- /* @__PURE__ */ s(Co, { title: "PRODUCTS", collapsed: N }),
10873
+ /* @__PURE__ */ s(Co, { title: "PRODUCTS", collapsed: w }),
10870
10874
  /* @__PURE__ */ s(
10871
10875
  nI,
10872
10876
  {
10873
10877
  products: o,
10874
10878
  selectedProductId: i,
10875
10879
  onProductClick: l,
10876
- collapsed: N
10880
+ collapsed: w
10877
10881
  }
10878
10882
  )
10879
10883
  ] }),
@@ -10883,7 +10887,7 @@ const _E = "_sectionTitle_bwlze_1", $E = "_separator_bwlze_17", fo = {
10883
10887
  direction: "column",
10884
10888
  style: { overflow: "hidden", flex: 1, minHeight: 0 },
10885
10889
  children: [
10886
- /* @__PURE__ */ s(Co, { title: "SETLISTS", collapsed: N }),
10890
+ /* @__PURE__ */ s(Co, { title: "SETLISTS", collapsed: w }),
10887
10891
  /* @__PURE__ */ s(
10888
10892
  bE,
10889
10893
  {
@@ -10893,7 +10897,7 @@ const _E = "_sectionTitle_bwlze_1", $E = "_separator_bwlze_17", fo = {
10893
10897
  onNewSetlistClick: A,
10894
10898
  newSetlistButtonTooltip: h,
10895
10899
  expandButtonTooltip: g,
10896
- collapsed: N,
10900
+ collapsed: w,
10897
10901
  isMobile: R
10898
10902
  }
10899
10903
  )
@@ -10910,7 +10914,7 @@ const _E = "_sectionTitle_bwlze_1", $E = "_separator_bwlze_17", fo = {
10910
10914
  /* @__PURE__ */ s(
10911
10915
  Fg,
10912
10916
  {
10913
- collapsed: N,
10917
+ collapsed: w,
10914
10918
  additionalItems: n,
10915
10919
  selectedAdditionalItemId: t
10916
10920
  }
@@ -10920,7 +10924,7 @@ const _E = "_sectionTitle_bwlze_1", $E = "_separator_bwlze_17", fo = {
10920
10924
  {
10921
10925
  user: r,
10922
10926
  menuOptions: r == null ? void 0 : r.menuOptions,
10923
- collapsed: N,
10927
+ collapsed: w,
10924
10928
  tooltip: f
10925
10929
  }
10926
10930
  )
@@ -10952,14 +10956,14 @@ const _E = "_sectionTitle_bwlze_1", $E = "_separator_bwlze_17", fo = {
10952
10956
  className: g,
10953
10957
  ...f
10954
10958
  }, m) {
10955
- const C = f["aria-label"], k = X(null), y = X(null), E = X(null), b = X(null), [R, N] = j(!1), [w, B] = j(!1), [D, M] = j(!1), T = X({ value: t, min: a, max: o, step: i, disabled: l, onValueChange: r });
10956
- T.current = { value: t, min: a, max: o, step: i, disabled: l, onValueChange: r };
10959
+ const C = f["aria-label"], k = X(null), y = X(null), E = X(null), b = X(null), [R, w] = j(!1), [N, B] = j(!1), [x, M] = j(!1), D = X({ value: t, min: a, max: o, step: i, disabled: l, onValueChange: r });
10960
+ D.current = { value: t, min: a, max: o, step: i, disabled: l, onValueChange: r };
10957
10961
  const Q = X({
10958
10962
  tooltipDelayDuration: d,
10959
10963
  tooltipCloseDelay: u
10960
10964
  });
10961
10965
  Q.current = { tooltipDelayDuration: d, tooltipCloseDelay: u };
10962
- const x = X({ accum: 0, axis: null, lastTime: 0 });
10966
+ const T = X({ accum: 0, axis: null, lastTime: 0 });
10963
10967
  ie(() => () => {
10964
10968
  E.current != null && clearTimeout(E.current), b.current != null && clearTimeout(b.current);
10965
10969
  }, []), ie(() => {
@@ -10976,10 +10980,10 @@ const _E = "_sectionTitle_bwlze_1", $E = "_separator_bwlze_17", fo = {
10976
10980
  if (!F) return;
10977
10981
  const V = 24, ne = 150, fe = 50, ce = (z) => {
10978
10982
  var Ce, ye;
10979
- const L = T.current;
10983
+ const L = D.current;
10980
10984
  if (L.disabled) return;
10981
10985
  z.preventDefault();
10982
- const { deltaX: de, deltaY: ve, deltaMode: Qe } = z, le = x.current, Me = (we) => Math.min(L.max, Math.max(L.min, we));
10986
+ const { deltaX: de, deltaY: ve, deltaMode: Qe } = z, le = T.current, Me = (we) => Math.min(L.max, Math.max(L.min, we));
10983
10987
  if (Qe !== 0 || Math.max(Math.abs(de), Math.abs(ve)) >= fe) {
10984
10988
  le.accum = 0, le.axis = null;
10985
10989
  const we = Math.abs(de) > Math.abs(ve) ? de : -ve;
@@ -11001,18 +11005,18 @@ const _E = "_sectionTitle_bwlze_1", $E = "_separator_bwlze_17", fo = {
11001
11005
  };
11002
11006
  return F.addEventListener("wheel", ce, { passive: !1 }), () => F.removeEventListener("wheel", ce);
11003
11007
  }, []), ie(() => {
11004
- if (!D) return;
11008
+ if (!x) return;
11005
11009
  const F = () => M(!1);
11006
11010
  return window.addEventListener("pointerup", F), window.addEventListener("pointercancel", F), () => {
11007
11011
  window.removeEventListener("pointerup", F), window.removeEventListener("pointercancel", F);
11008
11012
  };
11009
- }, [D]), ie(() => {
11010
- if (!D) return;
11013
+ }, [x]), ie(() => {
11014
+ if (!x) return;
11011
11015
  const F = document.createElement("style");
11012
11016
  return F.textContent = "* { cursor: ew-resize !important; }", document.head.appendChild(F), () => {
11013
11017
  F.parentNode && F.parentNode.removeChild(F);
11014
11018
  };
11015
- }, [D]);
11019
+ }, [x]);
11016
11020
  const U = J(
11017
11021
  (F) => {
11018
11022
  k.current = F, typeof m == "function" ? m(F) : m && (m.current = F);
@@ -11025,8 +11029,8 @@ const _E = "_sectionTitle_bwlze_1", $E = "_separator_bwlze_17", fo = {
11025
11029
  }, G = () => {
11026
11030
  b.current != null && (clearTimeout(b.current), b.current = null);
11027
11031
  }, ee = () => {
11028
- y.current === "keyboard" && N(!0);
11029
- }, q = () => N(!1), W = () => N(!1), Y = () => {
11032
+ y.current === "keyboard" && w(!0);
11033
+ }, q = () => w(!1), W = () => w(!1), Y = () => {
11030
11034
  G(), P();
11031
11035
  const { tooltipDelayDuration: F } = Q.current;
11032
11036
  if (F <= 0) {
@@ -11048,7 +11052,7 @@ const _E = "_sectionTitle_bwlze_1", $E = "_separator_bwlze_17", fo = {
11048
11052
  }, F);
11049
11053
  }, ue = () => {
11050
11054
  l || h == null || h(t);
11051
- }, me = A ? A(t) : t, K = !l && (w || D || R), $ = /* @__PURE__ */ s(
11055
+ }, me = A ? A(t) : t, K = !l && (N || x || R), $ = /* @__PURE__ */ s(
11052
11056
  Yr,
11053
11057
  {
11054
11058
  className: vr.thumb,
@@ -11280,16 +11284,16 @@ const yr = (n) => {
11280
11284
  onFetchSuggestedTags: A,
11281
11285
  suggestedTagsLoading: h
11282
11286
  }) => {
11283
- const g = X(null), f = X(null), [m, C] = j(!1), k = J((N) => {
11284
- const w = N.target, B = w.scrollLeft + w.clientWidth >= w.scrollWidth - 2;
11287
+ const g = X(null), f = X(null), [m, C] = j(!1), k = J((w) => {
11288
+ const N = w.target, B = N.scrollLeft + N.clientWidth >= N.scrollWidth - 2;
11285
11289
  C(B);
11286
11290
  }, []), y = !!l || !!d, E = J(
11287
- (N) => {
11291
+ (w) => {
11288
11292
  if (y) return;
11289
- const w = N.target.value;
11293
+ const N = w.target.value;
11290
11294
  t((B) => ({
11291
11295
  ...B,
11292
- conditioningText: w
11296
+ conditioningText: N
11293
11297
  }));
11294
11298
  },
11295
11299
  [t, y]
@@ -11305,16 +11309,16 @@ const yr = (n) => {
11305
11309
  C(!1);
11306
11310
  }, [u]);
11307
11311
  const b = J(
11308
- (N) => {
11309
- t((w) => ({
11310
- ...w,
11311
- conditioningText: (w.conditioningText || "").trimEnd() + " " + N + " "
11312
+ (w) => {
11313
+ t((N) => ({
11314
+ ...N,
11315
+ conditioningText: (N.conditioningText || "").trimEnd() + " " + w + " "
11312
11316
  }));
11313
11317
  },
11314
11318
  [t]
11315
11319
  ), R = J(() => {
11316
- t((N) => ({
11317
- ...N,
11320
+ t((w) => ({
11321
+ ...w,
11318
11322
  conditioningAudio: null,
11319
11323
  conditioningAudioName: null,
11320
11324
  conditioningAudioSize: null,
@@ -11409,13 +11413,13 @@ const yr = (n) => {
11409
11413
  children: /* @__PURE__ */ s(eu, { width: 14, height: 14 })
11410
11414
  }
11411
11415
  ),
11412
- h && /* @__PURE__ */ s("div", { className: lt.tagsWrapper, children: /* @__PURE__ */ s("div", { className: lt.tagsContainer, children: Dw.map((N, w) => /* @__PURE__ */ s(
11416
+ h && /* @__PURE__ */ s("div", { className: lt.tagsWrapper, children: /* @__PURE__ */ s("div", { className: lt.tagsContainer, children: Dw.map((w, N) => /* @__PURE__ */ s(
11413
11417
  "div",
11414
11418
  {
11415
11419
  className: lt.skeletonChip,
11416
- style: { width: N }
11420
+ style: { width: w }
11417
11421
  },
11418
- w
11422
+ N
11419
11423
  )) }) }),
11420
11424
  !h && (u == null ? void 0 : u.length) > 0 && /* @__PURE__ */ s(
11421
11425
  "div",
@@ -11428,13 +11432,13 @@ const yr = (n) => {
11428
11432
  ref: f,
11429
11433
  className: lt.tagsContainer,
11430
11434
  onScroll: k,
11431
- children: u.map((N) => /* @__PURE__ */ s(
11435
+ children: u.map((w) => /* @__PURE__ */ s(
11432
11436
  Oe,
11433
11437
  {
11434
11438
  className: lt.tagChip,
11435
11439
  variant: "ghost",
11436
11440
  size: "2",
11437
- onClick: () => b(N),
11441
+ onClick: () => b(w),
11438
11442
  style: {
11439
11443
  borderRadius: "9999px",
11440
11444
  color: "rgba(241, 247, 254, 0.71)",
@@ -11442,9 +11446,9 @@ const yr = (n) => {
11442
11446
  paddingLeft: 14,
11443
11447
  paddingRight: 14
11444
11448
  },
11445
- children: N
11449
+ children: w
11446
11450
  },
11447
- N
11451
+ w
11448
11452
  ))
11449
11453
  }
11450
11454
  )
@@ -11914,7 +11918,7 @@ const Nr = {
11914
11918
  onAddConditioningAudio: a,
11915
11919
  showConditioningTextPaywall: o,
11916
11920
  showAdvancedControlsPaywall: i,
11917
- i18n: l = { _: (T) => T },
11921
+ i18n: l = { _: (D) => D },
11918
11922
  loading: c,
11919
11923
  onSubmit: d,
11920
11924
  limitReached: u,
@@ -11929,24 +11933,24 @@ const Nr = {
11929
11933
  onClear: E,
11930
11934
  onInspireMe: b,
11931
11935
  inspireMeLoading: R,
11932
- onBoost: N,
11933
- boostLoading: w,
11936
+ onBoost: w,
11937
+ boostLoading: N,
11934
11938
  suggestedTags: B,
11935
- onFetchSuggestedTags: D,
11939
+ onFetchSuggestedTags: x,
11936
11940
  suggestedTagsLoading: M
11937
11941
  }) => {
11938
- const [T, Q] = j(!1), [x, U] = j("2"), [O, P] = j(x), { submitted: G, handleSubmit: ee } = za(d), q = oe(() => [
11942
+ const [D, Q] = j(!1), [T, U] = j("2"), [O, P] = j(T), { submitted: G, handleSubmit: ee } = za(d), q = oe(() => [
11939
11943
  { value: "2", label: l._("Presets") },
11940
11944
  { value: "1", label: l._("Custom") }
11941
11945
  ], []), W = (r ?? []).some(
11942
11946
  ($) => $.instrument === n.instrument
11943
11947
  ), Y = oe(() => {
11944
- const $ = x === "2" && W, F = x === "1" || !W;
11948
+ const $ = T === "2" && W, F = T === "1" || !W;
11945
11949
  return u || k === 0 || $ && !n.presetId || F && !n.conditioningText && !n.conditioningAudio;
11946
11950
  }, [
11947
11951
  u,
11948
11952
  k,
11949
- x,
11953
+ T,
11950
11954
  W,
11951
11955
  n.presetId,
11952
11956
  n.conditioningText,
@@ -11999,14 +12003,14 @@ const Nr = {
11999
12003
  [t, n]
12000
12004
  );
12001
12005
  return ie(() => {
12002
- if (x !== O) {
12006
+ if (T !== O) {
12003
12007
  Q(!0);
12004
12008
  const $ = setTimeout(() => {
12005
- P(x), Q(!1);
12009
+ P(T), Q(!1);
12006
12010
  }, Nr.timeouts.animationDuration);
12007
12011
  return () => clearTimeout($);
12008
12012
  }
12009
- }, [x, O]), /* @__PURE__ */ v(
12013
+ }, [T, O]), /* @__PURE__ */ v(
12010
12014
  I,
12011
12015
  {
12012
12016
  direction: "column",
@@ -12040,7 +12044,7 @@ const Nr = {
12040
12044
  Mr,
12041
12045
  {
12042
12046
  items: q,
12043
- selectedType: x,
12047
+ selectedType: T,
12044
12048
  handleTypeChange: ue,
12045
12049
  size: "2"
12046
12050
  }
@@ -12053,7 +12057,7 @@ const Nr = {
12053
12057
  top: "130px",
12054
12058
  zIndex: 10,
12055
12059
  backgroundColor: "var(--neutral-2)",
12056
- opacity: T ? 0 : 1,
12060
+ opacity: D ? 0 : 1,
12057
12061
  transition: `opacity ${Nr.timeouts.animationDuration}ms ease-in-out`
12058
12062
  }
12059
12063
  }
@@ -12068,7 +12072,7 @@ const Nr = {
12068
12072
  style: {
12069
12073
  position: "relative",
12070
12074
  flex: 1,
12071
- opacity: T ? 0 : 1,
12075
+ opacity: D ? 0 : 1,
12072
12076
  transition: `opacity ${Nr.timeouts.animationDuration}ms ease-in-out`,
12073
12077
  overflow: "hidden"
12074
12078
  },
@@ -12083,10 +12087,10 @@ const Nr = {
12083
12087
  onTextConditioningFocus: o,
12084
12088
  onInspireMe: b,
12085
12089
  inspireMeLoading: R,
12086
- onBoost: N,
12087
- boostLoading: w,
12090
+ onBoost: w,
12091
+ boostLoading: N,
12088
12092
  suggestedTags: B,
12089
- onFetchSuggestedTags: D,
12093
+ onFetchSuggestedTags: x,
12090
12094
  suggestedTagsLoading: M
12091
12095
  }
12092
12096
  ),
@@ -12133,7 +12137,7 @@ const Nr = {
12133
12137
  onFormStateChange: t,
12134
12138
  i18n: l,
12135
12139
  disabledBesideFooter: u,
12136
- presetSelected: x,
12140
+ presetSelected: T,
12137
12141
  showAdvancedControlsPaywall: i
12138
12142
  }
12139
12143
  ),
@@ -12429,28 +12433,28 @@ const yo = {
12429
12433
  name: n._("Other"),
12430
12434
  category: "paid"
12431
12435
  }
12432
- ], E = async (N) => {
12433
- if (N.isLocked) {
12434
- f(N.value);
12436
+ ], E = async (w) => {
12437
+ if (w.isLocked) {
12438
+ f(w.value);
12435
12439
  return;
12436
12440
  }
12437
- const w = N.value;
12441
+ const N = w.value;
12438
12442
  d((B) => {
12439
- let D = [...B.selectedStems];
12440
- if (D.includes(w))
12441
- D = D.filter((M) => M !== w);
12443
+ let x = [...B.selectedStems];
12444
+ if (x.includes(N))
12445
+ x = x.filter((M) => M !== N);
12442
12446
  else {
12443
- const M = Gw[w] || [];
12444
- D = D.filter(
12445
- (T) => !M.includes(T)
12446
- ), D.push(w);
12447
+ const M = Gw[N] || [];
12448
+ x = x.filter(
12449
+ (D) => !M.includes(D)
12450
+ ), x.push(N);
12447
12451
  }
12448
- return D.includes("other") && D.length === 1 ? { ...B, selectedStems: [] } : { ...B, selectedStems: D };
12452
+ return x.includes("other") && x.length === 1 ? { ...B, selectedStems: [] } : { ...B, selectedStems: x };
12449
12453
  });
12450
- }, b = (N) => {
12451
- d((w) => ({
12452
- ...w,
12453
- selectedStems: N.value
12454
+ }, b = (w) => {
12455
+ d((N) => ({
12456
+ ...N,
12457
+ selectedStems: w.value
12454
12458
  }));
12455
12459
  };
12456
12460
  return /* @__PURE__ */ v(I, { direction: "column", height: "100%", children: [
@@ -12459,10 +12463,10 @@ const yo = {
12459
12463
  /* @__PURE__ */ s(
12460
12464
  qs,
12461
12465
  {
12462
- items: y.filter((N) => N.category === "free").map((N) => ({
12463
- name: N.name,
12464
- value: N.value,
12465
- icon: yo[N.value]
12466
+ items: y.filter((w) => w.category === "free").map((w) => ({
12467
+ name: w.name,
12468
+ value: w.value,
12469
+ icon: yo[w.value]
12466
12470
  })),
12467
12471
  value: c.selectedStems,
12468
12472
  onSelect: b
@@ -12473,14 +12477,14 @@ const yo = {
12473
12477
  /* @__PURE__ */ s(
12474
12478
  qs,
12475
12479
  {
12476
- items: y.filter((N) => N.category === "paid").filter((N) => r.some((w) => w.value === N.value)).map((N) => {
12477
- var w;
12480
+ items: y.filter((w) => w.category === "paid").filter((w) => r.some((N) => N.value === w.value)).map((w) => {
12481
+ var N;
12478
12482
  return {
12479
- name: N.name,
12480
- value: N.value,
12481
- icon: yo[N.value],
12482
- disabled: c.selectedStems.length === 0 && N.value === "Other",
12483
- isLocked: (w = r.find((B) => B.value === N.value)) == null ? void 0 : w.isLocked
12483
+ name: w.name,
12484
+ value: w.value,
12485
+ icon: yo[w.value],
12486
+ disabled: c.selectedStems.length === 0 && w.value === "Other",
12487
+ isLocked: (N = r.find((B) => B.value === w.value)) == null ? void 0 : N.isLocked
12484
12488
  };
12485
12489
  }),
12486
12490
  value: c.selectedStems,
@@ -12728,9 +12732,9 @@ const yo = {
12728
12732
  textAlign: E = "left",
12729
12733
  style: b,
12730
12734
  onFocus: R,
12731
- ...N
12735
+ ...w
12732
12736
  }) => {
12733
- const w = g || (A ? /* @__PURE__ */ s(A, { width: 16, height: 16, className: ze.icon }) : null), B = String(n ?? "").length, D = !!l, M = D && !!d;
12737
+ const N = g || (A ? /* @__PURE__ */ s(A, { width: 16, height: 16, className: ze.icon }) : null), B = String(n ?? "").length, x = !!l, M = x && !!d;
12734
12738
  return /* @__PURE__ */ v(I, { direction: "column", width: "100%", height: "100%", gap: "1", children: [
12735
12739
  a && /* @__PURE__ */ v(I, { align: "center", gap: "2", children: [
12736
12740
  /* @__PURE__ */ s(H, { size: u, weight: "medium", children: a }),
@@ -12745,8 +12749,8 @@ const yo = {
12745
12749
  onChange: M ? void 0 : t,
12746
12750
  placeholder: r,
12747
12751
  className: S(ze.TextField, i, {
12748
- [ze.Disabled]: D,
12749
- [ze.ReadOnly]: c && !D,
12752
+ [ze.Disabled]: x,
12753
+ [ze.ReadOnly]: c && !x,
12750
12754
  [ze.focusRing]: h || m,
12751
12755
  [ze.errorText]: m,
12752
12756
  [ze[`size${u}`]]: u,
@@ -12758,12 +12762,12 @@ const yo = {
12758
12762
  ...b
12759
12763
  },
12760
12764
  autoFocus: k,
12761
- ...N,
12765
+ ...w,
12762
12766
  onFocus: M ? void 0 : R,
12763
12767
  readOnly: c,
12764
- disabled: D,
12768
+ disabled: x,
12765
12769
  children: [
12766
- w && /* @__PURE__ */ s(Ul, { children: w }),
12770
+ N && /* @__PURE__ */ s(Ul, { children: N }),
12767
12771
  y && /* @__PURE__ */ s("span", { className: ze.aiDetected, "aria-hidden": !0, children: /* @__PURE__ */ s("span", { className: ze.aiDetectedMark, children: "✦" }) }),
12768
12772
  f && /* @__PURE__ */ s("div", { className: ze.endSlot, children: f })
12769
12773
  ]
@@ -12776,11 +12780,11 @@ const yo = {
12776
12780
  className: ze.disabledClickOverlay,
12777
12781
  "aria-label": a || r || "Activate",
12778
12782
  tabIndex: 0,
12779
- onPointerDown: (T) => {
12780
- T.preventDefault(), R == null || R(T);
12783
+ onPointerDown: (D) => {
12784
+ D.preventDefault(), R == null || R(D);
12781
12785
  },
12782
- onKeyDown: (T) => {
12783
- (T.key === "Enter" || T.key === " ") && (T.preventDefault(), R == null || R(T));
12786
+ onKeyDown: (D) => {
12787
+ (D.key === "Enter" || D.key === " ") && (D.preventDefault(), R == null || R(D));
12784
12788
  }
12785
12789
  }
12786
12790
  )
@@ -13118,11 +13122,11 @@ const bs = (n, t) => typeof n == "string" ? { title: n, description: "", variant
13118
13122
  u(k.id);
13119
13123
  }, y);
13120
13124
  return d.current.set(k.id, E), c((b) => {
13121
- const R = [...b.slice(-(r - 1)), k], N = new Set(R.map((w) => w.id));
13122
- return b.forEach((w) => {
13123
- if (!N.has(w.id)) {
13124
- const B = d.current.get(w.id);
13125
- B && (clearTimeout(B), d.current.delete(w.id));
13125
+ const R = [...b.slice(-(r - 1)), k], w = new Set(R.map((N) => N.id));
13126
+ return b.forEach((N) => {
13127
+ if (!w.has(N.id)) {
13128
+ const B = d.current.get(N.id);
13129
+ B && (clearTimeout(B), d.current.delete(N.id));
13126
13130
  }
13127
13131
  }), R;
13128
13132
  }), k.id;
@@ -13361,14 +13365,14 @@ const PN = "_track_mbec5_1", FN = "_name_mbec5_11", zN = "_line_mbec5_22", WN =
13361
13365
  device: b,
13362
13366
  channel: R,
13363
13367
  // State change listeners
13364
- onVolumeChange: N,
13365
- onVolumeReset: w,
13368
+ onVolumeChange: w,
13369
+ onVolumeReset: N,
13366
13370
  onPanChange: B,
13367
- onMutedChange: D,
13371
+ onMutedChange: x,
13368
13372
  onRecordChange: M,
13369
- onSoloChange: T,
13373
+ onSoloChange: D,
13370
13374
  onOpenChange: Q,
13371
- onInstrumentChange: x,
13375
+ onInstrumentChange: T,
13372
13376
  onDeviceChange: U,
13373
13377
  onChannelChange: O,
13374
13378
  // Children (having content means group/takelanes)
@@ -13447,7 +13451,7 @@ const PN = "_track_mbec5_1", FN = "_name_mbec5_11", zN = "_line_mbec5_22", WN =
13447
13451
  }
13448
13452
  ),
13449
13453
  options: c,
13450
- onSelectionChange: x,
13454
+ onSelectionChange: T,
13451
13455
  side: "bottom",
13452
13456
  align: "start"
13453
13457
  }
@@ -13498,7 +13502,7 @@ const PN = "_track_mbec5_1", FN = "_name_mbec5_11", zN = "_line_mbec5_22", WN =
13498
13502
  {
13499
13503
  type: f ? "mute" : C ? "autoMute" : "mute",
13500
13504
  selected: f || !k && C,
13501
- onClick: D
13505
+ onClick: x
13502
13506
  }
13503
13507
  ),
13504
13508
  /* @__PURE__ */ s(
@@ -13506,7 +13510,7 @@ const PN = "_track_mbec5_1", FN = "_name_mbec5_11", zN = "_line_mbec5_22", WN =
13506
13510
  {
13507
13511
  type: "solo",
13508
13512
  selected: k,
13509
- onClick: T
13513
+ onClick: D
13510
13514
  }
13511
13515
  )
13512
13516
  ]
@@ -13543,8 +13547,8 @@ const PN = "_track_mbec5_1", FN = "_name_mbec5_11", zN = "_line_mbec5_22", WN =
13543
13547
  {
13544
13548
  linear: A,
13545
13549
  volume: h,
13546
- onVolumeChange: N,
13547
- onVolumeReset: w
13550
+ onVolumeChange: w,
13551
+ onVolumeReset: N
13548
13552
  }
13549
13553
  ),
13550
13554
  r && /* @__PURE__ */ s(
@@ -13772,27 +13776,27 @@ function Cc({
13772
13776
  classNamesButton: f,
13773
13777
  onPlayStateChange: m
13774
13778
  }) {
13775
- const [C, k] = j(!1), [y, E] = j(!1), [b, R] = j(!1), [N, w] = j(!1);
13779
+ const [C, k] = j(!1), [y, E] = j(!1), [b, R] = j(!1), [w, N] = j(!1);
13776
13780
  ie(() => {
13777
- typeof navigator < "u" && w(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
13781
+ typeof navigator < "u" && N(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
13778
13782
  }, []);
13779
- const B = oe(() => a, [a]), D = oe(() => o ? !1 : !B || B && C, [B, C, o]), M = X(null), T = X(null);
13783
+ const B = oe(() => a, [a]), x = oe(() => o ? !1 : !B || B && C, [B, C, o]), M = X(null), D = X(null);
13780
13784
  ie(() => {
13781
13785
  b || (!A || i) && R(!0);
13782
13786
  }, [A, i, b]);
13783
13787
  const Q = J(() => {
13784
13788
  var W;
13785
- T.current && ((W = T.current) == null || W.pause());
13786
- }, []), x = J(() => {
13789
+ D.current && ((W = D.current) == null || W.pause());
13790
+ }, []), T = J(() => {
13787
13791
  var W, Y;
13788
- T.current && (d && d.state.active && d.state.active !== T.current && d.state.active.pause(), N || (W = T.current) == null || W.setOptions({ progressColor: c }), (Y = T.current) == null || Y.play());
13789
- }, [N, c, d]);
13792
+ D.current && (d && d.state.active && d.state.active !== D.current && d.state.active.pause(), w || (W = D.current) == null || W.setOptions({ progressColor: c }), (Y = D.current) == null || Y.play());
13793
+ }, [w, c, d]);
13790
13794
  ie(() => {
13791
13795
  var W;
13792
- T.current && n && ((W = T.current) == null || W.load(n));
13796
+ D.current && n && ((W = D.current) == null || W.load(n));
13793
13797
  }, [n]);
13794
13798
  const U = J((W) => {
13795
- T.current = W, E(!0), k(!1);
13799
+ D.current = W, E(!0), k(!1);
13796
13800
  }, []), O = J(
13797
13801
  (W) => {
13798
13802
  if (k(!0), r == null || r(!0), m == null || m(!0), d) {
@@ -13825,19 +13829,19 @@ function Cc({
13825
13829
  [d]
13826
13830
  ), ee = J(() => {
13827
13831
  var W;
13828
- u ? (W = T.current) == null || W.play() : (k(!1), r == null || r(!1), m == null || m(!1), d && d.setter((Y) => ({
13832
+ u ? (W = D.current) == null || W.play() : (k(!1), r == null || r(!1), m == null || m(!1), d && d.setter((Y) => ({
13829
13833
  ...Y,
13830
13834
  isPlaying: !1,
13831
13835
  active: null
13832
13836
  })));
13833
13837
  }, [u, r, d, m]), q = J(() => {
13834
13838
  var W, Y, pe;
13835
- (W = T.current) != null && W.isPlaying() ? Q() : T.current && ((Y = d == null ? void 0 : d.state) != null && Y.active && d.state.active !== T.current && (d.state.active.pause(), d.setter((ue) => ({
13839
+ (W = D.current) != null && W.isPlaying() ? Q() : D.current && ((Y = d == null ? void 0 : d.state) != null && Y.active && d.state.active !== D.current && (d.state.active.pause(), d.setter((ue) => ({
13836
13840
  ...ue,
13837
13841
  isPlaying: !1,
13838
13842
  active: null
13839
- }))), (pe = d == null ? void 0 : d.state) != null && pe.active && d.state.active !== T.current && d.state.active.getCurrentTime && T.current.setTime(d.state.active.getCurrentTime()), x());
13840
- }, [x, Q, d]);
13843
+ }))), (pe = d == null ? void 0 : d.state) != null && pe.active && d.state.active !== D.current && d.state.active.getCurrentTime && D.current.setTime(d.state.active.getCurrentTime()), T());
13844
+ }, [T, Q, d]);
13841
13845
  return /* @__PURE__ */ v(
13842
13846
  I,
13843
13847
  {
@@ -13865,7 +13869,7 @@ function Cc({
13865
13869
  {
13866
13870
  width: "100%",
13867
13871
  style: {
13868
- display: D && y ? "block" : "none",
13872
+ display: x && y ? "block" : "none",
13869
13873
  cursor: "pointer"
13870
13874
  },
13871
13875
  ref: M,
@@ -13885,7 +13889,7 @@ function Cc({
13885
13889
  onPlay: O,
13886
13890
  onPause: P,
13887
13891
  onFinish: ee,
13888
- backend: N ? "WebAudio" : "MediaElement"
13892
+ backend: w ? "WebAudio" : "MediaElement"
13889
13893
  }
13890
13894
  )
13891
13895
  }
@@ -13895,7 +13899,7 @@ function Cc({
13895
13899
  {
13896
13900
  width: "100%",
13897
13901
  style: {
13898
- display: D && !y ? "block" : "none",
13902
+ display: x && !y ? "block" : "none",
13899
13903
  cursor: "pointer"
13900
13904
  },
13901
13905
  children: /* @__PURE__ */ s("span", { className: Ss.waveform, children: /* @__PURE__ */ s(
@@ -14255,12 +14259,12 @@ const MR = "_footerVoiceForm_lsc2c_2", UR = {
14255
14259
  onClickUpgradeConcurrency: m,
14256
14260
  onRemoveTrack: C
14257
14261
  }) => {
14258
- const [k, y] = j(null), [E, b] = j(null), { submitted: R, handleSubmit: N } = za(A), [w, B] = j({
14262
+ const [k, y] = j(null), [E, b] = j(null), { submitted: R, handleSubmit: w } = za(A), [N, B] = j({
14259
14263
  lastPlayed: null,
14260
14264
  active: null,
14261
14265
  isPlaying: !1,
14262
14266
  id: "voice-form"
14263
- }), D = J(
14267
+ }), x = J(
14264
14268
  (P) => {
14265
14269
  y(P);
14266
14270
  const G = n.find((ee) => ee.identifier === P);
@@ -14275,22 +14279,22 @@ const MR = "_footerVoiceForm_lsc2c_2", UR = {
14275
14279
  E !== P && b(P);
14276
14280
  },
14277
14281
  [E, b]
14278
- ), T = J(
14282
+ ), D = J(
14279
14283
  (P) => {
14280
- b(null), w.active && w.active.pause(), B((G) => ({
14284
+ b(null), N.active && N.active.pause(), B((G) => ({
14281
14285
  ...G,
14282
14286
  isPlaying: !1,
14283
14287
  active: null
14284
14288
  })), a(P);
14285
14289
  },
14286
- [a, w]
14290
+ [a, N]
14287
14291
  ), Q = oe(
14288
14292
  () => ({
14289
- state: w,
14293
+ state: N,
14290
14294
  setter: B
14291
14295
  }),
14292
- [w]
14293
- ), x = oe(
14296
+ [N]
14297
+ ), T = oe(
14294
14298
  () => n.find((P) => P.identifier === i) || n[0],
14295
14299
  [n, i]
14296
14300
  ), U = oe(
@@ -14298,41 +14302,41 @@ const MR = "_footerVoiceForm_lsc2c_2", UR = {
14298
14302
  [t.trackName, t.trackId, t.customAudio]
14299
14303
  ), O = J(() => {
14300
14304
  if (!i) {
14301
- N();
14305
+ w();
14302
14306
  return;
14303
14307
  }
14304
- x && (D(x.identifier), o(), r((P) => {
14308
+ T && (x(T.identifier), o(), r((P) => {
14305
14309
  var G;
14306
- return ((G = P.selectedVoice) == null ? void 0 : G.identifier) === x.identifier ? P : { ...P, selectedVoice: x };
14307
- })), U && (x ? N({ selectedVoice: x }) : N());
14308
- }, [i, N, x, D, o]);
14310
+ return ((G = P.selectedVoice) == null ? void 0 : G.identifier) === T.identifier ? P : { ...P, selectedVoice: T };
14311
+ })), U && (T ? w({ selectedVoice: T }) : w());
14312
+ }, [i, w, T, x, o]);
14309
14313
  return ie(() => {
14310
14314
  var P;
14311
- if (w.isPlaying === !1)
14315
+ if (N.isPlaying === !1)
14312
14316
  b(null);
14313
- else if (w.isPlaying === !0 && w.active) {
14317
+ else if (N.isPlaying === !0 && N.active) {
14314
14318
  const G = (P = n.find(
14315
- (ee) => w.active && ee.metadata.previewUrl === w.active.url
14319
+ (ee) => N.active && ee.metadata.previewUrl === N.active.url
14316
14320
  )) == null ? void 0 : P.identifier;
14317
14321
  G && b(G);
14318
14322
  }
14319
- }, [w, n]), /* @__PURE__ */ v(I, { direction: "column", height: "100%", children: [
14323
+ }, [N, n]), /* @__PURE__ */ v(I, { direction: "column", height: "100%", children: [
14320
14324
  /* @__PURE__ */ s(
14321
14325
  kR,
14322
14326
  {
14323
14327
  voices: n,
14324
14328
  selectedId: k,
14325
- handleSelect: D,
14329
+ handleSelect: x,
14326
14330
  playingItem: E,
14327
14331
  handleAvatarClick: M,
14328
- handleDetailsClick: T,
14332
+ handleDetailsClick: D,
14329
14333
  wavegroup: Q,
14330
14334
  setPlayingItem: b,
14331
14335
  style: { display: i ? "none" : "block" },
14332
14336
  i18n: l
14333
14337
  }
14334
14338
  ),
14335
- i && /* @__PURE__ */ s(NR, { item: x, wavegroup: Q, i18n: l }),
14339
+ i && /* @__PURE__ */ s(NR, { item: T, wavegroup: Q, i18n: l }),
14336
14340
  /* @__PURE__ */ s(Ne, { className: UR.footerVoiceForm, children: /* @__PURE__ */ s(
14337
14341
  is,
14338
14342
  {