etudes 10.1.0 → 10.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/etudes.js CHANGED
@@ -137,7 +137,7 @@ function Ro() {
137
137
  }
138
138
  function g(k, J) {
139
139
  function be() {
140
- M || (M = !0, console.error(
140
+ C || (C = !0, console.error(
141
141
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
142
142
  J
143
143
  ));
@@ -155,7 +155,7 @@ function Ro() {
155
155
  }
156
156
  function x(k, J, be, xe, Pe, pe, oe, te) {
157
157
  return be = pe.ref, k = {
158
- $$typeof: C,
158
+ $$typeof: M,
159
159
  type: k,
160
160
  key: J,
161
161
  props: pe,
@@ -236,9 +236,9 @@ React keys must be passed directly to JSX without using spread:
236
236
  );
237
237
  }
238
238
  function N(k) {
239
- typeof k == "object" && k !== null && k.$$typeof === C && k._store && (k._store.validated = 1);
239
+ typeof k == "object" && k !== null && k.$$typeof === M && k._store && (k._store.validated = 1);
240
240
  }
241
- var O = Oo, C = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), j = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), V = Symbol.for("react.client.reference"), ee = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, L = Array.isArray, R = console.createTask ? console.createTask : function() {
241
+ var O = Oo, M = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), j = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), V = Symbol.for("react.client.reference"), ee = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, L = Array.isArray, R = console.createTask ? console.createTask : function() {
242
242
  return null;
243
243
  };
244
244
  O = {
@@ -246,7 +246,7 @@ React keys must be passed directly to JSX without using spread:
246
246
  return k();
247
247
  }
248
248
  };
249
- var M, z = {}, G = O["react-stack-bottom-frame"].bind(
249
+ var C, z = {}, G = O["react-stack-bottom-frame"].bind(
250
250
  O,
251
251
  u
252
252
  )(), Z = R(c(u)), Q = {};
@@ -1079,24 +1079,24 @@ const ii = /* @__PURE__ */ Se(({
1079
1079
  selectionMode: w = "none",
1080
1080
  onActivateAt: N,
1081
1081
  onDeselectAt: O,
1082
- onCustomEvent: C,
1082
+ onCustomEvent: M,
1083
1083
  onSelectAt: _,
1084
1084
  onSelectionChange: B,
1085
1085
  ItemComponent: W,
1086
1086
  ...D
1087
1087
  }, X) => {
1088
- const j = (M) => !!(isNaN(M) || M >= u.length || M < 0), Y = (M) => kr(M).filter((z) => !j(z)), U = (M) => ee.indexOf(M) >= 0, H = (M) => {
1089
- U(M) ? re(M) : T(M);
1090
- }, T = (M) => {
1091
- if (U(M)) return;
1088
+ const j = (C) => !!(isNaN(C) || C >= u.length || C < 0), Y = (C) => kr(C).filter((z) => !j(z)), U = (C) => ee.indexOf(C) >= 0, H = (C) => {
1089
+ U(C) ? re(C) : T(C);
1090
+ }, T = (C) => {
1091
+ if (U(C)) return;
1092
1092
  let z;
1093
1093
  switch (w) {
1094
1094
  case "multiple": {
1095
- z = (Z) => kr([...Z.filter((Q) => Q !== M), M]);
1095
+ z = (Z) => kr([...Z.filter((Q) => Q !== C), C]);
1096
1096
  break;
1097
1097
  }
1098
1098
  case "single": {
1099
- z = (Z) => [M];
1099
+ z = (Z) => [C];
1100
1100
  break;
1101
1101
  }
1102
1102
  default:
@@ -1104,15 +1104,15 @@ const ii = /* @__PURE__ */ Se(({
1104
1104
  }
1105
1105
  const G = z(ee);
1106
1106
  L.current = G, V(ee, G);
1107
- }, re = (M) => {
1108
- if (!U(M)) return;
1109
- const G = ((Z) => Z.filter((Q) => Q !== M))(ee);
1107
+ }, re = (C) => {
1108
+ if (!U(C)) return;
1109
+ const G = ((Z) => Z.filter((Q) => Q !== C))(ee);
1110
1110
  L.current = G, V(ee, G);
1111
- }, ie = (M) => {
1112
- N?.(M), w !== "none" && (s ? H(M) : T(M));
1113
- }, V = (M, z) => {
1114
- if (Ge(M, z)) return;
1115
- const G = M?.filter((Q) => z.indexOf(Q) === -1) ?? [], Z = z.filter((Q) => M?.indexOf(Q) === -1);
1111
+ }, ie = (C) => {
1112
+ N?.(C), w !== "none" && (s ? H(C) : T(C));
1113
+ }, V = (C, z) => {
1114
+ if (Ge(C, z)) return;
1115
+ const G = C?.filter((Q) => z.indexOf(Q) === -1) ?? [], Z = z.filter((Q) => C?.indexOf(Q) === -1);
1116
1116
  G.forEach((Q) => O?.(Q)), Z.forEach((Q) => _?.(Q)), B?.(z);
1117
1117
  }, ee = Y(x ?? []), q = Xo({ itemLength: c, itemPadding: l, layout: p, numSegments: g, orientation: m }), L = Te(void 0), R = L.current;
1118
1118
  return he(() => {
@@ -1126,14 +1126,14 @@ const ii = /* @__PURE__ */ Se(({
1126
1126
  className: ue(r),
1127
1127
  role: p === "grid" ? "grid" : w === "none" ? "list" : "listbox",
1128
1128
  style: le(n, q.root),
1129
- children: W && /* @__PURE__ */ S.jsx(Mn, { in: u, children: (M, z) => /* @__PURE__ */ S.jsx(
1129
+ children: W && /* @__PURE__ */ S.jsx(Mn, { in: u, children: (C, z) => /* @__PURE__ */ S.jsx(
1130
1130
  W,
1131
1131
  {
1132
1132
  "aria-selected": U(z),
1133
1133
  className: ue({ selected: U(z) }),
1134
1134
  index: z,
1135
1135
  isSelected: U(z),
1136
- item: M,
1136
+ item: C,
1137
1137
  orientation: m,
1138
1138
  role: p === "grid" ? "gridcell" : w === "none" ? "listitem" : "option",
1139
1139
  style: le(q.item, {
@@ -1149,7 +1149,7 @@ const ii = /* @__PURE__ */ Se(({
1149
1149
  }
1150
1150
  }),
1151
1151
  onClick: () => ie(z),
1152
- onCustomEvent: (G, Z) => C?.(z, G, Z)
1152
+ onCustomEvent: (G, Z) => M?.(z, G, Z)
1153
1153
  }
1154
1154
  ) })
1155
1155
  }
@@ -1212,7 +1212,7 @@ const nc = /* @__PURE__ */ Se(({
1212
1212
  onCollapseSectionAt: w,
1213
1213
  onDeselectAt: N,
1214
1214
  onExpandedSectionsChange: O,
1215
- onExpandSectionAt: C,
1215
+ onExpandSectionAt: M,
1216
1216
  onHeaderCustomEvent: _,
1217
1217
  onItemCustomEvent: B,
1218
1218
  onSelectAt: W,
@@ -1235,7 +1235,7 @@ const nc = /* @__PURE__ */ Se(({
1235
1235
  return te;
1236
1236
  }, ee = (oe) => Q.indexOf(oe) >= 0, q = (oe) => {
1237
1237
  let te;
1238
- ee(oe) ? te = (ae) => ae.filter((A) => A !== oe) : s ? te = (ae) => [oe] : te = (ae) => [...ae.filter((A) => A !== oe), oe], M(Q, te(Q));
1238
+ ee(oe) ? te = (ae) => ae.filter((A) => A !== oe) : s ? te = (ae) => [oe] : te = (ae) => [...ae.filter((A) => A !== oe), oe], C(Q, te(Q));
1239
1239
  }, L = (oe, te) => {
1240
1240
  if (re(oe, te)) return;
1241
1241
  let ae;
@@ -1263,10 +1263,10 @@ const nc = /* @__PURE__ */ Se(({
1263
1263
  [te]: (ge[te] ?? []).filter((we) => we !== oe)
1264
1264
  }))(Z);
1265
1265
  J.current = A, z(Z, A);
1266
- }, M = (oe, te) => {
1266
+ }, C = (oe, te) => {
1267
1267
  if (Ge(oe, te)) return;
1268
1268
  const ae = oe?.filter((ge) => te.indexOf(ge) === -1) ?? [], A = te.filter((ge) => oe?.indexOf(ge) === -1);
1269
- ae.forEach((ge) => w?.(ge)), A.forEach((ge) => C?.(ge)), O?.(te);
1269
+ ae.forEach((ge) => w?.(ge)), A.forEach((ge) => M?.(ge)), O?.(te);
1270
1270
  }, z = (oe, te) => {
1271
1271
  if (Ge(oe, te)) return;
1272
1272
  const ae = p.length;
@@ -1551,7 +1551,7 @@ const rc = /* @__PURE__ */ Se(({
1551
1551
  }, N) => {
1552
1552
  const O = () => {
1553
1553
  x?.(!c), c ? m?.() : g?.();
1554
- }, C = {
1554
+ }, M = {
1555
1555
  root: ue({
1556
1556
  active: c
1557
1557
  })
@@ -1562,7 +1562,7 @@ const rc = /* @__PURE__ */ Se(({
1562
1562
  ...w,
1563
1563
  ref: N,
1564
1564
  "aria-expanded": c,
1565
- className: ue(n, C.root),
1565
+ className: ue(n, M.root),
1566
1566
  style: le(s, _.root),
1567
1567
  onClick: O,
1568
1568
  children: /* @__PURE__ */ S.jsx(
@@ -1697,17 +1697,17 @@ function ts(r, {
1697
1697
  const g = r.current, m = Te(void 0), x = Te(void 0);
1698
1698
  s && g && (g.style.cursor = "grab"), he(() => {
1699
1699
  if (!g || !n) return;
1700
- const w = (C) => {
1701
- C.preventDefault();
1702
- const _ = ye.make(C.clientX, C.clientY);
1700
+ const w = (M) => {
1701
+ M.preventDefault();
1702
+ const _ = ye.make(M.clientX, M.clientY);
1703
1703
  m.current = _, x.current = _, g.addEventListener("mousemove", N), g.addEventListener("mouseup", O, { capture: !0 }), g.addEventListener("mouseleave", O), s && (g.style.cursor = "grabbing"), c?.(_);
1704
- }, N = (C) => {
1704
+ }, N = (M) => {
1705
1705
  if (!m.current) return;
1706
- const _ = ye.make(C.clientX, C.clientY), B = (x.current ?? m.current).subtract(_);
1706
+ const _ = ye.make(M.clientX, M.clientY), B = (x.current ?? m.current).subtract(_);
1707
1707
  x.current = _, l?.(B, m.current);
1708
- }, O = (C) => {
1708
+ }, O = (M) => {
1709
1709
  if (!m.current) return;
1710
- const _ = ye.make(C.clientX, C.clientY), B = (x.current ?? m.current).subtract(_);
1710
+ const _ = ye.make(M.clientX, M.clientY), B = (x.current ?? m.current).subtract(_);
1711
1711
  u?.(_, B, m.current), m.current = void 0, x.current = void 0, g.removeEventListener("mousemove", N), g.removeEventListener("mouseup", O, { capture: !0 }), g.removeEventListener("mouseleave", O), s && (g.style.cursor = "grab");
1712
1712
  };
1713
1713
  return g.addEventListener("mousedown", w), () => {
@@ -1782,7 +1782,7 @@ function rs() {
1782
1782
  if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1783
1783
  return t;
1784
1784
  }
1785
- function C(t) {
1785
+ function M(t) {
1786
1786
  var e = function() {
1787
1787
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
1788
1788
  if (typeof Proxy == "function") return !0;
@@ -1901,10 +1901,10 @@ function rs() {
1901
1901
  }, document: null, DocumentFragment: null, SVGElement: null, SVGSVGElement: null, SVGElementInstance: null, Element: null, HTMLElement: null, Event: null, Touch: null, PointerEvent: null };
1902
1902
  function L() {
1903
1903
  }
1904
- var R = q, M = { init: function(t) {
1904
+ var R = q, C = { init: function(t) {
1905
1905
  var e = R.Element, i = t.navigator || {};
1906
- M.supportsTouch = "ontouchstart" in t || T.func(t.DocumentTouch) && R.document instanceof t.DocumentTouch, M.supportsPointerEvent = i.pointerEnabled !== !1 && !!R.PointerEvent, M.isIOS = /iP(hone|od|ad)/.test(i.platform), M.isIOS7 = /iP(hone|od|ad)/.test(i.platform) && /OS 7[^\d]/.test(i.appVersion), M.isIe9 = /MSIE 9/.test(i.userAgent), M.isOperaMobile = i.appName === "Opera" && M.supportsTouch && /Presto/.test(i.userAgent), M.prefixedMatchesSelector = "matches" in e.prototype ? "matches" : "webkitMatchesSelector" in e.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in e.prototype ? "mozMatchesSelector" : "oMatchesSelector" in e.prototype ? "oMatchesSelector" : "msMatchesSelector", M.pEventTypes = M.supportsPointerEvent ? R.PointerEvent === t.MSPointerEvent ? { up: "MSPointerUp", down: "MSPointerDown", over: "mouseover", out: "mouseout", move: "MSPointerMove", cancel: "MSPointerCancel" } : { up: "pointerup", down: "pointerdown", over: "pointerover", out: "pointerout", move: "pointermove", cancel: "pointercancel" } : null, M.wheelEvent = R.document && "onmousewheel" in R.document ? "mousewheel" : "wheel";
1907
- }, supportsTouch: null, supportsPointerEvent: null, isIOS7: null, isIOS: null, isIe9: null, isOperaMobile: null, prefixedMatchesSelector: null, pEventTypes: null, wheelEvent: null }, z = M;
1906
+ C.supportsTouch = "ontouchstart" in t || T.func(t.DocumentTouch) && R.document instanceof t.DocumentTouch, C.supportsPointerEvent = i.pointerEnabled !== !1 && !!R.PointerEvent, C.isIOS = /iP(hone|od|ad)/.test(i.platform), C.isIOS7 = /iP(hone|od|ad)/.test(i.platform) && /OS 7[^\d]/.test(i.appVersion), C.isIe9 = /MSIE 9/.test(i.userAgent), C.isOperaMobile = i.appName === "Opera" && C.supportsTouch && /Presto/.test(i.userAgent), C.prefixedMatchesSelector = "matches" in e.prototype ? "matches" : "webkitMatchesSelector" in e.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in e.prototype ? "mozMatchesSelector" : "oMatchesSelector" in e.prototype ? "oMatchesSelector" : "msMatchesSelector", C.pEventTypes = C.supportsPointerEvent ? R.PointerEvent === t.MSPointerEvent ? { up: "MSPointerUp", down: "MSPointerDown", over: "mouseover", out: "mouseout", move: "MSPointerMove", cancel: "MSPointerCancel" } : { up: "pointerup", down: "pointerdown", over: "pointerover", out: "pointerout", move: "pointermove", cancel: "pointercancel" } : null, C.wheelEvent = R.document && "onmousewheel" in R.document ? "mousewheel" : "wheel";
1907
+ }, supportsTouch: null, supportsPointerEvent: null, isIOS7: null, isIOS: null, isIe9: null, isOperaMobile: null, prefixedMatchesSelector: null, pEventTypes: null, wheelEvent: null }, z = C;
1908
1908
  function G(t, e) {
1909
1909
  if (t.contains) return t.contains(e);
1910
1910
  for (; e; ) {
@@ -2116,7 +2116,7 @@ function rs() {
2116
2116
  return t[dt(t, e)];
2117
2117
  }, ct = function(t) {
2118
2118
  x(i, t);
2119
- var e = C(i);
2119
+ var e = M(i);
2120
2120
  function i(o, a, f) {
2121
2121
  var d;
2122
2122
  u(this, i), (d = e.call(this, a._interaction)).dropzone = void 0, d.dragEvent = void 0, d.relatedTarget = void 0, d.draggable = void 0, d.propagationStopped = !1, d.immediatePropagationStopped = !1;
@@ -2835,7 +2835,7 @@ function rs() {
2835
2835
  return t.interaction.modification.stop(t);
2836
2836
  } } }, Qn = _i, er = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, an = function(t) {
2837
2837
  x(i, t);
2838
- var e = C(i);
2838
+ var e = M(i);
2839
2839
  function i(o, a, f, d, h, v, b) {
2840
2840
  var y;
2841
2841
  u(this, i), (y = e.call(this, o)).relatedTarget = null, y.screenX = void 0, y.screenY = void 0, y.button = void 0, y.buttons = void 0, y.ctrlKey = void 0, y.shiftKey = void 0, y.altKey = void 0, y.metaKey = void 0, y.page = void 0, y.client = void 0, y.delta = void 0, y.rect = void 0, y.x0 = void 0, y.y0 = void 0, y.t0 = void 0, y.dt = void 0, y.duration = void 0, y.clientX0 = void 0, y.clientY0 = void 0, y.velocity = void 0, y.speed = void 0, y.swipe = void 0, y.axes = void 0, y.preEnd = void 0, h = h || o.element;
@@ -3374,7 +3374,7 @@ function rs() {
3374
3374
  b[v].documentBlur(h);
3375
3375
  } }), t.prevTouchTime = 0, t.Interaction = function(h) {
3376
3376
  x(b, h);
3377
- var v = C(b);
3377
+ var v = M(b);
3378
3378
  function b() {
3379
3379
  return u(this, b), v.apply(this, arguments);
3380
3380
  }
@@ -3572,7 +3572,7 @@ function rs() {
3572
3572
  var i = this;
3573
3573
  this.Interactable = function(o) {
3574
3574
  x(f, o);
3575
- var a = C(f);
3575
+ var a = M(f);
3576
3576
  function f() {
3577
3577
  return u(this, f), a.apply(this, arguments);
3578
3578
  }
@@ -3800,7 +3800,7 @@ function rs() {
3800
3800
  }
3801
3801
  } }, mo = vo, yr = function(t) {
3802
3802
  x(i, t);
3803
- var e = C(i);
3803
+ var e = M(i);
3804
3804
  function i(o, a, f, d, h, v) {
3805
3805
  var b;
3806
3806
  if (u(this, i), Be(O(b = e.call(this, h)), f), f !== a && Be(O(b), a), b.timeStamp = v, b.originalEvent = f, b.type = o, b.pointerId = ft(a), b.pointerType = jn(a), b.target = d, b.currentTarget = null, o === "tap") {
@@ -4016,19 +4016,19 @@ function Nt(r, {
4016
4016
  onDragEnd: u,
4017
4017
  ...p
4018
4018
  }, g) {
4019
- const m = (X) => Ge(x.current, X) ? !1 : (x.current = X, !0), x = Te(n), [w, N] = ke(!1), [O, C] = ke(!1), [_, B] = ke(!1), [W, D] = ke(n);
4019
+ const m = (X) => Ge(x.current, X) ? !1 : (x.current = X, !0), x = Te(n), [w, N] = ke(!1), [O, M] = ke(!1), [_, B] = ke(!1), [W, D] = ke(n);
4020
4020
  return he(() => (r.current && Mr(r.current).draggable({
4021
4021
  inertia: !0,
4022
4022
  ...p,
4023
4023
  onstart: () => {
4024
- N(!0), C(!0), B(!1), c?.();
4024
+ N(!0), M(!0), B(!1), c?.();
4025
4025
  },
4026
4026
  onmove: ({ dx: X, dy: j }) => {
4027
4027
  const Y = s(x.current, X, j);
4028
- m(Y) && D(Y), C(!0), B(!1), l?.(X, j);
4028
+ m(Y) && D(Y), M(!0), B(!1), l?.(X, j);
4029
4029
  },
4030
4030
  onend: () => {
4031
- C(!1), B(!0), u?.();
4031
+ M(!1), B(!0), u?.();
4032
4032
  }
4033
4033
  }), () => {
4034
4034
  r.current && Mr(r.current).unset();
@@ -4037,7 +4037,7 @@ function Nt(r, {
4037
4037
  }, [n]), he(() => {
4038
4038
  m(W);
4039
4039
  }, [W]), {
4040
- isDragging: [O, C],
4040
+ isDragging: [O, M],
4041
4041
  isReleasing: [_, B],
4042
4042
  value: [W, D]
4043
4043
  };
@@ -4129,12 +4129,16 @@ function cc({ onChange: r }, n = []) {
4129
4129
  window.removeEventListener("scroll", s), window.removeEventListener("resize", s), window.removeEventListener("orientationchange", s);
4130
4130
  }), [...n]);
4131
4131
  }
4132
- function lc(r, n, { mapSearchParamToState: s, mapStateToSearchParam: c } = {}) {
4133
- const l = (N, O) => s ? s(N) : N || O, u = (N) => c ? c(N) : N === n ? void 0 : `${N}`, [p, g] = _o(), m = l(p.get(r) ?? void 0, n), [x, w] = ke(m);
4132
+ function lc(r, n, {
4133
+ mapSearchParamToState: s,
4134
+ mapStateToSearchParam: c,
4135
+ shouldPopulateDefaultState: l = !1
4136
+ } = {}) {
4137
+ const u = (O, M) => s ? s(O) : O || M, p = (O) => c ? c(O) : !l && O === n ? void 0 : `${O}`, [g, m] = _o(), x = u(g.get(r) ?? void 0, n), [w, N] = ke(x);
4134
4138
  return he(() => {
4135
- const N = p.get(r), O = u(x);
4136
- O !== N && (O ? p.set(r, O) : p.delete(r), g(p));
4137
- }, [x]), [x, w];
4139
+ const O = g.get(r), M = p(w);
4140
+ M !== O && (M ? g.set(r, M) : g.delete(r), m(g));
4141
+ }, [w]), [w, N];
4138
4142
  }
4139
4143
  function cs(r = 0, { autoStart: n = !0, onTimeout: s } = {}, c = []) {
4140
4144
  const l = Te(void 0), u = Te(void 0), p = xr(() => {
@@ -4192,14 +4196,14 @@ const fc = /* @__PURE__ */ Se(({
4192
4196
  ItemComponent: x,
4193
4197
  ...w
4194
4198
  }, N) => {
4195
- const O = (L) => m?.(L), C = (L) => {
4199
+ const O = (L) => m?.(L), M = (L) => {
4196
4200
  j.current = ye.make(L.clientX, L.clientY), V(!0);
4197
4201
  }, _ = (L) => {
4198
4202
  Y.current = ye.make(L.clientX, L.clientY), ie && V(!1);
4199
4203
  }, B = (L) => {
4200
- const R = j.current, M = Y.current;
4201
- if (!R || !M) return;
4202
- const z = 5, G = R.subtract(M);
4204
+ const R = j.current, C = Y.current;
4205
+ if (!R || !C) return;
4206
+ const z = 5, G = R.subtract(C);
4203
4207
  (Math.abs(G.x) > z || Math.abs(G.y) > z) && L.stopPropagation(), j.current = void 0, Y.current = void 0;
4204
4208
  }, W = () => {
4205
4209
  fs(X, n, l), clearTimeout(U.current), U.current = setTimeout(() => {
@@ -4209,12 +4213,12 @@ const fc = /* @__PURE__ */ Se(({
4209
4213
  return he(() => {
4210
4214
  const L = X.current;
4211
4215
  if (!L) return;
4212
- const R = D.current === void 0, M = D.current === n, z = (G) => {
4216
+ const R = D.current === void 0, C = D.current === n, z = (G) => {
4213
4217
  if (u && re(Cr(X, l)), U.current !== void 0) return;
4214
4218
  const Z = Math.round(l === "horizontal" ? L.scrollLeft / L.clientWidth : L.scrollTop / L.clientHeight), Q = Math.max(0, Math.min(c.length - 1, Z));
4215
4219
  Q !== n && (D.current = Q, O(Q));
4216
4220
  };
4217
- return L.addEventListener("scroll", z), M || (D.current = n, R || (O(n), W())), () => {
4221
+ return L.addEventListener("scroll", z), C || (D.current = n, R || (O(n), W())), () => {
4218
4222
  L.removeEventListener("scroll", z);
4219
4223
  };
4220
4224
  }, [n, l, u]), he(() => {
@@ -4250,14 +4254,14 @@ const fc = /* @__PURE__ */ Se(({
4250
4254
  role: "region",
4251
4255
  onClick: (L) => B(L),
4252
4256
  onPointerCancel: (L) => _(L),
4253
- onPointerDown: (L) => C(L),
4257
+ onPointerDown: (L) => M(L),
4254
4258
  onPointerLeave: (L) => _(L),
4255
4259
  onPointerUp: (L) => _(L),
4256
- children: /* @__PURE__ */ S.jsx("div", { ref: X, style: le(ee.viewport), children: /* @__PURE__ */ S.jsx(Mn, { in: c, children: ({ style: L, ...R }, M) => /* @__PURE__ */ S.jsx("div", { style: le(ee.itemContainer), children: /* @__PURE__ */ S.jsx(
4260
+ children: /* @__PURE__ */ S.jsx("div", { ref: X, style: le(ee.viewport), children: /* @__PURE__ */ S.jsx(Mn, { in: c, children: ({ style: L, ...R }, C) => /* @__PURE__ */ S.jsx("div", { style: le(ee.itemContainer), children: /* @__PURE__ */ S.jsx(
4257
4261
  x,
4258
4262
  {
4259
- "aria-hidden": M !== n,
4260
- exposure: u ? T?.[M] : void 0,
4263
+ "aria-hidden": C !== n,
4264
+ exposure: u ? T?.[C] : void 0,
4261
4265
  style: le(L, ee.item),
4262
4266
  ...R
4263
4267
  }
@@ -4344,12 +4348,12 @@ const ps = /* @__PURE__ */ Se(({
4344
4348
  ...w
4345
4349
  }, N) => {
4346
4350
  const O = (B) => {
4347
- const W = B !== n ? p?.(C, B) ?? B : n;
4348
- W !== C && x?.(W);
4349
- }, C = u ?? n, _ = si(C);
4351
+ const W = B !== n ? p?.(M, B) ?? B : n;
4352
+ W !== M && x?.(W);
4353
+ }, M = u ?? n, _ = si(M);
4350
4354
  return he(() => {
4351
- _ !== void 0 && O(C);
4352
- }, [C]), /* @__PURE__ */ S.jsx(
4355
+ _ !== void 0 && O(M);
4356
+ }, [M]), /* @__PURE__ */ S.jsx(
4353
4357
  "input",
4354
4358
  {
4355
4359
  ...w,
@@ -4362,7 +4366,7 @@ const ps = /* @__PURE__ */ Se(({
4362
4366
  placeholder: l,
4363
4367
  required: c,
4364
4368
  type: "text",
4365
- value: C,
4369
+ value: M,
4366
4370
  onBlur: ({ target: B }) => m?.(B.value),
4367
4371
  onChange: ({ target: B }) => O(B.value),
4368
4372
  onFocus: ({ target: B }) => g?.(B.value)
@@ -4386,18 +4390,18 @@ const ps = /* @__PURE__ */ Se(({
4386
4390
  D(H);
4387
4391
  }, O = (H) => {
4388
4392
  const T = _(H);
4389
- T !== u ? p?.(T) : D(C(T));
4390
- }, C = (H) => H.toLocaleString(), _ = (H) => {
4393
+ T !== u ? p?.(T) : D(M(T));
4394
+ }, M = (H) => H.toLocaleString(), _ = (H) => {
4391
4395
  const T = parseInt(H, 10);
4392
4396
  return T.toString() !== H.replace(/^0+/, "") ? u : B(T);
4393
4397
  }, B = (H) => {
4394
4398
  let T = H;
4395
4399
  return isNaN(l) || (T = Math.max(l, T)), isNaN(c) || (T = Math.min(c, T)), T;
4396
- }, [W, D] = ke(C(u)), X = si(u), j = !isNaN(c) && u + 1 > c, Y = !isNaN(l) && u - 1 < l;
4400
+ }, [W, D] = ke(M(u)), X = si(u), j = !isNaN(c) && u + 1 > c, Y = !isNaN(l) && u - 1 < l;
4397
4401
  he(() => {
4398
4402
  if (X === void 0 || X === u) return;
4399
4403
  const H = B(u);
4400
- D(C(H));
4404
+ D(M(H));
4401
4405
  }, [u, l, c]);
4402
4406
  const U = He(r, {
4403
4407
  textField: Ir,
@@ -4478,7 +4482,7 @@ const ps = /* @__PURE__ */ Se(({
4478
4482
  let X = B;
4479
4483
  if (D && _) throw Error("The last item in `sizes` must not have a `mediaCondition` specified.");
4480
4484
  return _ && (X = `${_} ${X}`), X;
4481
- }).join(", "), C = oi({
4485
+ }).join(", "), M = oi({
4482
4486
  src: c,
4483
4487
  srcSet: N,
4484
4488
  sizes: O
@@ -4488,8 +4492,8 @@ const ps = /* @__PURE__ */ Se(({
4488
4492
  onLoadError: g
4489
4493
  });
4490
4494
  return he(() => {
4491
- m?.(C);
4492
- }, [C]), /* @__PURE__ */ S.jsx(
4495
+ m?.(M);
4496
+ }, [M]), /* @__PURE__ */ S.jsx(
4493
4497
  "img",
4494
4498
  {
4495
4499
  ...x,
@@ -4515,7 +4519,7 @@ const ps = /* @__PURE__ */ Se(({
4515
4519
  onLoadError: w,
4516
4520
  ...N
4517
4521
  }, O) => {
4518
- const C = (T) => {
4522
+ const M = (T) => {
4519
4523
  D(T ? T.width / T.height : NaN);
4520
4524
  }, _ = Te(null), B = O ?? _, [W, D] = ke(NaN), X = isNaN(c) ? W : c, j = st(B), Y = j.width / j.height, U = Ae.make(
4521
4525
  Y > 1 ? Math.max(j.width, j.height * X) : Math.max(j.width, Math.max(j.height, j.width / X) * X),
@@ -4546,7 +4550,7 @@ const ps = /* @__PURE__ */ Se(({
4546
4550
  onLoadComplete: x,
4547
4551
  onLoadError: w,
4548
4552
  onLoadStart: m,
4549
- onSizeChange: (T) => C(T)
4553
+ onSizeChange: (T) => M(T)
4550
4554
  }
4551
4555
  ),
4552
4556
  H.viewport && Ne(H.viewport, {
@@ -4585,7 +4589,7 @@ const ps = /* @__PURE__ */ Se(({
4585
4589
  onLoadMetadata: w,
4586
4590
  onLoadMetadataComplete: N,
4587
4591
  onLoadMetadataError: O,
4588
- onPause: C,
4592
+ onPause: M,
4589
4593
  onPlay: _,
4590
4594
  onSizeChange: B,
4591
4595
  onTimeUpdate: W,
@@ -4601,9 +4605,9 @@ const ps = /* @__PURE__ */ Se(({
4601
4605
  he(() => {
4602
4606
  if (Y.current) {
4603
4607
  if (p.toLowerCase().endsWith(".m3u8")) {
4604
- const R = !!Y.current.canPlayType("application/x-mpegURL"), M = typeof window < "u" && typeof window.Hls < "u" ? window.Hls : void 0;
4605
- if (!R && M?.isSupported()) {
4606
- const z = new M();
4608
+ const R = !!Y.current.canPlayType("application/x-mpegURL"), C = typeof window < "u" && typeof window.Hls < "u" ? window.Hls : void 0;
4609
+ if (!R && C?.isSupported()) {
4610
+ const z = new C();
4607
4611
  z.loadSource(p), z.attachMedia(Y.current);
4608
4612
  }
4609
4613
  }
@@ -4615,20 +4619,20 @@ const ps = /* @__PURE__ */ Se(({
4615
4619
  B?.(U);
4616
4620
  }, [U]);
4617
4621
  const H = (R) => {
4618
- const M = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;
4619
- M !== void 0 && x?.(M);
4622
+ const C = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;
4623
+ C !== void 0 && x?.(C);
4620
4624
  }, T = (R) => {
4621
- const M = R.currentTarget;
4622
- n && M.paused && q(), g?.();
4625
+ const C = R.currentTarget;
4626
+ n && C.paused && q(), g?.();
4623
4627
  }, re = (R) => {
4624
4628
  _?.();
4625
4629
  }, ie = (R) => {
4626
- C?.();
4630
+ M?.();
4627
4631
  }, V = (R) => {
4628
4632
  m?.();
4629
4633
  }, ee = (R) => {
4630
- const M = R.currentTarget;
4631
- W?.(M.currentTime, M.duration);
4634
+ const C = R.currentTarget;
4635
+ W?.(C.currentTime, C.duration);
4632
4636
  }, q = () => {
4633
4637
  Y.current && Y.current.play();
4634
4638
  }, L = () => {
@@ -4667,7 +4671,7 @@ const ps = /* @__PURE__ */ Se(({
4667
4671
  src: w,
4668
4672
  onCanPlay: N,
4669
4673
  onEnd: O,
4670
- onFullscreenChange: C,
4674
+ onFullscreenChange: M,
4671
4675
  onLoadMetadata: _,
4672
4676
  onLoadMetadataComplete: B,
4673
4677
  onLoadMetadataError: W,
@@ -4681,7 +4685,7 @@ const ps = /* @__PURE__ */ Se(({
4681
4685
  }, T = Te(null), re = U ?? T, [ie, V] = ke(NaN), ee = isNaN(c) ? ie : c, q = st(re), L = q.width / q.height, R = Ae.make(
4682
4686
  L > 1 ? Math.max(q.width, q.height * ee) : Math.max(q.width, Math.max(q.height, q.width / ee) * ee),
4683
4687
  L > 1 ? Math.max(q.height, Math.max(q.width, q.height * ee) / ee) : Math.max(q.height, q.width / ee)
4684
- ), M = He(n, {
4688
+ ), C = He(n, {
4685
4689
  content: xs,
4686
4690
  viewport: bs
4687
4691
  });
@@ -4710,7 +4714,7 @@ const ps = /* @__PURE__ */ Se(({
4710
4714
  }),
4711
4715
  onCanPlay: N,
4712
4716
  onEnd: O,
4713
- onFullscreenChange: C,
4717
+ onFullscreenChange: M,
4714
4718
  onLoadMetadata: _,
4715
4719
  onLoadMetadataComplete: B,
4716
4720
  onLoadMetadataError: W,
@@ -4719,14 +4723,14 @@ const ps = /* @__PURE__ */ Se(({
4719
4723
  onSizeChange: (z) => H(z)
4720
4724
  }
4721
4725
  ),
4722
- M.viewport && Ne(M.viewport, {
4726
+ C.viewport && Ne(C.viewport, {
4723
4727
  style: le(mn.viewport, {
4724
4728
  height: `${R.height}px`,
4725
4729
  pointerEvents: "none",
4726
4730
  width: `${R.width}px`
4727
4731
  })
4728
4732
  }),
4729
- M.content
4733
+ C.content
4730
4734
  ]
4731
4735
  }
4732
4736
  );
@@ -4755,9 +4759,9 @@ const ps = /* @__PURE__ */ Se(({
4755
4759
  const w = u * 2, N = Math.max(0, Math.min(360, c)), O = He(r, {
4756
4760
  track: jr,
4757
4761
  knob: Rr
4758
- }), C = Es({ angle: s, diameter: w });
4759
- return /* @__PURE__ */ S.jsxs("div", { ...m, ref: x, style: le(n, C.root), children: [
4760
- /* @__PURE__ */ S.jsx("div", { style: C.trackContainer, children: /* @__PURE__ */ S.jsx("svg", { height: w, style: C.svgContainer, viewBox: `0 0 ${w} ${w}`, width: w, children: Ne(O.track ?? /* @__PURE__ */ S.jsx(jr, {}), {
4762
+ }), M = Es({ angle: s, diameter: w });
4763
+ return /* @__PURE__ */ S.jsxs("div", { ...m, ref: x, style: le(n, M.root), children: [
4764
+ /* @__PURE__ */ S.jsx("div", { style: M.trackContainer, children: /* @__PURE__ */ S.jsx("svg", { height: w, style: M.svgContainer, viewBox: `0 0 ${w} ${w}`, width: w, children: Ne(O.track ?? /* @__PURE__ */ S.jsx(jr, {}), {
4761
4765
  cx: u,
4762
4766
  cy: u,
4763
4767
  fill: "none",
@@ -4765,7 +4769,7 @@ const ps = /* @__PURE__ */ Se(({
4765
4769
  strokeDasharray: p,
4766
4770
  strokeWidth: g
4767
4771
  }) }) }),
4768
- /* @__PURE__ */ S.jsx("div", { style: le(C.knobContainer), children: /* @__PURE__ */ S.jsx("svg", { style: C.svgContainer, viewBox: `0 0 ${w} ${w}`, xmlns: "http://www.w3.org/2000/svg", children: Ne(O.knob ?? /* @__PURE__ */ S.jsx(Rr, {}), {
4772
+ /* @__PURE__ */ S.jsx("div", { style: le(M.knobContainer), children: /* @__PURE__ */ S.jsx("svg", { style: M.svgContainer, viewBox: `0 0 ${w} ${w}`, xmlns: "http://www.w3.org/2000/svg", children: Ne(O.knob ?? /* @__PURE__ */ S.jsx(Rr, {}), {
4769
4773
  d: ws(u, u, u - l / 2 - (g - l) / 2, -N / 2, N / 2),
4770
4774
  fill: "none",
4771
4775
  strokeWidth: l
@@ -4843,7 +4847,7 @@ const vc = /* @__PURE__ */ Se(({
4843
4847
  itemLength: w,
4844
4848
  itemPadding: N = 0,
4845
4849
  items: O,
4846
- maxVisibleItems: C = -1,
4850
+ maxVisibleItems: M = -1,
4847
4851
  numSegments: _,
4848
4852
  orientation: B = "vertical",
4849
4853
  selection: W = [],
@@ -4859,17 +4863,17 @@ const vc = /* @__PURE__ */ Se(({
4859
4863
  ToggleComponent: V,
4860
4864
  ...ee
4861
4865
  }, q) => {
4862
- const L = (A) => !!(isNaN(A) || A >= O.length || A < 0), R = (A) => Ns(A).filter((ge) => !L(ge)), M = () => {
4866
+ const L = (A) => !!(isNaN(A) || A >= O.length || A < 0), R = (A) => Ns(A).filter((ge) => !L(ge)), C = () => {
4863
4867
  u && U?.();
4864
4868
  }, z = () => {
4865
4869
  u || j?.();
4866
4870
  }, G = () => {
4867
- u ? M() : z();
4871
+ u ? C() : z();
4868
4872
  }, Z = (A) => {
4869
4873
  H?.(A), D === "single" && c && z();
4870
4874
  }, Q = (A) => {
4871
4875
  T?.(A);
4872
- }, k = R(W), J = Te(null), be = st(J), xe = w ?? (B === "vertical" ? be.height : be.width), Pe = O.length, pe = C < 0 ? Pe : Math.min(Pe, C), oe = xe * pe + N * (pe - 1), te = Ps({ isCollapsed: u, collectionPadding: l, isInverted: p, maxVisibleItems: C, menuLength: oe, numItems: Pe, orientation: B }), ae = He(r, {
4876
+ }, k = R(W), J = Te(null), be = st(J), xe = w ?? (B === "vertical" ? be.height : be.width), Pe = O.length, pe = M < 0 ? Pe : Math.min(Pe, M), oe = xe * pe + N * (pe - 1), te = Ps({ isCollapsed: u, collectionPadding: l, isInverted: p, maxVisibleItems: M, menuLength: oe, numItems: Pe, orientation: B }), ae = He(r, {
4873
4877
  collapseIcon: Ss,
4874
4878
  expandIcon: Ts,
4875
4879
  toggle: Lr
@@ -5623,8 +5627,8 @@ const ua = function(r) {
5623
5627
  const x = g.rawTagName;
5624
5628
  let w = g.tagExp, N = g.attrExpPresent, O = g.closeIndex;
5625
5629
  this.options.transformTagName && (m = this.options.transformTagName(m)), s && c && s.tagname !== "!xml" && (c = this.saveTextToParentTag(c, s, l, !1));
5626
- const C = s;
5627
- C && this.options.unpairedTags.indexOf(C.tagname) !== -1 && (s = this.tagsNodeStack.pop(), l = l.substring(0, l.lastIndexOf("."))), m !== n.tagname && (l += l ? "." + m : m);
5630
+ const M = s;
5631
+ M && this.options.unpairedTags.indexOf(M.tagname) !== -1 && (s = this.tagsNodeStack.pop(), l = l.substring(0, l.lastIndexOf("."))), m !== n.tagname && (l += l ? "." + m : m);
5628
5632
  const _ = u;
5629
5633
  if (this.isItStopNode(this.options.stopNodes, l, m)) {
5630
5634
  let B = "";
@@ -5905,8 +5909,8 @@ function fi(r, n, s, c) {
5905
5909
  }
5906
5910
  let w = c;
5907
5911
  w !== "" && (w += n.indentBy);
5908
- const N = Vr(g[":@"], n), O = c + `<${m}${N}`, C = fi(g[m], n, x, w);
5909
- n.unpairedTags.indexOf(m) !== -1 ? n.suppressUnpairedNode ? l += O + ">" : l += O + "/>" : (!C || C.length === 0) && n.suppressEmptyNode ? l += O + "/>" : C && C.endsWith(">") ? l += O + `>${C}${c}</${m}>` : (l += O + ">", C && c !== "" && (C.includes("/>") || C.includes("</")) ? l += c + n.indentBy + C + c : l += C, l += `</${m}>`), u = !0;
5912
+ const N = Vr(g[":@"], n), O = c + `<${m}${N}`, M = fi(g[m], n, x, w);
5913
+ n.unpairedTags.indexOf(m) !== -1 ? n.suppressUnpairedNode ? l += O + ">" : l += O + "/>" : (!M || M.length === 0) && n.suppressEmptyNode ? l += O + "/>" : M && M.endsWith(">") ? l += O + `>${M}${c}</${m}>` : (l += O + ">", M && c !== "" && (M.includes("/>") || M.includes("</")) ? l += c + n.indentBy + M + c : l += M, l += `</${m}>`), u = !0;
5910
5914
  }
5911
5915
  return l;
5912
5916
  }
@@ -6094,7 +6098,7 @@ const mc = /* @__PURE__ */ Se(({
6094
6098
  shouldStripStyles: u = !0,
6095
6099
  ...p
6096
6100
  }, g) => {
6097
- const m = "@_", x = ["id"].map((_) => `${m}${_}`), w = ["class"].map((_) => `${m}${_}`), N = ["fill", "stroke", "style"].map((_) => `${m}${_}`), O = ["x", "y"].map((_) => `${m}${_}`), C = () => {
6101
+ const m = "@_", x = ["id"].map((_) => `${m}${_}`), w = ["class"].map((_) => `${m}${_}`), N = ["fill", "stroke", "style"].map((_) => `${m}${_}`), O = ["x", "y"].map((_) => `${m}${_}`), M = () => {
6098
6102
  const _ = new wa({
6099
6103
  attributeNamePrefix: m,
6100
6104
  ignoreAttributes: !1,
@@ -6133,7 +6137,7 @@ const mc = /* @__PURE__ */ Se(({
6133
6137
  {
6134
6138
  ...p,
6135
6139
  ref: g,
6136
- dangerouslySetInnerHTML: { __html: C() },
6140
+ dangerouslySetInnerHTML: { __html: M() },
6137
6141
  role: "img"
6138
6142
  }
6139
6143
  );
@@ -6148,7 +6152,7 @@ const mc = /* @__PURE__ */ Se(({
6148
6152
  verticalSpacing: g = 0,
6149
6153
  ...m
6150
6154
  }, x) => {
6151
- const w = Te(null), [N, O] = ke(NaN), [C, _] = ke(NaN), [B, W] = ke(NaN), [D, X] = ke(NaN), j = () => se.from(w.current)?.width ?? 0, Y = () => se.from(w.current)?.height ?? 0, U = () => {
6155
+ const w = Te(null), [N, O] = ke(NaN), [M, _] = ke(NaN), [B, W] = ke(NaN), [D, X] = ke(NaN), j = () => se.from(w.current)?.width ?? 0, Y = () => se.from(w.current)?.height ?? 0, U = () => {
6152
6156
  const re = w.current;
6153
6157
  if (!re) return;
6154
6158
  const ie = re.children, V = p;
@@ -6157,11 +6161,11 @@ const mc = /* @__PURE__ */ Se(({
6157
6161
  const ee = [...new Array(V)].map(() => 0);
6158
6162
  for (const R of Array.from(ie)) {
6159
6163
  if (!(R instanceof HTMLElement)) continue;
6160
- const M = Wr(R, p), [z, G] = Ur(ee, M);
6161
- R.role = "gridcell", R.style.position = "absolute", R.style.width = `calc(${100 / V * M}% - ${c * (V - 1) / V * M}px + ${c * (M - 1)}px)`, R.style.height = "", R.style.left = `calc(${100 / V * z}% - ${c * (V - 1) / V * z}px + ${c * z}px)`, R.style.top = `${G + (G === 0 ? 0 : g)}px`;
6162
- for (let Z = 0; Z < M; Z++)
6164
+ const C = Wr(R, p), [z, G] = Ur(ee, C);
6165
+ R.role = "gridcell", R.style.position = "absolute", R.style.width = `calc(${100 / V * C}% - ${c * (V - 1) / V * C}px + ${c * (C - 1)}px)`, R.style.height = "", R.style.left = `calc(${100 / V * z}% - ${c * (V - 1) / V * z}px + ${c * z}px)`, R.style.top = `${G + (G === 0 ? 0 : g)}px`;
6166
+ for (let Z = 0; Z < C; Z++)
6163
6167
  ee[z + Z] = G + (G === 0 ? 0 : g) + (se.from(R)?.height ?? 0);
6164
- if (r && z + M === V) {
6168
+ if (r && z + C === V) {
6165
6169
  const Z = St(ee);
6166
6170
  for (let Q = 0; Q < V; Q++)
6167
6171
  ee[Q] = Z;
@@ -6175,11 +6179,11 @@ const mc = /* @__PURE__ */ Se(({
6175
6179
  const ee = [...new Array(V)].map(() => 0);
6176
6180
  for (const R of Array.from(ie)) {
6177
6181
  if (!(R instanceof HTMLElement)) continue;
6178
- const M = Wr(R, p), [z, G] = Ur(ee, M);
6179
- R.style.position = "absolute", R.style.width = "", R.style.height = `calc(${100 / V * M}% - ${g * (V - 1) / V * M}px + ${g * (M - 1)}px)`, R.style.top = `calc(${100 / V * z}% - ${g * (V - 1) / V * z}px + ${g * z}px)`, R.style.left = `${G + (G === 0 ? 0 : c)}px`;
6180
- for (let Z = 0; Z < M; Z++)
6182
+ const C = Wr(R, p), [z, G] = Ur(ee, C);
6183
+ R.style.position = "absolute", R.style.width = "", R.style.height = `calc(${100 / V * C}% - ${g * (V - 1) / V * C}px + ${g * (C - 1)}px)`, R.style.top = `calc(${100 / V * z}% - ${g * (V - 1) / V * z}px + ${g * z}px)`, R.style.left = `${G + (G === 0 ? 0 : c)}px`;
6184
+ for (let Z = 0; Z < C; Z++)
6181
6185
  ee[z + Z] = G + (G === 0 ? 0 : c) + (se.from(R)?.width ?? 0);
6182
- if (r && z + M === V) {
6186
+ if (r && z + C === V) {
6183
6187
  const Z = St(ee);
6184
6188
  for (let Q = 0; Q < V; Q++)
6185
6189
  ee[Q] = Z;
@@ -6194,7 +6198,7 @@ const mc = /* @__PURE__ */ Se(({
6194
6198
  An(w, {
6195
6199
  onResize: (re) => {
6196
6200
  const ie = se.from(re)?.size ?? Ae.make(), V = j(), ee = Y();
6197
- (N !== V || C !== ee || ie.width !== B || ie.height !== D) && (U(), W(ie.width), X(ie.height));
6201
+ (N !== V || M !== ee || ie.width !== B || ie.height !== D) && (U(), W(ie.width), X(ie.height));
6198
6202
  }
6199
6203
  }, [r, c, l, p, g, u]), he(() => {
6200
6204
  const re = Ia(w.current?.innerHTML);
@@ -6205,7 +6209,7 @@ const mc = /* @__PURE__ */ Se(({
6205
6209
  q.src = ee, q.onload = () => U();
6206
6210
  }
6207
6211
  }, [n]);
6208
- const H = Ma({ orientation: u }), T = Ca({ orientation: u, minHeight: C, minWidth: N });
6212
+ const H = Ma({ orientation: u }), T = Ca({ orientation: u, minHeight: M, minWidth: N });
6209
6213
  return /* @__PURE__ */ S.jsx(
6210
6214
  "div",
6211
6215
  {
@@ -6305,7 +6309,7 @@ const bc = /* @__PURE__ */ Se(({
6305
6309
  onLoadImageError: w,
6306
6310
  onImageSizeChange: N,
6307
6311
  ...O
6308
- }, C) => {
6312
+ }, M) => {
6309
6313
  const _ = (re, ie, V) => re - ie * n, B = Te(null), W = st(B), D = oi({ src: s }, {
6310
6314
  onLoadStart: m,
6311
6315
  onLoadComplete: x,
@@ -6334,7 +6338,7 @@ const bc = /* @__PURE__ */ Se(({
6334
6338
  "div",
6335
6339
  {
6336
6340
  ...O,
6337
- ref: C,
6341
+ ref: M,
6338
6342
  "aria-valuenow": X,
6339
6343
  role: "slider",
6340
6344
  children: /* @__PURE__ */ S.jsx("div", { ref: B, style: T.body })
@@ -6384,7 +6388,7 @@ const xc = /* @__PURE__ */ Se(({
6384
6388
  onAngleChange: w,
6385
6389
  onDragEnd: N,
6386
6390
  onDragStart: O,
6387
- onLoadImageComplete: C,
6391
+ onLoadImageComplete: M,
6388
6392
  onLoadImageError: _,
6389
6393
  onLoadImageStart: B,
6390
6394
  onImageSizeChange: W,
@@ -6396,17 +6400,17 @@ const xc = /* @__PURE__ */ Se(({
6396
6400
  const { width: k, height: J } = ee;
6397
6401
  return J === 0 ? 0 : k / J;
6398
6402
  }, U = () => {
6399
- const k = Math.min(360, Math.max(0, u ?? (m ? m.width / (m.height * M) * 360 : 0)));
6403
+ const k = Math.min(360, Math.max(0, u ?? (m ? m.width / (m.height * C) * 360 : 0)));
6400
6404
  return V.width * (k / 360);
6401
6405
  }, H = () => V.width <= 0 ? x : ((V.width - z) * 0.5 + x * z) / V.width, T = () => {
6402
6406
  R(!0), O?.();
6403
6407
  }, re = () => {
6404
6408
  R(!1), N?.();
6405
- }, ie = Te(null), V = st(ie), [ee, q] = ke(), [L, R] = ke(!1), M = Y(), z = U(), G = H(), Z = He(l, {
6409
+ }, ie = Te(null), V = st(ie), [ee, q] = ke(), [L, R] = ke(!1), C = Y(), z = U(), G = H(), Z = He(l, {
6406
6410
  track: bn,
6407
6411
  reticle: Dr,
6408
6412
  indicator: qr
6409
- }), Q = za({ autoDimension: c, panoramaRect: V, aspectRatio: M, reticleWidth: z });
6413
+ }), Q = za({ autoDimension: c, panoramaRect: V, aspectRatio: C, reticleWidth: z });
6410
6414
  return /* @__PURE__ */ S.jsxs(
6411
6415
  "div",
6412
6416
  {
@@ -6428,7 +6432,7 @@ const xc = /* @__PURE__ */ Se(({
6428
6432
  onDragEnd: re,
6429
6433
  onDragStart: T,
6430
6434
  onImageSizeChange: q,
6431
- onLoadImageComplete: C,
6435
+ onLoadImageComplete: M,
6432
6436
  onLoadImageError: _,
6433
6437
  onLoadImageStart: B,
6434
6438
  onPositionChange: D
@@ -6514,7 +6518,7 @@ const wc = /* @__PURE__ */ Se(({
6514
6518
  steps: w = -1,
6515
6519
  onRangeChange: N,
6516
6520
  ...O
6517
- }, C) => {
6521
+ }, M) => {
6518
6522
  const _ = (pe) => (pe - g) / (p - g), B = (pe) => pe / (m === "horizontal" ? H.width : H.height), W = (pe) => pe * (p - g) + g, D = (pe) => W(B(pe)), X = (pe) => pe * (m === "horizontal" ? H.width : H.height), j = (pe) => X(_(pe)), Y = (pe) => {
6519
6523
  const oe = Q.length;
6520
6524
  let te = 0, ae = 1 / 0;
@@ -6529,7 +6533,7 @@ const wc = /* @__PURE__ */ Se(({
6529
6533
  const ae = m === "horizontal" ? oe : te, A = j(g), ge = j(ie[1]), we = j(pe) + ae;
6530
6534
  return D(Math.max(A, Math.min(ge, we)));
6531
6535
  }
6532
- }, [g, m, H.size.width, H.size.height, ie[1]]), { isDragging: [M], isReleasing: [z], value: [G, Z] } = Nt(re, {
6536
+ }, [g, m, H.size.width, H.size.height, ie[1]]), { isDragging: [C], isReleasing: [z], value: [G, Z] } = Nt(re, {
6533
6537
  initialValue: x?.[1] ?? p,
6534
6538
  transform: (pe, oe, te) => {
6535
6539
  const ae = m === "horizontal" ? oe : te, A = j(ie[0]), ge = j(p), we = j(pe) + ae;
@@ -6541,7 +6545,7 @@ const wc = /* @__PURE__ */ Se(({
6541
6545
  }, [L]), he(() => {
6542
6546
  ie[1] !== G && (V([ie[0], G]), N?.(ie));
6543
6547
  }, [G]), he(() => {
6544
- ee || M || Ge(x, ie) || (V(x ?? [g, p]), R(x?.[0] ?? g), Z(x?.[1] ?? p));
6548
+ ee || C || Ge(x, ie) || (V(x ?? [g, p]), R(x?.[0] ?? g), Z(x?.[1] ?? p));
6545
6549
  }, [x?.[0], x?.[1]]), he(() => {
6546
6550
  w < 0 || R(Y(L));
6547
6551
  }, [q]), he(() => {
@@ -6557,7 +6561,7 @@ const wc = /* @__PURE__ */ Se(({
6557
6561
  "div",
6558
6562
  {
6559
6563
  ...O,
6560
- ref: C,
6564
+ ref: M,
6561
6565
  "aria-valuemax": p,
6562
6566
  "aria-valuemin": g,
6563
6567
  className: ue(n, m),
@@ -6594,7 +6598,7 @@ const wc = /* @__PURE__ */ Se(({
6594
6598
  })
6595
6599
  }, /* @__PURE__ */ S.jsx("div", { style: Pe.knobHitBox }), xe.label && Ne(xe.label, {
6596
6600
  className: ue({
6597
- dragging: ee || M,
6601
+ dragging: ee || C,
6598
6602
  releasing: q || z
6599
6603
  }),
6600
6604
  style: le(Pe.label)
@@ -6610,8 +6614,8 @@ const wc = /* @__PURE__ */ Se(({
6610
6614
  ref: re,
6611
6615
  disabled: Ge([L, G], [p, p]),
6612
6616
  className: ue({
6613
- dragging: M,
6614
- releasing: M
6617
+ dragging: C,
6618
+ releasing: C
6615
6619
  }),
6616
6620
  style: le(Pe.knob, {
6617
6621
  pointerEvents: Ge([L, G], [p, p]) ? "none" : "auto"
@@ -6624,7 +6628,7 @@ const wc = /* @__PURE__ */ Se(({
6624
6628
  })
6625
6629
  }, /* @__PURE__ */ S.jsx("div", { style: Pe.knobHitBox }), xe.label && Ne(xe.label, {
6626
6630
  className: ue({
6627
- dragging: M,
6631
+ dragging: C,
6628
6632
  releasing: z
6629
6633
  }),
6630
6634
  style: le(Pe.label)
@@ -6736,23 +6740,23 @@ const Ec = /* @__PURE__ */ Se(({
6736
6740
  labelProvider: w,
6737
6741
  onDragEnd: N,
6738
6742
  onDragStart: O,
6739
- onPositionChange: C,
6743
+ onPositionChange: M,
6740
6744
  ..._
6741
6745
  }, B) => {
6742
- const W = (R, M, z) => {
6743
- const G = se.from(X.current) ?? se.make(), Z = s ? 1 - R : R, Q = Z * G.width + M, k = Z * G.height + z, J = g === "vertical" ? Math.max(0, Math.min(1, k / G.height)) : Math.max(0, Math.min(1, Q / G.width));
6746
+ const W = (R, C, z) => {
6747
+ const G = se.from(X.current) ?? se.make(), Z = s ? 1 - R : R, Q = Z * G.width + C, k = Z * G.height + z, J = g === "vertical" ? Math.max(0, Math.min(1, k / G.height)) : Math.max(0, Math.min(1, Q / G.width));
6744
6748
  return s ? 1 - J : J;
6745
6749
  }, D = (R) => {
6746
6750
  if (!c) return;
6747
- const M = se.from(X.current) ?? se.make(), z = se.fromViewport();
6751
+ const C = se.from(X.current) ?? se.make(), z = se.fromViewport();
6748
6752
  switch (g) {
6749
6753
  case "horizontal": {
6750
- const G = (R.clientX + z.left - M.left) / M.width, Z = s ? 1 - G : G;
6754
+ const G = (R.clientX + z.left - C.left) / C.width, Z = s ? 1 - G : G;
6751
6755
  T(Z);
6752
6756
  break;
6753
6757
  }
6754
6758
  case "vertical": {
6755
- const G = (R.clientY + z.top - M.top) / M.height, Z = s ? 1 - G : G;
6759
+ const G = (R.clientY + z.top - C.top) / C.height, Z = s ? 1 - G : G;
6756
6760
  T(Z);
6757
6761
  break;
6758
6762
  }
@@ -6766,9 +6770,9 @@ const Ec = /* @__PURE__ */ Se(({
6766
6770
  he(() => {
6767
6771
  Y || m === H || T(m);
6768
6772
  }, [m]), he(() => {
6769
- Y && p || C?.(H, Y);
6773
+ Y && p || M?.(H, Y);
6770
6774
  }, [H]), he(() => {
6771
- Y || !p || C?.(H, !0);
6775
+ Y || !p || M?.(H, !0);
6772
6776
  }, [Y]);
6773
6777
  const ee = He(r, {
6774
6778
  knob: Jr,
@@ -6918,7 +6922,7 @@ const Sc = /* @__PURE__ */ Se(({
6918
6922
  steps: w = Ha(10),
6919
6923
  trackPadding: N = 0,
6920
6924
  onDragEnd: O,
6921
- onDragStart: C,
6925
+ onDragStart: M,
6922
6926
  onIndexChange: _,
6923
6927
  onPositionChange: B,
6924
6928
  ...W
@@ -6944,9 +6948,9 @@ const Sc = /* @__PURE__ */ Se(({
6944
6948
  }, Y = Te(null), U = Te(null), [H, T] = ke(s), { isDragging: [re], isReleasing: [ie], value: [V, ee] } = Nt(U, {
6945
6949
  initialValue: Vt(s, w),
6946
6950
  transform: X,
6947
- onDragStart: C,
6951
+ onDragStart: M,
6948
6952
  onDragEnd: O
6949
- }, [c, x]), q = c ? 1 - V : V, L = c ? V === 0 : V === 1, R = c ? V === 1 : V === 0, M = He(r, {
6953
+ }, [c, x]), q = c ? 1 - V : V, L = c ? V === 0 : V === 1, R = c ? V === 1 : V === 0, C = He(r, {
6950
6954
  knob: Qr,
6951
6955
  label: ei,
6952
6956
  track: En
@@ -6975,7 +6979,7 @@ const Sc = /* @__PURE__ */ Se(({
6975
6979
  className: ue(n, z.root),
6976
6980
  role: "slider",
6977
6981
  children: /* @__PURE__ */ S.jsxs("div", { ref: Y, style: G.body, children: [
6978
- Ne(M.track ?? /* @__PURE__ */ S.jsx(En, {}), {
6982
+ Ne(C.track ?? /* @__PURE__ */ S.jsx(En, {}), {
6979
6983
  className: ue("start", z.track),
6980
6984
  style: le(G.track, x === "vertical" ? {
6981
6985
  height: `calc(${q * 100}% - ${N <= 0 ? 0 : u * 0.5}px - ${N}px)`,
@@ -6986,7 +6990,7 @@ const Sc = /* @__PURE__ */ Se(({
6986
6990
  }),
6987
6991
  onClick: j
6988
6992
  }, /* @__PURE__ */ S.jsx("div", { style: G.trackHitBox })),
6989
- Ne(M.track ?? /* @__PURE__ */ S.jsx(En, {}), {
6993
+ Ne(C.track ?? /* @__PURE__ */ S.jsx(En, {}), {
6990
6994
  className: ue("end", z.track),
6991
6995
  style: le(G.track, x === "vertical" ? {
6992
6996
  bottom: "0",
@@ -6997,10 +7001,10 @@ const Sc = /* @__PURE__ */ Se(({
6997
7001
  }),
6998
7002
  onClick: j
6999
7003
  }, /* @__PURE__ */ S.jsx("div", { style: G.trackHitBox })),
7000
- /* @__PURE__ */ S.jsx("button", { ref: U, style: G.knobContainer, children: Ne(M.knob ?? /* @__PURE__ */ S.jsx(Qr, {}), {
7004
+ /* @__PURE__ */ S.jsx("button", { ref: U, style: G.knobContainer, children: Ne(C.knob ?? /* @__PURE__ */ S.jsx(Qr, {}), {
7001
7005
  className: ue(z.knob),
7002
7006
  style: le(G.knob)
7003
- }, w && g && Ne(M.label ?? /* @__PURE__ */ S.jsx(ei, {}), {
7007
+ }, w && g && Ne(C.label ?? /* @__PURE__ */ S.jsx(ei, {}), {
7004
7008
  className: ue(z.label),
7005
7009
  style: le(G.label)
7006
7010
  }, g(V, Tn(V, w)))) })
@@ -7122,16 +7126,16 @@ const Nc = /* @__PURE__ */ Se(({
7122
7126
  onSwipeUp: p,
7123
7127
  ...g
7124
7128
  }, m) => {
7125
- const [x, w] = ke(void 0), [N, O] = ke(void 0), [C, _] = ke(NaN), B = (j, Y) => {
7129
+ const [x, w] = ke(void 0), [N, O] = ke(void 0), [M, _] = ke(NaN), B = (j, Y) => {
7126
7130
  if (isNaN(j) || isNaN(Y)) return X();
7127
7131
  w(ye.make(j, Y));
7128
7132
  }, W = (j, Y) => {
7129
7133
  const U = x;
7130
7134
  if (U === void 0) return;
7131
- const H = U.x !== j || U.y !== Y, T = !isNaN(C);
7135
+ const H = U.x !== j || U.y !== Y, T = !isNaN(M);
7132
7136
  H && (T || _(Date.now()), O(ye.make(j, Y)));
7133
7137
  }, D = () => {
7134
- const j = C, Y = x, U = N;
7138
+ const j = M, Y = x, U = N;
7135
7139
  if (isNaN(j) || Y === void 0 || U === void 0) return;
7136
7140
  const H = Date.now() - j, T = U.x - Y.x, re = U.y - Y.y, ie = T / H, V = re / H;
7137
7141
  n && (Math.abs(ie) >= s && Math.abs(ie) > Math.abs(V) ? ie > 0 ? u?.() : l?.() : Math.abs(V) >= s && Math.abs(V) > Math.abs(ie) && (V > 0 ? c?.() : p?.())), X();
@@ -7169,7 +7173,7 @@ function Pc({
7169
7173
  const w = () => {
7170
7174
  const W = document.createElement("span");
7171
7175
  W.className = ue(n), W.innerHTML = g, W.role = "tooltip";
7172
- const D = c ?? (C.current ? Wa(C.current, x) : "tl"), X = Ua(W), j = Ga({ alignment: D, arrowSize: Ae.make(u, l), gap: p, maxDialogWidth: m, fullDialogWidth: X.width, targetWidth: B.width }), Y = le(s, j.dialog);
7176
+ const D = c ?? (M.current ? Wa(M.current, x) : "tl"), X = Ua(W), j = Ga({ alignment: D, arrowSize: Ae.make(u, l), gap: p, maxDialogWidth: m, fullDialogWidth: X.width, targetWidth: B.width }), Y = le(s, j.dialog);
7173
7177
  Object.keys(Y).forEach((H) => W.style[H] = Y[H]);
7174
7178
  const U = document.createElement("span");
7175
7179
  return Object.keys(j.arrow).forEach((H) => U.style[H] = j.arrow[H]), W.appendChild(U), W;
@@ -7177,13 +7181,13 @@ function Pc({
7177
7181
  _.current && (_.current.style.opacity = "1", _.current.ariaHidden = "false");
7178
7182
  }, O = () => {
7179
7183
  _.current && (_.current.style.opacity = "0", _.current.ariaHidden = "true");
7180
- }, C = Te(null), _ = Te(void 0), B = st(C);
7184
+ }, M = Te(null), _ = Te(void 0), B = st(M);
7181
7185
  return he(() => {
7182
7186
  const W = w();
7183
- return C.current?.appendChild(W), _.current = W, () => {
7184
- C.current?.removeChild(W), _.current = void 0;
7187
+ return M.current?.appendChild(W), _.current = W, () => {
7188
+ M.current?.removeChild(W), _.current = void 0;
7185
7189
  };
7186
- }, [c, l, u, n, p, g, m, s, C.current, x]), /* @__PURE__ */ S.jsx(Vo, { ref: C, onMouseEnter: N, onMouseLeave: O, children: r });
7190
+ }, [c, l, u, n, p, g, m, s, M.current, x]), /* @__PURE__ */ S.jsx(Vo, { ref: M, onMouseEnter: N, onMouseLeave: O, children: r });
7187
7191
  }
7188
7192
  function Ua(r) {
7189
7193
  const n = r.cloneNode(!1);