@moises.ai/design-system 4.18.5 → 4.18.6

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 gu = [" ", "Enter", "ArrowUp", "ArrowDown"], mu = [" ", "Enter"], _t = "Sele
31
31
  disabled: g,
32
32
  required: C,
33
33
  form: m
34
- } = n, f = Mr(t), [k, y] = A.useState(null), [R, I] = A.useState(null), [N, E] = A.useState(!1), w = mo(u), [B, x] = vr({
34
+ } = n, f = Mr(t), [k, y] = A.useState(null), [N, I] = A.useState(null), [R, E] = A.useState(!1), w = mo(u), [B, x] = vr({
35
35
  prop: s,
36
36
  defaultProp: o ?? !1,
37
37
  onChange: i,
38
38
  caller: _t
39
- }), [P, T] = vr({
39
+ }), [O, T] = vr({
40
40
  prop: l,
41
41
  defaultProp: c,
42
42
  onChange: d,
43
43
  caller: _t
44
- }), Q = A.useRef(null), D = k ? m || !!k.closest("form") : !0, [z, U] = A.useState(/* @__PURE__ */ new Set()), O = Array.from(z).map((V) => V.props.value).join(";");
44
+ }), Q = A.useRef(null), D = k ? m || !!k.closest("form") : !0, [z, U] = A.useState(/* @__PURE__ */ new Set()), P = Array.from(z).map((V) => V.props.value).join(";");
45
45
  return /* @__PURE__ */ a(oc, { ...f, children: /* @__PURE__ */ v(
46
46
  Cu,
47
47
  {
@@ -49,12 +49,12 @@ var gu = [" ", "Enter", "ArrowUp", "ArrowDown"], mu = [" ", "Enter"], _t = "Sele
49
49
  scope: t,
50
50
  trigger: k,
51
51
  onTriggerChange: y,
52
- valueNode: R,
52
+ valueNode: N,
53
53
  onValueNodeChange: I,
54
- valueNodeHasChildren: N,
54
+ valueNodeHasChildren: R,
55
55
  onValueNodeHasChildrenChange: E,
56
56
  contentId: Ls(),
57
- value: P,
57
+ value: O,
58
58
  onValueChange: T,
59
59
  open: B,
60
60
  onOpenChange: x,
@@ -86,16 +86,16 @@ var gu = [" ", "Enter", "ArrowUp", "ArrowDown"], mu = [" ", "Enter"], _t = "Sele
86
86
  tabIndex: -1,
87
87
  name: p,
88
88
  autoComplete: h,
89
- value: P,
89
+ value: O,
90
90
  onChange: (V) => T(V.target.value),
91
91
  disabled: g,
92
92
  form: m,
93
93
  children: [
94
- P === void 0 ? /* @__PURE__ */ a("option", { value: "" }) : null,
94
+ O === void 0 ? /* @__PURE__ */ a("option", { value: "" }) : null,
95
95
  Array.from(z)
96
96
  ]
97
97
  },
98
- O
98
+ P
99
99
  ) : null
100
100
  ]
101
101
  }
@@ -105,8 +105,8 @@ Go.displayName = _t;
105
105
  var qo = "SelectTrigger", Yo = A.forwardRef(
106
106
  (n, t) => {
107
107
  const { __scopeSelect: r, disabled: s = !1, ...o } = n, i = Mr(r), l = Mt(qo, r), c = l.disabled || s, d = Pe(t, l.onTriggerChange), u = Qr(r), p = A.useRef("touch"), [h, g, C] = Ci((f) => {
108
- const k = u().filter((I) => !I.disabled), y = k.find((I) => I.value === l.value), R = vi(k, f, y);
109
- R !== void 0 && l.onValueChange(R.value);
108
+ const k = u().filter((I) => !I.disabled), y = k.find((I) => I.value === l.value), N = vi(k, f, y);
109
+ N !== void 0 && l.onValueChange(N.value);
110
110
  }), m = (f) => {
111
111
  c || (l.onOpenChange(!0), C()), f && (l.triggerPointerDownPosRef.current = {
112
112
  x: Math.round(f.pageX),
@@ -210,9 +210,9 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
210
210
  avoidCollisions: k,
211
211
  //
212
212
  ...y
213
- } = n, R = Mt($t, r), [I, N] = A.useState(null), [E, w] = A.useState(null), B = Pe(t, (M) => N(M)), [x, P] = A.useState(null), [T, Q] = A.useState(
213
+ } = n, N = Mt($t, r), [I, R] = A.useState(null), [E, w] = A.useState(null), B = Pe(t, (M) => R(M)), [x, O] = A.useState(null), [T, Q] = A.useState(
214
214
  null
215
- ), D = Qr(r), [z, U] = A.useState(!1), O = A.useRef(!1);
215
+ ), D = Qr(r), [z, U] = A.useState(!1), P = A.useRef(!1);
216
216
  A.useEffect(() => {
217
217
  if (I) return uc(I);
218
218
  }, [I]), hc();
@@ -230,7 +230,7 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
230
230
  A.useEffect(() => {
231
231
  z && $();
232
232
  }, [z, $]);
233
- const { onOpenChange: G, triggerPointerDownPosRef: W } = R;
233
+ const { onOpenChange: G, triggerPointerDownPosRef: W } = N;
234
234
  A.useEffect(() => {
235
235
  if (I) {
236
236
  let M = { x: 0, y: 0 };
@@ -258,16 +258,16 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
258
258
  ce && setTimeout(() => ce.ref.current.focus());
259
259
  }), de = A.useCallback(
260
260
  (M, L, ie) => {
261
- const ce = !O.current && !ie;
262
- (R.value !== void 0 && R.value === L || ce) && (P(M), ce && (O.current = !0));
261
+ const ce = !P.current && !ie;
262
+ (N.value !== void 0 && N.value === L || ce) && (O(M), ce && (P.current = !0));
263
263
  },
264
- [R.value]
264
+ [N.value]
265
265
  ), ge = A.useCallback(() => I == null ? void 0 : I.focus(), [I]), K = A.useCallback(
266
266
  (M, L, ie) => {
267
- const ce = !O.current && !ie;
268
- (R.value !== void 0 && R.value === L || ce) && Q(M);
267
+ const ce = !P.current && !ie;
268
+ (N.value !== void 0 && N.value === L || ce) && Q(M);
269
269
  },
270
- [R.value]
270
+ [N.value]
271
271
  ), X = s === "popper" ? ws : ri, F = X === ws ? {
272
272
  side: c,
273
273
  sideOffset: d,
@@ -300,13 +300,13 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
300
300
  pc,
301
301
  {
302
302
  asChild: !0,
303
- trapped: R.open,
303
+ trapped: N.open,
304
304
  onMountAutoFocus: (M) => {
305
305
  M.preventDefault();
306
306
  },
307
307
  onUnmountAutoFocus: be(o, (M) => {
308
308
  var L;
309
- (L = R.trigger) == null || L.focus({ preventScroll: !0 }), M.preventDefault();
309
+ (L = N.trigger) == null || L.focus({ preventScroll: !0 }), M.preventDefault();
310
310
  }),
311
311
  children: /* @__PURE__ */ a(
312
312
  gc,
@@ -316,14 +316,14 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
316
316
  onEscapeKeyDown: i,
317
317
  onPointerDownOutside: l,
318
318
  onFocusOutside: (M) => M.preventDefault(),
319
- onDismiss: () => R.onOpenChange(!1),
319
+ onDismiss: () => N.onOpenChange(!1),
320
320
  children: /* @__PURE__ */ a(
321
321
  X,
322
322
  {
323
323
  role: "listbox",
324
- id: R.contentId,
325
- "data-state": R.open ? "open" : "closed",
326
- dir: R.dir,
324
+ id: N.contentId,
325
+ "data-state": N.open ? "open" : "closed",
326
+ dir: N.dir,
327
327
  onContextMenu: (M) => M.preventDefault(),
328
328
  ...y,
329
329
  ...F,
@@ -360,11 +360,11 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
360
360
  );
361
361
  ni.displayName = Iu;
362
362
  var Eu = "SelectItemAlignedPosition", ri = A.forwardRef((n, t) => {
363
- const { __scopeSelect: r, onPlaced: s, ...o } = n, i = Mt($t, r), l = Ut($t, r), [c, d] = A.useState(null), [u, p] = A.useState(null), h = Pe(t, (B) => p(B)), g = Qr(r), C = A.useRef(!1), m = A.useRef(!0), { viewport: f, selectedItem: k, selectedItemText: y, focusSelectedItem: R } = l, I = A.useCallback(() => {
363
+ const { __scopeSelect: r, onPlaced: s, ...o } = n, i = Mt($t, r), l = Ut($t, r), [c, d] = A.useState(null), [u, p] = A.useState(null), h = Pe(t, (B) => p(B)), g = Qr(r), C = A.useRef(!1), m = A.useRef(!0), { viewport: f, selectedItem: k, selectedItemText: y, focusSelectedItem: N } = l, I = A.useCallback(() => {
364
364
  if (i.trigger && i.valueNode && c && u && f && k && y) {
365
- const B = i.trigger.getBoundingClientRect(), x = u.getBoundingClientRect(), P = i.valueNode.getBoundingClientRect(), T = y.getBoundingClientRect();
365
+ const B = i.trigger.getBoundingClientRect(), x = u.getBoundingClientRect(), O = i.valueNode.getBoundingClientRect(), T = y.getBoundingClientRect();
366
366
  if (i.dir !== "rtl") {
367
- const ae = T.left - x.left, ee = P.left - ae, Ie = B.left - ee, Se = B.width + Ie, Ve = Math.max(Se, x.width), me = window.innerWidth - nt, ze = yr(ee, [
367
+ const ae = T.left - x.left, ee = O.left - ae, Ie = B.left - ee, Se = B.width + Ie, Ve = Math.max(Se, x.width), me = window.innerWidth - nt, ze = yr(ee, [
368
368
  nt,
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 Eu = "SelectItemAlignedPosition", ri = A.forwardRef((n, t) => {
375
375
  ]);
376
376
  c.style.minWidth = Se + "px", c.style.left = ze + "px";
377
377
  } else {
378
- const ae = x.right - T.right, ee = window.innerWidth - P.right - ae, Ie = window.innerWidth - B.right - ee, Se = B.width + Ie, Ve = Math.max(Se, x.width), me = window.innerWidth - nt, ze = yr(ee, [
378
+ const ae = x.right - T.right, ee = window.innerWidth - O.right - ae, Ie = window.innerWidth - B.right - ee, Se = B.width + Ie, Ve = Math.max(Se, x.width), me = window.innerWidth - nt, ze = yr(ee, [
379
379
  nt,
380
380
  Math.max(nt, me - Ve)
381
381
  ]);
382
382
  c.style.minWidth = Se + "px", c.style.right = ze + "px";
383
383
  }
384
- const Q = g(), D = window.innerHeight - nt * 2, z = f.scrollHeight, U = window.getComputedStyle(u), O = parseInt(U.borderTopWidth, 10), V = parseInt(U.paddingTop, 10), $ = parseInt(U.borderBottomWidth, 10), G = parseInt(U.paddingBottom, 10), W = O + V + z + G + $, q = Math.min(k.offsetHeight * 5, W), he = window.getComputedStyle(f), de = parseInt(he.paddingTop, 10), ge = parseInt(he.paddingBottom, 10), K = B.top + B.height / 2 - nt, X = D - K, F = k.offsetHeight / 2, M = k.offsetTop + F, L = O + V + M, ie = W - L;
384
+ const Q = g(), D = window.innerHeight - nt * 2, z = f.scrollHeight, U = window.getComputedStyle(u), P = parseInt(U.borderTopWidth, 10), V = parseInt(U.paddingTop, 10), $ = parseInt(U.borderBottomWidth, 10), G = parseInt(U.paddingBottom, 10), W = P + V + z + G + $, q = Math.min(k.offsetHeight * 5, W), he = window.getComputedStyle(f), de = parseInt(he.paddingTop, 10), ge = parseInt(he.paddingBottom, 10), K = B.top + B.height / 2 - nt, X = D - K, F = k.offsetHeight / 2, M = k.offsetTop + F, L = P + V + M, ie = W - L;
385
385
  if (L <= K) {
386
386
  const ae = Q.length > 0 && k === Q[Q.length - 1].ref.current;
387
387
  c.style.bottom = "0px";
@@ -396,7 +396,7 @@ var Eu = "SelectItemAlignedPosition", ri = A.forwardRef((n, t) => {
396
396
  c.style.top = "0px";
397
397
  const Ie = Math.max(
398
398
  K,
399
- O + f.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
399
+ P + f.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
400
400
  (ae ? de : 0) + F
401
401
  ) + ie;
402
402
  c.style.height = Ie + "px", f.scrollTop = L - K + f.offsetTop;
@@ -416,15 +416,15 @@ var Eu = "SelectItemAlignedPosition", ri = A.forwardRef((n, t) => {
416
416
  s
417
417
  ]);
418
418
  Jt(() => I(), [I]);
419
- const [N, E] = A.useState();
419
+ const [R, E] = A.useState();
420
420
  Jt(() => {
421
421
  u && E(window.getComputedStyle(u).zIndex);
422
422
  }, [u]);
423
423
  const w = A.useCallback(
424
424
  (B) => {
425
- B && m.current === !0 && (I(), R == null || R(), m.current = !1);
425
+ B && m.current === !0 && (I(), N == null || N(), m.current = !1);
426
426
  },
427
- [I, R]
427
+ [I, N]
428
428
  );
429
429
  return /* @__PURE__ */ a(
430
430
  Nu,
@@ -441,7 +441,7 @@ var Eu = "SelectItemAlignedPosition", ri = A.forwardRef((n, t) => {
441
441
  display: "flex",
442
442
  flexDirection: "column",
443
443
  position: "fixed",
444
- zIndex: N
444
+ zIndex: R
445
445
  },
446
446
  children: /* @__PURE__ */ a(
447
447
  De.div,
@@ -533,8 +533,8 @@ var [Nu, na] = yn($t, {}), Ns = "SelectViewport", si = A.forwardRef(
533
533
  if (C > 0) {
534
534
  const m = window.innerHeight - nt * 2, f = parseFloat(h.style.minHeight), k = parseFloat(h.style.height), y = Math.max(f, k);
535
535
  if (y < m) {
536
- const R = y + C, I = Math.min(m, R), N = R - I;
537
- h.style.height = I + "px", h.style.bottom === "0px" && (p.scrollTop = N > 0 ? N : 0, h.style.justifyContent = "flex-end");
536
+ const N = y + C, I = Math.min(m, N), R = N - I;
537
+ h.style.height = I + "px", h.style.bottom === "0px" && (p.scrollTop = R > 0 ? R : 0, h.style.justifyContent = "flex-end");
538
538
  }
539
539
  }
540
540
  }
@@ -570,9 +570,9 @@ var kr = "SelectItem", [xu, ci] = yn(kr), di = A.forwardRef(
570
570
  ...l
571
571
  } = n, c = Mt(kr, r), d = Ut(kr, r), u = c.value === s, [p, h] = A.useState(i ?? ""), [g, C] = A.useState(!1), m = Pe(
572
572
  t,
573
- (R) => {
573
+ (N) => {
574
574
  var I;
575
- return (I = d.itemRefCallback) == null ? void 0 : I.call(d, R, s, o);
575
+ return (I = d.itemRefCallback) == null ? void 0 : I.call(d, N, s, o);
576
576
  }
577
577
  ), f = Ls(), k = A.useRef("touch"), y = () => {
578
578
  o || (c.onValueChange(s), c.onOpenChange(!1));
@@ -589,8 +589,8 @@ var kr = "SelectItem", [xu, ci] = yn(kr), di = A.forwardRef(
589
589
  disabled: o,
590
590
  textId: f,
591
591
  isSelected: u,
592
- onItemTextChange: A.useCallback((R) => {
593
- h((I) => I || ((R == null ? void 0 : R.textContent) ?? "").trim());
592
+ onItemTextChange: A.useCallback((N) => {
593
+ h((I) => I || ((N == null ? void 0 : N.textContent) ?? "").trim());
594
594
  }, []),
595
595
  children: /* @__PURE__ */ a(
596
596
  Jr.ItemSlot,
@@ -620,20 +620,20 @@ var kr = "SelectItem", [xu, ci] = yn(kr), di = A.forwardRef(
620
620
  onPointerUp: be(l.onPointerUp, () => {
621
621
  k.current === "mouse" && y();
622
622
  }),
623
- onPointerDown: be(l.onPointerDown, (R) => {
624
- k.current = R.pointerType;
623
+ onPointerDown: be(l.onPointerDown, (N) => {
624
+ k.current = N.pointerType;
625
625
  }),
626
- onPointerMove: be(l.onPointerMove, (R) => {
626
+ onPointerMove: be(l.onPointerMove, (N) => {
627
627
  var I;
628
- k.current = R.pointerType, o ? (I = d.onItemLeave) == null || I.call(d) : k.current === "mouse" && R.currentTarget.focus({ preventScroll: !0 });
628
+ k.current = N.pointerType, o ? (I = d.onItemLeave) == null || I.call(d) : k.current === "mouse" && N.currentTarget.focus({ preventScroll: !0 });
629
629
  }),
630
- onPointerLeave: be(l.onPointerLeave, (R) => {
630
+ onPointerLeave: be(l.onPointerLeave, (N) => {
631
631
  var I;
632
- R.currentTarget === document.activeElement && ((I = d.onItemLeave) == null || I.call(d));
632
+ N.currentTarget === document.activeElement && ((I = d.onItemLeave) == null || I.call(d));
633
633
  }),
634
- onKeyDown: be(l.onKeyDown, (R) => {
635
- var N;
636
- ((N = d.searchRef) == null ? void 0 : N.current) !== "" && R.key === " " || (mu.includes(R.key) && y(), R.key === " " && R.preventDefault());
634
+ onKeyDown: be(l.onKeyDown, (N) => {
635
+ var R;
636
+ ((R = d.searchRef) == null ? void 0 : R.current) !== "" && N.key === " " || (mu.includes(N.key) && y(), N.key === " " && N.preventDefault());
637
637
  })
638
638
  }
639
639
  )
@@ -651,8 +651,8 @@ var Pn = "SelectItemText", ui = A.forwardRef(
651
651
  (y) => h(y),
652
652
  d.onItemTextChange,
653
653
  (y) => {
654
- var R;
655
- return (R = c.itemTextRefCallback) == null ? void 0 : R.call(c, y, d.value, d.disabled);
654
+ var N;
655
+ return (N = c.itemTextRefCallback) == null ? void 0 : N.call(c, y, d.value, d.disabled);
656
656
  }
657
657
  ), C = p == null ? void 0 : p.textContent, m = A.useMemo(
658
658
  () => /* @__PURE__ */ a("option", { value: d.value, disabled: d.disabled, children: C }, d.value),
@@ -842,27 +842,27 @@ var Ou = Go, Pu = Yo, Fu = Zo, zu = _o, Wu = $o, Hu = ei, Lu = si, Ku = oi, Vu =
842
842
  inverted: C = !1,
843
843
  form: m,
844
844
  ...f
845
- } = n, k = A.useRef(/* @__PURE__ */ new Set()), y = A.useRef(0), I = l === "horizontal" ? eh : th, [N = [], E] = vr({
845
+ } = n, k = A.useRef(/* @__PURE__ */ new Set()), y = A.useRef(0), I = l === "horizontal" ? eh : th, [R = [], E] = vr({
846
846
  prop: p,
847
847
  defaultProp: u,
848
848
  onChange: (Q) => {
849
849
  var z;
850
850
  (z = [...k.current][y.current]) == null || z.focus(), h(Q);
851
851
  }
852
- }), w = A.useRef(N);
852
+ }), w = A.useRef(R);
853
853
  function B(Q) {
854
- const D = oh(N, Q);
854
+ const D = oh(R, Q);
855
855
  T(Q, D);
856
856
  }
857
857
  function x(Q) {
858
858
  T(Q, y.current);
859
859
  }
860
- function P() {
860
+ function O() {
861
861
  const Q = w.current[y.current];
862
- N[y.current] !== Q && g(N);
862
+ R[y.current] !== Q && g(R);
863
863
  }
864
864
  function T(Q, D, { commit: z } = { commit: !1 }) {
865
- const U = dh(i), O = uh(Math.round((Q - s) / i) * i + s, U), V = yr(O, [s, o]);
865
+ const U = dh(i), P = uh(Math.round((Q - s) / i) * i + s, U), V = yr(P, [s, o]);
866
866
  E(($ = []) => {
867
867
  const G = sh($, V, D);
868
868
  if (ch(G, d * i)) {
@@ -883,7 +883,7 @@ var Ou = Go, Pu = Yo, Fu = Zo, zu = _o, Wu = $o, Hu = ei, Lu = si, Ku = oi, Vu =
883
883
  max: o,
884
884
  valueIndexToChangeRef: y,
885
885
  thumbs: k.current,
886
- values: N,
886
+ values: R,
887
887
  orientation: l,
888
888
  form: m,
889
889
  children: /* @__PURE__ */ a(Ts.Provider, { scope: n.__scopeSlider, children: /* @__PURE__ */ a(Ts.Slot, { scope: n.__scopeSlider, children: /* @__PURE__ */ a(
@@ -894,19 +894,19 @@ var Ou = Go, Pu = Yo, Fu = Zo, zu = _o, Wu = $o, Hu = ei, Lu = si, Ku = oi, Vu =
894
894
  ...f,
895
895
  ref: t,
896
896
  onPointerDown: be(f.onPointerDown, () => {
897
- c || (w.current = N);
897
+ c || (w.current = R);
898
898
  }),
899
899
  min: s,
900
900
  max: o,
901
901
  inverted: C,
902
902
  onSlideStart: c ? void 0 : B,
903
903
  onSlideMove: c ? void 0 : x,
904
- onSlideEnd: c ? void 0 : P,
904
+ onSlideEnd: c ? void 0 : O,
905
905
  onHomeKeyDown: () => !c && T(s, 0, { commit: !0 }),
906
- onEndKeyDown: () => !c && T(o, N.length - 1, { commit: !0 }),
906
+ onEndKeyDown: () => !c && T(o, R.length - 1, { commit: !0 }),
907
907
  onStepKeyDown: ({ event: Q, direction: D }) => {
908
908
  if (!c) {
909
- const O = yi.includes(Q.key) || Q.shiftKey && ki.includes(Q.key) ? 10 : 1, V = y.current, $ = N[V], G = i * O * D;
909
+ const P = yi.includes(Q.key) || Q.shiftKey && ki.includes(Q.key) ? 10 : 1, V = y.current, $ = R[V], G = i * P * D;
910
910
  T($ + G, V, { commit: !0 });
911
911
  }
912
912
  }
@@ -935,9 +935,9 @@ var [Si, Ei] = Ii(kn, {
935
935
  onStepKeyDown: u,
936
936
  ...p
937
937
  } = n, [h, g] = A.useState(null), C = Pe(t, (I) => g(I)), m = A.useRef(void 0), f = mo(o), k = f === "ltr", y = k && !i || !k && i;
938
- function R(I) {
939
- const N = m.current || h.getBoundingClientRect(), E = [0, N.width], B = ia(E, y ? [r, s] : [s, r]);
940
- return m.current = N, B(I - N.left);
938
+ function N(I) {
939
+ const R = m.current || h.getBoundingClientRect(), E = [0, R.width], B = ia(E, y ? [r, s] : [s, r]);
940
+ return m.current = R, B(I - R.left);
941
941
  }
942
942
  return /* @__PURE__ */ a(
943
943
  Si,
@@ -959,12 +959,12 @@ var [Si, Ei] = Ii(kn, {
959
959
  "--radix-slider-thumb-transform": "translateX(-50%)"
960
960
  },
961
961
  onSlideStart: (I) => {
962
- const N = R(I.clientX);
963
- l == null || l(N);
962
+ const R = N(I.clientX);
963
+ l == null || l(R);
964
964
  },
965
965
  onSlideMove: (I) => {
966
- const N = R(I.clientX);
967
- c == null || c(N);
966
+ const R = N(I.clientX);
967
+ c == null || c(R);
968
968
  },
969
969
  onSlideEnd: () => {
970
970
  m.current = void 0, d == null || d();
@@ -1113,7 +1113,7 @@ var Js = "SliderThumb", oa = A.forwardRef(
1113
1113
  }
1114
1114
  ), nh = A.forwardRef(
1115
1115
  (n, t) => {
1116
- const { __scopeSlider: r, index: s, name: o, ...i } = n, l = Ur(Js, r), c = Ei(Js, r), [d, u] = A.useState(null), p = Pe(t, (R) => u(R)), h = d ? l.form || !!d.closest("form") : !0, g = vc(d), C = l.values[s], m = C === void 0 ? 0 : Bi(C, l.min, l.max), f = ah(s, l.values.length), k = g == null ? void 0 : g[c.size], y = k ? ih(k, m, c.direction) : 0;
1116
+ const { __scopeSlider: r, index: s, name: o, ...i } = n, l = Ur(Js, r), c = Ei(Js, r), [d, u] = A.useState(null), p = Pe(t, (N) => u(N)), h = d ? l.form || !!d.closest("form") : !0, g = vc(d), C = l.values[s], m = C === void 0 ? 0 : Bi(C, l.min, l.max), f = ah(s, l.values.length), k = g == null ? void 0 : g[c.size], y = k ? ih(k, m, c.direction) : 0;
1117
1117
  return A.useEffect(() => {
1118
1118
  if (d)
1119
1119
  return l.thumbs.add(d), () => {
@@ -1437,15 +1437,15 @@ const Mi = A.forwardRef((n, t) => {
1437
1437
  A.useEffect(() => f(o), [o]);
1438
1438
  const [k, y] = A.useState(i);
1439
1439
  A.useEffect(() => y(i), [i]);
1440
- const [R, I] = A.useState(l);
1440
+ const [N, I] = A.useState(l);
1441
1441
  A.useEffect(() => I(l), [l]);
1442
- const [N, E] = A.useState(c);
1443
- return A.useEffect(() => E(c), [c]), A.createElement(ca, { ...u, ref: t, isRoot: !0, hasBackground: d, appearance: p, accentColor: g, grayColor: m, panelBackground: k, radius: R, scaling: N, onAppearanceChange: h, onAccentColorChange: C, onGrayColorChange: f, onPanelBackgroundChange: y, onRadiusChange: I, onScalingChange: E });
1442
+ const [R, E] = A.useState(c);
1443
+ return A.useEffect(() => E(c), [c]), A.createElement(ca, { ...u, ref: t, isRoot: !0, hasBackground: d, appearance: p, accentColor: g, grayColor: m, panelBackground: k, radius: N, scaling: R, onAppearanceChange: h, onAccentColorChange: C, onGrayColorChange: f, onPanelBackgroundChange: y, onRadiusChange: I, onScalingChange: E });
1444
1444
  });
1445
1445
  Mi.displayName = "ThemeRoot";
1446
1446
  const ca = A.forwardRef((n, t) => {
1447
- const r = A.useContext(br), { asChild: s, isRoot: o, hasBackground: i, appearance: l = (r == null ? void 0 : r.appearance) ?? Ze.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? Ze.accentColor.default, grayColor: d = (r == null ? void 0 : r.resolvedGrayColor) ?? Ze.grayColor.default, panelBackground: u = (r == null ? void 0 : r.panelBackground) ?? Ze.panelBackground.default, radius: p = (r == null ? void 0 : r.radius) ?? Ze.radius.default, scaling: h = (r == null ? void 0 : r.scaling) ?? Ze.scaling.default, onAppearanceChange: g = an, onAccentColorChange: C = an, onGrayColorChange: m = an, onPanelBackgroundChange: f = an, onRadiusChange: k = an, onScalingChange: y = an, ...R } = n, I = s ? Je : "div", N = d === "auto" ? wh(c) : d, E = n.appearance === "light" || n.appearance === "dark", w = i === void 0 ? o || E : i;
1448
- return A.createElement(br.Provider, { value: A.useMemo(() => ({ appearance: l, accentColor: c, grayColor: d, resolvedGrayColor: N, panelBackground: u, radius: p, scaling: h, onAppearanceChange: g, onAccentColorChange: C, onGrayColorChange: m, onPanelBackgroundChange: f, onRadiusChange: k, onScalingChange: y }), [l, c, d, N, u, p, h, g, C, m, f, k, y]) }, A.createElement(I, { "data-is-root-theme": o ? "true" : "false", "data-accent-color": c, "data-gray-color": N, "data-has-background": w ? "true" : "false", "data-panel-background": u, "data-radius": p, "data-scaling": h, ref: t, ...R, className: b("radix-themes", { light: l === "light", dark: l === "dark" }, R.className) }));
1447
+ const r = A.useContext(br), { asChild: s, isRoot: o, hasBackground: i, appearance: l = (r == null ? void 0 : r.appearance) ?? Ze.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? Ze.accentColor.default, grayColor: d = (r == null ? void 0 : r.resolvedGrayColor) ?? Ze.grayColor.default, panelBackground: u = (r == null ? void 0 : r.panelBackground) ?? Ze.panelBackground.default, radius: p = (r == null ? void 0 : r.radius) ?? Ze.radius.default, scaling: h = (r == null ? void 0 : r.scaling) ?? Ze.scaling.default, onAppearanceChange: g = an, onAccentColorChange: C = an, onGrayColorChange: m = an, onPanelBackgroundChange: f = an, onRadiusChange: k = an, onScalingChange: y = an, ...N } = n, I = s ? Je : "div", R = d === "auto" ? wh(c) : d, E = n.appearance === "light" || n.appearance === "dark", w = i === void 0 ? o || E : i;
1448
+ return A.createElement(br.Provider, { value: A.useMemo(() => ({ appearance: l, accentColor: c, grayColor: d, resolvedGrayColor: R, panelBackground: u, radius: p, scaling: h, onAppearanceChange: g, onAccentColorChange: C, onGrayColorChange: m, onPanelBackgroundChange: f, onRadiusChange: k, onScalingChange: y }), [l, c, d, R, u, p, h, g, C, m, f, k, y]) }, A.createElement(I, { "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": p, "data-scaling": h, ref: t, ...N, className: b("radix-themes", { light: l === "light", dark: l === "dark" }, N.className) }));
1449
1449
  });
1450
1450
  ca.displayName = "ThemeImpl";
1451
1451
  const Pt = (n) => {
@@ -2337,20 +2337,20 @@ const km = "_Callout_1lwt5_1", bm = "_size1_1lwt5_5", Im = "_onlyButton_1lwt5_5"
2337
2337
  iconButtonProps: p,
2338
2338
  ...h
2339
2339
  }) => {
2340
- const g = !!u, C = !!p, m = g || C, f = Pm(r), k = Fm(r), y = r === "3" ? "3" : "2", R = _(null), I = _(null), [N, E] = j("start");
2340
+ const g = !!u, C = !!p, m = g || C, f = Pm(r), k = Fm(r), y = r === "3" ? "3" : "2", N = _(null), I = _(null), [R, E] = j("start");
2341
2341
  Qo(() => {
2342
2342
  if (!m) {
2343
2343
  E("start");
2344
2344
  return;
2345
2345
  }
2346
- if (!R.current || !I.current) return;
2346
+ if (!N.current || !I.current) return;
2347
2347
  const B = () => {
2348
- const P = R.current.scrollHeight, T = I.current.scrollHeight;
2349
- E(P <= T ? "center" : "start");
2348
+ const O = N.current.scrollHeight, T = I.current.scrollHeight;
2349
+ E(O <= T ? "center" : "start");
2350
2350
  };
2351
2351
  B();
2352
2352
  const x = new ResizeObserver(B);
2353
- return x.observe(R.current), x.observe(I.current), () => x.disconnect();
2353
+ return x.observe(N.current), x.observe(I.current), () => x.disconnect();
2354
2354
  }, [m]);
2355
2355
  const w = () => d ? null : /* @__PURE__ */ a(ga, { style: { height: k }, children: /* @__PURE__ */ a(i, { width: f, height: f }) });
2356
2356
  return /* @__PURE__ */ a(en, { asChild: !0, children: /* @__PURE__ */ a(
@@ -2370,7 +2370,7 @@ const km = "_Callout_1lwt5_1", bm = "_size1_1lwt5_5", Im = "_onlyButton_1lwt5_5"
2370
2370
  C && !g && on.onlyIconButton
2371
2371
  ),
2372
2372
  ...h,
2373
- children: /* @__PURE__ */ v(S, { justify: "between", gap: "3", width: "100%", align: N, children: [
2373
+ children: /* @__PURE__ */ v(S, { justify: "between", gap: "3", width: "100%", align: R, children: [
2374
2374
  /* @__PURE__ */ v(
2375
2375
  S,
2376
2376
  {
@@ -2379,7 +2379,7 @@ const km = "_Callout_1lwt5_1", bm = "_size1_1lwt5_5", Im = "_onlyButton_1lwt5_5"
2379
2379
  width: "100%",
2380
2380
  children: [
2381
2381
  w(),
2382
- /* @__PURE__ */ v(S, { direction: "column", gap: "1", width: "100%", ref: R, children: [
2382
+ /* @__PURE__ */ v(S, { direction: "column", gap: "1", width: "100%", ref: N, children: [
2383
2383
  c && /* @__PURE__ */ a(Y, { size: y, weight: "bold", children: c }),
2384
2384
  /* @__PURE__ */ a(Y, { size: y, weight: "regular", children: l || n })
2385
2385
  ] })
@@ -2981,17 +2981,17 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
2981
2981
  if (u.length > 1) {
2982
2982
  const p = new Set(u), h = u.map((y) => n[y]).filter(Boolean), g = u.filter(
2983
2983
  (y) => y < i
2984
- ).length, C = i - g, f = [...n.filter((y, R) => !p.has(R))];
2984
+ ).length, C = i - g, f = [...n.filter((y, N) => !p.has(N))];
2985
2985
  return f.splice(C, 0, ...h), f.some(
2986
- (y, R) => {
2986
+ (y, N) => {
2987
2987
  var I;
2988
- return (y == null ? void 0 : y.id) !== ((I = n[R]) == null ? void 0 : I.id);
2988
+ return (y == null ? void 0 : y.id) !== ((I = n[N]) == null ? void 0 : I.id);
2989
2989
  }
2990
2990
  ) ? {
2991
2991
  order: r,
2992
2992
  move_before: i,
2993
2993
  orders: u,
2994
- rowIds: h.map((y, R) => Xt(y, R)).filter(Boolean),
2994
+ rowIds: h.map((y, N) => Xt(y, N)).filter(Boolean),
2995
2995
  mode: "multi"
2996
2996
  } : null;
2997
2997
  }
@@ -3091,17 +3091,17 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
3091
3091
  var z;
3092
3092
  const x = String(((z = B.active) == null ? void 0 : z.id) ?? "");
3093
3093
  if (!x) return;
3094
- const P = f.get(x);
3095
- if (!P) return;
3096
- const T = t.has(x), Q = T && r.length > 0 ? r : [P], D = {
3097
- row: P,
3094
+ const O = f.get(x);
3095
+ if (!O) return;
3096
+ const T = t.has(x), Q = T && r.length > 0 ? r : [O], D = {
3097
+ row: O,
3098
3098
  selectedRows: Q,
3099
3099
  isDraggedRowSelected: T
3100
3100
  };
3101
3101
  u(x), h(x), C(D), i == null || i(D, B.activatorEvent);
3102
3102
  },
3103
3103
  [i, f, r, t]
3104
- ), R = J((B) => {
3104
+ ), N = J((B) => {
3105
3105
  var x;
3106
3106
  h((x = B.over) != null && x.id ? String(B.over.id) : null);
3107
3107
  }, []), I = J(
@@ -3109,29 +3109,29 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
3109
3109
  g != null && g.row && (l == null || l(g.row, B == null ? void 0 : B.activatorEvent)), k();
3110
3110
  },
3111
3111
  [g, l, k]
3112
- ), N = J(
3112
+ ), R = J(
3113
3113
  (B) => {
3114
3114
  var Q, D;
3115
- const x = String(((Q = B.active) == null ? void 0 : Q.id) ?? ""), P = (D = B.over) != null && D.id ? String(B.over.id) : null, T = f.get(x) ?? (g == null ? void 0 : g.row);
3116
- if (T && (l == null || l(T, B.activatorEvent)), s && P && x) {
3117
- const z = n.findIndex((O) => O.id === x);
3115
+ const x = String(((Q = B.active) == null ? void 0 : Q.id) ?? ""), O = (D = B.over) != null && D.id ? String(B.over.id) : null, T = f.get(x) ?? (g == null ? void 0 : g.row);
3116
+ if (T && (l == null || l(T, B.activatorEvent)), s && O && x) {
3117
+ const z = n.findIndex((P) => P.id === x);
3118
3118
  let U = null;
3119
- if (P === Ms)
3119
+ if (O === Ms)
3120
3120
  U = 0;
3121
- else if (P === Us)
3121
+ else if (O === Us)
3122
3122
  U = n.length;
3123
- else if (x !== P) {
3124
- const O = n.findIndex((V) => V.id === P);
3125
- O >= 0 && (U = O > z ? O + 1 : O);
3123
+ else if (x !== O) {
3124
+ const P = n.findIndex((V) => V.id === O);
3125
+ P >= 0 && (U = P > z ? P + 1 : P);
3126
3126
  }
3127
3127
  if (z >= 0 && U != null) {
3128
- const O = zC({
3128
+ const P = zC({
3129
3129
  data: n,
3130
3130
  selectedSet: t,
3131
3131
  order: z,
3132
3132
  moveBefore: U
3133
3133
  });
3134
- O && (o == null || o(O));
3134
+ P && (o == null || o(P));
3135
3135
  }
3136
3136
  }
3137
3137
  k();
@@ -3151,19 +3151,19 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
3151
3151
  sensors: m,
3152
3152
  collisionDetection: au,
3153
3153
  onDragStart: y,
3154
- onDragOver: R,
3154
+ onDragOver: N,
3155
3155
  onDragCancel: I,
3156
- onDragEnd: N
3156
+ onDragEnd: R
3157
3157
  }),
3158
- [I, N, R, y, m]
3158
+ [I, R, N, y, m]
3159
3159
  ), w = oe(
3160
3160
  () => ({
3161
3161
  onDragStart: y,
3162
- onDragOver: R,
3162
+ onDragOver: N,
3163
3163
  onDragCancel: I,
3164
- onDragEnd: N
3164
+ onDragEnd: R
3165
3165
  }),
3166
- [y, R, I, N]
3166
+ [y, N, I, R]
3167
3167
  );
3168
3168
  return {
3169
3169
  dndContextProps: E,
@@ -3217,22 +3217,22 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
3217
3217
  )
3218
3218
  }
3219
3219
  ),
3220
- n.map((y, R) => /* @__PURE__ */ a(
3220
+ n.map((y, N) => /* @__PURE__ */ a(
3221
3221
  Hn,
3222
3222
  {
3223
3223
  className: b(ne.columnHeaderCell, {
3224
- [ne.columnProject]: R === 0,
3225
- [ne.dataColumn]: R !== 0,
3224
+ [ne.columnProject]: N === 0,
3225
+ [ne.dataColumn]: N !== 0,
3226
3226
  [ne.mobileVisibleDataColumn]: y.id === s,
3227
3227
  [ne.sortedColumn]: nr(t) === nr(y.id)
3228
3228
  }),
3229
3229
  children: /* @__PURE__ */ v(S, { align: "center", gap: "3", height: "24px", children: [
3230
- R === 0 && o ? /* @__PURE__ */ a(Y, { size: "2", weight: "regular", className: ne.headerTextFirst, children: l }) : y.sortable ? /* @__PURE__ */ v(
3230
+ N === 0 && o ? /* @__PURE__ */ a(Y, { size: "2", weight: "regular", className: ne.headerTextFirst, children: l }) : y.sortable ? /* @__PURE__ */ v(
3231
3231
  "button",
3232
3232
  {
3233
3233
  type: "button",
3234
3234
  className: b(ne.sortButton, {
3235
- [ne.sortButtonFirst]: R === 0
3235
+ [ne.sortButtonFirst]: N === 0
3236
3236
  }),
3237
3237
  onClick: () => f(y.id),
3238
3238
  children: [
@@ -3241,7 +3241,7 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
3241
3241
  ]
3242
3242
  }
3243
3243
  ) : /* @__PURE__ */ a(Y, { size: "2", className: ne.headerText, children: y.label }),
3244
- R === 0 && g && /* @__PURE__ */ a(S, { gap: "2", className: ne.headerActions, children: g({
3244
+ N === 0 && g && /* @__PURE__ */ a(S, { gap: "2", className: ne.headerActions, children: g({
3245
3245
  selectedCount: c,
3246
3246
  total: d,
3247
3247
  anySelected: o,
@@ -3296,11 +3296,11 @@ const YC = Te.memo(function({
3296
3296
  renderDataCell: f,
3297
3297
  rowDraggable: k,
3298
3298
  reorderable: y,
3299
- isDragOver: R,
3299
+ isDragOver: N,
3300
3300
  dndScopeId: I
3301
3301
  }) {
3302
3302
  var X;
3303
- const N = _(!1), E = _(!1), w = _(!1), B = _(!1), { listeners: x, setNodeRef: P, transform: T, transition: Q, isDragging: D } = du({
3303
+ const R = _(!1), E = _(!1), w = _(!1), B = _(!1), { listeners: x, setNodeRef: O, transform: T, transition: Q, isDragging: D } = du({
3304
3304
  id: r,
3305
3305
  disabled: !Va({ row: t, rowDraggable: k, reorderable: y }),
3306
3306
  data: {
@@ -3313,7 +3313,7 @@ const YC = Te.memo(function({
3313
3313
  }), z = {
3314
3314
  ...T ? { transform: Au.Transform.toString(T) } : {},
3315
3315
  ...Q ? { transition: Q } : {}
3316
- }, U = i ? { ...z, "--row-bg": "var(--aqua-alpha-2)" } : z, O = (F) => {
3316
+ }, U = i ? { ...z, "--row-bg": "var(--aqua-alpha-2)" } : z, P = (F) => {
3317
3317
  if (E.current) {
3318
3318
  E.current = !1;
3319
3319
  return;
@@ -3322,14 +3322,14 @@ const YC = Te.memo(function({
3322
3322
  }, V = (F) => {
3323
3323
  F.pointerType === "touch" && (E.current = !0, F.shiftKey ? C == null || C(t, s) : h == null || h(t));
3324
3324
  }, $ = (F) => {
3325
- F.stopPropagation(), F.shiftKey && (F.preventDefault(), N.current = !0, C == null || C(t, s), setTimeout(() => {
3326
- N.current = !1;
3325
+ F.stopPropagation(), F.shiftKey && (F.preventDefault(), R.current = !0, C == null || C(t, s), setTimeout(() => {
3326
+ R.current = !1;
3327
3327
  }, 0));
3328
3328
  }, G = (F) => {
3329
3329
  if (F.key === "Enter") {
3330
3330
  if (F.preventDefault(), F.stopPropagation(), F.shiftKey) {
3331
- N.current = !0, C == null || C(t, s), setTimeout(() => {
3332
- N.current = !1;
3331
+ R.current = !0, C == null || C(t, s), setTimeout(() => {
3332
+ R.current = !1;
3333
3333
  }, 0);
3334
3334
  return;
3335
3335
  }
@@ -3344,8 +3344,8 @@ const YC = Te.memo(function({
3344
3344
  }, q = (F) => {
3345
3345
  F.pointerType === "touch" && (F.stopPropagation(), w.current = !0, F.shiftKey ? C == null || C(t, s) : r != null && (g == null || g(r, !i)));
3346
3346
  }, he = (F) => {
3347
- if (N.current) {
3348
- N.current = !1;
3347
+ if (R.current) {
3348
+ R.current = !1;
3349
3349
  return;
3350
3350
  }
3351
3351
  if (w.current) {
@@ -3361,13 +3361,13 @@ const YC = Te.memo(function({
3361
3361
  return /* @__PURE__ */ v(
3362
3362
  Yn,
3363
3363
  {
3364
- ref: P,
3364
+ ref: O,
3365
3365
  "data-row-id": r ?? void 0,
3366
3366
  className: b({
3367
3367
  [ne.rowSelected]: i,
3368
3368
  [ne.showDropdownOnSelect]: de,
3369
3369
  [ne.rowDragging]: D,
3370
- [ne.rowDragOver]: K && R,
3370
+ [ne.rowDragOver]: K && N,
3371
3371
  [ne.rowReorderable]: K
3372
3372
  }),
3373
3373
  style: U,
@@ -3408,14 +3408,14 @@ const YC = Te.memo(function({
3408
3408
  ),
3409
3409
  "data-column-id": F.id,
3410
3410
  "data-sorted": d === F.id,
3411
- onClick: M === 0 ? void 0 : O,
3411
+ onClick: M === 0 ? void 0 : P,
3412
3412
  onPointerUp: M === 0 ? void 0 : V,
3413
3413
  children: M === 0 ? /* @__PURE__ */ a(
3414
3414
  "button",
3415
3415
  {
3416
3416
  type: "button",
3417
3417
  className: ne.rowActionButton,
3418
- onClick: O,
3418
+ onClick: P,
3419
3419
  onPointerUp: V,
3420
3420
  children: m(t)
3421
3421
  }
@@ -3487,24 +3487,24 @@ const YC = Te.memo(function({
3487
3487
  overDragRowId: f,
3488
3488
  dndScopeId: k
3489
3489
  }) => {
3490
- const y = t.length + 1 + (d ? 1 : 0), R = J((N) => /* @__PURE__ */ v(S, { align: "center", gap: "3", children: [
3490
+ const y = t.length + 1 + (d ? 1 : 0), N = J((R) => /* @__PURE__ */ v(S, { align: "center", gap: "3", children: [
3491
3491
  /* @__PURE__ */ a(
3492
3492
  es,
3493
3493
  {
3494
- title: N.title,
3494
+ title: R.title,
3495
3495
  size: 48,
3496
3496
  className: ne.thumb,
3497
- type: N.type,
3498
- cover: N.thumb
3497
+ type: R.type,
3498
+ cover: R.thumb
3499
3499
  }
3500
3500
  ),
3501
3501
  /* @__PURE__ */ v(S, { direction: "column", style: { minWidth: 0, flex: 1 }, children: [
3502
- /* @__PURE__ */ a(Y, { size: "2", className: ne.titleText, children: N.title }),
3503
- /* @__PURE__ */ a(Y, { size: "1", className: ne.artistText, children: N.artist })
3502
+ /* @__PURE__ */ a(Y, { size: "2", className: ne.titleText, children: R.title }),
3503
+ /* @__PURE__ */ a(Y, { size: "1", className: ne.artistText, children: R.artist })
3504
3504
  ] })
3505
- ] }), []), I = J((N, E, w) => {
3505
+ ] }), []), I = J((R, E, w) => {
3506
3506
  var T;
3507
- const B = (N == null ? void 0 : N[E.id]) ?? (N == null ? void 0 : N[`${E.id}Formatted`]), x = ((T = E.render) == null ? void 0 : T.call(E, { row: N, value: B, column: E, index: w })) ?? B;
3507
+ const B = (R == null ? void 0 : R[E.id]) ?? (R == null ? void 0 : R[`${E.id}Formatted`]), x = ((T = E.render) == null ? void 0 : T.call(E, { row: R, value: B, column: E, index: w })) ?? B;
3508
3508
  return typeof x == "string" || typeof x == "number" || x == null ? /* @__PURE__ */ a(Y, { size: "2", className: ne.cellText, children: x }) : x;
3509
3509
  }, []);
3510
3510
  return /* @__PURE__ */ a(Ta, { children: /* @__PURE__ */ v(uu, { items: r, strategy: hu, children: [
@@ -3516,14 +3516,14 @@ const YC = Te.memo(function({
3516
3516
  colSpan: y
3517
3517
  }
3518
3518
  ),
3519
- n.map((N, E) => /* @__PURE__ */ a(
3519
+ n.map((R, E) => /* @__PURE__ */ a(
3520
3520
  YC,
3521
3521
  {
3522
- rowId: N.id,
3523
- row: N,
3522
+ rowId: R.id,
3523
+ row: R,
3524
3524
  rowIndex: E,
3525
3525
  columns: t,
3526
- isSelected: s(N, E),
3526
+ isSelected: s(R, E),
3527
3527
  anyRowSelected: o,
3528
3528
  selectedCount: i,
3529
3529
  sortedKey: l,
@@ -3532,14 +3532,14 @@ const YC = Te.memo(function({
3532
3532
  onRowClick: u,
3533
3533
  onSelectRow: p,
3534
3534
  onShiftClickRow: h,
3535
- renderProjectCell: R,
3535
+ renderProjectCell: N,
3536
3536
  renderDataCell: I,
3537
3537
  rowDraggable: g,
3538
3538
  reorderable: C,
3539
- isDragOver: C && f === N.id && m !== N.id,
3539
+ isDragOver: C && f === R.id && m !== R.id,
3540
3540
  dndScopeId: k
3541
3541
  },
3542
- N.id
3542
+ R.id
3543
3543
  )),
3544
3544
  C && /* @__PURE__ */ a(
3545
3545
  ja,
@@ -3569,33 +3569,33 @@ const YC = Te.memo(function({
3569
3569
  rowDraggable: f,
3570
3570
  onRowDragStart: k,
3571
3571
  onRowDragMove: y,
3572
- onRowDragEnd: R,
3572
+ onRowDragEnd: N,
3573
3573
  getDragPreviewLabel: I,
3574
- getDragPreviewCountLabel: N,
3574
+ getDragPreviewCountLabel: R,
3575
3575
  renderDragPreview: E,
3576
3576
  renderDndContext: w = !0,
3577
3577
  dndScopeId: B,
3578
3578
  ...x
3579
3579
  }) => {
3580
3580
  var Z, Me;
3581
- const P = _(null), T = c == null ? void 0 : c.field, Q = (Z = t == null ? void 0 : t[0]) == null ? void 0 : Z.id, D = (Me = t == null ? void 0 : t[1]) == null ? void 0 : Me.id, z = oe(() => {
3581
+ const O = _(null), T = c == null ? void 0 : c.field, Q = (Z = t == null ? void 0 : t[0]) == null ? void 0 : Z.id, D = (Me = t == null ? void 0 : t[1]) == null ? void 0 : Me.id, z = oe(() => {
3582
3582
  if (t != null && t.length)
3583
3583
  return !T || T === Q ? D : T;
3584
3584
  }, [t, T, Q, D]), U = oe(
3585
3585
  () => r.map((fe, Ce) => OC(fe, Ce)),
3586
3586
  [r]
3587
- ), O = oe(
3587
+ ), P = oe(
3588
3588
  () => new Set((s ?? []).map((fe) => String(fe))),
3589
3589
  [s]
3590
3590
  ), V = oe(
3591
- () => U.filter((fe) => fe.id && O.has(fe.id)),
3592
- [U, O]
3591
+ () => U.filter((fe) => fe.id && P.has(fe.id)),
3592
+ [U, P]
3593
3593
  ), $ = J(
3594
3594
  (fe, Ce) => {
3595
3595
  const Ee = Xt(fe, Ce);
3596
- return Ee != null && O.has(Ee);
3596
+ return Ee != null && P.has(Ee);
3597
3597
  },
3598
- [O]
3598
+ [P]
3599
3599
  ), G = s.length, W = (r == null ? void 0 : r.length) ?? 0, q = G > 0, he = W > 0 && G === W, de = oe(
3600
3600
  () => r == null ? void 0 : r.some((fe) => {
3601
3601
  var Ce;
@@ -3610,18 +3610,18 @@ const YC = Te.memo(function({
3610
3610
  ), K = J(
3611
3611
  (fe, Ce) => {
3612
3612
  if (!p) return;
3613
- const Ee = P.current, $e = Ee != null ? Math.min(Ee, Ce) : Ce, qe = Ee != null ? Math.max(Ee, Ce) : Ce;
3613
+ const Ee = O.current, $e = Ee != null ? Math.min(Ee, Ce) : Ce, qe = Ee != null ? Math.max(Ee, Ce) : Ce;
3614
3614
  for (let Zn = $e; Zn <= qe; Zn++) {
3615
3615
  const Ua = Xt(r[Zn], Zn);
3616
3616
  Ua != null && p(Ua, !0);
3617
3617
  }
3618
- Ee == null && (P.current = Ce);
3618
+ Ee == null && (O.current = Ce);
3619
3619
  },
3620
3620
  [r, p]
3621
3621
  ), X = J(
3622
3622
  (fe, Ce) => {
3623
3623
  const Ee = (r == null ? void 0 : r.findIndex(($e, qe) => Xt($e, qe) === String(fe))) ?? -1;
3624
- Ee >= 0 && (P.current = Ee), p == null || p(String(fe), Ce);
3624
+ Ee >= 0 && (O.current = Ee), p == null || p(String(fe), Ce);
3625
3625
  },
3626
3626
  [r, p]
3627
3627
  ), {
@@ -3633,12 +3633,12 @@ const YC = Te.memo(function({
3633
3633
  monitorHandlers: ae
3634
3634
  } = KC({
3635
3635
  rows: U,
3636
- selectedSet: O,
3636
+ selectedSet: P,
3637
3637
  selectedRows: V,
3638
3638
  reorderable: C,
3639
3639
  onReorder: m,
3640
3640
  onRowDragStart: k,
3641
- onRowDragEnd: R,
3641
+ onRowDragEnd: N,
3642
3642
  dndScopeId: B
3643
3643
  }), ee = _(ae);
3644
3644
  ee.current = ae;
@@ -3702,7 +3702,7 @@ const YC = Te.memo(function({
3702
3702
  model: ie,
3703
3703
  renderDragPreview: E,
3704
3704
  getDragPreviewLabel: I,
3705
- getDragPreviewCountLabel: N
3705
+ getDragPreviewCountLabel: R
3706
3706
  }
3707
3707
  ) }) : null });
3708
3708
  return w ? /* @__PURE__ */ v(iu, { ...F, children: [
@@ -3749,11 +3749,11 @@ const _C = "_hasTriggerWithoutClick_19qua_1", $C = "_hasLeftColor_19qua_10", ev
3749
3749
  i && (w.preventDefault(), w.stopPropagation(), i(w));
3750
3750
  }, y = () => {
3751
3751
  C(!0);
3752
- }, R = () => {
3752
+ }, N = () => {
3753
3753
  C(!1);
3754
3754
  }, I = () => {
3755
3755
  f(!0);
3756
- }, N = () => {
3756
+ }, R = () => {
3757
3757
  f(!1);
3758
3758
  }, E = i ? "button" : "div";
3759
3759
  return /* @__PURE__ */ a(S, { className: b(We.container, s), ...u, children: /* @__PURE__ */ v(Rr, { open: l, onOpenChange: c, modal: !0, children: [
@@ -3771,7 +3771,7 @@ const _C = "_hasTriggerWithoutClick_19qua_1", $C = "_hasLeftColor_19qua_10", ev
3771
3771
  onMouseLeave: () => h(!1),
3772
3772
  onClick: k,
3773
3773
  onFocus: y,
3774
- onBlur: R,
3774
+ onBlur: N,
3775
3775
  children: /* @__PURE__ */ a(
3776
3776
  Oe,
3777
3777
  {
@@ -3807,7 +3807,7 @@ const _C = "_hasTriggerWithoutClick_19qua_1", $C = "_hasLeftColor_19qua_10", ev
3807
3807
  h(!1);
3808
3808
  },
3809
3809
  onFocus: I,
3810
- onBlur: N,
3810
+ onBlur: R,
3811
3811
  children: [
3812
3812
  !i && /* @__PURE__ */ a(
3813
3813
  Oe,
@@ -3873,10 +3873,10 @@ const Ga = Da(ld), mn = Ge(
3873
3873
  wrapCloseMenu: g,
3874
3874
  ...C
3875
3875
  }) => {
3876
- const m = C.open !== void 0, [f, k] = j(!1), y = m ? C.open : f, R = J((w) => {
3876
+ const m = C.open !== void 0, [f, k] = j(!1), y = m ? C.open : f, N = J((w) => {
3877
3877
  var B;
3878
3878
  m || k(w), (B = C == null ? void 0 : C.onOpenChange) == null || B.call(C, w);
3879
- }, [m, C == null ? void 0 : C.onOpenChange]), I = J(() => R(!1), [R]), N = g ? g(I) : I, E = {
3879
+ }, [m, C == null ? void 0 : C.onOpenChange]), I = J(() => N(!1), [N]), R = g ? g(I) : I, E = {
3880
3880
  ...p && {
3881
3881
  width: "var(--radix-dropdown-menu-trigger-width)",
3882
3882
  boxSizing: "border-box"
@@ -3888,7 +3888,7 @@ const Ga = Da(ld), mn = Ge(
3888
3888
  {
3889
3889
  ...C,
3890
3890
  open: l ? !1 : y,
3891
- onOpenChange: l ? void 0 : R,
3891
+ onOpenChange: l ? void 0 : N,
3892
3892
  children: [
3893
3893
  /* @__PURE__ */ a(
3894
3894
  Jo,
@@ -3926,7 +3926,7 @@ const Ga = Da(ld), mn = Ge(
3926
3926
  o,
3927
3927
  i,
3928
3928
  d,
3929
- N,
3929
+ R,
3930
3930
  h
3931
3931
  )
3932
3932
  )
@@ -3953,7 +3953,7 @@ const Ga = Da(ld), mn = Ge(
3953
3953
  o,
3954
3954
  i,
3955
3955
  d,
3956
- N,
3956
+ R,
3957
3957
  h
3958
3958
  )
3959
3959
  )
@@ -3992,13 +3992,13 @@ const dv = "_container_5ow1v_1", uv = "_triggerWithClick_5ow1v_12", hv = "_chevr
3992
3992
  wrapCloseMenu: C,
3993
3993
  ...m
3994
3994
  }) => {
3995
- const f = m.open !== void 0, [k, y] = j(!1), R = f ? m.open : k, I = J(
3995
+ const f = m.open !== void 0, [k, y] = j(!1), N = f ? m.open : k, I = J(
3996
3996
  (D) => {
3997
3997
  var z;
3998
3998
  f || y(D), (z = m == null ? void 0 : m.onOpenChange) == null || z.call(m, D);
3999
3999
  },
4000
4000
  [f, m == null ? void 0 : m.onOpenChange]
4001
- ), N = J(() => I(!1), [I]), E = C ? C(N) : N, w = {
4001
+ ), R = J(() => I(!1), [I]), E = C ? C(R) : R, w = {
4002
4002
  ...u && {
4003
4003
  width: "var(--radix-dropdown-menu-trigger-width)",
4004
4004
  boxSizing: "border-box"
@@ -4008,7 +4008,7 @@ const dv = "_container_5ow1v_1", uv = "_triggerWithClick_5ow1v_12", hv = "_chevr
4008
4008
  p && (D.preventDefault(), D.stopPropagation(), p(D));
4009
4009
  }, x = J((D) => {
4010
4010
  D.key === "Tab" && D.stopPropagation();
4011
- }, []), P = J((D) => {
4011
+ }, []), O = J((D) => {
4012
4012
  D.preventDefault();
4013
4013
  const z = D.currentTarget.querySelector("[data-tools-dropdown-panel]");
4014
4014
  z == null || z.focus({ preventScroll: !0 });
@@ -4031,7 +4031,7 @@ const dv = "_container_5ow1v_1", uv = "_triggerWithClick_5ow1v_12", hv = "_chevr
4031
4031
  style: w,
4032
4032
  sideOffset: d,
4033
4033
  alignOffset: 0,
4034
- onOpenAutoFocus: P,
4034
+ onOpenAutoFocus: O,
4035
4035
  onCloseAutoFocus: (D) => {
4036
4036
  D.preventDefault();
4037
4037
  },
@@ -4043,7 +4043,7 @@ const dv = "_container_5ow1v_1", uv = "_triggerWithClick_5ow1v_12", hv = "_chevr
4043
4043
  Do,
4044
4044
  {
4045
4045
  ...m,
4046
- open: l ? !1 : R,
4046
+ open: l ? !1 : N,
4047
4047
  onOpenChange: l ? void 0 : I,
4048
4048
  children: [
4049
4049
  p && /* @__PURE__ */ a(
@@ -4104,30 +4104,30 @@ const vv = "_popoverPortal_j8b3y_1", yv = "_popoverContent_j8b3y_9", kv = "_cont
4104
4104
  }) => {
4105
4105
  const g = h.open !== void 0, [C, m] = j(!1), f = g ? h.open : C, k = J(
4106
4106
  (x) => {
4107
- var P;
4108
- g || m(x), (P = h == null ? void 0 : h.onOpenChange) == null || P.call(h, x);
4107
+ var O;
4108
+ g || m(x), (O = h == null ? void 0 : h.onOpenChange) == null || O.call(h, x);
4109
4109
  },
4110
4110
  [g, h == null ? void 0 : h.onOpenChange]
4111
- ), y = J(() => k(!1), [k]), R = u ? u(y) : y, I = {
4111
+ ), y = J(() => k(!1), [k]), N = u ? u(y) : y, I = {
4112
4112
  ...d && {
4113
4113
  width: "var(--radix-popover-trigger-width)",
4114
4114
  boxSizing: "border-box"
4115
4115
  },
4116
4116
  ...l && { height: l }
4117
- }, N = J((x) => {
4117
+ }, R = J((x) => {
4118
4118
  x.key === "Tab" && x.stopPropagation();
4119
4119
  }, []), E = J((x) => {
4120
4120
  x.preventDefault();
4121
- const P = x.currentTarget.querySelector("[data-tools-popover-panel]");
4122
- P == null || P.focus({ preventScroll: !0 });
4121
+ const O = x.currentTarget.querySelector("[data-tools-popover-panel]");
4122
+ O == null || O.focus({ preventScroll: !0 });
4123
4123
  }, []), w = () => /* @__PURE__ */ a(
4124
4124
  "div",
4125
4125
  {
4126
4126
  className: is.contentPanel,
4127
4127
  "data-tools-popover-panel": !0,
4128
4128
  tabIndex: -1,
4129
- onKeyDown: N,
4130
- children: typeof t == "function" ? t(R) : t
4129
+ onKeyDown: R,
4130
+ children: typeof t == "function" ? t(N) : t
4131
4131
  }
4132
4132
  ), B = /* @__PURE__ */ a(en, { asChild: !0, children: /* @__PURE__ */ a(
4133
4133
  Nr,
@@ -4378,27 +4378,27 @@ function Wv({ initialScreen: n, animated: t, children: r }) {
4378
4378
  ), k = J(
4379
4379
  (Q) => g(() => [{ name: Q || n, params: {} }]),
4380
4380
  [g, n]
4381
- ), y = s.length > 1, R = oe(
4381
+ ), y = s.length > 1, N = oe(
4382
4382
  () => ({ push: C, pop: m, popTo: f, reset: k, canGoBack: y, stack: s }),
4383
4383
  [C, m, f, k, y, s]
4384
- ), I = s[s.length - 1], N = h[I.name];
4385
- if (!N) return null;
4384
+ ), I = s[s.length - 1], R = h[I.name];
4385
+ if (!R) return null;
4386
4386
  const E = oe(
4387
4387
  () => s.map((Q, D) => {
4388
4388
  var z;
4389
4389
  return (z = h[Q.name]) != null && z.keepMounted ? { entry: Q, stackIndex: D } : null;
4390
4390
  }).filter(Boolean),
4391
4391
  [s, h]
4392
- ), w = (Q, D) => Q in i ? i[Q] : N[Q] ?? D, B = N.component, x = N.keepMounted === !0, P = J(
4392
+ ), w = (Q, D) => Q in i ? i[Q] : R[Q] ?? D, B = R.component, x = R.keepMounted === !0, O = J(
4393
4393
  (Q) => {
4394
4394
  u.current[u.current.length - 1].name === I.name && l((z) => ({ ...z, ...Q }));
4395
4395
  },
4396
4396
  [I.name]
4397
4397
  ), T = oe(
4398
- () => ({ name: I.name, params: I.params || {}, setOptions: P }),
4399
- [I.name, I.params, P]
4398
+ () => ({ name: I.name, params: I.params || {}, setOptions: O }),
4399
+ [I.name, I.params, O]
4400
4400
  );
4401
- return /* @__PURE__ */ a(Tl.Provider, { value: R, children: /* @__PURE__ */ v("div", { style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
4401
+ return /* @__PURE__ */ a(Tl.Provider, { value: N, children: /* @__PURE__ */ v("div", { style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
4402
4402
  /* @__PURE__ */ a(
4403
4403
  Dl,
4404
4404
  {
@@ -4426,12 +4426,12 @@ function Wv({ initialScreen: n, animated: t, children: r }) {
4426
4426
  E.map(({ entry: Q, stackIndex: D }) => {
4427
4427
  const z = h[Q.name];
4428
4428
  if (!(z != null && z.component)) return null;
4429
- const U = z.component, O = Q.name === I.name, V = O ? T : { name: Q.name, params: Q.params || {}, setOptions: () => {
4429
+ const U = z.component, P = Q.name === I.name, V = P ? T : { name: Q.name, params: Q.params || {}, setOptions: () => {
4430
4430
  } };
4431
4431
  return /* @__PURE__ */ a(
4432
4432
  "div",
4433
4433
  {
4434
- style: O ? {
4434
+ style: P ? {
4435
4435
  position: "relative",
4436
4436
  display: "flex",
4437
4437
  flexDirection: "column",
@@ -4873,13 +4873,13 @@ const aR = $r, g1 = "_sliderRoot_19e7a_23", m1 = "_sliderTrack_19e7a_31", f1 = "
4873
4873
  tooltipArrow: y1,
4874
4874
  sliderContainer: k1
4875
4875
  }, b1 = ({ onChangeValue: n, volume: t, disabled: r }) => {
4876
- const [s, o] = j(!1), i = _(), l = _(0), c = J((N) => {
4877
- if (N < 1e-3) return -1 / 0;
4878
- const E = 20 * Math.log10(N);
4876
+ const [s, o] = j(!1), i = _(), l = _(0), c = J((R) => {
4877
+ if (R < 1e-3) return -1 / 0;
4878
+ const E = 20 * Math.log10(R);
4879
4879
  return E < -60 ? -60 : E;
4880
- }, []), d = J((N) => N === -1 / 0 || N <= -60 ? 0 : Math.pow(10, N / 20), []), u = oe(() => {
4881
- const N = c(t);
4882
- return N === -1 / 0 ? -60 : Math.max(-60, Math.min(6, N));
4880
+ }, []), d = J((R) => R === -1 / 0 || R <= -60 ? 0 : Math.pow(10, R / 20), []), u = oe(() => {
4881
+ const R = c(t);
4882
+ return R === -1 / 0 ? -60 : Math.max(-60, Math.min(6, R));
4883
4883
  }, [t, c]), p = oe(() => t < 1e-3, [t]), h = J(() => {
4884
4884
  clearTimeout(i.current), o(!0);
4885
4885
  }, []), g = J(() => {
@@ -4887,13 +4887,13 @@ const aR = $r, g1 = "_sliderRoot_19e7a_23", m1 = "_sliderTrack_19e7a_31", f1 = "
4887
4887
  o(!1);
4888
4888
  }, 300);
4889
4889
  }, []), C = J(
4890
- (N) => {
4891
- (N.key === "ArrowUp" || N.key === "ArrowDown") && h(), (N.key === "ArrowLeft" || N.key === "ArrowRight") && (N.preventDefault(), N.stopPropagation(), h());
4890
+ (R) => {
4891
+ (R.key === "ArrowUp" || R.key === "ArrowDown") && h(), (R.key === "ArrowLeft" || R.key === "ArrowRight") && (R.preventDefault(), R.stopPropagation(), h());
4892
4892
  },
4893
4893
  [h]
4894
4894
  ), m = J(
4895
- (N) => {
4896
- n(N.map(d));
4895
+ (R) => {
4896
+ n(R.map(d));
4897
4897
  },
4898
4898
  [n, d]
4899
4899
  ), f = J(() => {
@@ -4902,9 +4902,9 @@ const aR = $r, g1 = "_sliderRoot_19e7a_23", m1 = "_sliderTrack_19e7a_31", f1 = "
4902
4902
  g();
4903
4903
  }, [g]), y = J(() => {
4904
4904
  n([1]), h();
4905
- }, [n, h]), R = J(() => {
4906
- const N = Date.now();
4907
- N - l.current < 300 && y(), l.current = N;
4905
+ }, [n, h]), N = J(() => {
4906
+ const R = Date.now();
4907
+ R - l.current < 300 && y(), l.current = R;
4908
4908
  }, [y]), I = oe(
4909
4909
  () => /* @__PURE__ */ v(we, { children: [
4910
4910
  p ? "-∞ dB" : `${u.toFixed(1)} dB`,
@@ -4934,7 +4934,7 @@ const aR = $r, g1 = "_sliderRoot_19e7a_23", m1 = "_sliderTrack_19e7a_31", f1 = "
4934
4934
  onPointerDown: f,
4935
4935
  onKeyDown: C,
4936
4936
  onBlur: k,
4937
- onClick: R
4937
+ onClick: N
4938
4938
  }
4939
4939
  ) }),
4940
4940
  /* @__PURE__ */ a(
@@ -5026,13 +5026,13 @@ const Ol = Ge(
5026
5026
  const [u, p] = j(!1), [h, g] = j(!1), C = r || u || h, m = J(
5027
5027
  (y) => {
5028
5028
  if (!c || y.button !== 0) return;
5029
- const R = performance.now(), I = i.current;
5030
- if (I && R - I.t < P1 && Math.hypot(y.clientX - I.x, y.clientY - I.y) < F1) {
5029
+ const N = performance.now(), I = i.current;
5030
+ if (I && N - I.t < P1 && Math.hypot(y.clientX - I.x, y.clientY - I.y) < F1) {
5031
5031
  y.preventDefault(), y.stopPropagation(), i.current = null, c();
5032
5032
  return;
5033
5033
  }
5034
5034
  i.current = {
5035
- t: R,
5035
+ t: N,
5036
5036
  x: y.clientX,
5037
5037
  y: y.clientY
5038
5038
  };
@@ -5041,16 +5041,16 @@ const Ol = Ge(
5041
5041
  ), f = J(
5042
5042
  (y) => {
5043
5043
  if (!l) return;
5044
- const R = Ul(o);
5045
- let I = R;
5044
+ const N = Ul(o);
5045
+ let I = N;
5046
5046
  switch (y.key) {
5047
5047
  case "ArrowRight":
5048
5048
  case "ArrowUp":
5049
- y.preventDefault(), I = Math.min(1, R + sr), l([Nt(I)]);
5049
+ y.preventDefault(), I = Math.min(1, N + sr), l([Nt(I)]);
5050
5050
  break;
5051
5051
  case "ArrowLeft":
5052
5052
  case "ArrowDown":
5053
- y.preventDefault(), I = Math.max(0, R - sr), l([Nt(I)]);
5053
+ y.preventDefault(), I = Math.max(0, N - sr), l([Nt(I)]);
5054
5054
  break;
5055
5055
  case "Home":
5056
5056
  y.preventDefault(), l([Nt(0)]);
@@ -5059,10 +5059,10 @@ const Ol = Ge(
5059
5059
  y.preventDefault(), l([Nt(1)]);
5060
5060
  break;
5061
5061
  case "PageUp":
5062
- y.preventDefault(), I = Math.min(1, R + sr * 4), l([Nt(I)]);
5062
+ y.preventDefault(), I = Math.min(1, N + sr * 4), l([Nt(I)]);
5063
5063
  break;
5064
5064
  case "PageDown":
5065
- y.preventDefault(), I = Math.max(0, R - sr * 4), l([Nt(I)]);
5065
+ y.preventDefault(), I = Math.max(0, N - sr * 4), l([Nt(I)]);
5066
5066
  break;
5067
5067
  }
5068
5068
  },
@@ -5112,16 +5112,16 @@ const Qa = Ge(function({
5112
5112
  hover: c = !1,
5113
5113
  resetPeakHold: d
5114
5114
  }) {
5115
- const [u, p] = t, h = Ps(Xa(u ?? 0)), g = Ps(Xa(p ?? 0)), [C, m] = j(!1), f = _(!1), k = _(null), y = _(null), R = _(null), I = _(0), N = _(null), [E, w] = j(0), [B, x] = j(!1);
5115
+ const [u, p] = t, h = Ps(Xa(u ?? 0)), g = Ps(Xa(p ?? 0)), [C, m] = j(!1), f = _(!1), k = _(null), y = _(null), N = _(null), I = _(0), R = _(null), [E, w] = j(0), [B, x] = j(!1);
5116
5116
  le(() => {
5117
5117
  I.current = 0, w(0);
5118
- }, [d]), le(() => () => clearTimeout(N.current), []);
5119
- const P = Math.max(
5118
+ }, [d]), le(() => () => clearTimeout(R.current), []);
5119
+ const O = Math.max(
5120
5120
  0,
5121
5121
  Math.min(100, Ul(r) * 100)
5122
5122
  ), T = Fs(h), Q = Fs(g), D = Math.max(T, Q);
5123
5123
  le(() => {
5124
- D > I.current && (I.current = D, w(D), x(!0), clearTimeout(N.current), N.current = setTimeout(() => {
5124
+ D > I.current && (I.current = D, w(D), x(!0), clearTimeout(R.current), R.current = setTimeout(() => {
5125
5125
  x(!1), requestAnimationFrame(() => {
5126
5126
  requestAnimationFrame(() => {
5127
5127
  I.current = 0, w(0);
@@ -5129,11 +5129,11 @@ const Qa = Ge(function({
5129
5129
  });
5130
5130
  }, 400)), D <= 0 && (I.current = 0, w(0));
5131
5131
  }, [D]);
5132
- const z = z1(E), U = E > 0, O = J(
5132
+ const z = z1(E), U = E > 0, P = J(
5133
5133
  (q) => {
5134
5134
  var de;
5135
5135
  if (!s) return;
5136
- y.current && q.target instanceof Element && !y.current.contains(q.target) && (R.current = null), q.currentTarget.setPointerCapture(q.pointerId), f.current = !0, m(!0), document.body.style.cursor = "ew-resize";
5136
+ y.current && q.target instanceof Element && !y.current.contains(q.target) && (N.current = null), q.currentTarget.setPointerCapture(q.pointerId), f.current = !0, m(!0), document.body.style.cursor = "ew-resize";
5137
5137
  const he = (de = k.current) == null ? void 0 : de.getBoundingClientRect();
5138
5138
  if (he) {
5139
5139
  const ge = Math.max(
@@ -5172,7 +5172,7 @@ const Qa = Ge(function({
5172
5172
  onMouseLeave: () => {
5173
5173
  C || m(!1);
5174
5174
  },
5175
- onPointerDown: O,
5175
+ onPointerDown: P,
5176
5176
  onPointerMove: V,
5177
5177
  onPointerUp: $,
5178
5178
  children: /* @__PURE__ */ v("div", { ref: k, className: W, children: [
@@ -5182,11 +5182,11 @@ const Qa = Ge(function({
5182
5182
  Ol,
5183
5183
  {
5184
5184
  ref: y,
5185
- faderPercent: P,
5185
+ faderPercent: O,
5186
5186
  isPressed: C,
5187
5187
  hover: c,
5188
5188
  volume: r,
5189
- doubleTapStateRef: R,
5189
+ doubleTapStateRef: N,
5190
5190
  onVolumeChange: s,
5191
5191
  onVolumeReset: o
5192
5192
  }
@@ -5305,7 +5305,7 @@ const Z1 = Cn(function({
5305
5305
  r && /* @__PURE__ */ a(Ke, { content: r, children: /* @__PURE__ */ a(vn, { width: 16, height: 16, className: pt.infoIcon }) })
5306
5306
  ] }),
5307
5307
  /* @__PURE__ */ a("div", { className: pt.grid, style: C, role: "group", "aria-label": t, children: s.map((m) => {
5308
- const f = m.text ?? m.label ?? m.name, k = m.Icon ?? m.icon, y = m.locked ?? m.isLocked ?? !1, R = m.disabled ?? !1;
5308
+ const f = m.text ?? m.label ?? m.name, k = m.Icon ?? m.icon, y = m.locked ?? m.isLocked ?? !1, N = m.disabled ?? !1;
5309
5309
  return /* @__PURE__ */ a(
5310
5310
  Pl,
5311
5311
  {
@@ -5314,7 +5314,7 @@ const Z1 = Cn(function({
5314
5314
  Icon: k,
5315
5315
  selected: X1(h, m.value),
5316
5316
  locked: y,
5317
- disabled: R,
5317
+ disabled: N,
5318
5318
  onClick: () => l == null ? void 0 : l(m)
5319
5319
  },
5320
5320
  m.value
@@ -5492,11 +5492,11 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
5492
5492
  const g = J(
5493
5493
  (I) => {
5494
5494
  if (I.preventDefault(), I.stopPropagation(), r) return;
5495
- const N = I.wheelDelta ?? -I.deltaY * 25;
5496
- if (!N || Math.abs(N) <= 50) return;
5495
+ const R = I.wheelDelta ?? -I.deltaY * 25;
5496
+ if (!R || Math.abs(R) <= 50) return;
5497
5497
  const E = Date.now();
5498
5498
  if (E - h.current < 100) return;
5499
- const w = N > 0 ? 1 : -1, B = no(n, s, w);
5499
+ const w = R > 0 ? 1 : -1, B = no(n, s, w);
5500
5500
  t(B), h.current = E;
5501
5501
  },
5502
5502
  [t, n, s, r]
@@ -5512,9 +5512,9 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
5512
5512
  ), m = J(
5513
5513
  (I) => {
5514
5514
  if (!c || r) return;
5515
- const N = u - I.clientY;
5516
- if (Math.abs(N) <= 20) return;
5517
- const E = N > 0 ? 1 : -1, w = no(n, s, E);
5515
+ const R = u - I.clientY;
5516
+ if (Math.abs(R) <= 20) return;
5517
+ const E = R > 0 ? 1 : -1, w = no(n, s, E);
5518
5518
  t(w), p(I.clientY), h.current = Date.now();
5519
5519
  },
5520
5520
  [c, u, n, t, s, r]
@@ -5527,11 +5527,11 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
5527
5527
  I.detail === 2 && !r && t(o);
5528
5528
  },
5529
5529
  [t, o, r]
5530
- ), R = J(
5530
+ ), N = J(
5531
5531
  (I) => {
5532
5532
  if (!i || r) return;
5533
- const N = cy(s, I);
5534
- N && t(N);
5533
+ const R = cy(s, I);
5534
+ R && t(R);
5535
5535
  },
5536
5536
  [i, r, t, s]
5537
5537
  );
@@ -5539,7 +5539,7 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
5539
5539
  containerRef: l,
5540
5540
  isDragging: c,
5541
5541
  handleClick: y,
5542
- handleDotClick: R
5542
+ handleDotClick: N
5543
5543
  };
5544
5544
  }, Ay = ({
5545
5545
  className: n,
@@ -5558,14 +5558,14 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
5558
5558
  tooltipCloseDelay: d
5559
5559
  });
5560
5560
  k.current = { tooltipDelayDuration: c, tooltipCloseDelay: d };
5561
- const y = Array.isArray(i) && i.length > 0, R = oe(() => (i == null ? void 0 : i.find((W) => W.default)) || (i == null ? void 0 : i[0]) || { position: 0, color: "neutral", default: !0 }, [i]), { containerRef: I, isDragging: N, handleClick: E, handleDotClick: w } = hy({
5561
+ const y = Array.isArray(i) && i.length > 0, N = oe(() => (i == null ? void 0 : i.find((W) => W.default)) || (i == null ? void 0 : i[0]) || { position: 0, color: "neutral", default: !0 }, [i]), { containerRef: I, isDragging: R, handleClick: E, handleDotClick: w } = hy({
5562
5562
  value: t,
5563
5563
  onChange: r,
5564
5564
  disabled: s,
5565
5565
  dots: i || [],
5566
- defaultDot: R,
5566
+ defaultDot: N,
5567
5567
  clickableDots: o
5568
- }), B = oe(() => typeof t == "object" && t !== null ? t.position : dy(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: P, pointerColor: T } = oe(() => uy(B, s), [B, s]);
5568
+ }), B = oe(() => typeof t == "object" && t !== null ? t.position : dy(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: O, pointerColor: T } = oe(() => uy(B, s), [B, s]);
5569
5569
  if (le(() => () => {
5570
5570
  m.current != null && clearTimeout(m.current), f.current != null && clearTimeout(f.current);
5571
5571
  }, []), !y)
@@ -5595,15 +5595,15 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
5595
5595
  f.current = setTimeout(() => {
5596
5596
  f.current = null, C(!1);
5597
5597
  }, W);
5598
- }, O = (W) => {
5598
+ }, P = (W) => {
5599
5599
  const q = to[W.color] || to.neutral, he = W.position === B, de = p === W.position && o;
5600
5600
  return s ? q.default : he ? q.active : de ? q.hover : q.default;
5601
- }, V = u ? u(x ?? t) : (x == null ? void 0 : x.label) ?? (x == null ? void 0 : x.value) ?? B, $ = !s && (g || N), G = /* @__PURE__ */ a(
5601
+ }, V = u ? u(x ?? t) : (x == null ? void 0 : x.label) ?? (x == null ? void 0 : x.value) ?? B, $ = !s && (g || R), G = /* @__PURE__ */ a(
5602
5602
  "div",
5603
5603
  {
5604
5604
  className: b(
5605
5605
  ar.pan,
5606
- N && ar.active,
5606
+ R && ar.active,
5607
5607
  s && ar.disabled
5608
5608
  ),
5609
5609
  onPointerEnter: z,
@@ -5623,7 +5623,7 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
5623
5623
  /* @__PURE__ */ a(
5624
5624
  "g",
5625
5625
  {
5626
- transform: `rotate(${P} ${Ar} ${pr})`,
5626
+ transform: `rotate(${O} ${Ar} ${pr})`,
5627
5627
  children: /* @__PURE__ */ a(
5628
5628
  "path",
5629
5629
  {
@@ -5638,7 +5638,7 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
5638
5638
  i == null ? void 0 : i.map((W) => {
5639
5639
  const q = zl[W.position];
5640
5640
  if (!q) return null;
5641
- const he = O(W), de = o && !s;
5641
+ const he = P(W), de = o && !s;
5642
5642
  return /* @__PURE__ */ v(Te.Fragment, { children: [
5643
5643
  de && /* @__PURE__ */ a(
5644
5644
  "circle",
@@ -5951,7 +5951,7 @@ const Yy = "_listCardsItem_1exuc_1", Xy = "_listCardsItemDescriptionWrappable_1e
5951
5951
  style: g,
5952
5952
  ...C
5953
5953
  }) => {
5954
- const m = (i == null ? void 0 : i.id) || o, f = (i == null ? void 0 : i.name) || r, k = (i == null ? void 0 : i.description) || s, y = (i == null ? void 0 : i.image) || t, R = (i == null ? void 0 : i.icon) || c, I = y && (y != null && y.startsWith("url(")) ? y == null ? void 0 : y.substring(4, (y == null ? void 0 : y.length) - 1).replace(/"/g, "") : y, N = (x) => {
5954
+ const m = (i == null ? void 0 : i.id) || o, f = (i == null ? void 0 : i.name) || r, k = (i == null ? void 0 : i.description) || s, y = (i == null ? void 0 : i.image) || t, N = (i == null ? void 0 : i.icon) || c, I = 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) => {
5955
5955
  x.stopPropagation(), x.preventDefault(), p == null || p();
5956
5956
  }, E = {
5957
5957
  1: { avatar: 60, icon: 15 },
@@ -5969,7 +5969,7 @@ const Yy = "_listCardsItem_1exuc_1", Xy = "_listCardsItemDescriptionWrappable_1e
5969
5969
  ),
5970
5970
  style: { "--color-surface": "transparent", ...g },
5971
5971
  "data-state": u ? "checked" : "unchecked",
5972
- onClick: N,
5972
+ onClick: R,
5973
5973
  ...C,
5974
5974
  children: /* @__PURE__ */ v(S, { gap: "2", children: [
5975
5975
  /* @__PURE__ */ a(S, { width: `${B.avatar}px`, height: `${B.avatar}px`, children: l ? /* @__PURE__ */ a(
@@ -5992,14 +5992,14 @@ const Yy = "_listCardsItem_1exuc_1", Xy = "_listCardsItemDescriptionWrappable_1e
5992
5992
  ),
5993
5993
  children: /* @__PURE__ */ a(d, { width: B.icon, height: B.icon })
5994
5994
  }
5995
- ) : R ? /* @__PURE__ */ a(
5995
+ ) : N ? /* @__PURE__ */ a(
5996
5996
  "div",
5997
5997
  {
5998
5998
  className: b(
5999
5999
  ue.listCardsAvatarIcon,
6000
6000
  ue[`listCardsAvatarIconSize${h}`]
6001
6001
  ),
6002
- children: R
6002
+ children: N
6003
6003
  }
6004
6004
  ) : /* @__PURE__ */ a(
6005
6005
  ot,
@@ -6045,9 +6045,9 @@ const Yy = "_listCardsItem_1exuc_1", Xy = "_listCardsItemDescriptionWrappable_1e
6045
6045
  disabled: f,
6046
6046
  children: k,
6047
6047
  style: y,
6048
- ...R
6048
+ ...N
6049
6049
  }) => {
6050
- const I = (i == null ? void 0 : i.id) || o, N = (i == null ? void 0 : i.name) || r, E = (i == null ? void 0 : i.avatar) || t, w = (i == null ? void 0 : i.description) || s, B = E && (E != null && E.startsWith("url(")) ? E == null ? void 0 : E.substring(4, (E == null ? void 0 : E.length) - 1).replace(/"/g, "") : E;
6050
+ const I = (i == null ? void 0 : i.id) || o, R = (i == null ? void 0 : i.name) || r, E = (i == null ? void 0 : i.avatar) || t, w = (i == null ? void 0 : i.description) || s, B = E && (E != null && E.startsWith("url(")) ? E == null ? void 0 : E.substring(4, (E == null ? void 0 : E.length) - 1).replace(/"/g, "") : E;
6051
6051
  return /* @__PURE__ */ v(
6052
6052
  "div",
6053
6053
  {
@@ -6073,7 +6073,7 @@ const Yy = "_listCardsItem_1exuc_1", Xy = "_listCardsItemDescriptionWrappable_1e
6073
6073
  minHeight: "68px",
6074
6074
  ...y
6075
6075
  },
6076
- ...R,
6076
+ ...N,
6077
6077
  children: /* @__PURE__ */ v(
6078
6078
  S,
6079
6079
  {
@@ -6096,7 +6096,7 @@ const Yy = "_listCardsItem_1exuc_1", Xy = "_listCardsItemDescriptionWrappable_1e
6096
6096
  justify: "center",
6097
6097
  style: { flex: 1, minWidth: 0 },
6098
6098
  children: [
6099
- /* @__PURE__ */ a(H, { as: "div", size: "2", className: ue.listCardsItemText, children: N }),
6099
+ /* @__PURE__ */ a(H, { as: "div", size: "2", className: ue.listCardsItemText, children: R }),
6100
6100
  k ? /* @__PURE__ */ a(
6101
6101
  S,
6102
6102
  {
@@ -6490,14 +6490,14 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
6490
6490
  tooltipDelayDuration: c = 0,
6491
6491
  tooltipCloseDelay: d = 500
6492
6492
  }) => {
6493
- const u = _(null), [p, h] = j(!1), g = _(null), C = _(0), m = _(t), f = _(0), k = _(null), y = _(null), R = _({
6493
+ const u = _(null), [p, h] = j(!1), g = _(null), C = _(0), m = _(t), f = _(0), k = _(null), y = _(null), N = _({
6494
6494
  tooltipDelayDuration: c,
6495
6495
  tooltipCloseDelay: d
6496
6496
  });
6497
- R.current = { tooltipDelayDuration: c, tooltipCloseDelay: d };
6498
- const [I, N] = j(!1), [E, w] = j(!1);
6497
+ N.current = { tooltipDelayDuration: c, tooltipCloseDelay: d };
6498
+ const [I, R] = j(!1), [E, w] = j(!1);
6499
6499
  le(() => {
6500
- s && (w(!1), N(!1));
6500
+ s && (w(!1), R(!1));
6501
6501
  }, [s]), le(() => () => {
6502
6502
  k.current != null && clearTimeout(k.current), y.current != null && clearTimeout(y.current);
6503
6503
  }, []), le(() => {
@@ -6528,7 +6528,7 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
6528
6528
  [t, B]
6529
6529
  );
6530
6530
  pn("wheel", x, u);
6531
- const P = J(
6531
+ const O = J(
6532
6532
  (M) => {
6533
6533
  var ie;
6534
6534
  if (s) return;
@@ -6574,7 +6574,7 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
6574
6574
  }
6575
6575
  },
6576
6576
  [s, t, B]
6577
- ), { arcPath: U, pointerRotation: O, arcColor: V, pointerColor: $ } = oe(() => {
6577
+ ), { arcPath: U, pointerRotation: P, arcColor: V, pointerColor: $ } = oe(() => {
6578
6578
  const M = ds(t, o, i), L = cs(M), ie = ls + L * Math.PI, ce = xn + jt * Math.cos(ls), ae = Tn + jt * Math.sin(ls), ee = xn + jt * Math.cos(ie), Ie = Tn + jt * Math.sin(ie), Se = 0, Ve = L > 0 ? 1 : 0;
6579
6579
  return {
6580
6580
  arcPath: `M ${ce.toFixed(3)} ${ae.toFixed(3)}
@@ -6594,7 +6594,7 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
6594
6594
  }, ge = () => {
6595
6595
  if (s) return;
6596
6596
  de(), he();
6597
- const { tooltipDelayDuration: M } = R.current;
6597
+ const { tooltipDelayDuration: M } = N.current;
6598
6598
  if (M <= 0) {
6599
6599
  w(!0);
6600
6600
  return;
@@ -6604,7 +6604,7 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
6604
6604
  }, M);
6605
6605
  }, K = () => {
6606
6606
  he();
6607
- const { tooltipCloseDelay: M } = R.current;
6607
+ const { tooltipCloseDelay: M } = N.current;
6608
6608
  if (M <= 0) {
6609
6609
  w(!1);
6610
6610
  return;
@@ -6628,14 +6628,14 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
6628
6628
  p && or.active,
6629
6629
  s && or.disabled
6630
6630
  ),
6631
- onPointerDown: P,
6631
+ onPointerDown: O,
6632
6632
  onPointerMove: T,
6633
6633
  onPointerUp: Q,
6634
6634
  onPointerCancel: Q,
6635
6635
  onPointerEnter: ge,
6636
6636
  onPointerLeave: K,
6637
- onFocus: () => N(!0),
6638
- onBlur: () => N(!1),
6637
+ onFocus: () => R(!0),
6638
+ onBlur: () => R(!1),
6639
6639
  onKeyDown: z,
6640
6640
  children: /* @__PURE__ */ v("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", children: [
6641
6641
  /* @__PURE__ */ a("circle", { cx: xn, cy: Tn, r: 10 }),
@@ -6662,7 +6662,7 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
6662
6662
  /* @__PURE__ */ a(
6663
6663
  "g",
6664
6664
  {
6665
- transform: `rotate(${O} ${xn} ${Tn})`,
6665
+ transform: `rotate(${P} ${xn} ${Tn})`,
6666
6666
  children: /* @__PURE__ */ a(
6667
6667
  "path",
6668
6668
  {
@@ -7136,15 +7136,15 @@ class m0 extends Xn {
7136
7136
  if (g.button !== i || d.has(g.pointerId) || (d.set(g.pointerId, g), d.size > 1)) return;
7137
7137
  const C = g.pointerId;
7138
7138
  let m = g.clientX, f = g.clientY, k = !1;
7139
- const y = Date.now(), R = r.getBoundingClientRect(), { left: I, top: N } = R, E = (T) => {
7139
+ const y = Date.now(), N = r.getBoundingClientRect(), { left: I, top: R } = N, E = (T) => {
7140
7140
  if (T.pointerId !== C || T.defaultPrevented || d.size > 1 || u && Date.now() - y < l) return;
7141
7141
  const Q = T.clientX, D = T.clientY, z = Q - m, U = D - f;
7142
- (k || Math.abs(z) > o || Math.abs(U) > o) && (T.preventDefault(), T.stopPropagation(), k || (c.set({ type: "start", x: m - I, y: f - N }), k = !0), c.set({ type: "move", x: Q - I, y: D - N, deltaX: z, deltaY: U }), m = Q, f = D);
7142
+ (k || Math.abs(z) > o || Math.abs(U) > o) && (T.preventDefault(), T.stopPropagation(), k || (c.set({ type: "start", x: m - I, y: f - R }), k = !0), c.set({ type: "move", x: Q - I, y: D - R, deltaX: z, deltaY: U }), m = Q, f = D);
7143
7143
  }, w = (T) => {
7144
7144
  if (d.delete(T.pointerId)) {
7145
7145
  if (T.pointerId === C && k) {
7146
7146
  const Q = T.clientX, D = T.clientY;
7147
- c.set({ type: "end", x: Q - I, y: D - N });
7147
+ c.set({ type: "end", x: Q - I, y: D - R });
7148
7148
  }
7149
7149
  d.size === 0 && p();
7150
7150
  }
@@ -7152,11 +7152,11 @@ class m0 extends Xn {
7152
7152
  T.relatedTarget && T.relatedTarget !== document.documentElement || w(T);
7153
7153
  }, x = (T) => {
7154
7154
  k && (T.stopPropagation(), T.preventDefault());
7155
- }, P = (T) => {
7155
+ }, O = (T) => {
7156
7156
  T.defaultPrevented || d.size > 1 || k && T.preventDefault();
7157
7157
  };
7158
- document.addEventListener("pointermove", E), document.addEventListener("pointerup", w), document.addEventListener("pointerout", B), document.addEventListener("pointercancel", B), document.addEventListener("touchmove", P, { passive: !1 }), document.addEventListener("click", x, { capture: !0 }), p = () => {
7159
- document.removeEventListener("pointermove", E), document.removeEventListener("pointerup", w), document.removeEventListener("pointerout", B), document.removeEventListener("pointercancel", B), document.removeEventListener("touchmove", P), setTimeout(() => {
7158
+ document.addEventListener("pointermove", E), document.addEventListener("pointerup", w), document.addEventListener("pointerout", B), document.addEventListener("pointercancel", B), document.addEventListener("touchmove", O, { passive: !1 }), document.addEventListener("click", x, { capture: !0 }), p = () => {
7159
+ document.removeEventListener("pointermove", E), document.removeEventListener("pointerup", w), document.removeEventListener("pointerout", B), document.removeEventListener("pointercancel", B), document.removeEventListener("touchmove", O), setTimeout(() => {
7160
7160
  document.removeEventListener("click", x, { capture: !0 });
7161
7161
  }, 10);
7162
7162
  };
@@ -7326,17 +7326,17 @@ class m0 extends Xn {
7326
7326
  var t;
7327
7327
  }
7328
7328
  renderBarWaveform(t, r, s, o) {
7329
- const { width: i, height: l } = s.canvas, { halfHeight: c, barWidth: d, barRadius: u, barIndexScale: p, barSpacing: h, barMinHeight: g } = function({ width: m, height: f, length: k, options: y, pixelRatio: R }) {
7330
- const I = f / 2, N = y.barWidth ? y.barWidth * R : 1, E = y.barGap ? y.barGap * R : y.barWidth ? N / 2 : 0, w = N + E || 1;
7331
- return { halfHeight: I, barWidth: N, barGap: E, barRadius: y.barRadius || 0, barMinHeight: y.barMinHeight ? y.barMinHeight * R : 0, barIndexScale: k > 0 ? m / w / k : 0, barSpacing: w };
7332
- }({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), C = function({ channelData: m, barIndexScale: f, barSpacing: k, barWidth: y, halfHeight: R, vScale: I, canvasHeight: N, barAlign: E, barMinHeight: w }) {
7333
- const B = m[0] || [], x = m[1] || B, P = B.length, T = [];
7329
+ const { width: i, height: l } = s.canvas, { halfHeight: c, barWidth: d, barRadius: u, barIndexScale: p, barSpacing: h, barMinHeight: g } = function({ width: m, height: f, length: k, options: y, pixelRatio: N }) {
7330
+ const I = f / 2, R = y.barWidth ? y.barWidth * N : 1, E = y.barGap ? y.barGap * N : y.barWidth ? R / 2 : 0, w = R + E || 1;
7331
+ return { halfHeight: I, barWidth: R, barGap: E, barRadius: y.barRadius || 0, barMinHeight: y.barMinHeight ? y.barMinHeight * N : 0, barIndexScale: k > 0 ? m / w / k : 0, barSpacing: w };
7332
+ }({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), C = function({ channelData: m, barIndexScale: f, barSpacing: k, barWidth: y, halfHeight: N, vScale: I, canvasHeight: R, barAlign: E, barMinHeight: w }) {
7333
+ const B = m[0] || [], x = m[1] || B, O = B.length, T = [];
7334
7334
  let Q = 0, D = 0, z = 0;
7335
- for (let U = 0; U <= P; U++) {
7336
- const O = Math.round(U * f);
7337
- if (O > Q) {
7338
- const { topHeight: G, totalHeight: W } = A0({ maxTop: D, maxBottom: z, halfHeight: R, vScale: I, barMinHeight: w, barAlign: E }), q = p0({ barAlign: E, halfHeight: R, topHeight: G, totalHeight: W, canvasHeight: N });
7339
- T.push({ x: Q * k, y: q, width: y, height: W }), Q = O, D = 0, z = 0;
7335
+ for (let U = 0; U <= O; U++) {
7336
+ const P = Math.round(U * f);
7337
+ if (P > Q) {
7338
+ const { topHeight: G, totalHeight: W } = A0({ maxTop: D, maxBottom: z, halfHeight: N, vScale: I, barMinHeight: w, barAlign: E }), q = p0({ barAlign: E, halfHeight: N, topHeight: G, totalHeight: W, canvasHeight: R });
7339
+ T.push({ x: Q * k, y: q, width: y, height: W }), Q = P, D = 0, z = 0;
7340
7340
  }
7341
7341
  const V = Math.abs(B[U] || 0), $ = Math.abs(x[U] || 0);
7342
7342
  V > D && (D = V), $ > z && (z = $);
@@ -7351,18 +7351,18 @@ class m0 extends Xn {
7351
7351
  const { width: i, height: l } = s.canvas, c = function({ channelData: d, width: u, height: p, vScale: h }) {
7352
7352
  const g = p / 2, C = d[0] || [];
7353
7353
  return [C, d[1] || C].map((m, f) => {
7354
- const k = m.length, y = k ? u / k : 0, R = g, I = f === 0 ? -1 : 1, N = [{ x: 0, y: R }];
7354
+ const k = m.length, y = k ? u / k : 0, N = g, I = f === 0 ? -1 : 1, R = [{ x: 0, y: N }];
7355
7355
  let E = 0, w = 0;
7356
7356
  for (let B = 0; B <= k; B++) {
7357
7357
  const x = Math.round(B * y);
7358
7358
  if (x > E) {
7359
- const T = R + (Math.round(w * g * h) || 1) * I;
7360
- N.push({ x: E, y: T }), E = x, w = 0;
7359
+ const T = N + (Math.round(w * g * h) || 1) * I;
7360
+ R.push({ x: E, y: T }), E = x, w = 0;
7361
7361
  }
7362
- const P = Math.abs(m[B] || 0);
7363
- P > w && (w = P);
7362
+ const O = Math.abs(m[B] || 0);
7363
+ O > w && (w = O);
7364
7364
  }
7365
- return N.push({ x: E, y: R }), N;
7365
+ return R.push({ x: E, y: N }), R;
7366
7366
  });
7367
7367
  }({ channelData: t, width: i, height: l, vScale: o });
7368
7368
  s.beginPath();
@@ -7413,9 +7413,9 @@ class m0 extends Xn {
7413
7413
  const f = m * p;
7414
7414
  let k = Math.min(u - f, p);
7415
7415
  if (k = io(k, r), k <= 0) return;
7416
- const y = function({ channelData: R, offset: I, clampedWidth: N, totalWidth: E }) {
7417
- return R.map((w) => {
7418
- const B = Math.floor(I / E * w.length), x = Math.floor((I + N) / E * w.length);
7416
+ const y = function({ channelData: N, offset: I, clampedWidth: R, totalWidth: E }) {
7417
+ return N.map((w) => {
7418
+ const B = Math.floor(I / E * w.length), x = Math.floor((I + R) / E * w.length);
7419
7419
  return w.slice(B, x);
7420
7420
  });
7421
7421
  }({ channelData: t, offset: f, clampedWidth: k, totalWidth: u });
@@ -7705,10 +7705,10 @@ class jn extends h0 {
7705
7705
  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.reactiveCleanups = [], this.options = Object.assign({}, C0, t);
7706
7706
  const { state: s, actions: o } = function(c) {
7707
7707
  var d, u, p, h, g, C;
7708
- const m = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : Re(0), f = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : Re(0), k = (p = c == null ? void 0 : c.isPlaying) !== null && p !== void 0 ? p : Re(!1), y = (h = c == null ? void 0 : c.isSeeking) !== null && h !== void 0 ? h : Re(!1), R = (g = c == null ? void 0 : c.volume) !== null && g !== void 0 ? g : Re(1), I = (C = c == null ? void 0 : c.playbackRate) !== null && C !== void 0 ? C : Re(1), N = Re(null), E = Re(null), w = Re(""), B = Re(0), x = Re(0), P = Yt(() => !k.value, [k]), T = Yt(() => N.value !== null, [N]), Q = Yt(() => T.value && f.value > 0, [T, f]), D = Yt(() => m.value, [m]), z = Yt(() => f.value > 0 ? m.value / f.value : 0, [m, f]);
7709
- return { state: { currentTime: m, duration: f, isPlaying: k, isPaused: P, isSeeking: y, volume: R, playbackRate: I, audioBuffer: N, peaks: E, url: w, zoom: B, scrollPosition: x, canPlay: T, isReady: Q, progress: D, progressPercent: z }, actions: { setCurrentTime: (U) => {
7710
- const O = Math.max(0, Math.min(f.value || 1 / 0, U));
7711
- m.set(O);
7708
+ const m = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : Re(0), f = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : Re(0), k = (p = c == null ? void 0 : c.isPlaying) !== null && p !== void 0 ? p : Re(!1), y = (h = c == null ? void 0 : c.isSeeking) !== null && h !== void 0 ? h : Re(!1), N = (g = c == null ? void 0 : c.volume) !== null && g !== void 0 ? g : Re(1), I = (C = c == null ? void 0 : c.playbackRate) !== null && C !== void 0 ? C : Re(1), R = Re(null), E = Re(null), w = Re(""), B = Re(0), x = Re(0), O = Yt(() => !k.value, [k]), T = Yt(() => R.value !== null, [R]), Q = Yt(() => T.value && f.value > 0, [T, f]), D = Yt(() => m.value, [m]), z = Yt(() => f.value > 0 ? m.value / f.value : 0, [m, f]);
7709
+ return { state: { currentTime: m, duration: f, isPlaying: k, isPaused: O, isSeeking: y, volume: N, playbackRate: I, audioBuffer: R, peaks: E, url: w, zoom: B, scrollPosition: x, canPlay: T, isReady: Q, progress: D, progressPercent: z }, actions: { setCurrentTime: (U) => {
7710
+ const P = Math.max(0, Math.min(f.value || 1 / 0, U));
7711
+ m.set(P);
7712
7712
  }, setDuration: (U) => {
7713
7713
  f.set(Math.max(0, U));
7714
7714
  }, setPlaying: (U) => {
@@ -7716,13 +7716,13 @@ class jn extends h0 {
7716
7716
  }, setSeeking: (U) => {
7717
7717
  y.set(U);
7718
7718
  }, setVolume: (U) => {
7719
- const O = Math.max(0, Math.min(1, U));
7720
- R.set(O);
7719
+ const P = Math.max(0, Math.min(1, U));
7720
+ N.set(P);
7721
7721
  }, setPlaybackRate: (U) => {
7722
- const O = Math.max(0.1, Math.min(16, U));
7723
- I.set(O);
7722
+ const P = Math.max(0.1, Math.min(16, U));
7723
+ I.set(P);
7724
7724
  }, setAudioBuffer: (U) => {
7725
- N.set(U), U && f.set(U.duration);
7725
+ R.set(U), U && f.set(U.duration);
7726
7726
  }, setPeaks: (U) => {
7727
7727
  E.set(U);
7728
7728
  }, setUrl: (U) => {
@@ -8105,7 +8105,7 @@ const ql = Ge((n) => {
8105
8105
  id: C,
8106
8106
  tabIndex: m
8107
8107
  }, f) {
8108
- const [k, y] = j(!1), [R, I] = j(!1), [N, E] = j(!1), w = _(null), B = _(!1), x = _(null), P = _(null), T = s || !R;
8108
+ const [k, y] = j(!1), [N, I] = j(!1), [R, E] = j(!1), w = _(null), B = _(!1), x = _(null), O = _(null), T = s || !N;
8109
8109
  le(() => {
8110
8110
  typeof navigator < "u" && E(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
8111
8111
  }, []);
@@ -8139,8 +8139,8 @@ const ql = Ge((n) => {
8139
8139
  [D, o]
8140
8140
  ), U = J(() => {
8141
8141
  const K = w.current;
8142
- K && (N || K.setOptions({ progressColor: p }), K.play());
8143
- }, [N, p]), O = J(() => {
8142
+ K && (R || K.setOptions({ progressColor: p }), K.play());
8143
+ }, [R, p]), P = J(() => {
8144
8144
  var M;
8145
8145
  const K = w.current;
8146
8146
  if (T || !K) return;
@@ -8149,23 +8149,23 @@ const ql = Ge((n) => {
8149
8149
  const L = z(K, {
8150
8150
  syncTime: !0
8151
8151
  });
8152
- P.current = L.previousActive;
8152
+ O.current = L.previousActive;
8153
8153
  } else
8154
- P.current = null;
8154
+ O.current = null;
8155
8155
  U();
8156
8156
  }, [T, U, z, o]);
8157
8157
  md(
8158
8158
  f,
8159
8159
  () => ({
8160
- play: O,
8160
+ play: P,
8161
8161
  pause: Q,
8162
- isReady: () => R,
8162
+ isReady: () => N,
8163
8163
  isPlaying: () => {
8164
8164
  var K;
8165
8165
  return !!((K = w.current) != null && K.isPlaying());
8166
8166
  }
8167
8167
  }),
8168
- [O, Q, R]
8168
+ [P, Q, N]
8169
8169
  ), le(() => {
8170
8170
  w.current && t && (w.current.load(t), I(!1));
8171
8171
  }, [t]);
@@ -8173,12 +8173,12 @@ const ql = Ge((n) => {
8173
8173
  w.current = K, I(!0), y(!1);
8174
8174
  }, []), $ = J(
8175
8175
  (K) => {
8176
- const X = B.current, F = P.current, M = x.current;
8176
+ const X = B.current, F = O.current, M = x.current;
8177
8177
  y(!0), l == null || l(!0), X || i == null || i(), o && (z(K, {
8178
8178
  seekTime: X ? M : void 0,
8179
8179
  syncTime: !X && !F,
8180
8180
  skipPauseFor: F
8181
- }), B.current = !1, x.current = null, P.current = null, o.setter((L) => ({
8181
+ }), B.current = !1, x.current = null, O.current = null, o.setter((L) => ({
8182
8182
  ...L,
8183
8183
  isPlaying: !0,
8184
8184
  lastPlayed: K,
@@ -8221,7 +8221,7 @@ const ql = Ge((n) => {
8221
8221
  const L = typeof X == "number" ? X : ((ce = K.getCurrentTime) == null ? void 0 : ce.call(K)) ?? 0, ie = z(K, {
8222
8222
  seekTime: L
8223
8223
  });
8224
- x.current = L, B.current = !0, ie.previousWasPlaying || (ae = F.emit) == null || ae.call(F, "pause"), N || K.setOptions({ progressColor: p }), ie.wasPlaying && K.play(), o.setter((ee) => ({
8224
+ x.current = L, B.current = !0, ie.previousWasPlaying || (ae = F.emit) == null || ae.call(F, "pause"), R || K.setOptions({ progressColor: p }), ie.wasPlaying && K.play(), o.setter((ee) => ({
8225
8225
  ...ee,
8226
8226
  active: K,
8227
8227
  lastPlayed: K,
@@ -8230,7 +8230,7 @@ const ql = Ge((n) => {
8230
8230
  },
8231
8231
  [
8232
8232
  o,
8233
- N,
8233
+ R,
8234
8234
  p,
8235
8235
  z,
8236
8236
  T,
@@ -8249,9 +8249,9 @@ const ql = Ge((n) => {
8249
8249
  Q();
8250
8250
  return;
8251
8251
  }
8252
- O();
8252
+ P();
8253
8253
  }
8254
- }, [T, Q, O]), ge = J(() => {
8254
+ }, [T, Q, P]), ge = J(() => {
8255
8255
  T || i == null || i();
8256
8256
  }, [T, i]);
8257
8257
  return /* @__PURE__ */ v(
@@ -8301,7 +8301,7 @@ const ql = Ge((n) => {
8301
8301
  onPlay: $,
8302
8302
  onPause: G,
8303
8303
  onFinish: he,
8304
- backend: N ? "WebAudio" : "MediaElement"
8304
+ backend: R ? "WebAudio" : "MediaElement"
8305
8305
  }
8306
8306
  ) }),
8307
8307
  c && /* @__PURE__ */ a("div", { className: bt.actions, children: c })
@@ -8492,9 +8492,11 @@ const nb = ({
8492
8492
  onClickTrack: null,
8493
8493
  onInsertAllTracks: null,
8494
8494
  onProjectClick: null,
8495
+ onChangeTransfer: null,
8495
8496
  openedItem: null,
8496
8497
  setOpenedItem: () => {
8497
- }
8498
+ },
8499
+ labels: {}
8498
8500
  }), rb = "_projectTitle_19cfh_1", sb = "_projectArtist_19cfh_12", ab = "_projectFailed_19cfh_22", ob = "_projectCover_19cfh_26", ib = "_item_19cfh_41", lb = "_failed_19cfh_41", cb = "_opened_19cfh_45", Gt = {
8499
8501
  projectTitle: rb,
8500
8502
  projectArtist: sb,
@@ -8522,12 +8524,12 @@ const nb = ({
8522
8524
  onProjectClick: C,
8523
8525
  openedItem: m,
8524
8526
  setOpenedItem: f
8525
- } = gt(ts), [k, y] = j(!1), R = oe(() => k ? i : i.slice(0, 6), [i, k]), I = J(() => {
8527
+ } = gt(ts), [k, y] = j(!1), N = oe(() => k ? i : i.slice(0, 6), [i, k]), I = J(() => {
8526
8528
  if (c) return;
8527
8529
  y(!1);
8528
8530
  const w = h.find((B) => B.id === n);
8529
8531
  m === n ? (f(null), C == null || C(w, !1)) : (f(n), C == null || C(w, !0));
8530
- }, [n, m, f, C, h, c]), N = J((w) => {
8532
+ }, [n, m, f, C, h, c]), R = J((w) => {
8531
8533
  w.preventDefault(), w.stopPropagation(), y(!k);
8532
8534
  }, [k]), E = J((w) => {
8533
8535
  w.stopPropagation(), g == null || g(i);
@@ -8572,7 +8574,7 @@ const nb = ({
8572
8574
  /* @__PURE__ */ a(H, { size: "2", style: { color: "var(--neutral-alpha-10)" }, children: u.loading || "Loading tracks..." })
8573
8575
  ] }),
8574
8576
  i.length > 0 && /* @__PURE__ */ v(S, { direction: "column", gap: "1", children: [
8575
- typeof d == "function" ? d({ projectId: n, tracks: R }) : d,
8577
+ typeof d == "function" ? d({ projectId: n, tracks: N }) : d,
8576
8578
  /* @__PURE__ */ v(S, { direction: "row", gap: "3", p: "2", align: "center", justify: "center", children: [
8577
8579
  /* @__PURE__ */ v(
8578
8580
  Ir,
@@ -8590,7 +8592,7 @@ const nb = ({
8590
8592
  ),
8591
8593
  i.length > 6 && /* @__PURE__ */ v(we, { children: [
8592
8594
  /* @__PURE__ */ a(it, { orientation: "vertical" }),
8593
- /* @__PURE__ */ v(Ir, { variant: "ghost", color: "gray", style: { flex: "1" }, onClick: N, children: [
8595
+ /* @__PURE__ */ v(Ir, { variant: "ghost", color: "gray", style: { flex: "1" }, onClick: R, children: [
8594
8596
  k ? u.showLess || "Show less" : u.showMore || "Show more",
8595
8597
  k ? /* @__PURE__ */ a(xd, { width: 16, height: 16 }) : /* @__PURE__ */ a(Xs, { width: 16, height: 16 })
8596
8598
  ] })
@@ -8767,47 +8769,47 @@ const nb = ({
8767
8769
  }, Eb = ({
8768
8770
  ...n
8769
8771
  }) => {
8770
- var N;
8771
- const { onClickTrack: t } = gt(ts), { projectId: r, id: s, title: o, cover: i, transfers: l, audioUrl: c, onChangeTransfer: d, loading: u } = n, p = oe(() => l && l.length > 0, [l]), h = 24, g = -24, [C, m] = j(p ? parseInt(((N = l == null ? void 0 : l[0]) == null ? void 0 : N.pitchShift) ?? 0) : 0), [f, k] = j(u);
8772
+ var w;
8773
+ const { onClickTrack: t, onChangeTransfer: r, projects: s, labels: o = {} } = gt(ts), { projectId: i, id: l, title: c, cover: d, transfers: u, audioUrl: p, loading: h } = n, g = oe(() => u && u.length > 0, [u]), C = 24, m = -24, [f, k] = j(g ? parseInt(((w = u == null ? void 0 : u[0]) == null ? void 0 : w.pitchShift) ?? 0) : 0), [y, N] = j(h);
8772
8774
  le(() => {
8773
- var E;
8774
- k(u), !f && p && m(parseInt(((E = l == null ? void 0 : l[0]) == null ? void 0 : E.pitchShift) ?? 0));
8775
- }, [u, p, l]);
8776
- const y = J((E) => {
8777
- var w;
8778
- return p ? (w = l == null ? void 0 : l.find((B) => parseInt(B.pitchShift) === E)) == null ? void 0 : w.audioUrl : c;
8779
- }, [p, l, c]), R = J((E) => {
8780
- m(E);
8781
- const w = y(E);
8782
- d == null || d(r, {
8783
- id: s,
8784
- title: o,
8785
- audioUrl: w,
8786
- processTrack: !w,
8787
- pitchShift: E
8775
+ var B;
8776
+ N(h), !y && g && k(parseInt(((B = u == null ? void 0 : u[0]) == null ? void 0 : B.pitchShift) ?? 0));
8777
+ }, [h, g, u]);
8778
+ const I = J((B) => {
8779
+ var x;
8780
+ return g ? (x = u == null ? void 0 : u.find((O) => parseInt(O.pitchShift) === B)) == null ? void 0 : x.audioUrl : p;
8781
+ }, [g, u, p]), R = J((B) => {
8782
+ k(B);
8783
+ const x = I(B), O = s.find((T) => T.id === i);
8784
+ r == null || r(O, {
8785
+ id: l,
8786
+ title: c,
8787
+ audioUrl: x,
8788
+ processTrack: !x,
8789
+ pitchShift: B
8788
8790
  });
8789
- }, [d, r, s, o, l]), I = J((E) => {
8790
- if (E.stopPropagation(), f)
8791
+ }, [r, i, l, c, u]), E = J((B) => {
8792
+ if (B.stopPropagation(), y)
8791
8793
  return;
8792
- const w = !p && !c;
8793
- w && k(!0), t == null || t({
8794
+ const x = !g && !p;
8795
+ x && N(!0), t == null || t({
8794
8796
  ...n,
8795
- id: s,
8796
- title: o,
8797
- audioUrl: p || c ? y(C) : null,
8798
- processTrack: w
8797
+ id: l,
8798
+ title: c,
8799
+ audioUrl: g || p ? I(f) : null,
8800
+ processTrack: x
8799
8801
  });
8800
- }, [t, n, s, o, y, C, p, f, c]);
8802
+ }, [t, n, l, c, I, f, g, y, p]);
8801
8803
  return /* @__PURE__ */ a(S, { direction: "column", gap: "1", children: /* @__PURE__ */ v(
8802
8804
  S,
8803
8805
  {
8804
8806
  direction: "row",
8805
8807
  gap: "3",
8806
- className: `${ln.itemTrack} ${!p && !c || f ? ln.disabledHover : ""}`,
8807
- onClick: I,
8808
+ className: `${ln.itemTrack} ${!g && !p || y ? ln.disabledHover : ""}`,
8809
+ onClick: E,
8808
8810
  children: [
8809
8811
  /* @__PURE__ */ v("div", { className: ln.cover, children: [
8810
- /* @__PURE__ */ a(S, { className: ln.coverImage, children: i ? /* @__PURE__ */ a("img", { src: i, alt: o, width: 48, height: 48 }) : /* @__PURE__ */ a(Fd, { width: 16, height: 16 }) }),
8812
+ /* @__PURE__ */ a(S, { className: ln.coverImage, children: d ? /* @__PURE__ */ a("img", { src: d, alt: c, width: 48, height: 48 }) : /* @__PURE__ */ a(Fd, { width: 16, height: 16 }) }),
8811
8813
  /* @__PURE__ */ a(Dr, { width: 16, height: 16, className: ln.iconArrowLeft })
8812
8814
  ] }),
8813
8815
  /* @__PURE__ */ a(
@@ -8818,15 +8820,15 @@ const nb = ({
8818
8820
  align: "start",
8819
8821
  justify: "center",
8820
8822
  style: { flex: 1, minWidth: 0 },
8821
- children: /* @__PURE__ */ a(H, { size: "2", asChild: !0, children: /* @__PURE__ */ a("span", { className: ln.trackTitle, children: o }) })
8823
+ children: /* @__PURE__ */ a(H, { size: "2", asChild: !0, children: /* @__PURE__ */ a("span", { className: ln.trackTitle, children: c }) })
8822
8824
  }
8823
8825
  ),
8824
- !p && !c && !f ? /* @__PURE__ */ a(S, { align: "center", justify: "center", p: "2", children: /* @__PURE__ */ a(Oe, { variant: "soft", color: "gray", size: "1", children: "Process" }) }) : f ? /* @__PURE__ */ a(S, { align: "center", justify: "center", p: "2", children: /* @__PURE__ */ a(Sn, {}) }) : /* @__PURE__ */ a(
8826
+ !g && !p && !y ? /* @__PURE__ */ a(S, { align: "center", justify: "center", p: "2", children: /* @__PURE__ */ a(Oe, { variant: "soft", color: "gray", size: "1", children: o.process || "Process" }) }) : y ? /* @__PURE__ */ a(S, { align: "center", justify: "center", p: "2", children: /* @__PURE__ */ a(Sn, {}) }) : /* @__PURE__ */ a(
8825
8827
  Cb,
8826
8828
  {
8827
- min: g,
8828
- max: h,
8829
- value: C,
8829
+ min: m,
8830
+ max: C,
8831
+ value: f,
8830
8832
  onChange: R
8831
8833
  }
8832
8834
  )
@@ -8839,9 +8841,10 @@ const nb = ({
8839
8841
  onClickTrack: r,
8840
8842
  onInsertAllTracks: s,
8841
8843
  onProjectClick: o,
8842
- labels: i = {}
8844
+ onChangeTransfer: i,
8845
+ labels: l = {}
8843
8846
  }) => {
8844
- const [l, c] = j(null);
8847
+ const [c, d] = j(null);
8845
8848
  return /* @__PURE__ */ a(
8846
8849
  ts.Provider,
8847
8850
  {
@@ -8850,10 +8853,12 @@ const nb = ({
8850
8853
  onClickTrack: r,
8851
8854
  onInsertAllTracks: s,
8852
8855
  onProjectClick: o,
8853
- openedItem: l,
8854
- setOpenedItem: c
8856
+ onChangeTransfer: i,
8857
+ openedItem: c,
8858
+ setOpenedItem: d,
8859
+ labels: l
8855
8860
  },
8856
- children: /* @__PURE__ */ a(S, { direction: "column", width: "100%", children: t.map((d) => /* @__PURE__ */ a(db, { ...d, labels: i, children: n }, d.id)) })
8861
+ children: /* @__PURE__ */ a(S, { direction: "column", width: "100%", children: t.map((u) => /* @__PURE__ */ a(db, { ...u, labels: l, children: n }, u.id)) })
8857
8862
  }
8858
8863
  );
8859
8864
  };
@@ -8914,7 +8919,7 @@ const Db = "_starButton_1311l_1", Jb = "_disabled_1311l_17", Qb = "_readOnly_131
8914
8919
  maxLabel: p,
8915
8920
  ...h
8916
8921
  }) => {
8917
- const [g, C] = j(r || 0), [m, f] = j(0), k = t !== void 0 ? t : g, y = t !== void 0, R = J(
8922
+ const [g, C] = j(r || 0), [m, f] = j(0), k = t !== void 0 ? t : g, y = t !== void 0, N = J(
8918
8923
  (w) => {
8919
8924
  if (s || o) return;
8920
8925
  const B = w + 1, x = B === k ? 0 : B;
@@ -8924,14 +8929,14 @@ const Db = "_starButton_1311l_1", Jb = "_disabled_1311l_17", Qb = "_readOnly_131
8924
8929
  ), I = J(
8925
8930
  (w) => {
8926
8931
  if (s || o) return;
8927
- const B = w.currentTarget.getBoundingClientRect(), x = w.clientX - B.left, P = B.width / n, T = Math.floor(x / P), D = Math.max(0, Math.min(T, n - 1)) + 1;
8932
+ const B = w.currentTarget.getBoundingClientRect(), x = w.clientX - B.left, O = B.width / n, T = Math.floor(x / O), D = Math.max(0, Math.min(T, n - 1)) + 1;
8928
8933
  D !== m && (f(D), l == null || l({ value: D }));
8929
8934
  },
8930
8935
  [s, o, n, m, l]
8931
- ), N = J(() => {
8936
+ ), R = J(() => {
8932
8937
  s || o || (f(0), l == null || l({ value: 0 }));
8933
8938
  }, [s, o, l]), E = (w) => {
8934
- const B = m > 0 ? w < m : w < k, x = m > 0 && w < m, P = w < k;
8939
+ const B = m > 0 ? w < m : w < k, x = m > 0 && w < m, O = w < k;
8935
8940
  return /* @__PURE__ */ a(
8936
8941
  "button",
8937
8942
  {
@@ -8939,11 +8944,11 @@ const Db = "_starButton_1311l_1", Jb = "_disabled_1311l_17", Qb = "_readOnly_131
8939
8944
  className: b(Xe.starButton, {
8940
8945
  [Xe.filled]: B,
8941
8946
  [Xe.hovered]: x,
8942
- [Xe.active]: P,
8947
+ [Xe.active]: O,
8943
8948
  [Xe.disabled]: s,
8944
8949
  [Xe.readOnly]: o
8945
8950
  }),
8946
- onClick: () => R(w),
8951
+ onClick: () => N(w),
8947
8952
  disabled: s || o,
8948
8953
  "aria-label": `Rate ${w + 1} out of ${n}`,
8949
8954
  ...h,
@@ -8974,7 +8979,7 @@ const Db = "_starButton_1311l_1", Jb = "_disabled_1311l_17", Qb = "_readOnly_131
8974
8979
  role: "radiogroup",
8975
8980
  "aria-label": `Rating: ${k} out of ${n} stars`,
8976
8981
  onMouseMove: I,
8977
- onMouseLeave: N,
8982
+ onMouseLeave: R,
8978
8983
  children: Array.from({ length: n }, (w, B) => E(B))
8979
8984
  }
8980
8985
  ),
@@ -9179,9 +9184,9 @@ const iI = "_boxVertical_ujop8_21", lI = "_sliderRoot_ujop8_27", cI = "_sliderRo
9179
9184
  horizontalWidth: f = "100%",
9180
9185
  verticalHeight: k = 200,
9181
9186
  scrollWheel: y = !1,
9182
- ...R
9187
+ ...N
9183
9188
  }) => {
9184
- const { onWheel: I, ...N } = R, E = m === "vertical", w = (T) => (T - c) / (d - c) * 100, B = J(
9189
+ const { onWheel: I, ...R } = N, E = m === "vertical", w = (T) => (T - c) / (d - c) * 100, B = J(
9185
9190
  (T) => {
9186
9191
  if (I == null || I(T), h || !r || T.defaultPrevented) return;
9187
9192
  const Q = E ? T.deltaY : Math.abs(T.deltaX) > Math.abs(T.deltaY) ? T.deltaX : T.deltaY;
@@ -9203,11 +9208,11 @@ const iI = "_boxVertical_ujop8_21", lI = "_sliderRoot_ujop8_27", cI = "_sliderRo
9203
9208
  u,
9204
9209
  o
9205
9210
  ]
9206
- ), x = typeof k == "number" ? `${k}px` : k, P = typeof f == "number" ? `${f}px` : f;
9211
+ ), x = typeof k == "number" ? `${k}px` : k, O = typeof f == "number" ? `${f}px` : f;
9207
9212
  return /* @__PURE__ */ v(
9208
9213
  Ne,
9209
9214
  {
9210
- width: E ? "100%" : P,
9215
+ width: E ? "100%" : O,
9211
9216
  className: b(E && ve.boxVertical),
9212
9217
  style: E ? { "--slider-vertical-height": x } : void 0,
9213
9218
  children: [
@@ -9259,7 +9264,7 @@ const iI = "_boxVertical_ujop8_21", lI = "_sliderRoot_ujop8_27", cI = "_sliderRo
9259
9264
  [ve.sliderRootVertical]: E
9260
9265
  }),
9261
9266
  onWheel: y ? B : I,
9262
- ...N,
9267
+ ...R,
9263
9268
  children: /* @__PURE__ */ v(
9264
9269
  S,
9265
9270
  {
@@ -9376,12 +9381,12 @@ const JI = ({
9376
9381
  /* @__PURE__ */ v(S, { gap: "2", direction: "column", children: [
9377
9382
  /* @__PURE__ */ a(Y, { size: "2", weight: "medium", children: n._("Input Level") }),
9378
9383
  /* @__PURE__ */ a("div", { className: St.levelMeter, children: /* @__PURE__ */ a("div", { className: St.levelMeterTrack, children: /* @__PURE__ */ a("div", { className: St.levelMeterRow, children: Array.from({ length: 17 }, (f, k) => {
9379
- const y = Math.max(0, (m - 5) / 25) * 17, R = k < y;
9384
+ const y = Math.max(0, (m - 5) / 25) * 17, N = k < y;
9380
9385
  let I = "low";
9381
9386
  return k >= 15 ? I = "high" : k >= 11 && (I = "mid"), /* @__PURE__ */ a(
9382
9387
  "div",
9383
9388
  {
9384
- className: `${St.levelMeterSegment} ${R ? `${St.active} ${St[I]}` : ""}`
9389
+ className: `${St.levelMeterSegment} ${N ? `${St.active} ${St[I]}` : ""}`
9385
9390
  },
9386
9391
  `level-${k}`
9387
9392
  );
@@ -9693,28 +9698,28 @@ const Zl = ({
9693
9698
  droppable: f = !1,
9694
9699
  isDropTarget: k = !1,
9695
9700
  dndDroppableId: y,
9696
- onDragEnter: R,
9701
+ onDragEnter: N,
9697
9702
  onDragLeave: I,
9698
- onDragOver: N,
9703
+ onDragOver: R,
9699
9704
  onDrop: E,
9700
9705
  isLoading: w = !1
9701
9706
  }) => {
9702
- const [B, x] = j(!1), P = !!y, { setNodeRef: T, isOver: Q } = Vo({
9707
+ const [B, x] = j(!1), O = !!y, { setNodeRef: T, isOver: Q } = Vo({
9703
9708
  id: y ?? "__setlist-item-noop__",
9704
- disabled: !P
9709
+ disabled: !O
9705
9710
  }), D = () => {
9706
9711
  x(!0);
9707
9712
  }, z = () => {
9708
9713
  x(!1);
9709
9714
  }, U = (V) => {
9710
9715
  V.stopPropagation();
9711
- }, O = (V) => {
9716
+ }, P = (V) => {
9712
9717
  V.stopPropagation();
9713
9718
  };
9714
9719
  return /* @__PURE__ */ v(
9715
9720
  S,
9716
9721
  {
9717
- ref: P ? T : void 0,
9722
+ ref: O ? T : void 0,
9718
9723
  gap: "3",
9719
9724
  align: "center",
9720
9725
  role: r ? "button" : void 0,
@@ -9729,9 +9734,9 @@ const Zl = ({
9729
9734
  onMouseEnter: D,
9730
9735
  onMouseLeave: z,
9731
9736
  "data-setlist-id": t,
9732
- onDragEnter: f ? R : void 0,
9737
+ onDragEnter: f ? N : void 0,
9733
9738
  onDragLeave: f ? I : void 0,
9734
- onDragOver: f ? N : void 0,
9739
+ onDragOver: f ? R : void 0,
9735
9740
  onDrop: f ? E : void 0,
9736
9741
  onKeyDown: r ? (V) => {
9737
9742
  (V.key === "Enter" || V.key === " ") && (V.preventDefault(), r == null || r());
@@ -9805,7 +9810,7 @@ const Zl = ({
9805
9810
  [se.dropdownTriggerWrapperMobile]: m
9806
9811
  }),
9807
9812
  onPointerDown: U,
9808
- onClick: O,
9813
+ onClick: P,
9809
9814
  children: /* @__PURE__ */ a(Xr, { hovered: u })
9810
9815
  }
9811
9816
  ),
@@ -9833,19 +9838,19 @@ const Zl = ({
9833
9838
  enableDndDropTargets: m = !1,
9834
9839
  className: f
9835
9840
  }) => {
9836
- const { close: k, isMobile: y } = qr(), [R, I] = j(null), N = (Z) => {
9841
+ const { close: k, isMobile: y } = qr(), [N, I] = j(null), R = (Z) => {
9837
9842
  r == null || r(Z), y && k();
9838
9843
  }, E = () => {
9839
9844
  c == null || c(), y && k();
9840
- }, [w, B] = j(!1), [x, P] = j(!1), [T, Q] = j(!1), [D, z] = j(!1), U = _(null), O = _(null), V = _(null), $ = _(p), G = 50, W = 200, q = 44, he = 4, de = p && c ? 1 : 0, ge = p && !w && !D, K = n, X = n.length + (c ? 1 : 0), F = Math.min(4, X), M = W + Math.max(0, F - 1) * G, L = M, ie = () => {
9841
- U.current && (clearTimeout(U.current), U.current = null), O.current && (clearTimeout(O.current), O.current = null), P(!1), Q(!0), B(!0), O.current = setTimeout(() => {
9842
- Q(!1), O.current = null;
9845
+ }, [w, B] = j(!1), [x, O] = j(!1), [T, Q] = j(!1), [D, z] = j(!1), U = _(null), P = _(null), V = _(null), $ = _(p), G = 50, W = 200, q = 44, he = 4, de = p && c ? 1 : 0, ge = p && !w && !D, K = n, X = n.length + (c ? 1 : 0), F = Math.min(4, X), M = W + Math.max(0, F - 1) * G, L = M, ie = () => {
9846
+ U.current && (clearTimeout(U.current), U.current = null), P.current && (clearTimeout(P.current), P.current = null), O(!1), Q(!0), B(!0), P.current = setTimeout(() => {
9847
+ Q(!1), P.current = null;
9843
9848
  }, L);
9844
9849
  }, ce = () => {
9845
- p && (U.current && (clearTimeout(U.current), U.current = null), x ? P(!1) : w || ie());
9850
+ p && (U.current && (clearTimeout(U.current), U.current = null), x ? O(!1) : w || ie());
9846
9851
  }, ae = () => {
9847
- p && w && (O.current && (clearTimeout(O.current), O.current = null), Q(!1), P(!0), U.current = setTimeout(() => {
9848
- U.current = null, B(!1), P(!1);
9852
+ p && w && (P.current && (clearTimeout(P.current), P.current = null), Q(!1), O(!0), U.current = setTimeout(() => {
9853
+ U.current = null, B(!1), O(!1);
9849
9854
  }, L));
9850
9855
  }, ee = (Z) => {
9851
9856
  p && (Z.stopPropagation(), ie());
@@ -9860,17 +9865,17 @@ const Zl = ({
9860
9865
  };
9861
9866
  if ($.current !== p) {
9862
9867
  const Z = $.current;
9863
- $.current = p, p && !Z ? (z(!0), Q(!1), P(!0)) : !p && Z && (B(!1), z(!0), P(!1), Q(!0));
9868
+ $.current = p, p && !Z ? (z(!0), Q(!1), O(!0)) : !p && Z && (B(!1), z(!0), O(!1), Q(!0));
9864
9869
  }
9865
9870
  le(() => {
9866
9871
  if (!D) return;
9867
- U.current && (clearTimeout(U.current), U.current = null), O.current && (clearTimeout(O.current), O.current = null);
9872
+ U.current && (clearTimeout(U.current), U.current = null), P.current && (clearTimeout(P.current), P.current = null);
9868
9873
  const Z = setTimeout(() => {
9869
- z(!1), P(!1), Q(!1);
9874
+ z(!1), O(!1), Q(!1);
9870
9875
  }, L);
9871
9876
  return () => clearTimeout(Z);
9872
9877
  }, [D, L]), le(() => () => {
9873
- U.current && clearTimeout(U.current), O.current && clearTimeout(O.current);
9878
+ U.current && clearTimeout(U.current), P.current && clearTimeout(P.current);
9874
9879
  }, []);
9875
9880
  const Ve = (Z) => {
9876
9881
  if (!p) return;
@@ -9987,7 +9992,7 @@ const Zl = ({
9987
9992
  {
9988
9993
  isSelected: fe,
9989
9994
  setlistId: Z.id,
9990
- onClick: () => N(Z.id),
9995
+ onClick: () => R(Z.id),
9991
9996
  droppable: g,
9992
9997
  isDropTarget: C === Z.id,
9993
9998
  dndDroppableId: m ? `setlist:${Z.id}` : void 0,
@@ -10003,7 +10008,7 @@ const Zl = ({
10003
10008
  onDragLeave: (qe) => {
10004
10009
  l == null || l(Z.id, qe);
10005
10010
  },
10006
- dropdownMenuOpen: R === Z.id,
10011
+ dropdownMenuOpen: N === Z.id,
10007
10012
  onDropdownMenuOpenChange: (qe) => {
10008
10013
  I(qe ? Z.id : null);
10009
10014
  },
@@ -10109,30 +10114,30 @@ const Zl = ({
10109
10114
  mobileBreakpoint: d = mr,
10110
10115
  ...u
10111
10116
  }) => {
10112
- const p = rE(d), { isMobile: h, isOpen: g, open: C, close: m } = _l(p), [f, k] = j(!1), [y, R] = j(!1), I = s ?? y, N = J(
10117
+ const p = rE(d), { isMobile: h, isOpen: g, open: C, close: m } = _l(p), [f, k] = j(!1), [y, N] = j(!1), I = s ?? y, R = J(
10113
10118
  (G) => {
10114
- s == null && R(G), o == null || o(G);
10119
+ s == null && N(G), o == null || o(G);
10115
10120
  },
10116
10121
  [s, o]
10117
10122
  ), E = h ? !1 : r && !I, w = () => {
10118
- h || (k(!1), N(!1), i((G) => !G));
10123
+ h || (k(!1), R(!1), i((G) => !G));
10119
10124
  }, B = () => {
10120
10125
  h || k(!0);
10121
10126
  }, x = () => {
10122
10127
  h || k(!1);
10123
- }, P = (G) => {
10128
+ }, O = (G) => {
10124
10129
  E ? w() : l && l(G);
10125
10130
  }, T = () => {
10126
- h || !r || N(!0);
10131
+ h || !r || R(!0);
10127
10132
  }, Q = () => {
10128
- N(!1);
10133
+ R(!1);
10129
10134
  }, D = (G) => {
10130
10135
  B(), G.buttons > 0 && T();
10131
10136
  }, z = () => {
10132
10137
  T();
10133
10138
  }, U = (G) => {
10134
10139
  h || !r || (G.preventDefault(), T());
10135
- }, O = E ? "Expand menu" : "Moises", V = "Moises";
10140
+ }, P = E ? "Expand menu" : "Moises", V = "Moises";
10136
10141
  le(() => {
10137
10142
  if (!I) return;
10138
10143
  const G = () => {
@@ -10208,7 +10213,7 @@ const Zl = ({
10208
10213
  {
10209
10214
  type: "button",
10210
10215
  className: Ae.logoButton,
10211
- onClick: P,
10216
+ onClick: O,
10212
10217
  "aria-label": V,
10213
10218
  children: /* @__PURE__ */ v(
10214
10219
  S,
@@ -10284,8 +10289,8 @@ const Zl = ({
10284
10289
  {
10285
10290
  type: "button",
10286
10291
  className: Ae.logoButton,
10287
- onClick: P,
10288
- "aria-label": O,
10292
+ onClick: O,
10293
+ "aria-label": P,
10289
10294
  children: /* @__PURE__ */ a(
10290
10295
  S,
10291
10296
  {
@@ -10327,8 +10332,8 @@ const Zl = ({
10327
10332
  {
10328
10333
  type: "button",
10329
10334
  className: Ae.logoButton,
10330
- onClick: P,
10331
- "aria-label": O,
10335
+ onClick: O,
10336
+ "aria-label": P,
10332
10337
  children: /* @__PURE__ */ a(
10333
10338
  S,
10334
10339
  {
@@ -10394,13 +10399,13 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
10394
10399
  sidebarTooltip: m,
10395
10400
  children: f
10396
10401
  }) => {
10397
- const [k, y] = j(!1), [R, I] = j(!1), { isMobile: N } = _l(), E = N ? !1 : k && !R;
10402
+ const [k, y] = j(!1), [N, I] = j(!1), { isMobile: R } = _l(), E = R ? !1 : k && !N;
10398
10403
  return /* @__PURE__ */ v(we, { children: [
10399
10404
  /* @__PURE__ */ v(
10400
10405
  $l,
10401
10406
  {
10402
10407
  isCollapsed: k,
10403
- isTemporarilyExpandedByDrag: R,
10408
+ isTemporarilyExpandedByDrag: N,
10404
10409
  onTemporarilyExpandedByDragChange: I,
10405
10410
  onCollapsedChange: y,
10406
10411
  tooltip: m,
@@ -10434,7 +10439,7 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
10434
10439
  newSetlistButtonTooltip: h,
10435
10440
  expandButtonTooltip: g,
10436
10441
  collapsed: E,
10437
- isMobile: N
10442
+ isMobile: R
10438
10443
  }
10439
10444
  )
10440
10445
  ]
@@ -10492,7 +10497,7 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
10492
10497
  className: g,
10493
10498
  ...C
10494
10499
  }, m) {
10495
- const f = C["aria-label"], k = _(null), y = _(null), R = _(null), I = _(null), [N, E] = j(!1), [w, B] = j(!1), [x, P] = j(!1), T = _({ value: t, min: s, max: o, step: i, disabled: l, onValueChange: r });
10500
+ const f = C["aria-label"], k = _(null), y = _(null), N = _(null), I = _(null), [R, E] = j(!1), [w, B] = j(!1), [x, O] = j(!1), T = _({ value: t, min: s, max: o, step: i, disabled: l, onValueChange: r });
10496
10501
  T.current = { value: t, min: s, max: o, step: i, disabled: l, onValueChange: r };
10497
10502
  const Q = _({
10498
10503
  tooltipDelayDuration: d,
@@ -10501,7 +10506,7 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
10501
10506
  Q.current = { tooltipDelayDuration: d, tooltipCloseDelay: u };
10502
10507
  const D = _({ accum: 0, axis: null, lastTime: 0 });
10503
10508
  le(() => () => {
10504
- R.current != null && clearTimeout(R.current), I.current != null && clearTimeout(I.current);
10509
+ N.current != null && clearTimeout(N.current), I.current != null && clearTimeout(I.current);
10505
10510
  }, []), le(() => {
10506
10511
  const F = () => {
10507
10512
  y.current = "keyboard";
@@ -10542,7 +10547,7 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
10542
10547
  return F.addEventListener("wheel", ce, { passive: !1 }), () => F.removeEventListener("wheel", ce);
10543
10548
  }, []), le(() => {
10544
10549
  if (!x) return;
10545
- const F = () => P(!1);
10550
+ const F = () => O(!1);
10546
10551
  return window.addEventListener("pointerup", F), window.addEventListener("pointercancel", F), () => {
10547
10552
  window.removeEventListener("pointerup", F), window.removeEventListener("pointercancel", F);
10548
10553
  };
@@ -10559,25 +10564,25 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
10559
10564
  },
10560
10565
  [m]
10561
10566
  ), U = () => {
10562
- l || P(!0);
10563
- }, O = () => {
10564
- R.current != null && (clearTimeout(R.current), R.current = null);
10567
+ l || O(!0);
10568
+ }, P = () => {
10569
+ N.current != null && (clearTimeout(N.current), N.current = null);
10565
10570
  }, V = () => {
10566
10571
  I.current != null && (clearTimeout(I.current), I.current = null);
10567
10572
  }, $ = () => {
10568
10573
  y.current === "keyboard" && E(!0);
10569
10574
  }, G = () => E(!1), W = () => E(!1), q = () => {
10570
- V(), O();
10575
+ V(), P();
10571
10576
  const { tooltipDelayDuration: F } = Q.current;
10572
10577
  if (F <= 0) {
10573
10578
  B(!0);
10574
10579
  return;
10575
10580
  }
10576
- R.current = setTimeout(() => {
10577
- R.current = null, B(!0);
10581
+ N.current = setTimeout(() => {
10582
+ N.current = null, B(!0);
10578
10583
  }, F);
10579
10584
  }, he = () => {
10580
- O();
10585
+ P();
10581
10586
  const { tooltipCloseDelay: F } = Q.current;
10582
10587
  if (F <= 0) {
10583
10588
  B(!1);
@@ -10588,11 +10593,11 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
10588
10593
  }, F);
10589
10594
  }, de = () => {
10590
10595
  l || h == null || h(t);
10591
- }, ge = p ? p(t) : t, K = !l && (w || x || N), X = /* @__PURE__ */ a(
10596
+ }, ge = p ? p(t) : t, K = !l && (w || x || R), X = /* @__PURE__ */ a(
10592
10597
  zr,
10593
10598
  {
10594
10599
  className: cr.thumb,
10595
- "data-focus-visible": N || void 0,
10600
+ "data-focus-visible": R || void 0,
10596
10601
  "aria-label": f,
10597
10602
  onFocus: $,
10598
10603
  onBlur: G,
@@ -10823,7 +10828,7 @@ const dr = (n) => {
10823
10828
  const g = _(null), C = _(null), [m, f] = j(!1), k = J((E) => {
10824
10829
  const w = E.target, B = w.scrollLeft + w.clientWidth >= w.scrollWidth - 2;
10825
10830
  f(B);
10826
- }, []), y = !!l || !!d, R = J(
10831
+ }, []), y = !!l || !!d, N = J(
10827
10832
  (E) => {
10828
10833
  if (y) return;
10829
10834
  const w = E.target.value;
@@ -10852,7 +10857,7 @@ const dr = (n) => {
10852
10857
  }));
10853
10858
  },
10854
10859
  [t]
10855
- ), N = J(() => {
10860
+ ), R = J(() => {
10856
10861
  t((E) => ({
10857
10862
  ...E,
10858
10863
  conditioningAudio: null,
@@ -10895,7 +10900,7 @@ const dr = (n) => {
10895
10900
  {
10896
10901
  value: n.conditioningText,
10897
10902
  onFocus: o,
10898
- onChange: R,
10903
+ onChange: N,
10899
10904
  placeholder: r._(
10900
10905
  `Describe your desired sound characteristics (ex: ${NE(
10901
10906
  n.instrument,
@@ -11019,7 +11024,7 @@ const dr = (n) => {
11019
11024
  wE(n),
11020
11025
  ")"
11021
11026
  ] }),
11022
- /* @__PURE__ */ a(Be, { variant: "soft", onClick: N, children: /* @__PURE__ */ a(qd, { width: 16, height: 16 }) })
11027
+ /* @__PURE__ */ a(Be, { variant: "soft", onClick: R, children: /* @__PURE__ */ a(qd, { width: 16, height: 16 }) })
11023
11028
  ]
11024
11029
  }
11025
11030
  ) : /* @__PURE__ */ v(
@@ -11466,16 +11471,16 @@ const fr = {
11466
11471
  generateFromSelectionTrack: f,
11467
11472
  unmutedTracksCount: k,
11468
11473
  onMountConcurrency: y,
11469
- onClear: R,
11474
+ onClear: N,
11470
11475
  onInspireMe: I,
11471
- inspireMeLoading: N,
11476
+ inspireMeLoading: R,
11472
11477
  onBoost: E,
11473
11478
  boostLoading: w,
11474
11479
  suggestedTags: B,
11475
11480
  onFetchSuggestedTags: x,
11476
- suggestedTagsLoading: P
11481
+ suggestedTagsLoading: O
11477
11482
  }) => {
11478
- const [T, Q] = j(!1), [D, z] = j("2"), [U, O] = j(D), { submitted: V, handleSubmit: $ } = Ma(d), G = oe(() => [
11483
+ const [T, Q] = j(!1), [D, z] = j("2"), [U, P] = j(D), { submitted: V, handleSubmit: $ } = Ma(d), G = oe(() => [
11479
11484
  { value: "2", label: l._("Presets") },
11480
11485
  { value: "1", label: l._("Custom") }
11481
11486
  ], []), W = (r ?? []).some(
@@ -11542,7 +11547,7 @@ const fr = {
11542
11547
  if (D !== U) {
11543
11548
  Q(!0);
11544
11549
  const X = setTimeout(() => {
11545
- O(D), Q(!1);
11550
+ P(D), Q(!1);
11546
11551
  }, fr.timeouts.animationDuration);
11547
11552
  return () => clearTimeout(X);
11548
11553
  }
@@ -11622,12 +11627,12 @@ const fr = {
11622
11627
  onAddConditioningAudio: s,
11623
11628
  onTextConditioningFocus: o,
11624
11629
  onInspireMe: I,
11625
- inspireMeLoading: N,
11630
+ inspireMeLoading: R,
11626
11631
  onBoost: E,
11627
11632
  boostLoading: w,
11628
11633
  suggestedTags: B,
11629
11634
  onFetchSuggestedTags: x,
11630
- suggestedTagsLoading: P
11635
+ suggestedTagsLoading: O
11631
11636
  }
11632
11637
  ),
11633
11638
  U === "2" && W && /* @__PURE__ */ a(
@@ -11701,7 +11706,7 @@ const fr = {
11701
11706
  inpaintingTrack: m,
11702
11707
  generateFromSelectionTrack: f,
11703
11708
  unmutedTracksCount: k,
11704
- onClear: R,
11709
+ onClear: N,
11705
11710
  i18n: l
11706
11711
  }
11707
11712
  ) }),
@@ -11727,7 +11732,7 @@ const fr = {
11727
11732
  _e,
11728
11733
  {
11729
11734
  type: "error",
11730
- onClick: R,
11735
+ onClick: N,
11731
11736
  ctaLabel: l._("Clear"),
11732
11737
  showBackground: !1,
11733
11738
  showIcon: !1,
@@ -11857,7 +11862,7 @@ const Ao = {
11857
11862
  showStemsPaywall: C,
11858
11863
  showHiFiSwitch: m
11859
11864
  }) => {
11860
- var N;
11865
+ var R;
11861
11866
  const { submitted: f, handleSubmit: k } = Ma(l), y = [
11862
11867
  {
11863
11868
  value: "freeVocalInstruments",
@@ -11969,7 +11974,7 @@ const Ao = {
11969
11974
  name: n._("Other"),
11970
11975
  category: "paid"
11971
11976
  }
11972
- ], R = async (E) => {
11977
+ ], N = async (E) => {
11973
11978
  if (E.isLocked) {
11974
11979
  C(E.value);
11975
11980
  return;
@@ -11978,11 +11983,11 @@ const Ao = {
11978
11983
  d((B) => {
11979
11984
  let x = [...B.selectedStems];
11980
11985
  if (x.includes(w))
11981
- x = x.filter((P) => P !== w);
11986
+ x = x.filter((O) => O !== w);
11982
11987
  else {
11983
- const P = $E[w] || [];
11988
+ const O = $E[w] || [];
11984
11989
  x = x.filter(
11985
- (T) => !P.includes(T)
11990
+ (T) => !O.includes(T)
11986
11991
  ), x.push(w);
11987
11992
  }
11988
11993
  return x.includes("other") && x.length === 1 ? { ...B, selectedStems: [] } : { ...B, selectedStems: x };
@@ -12024,7 +12029,7 @@ const Ao = {
12024
12029
  };
12025
12030
  }),
12026
12031
  value: c.selectedStems,
12027
- onSelect: R,
12032
+ onSelect: N,
12028
12033
  style: {
12029
12034
  marginBottom: "12px"
12030
12035
  }
@@ -12045,7 +12050,7 @@ const Ao = {
12045
12050
  _r,
12046
12051
  {
12047
12052
  title: n._("Separate Stems"),
12048
- disabled: !((N = c == null ? void 0 : c.selectedStems) != null && N.length) || !(c != null && c.trackName),
12053
+ disabled: !((R = c == null ? void 0 : c.selectedStems) != null && R.length) || !(c != null && c.trackName),
12049
12054
  loading: u,
12050
12055
  onClick: k,
12051
12056
  besideFooter: /* @__PURE__ */ v(S, { align: "center", gap: "2", children: [
@@ -12618,17 +12623,17 @@ const ms = (n, t) => typeof n == "string" ? { title: n, description: "", variant
12618
12623
  const k = {
12619
12624
  ...ms(m, "neutral"),
12620
12625
  id: `${Date.now()}-${Rw++}`
12621
- }, y = k.duration ?? t, R = setTimeout(() => {
12626
+ }, y = k.duration ?? t, N = setTimeout(() => {
12622
12627
  u(k.id);
12623
12628
  }, y);
12624
- return d.current.set(k.id, R), c((I) => {
12625
- const N = [...I.slice(-(r - 1)), k], E = new Set(N.map((w) => w.id));
12629
+ return d.current.set(k.id, N), c((I) => {
12630
+ const R = [...I.slice(-(r - 1)), k], E = new Set(R.map((w) => w.id));
12626
12631
  return I.forEach((w) => {
12627
12632
  if (!E.has(w.id)) {
12628
12633
  const B = d.current.get(w.id);
12629
12634
  B && (clearTimeout(B), d.current.delete(w.id));
12630
12635
  }
12631
- }), N;
12636
+ }), R;
12632
12637
  }), k.id;
12633
12638
  },
12634
12639
  [u, t, r]
@@ -12861,24 +12866,24 @@ const Pw = "_track_2k5w9_1", Fw = "_name_2k5w9_11", zw = "_line_2k5w9_22", Ww =
12861
12866
  isAutoMuted: f,
12862
12867
  isSolo: k,
12863
12868
  isOpen: y,
12864
- instrumentSelected: R,
12869
+ instrumentSelected: N,
12865
12870
  device: I,
12866
- channel: N,
12871
+ channel: R,
12867
12872
  // State change listeners
12868
12873
  onVolumeChange: E,
12869
12874
  onVolumeReset: w,
12870
12875
  onPanChange: B,
12871
12876
  onMutedChange: x,
12872
- onRecordChange: P,
12877
+ onRecordChange: O,
12873
12878
  onSoloChange: T,
12874
12879
  onOpenChange: Q,
12875
12880
  onInstrumentChange: D,
12876
12881
  onDeviceChange: z,
12877
12882
  onChannelChange: U,
12878
12883
  // Children (having content means group/takelanes)
12879
- children: O
12884
+ children: P
12880
12885
  }) => {
12881
- const V = !!O, $ = J(
12886
+ const V = !!P, $ = J(
12882
12887
  () => Q == null ? void 0 : Q(!y),
12883
12888
  [y, Q]
12884
12889
  );
@@ -12947,7 +12952,7 @@ const Pw = "_track_2k5w9_1", Fw = "_name_2k5w9_11", zw = "_line_2k5w9_22", Ww =
12947
12952
  xe.instrumentIconButton,
12948
12953
  xe.menuOptionsTrigger
12949
12954
  ),
12950
- children: R.icon
12955
+ children: N.icon
12951
12956
  }
12952
12957
  ),
12953
12958
  options: c,
@@ -12984,7 +12989,7 @@ const Pw = "_track_2k5w9_1", Fw = "_name_2k5w9_11", zw = "_line_2k5w9_22", Ww =
12984
12989
  device: I,
12985
12990
  onDeviceChange: z,
12986
12991
  channelOptions: u,
12987
- channel: N,
12992
+ channel: R,
12988
12993
  onChannelChange: U,
12989
12994
  inputLevel: p,
12990
12995
  children: /* @__PURE__ */ a(
@@ -12992,7 +12997,7 @@ const Pw = "_track_2k5w9_1", Fw = "_name_2k5w9_11", zw = "_line_2k5w9_22", Ww =
12992
12997
  {
12993
12998
  type: "record",
12994
12999
  selected: m,
12995
- onClick: () => P == null ? void 0 : P()
13000
+ onClick: () => O == null ? void 0 : O()
12996
13001
  }
12997
13002
  )
12998
13003
  }
@@ -13067,7 +13072,7 @@ const Pw = "_track_2k5w9_1", Fw = "_name_2k5w9_11", zw = "_line_2k5w9_22", Ww =
13067
13072
  )
13068
13073
  }
13069
13074
  ),
13070
- V && y && /* @__PURE__ */ a("div", { className: xe.group, children: O })
13075
+ V && y && /* @__PURE__ */ a("div", { className: xe.group, children: P })
13071
13076
  ]
13072
13077
  }
13073
13078
  );
@@ -13097,15 +13102,15 @@ function AR({ schema: n }) {
13097
13102
  r((I) => ({ ...I, [f]: k })), o((I) => ({ ...I, [f]: null }));
13098
13103
  return;
13099
13104
  }
13100
- const y = f, R = Object.fromEntries(
13105
+ const y = f, N = Object.fromEntries(
13101
13106
  Object.entries(y).map(([I]) => ({ [I]: null }))
13102
13107
  );
13103
- r((I) => ({ ...I, ...y })), o((I) => ({ ...I, ...R }));
13108
+ r((I) => ({ ...I, ...y })), o((I) => ({ ...I, ...N }));
13104
13109
  }, []), u = (f, k) => {
13105
- const y = t[f], R = (I) => d(f, I);
13106
- return k === "checkbox" || k === "switch" ? { checked: !!y, onCheckedChange: R } : { value: y ?? "", onChange: (I) => {
13107
- var N;
13108
- return R(((N = I == null ? void 0 : I.target) == null ? void 0 : N.value) ?? I);
13110
+ const y = t[f], N = (I) => d(f, I);
13111
+ return k === "checkbox" || k === "switch" ? { checked: !!y, onCheckedChange: N } : { value: y ?? "", onChange: (I) => {
13112
+ var R;
13113
+ return N(((R = I == null ? void 0 : I.target) == null ? void 0 : R.value) ?? I);
13109
13114
  } };
13110
13115
  }, p = () => {
13111
13116
  const f = n.safeParse(t);
@@ -13113,8 +13118,8 @@ function AR({ schema: n }) {
13113
13118
  return o({}), { isValid: !0, data: f.data };
13114
13119
  const k = {};
13115
13120
  for (const y of f.error.issues) {
13116
- const R = y.path.join(".");
13117
- k[R] || (k[R] = y.message);
13121
+ const N = y.path.join(".");
13122
+ k[N] || (k[N] = y.message);
13118
13123
  }
13119
13124
  return o(k), { isValid: !1, data: t };
13120
13125
  }, h = J((f) => (l.current.push(f), () => {
@@ -13276,13 +13281,13 @@ function ac({
13276
13281
  classNamesButton: C,
13277
13282
  onPlayStateChange: m
13278
13283
  }) {
13279
- const [f, k] = j(!1), [y, R] = j(!1), [I, N] = j(!1), [E, w] = j(!1);
13284
+ const [f, k] = j(!1), [y, N] = j(!1), [I, R] = j(!1), [E, w] = j(!1);
13280
13285
  le(() => {
13281
13286
  typeof navigator < "u" && w(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
13282
13287
  }, []);
13283
- const B = oe(() => s, [s]), x = oe(() => o ? !1 : !B || B && f, [B, f, o]), P = _(null), T = _(null);
13288
+ const B = oe(() => s, [s]), x = oe(() => o ? !1 : !B || B && f, [B, f, o]), O = _(null), T = _(null);
13284
13289
  le(() => {
13285
- I || (!p || i) && N(!0);
13290
+ I || (!p || i) && R(!0);
13286
13291
  }, [p, i, I]);
13287
13292
  const Q = J(() => {
13288
13293
  var W;
@@ -13296,7 +13301,7 @@ function ac({
13296
13301
  T.current && n && ((W = T.current) == null || W.load(n));
13297
13302
  }, [n]);
13298
13303
  const z = J((W) => {
13299
- T.current = W, R(!0), k(!1);
13304
+ T.current = W, N(!0), k(!1);
13300
13305
  }, []), U = J(
13301
13306
  (W) => {
13302
13307
  if (k(!0), r == null || r(!0), m == null || m(!0), d) {
@@ -13314,7 +13319,7 @@ function ac({
13314
13319
  h == null || h();
13315
13320
  },
13316
13321
  [r, d, h, m]
13317
- ), O = J(() => {
13322
+ ), P = J(() => {
13318
13323
  k(!1), r == null || r(!1), m == null || m(!1), d && d.setter((W) => ({
13319
13324
  ...W,
13320
13325
  isPlaying: !1
@@ -13372,7 +13377,7 @@ function ac({
13372
13377
  display: x && y ? "block" : "none",
13373
13378
  cursor: "pointer"
13374
13379
  },
13375
- ref: P,
13380
+ ref: O,
13376
13381
  children: /* @__PURE__ */ a(
13377
13382
  ql,
13378
13383
  {
@@ -13387,7 +13392,7 @@ function ac({
13387
13392
  onReady: z,
13388
13393
  onSeeking: V,
13389
13394
  onPlay: U,
13390
- onPause: O,
13395
+ onPause: P,
13391
13396
  onFinish: $,
13392
13397
  backend: E ? "WebAudio" : "MediaElement"
13393
13398
  }
@@ -13759,33 +13764,33 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
13759
13764
  onClickUpgradeConcurrency: m,
13760
13765
  onRemoveTrack: f
13761
13766
  }) => {
13762
- const [k, y] = j(null), [R, I] = j(null), { submitted: N, handleSubmit: E } = Ma(p), [w, B] = j({
13767
+ const [k, y] = j(null), [N, I] = j(null), { submitted: R, handleSubmit: E } = Ma(p), [w, B] = j({
13763
13768
  lastPlayed: null,
13764
13769
  active: null,
13765
13770
  isPlaying: !1,
13766
13771
  id: "voice-form"
13767
13772
  }), x = J(
13768
- (O) => {
13769
- y(O);
13770
- const V = n.find(($) => $.identifier === O);
13773
+ (P) => {
13774
+ y(P);
13775
+ const V = n.find(($) => $.identifier === P);
13771
13776
  r(($) => ({
13772
13777
  ...$,
13773
13778
  selectedVoice: V
13774
13779
  }));
13775
13780
  },
13776
13781
  [n, r]
13777
- ), P = J(
13778
- (O) => {
13779
- R !== O && I(O);
13782
+ ), O = J(
13783
+ (P) => {
13784
+ N !== P && I(P);
13780
13785
  },
13781
- [R, I]
13786
+ [N, I]
13782
13787
  ), T = J(
13783
- (O) => {
13788
+ (P) => {
13784
13789
  I(null), w.active && w.active.pause(), B((V) => ({
13785
13790
  ...V,
13786
13791
  isPlaying: !1,
13787
13792
  active: null
13788
- })), s(O);
13793
+ })), s(P);
13789
13794
  },
13790
13795
  [s, w]
13791
13796
  ), Q = oe(
@@ -13795,7 +13800,7 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
13795
13800
  }),
13796
13801
  [w]
13797
13802
  ), D = oe(
13798
- () => n.find((O) => O.identifier === i) || n[0],
13803
+ () => n.find((P) => P.identifier === i) || n[0],
13799
13804
  [n, i]
13800
13805
  ), z = oe(
13801
13806
  () => !!(t.trackName || t.trackId || t.customAudio),
@@ -13805,19 +13810,19 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
13805
13810
  E();
13806
13811
  return;
13807
13812
  }
13808
- D && (x(D.identifier), o(), r((O) => {
13813
+ D && (x(D.identifier), o(), r((P) => {
13809
13814
  var V;
13810
- return ((V = O.selectedVoice) == null ? void 0 : V.identifier) === D.identifier ? O : { ...O, selectedVoice: D };
13815
+ return ((V = P.selectedVoice) == null ? void 0 : V.identifier) === D.identifier ? P : { ...P, selectedVoice: D };
13811
13816
  })), z && (D ? E({ selectedVoice: D }) : E());
13812
13817
  }, [i, E, D, x, o]);
13813
13818
  return le(() => {
13814
- var O;
13819
+ var P;
13815
13820
  if (w.isPlaying === !1)
13816
13821
  I(null);
13817
13822
  else if (w.isPlaying === !0 && w.active) {
13818
- const V = (O = n.find(
13823
+ const V = (P = n.find(
13819
13824
  ($) => w.active && $.metadata.previewUrl === w.active.url
13820
- )) == null ? void 0 : O.identifier;
13825
+ )) == null ? void 0 : P.identifier;
13821
13826
  V && I(V);
13822
13827
  }
13823
13828
  }, [w, n]), /* @__PURE__ */ v(S, { direction: "column", height: "100%", children: [
@@ -13827,8 +13832,8 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
13827
13832
  voices: n,
13828
13833
  selectedId: k,
13829
13834
  handleSelect: x,
13830
- playingItem: R,
13831
- handleAvatarClick: P,
13835
+ playingItem: N,
13836
+ handleAvatarClick: O,
13832
13837
  handleDetailsClick: T,
13833
13838
  wavegroup: Q,
13834
13839
  setPlayingItem: I,
@@ -13877,7 +13882,7 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
13877
13882
  onMountConcurrency: g
13878
13883
  }
13879
13884
  ),
13880
- !d && !N && !u && !i && /* @__PURE__ */ a(
13885
+ !d && !R && !u && !i && /* @__PURE__ */ a(
13881
13886
  QN,
13882
13887
  {
13883
13888
  trackId: t.trackId,
@@ -13887,7 +13892,7 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
13887
13892
  onRemoveTrack: f
13888
13893
  }
13889
13894
  ),
13890
- !d && N && !u && !i && /* @__PURE__ */ a(_e, { showIcon: !1, showBackground: !1, children: /* @__PURE__ */ a(H, { size: "2", children: l._("Voice conversion initialized!") }) }),
13895
+ !d && R && !u && !i && /* @__PURE__ */ a(_e, { showIcon: !1, showBackground: !1, children: /* @__PURE__ */ a(H, { size: "2", children: l._("Voice conversion initialized!") }) }),
13891
13896
  !d && u && !i && /* @__PURE__ */ a(
13892
13897
  _e,
13893
13898
  {