@moises.ai/design-system 3.6.22 → 3.6.24

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
@@ -26,8 +26,8 @@ var jc = [" ", "Enter", "ArrowUp", "ArrowDown"], Wc = [" ", "Enter"], Bt = "Sele
26
26
  autoComplete: A,
27
27
  disabled: p,
28
28
  required: k,
29
- form: f
30
- } = n, m = Vn(e), [C, E] = d.useState(null), [B, I] = d.useState(null), [S, b] = d.useState(!1), w = ta(u), [Q, O] = xn({
29
+ form: v
30
+ } = n, m = Vn(e), [f, E] = d.useState(null), [B, I] = d.useState(null), [S, b] = d.useState(!1), w = ta(u), [Q, O] = xn({
31
31
  prop: s,
32
32
  defaultProp: a ?? !1,
33
33
  onChange: o,
@@ -37,13 +37,13 @@ var jc = [" ", "Enter", "ArrowUp", "ArrowDown"], Wc = [" ", "Enter"], Bt = "Sele
37
37
  defaultProp: l,
38
38
  onChange: c,
39
39
  caller: Bt
40
- }), z = d.useRef(null), M = C ? f || !!C.closest("form") : !0, [U, J] = d.useState(/* @__PURE__ */ new Set()), x = Array.from(U).map((L) => L.props.value).join(";");
40
+ }), z = d.useRef(null), M = f ? v || !!f.closest("form") : !0, [U, J] = d.useState(/* @__PURE__ */ new Set()), x = Array.from(U).map((L) => L.props.value).join(";");
41
41
  return /* @__PURE__ */ r(Vi, { ...m, children: /* @__PURE__ */ g(
42
42
  Vc,
43
43
  {
44
44
  required: k,
45
45
  scope: e,
46
- trigger: C,
46
+ trigger: f,
47
47
  onTriggerChange: E,
48
48
  valueNode: B,
49
49
  onValueNodeChange: I,
@@ -85,7 +85,7 @@ var jc = [" ", "Enter", "ArrowUp", "ArrowDown"], Wc = [" ", "Enter"], Bt = "Sele
85
85
  value: T,
86
86
  onChange: (L) => D(L.target.value),
87
87
  disabled: p,
88
- form: f,
88
+ form: v,
89
89
  children: [
90
90
  T === void 0 ? /* @__PURE__ */ r("option", { value: "" }) : null,
91
91
  Array.from(U)
@@ -101,9 +101,9 @@ Ia.displayName = Bt;
101
101
  var ba = "SelectTrigger", Ba = d.forwardRef(
102
102
  (n, e) => {
103
103
  const { __scopeSelect: t, disabled: s = !1, ...a } = n, o = Vn(t), i = lt(ba, t), l = i.disabled || s, c = Se(e, i.onTriggerChange), u = Ln(t), h = d.useRef("touch"), [A, p, k] = Xa((m) => {
104
- const C = u().filter((I) => !I.disabled), E = C.find((I) => I.value === i.value), B = Ya(C, m, E);
104
+ const f = u().filter((I) => !I.disabled), E = f.find((I) => I.value === i.value), B = Ya(f, m, E);
105
105
  B !== void 0 && i.onValueChange(B.value);
106
- }), f = (m) => {
106
+ }), v = (m) => {
107
107
  l || (i.onOpenChange(!0), k()), m && (i.triggerPointerDownPosRef.current = {
108
108
  x: Math.round(m.pageX),
109
109
  y: Math.round(m.pageY)
@@ -126,16 +126,16 @@ var ba = "SelectTrigger", Ba = d.forwardRef(
126
126
  ...a,
127
127
  ref: c,
128
128
  onClick: ie(a.onClick, (m) => {
129
- m.currentTarget.focus(), h.current !== "mouse" && f(m);
129
+ m.currentTarget.focus(), h.current !== "mouse" && v(m);
130
130
  }),
131
131
  onPointerDown: ie(a.onPointerDown, (m) => {
132
132
  h.current = m.pointerType;
133
- const C = m.target;
134
- C.hasPointerCapture(m.pointerId) && C.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && m.pointerType === "mouse" && (f(m), m.preventDefault());
133
+ const f = m.target;
134
+ f.hasPointerCapture(m.pointerId) && f.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && m.pointerType === "mouse" && (v(m), m.preventDefault());
135
135
  }),
136
136
  onKeyDown: ie(a.onKeyDown, (m) => {
137
- const C = A.current !== "";
138
- !(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && p(m.key), !(C && m.key === " ") && jc.includes(m.key) && (f(), m.preventDefault());
137
+ const f = A.current !== "";
138
+ !(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && p(m.key), !(f && m.key === " ") && jc.includes(m.key) && (v(), m.preventDefault());
139
139
  })
140
140
  }
141
141
  ) });
@@ -201,9 +201,9 @@ var Me = 10, [Ta, ct] = Lt(wt), Yc = "SelectContentImpl", Zc = tl("SelectContent
201
201
  arrowPadding: A,
202
202
  collisionBoundary: p,
203
203
  collisionPadding: k,
204
- sticky: f,
204
+ sticky: v,
205
205
  hideWhenDetached: m,
206
- avoidCollisions: C,
206
+ avoidCollisions: f,
207
207
  //
208
208
  ...E
209
209
  } = n, B = lt(wt, t), [I, S] = d.useState(null), [b, w] = d.useState(null), Q = Se(e, (V) => S(V)), [O, T] = d.useState(null), [D, z] = d.useState(
@@ -272,9 +272,9 @@ var Me = 10, [Ta, ct] = Lt(wt), Yc = "SelectContentImpl", Zc = tl("SelectContent
272
272
  arrowPadding: A,
273
273
  collisionBoundary: p,
274
274
  collisionPadding: k,
275
- sticky: f,
275
+ sticky: v,
276
276
  hideWhenDetached: m,
277
- avoidCollisions: C
277
+ avoidCollisions: f
278
278
  } : {};
279
279
  return /* @__PURE__ */ r(
280
280
  Ta,
@@ -356,8 +356,8 @@ var Me = 10, [Ta, ct] = Lt(wt), Yc = "SelectContentImpl", Zc = tl("SelectContent
356
356
  );
357
357
  Da.displayName = Yc;
358
358
  var _c = "SelectItemAlignedPosition", Ja = d.forwardRef((n, e) => {
359
- const { __scopeSelect: t, onPlaced: s, ...a } = n, o = lt(wt, t), i = ct(wt, t), [l, c] = d.useState(null), [u, h] = d.useState(null), A = Se(e, (Q) => h(Q)), p = Ln(t), k = d.useRef(!1), f = d.useRef(!0), { viewport: m, selectedItem: C, selectedItemText: E, focusSelectedItem: B } = i, I = d.useCallback(() => {
360
- if (o.trigger && o.valueNode && l && u && m && C && E) {
359
+ const { __scopeSelect: t, onPlaced: s, ...a } = n, o = lt(wt, t), i = ct(wt, t), [l, c] = d.useState(null), [u, h] = d.useState(null), A = Se(e, (Q) => h(Q)), p = Ln(t), k = d.useRef(!1), v = d.useRef(!0), { viewport: m, selectedItem: f, selectedItemText: E, focusSelectedItem: B } = i, I = d.useCallback(() => {
360
+ if (o.trigger && o.valueNode && l && u && m && f && E) {
361
361
  const Q = o.trigger.getBoundingClientRect(), O = u.getBoundingClientRect(), T = o.valueNode.getBoundingClientRect(), D = E.getBoundingClientRect();
362
362
  if (o.dir !== "rtl") {
363
363
  const te = D.left - O.left, ne = T.left - te, At = Q.left - ne, ht = Q.width + At, is = Math.max(ht, O.width), ls = window.innerWidth - Me, cs = Qn(ne, [
@@ -377,9 +377,9 @@ var _c = "SelectItemAlignedPosition", Ja = d.forwardRef((n, e) => {
377
377
  ]);
378
378
  l.style.minWidth = ht + "px", l.style.right = cs + "px";
379
379
  }
380
- const z = p(), M = window.innerHeight - Me * 2, U = m.scrollHeight, J = window.getComputedStyle(u), x = parseInt(J.borderTopWidth, 10), L = parseInt(J.paddingTop, 10), G = parseInt(J.borderBottomWidth, 10), Z = parseInt(J.paddingBottom, 10), R = x + L + U + Z + G, H = Math.min(C.offsetHeight * 5, R), ae = window.getComputedStyle(m), Re = parseInt(ae.paddingTop, 10), xe = parseInt(ae.paddingBottom, 10), Qe = Q.top + Q.height / 2 - Me, le = M - Qe, be = C.offsetHeight / 2, V = C.offsetTop + be, ue = x + L + V, Te = R - ue;
380
+ const z = p(), M = window.innerHeight - Me * 2, U = m.scrollHeight, J = window.getComputedStyle(u), x = parseInt(J.borderTopWidth, 10), L = parseInt(J.paddingTop, 10), G = parseInt(J.borderBottomWidth, 10), Z = parseInt(J.paddingBottom, 10), R = x + L + U + Z + G, H = Math.min(f.offsetHeight * 5, R), ae = window.getComputedStyle(m), Re = parseInt(ae.paddingTop, 10), xe = parseInt(ae.paddingBottom, 10), Qe = Q.top + Q.height / 2 - Me, le = M - Qe, be = f.offsetHeight / 2, V = f.offsetTop + be, ue = x + L + V, Te = R - ue;
381
381
  if (ue <= Qe) {
382
- const te = z.length > 0 && C === z[z.length - 1].ref.current;
382
+ const te = z.length > 0 && f === z[z.length - 1].ref.current;
383
383
  l.style.bottom = "0px";
384
384
  const ne = u.clientHeight - m.offsetTop - m.offsetHeight, At = Math.max(
385
385
  le,
@@ -388,7 +388,7 @@ var _c = "SelectItemAlignedPosition", Ja = d.forwardRef((n, e) => {
388
388
  ), ht = ue + At;
389
389
  l.style.height = ht + "px";
390
390
  } else {
391
- const te = z.length > 0 && C === z[0].ref.current;
391
+ const te = z.length > 0 && f === z[0].ref.current;
392
392
  l.style.top = "0px";
393
393
  const At = Math.max(
394
394
  Qe,
@@ -406,7 +406,7 @@ var _c = "SelectItemAlignedPosition", Ja = d.forwardRef((n, e) => {
406
406
  l,
407
407
  u,
408
408
  m,
409
- C,
409
+ f,
410
410
  E,
411
411
  o.dir,
412
412
  s
@@ -418,7 +418,7 @@ var _c = "SelectItemAlignedPosition", Ja = d.forwardRef((n, e) => {
418
418
  }, [u]);
419
419
  const w = d.useCallback(
420
420
  (Q) => {
421
- Q && f.current === !0 && (I(), B == null || B(), f.current = !1);
421
+ Q && v.current === !0 && (I(), B == null || B(), v.current = !1);
422
422
  },
423
423
  [I, B]
424
424
  );
@@ -527,9 +527,9 @@ var [ed, Zs] = Lt(wt, {}), Ns = "SelectViewport", Pa = d.forwardRef(
527
527
  if (p != null && p.current && A) {
528
528
  const k = Math.abs(c.current - h.scrollTop);
529
529
  if (k > 0) {
530
- const f = window.innerHeight - Me * 2, m = parseFloat(A.style.minHeight), C = parseFloat(A.style.height), E = Math.max(m, C);
531
- if (E < f) {
532
- const B = E + k, I = Math.min(f, B), S = B - I;
530
+ const v = window.innerHeight - Me * 2, m = parseFloat(A.style.minHeight), f = parseFloat(A.style.height), E = Math.max(m, f);
531
+ if (E < v) {
532
+ const B = E + k, I = Math.min(v, B), S = B - I;
533
533
  A.style.height = I + "px", A.style.bottom === "0px" && (h.scrollTop = S > 0 ? S : 0, A.style.justifyContent = "flex-end");
534
534
  }
535
535
  }
@@ -564,13 +564,13 @@ var Tn = "SelectItem", [sd, Fa] = Lt(Tn), Ha = d.forwardRef(
564
564
  disabled: a = !1,
565
565
  textValue: o,
566
566
  ...i
567
- } = n, l = lt(Tn, t), c = ct(Tn, t), u = l.value === s, [h, A] = d.useState(o ?? ""), [p, k] = d.useState(!1), f = Se(
567
+ } = n, l = lt(Tn, t), c = ct(Tn, t), u = l.value === s, [h, A] = d.useState(o ?? ""), [p, k] = d.useState(!1), v = Se(
568
568
  e,
569
569
  (B) => {
570
570
  var I;
571
571
  return (I = c.itemRefCallback) == null ? void 0 : I.call(c, B, s, a);
572
572
  }
573
- ), m = js(), C = d.useRef("touch"), E = () => {
573
+ ), m = js(), f = d.useRef("touch"), E = () => {
574
574
  a || (l.onValueChange(s), l.onOpenChange(!1));
575
575
  };
576
576
  if (s === "")
@@ -607,21 +607,21 @@ var Tn = "SelectItem", [sd, Fa] = Lt(Tn), Ha = d.forwardRef(
607
607
  "data-disabled": a ? "" : void 0,
608
608
  tabIndex: a ? void 0 : -1,
609
609
  ...i,
610
- ref: f,
610
+ ref: v,
611
611
  onFocus: ie(i.onFocus, () => k(!0)),
612
612
  onBlur: ie(i.onBlur, () => k(!1)),
613
613
  onClick: ie(i.onClick, () => {
614
- C.current !== "mouse" && E();
614
+ f.current !== "mouse" && E();
615
615
  }),
616
616
  onPointerUp: ie(i.onPointerUp, () => {
617
- C.current === "mouse" && E();
617
+ f.current === "mouse" && E();
618
618
  }),
619
619
  onPointerDown: ie(i.onPointerDown, (B) => {
620
- C.current = B.pointerType;
620
+ f.current = B.pointerType;
621
621
  }),
622
622
  onPointerMove: ie(i.onPointerMove, (B) => {
623
623
  var I;
624
- C.current = B.pointerType, a ? (I = c.onItemLeave) == null || I.call(c) : C.current === "mouse" && B.currentTarget.focus({ preventScroll: !0 });
624
+ f.current = B.pointerType, a ? (I = c.onItemLeave) == null || I.call(c) : f.current === "mouse" && B.currentTarget.focus({ preventScroll: !0 });
625
625
  }),
626
626
  onPointerLeave: ie(i.onPointerLeave, (B) => {
627
627
  var I;
@@ -650,11 +650,11 @@ var rn = "SelectItemText", ja = d.forwardRef(
650
650
  var B;
651
651
  return (B = l.itemTextRefCallback) == null ? void 0 : B.call(l, E, c.value, c.disabled);
652
652
  }
653
- ), k = h == null ? void 0 : h.textContent, f = d.useMemo(
653
+ ), k = h == null ? void 0 : h.textContent, v = d.useMemo(
654
654
  () => /* @__PURE__ */ r("option", { value: c.value, disabled: c.disabled, children: k }, c.value),
655
655
  [c.disabled, c.value, k]
656
- ), { onNativeOptionAdd: m, onNativeOptionRemove: C } = u;
657
- return ot(() => (m(f), () => C(f)), [m, C, f]), /* @__PURE__ */ g(pe, { children: [
656
+ ), { onNativeOptionAdd: m, onNativeOptionRemove: f } = u;
657
+ return ot(() => (m(v), () => f(v)), [m, f, v]), /* @__PURE__ */ g(pe, { children: [
658
658
  /* @__PURE__ */ r(fe.span, { id: c.textId, ...o, ref: p }),
659
659
  c.isSelected && i.valueNode && !i.valueNodeHasChildren ? Sa.createPortal(o.children, i.valueNode) : null
660
660
  ] });
@@ -836,14 +836,14 @@ var dd = Ia, ud = Ba, Ad = Ra, hd = Na, pd = xa, md = Qa, gd = Pa, fd = za, vd =
836
836
  onValueCommit: p = () => {
837
837
  },
838
838
  inverted: k = !1,
839
- form: f,
839
+ form: v,
840
840
  ...m
841
- } = n, C = d.useRef(/* @__PURE__ */ new Set()), E = d.useRef(0), I = i === "horizontal" ? Bd : wd, [S = [], b] = xn({
841
+ } = n, f = d.useRef(/* @__PURE__ */ new Set()), E = d.useRef(0), I = i === "horizontal" ? Bd : wd, [S = [], b] = xn({
842
842
  prop: h,
843
843
  defaultProp: u,
844
844
  onChange: (z) => {
845
845
  var U;
846
- (U = [...C.current][E.current]) == null || U.focus(), A(z);
846
+ (U = [...f.current][E.current]) == null || U.focus(), A(z);
847
847
  }
848
848
  }), w = d.useRef(S);
849
849
  function Q(z) {
@@ -878,10 +878,10 @@ var dd = Ia, ud = Ba, Ad = Ra, hd = Na, pd = xa, md = Qa, gd = Pa, fd = za, vd =
878
878
  min: s,
879
879
  max: a,
880
880
  valueIndexToChangeRef: E,
881
- thumbs: C.current,
881
+ thumbs: f.current,
882
882
  values: S,
883
883
  orientation: i,
884
- form: f,
884
+ form: v,
885
885
  children: /* @__PURE__ */ r(Ds.Provider, { scope: n.__scopeSlider, children: /* @__PURE__ */ r(Ds.Slot, { scope: n.__scopeSlider, children: /* @__PURE__ */ r(
886
886
  I,
887
887
  {
@@ -930,10 +930,10 @@ var [no, so] = eo(Vt, {
930
930
  onSlideEnd: c,
931
931
  onStepKeyDown: u,
932
932
  ...h
933
- } = n, [A, p] = d.useState(null), k = Se(e, (I) => p(I)), f = d.useRef(void 0), m = ta(a), C = m === "ltr", E = C && !o || !C && o;
933
+ } = n, [A, p] = d.useState(null), k = Se(e, (I) => p(I)), v = d.useRef(void 0), m = ta(a), f = m === "ltr", E = f && !o || !f && o;
934
934
  function B(I) {
935
- const S = f.current || A.getBoundingClientRect(), b = [0, S.width], Q = _s(b, E ? [t, s] : [s, t]);
936
- return f.current = S, Q(I - S.left);
935
+ const S = v.current || A.getBoundingClientRect(), b = [0, S.width], Q = _s(b, E ? [t, s] : [s, t]);
936
+ return v.current = S, Q(I - S.left);
937
937
  }
938
938
  return /* @__PURE__ */ r(
939
939
  no,
@@ -963,7 +963,7 @@ var [no, so] = eo(Vt, {
963
963
  l == null || l(S);
964
964
  },
965
965
  onSlideEnd: () => {
966
- f.current = void 0, c == null || c();
966
+ v.current = void 0, c == null || c();
967
967
  },
968
968
  onStepKeyDown: (I) => {
969
969
  const b = $a[E ? "from-left" : "from-right"].includes(I.key);
@@ -986,9 +986,9 @@ var [no, so] = eo(Vt, {
986
986
  onStepKeyDown: c,
987
987
  ...u
988
988
  } = n, h = d.useRef(null), A = Se(e, h), p = d.useRef(void 0), k = !a;
989
- function f(m) {
990
- const C = p.current || h.current.getBoundingClientRect(), E = [0, C.height], I = _s(E, k ? [s, t] : [t, s]);
991
- return p.current = C, I(m - C.top);
989
+ function v(m) {
990
+ const f = p.current || h.current.getBoundingClientRect(), E = [0, f.height], I = _s(E, k ? [s, t] : [t, s]);
991
+ return p.current = f, I(m - f.top);
992
992
  }
993
993
  return /* @__PURE__ */ r(
994
994
  no,
@@ -1009,12 +1009,12 @@ var [no, so] = eo(Vt, {
1009
1009
  "--radix-slider-thumb-transform": "translateY(50%)"
1010
1010
  },
1011
1011
  onSlideStart: (m) => {
1012
- const C = f(m.clientY);
1013
- o == null || o(C);
1012
+ const f = v(m.clientY);
1013
+ o == null || o(f);
1014
1014
  },
1015
1015
  onSlideMove: (m) => {
1016
- const C = f(m.clientY);
1017
- i == null || i(C);
1016
+ const f = v(m.clientY);
1017
+ i == null || i(f);
1018
1018
  },
1019
1019
  onSlideEnd: () => {
1020
1020
  p.current = void 0, l == null || l();
@@ -1109,7 +1109,7 @@ var Ps = "SliderThumb", lo = d.forwardRef(
1109
1109
  }
1110
1110
  ), Rd = d.forwardRef(
1111
1111
  (n, e) => {
1112
- const { __scopeSlider: t, index: s, name: a, ...o } = n, i = qn(Ps, t), l = so(Ps, t), [c, u] = d.useState(null), h = Se(e, (B) => u(B)), A = c ? i.form || !!c.closest("form") : !0, p = rl(c), k = i.values[s], f = k === void 0 ? 0 : uo(k, i.min, i.max), m = Qd(s, i.values.length), C = p == null ? void 0 : p[l.size], E = C ? Dd(C, f, l.direction) : 0;
1112
+ const { __scopeSlider: t, index: s, name: a, ...o } = n, i = qn(Ps, t), l = so(Ps, t), [c, u] = d.useState(null), h = Se(e, (B) => u(B)), A = c ? i.form || !!c.closest("form") : !0, p = rl(c), k = i.values[s], v = k === void 0 ? 0 : uo(k, i.min, i.max), m = Qd(s, i.values.length), f = p == null ? void 0 : p[l.size], E = f ? Dd(f, v, l.direction) : 0;
1113
1113
  return d.useEffect(() => {
1114
1114
  if (c)
1115
1115
  return i.thumbs.add(c), () => {
@@ -1121,7 +1121,7 @@ var Ps = "SliderThumb", lo = d.forwardRef(
1121
1121
  style: {
1122
1122
  transform: "var(--radix-slider-thumb-transform)",
1123
1123
  position: "absolute",
1124
- [l.startEdge]: `calc(${f}% + ${E}px)`
1124
+ [l.startEdge]: `calc(${v}% + ${E}px)`
1125
1125
  },
1126
1126
  children: [
1127
1127
  /* @__PURE__ */ r(Ds.ItemSlot, { scope: n.__scopeSlider, children: /* @__PURE__ */ r(
@@ -1263,7 +1263,7 @@ var Ao = to, ho = oo, po = io, mo = lo, go = { exports: {} };
1263
1263
  })();
1264
1264
  })(go);
1265
1265
  var Md = go.exports;
1266
- const v = /* @__PURE__ */ Hc(Md), re = { asChild: { type: "boolean" } }, ye = { width: { type: "string", className: "rt-r-w", customProperties: ["--width"], responsive: !0 }, minWidth: { type: "string", className: "rt-r-min-w", customProperties: ["--min-width"], responsive: !0 }, maxWidth: { type: "string", className: "rt-r-max-w", customProperties: ["--max-width"], responsive: !0 } }, qt = { height: { type: "string", className: "rt-r-h", customProperties: ["--height"], responsive: !0 }, minHeight: { type: "string", className: "rt-r-min-h", customProperties: ["--min-height"], responsive: !0 }, maxHeight: { type: "string", className: "rt-r-max-h", customProperties: ["--max-height"], responsive: !0 } }, Od = ["1", "2", "3", "4"], fo = { ...re, align: { type: "enum", className: "rt-r-align", values: ["start", "center"], default: "center" }, size: { type: "enum", className: "rt-r-size", values: Od, default: "3", responsive: !0 }, width: ye.width, minWidth: ye.minWidth, maxWidth: { ...ye.maxWidth, default: "600px" }, ...qt }, vo = ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky"], we = { color: { type: "enum", values: vo, default: void 0 } }, Kt = { color: { type: "enum", values: vo, default: "" } }, Ie = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } }, Fd = ["normal", "start", "end", "both"], Kn = { trim: { type: "enum", className: "rt-r-lt", values: Fd, responsive: !0 } }, Hd = ["left", "center", "right"], Co = { align: { type: "enum", className: "rt-r-ta", values: Hd, responsive: !0 } }, jd = ["wrap", "nowrap", "pretty", "balance"], Nt = { wrap: { type: "enum", className: "rt-r-tw", values: jd, responsive: !0 } }, xt = { truncate: { type: "boolean", className: "rt-truncate" } }, Wd = ["light", "regular", "medium", "bold"], Gn = { weight: { type: "enum", className: "rt-r-weight", values: Wd, responsive: !0 } }, Ld = ["h1", "h2", "h3", "h4", "h5", "h6"], Vd = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], qd = { as: { type: "enum", values: Ld, default: "h1" }, ...re, size: { type: "enum", className: "rt-r-size", values: Vd, default: "6", responsive: !0 }, ...Gn, ...Co, ...Kn, ...xt, ...Nt, ...we, ...Ie }, $s = ["initial", "xs", "sm", "md", "lg", "xl"];
1266
+ const C = /* @__PURE__ */ Hc(Md), re = { asChild: { type: "boolean" } }, ye = { width: { type: "string", className: "rt-r-w", customProperties: ["--width"], responsive: !0 }, minWidth: { type: "string", className: "rt-r-min-w", customProperties: ["--min-width"], responsive: !0 }, maxWidth: { type: "string", className: "rt-r-max-w", customProperties: ["--max-width"], responsive: !0 } }, qt = { height: { type: "string", className: "rt-r-h", customProperties: ["--height"], responsive: !0 }, minHeight: { type: "string", className: "rt-r-min-h", customProperties: ["--min-height"], responsive: !0 }, maxHeight: { type: "string", className: "rt-r-max-h", customProperties: ["--max-height"], responsive: !0 } }, Od = ["1", "2", "3", "4"], fo = { ...re, align: { type: "enum", className: "rt-r-align", values: ["start", "center"], default: "center" }, size: { type: "enum", className: "rt-r-size", values: Od, default: "3", responsive: !0 }, width: ye.width, minWidth: ye.minWidth, maxWidth: { ...ye.maxWidth, default: "600px" }, ...qt }, vo = ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky"], we = { color: { type: "enum", values: vo, default: void 0 } }, Kt = { color: { type: "enum", values: vo, default: "" } }, Ie = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } }, Fd = ["normal", "start", "end", "both"], Kn = { trim: { type: "enum", className: "rt-r-lt", values: Fd, responsive: !0 } }, Hd = ["left", "center", "right"], Co = { align: { type: "enum", className: "rt-r-ta", values: Hd, responsive: !0 } }, jd = ["wrap", "nowrap", "pretty", "balance"], Nt = { wrap: { type: "enum", className: "rt-r-tw", values: jd, responsive: !0 } }, xt = { truncate: { type: "boolean", className: "rt-truncate" } }, Wd = ["light", "regular", "medium", "bold"], Gn = { weight: { type: "enum", className: "rt-r-weight", values: Wd, responsive: !0 } }, Ld = ["h1", "h2", "h3", "h4", "h5", "h6"], Vd = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], qd = { as: { type: "enum", values: Ld, default: "h1" }, ...re, size: { type: "enum", className: "rt-r-size", values: Vd, default: "6", responsive: !0 }, ...Gn, ...Co, ...Kn, ...xt, ...Nt, ...we, ...Ie }, $s = ["initial", "xs", "sm", "md", "lg", "xl"];
1267
1267
  function yo(n, e) {
1268
1268
  return Object.prototype.hasOwnProperty.call(n, e);
1269
1269
  }
@@ -1340,30 +1340,30 @@ function F(n, ...e) {
1340
1340
  if (!l || on(l) && !u) continue;
1341
1341
  if (on(l) && (c.default !== void 0 && l.initial === void 0 && (l.initial = c.default), c.type === "enum" && ([c.default, ...c.values].includes(l.initial) || (l.initial = c.default))), c.type === "enum") {
1342
1342
  const h = dn({ allowArbitraryValues: !1, value: l, className: c.className, propValues: c.values, parseValue: c.parseValue });
1343
- t = v(t, h);
1343
+ t = C(t, h);
1344
1344
  continue;
1345
1345
  }
1346
1346
  if (c.type === "string" || c.type === "enum | string") {
1347
1347
  const h = c.type === "string" ? [] : c.values, [A, p] = nt({ className: c.className, customProperties: c.customProperties, propValues: h, parseValue: c.parseValue, value: l });
1348
- s = un(s, p), t = v(t, A);
1348
+ s = un(s, p), t = C(t, A);
1349
1349
  continue;
1350
1350
  }
1351
1351
  if (c.type === "boolean" && l) {
1352
- t = v(t, c.className);
1352
+ t = C(t, c.className);
1353
1353
  continue;
1354
1354
  }
1355
1355
  }
1356
1356
  }
1357
- return a.className = v(t, n.className), a.style = un(s, n.style), a;
1357
+ return a.className = C(t, n.className), a.style = un(s, n.style), a;
1358
1358
  }
1359
1359
  const pt = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], X = { m: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } }, Xn = d.forwardRef((n, e) => {
1360
1360
  const { children: t, className: s, asChild: a, as: o = "h1", color: i, ...l } = F(n, qd, X);
1361
- return d.createElement(ve, { "data-accent-color": i, ...l, ref: e, className: v("rt-Heading", s) }, a ? t : d.createElement(o, null, t));
1361
+ return d.createElement(ve, { "data-accent-color": i, ...l, ref: e, className: C("rt-Heading", s) }, a ? t : d.createElement(o, null, t));
1362
1362
  });
1363
1363
  Xn.displayName = "Heading";
1364
1364
  const Xd = ["span", "div", "label", "p"], Yd = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Zd = { as: { type: "enum", values: Xd, default: "span" }, ...re, size: { type: "enum", className: "rt-r-size", values: Yd, responsive: !0 }, ...Gn, ...Co, ...Kn, ...xt, ...Nt, ...we, ...Ie }, P = d.forwardRef((n, e) => {
1365
1365
  const { children: t, className: s, asChild: a, as: o = "span", color: i, ...l } = F(n, Zd, X);
1366
- return d.createElement(ve, { "data-accent-color": i, ...l, ref: e, className: v("rt-Text", s) }, a ? t : d.createElement(o, null, t));
1366
+ return d.createElement(ve, { "data-accent-color": i, ...l, ref: e, className: C("rt-Text", s) }, a ? t : d.createElement(o, null, t));
1367
1367
  });
1368
1368
  P.displayName = "Text";
1369
1369
  function _d(n) {
@@ -1416,19 +1416,19 @@ const ko = d.forwardRef((n, e) => {
1416
1416
  d.useEffect(() => A(t), [t]);
1417
1417
  const [p, k] = d.useState(s);
1418
1418
  d.useEffect(() => k(s), [s]);
1419
- const [f, m] = d.useState(a);
1419
+ const [v, m] = d.useState(a);
1420
1420
  d.useEffect(() => m(a), [a]);
1421
- const [C, E] = d.useState(o);
1421
+ const [f, E] = d.useState(o);
1422
1422
  d.useEffect(() => E(o), [o]);
1423
1423
  const [B, I] = d.useState(i);
1424
1424
  d.useEffect(() => I(i), [i]);
1425
1425
  const [S, b] = d.useState(l);
1426
- return d.useEffect(() => b(l), [l]), d.createElement(er, { ...u, ref: e, isRoot: !0, hasBackground: c, appearance: h, accentColor: p, grayColor: f, panelBackground: C, radius: B, scaling: S, onAppearanceChange: A, onAccentColorChange: k, onGrayColorChange: m, onPanelBackgroundChange: E, onRadiusChange: I, onScalingChange: b });
1426
+ return d.useEffect(() => b(l), [l]), d.createElement(er, { ...u, ref: e, isRoot: !0, hasBackground: c, appearance: h, accentColor: p, grayColor: v, panelBackground: f, radius: B, scaling: S, onAppearanceChange: A, onAccentColorChange: k, onGrayColorChange: m, onPanelBackgroundChange: E, onRadiusChange: I, onScalingChange: b });
1427
1427
  });
1428
1428
  ko.displayName = "ThemeRoot";
1429
1429
  const er = d.forwardRef((n, e) => {
1430
- const t = d.useContext(Dn), { asChild: s, isRoot: a, hasBackground: o, appearance: i = (t == null ? void 0 : t.appearance) ?? Je.appearance.default, accentColor: l = (t == null ? void 0 : t.accentColor) ?? Je.accentColor.default, grayColor: c = (t == null ? void 0 : t.resolvedGrayColor) ?? Je.grayColor.default, panelBackground: u = (t == null ? void 0 : t.panelBackground) ?? Je.panelBackground.default, radius: h = (t == null ? void 0 : t.radius) ?? Je.radius.default, scaling: A = (t == null ? void 0 : t.scaling) ?? Je.scaling.default, onAppearanceChange: p = Tt, onAccentColorChange: k = Tt, onGrayColorChange: f = Tt, onPanelBackgroundChange: m = Tt, onRadiusChange: C = Tt, onScalingChange: E = Tt, ...B } = n, I = s ? ve : "div", S = c === "auto" ? _d(l) : c, b = n.appearance === "light" || n.appearance === "dark", w = o === void 0 ? a || b : o;
1431
- return d.createElement(Dn.Provider, { value: d.useMemo(() => ({ appearance: i, accentColor: l, grayColor: c, resolvedGrayColor: S, panelBackground: u, radius: h, scaling: A, onAppearanceChange: p, onAccentColorChange: k, onGrayColorChange: f, onPanelBackgroundChange: m, onRadiusChange: C, onScalingChange: E }), [i, l, c, S, u, h, A, p, k, f, m, C, E]) }, d.createElement(I, { "data-is-root-theme": a ? "true" : "false", "data-accent-color": l, "data-gray-color": S, "data-has-background": w ? "true" : "false", "data-panel-background": u, "data-radius": h, "data-scaling": A, ref: e, ...B, className: v("radix-themes", { light: i === "light", dark: i === "dark" }, B.className) }));
1430
+ const t = d.useContext(Dn), { asChild: s, isRoot: a, hasBackground: o, appearance: i = (t == null ? void 0 : t.appearance) ?? Je.appearance.default, accentColor: l = (t == null ? void 0 : t.accentColor) ?? Je.accentColor.default, grayColor: c = (t == null ? void 0 : t.resolvedGrayColor) ?? Je.grayColor.default, panelBackground: u = (t == null ? void 0 : t.panelBackground) ?? Je.panelBackground.default, radius: h = (t == null ? void 0 : t.radius) ?? Je.radius.default, scaling: A = (t == null ? void 0 : t.scaling) ?? Je.scaling.default, onAppearanceChange: p = Tt, onAccentColorChange: k = Tt, onGrayColorChange: v = Tt, onPanelBackgroundChange: m = Tt, onRadiusChange: f = Tt, onScalingChange: E = Tt, ...B } = n, I = s ? ve : "div", S = c === "auto" ? _d(l) : c, b = n.appearance === "light" || n.appearance === "dark", w = o === void 0 ? a || b : o;
1431
+ return d.createElement(Dn.Provider, { value: d.useMemo(() => ({ appearance: i, accentColor: l, grayColor: c, resolvedGrayColor: S, panelBackground: u, radius: h, scaling: A, onAppearanceChange: p, onAccentColorChange: k, onGrayColorChange: v, onPanelBackgroundChange: m, onRadiusChange: f, onScalingChange: E }), [i, l, c, S, u, h, A, p, k, v, m, f, E]) }, d.createElement(I, { "data-is-root-theme": a ? "true" : "false", "data-accent-color": l, "data-gray-color": S, "data-has-background": w ? "true" : "false", "data-panel-background": u, "data-radius": h, "data-scaling": A, ref: e, ...B, className: C("radix-themes", { light: i === "light", dark: i === "dark" }, B.className) }));
1432
1432
  });
1433
1433
  er.displayName = "ThemeImpl";
1434
1434
  const ut = (n) => {
@@ -1440,7 +1440,7 @@ const So = d.forwardRef(({ children: n, ...e }, t) => d.createElement(pl, { ...e
1440
1440
  So.displayName = "AlertDialog.Trigger";
1441
1441
  const Io = d.forwardRef(({ align: n, ...e }, t) => {
1442
1442
  const { align: s, ...a } = fo, { className: o } = F({ align: n }, { align: s }), { className: i, forceMount: l, container: c, ...u } = F(e, a);
1443
- return d.createElement(ll, { container: c, forceMount: l }, d.createElement(dt, { asChild: !0 }, d.createElement(cl, { className: "rt-BaseDialogOverlay rt-AlertDialogOverlay" }, d.createElement("div", { className: "rt-BaseDialogScroll rt-AlertDialogScroll" }, d.createElement("div", { className: `rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${o}` }, d.createElement(dl, { ...u, ref: t, className: v("rt-BaseDialogContent", "rt-AlertDialogContent", i) }))))));
1443
+ return d.createElement(ll, { container: c, forceMount: l }, d.createElement(dt, { asChild: !0 }, d.createElement(cl, { className: "rt-BaseDialogOverlay rt-AlertDialogOverlay" }, d.createElement("div", { className: "rt-BaseDialogScroll rt-AlertDialogScroll" }, d.createElement("div", { className: `rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${o}` }, d.createElement(dl, { ...u, ref: t, className: C("rt-BaseDialogContent", "rt-AlertDialogContent", i) }))))));
1444
1444
  });
1445
1445
  Io.displayName = "AlertDialog.Content";
1446
1446
  const bo = d.forwardRef((n, e) => d.createElement(hl, { asChild: !0 }, d.createElement(Xn, { size: "5", mb: "3", trim: "start", ...n, asChild: !1, ref: e })));
@@ -1469,12 +1469,12 @@ function tr(n, e) {
1469
1469
  }
1470
1470
  const We = d.forwardRef((n, e) => {
1471
1471
  const { asChild: t, children: s, className: a, style: o, color: i, radius: l, ...c } = F(n, su, X);
1472
- return d.createElement(gl, { "data-accent-color": i, "data-radius": l, className: v("rt-reset", "rt-AvatarRoot", a), style: o, asChild: t }, tr({ asChild: t, children: s }, d.createElement(No, { ref: e, ...c })));
1472
+ return d.createElement(gl, { "data-accent-color": i, "data-radius": l, className: C("rt-reset", "rt-AvatarRoot", a), style: o, asChild: t }, tr({ asChild: t, children: s }, d.createElement(No, { ref: e, ...c })));
1473
1473
  });
1474
1474
  We.displayName = "Avatar";
1475
1475
  const No = d.forwardRef(({ fallback: n, ...e }, t) => {
1476
1476
  const [s, a] = d.useState("idle");
1477
- return d.createElement(d.Fragment, null, s === "idle" || s === "loading" ? d.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? d.createElement(fl, { className: v("rt-AvatarFallback", { "rt-one-letter": typeof n == "string" && n.length === 1, "rt-two-letters": typeof n == "string" && n.length === 2 }), delayMs: 0 }, n) : null, d.createElement(vl, { ref: t, className: "rt-AvatarImage", ...e, onLoadingStatusChange: (o) => {
1477
+ return d.createElement(d.Fragment, null, s === "idle" || s === "loading" ? d.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? d.createElement(fl, { className: C("rt-AvatarFallback", { "rt-one-letter": typeof n == "string" && n.length === 1, "rt-two-letters": typeof n == "string" && n.length === 2 }), delayMs: 0 }, n) : null, d.createElement(vl, { ref: t, className: "rt-AvatarImage", ...e, onLoadingStatusChange: (o) => {
1478
1478
  var i;
1479
1479
  (i = e.onLoadingStatusChange) == null || i.call(e, o), a(o);
1480
1480
  } }));
@@ -1482,17 +1482,17 @@ const No = d.forwardRef(({ fallback: n, ...e }, t) => {
1482
1482
  No.displayName = "AvatarImpl";
1483
1483
  const ru = ["1", "2", "3"], au = ["solid", "soft", "surface", "outline"], ou = { ...re, size: { type: "enum", className: "rt-r-size", values: ru, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: au, default: "soft" }, ...Kt, ...Ie, ...Le }, nr = d.forwardRef((n, e) => {
1484
1484
  const { asChild: t, className: s, color: a, radius: o, ...i } = F(n, ou, X), l = t ? ve : "span";
1485
- return d.createElement(l, { "data-accent-color": a, "data-radius": o, ...i, ref: e, className: v("rt-reset", "rt-Badge", s) });
1485
+ return d.createElement(l, { "data-accent-color": a, "data-radius": o, ...i, ref: e, className: C("rt-reset", "rt-Badge", s) });
1486
1486
  });
1487
1487
  nr.displayName = "Badge";
1488
1488
  const iu = d.forwardRef((n, e) => {
1489
1489
  const { asChild: t, children: s, className: a, ...o } = n, i = t ? ve : "blockquote";
1490
- return d.createElement(P, { asChild: !0, ...o, ref: e, className: v("rt-Blockquote", a) }, d.createElement(i, null, s));
1490
+ return d.createElement(P, { asChild: !0, ...o, ref: e, className: C("rt-Blockquote", a) }, d.createElement(i, null, s));
1491
1491
  });
1492
1492
  iu.displayName = "Blockquote";
1493
1493
  const sr = ve, lu = ["div", "span"], cu = ["none", "inline", "inline-block", "block", "contents"], du = { as: { type: "enum", values: lu, default: "div" }, ...re, display: { type: "enum", className: "rt-r-display", values: cu, responsive: !0 } }, mt = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], ln = { p: { type: "enum | string", className: "rt-r-p", customProperties: ["--p"], values: mt, responsive: !0 }, px: { type: "enum | string", className: "rt-r-px", customProperties: ["--pl", "--pr"], values: mt, responsive: !0 }, py: { type: "enum | string", className: "rt-r-py", customProperties: ["--pt", "--pb"], values: mt, responsive: !0 }, pt: { type: "enum | string", className: "rt-r-pt", customProperties: ["--pt"], values: mt, responsive: !0 }, pr: { type: "enum | string", className: "rt-r-pr", customProperties: ["--pr"], values: mt, responsive: !0 }, pb: { type: "enum | string", className: "rt-r-pb", customProperties: ["--pb"], values: mt, responsive: !0 }, pl: { type: "enum | string", className: "rt-r-pl", customProperties: ["--pl"], values: mt, responsive: !0 } }, ds = ["visible", "hidden", "clip", "scroll", "auto"], uu = ["static", "relative", "absolute", "fixed", "sticky"], Xt = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], Au = ["0", "1"], hu = ["0", "1"], pn = { ...ln, ...ye, ...qt, position: { type: "enum", className: "rt-r-position", values: uu, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: Xt, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: Xt, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: Xt, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: Xt, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: Xt, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: ds, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: ds, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: ds, responsive: !0 }, flexBasis: { type: "string", className: "rt-r-fb", customProperties: ["--flex-basis"], responsive: !0 }, flexShrink: { type: "enum | string", className: "rt-r-fs", customProperties: ["--flex-shrink"], values: Au, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: hu, responsive: !0 }, gridArea: { type: "string", className: "rt-r-ga", customProperties: ["--grid-area"], responsive: !0 }, gridColumn: { type: "string", className: "rt-r-gc", customProperties: ["--grid-column"], responsive: !0 }, gridColumnStart: { type: "string", className: "rt-r-gcs", customProperties: ["--grid-column-start"], responsive: !0 }, gridColumnEnd: { type: "string", className: "rt-r-gce", customProperties: ["--grid-column-end"], responsive: !0 }, gridRow: { type: "string", className: "rt-r-gr", customProperties: ["--grid-row"], responsive: !0 }, gridRowStart: { type: "string", className: "rt-r-grs", customProperties: ["--grid-row-start"], responsive: !0 }, gridRowEnd: { type: "string", className: "rt-r-gre", customProperties: ["--grid-row-end"], responsive: !0 } }, he = d.forwardRef((n, e) => {
1494
1494
  const { className: t, asChild: s, as: a = "div", ...o } = F(n, du, pn, X);
1495
- return d.createElement(s ? sr : a, { ...o, ref: e, className: v("rt-Box", t) });
1495
+ return d.createElement(s ? sr : a, { ...o, ref: e, className: C("rt-Box", t) });
1496
1496
  });
1497
1497
  he.displayName = "Box";
1498
1498
  const pu = ["1", "2", "3", "4"], mu = ["classic", "solid", "soft", "surface", "outline", "ghost"], Tr = { ...re, size: { type: "enum", className: "rt-r-size", values: pu, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: mu, default: "solid" }, ...Kt, ...Ie, ...Le, loading: { type: "boolean", className: "rt-loading", default: !1 } }, us = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], xo = { gap: { type: "enum | string", className: "rt-r-gap", customProperties: ["--gap"], values: us, responsive: !0 }, gapX: { type: "enum | string", className: "rt-r-cg", customProperties: ["--column-gap"], values: us, responsive: !0 }, gapY: { type: "enum | string", className: "rt-r-rg", customProperties: ["--row-gap"], values: us, responsive: !0 } }, gu = ["div", "span"], fu = ["none", "inline-flex", "flex"], vu = ["row", "column", "row-reverse", "column-reverse"], Cu = ["start", "center", "end", "baseline", "stretch"], yu = ["start", "center", "end", "between"], ku = ["nowrap", "wrap", "wrap-reverse"], Qo = { as: { type: "enum", values: gu, default: "div" }, ...re, display: { type: "enum", className: "rt-r-display", values: fu, responsive: !0 }, direction: { type: "enum", className: "rt-r-fd", values: vu, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Cu, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: yu, parseValue: Eu, responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: ku, responsive: !0 }, ...xo };
@@ -1501,13 +1501,13 @@ function Eu(n) {
1501
1501
  }
1502
1502
  const y = d.forwardRef((n, e) => {
1503
1503
  const { className: t, asChild: s, as: a = "div", ...o } = F(n, Qo, pn, X);
1504
- return d.createElement(s ? sr : a, { ...o, ref: e, className: v("rt-Flex", t) });
1504
+ return d.createElement(s ? sr : a, { ...o, ref: e, className: C("rt-Flex", t) });
1505
1505
  });
1506
1506
  y.displayName = "Flex";
1507
1507
  const Su = ["1", "2", "3"], Iu = { size: { type: "enum", className: "rt-r-size", values: Su, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } }, rr = d.forwardRef((n, e) => {
1508
1508
  const { className: t, children: s, loading: a, ...o } = F(n, Iu, X);
1509
1509
  if (!a) return s;
1510
- const i = d.createElement("span", { ...o, ref: e, className: v("rt-Spinner", t) }, d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }));
1510
+ const i = d.createElement("span", { ...o, ref: e, className: C("rt-Spinner", t) }, d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }));
1511
1511
  return s === void 0 ? i : d.createElement(y, { asChild: !0, position: "relative", align: "center", justify: "center" }, d.createElement("span", null, d.createElement("span", { "aria-hidden": !0, style: { display: "contents", visibility: "hidden" }, inert: void 0 }, s), d.createElement(y, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, d.createElement("span", null, i))));
1512
1512
  });
1513
1513
  rr.displayName = "Spinner";
@@ -1531,26 +1531,26 @@ function wu(n) {
1531
1531
  }
1532
1532
  const ar = d.forwardRef((n, e) => {
1533
1533
  const { size: t = Tr.size.default } = n, { className: s, children: a, asChild: o, color: i, radius: l, disabled: c = n.loading, ...u } = F(n, Tr, X), h = o ? ve : "button";
1534
- return d.createElement(h, { "data-disabled": c || void 0, "data-accent-color": i, "data-radius": l, ...u, ref: e, className: v("rt-reset", "rt-BaseButton", s), disabled: c }, n.loading ? d.createElement(d.Fragment, null, d.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, a), d.createElement(bu, null, a), d.createElement(y, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, d.createElement("span", null, d.createElement(rr, { size: To(t, wu) })))) : a);
1534
+ return d.createElement(h, { "data-disabled": c || void 0, "data-accent-color": i, "data-radius": l, ...u, ref: e, className: C("rt-reset", "rt-BaseButton", s), disabled: c }, n.loading ? d.createElement(d.Fragment, null, d.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, a), d.createElement(bu, null, a), d.createElement(y, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, d.createElement("span", null, d.createElement(rr, { size: To(t, wu) })))) : a);
1535
1535
  });
1536
1536
  ar.displayName = "BaseButton";
1537
- const Do = d.forwardRef(({ className: n, ...e }, t) => d.createElement(ar, { ...e, ref: t, className: v("rt-Button", n) }));
1537
+ const Do = d.forwardRef(({ className: n, ...e }, t) => d.createElement(ar, { ...e, ref: t, className: C("rt-Button", n) }));
1538
1538
  Do.displayName = "Button";
1539
1539
  const Ru = ["1", "2", "3"], Nu = ["soft", "surface", "outline"], Dr = { ...re, size: { type: "enum", className: "rt-r-size", values: Ru, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Nu, default: "soft" }, ...Kt, ...Ie }, Jo = d.createContext({}), or = d.forwardRef((n, e) => {
1540
1540
  const { size: t = Dr.size.default } = n, { asChild: s, children: a, className: o, color: i, ...l } = F(n, Dr, X), c = s ? ve : "div";
1541
- return d.createElement(c, { "data-accent-color": i, ...l, className: v("rt-CalloutRoot", o), ref: e }, d.createElement(Jo.Provider, { value: d.useMemo(() => ({ size: t }), [t]) }, a));
1541
+ return d.createElement(c, { "data-accent-color": i, ...l, className: C("rt-CalloutRoot", o), ref: e }, d.createElement(Jo.Provider, { value: d.useMemo(() => ({ size: t }), [t]) }, a));
1542
1542
  });
1543
1543
  or.displayName = "Callout.Root";
1544
- const ir = d.forwardRef(({ className: n, ...e }, t) => d.createElement("div", { ...e, className: v("rt-CalloutIcon", n), ref: t }));
1544
+ const ir = d.forwardRef(({ className: n, ...e }, t) => d.createElement("div", { ...e, className: C("rt-CalloutIcon", n), ref: t }));
1545
1545
  ir.displayName = "Callout.Icon";
1546
1546
  const lr = d.forwardRef(({ className: n, ...e }, t) => {
1547
1547
  const { size: s } = d.useContext(Jo);
1548
- return d.createElement(P, { as: "p", size: To(s, Bu), ...e, asChild: !1, ref: t, className: v("rt-CalloutText", n) });
1548
+ return d.createElement(P, { as: "p", size: To(s, Bu), ...e, asChild: !1, ref: t, className: C("rt-CalloutText", n) });
1549
1549
  });
1550
1550
  lr.displayName = "Callout.Text";
1551
1551
  const xu = ["1", "2", "3", "4", "5"], Qu = ["surface", "classic", "ghost"], Tu = { ...re, size: { type: "enum", className: "rt-r-size", values: xu, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Qu, default: "surface" } }, cr = d.forwardRef((n, e) => {
1552
1552
  const { asChild: t, className: s, ...a } = F(n, Tu, X), o = t ? ve : "div";
1553
- return d.createElement(o, { ref: e, ...a, className: v("rt-reset", "rt-BaseCard", "rt-Card", s) });
1553
+ return d.createElement(o, { ref: e, ...a, className: C("rt-reset", "rt-BaseCard", "rt-Card", s) });
1554
1554
  });
1555
1555
  cr.displayName = "Card";
1556
1556
  const Du = ["div", "span"], Ju = ["none", "inline-grid", "grid"], Pu = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Uu = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], zu = ["row", "column", "dense", "row-dense", "column-dense"], Mu = ["start", "center", "end", "baseline", "stretch"], Ou = ["start", "center", "end", "between"], Jn = { as: { type: "enum", values: Du, default: "div" }, ...re, display: { type: "enum", className: "rt-r-display", values: Ju, responsive: !0 }, areas: { type: "string", className: "rt-r-gta", customProperties: ["--grid-template-areas"], responsive: !0 }, columns: { type: "enum | string", className: "rt-r-gtc", customProperties: ["--grid-template-columns"], values: Pu, parseValue: Jr, responsive: !0 }, rows: { type: "enum | string", className: "rt-r-gtr", customProperties: ["--grid-template-rows"], values: Uu, parseValue: Jr, responsive: !0 }, flow: { type: "enum", className: "rt-r-gaf", values: zu, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Mu, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Ou, parseValue: Fu, responsive: !0 }, ...xo };
@@ -1562,7 +1562,7 @@ function Fu(n) {
1562
1562
  }
1563
1563
  const Po = d.forwardRef((n, e) => {
1564
1564
  const { className: t, asChild: s, as: a = "div", ...o } = F(n, Jn, pn, X);
1565
- return d.createElement(s ? sr : a, { ...o, ref: e, className: v("rt-Grid", t) });
1565
+ return d.createElement(s ? sr : a, { ...o, ref: e, className: C("rt-Grid", t) });
1566
1566
  });
1567
1567
  Po.displayName = "Grid";
1568
1568
  const Hu = ge.forwardRef((n, e) => ge.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...n, ref: e }, ge.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z" })));
@@ -1575,7 +1575,7 @@ const ju = ge.forwardRef((n, e) => ge.createElement("svg", { width: "9", height:
1575
1575
  ju.displayName = "ThickChevronRightIcon";
1576
1576
  const Wu = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Lu = ["solid", "soft", "outline", "ghost"], Vu = { ...re, size: { type: "enum", className: "rt-r-size", values: Wu, responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Lu, default: "soft" }, ...Gn, ...Kt, ...Ie, ...xt, ...Nt }, qu = d.forwardRef((n, e) => {
1577
1577
  const { asChild: t, className: s, color: a, ...o } = F(n, Vu, X), i = n.variant === "ghost" ? a || void 0 : a, l = t ? ve : "code";
1578
- return d.createElement(l, { "data-accent-color": i, ...o, ref: e, className: v("rt-reset", "rt-Code", s) });
1578
+ return d.createElement(l, { "data-accent-color": i, ...o, ref: e, className: C("rt-reset", "rt-Code", s) });
1579
1579
  });
1580
1580
  qu.displayName = "Code";
1581
1581
  const Ku = ["1", "2", "3", "4"], Gu = ["none", "initial"], Xu = ["left", "center", "right"], Yu = { ...re, size: { type: "enum", className: "rt-r-size", values: Ku, default: "4", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: Gu, parseValue: Zu, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Xu, parseValue: _u, responsive: !0 } };
@@ -1586,8 +1586,8 @@ function _u(n) {
1586
1586
  return n === "left" ? "start" : n === "right" ? "end" : n;
1587
1587
  }
1588
1588
  const $u = d.forwardRef(({ width: n, minWidth: e, maxWidth: t, height: s, minHeight: a, maxHeight: o, ...i }, l) => {
1589
- const { asChild: c, children: u, className: h, ...A } = F(i, Yu, pn, X), { className: p, style: k } = F({ width: n, minWidth: e, maxWidth: t, height: s, minHeight: a, maxHeight: o }, ye, qt), f = c ? ve : "div";
1590
- return d.createElement(f, { ...A, ref: l, className: v("rt-Container", h) }, tr({ asChild: c, children: u }, (m) => d.createElement("div", { className: v("rt-ContainerInner", p), style: k }, m)));
1589
+ const { asChild: c, children: u, className: h, ...A } = F(i, Yu, pn, X), { className: p, style: k } = F({ width: n, minWidth: e, maxWidth: t, height: s, minHeight: a, maxHeight: o }, ye, qt), v = c ? ve : "div";
1590
+ return d.createElement(v, { ...A, ref: l, className: C("rt-Container", h) }, tr({ asChild: c, children: u }, (m) => d.createElement("div", { className: C("rt-ContainerInner", p), style: k }, m)));
1591
1591
  });
1592
1592
  $u.displayName = "Container";
1593
1593
  const eA = ["1", "2", "3"], Yt = { ...re, size: { values: eA, default: "1" }, ...Le, scrollbars: { default: "both" } };
@@ -1597,30 +1597,30 @@ function tA(n) {
1597
1597
  }
1598
1598
  const gt = X.m.values;
1599
1599
  function nA(n) {
1600
- const [e, t] = nt({ className: "rt-r-m", customProperties: ["--margin"], propValues: gt, value: n.m }), [s, a] = nt({ className: "rt-r-mx", customProperties: ["--margin-left", "--margin-right"], propValues: gt, value: n.mx }), [o, i] = nt({ className: "rt-r-my", customProperties: ["--margin-top", "--margin-bottom"], propValues: gt, value: n.my }), [l, c] = nt({ className: "rt-r-mt", customProperties: ["--margin-top"], propValues: gt, value: n.mt }), [u, h] = nt({ className: "rt-r-mr", customProperties: ["--margin-right"], propValues: gt, value: n.mr }), [A, p] = nt({ className: "rt-r-mb", customProperties: ["--margin-bottom"], propValues: gt, value: n.mb }), [k, f] = nt({ className: "rt-r-ml", customProperties: ["--margin-left"], propValues: gt, value: n.ml });
1601
- return [v(e, s, o, l, u, A, k), un(t, a, i, c, h, p, f)];
1600
+ const [e, t] = nt({ className: "rt-r-m", customProperties: ["--margin"], propValues: gt, value: n.m }), [s, a] = nt({ className: "rt-r-mx", customProperties: ["--margin-left", "--margin-right"], propValues: gt, value: n.mx }), [o, i] = nt({ className: "rt-r-my", customProperties: ["--margin-top", "--margin-bottom"], propValues: gt, value: n.my }), [l, c] = nt({ className: "rt-r-mt", customProperties: ["--margin-top"], propValues: gt, value: n.mt }), [u, h] = nt({ className: "rt-r-mr", customProperties: ["--margin-right"], propValues: gt, value: n.mr }), [A, p] = nt({ className: "rt-r-mb", customProperties: ["--margin-bottom"], propValues: gt, value: n.mb }), [k, v] = nt({ className: "rt-r-ml", customProperties: ["--margin-left"], propValues: gt, value: n.ml });
1601
+ return [C(e, s, o, l, u, A, k), un(t, a, i, c, h, p, v)];
1602
1602
  }
1603
1603
  const Qt = d.forwardRef((n, e) => {
1604
- const { rest: t, ...s } = tA(n), [a, o] = nA(s), { asChild: i, children: l, className: c, style: u, type: h, scrollHideDelay: A = h !== "scroll" ? 0 : void 0, dir: p, size: k = Yt.size.default, radius: f = Yt.radius.default, scrollbars: m = Yt.scrollbars.default, ...C } = t;
1605
- return d.createElement(aa, { type: h, scrollHideDelay: A, className: v("rt-ScrollAreaRoot", a, c), style: un(o, u), asChild: i }, tr({ asChild: i, children: l }, (E) => d.createElement(d.Fragment, null, d.createElement(oa, { ...C, ref: e, className: "rt-ScrollAreaViewport" }, E), d.createElement("div", { className: "rt-ScrollAreaViewportFocusRing" }), m !== "vertical" ? d.createElement(Es, { "data-radius": f, orientation: "horizontal", className: v("rt-ScrollAreaScrollbar", dn({ className: "rt-r-size", value: k, propValues: Yt.size.values })) }, d.createElement(Ss, { className: "rt-ScrollAreaThumb" })) : null, m !== "horizontal" ? d.createElement(Es, { "data-radius": f, orientation: "vertical", className: v("rt-ScrollAreaScrollbar", dn({ className: "rt-r-size", value: k, propValues: Yt.size.values })) }, d.createElement(Ss, { className: "rt-ScrollAreaThumb" })) : null, m === "both" ? d.createElement(yl, { className: "rt-ScrollAreaCorner" }) : null)));
1604
+ const { rest: t, ...s } = tA(n), [a, o] = nA(s), { asChild: i, children: l, className: c, style: u, type: h, scrollHideDelay: A = h !== "scroll" ? 0 : void 0, dir: p, size: k = Yt.size.default, radius: v = Yt.radius.default, scrollbars: m = Yt.scrollbars.default, ...f } = t;
1605
+ return d.createElement(aa, { type: h, scrollHideDelay: A, className: C("rt-ScrollAreaRoot", a, c), style: un(o, u), asChild: i }, tr({ asChild: i, children: l }, (E) => d.createElement(d.Fragment, null, d.createElement(oa, { ...f, ref: e, className: "rt-ScrollAreaViewport" }, E), d.createElement("div", { className: "rt-ScrollAreaViewportFocusRing" }), m !== "vertical" ? d.createElement(Es, { "data-radius": v, orientation: "horizontal", className: C("rt-ScrollAreaScrollbar", dn({ className: "rt-r-size", value: k, propValues: Yt.size.values })) }, d.createElement(Ss, { className: "rt-ScrollAreaThumb" })) : null, m !== "horizontal" ? d.createElement(Es, { "data-radius": v, orientation: "vertical", className: C("rt-ScrollAreaScrollbar", dn({ className: "rt-r-size", value: k, propValues: Yt.size.values })) }, d.createElement(Ss, { className: "rt-ScrollAreaThumb" })) : null, m === "both" ? d.createElement(yl, { className: "rt-ScrollAreaCorner" }) : null)));
1606
1606
  });
1607
1607
  Qt.displayName = "ScrollArea";
1608
1608
  const sA = ["start", "center", "end", "baseline", "stretch"], rA = ["horizontal", "vertical"], aA = ["1", "2", "3"], oA = { orientation: { type: "enum", className: "rt-r-orientation", values: rA, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: aA, default: "2", responsive: !0 }, trim: { ...Kn.trim, className: "rt-r-trim" } }, iA = { align: { type: "enum", className: "rt-r-ai", values: sA, responsive: !0 } }, lA = { ...ye, ...we, ...Ie }, Mo = d.forwardRef((n, e) => {
1609
1609
  const { className: t, ...s } = F(n, oA, X);
1610
- return d.createElement(P, { asChild: !0 }, d.createElement("dl", { ...s, ref: e, className: v("rt-DataListRoot", t) }));
1610
+ return d.createElement(P, { asChild: !0 }, d.createElement("dl", { ...s, ref: e, className: C("rt-DataListRoot", t) }));
1611
1611
  });
1612
1612
  Mo.displayName = "DataList.Root";
1613
1613
  const Oo = d.forwardRef((n, e) => {
1614
1614
  const { className: t, ...s } = F(n, iA);
1615
- return d.createElement("div", { ...s, ref: e, className: v("rt-DataListItem", t) });
1615
+ return d.createElement("div", { ...s, ref: e, className: C("rt-DataListItem", t) });
1616
1616
  });
1617
1617
  Oo.displayName = "DataList.Item";
1618
1618
  const Fo = d.forwardRef((n, e) => {
1619
1619
  const { className: t, color: s, ...a } = F(n, lA);
1620
- return d.createElement("dt", { ...a, "data-accent-color": s, ref: e, className: v("rt-DataListLabel", t) });
1620
+ return d.createElement("dt", { ...a, "data-accent-color": s, ref: e, className: C("rt-DataListLabel", t) });
1621
1621
  });
1622
1622
  Fo.displayName = "DataList.Label";
1623
- const Ho = d.forwardRef(({ children: n, className: e, ...t }, s) => d.createElement("dd", { ...t, ref: s, className: v(e, "rt-DataListValue") }, n));
1623
+ const Ho = d.forwardRef(({ children: n, className: e, ...t }, s) => d.createElement("dd", { ...t, ref: s, className: C(e, "rt-DataListValue") }, n));
1624
1624
  Ho.displayName = "DataList.Value";
1625
1625
  const PS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1626
1626
  __proto__: null,
@@ -1634,7 +1634,7 @@ const Wo = d.forwardRef(({ children: n, ...e }, t) => d.createElement(Rl, { ...e
1634
1634
  Wo.displayName = "Dialog.Trigger";
1635
1635
  const Lo = d.forwardRef(({ align: n, ...e }, t) => {
1636
1636
  const { align: s, ...a } = fo, { className: o } = F({ align: n }, { align: s }), { className: i, forceMount: l, container: c, ...u } = F(e, a);
1637
- return d.createElement(El, { container: c, forceMount: l }, d.createElement(dt, { asChild: !0 }, d.createElement(Sl, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, d.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, d.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${o}` }, d.createElement(Il, { ...u, ref: t, className: v("rt-BaseDialogContent", "rt-DialogContent", i) }))))));
1637
+ return d.createElement(El, { container: c, forceMount: l }, d.createElement(dt, { asChild: !0 }, d.createElement(Sl, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, d.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, d.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${o}` }, d.createElement(Il, { ...u, ref: t, className: C("rt-BaseDialogContent", "rt-DialogContent", i) }))))));
1638
1638
  });
1639
1639
  Lo.displayName = "Dialog.Content";
1640
1640
  const Vo = d.forwardRef((n, e) => d.createElement(wl, { asChild: !0 }, d.createElement(Xn, { size: "5", mb: "3", trim: "start", ...n, asChild: !1, ref: e })));
@@ -1653,16 +1653,16 @@ const US = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1653
1653
  Trigger: Wo
1654
1654
  }, Symbol.toStringTag, { value: "Module" })), cA = { ...re, ...xt, ...Nt }, dA = d.forwardRef((n, e) => {
1655
1655
  const { asChild: t, className: s, ...a } = F(n, cA), o = t ? ve : "em";
1656
- return d.createElement(o, { ...a, ref: e, className: v("rt-Em", s) });
1656
+ return d.createElement(o, { ...a, ref: e, className: C("rt-Em", s) });
1657
1657
  });
1658
1658
  dA.displayName = "Em";
1659
1659
  const uA = ["1", "2", "3"], AA = { ...re, size: { type: "enum", className: "rt-r-size", values: uA, default: "2", responsive: !0 }, width: ye.width, minWidth: ye.minWidth, maxWidth: { ...ye.maxWidth, default: "480px" }, ...qt }, Go = (n) => d.createElement(Ql, { closeDelay: 150, openDelay: 200, ...n });
1660
1660
  Go.displayName = "HoverCard.Root";
1661
- const Xo = d.forwardRef(({ children: n, className: e, ...t }, s) => d.createElement(Tl, { ref: s, className: v("rt-HoverCardTrigger", e), ...t, asChild: !0 }, ut(n)));
1661
+ const Xo = d.forwardRef(({ children: n, className: e, ...t }, s) => d.createElement(Tl, { ref: s, className: C("rt-HoverCardTrigger", e), ...t, asChild: !0 }, ut(n)));
1662
1662
  Xo.displayName = "HoverCard.Trigger";
1663
1663
  const Yo = d.forwardRef((n, e) => {
1664
1664
  const { className: t, forceMount: s, container: a, ...o } = F(n, AA);
1665
- return d.createElement(Nl, { container: a, forceMount: s }, d.createElement(dt, { asChild: !0 }, d.createElement(xl, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: e, className: v("rt-PopperContent", "rt-HoverCardContent", t) })));
1665
+ return d.createElement(Nl, { container: a, forceMount: s }, d.createElement(dt, { asChild: !0 }, d.createElement(xl, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: e, className: C("rt-PopperContent", "rt-HoverCardContent", t) })));
1666
1666
  });
1667
1667
  Yo.displayName = "HoverCard.Content";
1668
1668
  const zS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -1670,7 +1670,7 @@ const zS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1670
1670
  Content: Yo,
1671
1671
  Root: Go,
1672
1672
  Trigger: Xo
1673
- }, Symbol.toStringTag, { value: "Module" })), dr = d.forwardRef(({ className: n, ...e }, t) => d.createElement(ar, { ...e, ref: t, className: v("rt-IconButton", n) }));
1673
+ }, Symbol.toStringTag, { value: "Module" })), dr = d.forwardRef(({ className: n, ...e }, t) => d.createElement(ar, { ...e, ref: t, className: C("rt-IconButton", n) }));
1674
1674
  dr.displayName = "IconButton";
1675
1675
  const hA = ["all", "x", "y", "top", "bottom", "left", "right"], pA = ["border-box", "padding-box"], ft = ["current", "0"], mA = { ...re, side: { type: "enum", className: "rt-r-side", values: hA, default: "all", responsive: !0 }, clip: { type: "enum", className: "rt-r-clip", values: pA, default: "border-box", responsive: !0 }, p: { type: "enum", className: "rt-r-p", values: ft, parseValue: vt, responsive: !0 }, px: { type: "enum", className: "rt-r-px", values: ft, parseValue: vt, responsive: !0 }, py: { type: "enum", className: "rt-r-py", values: ft, parseValue: vt, responsive: !0 }, pt: { type: "enum", className: "rt-r-pt", values: ft, parseValue: vt, responsive: !0 }, pr: { type: "enum", className: "rt-r-pr", values: ft, parseValue: vt, responsive: !0 }, pb: { type: "enum", className: "rt-r-pb", values: ft, parseValue: vt, responsive: !0 }, pl: { type: "enum", className: "rt-r-pl", values: ft, parseValue: vt, responsive: !0 } };
1676
1676
  function vt(n) {
@@ -1678,17 +1678,17 @@ function vt(n) {
1678
1678
  }
1679
1679
  const gA = d.forwardRef((n, e) => {
1680
1680
  const { asChild: t, className: s, ...a } = F(n, mA, X), o = t ? ve : "div";
1681
- return d.createElement(o, { ...a, ref: e, className: v("rt-Inset", s) });
1681
+ return d.createElement(o, { ...a, ref: e, className: C("rt-Inset", s) });
1682
1682
  });
1683
1683
  gA.displayName = "Inset";
1684
1684
  const fA = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], vA = { ...re, size: { type: "enum", className: "rt-r-size", values: fA, responsive: !0 } }, CA = d.forwardRef((n, e) => {
1685
1685
  const { asChild: t, className: s, ...a } = F(n, vA, X), o = t ? ve : "kbd";
1686
- return d.createElement(o, { ...a, ref: e, className: v("rt-reset", "rt-Kbd", s) });
1686
+ return d.createElement(o, { ...a, ref: e, className: C("rt-reset", "rt-Kbd", s) });
1687
1687
  });
1688
1688
  CA.displayName = "Kbd";
1689
1689
  const yA = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], kA = ["auto", "always", "hover", "none"], EA = { ...re, size: { type: "enum", className: "rt-r-size", values: yA, responsive: !0 }, ...Gn, ...Kn, ...xt, ...Nt, underline: { type: "enum", className: "rt-underline", values: kA, default: "auto" }, ...Kt, ...Ie }, SA = d.forwardRef((n, e) => {
1690
1690
  const { children: t, className: s, color: a, asChild: o, ...i } = F(n, EA);
1691
- return d.createElement(P, { ...i, "data-accent-color": a, ref: e, asChild: !0, className: v("rt-reset", "rt-Link", s) }, o ? t : d.createElement("a", null, t));
1691
+ return d.createElement(P, { ...i, "data-accent-color": a, ref: e, asChild: !0, className: C("rt-reset", "rt-Link", s) }, o ? t : d.createElement("a", null, t));
1692
1692
  });
1693
1693
  SA.displayName = "Link";
1694
1694
  const IA = ["1", "2", "3", "4"], bA = { ...re, size: { type: "enum", className: "rt-r-size", values: IA, default: "2", responsive: !0 }, width: ye.width, minWidth: ye.minWidth, maxWidth: { ...ye.maxWidth, default: "480px" }, ...qt }, Yn = (n) => d.createElement(la, { ...n });
@@ -1697,7 +1697,7 @@ const Zn = d.forwardRef(({ children: n, ...e }, t) => d.createElement(ca, { ...e
1697
1697
  Zn.displayName = "Popover.Trigger";
1698
1698
  const _n = d.forwardRef((n, e) => {
1699
1699
  const { className: t, forceMount: s, container: a, ...o } = F(n, bA);
1700
- return d.createElement(Pl, { container: a, forceMount: s }, d.createElement(dt, { asChild: !0 }, d.createElement(ia, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: e, className: v("rt-PopperContent", "rt-PopoverContent", t) })));
1700
+ return d.createElement(Pl, { container: a, forceMount: s }, d.createElement(dt, { asChild: !0 }, d.createElement(ia, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: e, className: C("rt-PopperContent", "rt-PopoverContent", t) })));
1701
1701
  });
1702
1702
  _n.displayName = "Popover.Content";
1703
1703
  const Zo = d.forwardRef(({ children: n, ...e }, t) => d.createElement(Jl, { ...e, ref: t, asChild: !0 }, ut(n)));
@@ -1713,34 +1713,34 @@ const MS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1713
1713
  Trigger: Zn
1714
1714
  }, Symbol.toStringTag, { value: "Module" })), BA = ["1", "2", "3"], wA = ["classic", "surface", "soft"], RA = { size: { type: "enum", className: "rt-r-size", values: BA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: wA, default: "surface" }, ...we, ...Ie, ...Le, duration: { type: "string" } }, NA = d.forwardRef((n, e) => {
1715
1715
  const { className: t, style: s, color: a, radius: o, duration: i, ...l } = F(n, RA, X);
1716
- return d.createElement(Ul, { "data-accent-color": a, "data-radius": o, ref: e, className: v("rt-ProgressRoot", t), style: un({ "--progress-duration": "value" in l ? void 0 : i, "--progress-value": "value" in l ? l.value : void 0, "--progress-max": "max" in l ? l.max : void 0 }, s), ...l, asChild: !1 }, d.createElement(zl, { className: "rt-ProgressIndicator" }));
1716
+ return d.createElement(Ul, { "data-accent-color": a, "data-radius": o, ref: e, className: C("rt-ProgressRoot", t), style: un({ "--progress-duration": "value" in l ? void 0 : i, "--progress-value": "value" in l ? l.value : void 0, "--progress-max": "max" in l ? l.max : void 0 }, s), ...l, asChild: !1 }, d.createElement(zl, { className: "rt-ProgressIndicator" }));
1717
1717
  });
1718
1718
  NA.displayName = "Progress";
1719
1719
  const xA = { ...re, ...xt, ...Nt }, QA = d.forwardRef((n, e) => {
1720
1720
  const { asChild: t, className: s, ...a } = F(n, xA), o = t ? ve : "q";
1721
- return d.createElement(o, { ...a, ref: e, className: v("rt-Quote", s) });
1721
+ return d.createElement(o, { ...a, ref: e, className: C("rt-Quote", s) });
1722
1722
  });
1723
1723
  QA.displayName = "Quote";
1724
1724
  const TA = ["1", "2", "3"], DA = ["surface", "classic"], JA = { ...re, size: { type: "enum", className: "rt-r-size", values: TA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: DA, default: "surface" }, ...we, ...Ie, columns: { ...Jn.columns, default: "repeat(auto-fit, minmax(160px, 1fr))" }, gap: { ...Jn.gap, default: "4" } }, $n = d.forwardRef((n, e) => {
1725
1725
  const { className: t, color: s, ...a } = F(n, JA, X);
1726
- return d.createElement(Po, { asChild: !0 }, d.createElement(da, { "data-accent-color": s, ...a, ref: e, className: v("rt-RadioCardsRoot", t) }));
1726
+ return d.createElement(Po, { asChild: !0 }, d.createElement(da, { "data-accent-color": s, ...a, ref: e, className: C("rt-RadioCardsRoot", t) }));
1727
1727
  });
1728
1728
  $n.displayName = "RadioCards.Root";
1729
- const mn = d.forwardRef(({ className: n, ...e }, t) => d.createElement(ua, { ...e, asChild: !1, ref: t, className: v("rt-reset", "rt-BaseCard", "rt-RadioCardsItem", n) }));
1729
+ const mn = d.forwardRef(({ className: n, ...e }, t) => d.createElement(ua, { ...e, asChild: !1, ref: t, className: C("rt-reset", "rt-BaseCard", "rt-RadioCardsItem", n) }));
1730
1730
  mn.displayName = "RadioCards.Item";
1731
1731
  const PA = ["1", "2", "3"], UA = ["classic", "surface", "soft"], an = { ...re, size: { type: "enum", className: "rt-r-size", values: PA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: UA, default: "surface" }, ...we, ...Ie }, $o = "RadioGroup", [zA] = Ws($o, [Aa]), ei = Aa(), [MA, ti] = zA($o), ni = d.forwardRef(({ color: n = an.color.default, highContrast: e = an.highContrast.default, size: t = an.size.default, variant: s = an.variant.default, ...a }, o) => {
1732
1732
  const { __scopeRadioGroup: i, className: l, ...c } = F(a, X), u = ei(i);
1733
- return d.createElement(MA, { scope: i, color: n, highContrast: e, size: t, variant: s }, d.createElement(da, { ...u, ...c, ref: o, className: v("rt-RadioGroupRoot", l) }));
1733
+ return d.createElement(MA, { scope: i, color: n, highContrast: e, size: t, variant: s }, d.createElement(da, { ...u, ...c, ref: o, className: C("rt-RadioGroupRoot", l) }));
1734
1734
  });
1735
1735
  ni.displayName = "RadioGroup.Root";
1736
1736
  const si = d.forwardRef((n, e) => {
1737
1737
  const { __scopeRadioGroup: t, children: s, className: a, style: o, ...i } = n, { size: l } = ti("RadioGroupItem", t);
1738
- return s ? d.createElement(P, { as: "label", size: l, className: v("rt-RadioGroupItem", a), style: o }, d.createElement(Us, { __scopeRadioGroup: t, ...i, ref: e }), s && d.createElement("span", { className: "rt-RadioGroupItemInner" }, s)) : d.createElement(Us, { __scopeRadioGroup: t, ...i, ref: e, className: a, style: o });
1738
+ return s ? d.createElement(P, { as: "label", size: l, className: C("rt-RadioGroupItem", a), style: o }, d.createElement(Us, { __scopeRadioGroup: t, ...i, ref: e }), s && d.createElement("span", { className: "rt-RadioGroupItemInner" }, s)) : d.createElement(Us, { __scopeRadioGroup: t, ...i, ref: e, className: a, style: o });
1739
1739
  });
1740
1740
  si.displayName = "RadioGroup.Item";
1741
1741
  const Us = d.forwardRef(({ __scopeRadioGroup: n, ...e }, t) => {
1742
1742
  const s = ti("RadioGroupItemRadio", n), a = ei(n), { color: o, className: i } = F({ ...e, ...s }, an, X);
1743
- return d.createElement(ua, { ...a, "data-accent-color": o, ...e, asChild: !1, ref: t, className: v("rt-reset", "rt-BaseRadioRoot", i) });
1743
+ return d.createElement(ua, { ...a, "data-accent-color": o, ...e, asChild: !1, ref: t, className: C("rt-reset", "rt-BaseRadioRoot", i) });
1744
1744
  });
1745
1745
  Us.displayName = "RadioGroup.ItemRadio";
1746
1746
  const OS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -1749,17 +1749,17 @@ const OS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1749
1749
  Root: ni
1750
1750
  }, Symbol.toStringTag, { value: "Module" })), OA = ["1", "2", "3"], FA = ["classic", "surface", "soft"], HA = { size: { type: "enum", className: "rt-r-size", values: OA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: FA, default: "surface" }, ...we, ...Ie }, jA = d.forwardRef((n, e) => {
1751
1751
  const t = d.useRef(null), { className: s, color: a, onChange: o, onValueChange: i, ...l } = F(n, HA, X);
1752
- return d.createElement("input", { type: "radio", "data-accent-color": a, ...l, onChange: ie(o, (c) => i == null ? void 0 : i(c.currentTarget.value)), ref: ha(t, e), className: v("rt-reset", "rt-BaseRadioRoot", "rt-RadioRoot", s) });
1752
+ return d.createElement("input", { type: "radio", "data-accent-color": a, ...l, onChange: ie(o, (c) => i == null ? void 0 : i(c.currentTarget.value)), ref: ha(t, e), className: C("rt-reset", "rt-BaseRadioRoot", "rt-RadioRoot", s) });
1753
1753
  });
1754
1754
  jA.displayName = "Radio";
1755
1755
  const WA = ["1", "2", "3"], LA = ["surface", "classic"], VA = { disabled: { type: "boolean", className: "disabled", default: !1 }, size: { type: "enum", className: "rt-r-size", values: WA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: LA, default: "surface" }, ...Le }, ri = d.forwardRef((n, e) => {
1756
1756
  const { className: t, children: s, radius: a, value: o, defaultValue: i, onValueChange: l, ...c } = F(n, VA, X), [u, h] = xn({ prop: o, onChange: l, defaultProp: i });
1757
- return d.createElement(Ml, { "data-disabled": n.disabled || void 0, "data-radius": a, ref: e, className: v("rt-SegmentedControlRoot", t), onValueChange: (A) => {
1757
+ return d.createElement(Ml, { "data-disabled": n.disabled || void 0, "data-radius": a, ref: e, className: C("rt-SegmentedControlRoot", t), onValueChange: (A) => {
1758
1758
  A && h(A);
1759
1759
  }, ...c, type: "single", value: u, asChild: !1, disabled: !!n.disabled }, s, d.createElement("div", { className: "rt-SegmentedControlIndicator" }));
1760
1760
  });
1761
1761
  ri.displayName = "SegmentedControl.Root";
1762
- const ai = d.forwardRef(({ children: n, className: e, ...t }, s) => d.createElement(Ol, { ref: s, className: v("rt-reset", "rt-SegmentedControlItem", e), ...t, disabled: !1, asChild: !1 }, d.createElement("span", { className: "rt-SegmentedControlItemSeparator" }), d.createElement("span", { className: "rt-SegmentedControlItemLabel" }, d.createElement("span", { className: "rt-SegmentedControlItemLabelActive" }, n), d.createElement("span", { className: "rt-SegmentedControlItemLabelInactive", "aria-hidden": !0 }, n))));
1762
+ const ai = d.forwardRef(({ children: n, className: e, ...t }, s) => d.createElement(Ol, { ref: s, className: C("rt-reset", "rt-SegmentedControlItem", e), ...t, disabled: !1, asChild: !1 }, d.createElement("span", { className: "rt-SegmentedControlItemSeparator" }), d.createElement("span", { className: "rt-SegmentedControlItemLabel" }, d.createElement("span", { className: "rt-SegmentedControlItemLabelActive" }, n), d.createElement("span", { className: "rt-SegmentedControlItemLabelInactive", "aria-hidden": !0 }, n))));
1763
1763
  ai.displayName = "SegmentedControl.Item";
1764
1764
  const qA = ["1", "2", "3", "4"], KA = ["none", "initial"], GA = { ...re, size: { type: "enum", className: "rt-r-size", values: qA, default: "3", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: KA, parseValue: XA, responsive: !0 } };
1765
1765
  function XA(n) {
@@ -1767,7 +1767,7 @@ function XA(n) {
1767
1767
  }
1768
1768
  const YA = d.forwardRef((n, e) => {
1769
1769
  const { asChild: t, className: s, ...a } = F(n, GA, pn, X), o = t ? ve : "section";
1770
- return d.createElement(o, { ...a, ref: e, className: v("rt-Section", s) });
1770
+ return d.createElement(o, { ...a, ref: e, className: C("rt-Section", s) });
1771
1771
  });
1772
1772
  YA.displayName = "Section";
1773
1773
  const ZA = ["1", "2", "3"], ur = { size: { type: "enum", className: "rt-r-size", values: ZA, default: "2", responsive: !0 } }, _A = ["classic", "surface", "soft", "ghost"], $A = { variant: { type: "enum", className: "rt-variant", values: _A, default: "surface" }, ...we, ...Le, placeholder: { type: "string" } }, eh = ["solid", "soft"], th = { variant: { type: "enum", className: "rt-variant", values: eh, default: "solid" }, ...we, ...Ie }, Ar = d.createContext({}), hr = (n) => {
@@ -1777,45 +1777,45 @@ const ZA = ["1", "2", "3"], ur = { size: { type: "enum", className: "rt-r-size",
1777
1777
  hr.displayName = "Select.Root";
1778
1778
  const pr = d.forwardRef((n, e) => {
1779
1779
  const t = d.useContext(Ar), { children: s, className: a, color: o, radius: i, placeholder: l, ...c } = F({ size: t == null ? void 0 : t.size, ...n }, { size: ur.size }, $A, X);
1780
- return d.createElement(ud, { asChild: !0 }, d.createElement("button", { "data-accent-color": o, "data-radius": i, ...c, ref: e, className: v("rt-reset", "rt-SelectTrigger", a) }, d.createElement("span", { className: "rt-SelectTriggerInner" }, d.createElement(Ad, { placeholder: l }, s)), d.createElement(hd, { asChild: !0 }, d.createElement(zo, { className: "rt-SelectIcon" }))));
1780
+ return d.createElement(ud, { asChild: !0 }, d.createElement("button", { "data-accent-color": o, "data-radius": i, ...c, ref: e, className: C("rt-reset", "rt-SelectTrigger", a) }, d.createElement("span", { className: "rt-SelectTriggerInner" }, d.createElement(Ad, { placeholder: l }, s)), d.createElement(hd, { asChild: !0 }, d.createElement(zo, { className: "rt-SelectIcon" }))));
1781
1781
  });
1782
1782
  pr.displayName = "Select.Trigger";
1783
1783
  const mr = d.forwardRef((n, e) => {
1784
1784
  const t = d.useContext(Ar), { className: s, children: a, color: o, container: i, ...l } = F({ size: t == null ? void 0 : t.size, ...n }, { size: ur.size }, th), c = eu(), u = o || c.accentColor;
1785
- return d.createElement(pd, { container: i }, d.createElement(dt, { asChild: !0 }, d.createElement(md, { "data-accent-color": u, sideOffset: 4, ...l, asChild: !1, ref: e, className: v({ "rt-PopperContent": l.position === "popper" }, "rt-SelectContent", s) }, d.createElement(aa, { type: "auto", className: "rt-ScrollAreaRoot" }, d.createElement(gd, { asChild: !0, className: "rt-SelectViewport" }, d.createElement(oa, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, a)), d.createElement(Es, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, d.createElement(Ss, { className: "rt-ScrollAreaThumb" }))))));
1785
+ return d.createElement(pd, { container: i }, d.createElement(dt, { asChild: !0 }, d.createElement(md, { "data-accent-color": u, sideOffset: 4, ...l, asChild: !1, ref: e, className: C({ "rt-PopperContent": l.position === "popper" }, "rt-SelectContent", s) }, d.createElement(aa, { type: "auto", className: "rt-ScrollAreaRoot" }, d.createElement(gd, { asChild: !0, className: "rt-SelectViewport" }, d.createElement(oa, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, a)), d.createElement(Es, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, d.createElement(Ss, { className: "rt-ScrollAreaThumb" }))))));
1786
1786
  });
1787
1787
  mr.displayName = "Select.Content";
1788
1788
  const oi = d.forwardRef((n, e) => {
1789
1789
  const { className: t, children: s, ...a } = n;
1790
- return d.createElement(Cd, { ...a, asChild: !1, ref: e, className: v("rt-SelectItem", t) }, d.createElement(kd, { className: "rt-SelectItemIndicator" }, d.createElement(Uo, { className: "rt-SelectItemIndicatorIcon" })), d.createElement(yd, null, s));
1790
+ return d.createElement(Cd, { ...a, asChild: !1, ref: e, className: C("rt-SelectItem", t) }, d.createElement(kd, { className: "rt-SelectItemIndicator" }, d.createElement(Uo, { className: "rt-SelectItemIndicatorIcon" })), d.createElement(yd, null, s));
1791
1791
  });
1792
1792
  oi.displayName = "Select.Item";
1793
- const gr = d.forwardRef(({ className: n, ...e }, t) => d.createElement(fd, { ...e, asChild: !1, ref: t, className: v("rt-SelectGroup", n) }));
1793
+ const gr = d.forwardRef(({ className: n, ...e }, t) => d.createElement(fd, { ...e, asChild: !1, ref: t, className: C("rt-SelectGroup", n) }));
1794
1794
  gr.displayName = "Select.Group";
1795
- const nh = d.forwardRef(({ className: n, ...e }, t) => d.createElement(vd, { ...e, asChild: !1, ref: t, className: v("rt-SelectLabel", n) }));
1795
+ const nh = d.forwardRef(({ className: n, ...e }, t) => d.createElement(vd, { ...e, asChild: !1, ref: t, className: C("rt-SelectLabel", n) }));
1796
1796
  nh.displayName = "Select.Label";
1797
- const sh = d.forwardRef(({ className: n, ...e }, t) => d.createElement(Ed, { ...e, asChild: !1, ref: t, className: v("rt-SelectSeparator", n) }));
1797
+ const sh = d.forwardRef(({ className: n, ...e }, t) => d.createElement(Ed, { ...e, asChild: !1, ref: t, className: C("rt-SelectSeparator", n) }));
1798
1798
  sh.displayName = "Select.Separator";
1799
1799
  const rh = ["horizontal", "vertical"], ah = ["1", "2", "3", "4"], oh = { orientation: { type: "enum", className: "rt-r-orientation", values: rh, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: ah, default: "1", responsive: !0 }, color: { ...we.color, default: "gray" }, decorative: { type: "boolean", default: !0 } }, Ge = d.forwardRef((n, e) => {
1800
1800
  const { className: t, color: s, decorative: a, ...o } = F(n, oh, X);
1801
- return d.createElement("span", { "data-accent-color": s, role: a ? void 0 : "separator", ...o, ref: e, className: v("rt-Separator", t) });
1801
+ return d.createElement("span", { "data-accent-color": s, role: a ? void 0 : "separator", ...o, ref: e, className: C("rt-Separator", t) });
1802
1802
  });
1803
1803
  Ge.displayName = "Separator";
1804
1804
  const ih = parseFloat(d.version) >= 19 || "", lh = { loading: { type: "boolean", default: !0 }, ...ye, ...qt }, ch = d.forwardRef((n, e) => {
1805
1805
  const { children: t, className: s, loading: a, ...o } = F(n, lh, X);
1806
1806
  if (!a) return t;
1807
1807
  const i = d.isValidElement(t) ? ve : "span";
1808
- return d.createElement(i, { ref: e, "aria-hidden": !0, className: v("rt-Skeleton", s), "data-inline-skeleton": d.isValidElement(t) ? void 0 : !0, tabIndex: -1, inert: ih, ...o }, t);
1808
+ return d.createElement(i, { ref: e, "aria-hidden": !0, className: C("rt-Skeleton", s), "data-inline-skeleton": d.isValidElement(t) ? void 0 : !0, tabIndex: -1, inert: ih, ...o }, t);
1809
1809
  });
1810
1810
  ch.displayName = "Skeleton";
1811
1811
  const dh = { ...re, ...xt, ...Nt }, uh = d.forwardRef((n, e) => {
1812
1812
  const { asChild: t, className: s, ...a } = F(n, dh), o = t ? ve : "strong";
1813
- return d.createElement(o, { ...a, ref: e, className: v("rt-Strong", s) });
1813
+ return d.createElement(o, { ...a, ref: e, className: C("rt-Strong", s) });
1814
1814
  });
1815
1815
  uh.displayName = "Strong";
1816
1816
  const Ah = ["1", "2", "3"], hh = ["classic", "surface", "soft"], ph = { size: { type: "enum", className: "rt-r-size", values: Ah, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: hh, default: "surface" }, ...we, ...Ie, ...Le }, it = d.forwardRef((n, e) => {
1817
1817
  const { className: t, color: s, radius: a, ...o } = F(n, ph, X);
1818
- return d.createElement(Fl, { "data-accent-color": s, "data-radius": a, ...o, asChild: !1, ref: e, className: v("rt-reset", "rt-SwitchRoot", t) }, d.createElement(Hl, { className: v("rt-SwitchThumb", { "rt-high-contrast": n.highContrast }) }));
1818
+ return d.createElement(Fl, { "data-accent-color": s, "data-radius": a, ...o, asChild: !1, ref: e, className: C("rt-reset", "rt-SwitchRoot", t) }, d.createElement(Hl, { className: C("rt-SwitchThumb", { "rt-high-contrast": n.highContrast }) }));
1819
1819
  });
1820
1820
  it.displayName = "Switch";
1821
1821
  const mh = ["1", "2"], gh = ["nowrap", "wrap", "wrap-reverse"], fh = ["start", "center", "end"], vh = { size: { type: "enum", className: "rt-r-size", values: mh, default: "2", responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: gh, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: fh, responsive: !0 }, ...we, ...Ie }, Ch = ["1", "2", "3"], yh = ["surface", "ghost"], kh = ["auto", "fixed"], As = { size: { type: "enum", className: "rt-r-size", values: Ch, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: yh, default: "ghost" }, layout: { type: "enum", className: "rt-r-tl", values: kh, responsive: !0 } }, Eh = ["start", "center", "end", "baseline"], Sh = { align: { type: "enum", className: "rt-r-va", values: Eh, parseValue: Ih, responsive: !0 } };
@@ -1828,31 +1828,31 @@ function Bh(n) {
1828
1828
  }
1829
1829
  const vr = d.forwardRef((n, e) => {
1830
1830
  const { layout: t, ...s } = As, { className: a, children: o, layout: i, ...l } = F(n, s, X), c = dn({ value: i, className: As.layout.className, propValues: As.layout.values });
1831
- return d.createElement("div", { ref: e, className: v("rt-TableRoot", a), ...l }, d.createElement(Qt, null, d.createElement("table", { className: v("rt-TableRootTable", c) }, o)));
1831
+ return d.createElement("div", { ref: e, className: C("rt-TableRoot", a), ...l }, d.createElement(Qt, null, d.createElement("table", { className: C("rt-TableRootTable", c) }, o)));
1832
1832
  });
1833
1833
  vr.displayName = "Table.Root";
1834
- const Cr = d.forwardRef(({ className: n, ...e }, t) => d.createElement("thead", { ...e, ref: t, className: v("rt-TableHeader", n) }));
1834
+ const Cr = d.forwardRef(({ className: n, ...e }, t) => d.createElement("thead", { ...e, ref: t, className: C("rt-TableHeader", n) }));
1835
1835
  Cr.displayName = "Table.Header";
1836
- const yr = d.forwardRef(({ className: n, ...e }, t) => d.createElement("tbody", { ...e, ref: t, className: v("rt-TableBody", n) }));
1836
+ const yr = d.forwardRef(({ className: n, ...e }, t) => d.createElement("tbody", { ...e, ref: t, className: C("rt-TableBody", n) }));
1837
1837
  yr.displayName = "Table.Body";
1838
1838
  const es = d.forwardRef((n, e) => {
1839
1839
  const { className: t, ...s } = F(n, Sh);
1840
- return d.createElement("tr", { ...s, ref: e, className: v("rt-TableRow", t) });
1840
+ return d.createElement("tr", { ...s, ref: e, className: C("rt-TableRow", t) });
1841
1841
  });
1842
1842
  es.displayName = "Table.Row";
1843
1843
  const Ht = d.forwardRef((n, e) => {
1844
1844
  const { className: t, ...s } = F(n, fr);
1845
- return d.createElement("td", { className: v("rt-TableCell", t), ref: e, ...s });
1845
+ return d.createElement("td", { className: C("rt-TableCell", t), ref: e, ...s });
1846
1846
  });
1847
1847
  Ht.displayName = "Table.Cell";
1848
1848
  const Pn = d.forwardRef((n, e) => {
1849
1849
  const { className: t, ...s } = F(n, fr);
1850
- return d.createElement("th", { className: v("rt-TableCell", "rt-TableColumnHeaderCell", t), scope: "col", ref: e, ...s });
1850
+ return d.createElement("th", { className: C("rt-TableCell", "rt-TableColumnHeaderCell", t), scope: "col", ref: e, ...s });
1851
1851
  });
1852
1852
  Pn.displayName = "Table.ColumnHeaderCell";
1853
1853
  const ii = d.forwardRef((n, e) => {
1854
1854
  const { className: t, ...s } = F(n, fr);
1855
- return d.createElement("th", { className: v("rt-TableCell", "rt-TableRowHeaderCell", t), scope: "row", ref: e, ...s });
1855
+ return d.createElement("th", { className: C("rt-TableCell", "rt-TableRowHeaderCell", t), scope: "row", ref: e, ...s });
1856
1856
  });
1857
1857
  ii.displayName = "Table.RowHeaderCell";
1858
1858
  const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -1866,22 +1866,22 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1866
1866
  RowHeaderCell: ii
1867
1867
  }, Symbol.toStringTag, { value: "Module" })), li = d.forwardRef((n, e) => {
1868
1868
  const { className: t, ...s } = F(n, X);
1869
- return d.createElement(Ll, { ...s, ref: e, className: v("rt-TabsRoot", t) });
1869
+ return d.createElement(Ll, { ...s, ref: e, className: C("rt-TabsRoot", t) });
1870
1870
  });
1871
1871
  li.displayName = "Tabs.Root";
1872
1872
  const ci = d.forwardRef((n, e) => {
1873
1873
  const { className: t, color: s, ...a } = F(n, vh, X);
1874
- return d.createElement(Wl, { "data-accent-color": s, ...a, asChild: !1, ref: e, className: v("rt-BaseTabList", "rt-TabsList", t) });
1874
+ return d.createElement(Wl, { "data-accent-color": s, ...a, asChild: !1, ref: e, className: C("rt-BaseTabList", "rt-TabsList", t) });
1875
1875
  });
1876
1876
  ci.displayName = "Tabs.List";
1877
1877
  const di = d.forwardRef((n, e) => {
1878
1878
  const { className: t, children: s, ...a } = n;
1879
- return d.createElement(Vl, { ...a, asChild: !1, ref: e, className: v("rt-reset", "rt-BaseTabListTrigger", "rt-TabsTrigger", t) }, d.createElement("span", { className: "rt-BaseTabListTriggerInner rt-TabsTriggerInner" }, s), d.createElement("span", { className: "rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden" }, s));
1879
+ return d.createElement(Vl, { ...a, asChild: !1, ref: e, className: C("rt-reset", "rt-BaseTabListTrigger", "rt-TabsTrigger", t) }, d.createElement("span", { className: "rt-BaseTabListTriggerInner rt-TabsTriggerInner" }, s), d.createElement("span", { className: "rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden" }, s));
1880
1880
  });
1881
1881
  di.displayName = "Tabs.Trigger";
1882
1882
  const ui = d.forwardRef((n, e) => {
1883
1883
  const { className: t, ...s } = F(n, X);
1884
- return d.createElement(jl, { ...s, ref: e, className: v("rt-TabsContent", t) });
1884
+ return d.createElement(jl, { ...s, ref: e, className: C("rt-TabsContent", t) });
1885
1885
  });
1886
1886
  ui.displayName = "Tabs.Content";
1887
1887
  const HS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -1892,12 +1892,12 @@ const HS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1892
1892
  Trigger: di
1893
1893
  }, Symbol.toStringTag, { value: "Module" })), wh = ["1", "2", "3"], Rh = ["classic", "surface", "soft"], Nh = ["none", "vertical", "horizontal", "both"], xh = { size: { type: "enum", className: "rt-r-size", values: wh, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Rh, default: "surface" }, resize: { type: "enum", className: "rt-r-resize", values: Nh, responsive: !0 }, ...we, ...Le }, Ai = d.forwardRef((n, e) => {
1894
1894
  const { className: t, color: s, radius: a, style: o, ...i } = F(n, xh, X);
1895
- return d.createElement("div", { "data-accent-color": s, "data-radius": a, className: v("rt-TextAreaRoot", t), style: o }, d.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: e, ...i }));
1895
+ return d.createElement("div", { "data-accent-color": s, "data-radius": a, className: C("rt-TextAreaRoot", t), style: o }, d.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: e, ...i }));
1896
1896
  });
1897
1897
  Ai.displayName = "TextArea";
1898
1898
  const Qh = ["1", "2", "3"], Th = ["classic", "surface", "soft"], Dh = { size: { type: "enum", className: "rt-r-size", values: Qh, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Th, default: "surface" }, ...we, ...Le }, Jh = ["left", "right"], Ph = { side: { type: "enum", values: Jh }, ...we, gap: Qo.gap, px: ln.px, pl: ln.pl, pr: ln.pr }, hi = d.forwardRef((n, e) => {
1899
1899
  const t = d.useRef(null), { children: s, className: a, color: o, radius: i, style: l, ...c } = F(n, Dh, X);
1900
- return d.createElement("div", { "data-accent-color": o, "data-radius": i, style: l, className: v("rt-TextFieldRoot", a), onPointerDown: (u) => {
1900
+ return d.createElement("div", { "data-accent-color": o, "data-radius": i, style: l, className: C("rt-TextFieldRoot", a), onPointerDown: (u) => {
1901
1901
  const h = u.target;
1902
1902
  if (h.closest("input, button, a")) return;
1903
1903
  const A = t.current;
@@ -1918,12 +1918,12 @@ const Qh = ["1", "2", "3"], Th = ["classic", "surface", "soft"], Dh = { size: {
1918
1918
  hi.displayName = "TextField.Root";
1919
1919
  const pi = d.forwardRef((n, e) => {
1920
1920
  const { className: t, color: s, side: a, ...o } = F(n, Ph);
1921
- return d.createElement("div", { "data-accent-color": s, "data-side": a, ...o, ref: e, className: v("rt-TextFieldSlot", t) });
1921
+ return d.createElement("div", { "data-accent-color": s, "data-side": a, ...o, ref: e, className: C("rt-TextFieldSlot", t) });
1922
1922
  });
1923
1923
  pi.displayName = "TextField.Slot";
1924
1924
  const Uh = { content: { type: "ReactNode", required: !0 }, width: ye.width, minWidth: ye.minWidth, maxWidth: { ...ye.maxWidth, default: "360px" } }, Gt = d.forwardRef((n, e) => {
1925
1925
  const { children: t, className: s, open: a, defaultOpen: o, onOpenChange: i, delayDuration: l, disableHoverableContent: c, content: u, container: h, forceMount: A, ...p } = F(n, Uh), k = { open: a, defaultOpen: o, onOpenChange: i, delayDuration: l, disableHoverableContent: c };
1926
- return d.createElement(Mn, { ...k }, d.createElement(On, { asChild: !0 }, t), d.createElement(pa, { container: h, forceMount: A }, d.createElement(dt, { asChild: !0 }, d.createElement(Fn, { sideOffset: 4, collisionPadding: 10, ...p, asChild: !1, ref: e, className: v("rt-TooltipContent", s) }, d.createElement(P, { as: "p", className: "rt-TooltipText", size: "1" }, u), d.createElement(Hn, { className: "rt-TooltipArrow" })))));
1926
+ return d.createElement(Mn, { ...k }, d.createElement(On, { asChild: !0 }, t), d.createElement(pa, { container: h, forceMount: A }, d.createElement(dt, { asChild: !0 }, d.createElement(Fn, { sideOffset: 4, collisionPadding: 10, ...p, asChild: !1, ref: e, className: C("rt-TooltipContent", s) }, d.createElement(P, { as: "p", className: "rt-TooltipText", size: "1" }, u), d.createElement(Hn, { className: "rt-TooltipArrow" })))));
1927
1927
  });
1928
1928
  Gt.displayName = "Tooltip";
1929
1929
  const zh = "_upgradeItem_1isop_1", Mh = "_upgradeItemCollapsed_1isop_12", Oh = "_upgradeIcon_1isop_26", Fh = "_upgradeText_1isop_30", Hh = "_upgradeContent_1isop_44", jh = "_upgradeContentCollapsed_1isop_58", Wh = "_upgradeItemSelected_1isop_71", Ct = {
@@ -1955,7 +1955,7 @@ const zh = "_upgradeItem_1isop_1", Mh = "_upgradeItemCollapsed_1isop_12", Oh = "
1955
1955
  align: "center",
1956
1956
  role: "button",
1957
1957
  tabIndex: 0,
1958
- className: v(Ct.upgradeItem, {
1958
+ className: C(Ct.upgradeItem, {
1959
1959
  [Ct.upgradeItemCollapsed]: e,
1960
1960
  [Ct.upgradeItemSelected]: l
1961
1961
  }),
@@ -1968,7 +1968,7 @@ const zh = "_upgradeItem_1isop_1", Mh = "_upgradeItemCollapsed_1isop_12", Oh = "
1968
1968
  /* @__PURE__ */ r(
1969
1969
  "div",
1970
1970
  {
1971
- className: v(Ct.upgradeContent, {
1971
+ className: C(Ct.upgradeContent, {
1972
1972
  [Ct.upgradeContentCollapsed]: e
1973
1973
  }),
1974
1974
  children: /* @__PURE__ */ r(P, { size: "2", className: Ct.upgradeText, children: o.label })
@@ -2024,7 +2024,7 @@ const zh = "_upgradeItem_1isop_1", Mh = "_upgradeItemCollapsed_1isop_12", Oh = "
2024
2024
  variant: t,
2025
2025
  color: A,
2026
2026
  size: a,
2027
- className: v(Ze.Button, e, Ze.button, {
2027
+ className: C(Ze.Button, e, Ze.button, {
2028
2028
  [Ze[A]]: !0,
2029
2029
  [Ze[`size${a}`]]: !0,
2030
2030
  [Ze[t]]: !0,
@@ -2076,7 +2076,7 @@ const mp = "_iconButton_dxvji_1", gp = "_ghost_dxvji_7", fp = "_mint_dxvji_7", v
2076
2076
  dr,
2077
2077
  {
2078
2078
  onClick: n,
2079
- className: v(
2079
+ className: C(
2080
2080
  yt.iconButton,
2081
2081
  {
2082
2082
  [yt[a]]: !0,
@@ -2128,7 +2128,7 @@ const Qp = ({
2128
2128
  size: "1",
2129
2129
  variant: "solid",
2130
2130
  color: e.color,
2131
- className: v(Ye.badge, {
2131
+ className: C(Ye.badge, {
2132
2132
  [Ye.badgeGreen]: e.color === "green",
2133
2133
  [Ye.badgeNeutral]: e.color === "neutral"
2134
2134
  }),
@@ -2186,7 +2186,7 @@ const Tp = "_size1_18z9r_1", Dp = "_accent_18z9r_5", Jp = "_neutral_18z9r_15", P
2186
2186
  color: s,
2187
2187
  variant: "soft",
2188
2188
  highContrast: a,
2189
- className: v(
2189
+ className: C(
2190
2190
  vn.Callout,
2191
2191
  e,
2192
2192
  vn[s],
@@ -2232,12 +2232,12 @@ const Fp = "_card_qkexv_1", Hp = "_iconContainer_qkexv_15", jp = "_icon_qkexv_15
2232
2232
  size: "3",
2233
2233
  color: t,
2234
2234
  onClick: i,
2235
- className: v(u, e, Ve.card, s && Ve.drop, a && Ve.dropHover),
2235
+ className: C(u, e, Ve.card, s && Ve.drop, a && Ve.dropHover),
2236
2236
  ...l,
2237
2237
  children: /* @__PURE__ */ g(y, { gap: "5", align: "center", children: [
2238
2238
  /* @__PURE__ */ g(y, { className: Ve.iconContainer, children: [
2239
- o ? /* @__PURE__ */ r(o, { width: 16, height: 16, className: v(Ve.iconDefault, c) }) : /* @__PURE__ */ r(ma, { width: 16, height: 16, className: v(Ve.iconDefault, c) }),
2240
- /* @__PURE__ */ r(Vs, { width: 16, height: 16, className: v(Ve.iconHover, c) })
2239
+ o ? /* @__PURE__ */ r(o, { width: 16, height: 16, className: C(Ve.iconDefault, c) }) : /* @__PURE__ */ r(ma, { width: 16, height: 16, className: C(Ve.iconDefault, c) }),
2240
+ /* @__PURE__ */ r(Vs, { width: 16, height: 16, className: C(Ve.iconHover, c) })
2241
2241
  ] }),
2242
2242
  /* @__PURE__ */ r(he, { children: /* @__PURE__ */ r(P, { as: "div", size: "2", weight: "bold", children: n }) })
2243
2243
  ] })
@@ -2256,7 +2256,7 @@ const Gp = "_Checkbox_1hm4q_1", Xp = "_CheckboxIndicator_1hm4q_61", Yp = "_Check
2256
2256
  ql,
2257
2257
  {
2258
2258
  ...e,
2259
- className: v(Cn.Checkbox, n),
2259
+ className: C(Cn.Checkbox, n),
2260
2260
  size: t,
2261
2261
  children: /* @__PURE__ */ g(Kl, { className: Cn.CheckboxIndicator, children: [
2262
2262
  /* @__PURE__ */ r(
@@ -2318,35 +2318,35 @@ const _p = "_clock_1g00b_2", $p = "_column_1g00b_10", em = "_sm_1g00b_18", tm =
2318
2318
  [se.md]: u === "md",
2319
2319
  [se.lg]: u === "lg"
2320
2320
  };
2321
- return l ? /* @__PURE__ */ r("div", { className: v(se.skeletonBox, p, h), children: /* @__PURE__ */ r("div", { className: se.skeleton }) }) : /* @__PURE__ */ g("div", { className: v(se.clock, h), children: [
2321
+ return l ? /* @__PURE__ */ r("div", { className: C(se.skeletonBox, p, h), children: /* @__PURE__ */ r("div", { className: se.skeleton }) }) : /* @__PURE__ */ g("div", { className: C(se.clock, h), children: [
2322
2322
  A && t > 0 && /* @__PURE__ */ g(pe, { children: [
2323
2323
  /* @__PURE__ */ g(
2324
2324
  "div",
2325
2325
  {
2326
- className: v(se.column, p, {
2326
+ className: C(se.column, p, {
2327
2327
  [se.days]: t > 0
2328
2328
  }),
2329
2329
  children: [
2330
- /* @__PURE__ */ r("p", { className: v(se.labelBig, p), children: yn(t) }),
2331
- /* @__PURE__ */ r("p", { className: v(se.labelSmall, p), children: n._("Days") })
2330
+ /* @__PURE__ */ r("p", { className: C(se.labelBig, p), children: yn(t) }),
2331
+ /* @__PURE__ */ r("p", { className: C(se.labelSmall, p), children: n._("Days") })
2332
2332
  ]
2333
2333
  }
2334
2334
  ),
2335
- /* @__PURE__ */ r("p", { className: v(se.colon, p), children: ":" })
2335
+ /* @__PURE__ */ r("p", { className: C(se.colon, p), children: ":" })
2336
2336
  ] }),
2337
- /* @__PURE__ */ g("div", { className: v(se.column, p), children: [
2338
- /* @__PURE__ */ r("p", { className: v(se.labelBig, p), children: yn(s) }),
2339
- /* @__PURE__ */ r("p", { className: v(se.labelSmall, p), children: n._("Hours") })
2337
+ /* @__PURE__ */ g("div", { className: C(se.column, p), children: [
2338
+ /* @__PURE__ */ r("p", { className: C(se.labelBig, p), children: yn(s) }),
2339
+ /* @__PURE__ */ r("p", { className: C(se.labelSmall, p), children: n._("Hours") })
2340
2340
  ] }),
2341
- /* @__PURE__ */ r("p", { className: v(se.colon, p), children: ":" }),
2342
- /* @__PURE__ */ g("div", { className: v(se.column, p), children: [
2343
- /* @__PURE__ */ r("p", { className: v(se.labelBig, p), children: yn(a) }),
2344
- /* @__PURE__ */ r("p", { className: v(se.labelSmall, p), children: n._("Minutes") })
2341
+ /* @__PURE__ */ r("p", { className: C(se.colon, p), children: ":" }),
2342
+ /* @__PURE__ */ g("div", { className: C(se.column, p), children: [
2343
+ /* @__PURE__ */ r("p", { className: C(se.labelBig, p), children: yn(a) }),
2344
+ /* @__PURE__ */ r("p", { className: C(se.labelSmall, p), children: n._("Minutes") })
2345
2345
  ] }),
2346
- (t <= 0 || !A) && /* @__PURE__ */ r("p", { className: v(se.colon, p), children: ":" }),
2347
- (t <= 0 || !A) && /* @__PURE__ */ g("div", { className: v(se.column, p), children: [
2348
- /* @__PURE__ */ r("p", { className: v(se.labelBig, p), children: yn(o) }),
2349
- /* @__PURE__ */ r("p", { className: v(se.labelSmall, p), children: n._("Sec") })
2346
+ (t <= 0 || !A) && /* @__PURE__ */ r("p", { className: C(se.colon, p), children: ":" }),
2347
+ (t <= 0 || !A) && /* @__PURE__ */ g("div", { className: C(se.column, p), children: [
2348
+ /* @__PURE__ */ r("p", { className: C(se.labelBig, p), children: yn(o) }),
2349
+ /* @__PURE__ */ r("p", { className: C(se.labelSmall, p), children: n._("Sec") })
2350
2350
  ] })
2351
2351
  ] });
2352
2352
  };
@@ -2385,7 +2385,7 @@ const dm = "_container_1k1mq_1", um = "_content_1k1mq_19", Am = "_title_1k1mq_26
2385
2385
  return () => clearInterval(c);
2386
2386
  }, [s]);
2387
2387
  const l = s && o && !o.ended;
2388
- return /* @__PURE__ */ g("div", { className: v(Zt.container, n), children: [
2388
+ return /* @__PURE__ */ g("div", { className: C(Zt.container, n), children: [
2389
2389
  /* @__PURE__ */ g("div", { className: Zt.content, children: [
2390
2390
  /* @__PURE__ */ r("p", { className: Zt.title, children: e }),
2391
2391
  t && /* @__PURE__ */ r("p", { className: Zt.description, children: t })
@@ -2451,7 +2451,7 @@ const gm = "_menuContent_1j71o_1", fm = "_menuSubContent_1j71o_2", vm = "_slideD
2451
2451
  return /* @__PURE__ */ r(
2452
2452
  "div",
2453
2453
  {
2454
- className: v(
2454
+ className: C(
2455
2455
  W.menuItem,
2456
2456
  W[`menuItem-size-${s}`]
2457
2457
  ),
@@ -2472,7 +2472,7 @@ const gm = "_menuContent_1j71o_1", fm = "_menuSubContent_1j71o_2", vm = "_slideD
2472
2472
  return /* @__PURE__ */ r(
2473
2473
  n.Label,
2474
2474
  {
2475
- className: v(
2475
+ className: C(
2476
2476
  W.menuLabel,
2477
2477
  W[`menuLabel-size-${s}`]
2478
2478
  ),
@@ -2485,7 +2485,7 @@ const gm = "_menuContent_1j71o_1", fm = "_menuSubContent_1j71o_2", vm = "_slideD
2485
2485
  /* @__PURE__ */ g(
2486
2486
  n.SubTrigger,
2487
2487
  {
2488
- className: v(
2488
+ className: C(
2489
2489
  W.menuSubTrigger,
2490
2490
  W[`menuSubTrigger-size-${s}`],
2491
2491
  {
@@ -2507,7 +2507,7 @@ const gm = "_menuContent_1j71o_1", fm = "_menuSubContent_1j71o_2", vm = "_slideD
2507
2507
  return /* @__PURE__ */ g(
2508
2508
  n.Item,
2509
2509
  {
2510
- className: v(
2510
+ className: C(
2511
2511
  W.menuItem,
2512
2512
  W[`menuItem-size-${s}`],
2513
2513
  {
@@ -2547,7 +2547,7 @@ const gm = "_menuContent_1j71o_1", fm = "_menuSubContent_1j71o_2", vm = "_slideD
2547
2547
  onSelect: (l) => {
2548
2548
  o || l.preventDefault();
2549
2549
  },
2550
- className: v(
2550
+ className: C(
2551
2551
  W.menuItem,
2552
2552
  W.menuCheckboxItem,
2553
2553
  {
@@ -2606,7 +2606,7 @@ const gm = "_menuContent_1j71o_1", fm = "_menuSubContent_1j71o_2", vm = "_slideD
2606
2606
  (e == null ? void 0 : e.length) > 0 && /* @__PURE__ */ r(
2607
2607
  Yl,
2608
2608
  {
2609
- className: v(W.menuContent, t),
2609
+ className: C(W.menuContent, t),
2610
2610
  side: l.side,
2611
2611
  align: l.align,
2612
2612
  sideOffset: 5,
@@ -2641,7 +2641,7 @@ const Km = "_MoreButton_ats8z_1", Gm = "_hovered_ats8z_29", Xm = "_icon_ats8z_39
2641
2641
  "button",
2642
2642
  {
2643
2643
  type: "button",
2644
- className: v(hs.MoreButton, n, {
2644
+ className: C(hs.MoreButton, n, {
2645
2645
  [hs.hovered]: t
2646
2646
  }),
2647
2647
  "aria-label": e,
@@ -2689,17 +2689,17 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
2689
2689
  renderDataCell: k
2690
2690
  }) {
2691
2691
  var S;
2692
- const f = ee(!1), m = (b) => {
2692
+ const v = ee(!1), m = (b) => {
2693
2693
  b.shiftKey ? (b.preventDefault(), A == null || A(e, t)) : u == null || u(e);
2694
- }, C = (b) => {
2695
- b.stopPropagation(), b.shiftKey && (b.preventDefault(), f.current = !0, A == null || A(e, t), setTimeout(() => {
2696
- f.current = !1;
2694
+ }, f = (b) => {
2695
+ b.stopPropagation(), b.shiftKey && (b.preventDefault(), v.current = !0, A == null || A(e, t), setTimeout(() => {
2696
+ v.current = !1;
2697
2697
  }, 0));
2698
2698
  }, E = (b) => {
2699
2699
  b.stopPropagation(), b.shiftKey ? (b.preventDefault(), A == null || A(e, t)) : h == null || h(e.id, !a);
2700
2700
  }, B = (b) => {
2701
- if (f.current) {
2702
- f.current = !1;
2701
+ if (v.current) {
2702
+ v.current = !1;
2703
2703
  return;
2704
2704
  }
2705
2705
  h == null || h(e.id, b === !0);
@@ -2707,7 +2707,7 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
2707
2707
  return /* @__PURE__ */ g(
2708
2708
  es,
2709
2709
  {
2710
- className: v({
2710
+ className: C({
2711
2711
  [Y.rowSelected]: a,
2712
2712
  [Y.showDropdownOnSelect]: I
2713
2713
  }),
@@ -2725,9 +2725,9 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
2725
2725
  {
2726
2726
  size: "1",
2727
2727
  checked: a,
2728
- onClick: C,
2728
+ onClick: f,
2729
2729
  onCheckedChange: B,
2730
- className: v(Y.checkboxCell, {
2730
+ className: C(Y.checkboxCell, {
2731
2731
  [Y.showCheckboxCell]: a || o
2732
2732
  })
2733
2733
  }
@@ -2737,7 +2737,7 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
2737
2737
  s.map((b, w) => /* @__PURE__ */ r(
2738
2738
  Ht,
2739
2739
  {
2740
- className: v(
2740
+ className: C(
2741
2741
  Y.projectCell,
2742
2742
  w === 0 ? Y.columnProject : Y.dataColumn,
2743
2743
  { [Y.sortedColumn]: l === b.id }
@@ -2752,7 +2752,7 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
2752
2752
  c && /* @__PURE__ */ r(
2753
2753
  Ht,
2754
2754
  {
2755
- className: v(Y.projectCell, Y.dropdownColumn, Y.dropdownColumnCell),
2755
+ className: C(Y.projectCell, Y.dropdownColumn, Y.dropdownColumnCell),
2756
2756
  "data-column-id": "actions",
2757
2757
  children: (S = e.dropdownOptions) != null && S.length ? /* @__PURE__ */ r(
2758
2758
  gn,
@@ -2761,7 +2761,7 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
2761
2761
  ss,
2762
2762
  {
2763
2763
  "aria-label": `More options for ${e.title}`,
2764
- className: v(Y.dropdownTriggerWrapperIcon, Y.dropdownColumnCell)
2764
+ className: C(Y.dropdownTriggerWrapperIcon, Y.dropdownColumnCell)
2765
2765
  }
2766
2766
  ) }),
2767
2767
  options: e.dropdownOptions,
@@ -2789,7 +2789,7 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
2789
2789
  stickyBodyOffset: A = 0,
2790
2790
  ...p
2791
2791
  }) => {
2792
- const [k, f] = q(!1), m = ee(null), C = i == null ? void 0 : i.field, E = _(() => new Set(s), [s]), B = N((R) => E.has(R), [E]), I = s.length, S = (t == null ? void 0 : t.length) ?? 0, b = I > 0, w = S > 0 && I === S, Q = _(
2792
+ const [k, v] = q(!1), m = ee(null), f = i == null ? void 0 : i.field, E = _(() => new Set(s), [s]), B = N((R) => E.has(R), [E]), I = s.length, S = (t == null ? void 0 : t.length) ?? 0, b = I > 0, w = S > 0 && I === S, Q = _(
2793
2793
  () => t == null ? void 0 : t.some((R) => {
2794
2794
  var H;
2795
2795
  return (H = R.dropdownOptions) == null ? void 0 : H.length;
@@ -2849,7 +2849,7 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
2849
2849
  return /* @__PURE__ */ g(
2850
2850
  vr,
2851
2851
  {
2852
- className: v(Y.DataTable, n),
2852
+ className: C(Y.DataTable, n),
2853
2853
  size: "1",
2854
2854
  style: {
2855
2855
  "--datatable-sticky-offset": G,
@@ -2861,13 +2861,13 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
2861
2861
  /* @__PURE__ */ r(
2862
2862
  Cr,
2863
2863
  {
2864
- onMouseEnter: () => f(!0),
2865
- onMouseLeave: () => f(!1),
2864
+ onMouseEnter: () => v(!0),
2865
+ onMouseLeave: () => v(!1),
2866
2866
  children: /* @__PURE__ */ g(es, { className: Y.headerRow, children: [
2867
2867
  /* @__PURE__ */ r(
2868
2868
  Ht,
2869
2869
  {
2870
- className: v(Y.checkboxCell, Y.selectColumn, {
2870
+ className: C(Y.checkboxCell, Y.selectColumn, {
2871
2871
  [Y.showCheckboxHeader]: k || b
2872
2872
  }),
2873
2873
  children: /* @__PURE__ */ r(
@@ -2884,10 +2884,10 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
2884
2884
  e.map((R, H) => /* @__PURE__ */ r(
2885
2885
  Pn,
2886
2886
  {
2887
- className: v(Y.columnHeaderCell, {
2887
+ className: C(Y.columnHeaderCell, {
2888
2888
  [Y.columnProject]: H === 0,
2889
2889
  [Y.dataColumn]: H !== 0,
2890
- [Y.sortedColumn]: Ur(C) === Ur(R.id)
2890
+ [Y.sortedColumn]: Ur(f) === Ur(R.id)
2891
2891
  }),
2892
2892
  children: /* @__PURE__ */ g(y, { align: "center", gap: "3", height: "24px", children: [
2893
2893
  H === 0 ? /* @__PURE__ */ r(j, { size: "2", className: Y.headerTextFirst, children: R.label }) : /* @__PURE__ */ g(
@@ -2898,7 +2898,7 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
2898
2898
  onClick: () => O(R.id),
2899
2899
  children: [
2900
2900
  /* @__PURE__ */ r(j, { size: "2", children: R.label }),
2901
- C === R.id && ((i == null ? void 0 : i.sort) === "DESC" ? /* @__PURE__ */ r(oc, { width: 16, height: 16 }) : /* @__PURE__ */ r(ic, { width: 16, height: 16 }))
2901
+ f === R.id && ((i == null ? void 0 : i.sort) === "DESC" ? /* @__PURE__ */ r(oc, { width: 16, height: 16 }) : /* @__PURE__ */ r(ic, { width: 16, height: 16 }))
2902
2902
  ]
2903
2903
  }
2904
2904
  ),
@@ -2930,7 +2930,7 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
2930
2930
  isSelected: B(R.id),
2931
2931
  anyRowSelected: b,
2932
2932
  selectedCount: I,
2933
- sortedKey: C,
2933
+ sortedKey: f,
2934
2934
  hasDropdownOptions: Q,
2935
2935
  onRowClick: T,
2936
2936
  onSelectRow: z,
@@ -2968,12 +2968,12 @@ const yg = "_hasTriggerWithoutClick_4fnob_1", kg = "_hasLeftColor_4fnob_10", Eg
2968
2968
  const [u, h] = q(!1), A = (p) => {
2969
2969
  a && (p.preventDefault(), p.stopPropagation(), a(p));
2970
2970
  };
2971
- return /* @__PURE__ */ r(y, { className: v(Ue.container, t), ...c, children: /* @__PURE__ */ g(la, { open: o, onOpenChange: i, modal: !0, children: [
2971
+ return /* @__PURE__ */ r(y, { className: C(Ue.container, t), ...c, children: /* @__PURE__ */ g(la, { open: o, onOpenChange: i, modal: !0, children: [
2972
2972
  a && /* @__PURE__ */ r(
2973
2973
  y,
2974
2974
  {
2975
2975
  as: "button",
2976
- className: v({
2976
+ className: C({
2977
2977
  [Ue.triggerWithClick]: a,
2978
2978
  [Ue.hasLeftColor]: l
2979
2979
  }),
@@ -3003,7 +3003,7 @@ const yg = "_hasTriggerWithoutClick_4fnob_1", kg = "_hasLeftColor_4fnob_10", Eg
3003
3003
  /* @__PURE__ */ r(ca, { asChild: !0, children: /* @__PURE__ */ g(
3004
3004
  "div",
3005
3005
  {
3006
- className: v({
3006
+ className: C({
3007
3007
  [Ue.hover]: u,
3008
3008
  [Ue.hasLeftColor]: l,
3009
3009
  [Ue.hasTriggerWithClick]: a,
@@ -3032,7 +3032,7 @@ const yg = "_hasTriggerWithoutClick_4fnob_1", kg = "_hasLeftColor_4fnob_10", Eg
3032
3032
  s && /* @__PURE__ */ r(
3033
3033
  "span",
3034
3034
  {
3035
- className: v(Ue.separator, {
3035
+ className: C(Ue.separator, {
3036
3036
  [Ue.hasLeftColor]: l
3037
3037
  })
3038
3038
  }
@@ -3042,7 +3042,7 @@ const yg = "_hasTriggerWithoutClick_4fnob_1", kg = "_hasLeftColor_4fnob_10", Eg
3042
3042
  {
3043
3043
  width: 8,
3044
3044
  height: 8,
3045
- className: v(Ue.chevron, {
3045
+ className: C(Ue.chevron, {
3046
3046
  [Ue.hover]: u
3047
3047
  })
3048
3048
  }
@@ -3096,7 +3096,7 @@ const zs = ({ children: n, ...e }) => /* @__PURE__ */ r(
3096
3096
  $l,
3097
3097
  {
3098
3098
  asChild: !0,
3099
- className: v(W.menuTrigger, {
3099
+ className: C(W.menuTrigger, {
3100
3100
  [W.showActiveTrigger]: s
3101
3101
  }),
3102
3102
  disabled: i,
@@ -3106,7 +3106,7 @@ const zs = ({ children: n, ...e }) => /* @__PURE__ */ r(
3106
3106
  l ? /* @__PURE__ */ r(br, { className: W.menuPortal, children: /* @__PURE__ */ r(zs, { asChild: !0, children: /* @__PURE__ */ r(
3107
3107
  Br,
3108
3108
  {
3109
- className: v(W.menuContent, t),
3109
+ className: C(W.menuContent, t),
3110
3110
  size: a,
3111
3111
  side: A.side,
3112
3112
  align: A.align,
@@ -3136,7 +3136,7 @@ const zs = ({ children: n, ...e }) => /* @__PURE__ */ r(
3136
3136
  ) }) }) : /* @__PURE__ */ r(br, { className: W.menuPortal, children: /* @__PURE__ */ r(zs, { asChild: !0, children: /* @__PURE__ */ r(
3137
3137
  Br,
3138
3138
  {
3139
- className: v(W.menuContent, t),
3139
+ className: C(W.menuContent, t),
3140
3140
  size: a,
3141
3141
  side: A.side,
3142
3142
  align: A.align,
@@ -3275,7 +3275,7 @@ function Dg({ initialScreen: n, animated: e, children: t }) {
3275
3275
  }, [e]), k = N(
3276
3276
  (T, D = {}) => p((z) => [...z, { name: T, params: D }], "forward"),
3277
3277
  [p]
3278
- ), f = N(
3278
+ ), v = N(
3279
3279
  () => p((T) => T.length > 1 ? T.slice(0, -1) : T, "back"),
3280
3280
  [p]
3281
3281
  ), m = N(
@@ -3285,12 +3285,12 @@ function Dg({ initialScreen: n, animated: e, children: t }) {
3285
3285
  return D.slice(0, z + 1);
3286
3286
  }, "back"),
3287
3287
  [p]
3288
- ), C = N(
3288
+ ), f = N(
3289
3289
  (T) => p(() => [{ name: T || n, params: {} }]),
3290
3290
  [p, n]
3291
3291
  ), E = s.length > 1, B = _(
3292
- () => ({ push: k, pop: f, popTo: m, reset: C, canGoBack: E, stack: s }),
3293
- [k, f, m, C, E, s]
3292
+ () => ({ push: k, pop: v, popTo: m, reset: f, canGoBack: E, stack: s }),
3293
+ [k, v, m, f, E, s]
3294
3294
  ), I = s[s.length - 1], S = A[I.name];
3295
3295
  if (!S) return null;
3296
3296
  const b = (T, D) => T in o ? o[T] : S[T] ?? D, w = S.component, Q = N(
@@ -3307,7 +3307,7 @@ function Dg({ initialScreen: n, animated: e, children: t }) {
3307
3307
  yi,
3308
3308
  {
3309
3309
  title: b("title"),
3310
- onBack: E ? f : void 0,
3310
+ onBack: E ? v : void 0,
3311
3311
  headerLeft: b("headerLeft"),
3312
3312
  headerRight: b("headerRight"),
3313
3313
  allowClose: b("allowClose", !0),
@@ -3367,7 +3367,7 @@ const Jg = "_floatingBanner_uvpwv_1", Pg = "_white_uvpwv_12", Ug = "_error_uvpwv
3367
3367
  return /* @__PURE__ */ g(
3368
3368
  "div",
3369
3369
  {
3370
- className: v(Ne.floatingBanner, h, {
3370
+ className: C(Ne.floatingBanner, h, {
3371
3371
  [Ne.white]: e === "white",
3372
3372
  [Ne.error]: e === "error",
3373
3373
  [Ne.warning]: e === "warning",
@@ -3378,7 +3378,7 @@ const Jg = "_floatingBanner_uvpwv_1", Pg = "_white_uvpwv_12", Ug = "_error_uvpwv
3378
3378
  /* @__PURE__ */ g(
3379
3379
  "div",
3380
3380
  {
3381
- className: v(Ne.container, {
3381
+ className: C(Ne.container, {
3382
3382
  [Ne.column]: l
3383
3383
  }),
3384
3384
  children: [
@@ -3386,7 +3386,7 @@ const Jg = "_floatingBanner_uvpwv_1", Pg = "_white_uvpwv_12", Ug = "_error_uvpwv
3386
3386
  t && /* @__PURE__ */ r(
3387
3387
  "p",
3388
3388
  {
3389
- className: v(Ne.title, {
3389
+ className: C(Ne.title, {
3390
3390
  [Ne.strong]: !!i
3391
3391
  }),
3392
3392
  children: t
@@ -3507,7 +3507,7 @@ const Zg = "_messageWithActionInfo_152jv_1", _g = "_messageWithAction_152jv_1",
3507
3507
  {
3508
3508
  size: "1",
3509
3509
  color: n === "error" ? "red" : n === "warn" ? "yellow" : "gray",
3510
- className: v(a, {
3510
+ className: C(a, {
3511
3511
  [Or.messageWithActionInfo]: !o,
3512
3512
  [Or.messageWithAction]: o
3513
3513
  }),
@@ -3556,7 +3556,7 @@ function at({
3556
3556
  {
3557
3557
  size: "2",
3558
3558
  truncate: !0,
3559
- className: v(_e.neutral12, _e.truncate, {
3559
+ className: C(_e.neutral12, _e.truncate, {
3560
3560
  [_e.trucateWithInterval]: s
3561
3561
  }),
3562
3562
  children: n
@@ -3609,7 +3609,7 @@ const af = "_group_1wxsi_1", kn = {
3609
3609
  },
3610
3610
  u
3611
3611
  ) });
3612
- return /* @__PURE__ */ g(y, { className: v(n), style: s, gap: "3", children: [
3612
+ return /* @__PURE__ */ g(y, { className: C(n), style: s, gap: "3", children: [
3613
3613
  o.length > 0 && o.map((c, u) => /* @__PURE__ */ r(
3614
3614
  y,
3615
3615
  {
@@ -3760,14 +3760,14 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
3760
3760
  (S.key === "ArrowUp" || S.key === "ArrowDown") && A(), (S.key === "ArrowLeft" || S.key === "ArrowRight") && (S.preventDefault(), S.stopPropagation(), A());
3761
3761
  },
3762
3762
  [A]
3763
- ), f = N(
3763
+ ), v = N(
3764
3764
  (S) => {
3765
3765
  n(S.map(c));
3766
3766
  },
3767
3767
  [n, c]
3768
3768
  ), m = N(() => {
3769
3769
  A();
3770
- }, [A]), C = N(() => {
3770
+ }, [A]), f = N(() => {
3771
3771
  p();
3772
3772
  }, [p]), E = N(() => {
3773
3773
  n([1]), A();
@@ -3789,9 +3789,9 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
3789
3789
  max: 6,
3790
3790
  step: 0.1,
3791
3791
  value: [h ? -60 : u],
3792
- onValueChange: f,
3792
+ onValueChange: v,
3793
3793
  onPointerDown: m,
3794
- onPointerUp: C,
3794
+ onPointerUp: f,
3795
3795
  disabled: t,
3796
3796
  children: /* @__PURE__ */ g("div", { className: kt.sliderContainer, children: [
3797
3797
  /* @__PURE__ */ r(ho, { className: kt.sliderTrack, children: /* @__PURE__ */ r(po, { className: kt.sliderRange }) }),
@@ -3802,7 +3802,7 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
3802
3802
  className: kt.sliderThumb,
3803
3803
  onPointerDown: m,
3804
3804
  onKeyDown: k,
3805
- onBlur: C,
3805
+ onBlur: f,
3806
3806
  onClick: B
3807
3807
  }
3808
3808
  ) }),
@@ -3842,7 +3842,7 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
3842
3842
  return /* @__PURE__ */ g(
3843
3843
  $n,
3844
3844
  {
3845
- className: v(_t.RadioCardsRoot, c),
3845
+ className: C(_t.RadioCardsRoot, c),
3846
3846
  columns: a,
3847
3847
  defaultValue: e,
3848
3848
  value: h,
@@ -3850,7 +3850,7 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
3850
3850
  ...u,
3851
3851
  children: [
3852
3852
  n.map((p, k) => {
3853
- const f = p.Icon ?? p.icon, m = p.text ?? p.label ?? p.children;
3853
+ const v = p.Icon ?? p.icon, m = p.text ?? p.label ?? p.children;
3854
3854
  return /* @__PURE__ */ r(
3855
3855
  mn,
3856
3856
  {
@@ -3858,7 +3858,7 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
3858
3858
  disabled: p.disabled || !1,
3859
3859
  className: _t.RadioCardsItem,
3860
3860
  children: /* @__PURE__ */ g(y, { align: "center", gap: "3", className: _t.RadioCardsContent, children: [
3861
- f && /* @__PURE__ */ r("span", { className: _t.icon, children: typeof f == "function" ? /* @__PURE__ */ r(f, {}) : f }),
3861
+ v && /* @__PURE__ */ r("span", { className: _t.icon, children: typeof v == "function" ? /* @__PURE__ */ r(v, {}) : v }),
3862
3862
  m && /* @__PURE__ */ r(P, { as: "span", size: "2", weight: "regular", className: _t.text, children: m }),
3863
3863
  p.children
3864
3864
  ] })
@@ -4006,7 +4006,7 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
4006
4006
  I.preventDefault(), c(!0), h(I.clientY);
4007
4007
  },
4008
4008
  [t]
4009
- ), f = N(
4009
+ ), v = N(
4010
4010
  (I) => {
4011
4011
  if (!l || t) return;
4012
4012
  const S = u - I.clientY;
@@ -4017,7 +4017,7 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
4017
4017
  [l, u, n, e, s, t]
4018
4018
  ), m = N(() => {
4019
4019
  c(!1);
4020
- }, []), C = N(() => {
4020
+ }, []), f = N(() => {
4021
4021
  c(!1);
4022
4022
  }, []), E = N(
4023
4023
  (I) => {
@@ -4032,7 +4032,7 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
4032
4032
  },
4033
4033
  [o, t, e, s]
4034
4034
  );
4035
- return Ot("wheel", p, i), Ot("mousedown", k, i), Ot("mousemove", f), Ot("mouseup", m), Ot("mouseleave", C), {
4035
+ return Ot("wheel", p, i), Ot("mousedown", k, i), Ot("mousemove", v), Ot("mouseup", m), Ot("mouseleave", f), {
4036
4036
  containerRef: i,
4037
4037
  isDragging: l,
4038
4038
  handleClick: E,
@@ -4056,7 +4056,7 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
4056
4056
  dots: o || [],
4057
4057
  defaultDot: c,
4058
4058
  clickableDots: a
4059
- }), k = _(() => typeof e == "object" && e !== null ? e.position : wf(e, o), [e, o]), { pointerRotation: f, pointerColor: m } = _(() => Rf(k, s), [k, s]), C = (E) => {
4059
+ }), k = _(() => typeof e == "object" && e !== null ? e.position : wf(e, o), [e, o]), { pointerRotation: v, pointerColor: m } = _(() => Rf(k, s), [k, s]), f = (E) => {
4060
4060
  const B = jr[E.color] || jr.neutral, I = E.position === k, S = i === E.position && a;
4061
4061
  return s ? B.default : I ? B.active : S ? B.hover : B.default;
4062
4062
  };
@@ -4064,14 +4064,14 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
4064
4064
  "div",
4065
4065
  {
4066
4066
  ref: u,
4067
- className: v(En.content, n),
4067
+ className: C(En.content, n),
4068
4068
  "data-no-drag": "true",
4069
4069
  onClick: A,
4070
4070
  style: { cursor: s ? "default" : "ns-resize" },
4071
4071
  children: /* @__PURE__ */ r(
4072
4072
  "div",
4073
4073
  {
4074
- className: v(
4074
+ className: C(
4075
4075
  En.pan,
4076
4076
  h && En.active,
4077
4077
  s && En.disabled
@@ -4091,7 +4091,7 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
4091
4091
  /* @__PURE__ */ r(
4092
4092
  "g",
4093
4093
  {
4094
- transform: `rotate(${f} ${wn} ${Rn})`,
4094
+ transform: `rotate(${v} ${wn} ${Rn})`,
4095
4095
  children: /* @__PURE__ */ r(
4096
4096
  "path",
4097
4097
  {
@@ -4106,7 +4106,7 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
4106
4106
  o == null ? void 0 : o.map((E) => {
4107
4107
  const B = Bi[E.position];
4108
4108
  if (!B) return null;
4109
- const I = C(E), S = a && !s;
4109
+ const I = f(E), S = a && !s;
4110
4110
  return /* @__PURE__ */ g(ge.Fragment, { children: [
4111
4111
  S && /* @__PURE__ */ r(
4112
4112
  "circle",
@@ -4340,20 +4340,20 @@ const wi = ({
4340
4340
  ...i
4341
4341
  }) => {
4342
4342
  const l = _(() => Object.keys(Os), []), c = _(() => Object.keys(Ms), []), { color: u, graphic: h } = _(() => {
4343
- let f = n, m = e;
4343
+ let v = n, m = e;
4344
4344
  if (a) {
4345
- const C = Pv(a);
4346
- f = f || C.color, m = m || C.graphic;
4345
+ const f = Pv(a);
4346
+ v = v || f.color, m = m || f.graphic;
4347
4347
  }
4348
- if (!f) {
4349
- const C = Math.floor(Math.random() * l.length);
4350
- f = l[C];
4348
+ if (!v) {
4349
+ const f = Math.floor(Math.random() * l.length);
4350
+ v = l[f];
4351
4351
  }
4352
4352
  if (!m) {
4353
- const C = Math.floor(Math.random() * c.length);
4354
- m = c[C];
4353
+ const f = Math.floor(Math.random() * c.length);
4354
+ m = c[f];
4355
4355
  }
4356
- return { color: f, graphic: m };
4356
+ return { color: v, graphic: m };
4357
4357
  }, [n, e, a, l, c]), A = Os[u], p = Ms[h], k = _(
4358
4358
  () => ({
4359
4359
  background: A.gradient,
@@ -4366,7 +4366,7 @@ const wi = ({
4366
4366
  {
4367
4367
  width: t + "px",
4368
4368
  height: s + "px",
4369
- className: v(o),
4369
+ className: C(o),
4370
4370
  style: k,
4371
4371
  ...i,
4372
4372
  children: /* @__PURE__ */ r("img", { src: p, alt: h, width: t, height: s })
@@ -4389,7 +4389,7 @@ const Uv = ({
4389
4389
  size: A = "1",
4390
4390
  ...p
4391
4391
  }) => {
4392
- const k = (o == null ? void 0 : o.id) || a, f = (o == null ? void 0 : o.name) || t, m = (o == null ? void 0 : o.description) || s, C = (o == null ? void 0 : o.image) || e, E = (o == null ? void 0 : o.icon) || l, B = C && (C != null && C.startsWith("url(")) ? C == null ? void 0 : C.substring(4, (C == null ? void 0 : C.length) - 1).replace(/"/g, "") : C, I = (Q) => {
4392
+ const k = (o == null ? void 0 : o.id) || a, v = (o == null ? void 0 : o.name) || t, m = (o == null ? void 0 : o.description) || s, f = (o == null ? void 0 : o.image) || e, E = (o == null ? void 0 : o.icon) || l, B = f && (f != null && f.startsWith("url(")) ? f == null ? void 0 : f.substring(4, (f == null ? void 0 : f.length) - 1).replace(/"/g, "") : f, I = (Q) => {
4393
4393
  Q.stopPropagation(), Q.preventDefault(), h == null || h();
4394
4394
  }, S = {
4395
4395
  1: { avatar: 60, icon: 15 },
@@ -4400,7 +4400,7 @@ const Uv = ({
4400
4400
  mn,
4401
4401
  {
4402
4402
  value: k,
4403
- className: v(
4403
+ className: C(
4404
4404
  n,
4405
4405
  $.listCardsItem,
4406
4406
  $[`listCardsItemSize${A}`]
@@ -4414,7 +4414,7 @@ const Uv = ({
4414
4414
  wi,
4415
4415
  {
4416
4416
  id: k,
4417
- className: v(
4417
+ className: C(
4418
4418
  $.listCardsAvatar,
4419
4419
  $[`listCardsAvatarSize${A}`]
4420
4420
  ),
@@ -4424,7 +4424,7 @@ const Uv = ({
4424
4424
  ) : c ? /* @__PURE__ */ r(
4425
4425
  "div",
4426
4426
  {
4427
- className: v(
4427
+ className: C(
4428
4428
  $.listCardsAvatarIcon,
4429
4429
  $[`listCardsAvatarIconSize${A}`]
4430
4430
  ),
@@ -4433,7 +4433,7 @@ const Uv = ({
4433
4433
  ) : E ? /* @__PURE__ */ r(
4434
4434
  "div",
4435
4435
  {
4436
- className: v(
4436
+ className: C(
4437
4437
  $.listCardsAvatarIcon,
4438
4438
  $[`listCardsAvatarIconSize${A}`]
4439
4439
  ),
@@ -4443,14 +4443,14 @@ const Uv = ({
4443
4443
  We,
4444
4444
  {
4445
4445
  src: B,
4446
- className: v(
4446
+ className: C(
4447
4447
  $.listCardsAvatar,
4448
4448
  $[`listCardsAvatarSize${A}`]
4449
4449
  )
4450
4450
  }
4451
4451
  ) }),
4452
4452
  /* @__PURE__ */ g(y, { direction: "column", justify: "center", gap: "1", children: [
4453
- /* @__PURE__ */ r(P, { as: "div", size: "2", className: $.listCardsItemText, children: f }),
4453
+ /* @__PURE__ */ r(P, { as: "div", size: "2", className: $.listCardsItemText, children: v }),
4454
4454
  /* @__PURE__ */ r(
4455
4455
  P,
4456
4456
  {
@@ -4479,13 +4479,13 @@ const Uv = ({
4479
4479
  children: A,
4480
4480
  ...p
4481
4481
  }) => {
4482
- const k = (a == null ? void 0 : a.id) || s, f = (a == null ? void 0 : a.name) || t, m = (a == null ? void 0 : a.avatar) || e, C = m && (m != null && m.startsWith("url(")) ? m == null ? void 0 : m.substring(4, (m == null ? void 0 : m.length) - 1).replace(/"/g, "") : m;
4482
+ const k = (a == null ? void 0 : a.id) || s, v = (a == null ? void 0 : a.name) || t, m = (a == null ? void 0 : a.avatar) || e, f = m && (m != null && m.startsWith("url(")) ? m == null ? void 0 : m.substring(4, (m == null ? void 0 : m.length) - 1).replace(/"/g, "") : m;
4483
4483
  return /* @__PURE__ */ g("div", { className: $.cardWrapper, children: [
4484
4484
  /* @__PURE__ */ r(
4485
4485
  mn,
4486
4486
  {
4487
4487
  value: k,
4488
- className: v(n, $.listCardsItem),
4488
+ className: C(n, $.listCardsItem),
4489
4489
  style: {
4490
4490
  "--color-surface": "transparent",
4491
4491
  width: "100%",
@@ -4503,9 +4503,9 @@ const Uv = ({
4503
4503
  overflow: "hidden"
4504
4504
  },
4505
4505
  children: [
4506
- !c && /* @__PURE__ */ r(We, { src: C, className: $.listCardsAvatar }),
4506
+ !c && /* @__PURE__ */ r(We, { src: f, className: $.listCardsAvatar }),
4507
4507
  /* @__PURE__ */ g(y, { direction: "column", justify: "center", children: [
4508
- /* @__PURE__ */ r(P, { as: "div", size: "2", className: $.listCardsItemText, children: f }),
4508
+ /* @__PURE__ */ r(P, { as: "div", size: "2", className: $.listCardsItemText, children: v }),
4509
4509
  /* @__PURE__ */ r(
4510
4510
  y,
4511
4511
  {
@@ -4534,7 +4534,7 @@ const Uv = ({
4534
4534
  onClick: c ? (E) => {
4535
4535
  E.stopPropagation(), E.preventDefault(), c(E);
4536
4536
  } : void 0,
4537
- children: u ? /* @__PURE__ */ r("div", { className: $.avatarContent, children: u }) : /* @__PURE__ */ r(We, { src: C, className: $.listCardsAvatar })
4537
+ children: u ? /* @__PURE__ */ r("div", { className: $.avatarContent, children: u }) : /* @__PURE__ */ r(We, { src: f, className: $.listCardsAvatar })
4538
4538
  }
4539
4539
  ) }),
4540
4540
  /* @__PURE__ */ r("div", { className: $.cardActions, children: /* @__PURE__ */ g(
@@ -4549,7 +4549,7 @@ const Uv = ({
4549
4549
  i && /* @__PURE__ */ r(
4550
4550
  "div",
4551
4551
  {
4552
- className: v(
4552
+ className: C(
4553
4553
  $.favoriteButton,
4554
4554
  $.seeDetailsButton
4555
4555
  ),
@@ -4562,7 +4562,7 @@ const Uv = ({
4562
4562
  l && /* @__PURE__ */ r(
4563
4563
  "div",
4564
4564
  {
4565
- className: v(
4565
+ className: C(
4566
4566
  $.buttonGhost,
4567
4567
  $.seeDetailsButton
4568
4568
  ),
@@ -4683,8 +4683,8 @@ const qS = ({
4683
4683
  placeholder: A = "Select options...",
4684
4684
  ...p
4685
4685
  }) => {
4686
- const k = (f) => {
4687
- t && t(f);
4686
+ const k = (v) => {
4687
+ t && t(v);
4688
4688
  };
4689
4689
  return /* @__PURE__ */ g(he, { width: "100%", children: [
4690
4690
  e && /* @__PURE__ */ g(y, { mb: "2", align: "center", gap: "2", children: [
@@ -4694,7 +4694,7 @@ const qS = ({
4694
4694
  /* @__PURE__ */ r(y, { direction: "column", maxWidth: h, children: /* @__PURE__ */ g(
4695
4695
  hr,
4696
4696
  {
4697
- className: v(n),
4697
+ className: C(n),
4698
4698
  disabled: l || c,
4699
4699
  ...p,
4700
4700
  children: [
@@ -4705,25 +4705,25 @@ const qS = ({
4705
4705
  color: "gray",
4706
4706
  size: o,
4707
4707
  placeholder: A,
4708
- className: v($e.selectTrigger, {
4708
+ className: C($e.selectTrigger, {
4709
4709
  [$e.ghost]: i === "ghost",
4710
4710
  [$e.soft]: i === "soft"
4711
4711
  }),
4712
4712
  children: A
4713
4713
  }
4714
4714
  ),
4715
- /* @__PURE__ */ r(mr, { position: "popper", style: { height: u }, children: /* @__PURE__ */ r(gr, { children: s.map((f) => /* @__PURE__ */ g(
4715
+ /* @__PURE__ */ r(mr, { position: "popper", style: { height: u }, children: /* @__PURE__ */ r(gr, { children: s.map((v) => /* @__PURE__ */ g(
4716
4716
  y,
4717
4717
  {
4718
4718
  align: "center",
4719
4719
  gap: "2",
4720
4720
  p: "2",
4721
- className: v($e.selectItem, {
4721
+ className: C($e.selectItem, {
4722
4722
  [$e.hideIndicator]: !0,
4723
4723
  [$e.size1]: o === "1",
4724
4724
  [$e.size2]: o === "2"
4725
4725
  }),
4726
- onClick: () => k(f.value),
4726
+ onClick: () => k(v.value),
4727
4727
  style: {
4728
4728
  cursor: l || c ? "not-allowed" : "pointer",
4729
4729
  width: "100%"
@@ -4733,13 +4733,13 @@ const qS = ({
4733
4733
  ns,
4734
4734
  {
4735
4735
  disabled: l || c,
4736
- checked: f.isActived || !1,
4736
+ checked: v.isActived || !1,
4737
4737
  size: o
4738
4738
  }
4739
4739
  ),
4740
4740
  /* @__PURE__ */ g(y, { align: "center", gap: "1", style: { flex: 1 }, children: [
4741
- /* @__PURE__ */ r(P, { size: o, style: { color: "var(--neutral-12)" }, children: f.label }),
4742
- f.aiDetected && /* @__PURE__ */ r(
4741
+ /* @__PURE__ */ r(P, { size: o, style: { color: "var(--neutral-12)" }, children: v.label }),
4742
+ v.aiDetected && /* @__PURE__ */ r(
4743
4743
  P,
4744
4744
  {
4745
4745
  size: "1",
@@ -4750,7 +4750,7 @@ const qS = ({
4750
4750
  children: "✦"
4751
4751
  }
4752
4752
  ),
4753
- f.extra && /* @__PURE__ */ g(
4753
+ v.extra && /* @__PURE__ */ g(
4754
4754
  P,
4755
4755
  {
4756
4756
  size: o,
@@ -4760,14 +4760,14 @@ const qS = ({
4760
4760
  },
4761
4761
  children: [
4762
4762
  " ",
4763
- f.extra
4763
+ v.extra
4764
4764
  ]
4765
4765
  }
4766
4766
  )
4767
4767
  ] })
4768
4768
  ]
4769
4769
  },
4770
- f.value
4770
+ v.value
4771
4771
  )) }) })
4772
4772
  ]
4773
4773
  }
@@ -4790,7 +4790,7 @@ const qv = "_customCard_1klw4_2", Kv = "_selected_1klw4_18", Gv = "_disabled_1kl
4790
4790
  cr,
4791
4791
  {
4792
4792
  onClick: l ? void 0 : o,
4793
- className: v(Ft.customCard, {
4793
+ className: C(Ft.customCard, {
4794
4794
  [Ft.selected]: i,
4795
4795
  [Ft.disabled]: l
4796
4796
  }),
@@ -4835,7 +4835,7 @@ const qv = "_customCard_1klw4_2", Kv = "_selected_1klw4_18", Gv = "_disabled_1kl
4835
4835
  }) => /* @__PURE__ */ r(Qt, { height: "100%", width: "100%", scrollbars: "vertical", children: /* @__PURE__ */ r(
4836
4836
  he,
4837
4837
  {
4838
- className: v(Ft.gridContainer, s),
4838
+ className: C(Ft.gridContainer, s),
4839
4839
  pr: "3",
4840
4840
  ...o,
4841
4841
  children: n.map((i) => /* @__PURE__ */ r(
@@ -4867,7 +4867,7 @@ const $v = "_content_15nbm_1", eC = "_pan_15nbm_13", tC = "_disabled_15nbm_26",
4867
4867
  minValue: a = -0.65,
4868
4868
  maxValue: o = 0.65
4869
4869
  }) => {
4870
- const i = ee(null), [l, c] = q(!1), u = ee(), [h, A] = q(!1), p = ee(null), k = ee(0), f = ee(e), m = ee(0), C = N(() => {
4870
+ const i = ee(null), [l, c] = q(!1), u = ee(), [h, A] = q(!1), p = ee(null), k = ee(0), v = ee(e), m = ee(0), f = N(() => {
4871
4871
  clearTimeout(u.current), c(!0);
4872
4872
  }, []), E = N(() => {
4873
4873
  h || (u.current = setTimeout(() => c(!1), 300));
@@ -4875,17 +4875,17 @@ const $v = "_content_15nbm_1", eC = "_pan_15nbm_13", tC = "_disabled_15nbm_26",
4875
4875
  de(() => {
4876
4876
  if (h) {
4877
4877
  const U = document.createElement("style");
4878
- U.textContent = "* { cursor: ns-resize !important; }", document.head.appendChild(U), p.current = U, C();
4878
+ U.textContent = "* { cursor: ns-resize !important; }", document.head.appendChild(U), p.current = U, f();
4879
4879
  } else
4880
4880
  p.current && (document.head.removeChild(p.current), p.current = null), E();
4881
4881
  return () => {
4882
4882
  p.current && (document.head.removeChild(p.current), p.current = null), E(), m.current && cancelAnimationFrame(m.current);
4883
4883
  };
4884
- }, [h, C, E]);
4884
+ }, [h, f, E]);
4885
4885
  const B = N(
4886
4886
  (U) => {
4887
- f.current = Lr(U), !m.current && (m.current = requestAnimationFrame(() => {
4888
- m.current = 0, t(f.current);
4887
+ v.current = Lr(U), !m.current && (m.current = requestAnimationFrame(() => {
4888
+ m.current = 0, t(v.current);
4889
4889
  }));
4890
4890
  },
4891
4891
  [t]
@@ -4942,7 +4942,7 @@ const $v = "_content_15nbm_1", eC = "_pan_15nbm_13", tC = "_disabled_15nbm_26",
4942
4942
  "div",
4943
4943
  {
4944
4944
  ref: i,
4945
- className: v(Dt.content, n),
4945
+ className: C(Dt.content, n),
4946
4946
  "data-no-drag": "true",
4947
4947
  onClick: Q,
4948
4948
  style: { cursor: s ? "default" : "ns-resize" },
@@ -4950,7 +4950,7 @@ const $v = "_content_15nbm_1", eC = "_pan_15nbm_13", tC = "_disabled_15nbm_26",
4950
4950
  /* @__PURE__ */ r(On, { asChild: !0, children: /* @__PURE__ */ r(
4951
4951
  "div",
4952
4952
  {
4953
- className: v(
4953
+ className: C(
4954
4954
  Dt.pan,
4955
4955
  h && Dt.active,
4956
4956
  s && Dt.disabled
@@ -5039,7 +5039,7 @@ const aC = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEAkACQAAD/2wBDAAEBAQEBAQEBA
5039
5039
  width: e,
5040
5040
  height: e,
5041
5041
  draggable: !1,
5042
- className: v(n),
5042
+ className: C(n),
5043
5043
  ...a
5044
5044
  }
5045
5045
  );
@@ -5073,7 +5073,7 @@ const dC = "_navItem_6drgg_1", uC = "_navItemIcon_6drgg_12", AC = "_navItemConte
5073
5073
  py: "2",
5074
5074
  role: "button",
5075
5075
  tabIndex: 0,
5076
- className: v(et.navItem, {
5076
+ className: C(et.navItem, {
5077
5077
  [et.navItemSelected]: c,
5078
5078
  [et.collapsed]: s
5079
5079
  }),
@@ -5086,7 +5086,7 @@ const dC = "_navItem_6drgg_1", uC = "_navItemIcon_6drgg_12", AC = "_navItemConte
5086
5086
  /* @__PURE__ */ g(
5087
5087
  "div",
5088
5088
  {
5089
- className: v(et.navItemContent, {
5089
+ className: C(et.navItemContent, {
5090
5090
  [et.navItemContentCollapsed]: s
5091
5091
  }),
5092
5092
  children: [
@@ -5141,7 +5141,7 @@ function NC({ className: n, user: e, collapsed: t, ...s }) {
5141
5141
  onMouseLeave: () => {
5142
5142
  o(!1);
5143
5143
  },
5144
- className: v(Ke.userProfile, { [Ke.collapsed]: t }, n),
5144
+ className: C(Ke.userProfile, { [Ke.collapsed]: t }, n),
5145
5145
  align: "center",
5146
5146
  justify: t ? "center" : "between",
5147
5147
  ...s,
@@ -5181,7 +5181,7 @@ const xC = ({
5181
5181
  return /* @__PURE__ */ r(
5182
5182
  gn,
5183
5183
  {
5184
- className: v(Ke.profileMenu, n),
5184
+ className: C(Ke.profileMenu, n),
5185
5185
  trigger: /* @__PURE__ */ r(NC, { user: e, collapsed: s }),
5186
5186
  options: t,
5187
5187
  side: i ? "top" : "right",
@@ -5250,25 +5250,29 @@ const xC = ({
5250
5250
  }, xi = hn({
5251
5251
  onClickTrack: null,
5252
5252
  onInsertAllTracks: null,
5253
+ onProjectClick: null,
5253
5254
  openedItem: null,
5254
5255
  setOpenedItem: () => {
5255
5256
  }
5256
5257
  }), jC = ({
5257
5258
  children: n,
5258
- onClickTrack: e,
5259
- onInsertAllTracks: t
5259
+ projects: e = [],
5260
+ onClickTrack: t,
5261
+ onInsertAllTracks: s,
5262
+ onProjectClick: a
5260
5263
  }) => {
5261
- const [s, a] = q(null);
5264
+ const [o, i] = q(null), l = typeof n == "function" ? n(e) : n;
5262
5265
  return /* @__PURE__ */ r(
5263
5266
  xi.Provider,
5264
5267
  {
5265
5268
  value: {
5266
- onClickTrack: e,
5267
- onInsertAllTracks: t,
5268
- openedItem: s,
5269
- setOpenedItem: a
5269
+ onClickTrack: t,
5270
+ onInsertAllTracks: s,
5271
+ onProjectClick: a,
5272
+ openedItem: o,
5273
+ setOpenedItem: i
5270
5274
  },
5271
- children: /* @__PURE__ */ r(y, { direction: "column", width: "100%", children: n })
5275
+ children: /* @__PURE__ */ r(y, { direction: "column", width: "100%", children: l })
5272
5276
  }
5273
5277
  );
5274
5278
  }, WC = ({
@@ -5280,19 +5284,21 @@ const xC = ({
5280
5284
  tracks: o = [],
5281
5285
  ...i
5282
5286
  }) => {
5283
- const { onClickTrack: l, onInsertAllTracks: c, openedItem: u, setOpenedItem: h } = Wt(xi), [A, p] = q(!1), k = () => {
5284
- p(!1), h(u === n ? null : n);
5285
- }, f = (m) => {
5286
- m.preventDefault(), m.stopPropagation(), p(!A);
5287
- };
5287
+ const { onClickTrack: l, onInsertAllTracks: c, onProjectClick: u, openedItem: h, setOpenedItem: A } = Wt(xi), [p, k] = q(!1), v = N(() => {
5288
+ k(!1);
5289
+ const f = projects.find((E) => E.id === n);
5290
+ h === n ? (A(null), u == null || u(f, !1)) : (A(n), u == null || u(f, !0));
5291
+ }, [n, h, A, u, projects]), m = N((f) => {
5292
+ f.preventDefault(), f.stopPropagation(), k(!p);
5293
+ }, [p]);
5288
5294
  return /* @__PURE__ */ g(
5289
5295
  y,
5290
5296
  {
5291
5297
  direction: "column",
5292
5298
  gap: "2",
5293
5299
  p: "1",
5294
- className: `${Oe.item} ${u === n ? Oe.opened : ""}`,
5295
- onClick: k,
5300
+ className: `${Oe.item} ${h === n ? Oe.opened : ""}`,
5301
+ onClick: v,
5296
5302
  ...i,
5297
5303
  children: [
5298
5304
  /* @__PURE__ */ g(y, { direction: "row", gap: "3", children: [
@@ -5302,30 +5308,30 @@ const xC = ({
5302
5308
  t && /* @__PURE__ */ r(P, { size: "1", className: Oe.projectArtist, children: t })
5303
5309
  ] })
5304
5310
  ] }),
5305
- u === n && /* @__PURE__ */ g(y, { direction: "column", children: [
5311
+ h === n && /* @__PURE__ */ g(y, { direction: "column", children: [
5306
5312
  o.length === 0 && /* @__PURE__ */ g(y, { direction: "row", gap: "3", p: "5", pt: "2", align: "center", justify: "center", children: [
5307
5313
  /* @__PURE__ */ r(yc, { width: 16, height: 16, style: { color: "var(--neutral-alpha-10)" } }),
5308
5314
  /* @__PURE__ */ r(P, { size: "2", style: { color: "var(--neutral-alpha-10)" }, children: "This file has no tracks" })
5309
5315
  ] }),
5310
5316
  o.length > 0 && /* @__PURE__ */ g(y, { direction: "column", gap: "1", children: [
5311
- o.slice(0, A ? o.length : 6).map((m) => /* @__PURE__ */ g(
5317
+ o.slice(0, p ? o.length : 6).map((f) => /* @__PURE__ */ g(
5312
5318
  y,
5313
5319
  {
5314
5320
  direction: "row",
5315
5321
  gap: "3",
5316
5322
  className: Oe.itemTrack,
5317
- onClick: (C) => {
5318
- C.stopPropagation(), l == null || l(m);
5323
+ onClick: (E) => {
5324
+ E.stopPropagation(), l == null || l(f);
5319
5325
  },
5320
5326
  children: [
5321
5327
  /* @__PURE__ */ g("div", { className: Oe.icon, children: [
5322
- /* @__PURE__ */ r(y, { className: Oe.iconTrack, children: HC(m.id) }),
5328
+ /* @__PURE__ */ r(y, { className: Oe.iconTrack, children: HC(f.id) }),
5323
5329
  /* @__PURE__ */ r(Is, { width: 16, height: 16, className: Oe.iconArrowLeft })
5324
5330
  ] }),
5325
- /* @__PURE__ */ r(y, { direction: "column", gap: "1", align: "start", justify: "center", children: /* @__PURE__ */ r(P, { size: "2", className: Oe.trackTitle, children: m.title }) })
5331
+ /* @__PURE__ */ r(y, { direction: "column", gap: "1", align: "start", justify: "center", children: /* @__PURE__ */ r(P, { size: "2", className: Oe.trackTitle, children: f.title }) })
5326
5332
  ]
5327
5333
  },
5328
- m.id
5334
+ f.id
5329
5335
  )),
5330
5336
  /* @__PURE__ */ g(y, { direction: "row", gap: "3", p: "2", align: "center", justify: "center", children: [
5331
5337
  /* @__PURE__ */ g(
@@ -5334,8 +5340,8 @@ const xC = ({
5334
5340
  variant: "ghost",
5335
5341
  color: "neutral",
5336
5342
  style: { flex: "1" },
5337
- onClick: (m) => {
5338
- m.stopPropagation(), c == null || c(o);
5343
+ onClick: (f) => {
5344
+ f.stopPropagation(), c == null || c(o);
5339
5345
  },
5340
5346
  children: [
5341
5347
  /* @__PURE__ */ r(Is, { width: 16, height: 16 }),
@@ -5345,9 +5351,9 @@ const xC = ({
5345
5351
  ),
5346
5352
  o.length > 6 && /* @__PURE__ */ g(pe, { children: [
5347
5353
  /* @__PURE__ */ r(Ge, { orientation: "vertical" }),
5348
- /* @__PURE__ */ g(ke, { variant: "ghost", color: "gray", style: { flex: "1" }, onClick: f, children: [
5349
- A ? "Show less" : "Show more",
5350
- A ? /* @__PURE__ */ r(kc, { width: 16, height: 16 }) : /* @__PURE__ */ r(fa, { width: 16, height: 16 })
5354
+ /* @__PURE__ */ g(ke, { variant: "ghost", color: "gray", style: { flex: "1" }, onClick: m, children: [
5355
+ p ? "Show less" : "Show more",
5356
+ p ? /* @__PURE__ */ r(kc, { width: 16, height: 16 }) : /* @__PURE__ */ r(fa, { width: 16, height: 16 })
5351
5357
  ] })
5352
5358
  ] })
5353
5359
  ] })
@@ -5374,7 +5380,7 @@ const LC = "_RadioCardsGroup_95mfr_1", VC = "_RadioCardsGroupItem_95mfr_5", qC =
5374
5380
  }) => /* @__PURE__ */ r(
5375
5381
  $n,
5376
5382
  {
5377
- className: v(tn.RadioCardsGroup, n, {
5383
+ className: C(tn.RadioCardsGroup, n, {
5378
5384
  [tn.showRadio]: t
5379
5385
  }),
5380
5386
  columns: a,
@@ -5413,29 +5419,29 @@ const YC = "_starButton_azi6g_1", ZC = "_disabled_azi6g_17", _C = "_readOnly_azi
5413
5419
  maxLabel: h,
5414
5420
  ...A
5415
5421
  }) => {
5416
- const [p, k] = q(t || 0), [f, m] = q(0), C = e !== void 0 ? e : p, E = e !== void 0, B = N(
5422
+ const [p, k] = q(t || 0), [v, m] = q(0), f = e !== void 0 ? e : p, E = e !== void 0, B = N(
5417
5423
  (w) => {
5418
5424
  if (s || a) return;
5419
- const Q = w + 1, O = Q === C ? 0 : Q;
5425
+ const Q = w + 1, O = Q === f ? 0 : Q;
5420
5426
  E || k(O), o == null || o({ value: O });
5421
5427
  },
5422
- [s, a, E, o, C]
5428
+ [s, a, E, o, f]
5423
5429
  ), I = N(
5424
5430
  (w) => {
5425
5431
  if (s || a) return;
5426
5432
  const Q = w.currentTarget.getBoundingClientRect(), O = w.clientX - Q.left, T = Q.width / n, D = Math.floor(O / T), M = Math.max(0, Math.min(D, n - 1)) + 1;
5427
- M !== f && (m(M), i == null || i({ value: M }));
5433
+ M !== v && (m(M), i == null || i({ value: M }));
5428
5434
  },
5429
- [s, a, n, f, i]
5435
+ [s, a, n, v, i]
5430
5436
  ), S = N(() => {
5431
5437
  s || a || (m(0), i == null || i({ value: 0 }));
5432
5438
  }, [s, a, i]), b = (w) => {
5433
- const Q = f > 0 ? w < f : w < C, O = f > 0 && w < f, T = w < C;
5439
+ const Q = v > 0 ? w < v : w < f, O = v > 0 && w < v, T = w < f;
5434
5440
  return /* @__PURE__ */ r(
5435
5441
  "button",
5436
5442
  {
5437
5443
  type: "button",
5438
- className: v(De.starButton, {
5444
+ className: C(De.starButton, {
5439
5445
  [De.filled]: Q,
5440
5446
  [De.hovered]: O,
5441
5447
  [De.active]: T,
@@ -5458,7 +5464,7 @@ const YC = "_starButton_azi6g_1", ZC = "_disabled_azi6g_17", _C = "_readOnly_azi
5458
5464
  align: "center",
5459
5465
  gap: "2",
5460
5466
  width: "100%",
5461
- className: v(l),
5467
+ className: C(l),
5462
5468
  children: [
5463
5469
  c && /* @__PURE__ */ r(P, { size: "2", weight: "medium", className: De.label, children: c }),
5464
5470
  /* @__PURE__ */ g(y, { direction: "column", gap: "1", width: "100%", children: [
@@ -5471,7 +5477,7 @@ const YC = "_starButton_azi6g_1", ZC = "_disabled_azi6g_17", _C = "_readOnly_azi
5471
5477
  justify: "center",
5472
5478
  className: De.starsContainer,
5473
5479
  role: "radiogroup",
5474
- "aria-label": `Rating: ${C} out of ${n} stars`,
5480
+ "aria-label": `Rating: ${f} out of ${n} stars`,
5475
5481
  onMouseMove: I,
5476
5482
  onMouseLeave: S,
5477
5483
  children: Array.from({ length: n }, (w, Q) => b(Q))
@@ -5514,7 +5520,7 @@ const l1 = "_select_egrq6_1", c1 = "_levelMeter_egrq6_5", d1 = "_levelMeterTrack
5514
5520
  P,
5515
5521
  {
5516
5522
  size: a ? void 0 : n,
5517
- className: v(e, a && v1.textSize0),
5523
+ className: C(e, a && v1.textSize0),
5518
5524
  ...s,
5519
5525
  children: t
5520
5526
  }
@@ -5545,7 +5551,7 @@ const C1 = "_selectContent_183an_2", y1 = "_selectTrigger_183an_68", k1 = "_soft
5545
5551
  showSelectIndicator: A = !0,
5546
5552
  maxWidth: p = "100%",
5547
5553
  placeholder: k = null,
5548
- ...f
5554
+ ...v
5549
5555
  }) => /* @__PURE__ */ g(he, { width: "100%", children: [
5550
5556
  e && /* @__PURE__ */ g(y, { mb: "2", align: "center", gap: "2", children: [
5551
5557
  /* @__PURE__ */ r(P, { size: "1", weight: "bold", children: e }),
@@ -5556,9 +5562,9 @@ const C1 = "_selectContent_183an_2", y1 = "_selectTrigger_183an_68", k1 = "_soft
5556
5562
  {
5557
5563
  onValueChange: t,
5558
5564
  defaultValue: s,
5559
- className: v(n),
5565
+ className: C(n),
5560
5566
  disabled: c || u,
5561
- ...f,
5567
+ ...v,
5562
5568
  children: [
5563
5569
  /* @__PURE__ */ r(
5564
5570
  pr,
@@ -5566,7 +5572,7 @@ const C1 = "_selectContent_183an_2", y1 = "_selectTrigger_183an_68", k1 = "_soft
5566
5572
  variant: l,
5567
5573
  color: "gray",
5568
5574
  size: i,
5569
- className: v(qe.selectTrigger, {
5575
+ className: C(qe.selectTrigger, {
5570
5576
  [qe.ghost]: l === "ghost",
5571
5577
  [qe.soft]: l === "soft"
5572
5578
  }),
@@ -5602,7 +5608,7 @@ const C1 = "_selectContent_183an_2", y1 = "_selectTrigger_183an_68", k1 = "_soft
5602
5608
  oi,
5603
5609
  {
5604
5610
  value: m.value,
5605
- className: v(qe.selectItem, {
5611
+ className: C(qe.selectItem, {
5606
5612
  [qe.hideIndicator]: !A,
5607
5613
  [qe.size1]: i === "1",
5608
5614
  [qe.size2]: i === "2"
@@ -5680,9 +5686,9 @@ const w1 = "_sliderTrack_bq3k4_29", R1 = "_sliderTrackSize1_bq3k4_40", N1 = "_sl
5680
5686
  disabled: A = !1,
5681
5687
  highContrast: p = !1,
5682
5688
  markers: k = [],
5683
- ...f
5689
+ ...v
5684
5690
  }) => {
5685
- const m = (C) => (C - l) / (c - l) * 100;
5691
+ const m = (f) => (f - l) / (c - l) * 100;
5686
5692
  return /* @__PURE__ */ g(he, { width: "100%", children: [
5687
5693
  e && /* @__PURE__ */ g(y, { mb: "2", justify: "between", align: "center", children: [
5688
5694
  /* @__PURE__ */ g(y, { align: "center", gap: "2", children: [
@@ -5709,12 +5715,12 @@ const w1 = "_sliderTrack_bq3k4_29", R1 = "_sliderTrackSize1_bq3k4_40", N1 = "_sl
5709
5715
  onValueChange: t,
5710
5716
  disabled: A,
5711
5717
  className: n,
5712
- ...f,
5718
+ ...v,
5713
5719
  children: /* @__PURE__ */ g(y, { className: Ce.sliderContainer, children: [
5714
5720
  /* @__PURE__ */ g(
5715
5721
  ho,
5716
5722
  {
5717
- className: v(Ce.sliderTrack, {
5723
+ className: C(Ce.sliderTrack, {
5718
5724
  [Ce.sliderTrackSize1]: h === "1",
5719
5725
  [Ce.sliderTrackSize2]: h === "2",
5720
5726
  [Ce.sliderTrackSize3]: h === "3"
@@ -5723,7 +5729,7 @@ const w1 = "_sliderTrack_bq3k4_29", R1 = "_sliderTrackSize1_bq3k4_40", N1 = "_sl
5723
5729
  /* @__PURE__ */ r(
5724
5730
  po,
5725
5731
  {
5726
- className: v(Ce.sliderRange, {
5732
+ className: C(Ce.sliderRange, {
5727
5733
  [Ce.sliderRangeAccent]: s === "accent",
5728
5734
  [Ce.sliderRangeNeutral]: s === "neutral",
5729
5735
  [Ce.sliderRangeHighContrastNeutral]: p && s === "neutral",
@@ -5734,7 +5740,7 @@ const w1 = "_sliderTrack_bq3k4_29", R1 = "_sliderTrackSize1_bq3k4_40", N1 = "_sl
5734
5740
  /* @__PURE__ */ r(
5735
5741
  mo,
5736
5742
  {
5737
- className: v(Ce.sliderThumb, {
5743
+ className: C(Ce.sliderThumb, {
5738
5744
  [Ce.sliderThumbSize1]: h === "1",
5739
5745
  [Ce.sliderThumbSize2]: h === "2",
5740
5746
  [Ce.sliderThumbSize3]: h === "3"
@@ -5744,14 +5750,14 @@ const w1 = "_sliderTrack_bq3k4_29", R1 = "_sliderTrackSize1_bq3k4_40", N1 = "_sl
5744
5750
  ]
5745
5751
  }
5746
5752
  ),
5747
- k.length > 0 && /* @__PURE__ */ r("div", { className: Ce.markersContainer, children: k.map((C, E) => /* @__PURE__ */ r(
5753
+ k.length > 0 && /* @__PURE__ */ r("div", { className: Ce.markersContainer, children: k.map((f, E) => /* @__PURE__ */ r(
5748
5754
  "div",
5749
5755
  {
5750
- className: v(Ce.marker, {
5756
+ className: C(Ce.marker, {
5751
5757
  [Ce.markerSize3]: h === "3"
5752
5758
  }),
5753
5759
  style: {
5754
- left: `${m(C)}%`
5760
+ left: `${m(f)}%`
5755
5761
  }
5756
5762
  },
5757
5763
  E
@@ -5777,7 +5783,7 @@ const L1 = ({
5777
5783
  inputVolume: A,
5778
5784
  onInputVolumeChange: p,
5779
5785
  inputVolumeDb: k,
5780
- inputLevel: f
5786
+ inputLevel: v
5781
5787
  }) => /* @__PURE__ */ g(y, { direction: "column", gap: "4", width: "200px", children: [
5782
5788
  /* @__PURE__ */ g(y, { gap: "1", direction: "column", children: [
5783
5789
  /* @__PURE__ */ r(j, { size: "2", mb: "1", weight: "medium", children: n._("Source") }),
@@ -5808,15 +5814,15 @@ const L1 = ({
5808
5814
  ] }),
5809
5815
  /* @__PURE__ */ g(y, { gap: "2", direction: "column", children: [
5810
5816
  /* @__PURE__ */ r(j, { size: "2", weight: "medium", children: n._("Input Level") }),
5811
- /* @__PURE__ */ r("div", { className: tt.levelMeter, children: /* @__PURE__ */ r("div", { className: tt.levelMeterTrack, children: /* @__PURE__ */ r("div", { className: tt.levelMeterRow, children: Array.from({ length: 17 }, (m, C) => {
5812
- const E = Math.max(0, (f - 5) / 25) * 17, B = C < E;
5817
+ /* @__PURE__ */ r("div", { className: tt.levelMeter, children: /* @__PURE__ */ r("div", { className: tt.levelMeterTrack, children: /* @__PURE__ */ r("div", { className: tt.levelMeterRow, children: Array.from({ length: 17 }, (m, f) => {
5818
+ const E = Math.max(0, (v - 5) / 25) * 17, B = f < E;
5813
5819
  let I = "low";
5814
- return C >= 15 ? I = "high" : C >= 11 && (I = "mid"), /* @__PURE__ */ r(
5820
+ return f >= 15 ? I = "high" : f >= 11 && (I = "mid"), /* @__PURE__ */ r(
5815
5821
  "div",
5816
5822
  {
5817
5823
  className: `${tt.levelMeterSegment} ${B ? `${tt.active} ${tt[I]}` : ""}`
5818
5824
  },
5819
- `level-${C}`
5825
+ `level-${f}`
5820
5826
  );
5821
5827
  }) }) }) })
5822
5828
  ] }),
@@ -5897,7 +5903,7 @@ const V1 = "_sectionExpander_t40ea_1", q1 = "_sectionExpanderHeader_t40ea_6", K1
5897
5903
  {
5898
5904
  width: "100%",
5899
5905
  direction: "column",
5900
- className: v(Jt.sectionExpander, t),
5906
+ className: C(Jt.sectionExpander, t),
5901
5907
  ...s,
5902
5908
  children: [
5903
5909
  /* @__PURE__ */ g(
@@ -5922,7 +5928,7 @@ const V1 = "_sectionExpander_t40ea_1", q1 = "_sectionExpanderHeader_t40ea_6", K1
5922
5928
  /* @__PURE__ */ r(
5923
5929
  Ic,
5924
5930
  {
5925
- className: v(Jt.sectionExpanderIcon, {
5931
+ className: C(Jt.sectionExpanderIcon, {
5926
5932
  [Jt.expanded]: a
5927
5933
  }),
5928
5934
  width: 16,
@@ -5956,7 +5962,7 @@ const Un = ({
5956
5962
  onValueChange: s,
5957
5963
  variant: "surface",
5958
5964
  radius: "medium",
5959
- className: v("customSegmentedControl", n, {
5965
+ className: C("customSegmentedControl", n, {
5960
5966
  hasIconSegmentedControl: a.some((l) => l.icon)
5961
5967
  }),
5962
5968
  ...i,
@@ -5964,7 +5970,7 @@ const Un = ({
5964
5970
  ai,
5965
5971
  {
5966
5972
  value: l.value,
5967
- className: v("customSegmentedControlItem", {
5973
+ className: C("customSegmentedControlItem", {
5968
5974
  hasIcon: l.icon
5969
5975
  }),
5970
5976
  children: [
@@ -6048,7 +6054,7 @@ const _1 = "_tooltipTriggerWrapper_1hj63_1", $1 = "_newSetlistItem_1hj63_6", ey
6048
6054
  /* @__PURE__ */ r(pa, { children: /* @__PURE__ */ r(zs, { asChild: !0, children: /* @__PURE__ */ g(
6049
6055
  Fn,
6050
6056
  {
6051
- className: v(
6057
+ className: C(
6052
6058
  Pt.TooltipContent,
6053
6059
  Pt[`TooltipContent--${s}`]
6054
6060
  ),
@@ -6056,7 +6062,7 @@ const _1 = "_tooltipTriggerWrapper_1hj63_1", $1 = "_newSetlistItem_1hj63_6", ey
6056
6062
  ...A,
6057
6063
  children: [
6058
6064
  /* @__PURE__ */ r(j, { size: "1", className: Pt.TooltipText, children: e }),
6059
- t && /* @__PURE__ */ r(j, { size: "0", className: v(
6065
+ t && /* @__PURE__ */ r(j, { size: "0", className: C(
6060
6066
  Pt.TooltipShortcut,
6061
6067
  Pt[`TooltipShortcut--${s}`]
6062
6068
  ), children: t }),
@@ -6073,7 +6079,7 @@ function Jy({ onExpand: n, className: e, style: t, collapsed: s = !1 }) {
6073
6079
  "button",
6074
6080
  {
6075
6081
  type: "button",
6076
- className: v(
6082
+ className: C(
6077
6083
  K.newSetlistItem,
6078
6084
  K.collapsedStackItem,
6079
6085
  K.collapsedTransition,
@@ -6101,11 +6107,11 @@ function Py({ onClick: n, className: e, collapsed: t = !1 }) {
6101
6107
  {
6102
6108
  width: 16,
6103
6109
  height: 16,
6104
- className: v(K.iconSwapLayer, K.iconVisible, K.plusIcon)
6110
+ className: C(K.iconSwapLayer, K.iconVisible, K.plusIcon)
6105
6111
  }
6106
6112
  ) }),
6107
6113
  text: "New Setlist",
6108
- className: v(K.newSetlistItemButton, K.collapsedTransition, e),
6114
+ className: C(K.newSetlistItemButton, K.collapsedTransition, e),
6109
6115
  collapsed: t
6110
6116
  }
6111
6117
  );
@@ -6156,7 +6162,7 @@ const Qi = ({
6156
6162
  collapsed: p = !1,
6157
6163
  isMobile: k = !1
6158
6164
  }) => {
6159
- const [f, m] = q(!1), C = () => {
6165
+ const [v, m] = q(!1), f = () => {
6160
6166
  m(!0);
6161
6167
  }, E = () => {
6162
6168
  m(!1);
@@ -6173,12 +6179,12 @@ const Qi = ({
6173
6179
  role: e ? "button" : void 0,
6174
6180
  tabIndex: e ? 0 : void 0,
6175
6181
  onClick: e,
6176
- className: v(K.newSetlistItem, t, {
6182
+ className: C(K.newSetlistItem, t, {
6177
6183
  [K.navItemSelected]: n,
6178
6184
  [K.collapsed]: p,
6179
6185
  [K.menuOpen]: c
6180
6186
  }),
6181
- onMouseEnter: C,
6187
+ onMouseEnter: f,
6182
6188
  onMouseLeave: E,
6183
6189
  onKeyDown: e ? (S) => {
6184
6190
  (S.key === "Enter" || S.key === " ") && (S.preventDefault(), e == null || e());
@@ -6190,7 +6196,7 @@ const Qi = ({
6190
6196
  {
6191
6197
  gap: "3",
6192
6198
  align: "center",
6193
- className: v(K.contentInner, {
6199
+ className: C(K.contentInner, {
6194
6200
  [K.collapsedInner]: p
6195
6201
  }),
6196
6202
  children: [
@@ -6207,7 +6213,7 @@ const Qi = ({
6207
6213
  y,
6208
6214
  {
6209
6215
  direction: "column",
6210
- className: v(K.textWrapper, {
6216
+ className: C(K.textWrapper, {
6211
6217
  [K.textWrapperHidden]: p
6212
6218
  }),
6213
6219
  children: [
@@ -6237,7 +6243,7 @@ const Qi = ({
6237
6243
  ]
6238
6244
  }
6239
6245
  ),
6240
- l && !p && (f || c) && /* @__PURE__ */ r(
6246
+ l && !p && (v || c) && /* @__PURE__ */ r(
6241
6247
  gn,
6242
6248
  {
6243
6249
  open: c,
@@ -6245,7 +6251,7 @@ const Qi = ({
6245
6251
  trigger: /* @__PURE__ */ r(
6246
6252
  y,
6247
6253
  {
6248
- className: v(K.dropdownTriggerWrapper, {
6254
+ className: C(K.dropdownTriggerWrapper, {
6249
6255
  [K.dropdownTriggerWrapperMobile]: k
6250
6256
  }),
6251
6257
  onPointerDown: B,
@@ -6271,16 +6277,16 @@ const Qi = ({
6271
6277
  t == null || t(x), l && i();
6272
6278
  }, A = () => {
6273
6279
  s == null || s(), l && i();
6274
- }, [p, k] = q(!1), [f, m] = q(!1), C = ee(null), E = ee(null), B = ee(null), I = 260, S = 4, b = a && s ? 1 : 0, w = a && !p, Q = w ? n.slice(0, S) : n, O = 2750, T = () => {
6275
- a && (C.current && (clearTimeout(C.current), C.current = null), E.current && (clearTimeout(E.current), E.current = null), m(!1));
6280
+ }, [p, k] = q(!1), [v, m] = q(!1), f = ee(null), E = ee(null), B = ee(null), I = 260, S = 4, b = a && s ? 1 : 0, w = a && !p, Q = w ? n.slice(0, S) : n, O = 2750, T = () => {
6281
+ a && (f.current && (clearTimeout(f.current), f.current = null), E.current && (clearTimeout(E.current), E.current = null), m(!1));
6276
6282
  }, D = () => {
6277
- a && p && (C.current && clearTimeout(C.current), C.current = setTimeout(() => {
6278
- C.current = null, m(!0), E.current = setTimeout(() => {
6283
+ a && p && (f.current && clearTimeout(f.current), f.current = setTimeout(() => {
6284
+ f.current = null, m(!0), E.current = setTimeout(() => {
6279
6285
  E.current = null, k(!1), m(!1);
6280
6286
  }, I);
6281
6287
  }, O));
6282
6288
  }, z = (x) => {
6283
- a && (x.stopPropagation(), C.current && (clearTimeout(C.current), C.current = null), m(!1), k(!0));
6289
+ a && (x.stopPropagation(), f.current && (clearTimeout(f.current), f.current = null), m(!1), k(!0));
6284
6290
  }, M = () => {
6285
6291
  a && k(!0);
6286
6292
  }, U = () => {
@@ -6291,7 +6297,7 @@ const Qi = ({
6291
6297
  }, 0);
6292
6298
  };
6293
6299
  de(() => () => {
6294
- C.current && clearTimeout(C.current), E.current && clearTimeout(E.current);
6300
+ f.current && clearTimeout(f.current), E.current && clearTimeout(E.current);
6295
6301
  }, []);
6296
6302
  const J = (x) => {
6297
6303
  if (!a) return;
@@ -6320,7 +6326,7 @@ const Qi = ({
6320
6326
  type: "scroll",
6321
6327
  scrollbars: "vertical",
6322
6328
  style: { flex: 1, minHeight: 0 },
6323
- className: v({
6329
+ className: C({
6324
6330
  [K.setlistsScrollArea]: a
6325
6331
  }),
6326
6332
  children: /* @__PURE__ */ r(
@@ -6336,10 +6342,10 @@ const Qi = ({
6336
6342
  y,
6337
6343
  {
6338
6344
  direction: "column",
6339
- className: v(K.setlistsContent, {
6345
+ className: C(K.setlistsContent, {
6340
6346
  [K.collapsedStack]: w,
6341
6347
  [K.collapsedMask]: a,
6342
- [K.collapsedShrinking]: f
6348
+ [K.collapsedShrinking]: v
6343
6349
  }),
6344
6350
  children: [
6345
6351
  s && (w ? /* @__PURE__ */ r(
@@ -6380,7 +6386,7 @@ const Qi = ({
6380
6386
  dropdownMenuOptions: x.dropdownMenuOptions,
6381
6387
  collapsed: a,
6382
6388
  isMobile: o,
6383
- className: v({
6389
+ className: C({
6384
6390
  [K.collapsedStackItem]: w,
6385
6391
  [K.collapsedTransition]: a
6386
6392
  }),
@@ -6448,17 +6454,17 @@ const Qi = ({
6448
6454
  }) => {
6449
6455
  const { isMobile: i, isOpen: l, open: c, close: u } = Ti(), [h, A] = q(!1), p = i ? !1 : t, k = () => {
6450
6456
  i || (A(!1), s((E) => !E));
6451
- }, f = () => {
6457
+ }, v = () => {
6452
6458
  i || A(!0);
6453
6459
  }, m = () => {
6454
6460
  i || A(!1);
6455
- }, C = (E) => {
6461
+ }, f = (E) => {
6456
6462
  p ? k() : a && a(E);
6457
6463
  };
6458
6464
  return /* @__PURE__ */ r(Lh, { value: { close: u, isMobile: i }, children: /* @__PURE__ */ g(
6459
6465
  "div",
6460
6466
  {
6461
- className: v(oe.root, {
6467
+ className: C(oe.root, {
6462
6468
  [oe.rootCollapsed]: p
6463
6469
  }),
6464
6470
  ...o,
@@ -6468,7 +6474,7 @@ const Qi = ({
6468
6474
  {
6469
6475
  align: "center",
6470
6476
  justify: "between",
6471
- className: v(oe.mobileTopBar, {
6477
+ className: C(oe.mobileTopBar, {
6472
6478
  [oe.mobileTopBarOpen]: i && l
6473
6479
  }),
6474
6480
  children: [
@@ -6503,14 +6509,14 @@ const Qi = ({
6503
6509
  /* @__PURE__ */ r(
6504
6510
  "div",
6505
6511
  {
6506
- className: v(oe.mobileDrawer, {
6512
+ className: C(oe.mobileDrawer, {
6507
6513
  [oe.mobileDrawerOpen]: i && l
6508
6514
  }),
6509
6515
  children: /* @__PURE__ */ r(
6510
6516
  y,
6511
6517
  {
6512
6518
  direction: "column",
6513
- className: v(oe.mobileDrawerContent, {
6519
+ className: C(oe.mobileDrawerContent, {
6514
6520
  [oe.mobileDrawerContentOpen]: i && l
6515
6521
  }),
6516
6522
  children: e
@@ -6523,7 +6529,7 @@ const Qi = ({
6523
6529
  {
6524
6530
  direction: "column",
6525
6531
  className: oe.desktopSidebar,
6526
- onMouseEnter: f,
6532
+ onMouseEnter: v,
6527
6533
  onMouseLeave: m,
6528
6534
  children: [
6529
6535
  /* @__PURE__ */ g(
@@ -6531,7 +6537,7 @@ const Qi = ({
6531
6537
  {
6532
6538
  align: "center",
6533
6539
  justify: "between",
6534
- className: v(oe.header, {
6540
+ className: C(oe.header, {
6535
6541
  [oe.headerCollapsed]: p
6536
6542
  }),
6537
6543
  children: [
@@ -6540,13 +6546,13 @@ const Qi = ({
6540
6546
  {
6541
6547
  align: "center",
6542
6548
  gap: "2",
6543
- onClick: C,
6549
+ onClick: f,
6544
6550
  style: { cursor: "pointer" },
6545
6551
  children: [
6546
6552
  /* @__PURE__ */ g(
6547
6553
  "div",
6548
6554
  {
6549
- className: v(oe.logoToggleContainer, {
6555
+ className: C(oe.logoToggleContainer, {
6550
6556
  [oe.logoToggleContainerCollapsed]: p
6551
6557
  }),
6552
6558
  children: [
@@ -6555,7 +6561,7 @@ const Qi = ({
6555
6561
  {
6556
6562
  width: 32,
6557
6563
  height: 17,
6558
- className: v(oe.logoInContainer, {
6564
+ className: C(oe.logoInContainer, {
6559
6565
  [oe.logoInContainerHidden]: p && h
6560
6566
  })
6561
6567
  }
@@ -6565,7 +6571,7 @@ const Qi = ({
6565
6571
  {
6566
6572
  width: 16,
6567
6573
  height: 16,
6568
- className: v(oe.toggleInContainer, {
6574
+ className: C(oe.toggleInContainer, {
6569
6575
  [oe.toggleInContainerVisible]: p && h
6570
6576
  })
6571
6577
  }
@@ -6577,7 +6583,7 @@ const Qi = ({
6577
6583
  Rr,
6578
6584
  {
6579
6585
  height: 12.269,
6580
- className: v(oe.moisesIcon, {
6586
+ className: C(oe.moisesIcon, {
6581
6587
  [oe.moisesIconHidden]: p
6582
6588
  })
6583
6589
  }
@@ -6591,7 +6597,7 @@ const Qi = ({
6591
6597
  align: "center",
6592
6598
  justify: "center",
6593
6599
  onClick: k,
6594
- className: v(oe.toggleButton, {
6600
+ className: C(oe.toggleButton, {
6595
6601
  [oe.toggleButtonHidden]: p
6596
6602
  }),
6597
6603
  children: /* @__PURE__ */ r(Nr, { width: 16, height: 16 })
@@ -6633,7 +6639,7 @@ const lk = "_sectionTitle_bwlze_1", ck = "_separator_bwlze_17", qr = {
6633
6639
  onNewSetlistClick: h,
6634
6640
  children: A
6635
6641
  }) => {
6636
- const [p, k] = q(!1), { isMobile: f } = Ti(), m = f ? !1 : p;
6642
+ const [p, k] = q(!1), { isMobile: v } = Ti(), m = v ? !1 : p;
6637
6643
  return /* @__PURE__ */ g(pe, { children: [
6638
6644
  /* @__PURE__ */ g(Di, { isCollapsed: p, onCollapsedChange: k, children: [
6639
6645
  /* @__PURE__ */ g(y, { direction: "column", children: [
@@ -6663,7 +6669,7 @@ const lk = "_sectionTitle_bwlze_1", ck = "_separator_bwlze_17", qr = {
6663
6669
  onSetlistClick: u,
6664
6670
  onNewSetlistClick: h,
6665
6671
  collapsed: m,
6666
- isMobile: f
6672
+ isMobile: v
6667
6673
  }
6668
6674
  )
6669
6675
  ]
@@ -6736,7 +6742,7 @@ const lk = "_sectionTitle_bwlze_1", ck = "_separator_bwlze_17", qr = {
6736
6742
  onChange: e,
6737
6743
  placeholder: t,
6738
6744
  disabled: c,
6739
- className: v(St.textArea, o, {
6745
+ className: C(St.textArea, o, {
6740
6746
  [St.variantClassic]: i === "classic",
6741
6747
  [St.variantSoft]: i === "soft",
6742
6748
  [St.disabled]: c,
@@ -6779,7 +6785,7 @@ const In = (n) => {
6779
6785
  { value: "strings", label: n._("Strings"), icon: Ks },
6780
6786
  { value: "generic", label: n._("Others"), icon: Bc }
6781
6787
  ], Ek = {
6782
- steps: 30,
6788
+ steps: 50,
6783
6789
  guidanceScale: null,
6784
6790
  autoGuidanceScale: !0,
6785
6791
  instrument: "generic",
@@ -6827,7 +6833,7 @@ const In = (n) => {
6827
6833
  onFetchSuggestedTags: h,
6828
6834
  suggestedTagsLoading: A
6829
6835
  }) => {
6830
- const p = ee(null), k = ee(null), [f, m] = q(!1), C = N((b) => {
6836
+ const p = ee(null), k = ee(null), [v, m] = q(!1), f = N((b) => {
6831
6837
  const w = b.target, Q = w.scrollLeft + w.clientWidth >= w.scrollWidth - 2;
6832
6838
  m(Q);
6833
6839
  }, []), E = !!i || !!c, B = N(
@@ -6968,13 +6974,13 @@ const In = (n) => {
6968
6974
  "div",
6969
6975
  {
6970
6976
  className: Fe.tagsWrapper,
6971
- "data-scrolled-end": f || void 0,
6977
+ "data-scrolled-end": v || void 0,
6972
6978
  children: /* @__PURE__ */ r(
6973
6979
  "div",
6974
6980
  {
6975
6981
  ref: k,
6976
6982
  className: Fe.tagsContainer,
6977
- onScroll: C,
6983
+ onScroll: f,
6978
6984
  children: u.map((b) => /* @__PURE__ */ r(
6979
6985
  ke,
6980
6986
  {
@@ -7108,14 +7114,14 @@ function Pk({
7108
7114
  var l, c, u, h, A, p;
7109
7115
  const o = n.customizeCreativeFreedom || !1, i = N(
7110
7116
  async (k) => {
7111
- var f, m, C;
7117
+ var v, m, f;
7112
7118
  await a() || s({
7113
7119
  ...n,
7114
7120
  customizeCreativeFreedom: k,
7115
7121
  // initialize defaults for sliders when enabling
7116
- guidanceClap: k ? n.guidanceClap ?? ((f = je[n.instrument]) == null ? void 0 : f.clap) ?? 4 : null,
7122
+ guidanceClap: k ? n.guidanceClap ?? ((v = je[n.instrument]) == null ? void 0 : v.clap) ?? 4 : null,
7117
7123
  guidanceContextAudio: k ? n.guidanceContextAudio ?? ((m = je[n.instrument]) == null ? void 0 : m.context) ?? 4 : null,
7118
- guidanceContextChroma: k ? n.instrument === "drums" ? null : n.guidanceContextChroma ?? ((C = je[n.instrument]) == null ? void 0 : C.chroma) ?? 4 : null
7124
+ guidanceContextChroma: k ? n.instrument === "drums" ? null : n.guidanceContextChroma ?? ((f = je[n.instrument]) == null ? void 0 : f.chroma) ?? 4 : null
7119
7125
  });
7120
7126
  },
7121
7127
  [n, s, a]
@@ -7271,7 +7277,7 @@ function zk({
7271
7277
  variant: "soft",
7272
7278
  size: "2",
7273
7279
  disabled: s,
7274
- className: v([Gr.customIconButton], {
7280
+ className: C([Gr.customIconButton], {
7275
7281
  [Gr.disabledIconButton]: s
7276
7282
  }),
7277
7283
  children: /* @__PURE__ */ r(ya, { width: 16, height: 16 })
@@ -7469,9 +7475,9 @@ const Nn = {
7469
7475
  onClickUpgradeConcurrency: A,
7470
7476
  error: p,
7471
7477
  generateFromTrack: k,
7472
- inpaintingTrack: f,
7478
+ inpaintingTrack: v,
7473
7479
  generateFromSelectionTrack: m,
7474
- unmutedTracksCount: C,
7480
+ unmutedTracksCount: f,
7475
7481
  onMountConcurrency: E,
7476
7482
  onClear: B,
7477
7483
  onInspireMe: I,
@@ -7489,10 +7495,10 @@ const Nn = {
7489
7495
  (le) => le.instrument === n.instrument
7490
7496
  ), H = _(() => {
7491
7497
  const le = M === "2" && R, be = M === "1" || !R;
7492
- return u || C === 0 || le && !n.presetId || be && !n.conditioningText && !n.conditioningAudio;
7498
+ return u || f === 0 || le && !n.presetId || be && !n.conditioningText && !n.conditioningAudio;
7493
7499
  }, [
7494
7500
  u,
7495
- C,
7501
+ f,
7496
7502
  M,
7497
7503
  R,
7498
7504
  n.presetId,
@@ -7705,9 +7711,9 @@ const Nn = {
7705
7711
  Wk,
7706
7712
  {
7707
7713
  generateFromTrack: k,
7708
- inpaintingTrack: f,
7714
+ inpaintingTrack: v,
7709
7715
  generateFromSelectionTrack: m,
7710
- unmutedTracksCount: C,
7716
+ unmutedTracksCount: f,
7711
7717
  onClear: B,
7712
7718
  i18n: i
7713
7719
  }
@@ -7862,10 +7868,10 @@ const Xr = {
7862
7868
  showHiFiPaywall: A,
7863
7869
  onClearTrack: p,
7864
7870
  showStemsPaywall: k,
7865
- showHiFiSwitch: f
7871
+ showHiFiSwitch: v
7866
7872
  }) => {
7867
7873
  var S;
7868
- const { submitted: m, handleSubmit: C } = Ir(i), E = [
7874
+ const { submitted: m, handleSubmit: f } = Ir(i), E = [
7869
7875
  {
7870
7876
  value: "freeVocalInstruments",
7871
7877
  name: n._("Vocals & Instruments"),
@@ -8054,9 +8060,9 @@ const Xr = {
8054
8060
  title: n._("Separate Stems"),
8055
8061
  disabled: !((S = l == null ? void 0 : l.selectedStems) != null && S.length) || !(l != null && l.trackName),
8056
8062
  loading: u,
8057
- onClick: C,
8063
+ onClick: f,
8058
8064
  besideFooter: /* @__PURE__ */ g(y, { align: "center", gap: "2", children: [
8059
- f && /* @__PURE__ */ r(it, { checked: !1, onCheckedChange: A }),
8065
+ v && /* @__PURE__ */ r(it, { checked: !1, onCheckedChange: A }),
8060
8066
  /* @__PURE__ */ r(Dc, {})
8061
8067
  ] }),
8062
8068
  color: "cyan",
@@ -8262,10 +8268,10 @@ const Xr = {
8262
8268
  startSlot: A,
8263
8269
  endSlot: p,
8264
8270
  error: k,
8265
- secondaryText: f,
8271
+ secondaryText: v,
8266
8272
  ...m
8267
8273
  }) => {
8268
- const C = A || (u ? /* @__PURE__ */ r(u, { width: 16, height: 16, className: He.icon }) : null);
8274
+ const f = A || (u ? /* @__PURE__ */ r(u, { width: 16, height: 16, className: He.icon }) : null);
8269
8275
  return /* @__PURE__ */ g(y, { direction: "column", width: "100%", height: "100%", gap: "1", children: [
8270
8276
  s && /* @__PURE__ */ g(y, { align: "center", gap: "2", children: [
8271
8277
  /* @__PURE__ */ r(P, { size: c, weight: "medium", children: s }),
@@ -8278,7 +8284,7 @@ const Xr = {
8278
8284
  value: n,
8279
8285
  onChange: e,
8280
8286
  placeholder: t,
8281
- className: v(He.TextField, o, {
8287
+ className: C(He.TextField, o, {
8282
8288
  [He.Disabled]: i,
8283
8289
  [He.ReadOnly]: l,
8284
8290
  [He.focusRing]: h || k,
@@ -8289,20 +8295,20 @@ const Xr = {
8289
8295
  disabled: i,
8290
8296
  ...m,
8291
8297
  children: [
8292
- C && /* @__PURE__ */ r(pi, { children: C }),
8298
+ f && /* @__PURE__ */ r(pi, { children: f }),
8293
8299
  p && /* @__PURE__ */ r("div", { className: He.endSlot, children: p })
8294
8300
  ]
8295
8301
  }
8296
8302
  ),
8297
- f && /* @__PURE__ */ r(
8303
+ v && /* @__PURE__ */ r(
8298
8304
  P,
8299
8305
  {
8300
8306
  size: "1",
8301
8307
  weight: "regular",
8302
- className: v(He.secondaryText, {
8308
+ className: C(He.secondaryText, {
8303
8309
  [He.errorText]: k
8304
8310
  }),
8305
- children: f
8311
+ children: v
8306
8312
  }
8307
8313
  )
8308
8314
  ] });
@@ -8597,7 +8603,7 @@ const fE = "_button_1270x_1", vE = "_active_1270x_7", CE = "_mute_1270x_16", yE
8597
8603
  return /* @__PURE__ */ r(
8598
8604
  ke,
8599
8605
  {
8600
- className: v(bn.button, t, {
8606
+ className: C(bn.button, t, {
8601
8607
  [bn.mute]: a,
8602
8608
  [bn.solo]: !a,
8603
8609
  [bn.active]: e
@@ -8650,18 +8656,18 @@ const kE = "_track_1xe9y_1", EE = "_leftIcon_1xe9y_9", SE = "_name_1xe9y_15", IE
8650
8656
  // State change listeners
8651
8657
  onVolumeChange: p,
8652
8658
  onPanChange: k,
8653
- onMutedChange: f,
8659
+ onMutedChange: v,
8654
8660
  onSoloChange: m,
8655
- onOpenChange: C,
8661
+ onOpenChange: f,
8656
8662
  // Children (having content means group/takelanes)
8657
8663
  children: E
8658
8664
  }) => {
8659
- const B = !!E, I = N(() => C == null ? void 0 : C(!A), [A, C]);
8660
- return /* @__PURE__ */ g("div", { className: v(me.container, { [me.isOpen]: A }), children: [
8665
+ const B = !!E, I = N(() => f == null ? void 0 : f(!A), [A, f]);
8666
+ return /* @__PURE__ */ g("div", { className: C(me.container, { [me.isOpen]: A }), children: [
8661
8667
  /* @__PURE__ */ g(
8662
8668
  "div",
8663
8669
  {
8664
- className: v(me.track, {
8670
+ className: C(me.track, {
8665
8671
  [me.isParentTrack]: B,
8666
8672
  [me.isCompact]: i
8667
8673
  }),
@@ -8741,7 +8747,7 @@ const kE = "_track_1xe9y_1", EE = "_leftIcon_1xe9y_9", SE = "_name_1xe9y_15", IE
8741
8747
  className: me.rightButton,
8742
8748
  variant: "mute",
8743
8749
  isActive: u,
8744
- onChange: f
8750
+ onChange: v
8745
8751
  }
8746
8752
  ),
8747
8753
  /* @__PURE__ */ r(
@@ -8782,11 +8788,11 @@ function XS({ schema: n }) {
8782
8788
  }
8783
8789
  for (const m of i.current) m(e);
8784
8790
  }, [e]);
8785
- const c = N((m, C) => {
8786
- t((E) => ({ ...E, [m]: C })), a((E) => ({ ...E, [m]: null }));
8787
- }, []), u = (m, C) => {
8791
+ const c = N((m, f) => {
8792
+ t((E) => ({ ...E, [m]: f })), a((E) => ({ ...E, [m]: null }));
8793
+ }, []), u = (m, f) => {
8788
8794
  const E = e[m], B = (I) => c(m, I);
8789
- return C === "checkbox" || C === "switch" ? { checked: !!E, onCheckedChange: B } : { value: E ?? "", onChange: (I) => {
8795
+ return f === "checkbox" || f === "switch" ? { checked: !!E, onCheckedChange: B } : { value: E ?? "", onChange: (I) => {
8790
8796
  var S;
8791
8797
  return B(((S = I == null ? void 0 : I.target) == null ? void 0 : S.value) ?? I);
8792
8798
  } };
@@ -8794,24 +8800,24 @@ function XS({ schema: n }) {
8794
8800
  const m = n.safeParse(e);
8795
8801
  if (m.success)
8796
8802
  return a({}), { isValid: !0, data: m.data };
8797
- const C = {};
8803
+ const f = {};
8798
8804
  for (const E of m.error.issues) {
8799
8805
  const B = E.path.join(".");
8800
- C[B] || (C[B] = E.message);
8806
+ f[B] || (f[B] = E.message);
8801
8807
  }
8802
- return a(C), { isValid: !1, data: e };
8808
+ return a(f), { isValid: !1, data: e };
8803
8809
  }, A = N((m) => (i.current.push(m), () => {
8804
- i.current = i.current.filter((C) => C !== m);
8810
+ i.current = i.current.filter((f) => f !== m);
8805
8811
  }), []), p = (m) => {
8806
- const C = s[m];
8807
- return C ? /* @__PURE__ */ r(j, { size: "1", color: "red", children: C }) : null;
8812
+ const f = s[m];
8813
+ return f ? /* @__PURE__ */ r(j, { size: "1", color: "red", children: f }) : null;
8808
8814
  }, k = (m) => {
8809
8815
  t(m ?? n.parse({})), a({});
8810
- }, f = N(
8816
+ }, v = N(
8811
8817
  (m) => /* @__PURE__ */ r(jE, { ...m, errorsRef: o }),
8812
8818
  []
8813
8819
  );
8814
- return { connectField: u, Field: f, error: p, values: e, set: c, reset: k, getValues: h, watchValues: A };
8820
+ return { connectField: u, Field: v, error: p, values: e, set: c, reset: k, getValues: h, watchValues: A };
8815
8821
  }
8816
8822
  const WE = "_overlay_9c05p_1", LE = "_showOverlay_9c05p_18", Cs = {
8817
8823
  overlay: WE,
@@ -8847,7 +8853,7 @@ const VE = ({ isPlaying: n, image: e, name: t, children: s }) => {
8847
8853
  /* @__PURE__ */ r(
8848
8854
  "div",
8849
8855
  {
8850
- className: v(Cs.overlay, {
8856
+ className: C(Cs.overlay, {
8851
8857
  [Cs.showOverlay]: n || a
8852
8858
  }),
8853
8859
  children: s
@@ -9229,11 +9235,11 @@ class _E extends fn {
9229
9235
  };
9230
9236
  const A = (p) => {
9231
9237
  if (p.button !== o || (c.set(p.pointerId, p), c.size > 1)) return;
9232
- let k = p.clientX, f = p.clientY, m = !1;
9233
- const C = Date.now(), E = t.getBoundingClientRect(), { left: B, top: I } = E, S = (T) => {
9234
- if (T.defaultPrevented || c.size > 1 || u && Date.now() - C < i) return;
9235
- const D = T.clientX, z = T.clientY, M = D - k, U = z - f;
9236
- (m || Math.abs(M) > a || Math.abs(U) > a) && (T.preventDefault(), T.stopPropagation(), m || (l.set({ type: "start", x: k - B, y: f - I }), m = !0), l.set({ type: "move", x: D - B, y: z - I, deltaX: M, deltaY: U }), k = D, f = z);
9238
+ let k = p.clientX, v = p.clientY, m = !1;
9239
+ const f = Date.now(), E = t.getBoundingClientRect(), { left: B, top: I } = E, S = (T) => {
9240
+ if (T.defaultPrevented || c.size > 1 || u && Date.now() - f < i) return;
9241
+ const D = T.clientX, z = T.clientY, M = D - k, U = z - v;
9242
+ (m || Math.abs(M) > a || Math.abs(U) > a) && (T.preventDefault(), T.stopPropagation(), m || (l.set({ type: "start", x: k - B, y: v - I }), m = !0), l.set({ type: "move", x: D - B, y: z - I, deltaX: M, deltaY: U }), k = D, v = z);
9237
9243
  }, b = (T) => {
9238
9244
  if (c.delete(T.pointerId), m) {
9239
9245
  const D = T.clientX, z = T.clientY;
@@ -9411,17 +9417,17 @@ class _E extends fn {
9411
9417
  var e;
9412
9418
  }
9413
9419
  renderBarWaveform(e, t, s, a) {
9414
- const { width: o, height: i } = s.canvas, { halfHeight: l, barWidth: c, barRadius: u, barIndexScale: h, barSpacing: A, barMinHeight: p } = function({ width: f, height: m, length: C, options: E, pixelRatio: B }) {
9420
+ const { width: o, height: i } = s.canvas, { halfHeight: l, barWidth: c, barRadius: u, barIndexScale: h, barSpacing: A, barMinHeight: p } = function({ width: v, height: m, length: f, options: E, pixelRatio: B }) {
9415
9421
  const I = m / 2, S = E.barWidth ? E.barWidth * B : 1, b = E.barGap ? E.barGap * B : E.barWidth ? S / 2 : 0, w = S + b || 1;
9416
- return { halfHeight: I, barWidth: S, barGap: b, barRadius: E.barRadius || 0, barMinHeight: E.barMinHeight ? E.barMinHeight * B : 0, barIndexScale: C > 0 ? f / w / C : 0, barSpacing: w };
9417
- }({ width: o, height: i, length: (e[0] || []).length, options: t, pixelRatio: this.getPixelRatio() }), k = function({ channelData: f, barIndexScale: m, barSpacing: C, barWidth: E, halfHeight: B, vScale: I, canvasHeight: S, barAlign: b, barMinHeight: w }) {
9418
- const Q = f[0] || [], O = f[1] || Q, T = Q.length, D = [];
9422
+ return { halfHeight: I, barWidth: S, barGap: b, barRadius: E.barRadius || 0, barMinHeight: E.barMinHeight ? E.barMinHeight * B : 0, barIndexScale: f > 0 ? v / w / f : 0, barSpacing: w };
9423
+ }({ width: o, height: i, length: (e[0] || []).length, options: t, pixelRatio: this.getPixelRatio() }), k = function({ channelData: v, barIndexScale: m, barSpacing: f, barWidth: E, halfHeight: B, vScale: I, canvasHeight: S, barAlign: b, barMinHeight: w }) {
9424
+ const Q = v[0] || [], O = v[1] || Q, T = Q.length, D = [];
9419
9425
  let z = 0, M = 0, U = 0;
9420
9426
  for (let J = 0; J <= T; J++) {
9421
9427
  const x = Math.round(J * m);
9422
9428
  if (x > z) {
9423
9429
  const { topHeight: Z, totalHeight: R } = XE({ maxTop: M, maxBottom: U, halfHeight: B, vScale: I, barMinHeight: w, barAlign: b }), H = YE({ barAlign: b, halfHeight: B, topHeight: Z, totalHeight: R, canvasHeight: S });
9424
- D.push({ x: z * C, y: H, width: E, height: R }), z = x, M = 0, U = 0;
9430
+ D.push({ x: z * f, y: H, width: E, height: R }), z = x, M = 0, U = 0;
9425
9431
  }
9426
9432
  const L = Math.abs(Q[J] || 0), G = Math.abs(O[J] || 0);
9427
9433
  L > M && (M = L), G > U && (U = G);
@@ -9429,22 +9435,22 @@ class _E extends fn {
9429
9435
  return D;
9430
9436
  }({ channelData: e, barIndexScale: h, barSpacing: A, barWidth: c, halfHeight: l, vScale: a, canvasHeight: i, barAlign: t.barAlign, barMinHeight: p });
9431
9437
  s.beginPath();
9432
- for (const f of k) u && "roundRect" in s ? s.roundRect(f.x, f.y, f.width, f.height, u) : s.rect(f.x, f.y, f.width, f.height);
9438
+ for (const v of k) u && "roundRect" in s ? s.roundRect(v.x, v.y, v.width, v.height, u) : s.rect(v.x, v.y, v.width, v.height);
9433
9439
  s.fill(), s.closePath();
9434
9440
  }
9435
9441
  renderLineWaveform(e, t, s, a) {
9436
9442
  const { width: o, height: i } = s.canvas, l = function({ channelData: c, width: u, height: h, vScale: A }) {
9437
9443
  const p = h / 2, k = c[0] || [];
9438
- return [k, c[1] || k].map((f, m) => {
9439
- const C = f.length, E = C ? u / C : 0, B = p, I = m === 0 ? -1 : 1, S = [{ x: 0, y: B }];
9444
+ return [k, c[1] || k].map((v, m) => {
9445
+ const f = v.length, E = f ? u / f : 0, B = p, I = m === 0 ? -1 : 1, S = [{ x: 0, y: B }];
9440
9446
  let b = 0, w = 0;
9441
- for (let Q = 0; Q <= C; Q++) {
9447
+ for (let Q = 0; Q <= f; Q++) {
9442
9448
  const O = Math.round(Q * E);
9443
9449
  if (O > b) {
9444
9450
  const D = B + (Math.round(w * p * A) || 1) * I;
9445
9451
  S.push({ x: b, y: D }), b = O, w = 0;
9446
9452
  }
9447
- const T = Math.abs(f[Q] || 0);
9453
+ const T = Math.abs(v[Q] || 0);
9448
9454
  T > w && (w = T);
9449
9455
  }
9450
9456
  return S.push({ x: b, y: B }), S;
@@ -9470,7 +9476,7 @@ class _E extends fn {
9470
9476
  if (!A || A.length === 0) return h;
9471
9477
  let p = c ?? 0;
9472
9478
  if (!c) for (let k = 0; k < A.length; k++) {
9473
- const f = (u = A[k]) !== null && u !== void 0 ? u : 0, m = Math.abs(f);
9479
+ const v = (u = A[k]) !== null && u !== void 0 ? u : 0, m = Math.abs(v);
9474
9480
  m > p && (p = m);
9475
9481
  }
9476
9482
  return p ? h / p : h;
@@ -9487,35 +9493,35 @@ class _E extends fn {
9487
9493
  }
9488
9494
  }
9489
9495
  renderMultiCanvas(e, t, s, a, o, i) {
9490
- const l = this.getPixelRatio(), { clientWidth: c } = this.scrollContainer, u = s / l, h = function({ clientWidth: f, totalWidth: m, options: C }) {
9491
- return _r(Math.min(8e3, f, m), C);
9496
+ const l = this.getPixelRatio(), { clientWidth: c } = this.scrollContainer, u = s / l, h = function({ clientWidth: v, totalWidth: m, options: f }) {
9497
+ return _r(Math.min(8e3, v, m), f);
9492
9498
  }({ clientWidth: c, totalWidth: u, options: t });
9493
9499
  let A = {};
9494
9500
  if (h === 0) return;
9495
- const p = (f) => {
9496
- if (f < 0 || f >= k || A[f]) return;
9497
- A[f] = !0;
9498
- const m = f * h;
9499
- let C = Math.min(u - m, h);
9500
- if (C = _r(C, t), C <= 0) return;
9501
+ const p = (v) => {
9502
+ if (v < 0 || v >= k || A[v]) return;
9503
+ A[v] = !0;
9504
+ const m = v * h;
9505
+ let f = Math.min(u - m, h);
9506
+ if (f = _r(f, t), f <= 0) return;
9501
9507
  const E = function({ channelData: B, offset: I, clampedWidth: S, totalWidth: b }) {
9502
9508
  return B.map((w) => {
9503
9509
  const Q = Math.floor(I / b * w.length), O = Math.floor((I + S) / b * w.length);
9504
9510
  return w.slice(Q, O);
9505
9511
  });
9506
- }({ channelData: e, offset: m, clampedWidth: C, totalWidth: u });
9507
- this.renderSingleCanvas(E, t, C, a, m, o, i);
9512
+ }({ channelData: e, offset: m, clampedWidth: f, totalWidth: u });
9513
+ this.renderSingleCanvas(E, t, f, a, m, o, i);
9508
9514
  }, k = Math.ceil(u / h);
9509
9515
  if (!this.isScrollable) {
9510
- for (let f = 0; f < k; f++) p(f);
9516
+ for (let v = 0; v < k; v++) p(v);
9511
9517
  return;
9512
9518
  }
9513
- if ($r({ scrollLeft: this.scrollContainer.scrollLeft, totalWidth: u, numCanvases: k }).forEach((f) => p(f)), k > 1) {
9514
- const f = this.on("scroll", () => {
9519
+ if ($r({ scrollLeft: this.scrollContainer.scrollLeft, totalWidth: u, numCanvases: k }).forEach((v) => p(v)), k > 1) {
9520
+ const v = this.on("scroll", () => {
9515
9521
  const { scrollLeft: m } = this.scrollContainer;
9516
- Object.keys(A).length > 10 && (o.innerHTML = "", i.innerHTML = "", A = {}), $r({ scrollLeft: m, totalWidth: u, numCanvases: k }).forEach((C) => p(C));
9522
+ Object.keys(A).length > 10 && (o.innerHTML = "", i.innerHTML = "", A = {}), $r({ scrollLeft: m, totalWidth: u, numCanvases: k }).forEach((f) => p(f));
9517
9523
  });
9518
- this.unsubscribeOnScroll.push(f);
9524
+ this.unsubscribeOnScroll.push(v);
9519
9525
  }
9520
9526
  }
9521
9527
  renderChannel(e, t, s, a) {
@@ -9523,8 +9529,8 @@ class _E extends fn {
9523
9529
  var p = {};
9524
9530
  for (var k in h) Object.prototype.hasOwnProperty.call(h, k) && A.indexOf(k) < 0 && (p[k] = h[k]);
9525
9531
  if (h != null && typeof Object.getOwnPropertySymbols == "function") {
9526
- var f = 0;
9527
- for (k = Object.getOwnPropertySymbols(h); f < k.length; f++) A.indexOf(k[f]) < 0 && Object.prototype.propertyIsEnumerable.call(h, k[f]) && (p[k[f]] = h[k[f]]);
9532
+ var v = 0;
9533
+ for (k = Object.getOwnPropertySymbols(h); v < k.length; v++) A.indexOf(k[v]) < 0 && Object.prototype.propertyIsEnumerable.call(h, k[v]) && (p[k[v]] = h[k[v]]);
9528
9534
  }
9529
9535
  return p;
9530
9536
  }(t, ["overlay"]);
@@ -9538,8 +9544,8 @@ class _E extends fn {
9538
9544
  var t;
9539
9545
  this.timeouts.forEach((u) => u()), this.timeouts = [], this.canvasWrapper.innerHTML = "", this.progressWrapper.innerHTML = "", this.options.width != null && (this.scrollContainer.style.width = typeof this.options.width == "number" ? `${this.options.width}px` : this.options.width);
9540
9546
  const s = this.getPixelRatio(), a = this.scrollContainer.clientWidth, { scrollWidth: o, isScrollable: i, useParentWidth: l, width: c } = function({ duration: u, minPxPerSec: h = 0, parentWidth: A, fillParent: p, pixelRatio: k }) {
9541
- const f = Math.ceil(u * h), m = f > A, C = !!(p && !m);
9542
- return { scrollWidth: f, isScrollable: m, useParentWidth: C, width: (C ? A : f) * k };
9547
+ const v = Math.ceil(u * h), m = v > A, f = !!(p && !m);
9548
+ return { scrollWidth: v, isScrollable: m, useParentWidth: f, width: (f ? A : v) * k };
9543
9549
  }({ duration: e.duration, minPxPerSec: this.options.minPxPerSec || 0, parentWidth: a, fillParent: this.options.fillParent, pixelRatio: s });
9544
9550
  if (this.isScrollable = i, this.wrapper.style.width = l ? "100%" : `${o}px`, this.scrollContainer.style.overflowX = this.isScrollable ? "auto" : "hidden", this.scrollContainer.classList.toggle("noScrollbar", !!this.options.hideScrollbar), this.cursor.style.backgroundColor = `${this.options.cursorColor || this.options.progressColor}`, this.cursor.style.width = `${this.options.cursorWidth}px`, this.audioData = e, this.emit("render"), this.options.splitChannels) for (let u = 0; u < e.numberOfChannels; u++) {
9545
9551
  const h = Object.assign(Object.assign({}, this.options), (t = this.options.splitChannels) === null || t === void 0 ? void 0 : t[u]);
@@ -9752,14 +9758,14 @@ class An extends GE {
9752
9758
  super({ media: t, mediaControls: e.mediaControls, autoplay: e.autoplay, playbackRate: e.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this.reactiveCleanups = [], this.options = Object.assign({}, eS, e);
9753
9759
  const { state: s, actions: a } = function(l) {
9754
9760
  var c, u, h, A, p, k;
9755
- const f = (c = l == null ? void 0 : l.currentTime) !== null && c !== void 0 ? c : Ae(0), m = (u = l == null ? void 0 : l.duration) !== null && u !== void 0 ? u : Ae(0), C = (h = l == null ? void 0 : l.isPlaying) !== null && h !== void 0 ? h : Ae(!1), E = (A = l == null ? void 0 : l.isSeeking) !== null && A !== void 0 ? A : Ae(!1), B = (p = l == null ? void 0 : l.volume) !== null && p !== void 0 ? p : Ae(1), I = (k = l == null ? void 0 : l.playbackRate) !== null && k !== void 0 ? k : Ae(1), S = Ae(null), b = Ae(null), w = Ae(""), Q = Ae(0), O = Ae(0), T = It(() => !C.value, [C]), D = It(() => S.value !== null, [S]), z = It(() => D.value && m.value > 0, [D, m]), M = It(() => f.value, [f]), U = It(() => m.value > 0 ? f.value / m.value : 0, [f, m]);
9756
- return { state: { currentTime: f, duration: m, isPlaying: C, isPaused: T, isSeeking: E, volume: B, playbackRate: I, audioBuffer: S, peaks: b, url: w, zoom: Q, scrollPosition: O, canPlay: D, isReady: z, progress: M, progressPercent: U }, actions: { setCurrentTime: (J) => {
9761
+ const v = (c = l == null ? void 0 : l.currentTime) !== null && c !== void 0 ? c : Ae(0), m = (u = l == null ? void 0 : l.duration) !== null && u !== void 0 ? u : Ae(0), f = (h = l == null ? void 0 : l.isPlaying) !== null && h !== void 0 ? h : Ae(!1), E = (A = l == null ? void 0 : l.isSeeking) !== null && A !== void 0 ? A : Ae(!1), B = (p = l == null ? void 0 : l.volume) !== null && p !== void 0 ? p : Ae(1), I = (k = l == null ? void 0 : l.playbackRate) !== null && k !== void 0 ? k : Ae(1), S = Ae(null), b = Ae(null), w = Ae(""), Q = Ae(0), O = Ae(0), T = It(() => !f.value, [f]), D = It(() => S.value !== null, [S]), z = It(() => D.value && m.value > 0, [D, m]), M = It(() => v.value, [v]), U = It(() => m.value > 0 ? v.value / m.value : 0, [v, m]);
9762
+ return { state: { currentTime: v, duration: m, isPlaying: f, isPaused: T, isSeeking: E, volume: B, playbackRate: I, audioBuffer: S, peaks: b, url: w, zoom: Q, scrollPosition: O, canPlay: D, isReady: z, progress: M, progressPercent: U }, actions: { setCurrentTime: (J) => {
9757
9763
  const x = Math.max(0, Math.min(m.value || 1 / 0, J));
9758
- f.set(x);
9764
+ v.set(x);
9759
9765
  }, setDuration: (J) => {
9760
9766
  m.set(Math.max(0, J));
9761
9767
  }, setPlaying: (J) => {
9762
- C.set(J);
9768
+ f.set(J);
9763
9769
  }, setSeeking: (J) => {
9764
9770
  E.set(J);
9765
9771
  }, setVolume: (J) => {
@@ -9990,8 +9996,8 @@ class An extends GE {
9990
9996
  const A = l.slice(Math.floor(h * u), Math.ceil((h + 1) * u));
9991
9997
  let p = 0;
9992
9998
  for (let k = 0; k < A.length; k++) {
9993
- const f = A[k];
9994
- Math.abs(f) > Math.abs(p) && (p = f);
9999
+ const v = A[k];
10000
+ Math.abs(v) > Math.abs(p) && (p = v);
9995
10001
  }
9996
10002
  c.push(Math.round(p * s) / s);
9997
10003
  }
@@ -10143,9 +10149,9 @@ function Hi({
10143
10149
  eventPlayed: A,
10144
10150
  showSkeleton: p = !1,
10145
10151
  classNamesButton: k,
10146
- onPlayStateChange: f
10152
+ onPlayStateChange: v
10147
10153
  }) {
10148
- const [m, C] = q(!1), [E, B] = q(!1), [I, S] = q(!1), [b, w] = q(!1);
10154
+ const [m, f] = q(!1), [E, B] = q(!1), [I, S] = q(!1), [b, w] = q(!1);
10149
10155
  de(() => {
10150
10156
  typeof navigator < "u" && w(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
10151
10157
  }, []);
@@ -10165,10 +10171,10 @@ function Hi({
10165
10171
  D.current && n && ((R = D.current) == null || R.load(n));
10166
10172
  }, [n]);
10167
10173
  const U = N((R) => {
10168
- D.current = R, B(!0), C(!1);
10174
+ D.current = R, B(!0), f(!1);
10169
10175
  }, []), J = N(
10170
10176
  (R) => {
10171
- if (C(!0), t == null || t(!0), f == null || f(!0), c) {
10177
+ if (f(!0), t == null || t(!0), v == null || v(!0), c) {
10172
10178
  if (c.state.active && c.state.active !== R) {
10173
10179
  const H = c.state.active.getCurrentTime();
10174
10180
  c.state.active.pause(), R.setTime(H);
@@ -10182,13 +10188,13 @@ function Hi({
10182
10188
  }
10183
10189
  A == null || A();
10184
10190
  },
10185
- [t, c, A, f]
10191
+ [t, c, A, v]
10186
10192
  ), x = N(() => {
10187
- C(!1), t == null || t(!1), f == null || f(!1), c && c.setter((R) => ({
10193
+ f(!1), t == null || t(!1), v == null || v(!1), c && c.setter((R) => ({
10188
10194
  ...R,
10189
10195
  isPlaying: !1
10190
10196
  }));
10191
- }, [t, c, f]), L = N(
10197
+ }, [t, c, v]), L = N(
10192
10198
  (R) => {
10193
10199
  c && c.setter((H) => ({
10194
10200
  ...H,
@@ -10198,12 +10204,12 @@ function Hi({
10198
10204
  [c]
10199
10205
  ), G = N(() => {
10200
10206
  var R;
10201
- u ? (R = D.current) == null || R.play() : (C(!1), t == null || t(!1), f == null || f(!1), c && c.setter((H) => ({
10207
+ u ? (R = D.current) == null || R.play() : (f(!1), t == null || t(!1), v == null || v(!1), c && c.setter((H) => ({
10202
10208
  ...H,
10203
10209
  isPlaying: !1,
10204
10210
  active: null
10205
10211
  })));
10206
- }, [u, t, c, f]), Z = N(() => {
10212
+ }, [u, t, c, v]), Z = N(() => {
10207
10213
  var R, H, ae;
10208
10214
  (R = D.current) != null && R.isPlaying() ? z() : D.current && ((H = c == null ? void 0 : c.state) != null && H.active && c.state.active !== D.current && (c.state.active.pause(), c.setter((Re) => ({
10209
10215
  ...Re,
@@ -10229,7 +10235,7 @@ function Hi({
10229
10235
  size: "2",
10230
10236
  variant: "soft",
10231
10237
  color: "gray",
10232
- className: v(k, ks.customButton),
10238
+ className: C(k, ks.customButton),
10233
10239
  children: m ? /* @__PURE__ */ r(Mc, { width: 20, height: 20 }) : /* @__PURE__ */ r(Oc, { width: 20, height: 20 })
10234
10240
  }
10235
10241
  ),
@@ -10325,7 +10331,7 @@ const dS = "_customButton_14z6y_1", uS = "_descriptionVoiceList_14z6y_5", ea = {
10325
10331
  onSelect: t,
10326
10332
  className: "voice-list",
10327
10333
  children: n.map((A) => {
10328
- var p, k, f;
10334
+ var p, k, v;
10329
10335
  return /* @__PURE__ */ r(
10330
10336
  Rt.CardDetails,
10331
10337
  {
@@ -10362,7 +10368,7 @@ const dS = "_customButton_14z6y_1", uS = "_descriptionVoiceList_14z6y_5", ea = {
10362
10368
  weight: "regular",
10363
10369
  className: ea.descriptionVoiceList,
10364
10370
  children: [
10365
- (f = A == null ? void 0 : A.metadata) == null ? void 0 : f.vocalRange,
10371
+ (v = A == null ? void 0 : A.metadata) == null ? void 0 : v.vocalRange,
10366
10372
  " ",
10367
10373
  /* @__PURE__ */ r("span", { children: "|" }),
10368
10374
  " ",
@@ -10617,7 +10623,7 @@ const BS = "_footerVoiceForm_lsc2c_2", wS = {
10617
10623
  onVoiceDetailsClick: s,
10618
10624
  onBackToList: a,
10619
10625
  voiceDetailsId: o,
10620
- i18n: i = { _: (C) => C },
10626
+ i18n: i = { _: (f) => f },
10621
10627
  isLoading: l,
10622
10628
  limitReached: c,
10623
10629
  error: u,
@@ -10625,10 +10631,10 @@ const BS = "_footerVoiceForm_lsc2c_2", wS = {
10625
10631
  onSelectTrack: A,
10626
10632
  onMountConcurrency: p,
10627
10633
  showUpgradeConcurrency: k,
10628
- onClickUpgradeConcurrency: f,
10634
+ onClickUpgradeConcurrency: v,
10629
10635
  onRemoveTrack: m
10630
10636
  }) => {
10631
- const [C, E] = q(null), [B, I] = q(null), { submitted: S, handleSubmit: b } = Ir(h), [w, Q] = q({
10637
+ const [f, E] = q(null), [B, I] = q(null), { submitted: S, handleSubmit: b } = Ir(h), [w, Q] = q({
10632
10638
  lastPlayed: null,
10633
10639
  active: null,
10634
10640
  isPlaying: !1,
@@ -10694,7 +10700,7 @@ const BS = "_footerVoiceForm_lsc2c_2", wS = {
10694
10700
  AS,
10695
10701
  {
10696
10702
  voices: n,
10697
- selectedId: C,
10703
+ selectedId: f,
10698
10704
  handleSelect: O,
10699
10705
  playingItem: B,
10700
10706
  handleAvatarClick: T,
@@ -10741,7 +10747,7 @@ const BS = "_footerVoiceForm_lsc2c_2", wS = {
10741
10747
  IS,
10742
10748
  {
10743
10749
  showUpgrade: k,
10744
- onClickUpgrade: f,
10750
+ onClickUpgrade: v,
10745
10751
  i18n: i,
10746
10752
  onMountConcurrency: p
10747
10753
  }