etudes 22.3.0 → 23.0.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
@@ -7,7 +7,7 @@ var xo;
7
7
  function Xs() {
8
8
  if (xo) return St;
9
9
  xo = 1;
10
- var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
10
+ var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), r = /* @__PURE__ */ Symbol.for("react.fragment");
11
11
  function i(a, c, u) {
12
12
  var d = null;
13
13
  if (u !== void 0 && (d = "" + u), c.key !== void 0 && (d = "" + c.key), "key" in c) {
@@ -39,13 +39,13 @@ function Us() {
39
39
  return "Fragment";
40
40
  case W:
41
41
  return "Profiler";
42
- case q:
42
+ case K:
43
43
  return "StrictMode";
44
44
  case P:
45
45
  return "Suspense";
46
46
  case E:
47
47
  return "SuspenseList";
48
- case K:
48
+ case G:
49
49
  return "Activity";
50
50
  }
51
51
  if (typeof k == "object")
@@ -83,11 +83,11 @@ function Us() {
83
83
  }
84
84
  if (U) {
85
85
  U = console;
86
- var Z = U.error, G = typeof Symbol == "function" && Symbol.toStringTag && k[Symbol.toStringTag] || k.constructor.name || "Object";
86
+ var Z = U.error, q = typeof Symbol == "function" && Symbol.toStringTag && k[Symbol.toStringTag] || k.constructor.name || "Object";
87
87
  return Z.call(
88
88
  U,
89
89
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
90
- G
90
+ q
91
91
  ), r(k);
92
92
  }
93
93
  }
@@ -134,14 +134,14 @@ function Us() {
134
134
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
135
135
  )), k = this.props.ref, k !== void 0 ? k : null;
136
136
  }
137
- function b(k, U, Z, G, fe, ge) {
137
+ function b(k, U, Z, q, fe, ge) {
138
138
  var ue = Z.ref;
139
139
  return k = {
140
140
  $$typeof: A,
141
141
  type: k,
142
142
  key: U,
143
143
  props: Z,
144
- _owner: G
144
+ _owner: q
145
145
  }, (ue !== void 0 ? ue : null) !== null ? Object.defineProperty(k, "ref", {
146
146
  enumerable: !1,
147
147
  get: m
@@ -167,13 +167,13 @@ function Us() {
167
167
  value: ge
168
168
  }), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
169
169
  }
170
- function T(k, U, Z, G, fe, ge) {
170
+ function O(k, U, Z, q, fe, ge) {
171
171
  var ue = U.children;
172
172
  if (ue !== void 0)
173
- if (G)
173
+ if (q)
174
174
  if (D(ue)) {
175
- for (G = 0; G < ue.length; G++)
176
- _(ue[G]);
175
+ for (q = 0; q < ue.length; q++)
176
+ _(ue[q]);
177
177
  Object.freeze && Object.freeze(ue);
178
178
  } else
179
179
  console.error(
@@ -185,18 +185,18 @@ function Us() {
185
185
  var Ne = Object.keys(U).filter(function(Be) {
186
186
  return Be !== "key";
187
187
  });
188
- G = 0 < Ne.length ? "{key: someKey, " + Ne.join(": ..., ") + ": ...}" : "{key: someKey}", R[ue + G] || (Ne = 0 < Ne.length ? "{" + Ne.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ q = 0 < Ne.length ? "{key: someKey, " + Ne.join(": ..., ") + ": ...}" : "{key: someKey}", R[ue + q] || (Ne = 0 < Ne.length ? "{" + Ne.join(": ..., ") + ": ...}" : "{}", console.error(
189
189
  `A props object containing a "key" prop is being spread into JSX:
190
190
  let props = %s;
191
191
  <%s {...props} />
192
192
  React keys must be passed directly to JSX without using spread:
193
193
  let props = %s;
194
194
  <%s key={someKey} {...props} />`,
195
- G,
195
+ q,
196
196
  ue,
197
197
  Ne,
198
198
  ue
199
- ), R[ue + G] = !0);
199
+ ), R[ue + q] = !0);
200
200
  }
201
201
  if (ue = null, Z !== void 0 && (i(Z), ue = "" + Z), d(U) && (i(U.key), ue = "" + U.key), "key" in U) {
202
202
  Z = {};
@@ -221,7 +221,7 @@ React keys must be passed directly to JSX without using spread:
221
221
  function I(k) {
222
222
  return typeof k == "object" && k !== null && k.$$typeof === A;
223
223
  }
224
- var $ = Bs, A = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), Y = Symbol.for("react.consumer"), J = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), K = Symbol.for("react.activity"), oe = Symbol.for("react.client.reference"), Q = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, D = Array.isArray, z = console.createTask ? console.createTask : function() {
224
+ var $ = Bs, A = /* @__PURE__ */ Symbol.for("react.transitional.element"), S = /* @__PURE__ */ Symbol.for("react.portal"), C = /* @__PURE__ */ Symbol.for("react.fragment"), K = /* @__PURE__ */ Symbol.for("react.strict_mode"), W = /* @__PURE__ */ Symbol.for("react.profiler"), Y = /* @__PURE__ */ Symbol.for("react.consumer"), J = /* @__PURE__ */ Symbol.for("react.context"), x = /* @__PURE__ */ Symbol.for("react.forward_ref"), P = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), M = /* @__PURE__ */ Symbol.for("react.memo"), B = /* @__PURE__ */ Symbol.for("react.lazy"), G = /* @__PURE__ */ Symbol.for("react.activity"), oe = /* @__PURE__ */ Symbol.for("react.client.reference"), Q = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, D = Array.isArray, z = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
227
  $ = {
@@ -234,24 +234,24 @@ React keys must be passed directly to JSX without using spread:
234
234
  u
235
235
  )(), F = z(a(u)), R = {};
236
236
  _t.Fragment = C, _t.jsx = function(k, U, Z) {
237
- var G = 1e4 > Q.recentlyCreatedOwnerStacks++;
238
- return T(
237
+ var q = 1e4 > Q.recentlyCreatedOwnerStacks++;
238
+ return O(
239
239
  k,
240
240
  U,
241
241
  Z,
242
242
  !1,
243
- G ? Error("react-stack-top-frame") : ae,
244
- G ? z(a(k)) : F
243
+ q ? Error("react-stack-top-frame") : ae,
244
+ q ? z(a(k)) : F
245
245
  );
246
246
  }, _t.jsxs = function(k, U, Z) {
247
- var G = 1e4 > Q.recentlyCreatedOwnerStacks++;
248
- return T(
247
+ var q = 1e4 > Q.recentlyCreatedOwnerStacks++;
248
+ return O(
249
249
  k,
250
250
  U,
251
251
  Z,
252
252
  !0,
253
- G ? Error("react-stack-top-frame") : ae,
254
- G ? z(a(k)) : F
253
+ q ? Error("react-stack-top-frame") : ae,
254
+ q ? z(a(k)) : F
255
255
  );
256
256
  };
257
257
  })()), _t;
@@ -358,28 +358,20 @@ const Yo = /* @__PURE__ */ Te(({
358
358
  bar: se({
359
359
  active: i
360
360
  })
361
- }, T = Gs({ isSplit: c, isActive: i, isTailHidden: a });
361
+ }, O = Gs({ isSplit: c, isActive: i, isTailHidden: a });
362
362
  return /* @__PURE__ */ w.jsx(
363
363
  "div",
364
364
  {
365
365
  ...d,
366
366
  ref: g,
367
367
  className: se(r, b.root),
368
- children: /* @__PURE__ */ w.jsx(nn, { count: c ? 2 : 1, children: (_) => /* @__PURE__ */ w.jsx("div", { "aria-hidden": !0, style: ce(T.section, T[`section${_}`]), children: /* @__PURE__ */ w.jsx(nn, { count: u, children: (I) => /* @__PURE__ */ w.jsx(
368
+ children: /* @__PURE__ */ w.jsx(nn, { count: c ? 2 : 1, children: (_) => /* @__PURE__ */ w.jsx("div", { "aria-hidden": !0, style: ce(O.section, O[`section${_}`]), children: /* @__PURE__ */ w.jsx(nn, { count: u, children: (I) => /* @__PURE__ */ w.jsx(
369
369
  me,
370
370
  {
371
371
  "aria-hidden": !0,
372
372
  className: se(b.bar),
373
373
  element: m.bar ?? /* @__PURE__ */ w.jsx(rn, {}),
374
- style: (() => {
375
- switch (u) {
376
- case 2:
377
- return ce(T.bar, T[`bar${_}${I === 0 ? 0 : 2}`]);
378
- case 3:
379
- default:
380
- return ce(T.bar, T[`bar${_}${I}`]);
381
- }
382
- })()
374
+ style: u === 2 ? ce(O.bar, O[`bar${_}${I === 0 ? 0 : 2}`]) : ce(O.bar, O[`bar${_}${I}`])
383
375
  }
384
376
  ) }) }) })
385
377
  }
@@ -463,7 +455,7 @@ const Uo = /* @__PURE__ */ Te(({
463
455
  onActivate: g,
464
456
  onDeactivate: m,
465
457
  onToggle: b,
466
- ...T
458
+ ...O
467
459
  }, _) => {
468
460
  const I = () => {
469
461
  const S = !a;
@@ -476,7 +468,7 @@ const Uo = /* @__PURE__ */ Te(({
476
468
  return /* @__PURE__ */ w.jsx(
477
469
  "button",
478
470
  {
479
- ...T,
471
+ ...O,
480
472
  ref: _,
481
473
  "aria-expanded": a,
482
474
  className: se(r, $.root),
@@ -577,13 +569,13 @@ var _e;
577
569
  return `Point(x=${S.x}, y=${S.y})`;
578
570
  }
579
571
  e.toString = b;
580
- function T(S) {
572
+ function O(S) {
581
573
  return Object.freeze({
582
574
  x: S.x,
583
575
  y: S.y
584
576
  });
585
577
  }
586
- e.toJSON = T;
578
+ e.toJSON = O;
587
579
  function _(S) {
588
580
  return [S.x, S.y];
589
581
  }
@@ -703,13 +695,13 @@ var je;
703
695
  return `Size(width=${S.width}, height=${S.height})`;
704
696
  }
705
697
  e.toString = b;
706
- function T(S) {
698
+ function O(S) {
707
699
  return Object.freeze({
708
700
  width: S.width,
709
701
  height: S.height
710
702
  });
711
703
  }
712
- e.toJSON = T;
704
+ e.toJSON = O;
713
705
  function _(S) {
714
706
  return [S.width, S.height];
715
707
  }
@@ -732,24 +724,24 @@ var be;
732
724
  e.zero = r();
733
725
  function r(x = 0, P = 0, E = 0, M = 0) {
734
726
  if (typeof x == "number" && typeof P == "number") {
735
- const B = x, K = P;
727
+ const B = x, G = P;
736
728
  return {
737
- top: K,
729
+ top: G,
738
730
  right: B + E,
739
- bottom: K + M,
731
+ bottom: G + M,
740
732
  left: B,
741
733
  width: E,
742
734
  height: M
743
735
  };
744
736
  } else if (_e.isPoint(x) && je.isSize(P)) {
745
- const B = x, K = P;
737
+ const B = x, G = P;
746
738
  return {
747
739
  top: B.y,
748
- right: B.x + K.width,
749
- bottom: B.y + K.height,
740
+ right: B.x + G.width,
741
+ bottom: B.y + G.height,
750
742
  left: B.x,
751
- width: K.width,
752
- height: K.height
743
+ width: G.width,
744
+ height: G.height
753
745
  };
754
746
  } else {
755
747
  const B = x;
@@ -784,13 +776,13 @@ var be;
784
776
  if (x == null) return;
785
777
  if (Y(x)) return x;
786
778
  if (Tt(x)) return c(document.documentElement || document.body.parentNode || document.body, P);
787
- const E = x instanceof Array ? x : [x], M = E.length, B = P.reference || window, K = u(), oe = Tt(B) ? K : c(P.reference);
788
- if (!K || !oe) return;
779
+ const E = x instanceof Array ? x : [x], M = E.length, B = P.reference || window, G = u(), oe = Tt(B) ? G : c(P.reference);
780
+ if (!G || !oe) return;
789
781
  let Q;
790
782
  for (let X = 0; X < M; X++) {
791
783
  const D = E[X], z = D.getBoundingClientRect(), te = r({
792
- x: z.left + K.left - (Tt(B) ? 0 : oe.left),
793
- y: z.top + K.top - (Tt(B) ? 0 : oe.top),
784
+ x: z.left + G.left - (Tt(B) ? 0 : oe.left),
785
+ y: z.top + G.top - (Tt(B) ? 0 : oe.top),
794
786
  width: P.overflow ? D.scrollWidth : D instanceof HTMLElement ? D.offsetWidth : z.width,
795
787
  height: P.overflow ? D.scrollHeight : D instanceof HTMLElement ? D.offsetHeight : z.height
796
788
  });
@@ -837,15 +829,15 @@ var be;
837
829
  });
838
830
  }
839
831
  e.fromChildAt = b;
840
- function T(...x) {
832
+ function O(...x) {
841
833
  try {
842
834
  const P = x.length, E = {};
843
835
  let M, B;
844
- for (let K = 0; K < P; K++) {
845
- if (M || (M = c(x[K])), K === 0 && K + 1 === P)
836
+ for (let G = 0; G < P; G++) {
837
+ if (M || (M = c(x[G])), G === 0 && G + 1 === P)
846
838
  B = u();
847
- else if (K + 1 < P)
848
- B = c(x[K + 1]);
839
+ else if (G + 1 < P)
840
+ B = c(x[G + 1]);
849
841
  else
850
842
  break;
851
843
  !M || !B || (E.width = Math.max(0, Math.min(M.right, B.right) - Math.max(M.left, B.left)), E.height = Math.max(0, Math.min(M.bottom, B.bottom) - Math.max(M.top, B.top)), E.y = Math.max(M.top, B.top), E.x = Math.max(M.left, B.left), E.width * E.height === 0 && (E.width = 0, E.height = 0, E.y = NaN, E.x = NaN), M = r(E));
@@ -856,7 +848,7 @@ var be;
856
848
  return;
857
849
  }
858
850
  }
859
- e.intersecting = T;
851
+ e.intersecting = O;
860
852
  function _(x, P = {}) {
861
853
  return r({
862
854
  x: typeof P.x == "number" ? P.x : x.left,
@@ -896,7 +888,7 @@ var be;
896
888
  return `Rect(top=${x.top}, right=${x.right}, bottom=${x.bottom}, left=${x.left}, width=${x.width}, height=${x.height})`;
897
889
  }
898
890
  e.toString = C;
899
- function q(x) {
891
+ function K(x) {
900
892
  return Object.freeze({
901
893
  top: x.top,
902
894
  right: x.right,
@@ -906,7 +898,7 @@ var be;
906
898
  height: x.height
907
899
  });
908
900
  }
909
- e.toJSON = q;
901
+ e.toJSON = K;
910
902
  function W(x) {
911
903
  return !(typeof x.x != "number" || typeof x.y != "number" || typeof x.width != "number" || typeof x.height != "number");
912
904
  }
@@ -1038,18 +1030,18 @@ var on;
1038
1030
  function Qs({ src: e, srcSet: r, sizes: i }, { onLoadStart: a, onLoadComplete: c, onLoadError: u } = {}) {
1039
1031
  const d = we(void 0), g = Se(a), m = Se(c), b = Se(u);
1040
1032
  $e(() => {
1041
- let T = !1;
1033
+ let O = !1;
1042
1034
  const _ = (A) => {
1043
- if (T) return;
1035
+ if (O) return;
1044
1036
  const S = A.currentTarget;
1045
1037
  m.current?.(S);
1046
1038
  }, I = (A) => {
1047
- if (T) return;
1039
+ if (O) return;
1048
1040
  const S = A.currentTarget;
1049
1041
  b.current?.(S);
1050
1042
  }, $ = new Image();
1051
1043
  return $.addEventListener("load", _), $.addEventListener("error", I), g.current?.($), r && ($.srcset = r), i && ($.sizes = i), $.src = e, d.current = $, () => {
1052
- T = !0, $.removeEventListener("load", _), $.removeEventListener("error", I), d.current = void 0;
1044
+ O = !0, $.removeEventListener("load", _), $.removeEventListener("error", I), d.current = void 0;
1053
1045
  };
1054
1046
  }, [e, r, i]);
1055
1047
  }
@@ -1063,10 +1055,10 @@ function Go({
1063
1055
  onLoadComplete: u,
1064
1056
  onLoadError: d
1065
1057
  } = {}) {
1066
- const [g, m] = Oe(), b = Se(c), T = Se(u), _ = Se(d), I = he((S) => {
1058
+ const [g, m] = Oe(), b = Se(c), O = Se(u), _ = Se(d), I = he((S) => {
1067
1059
  a || m(void 0), b.current?.(S);
1068
1060
  }, [a]), $ = he((S) => {
1069
- m(ea(S)), T.current?.(S);
1061
+ m(ea(S)), O.current?.(S);
1070
1062
  }, []), A = he((S) => {
1071
1063
  a || m(void 0), _.current?.(S);
1072
1064
  }, [a]);
@@ -1091,7 +1083,7 @@ const qo = /* @__PURE__ */ Te(({
1091
1083
  onLoadError: g,
1092
1084
  onSizeChange: m,
1093
1085
  ...b
1094
- }, T) => {
1086
+ }, O) => {
1095
1087
  const _ = r ? on.asProps(r) : void 0, I = Go({
1096
1088
  src: a,
1097
1089
  srcSet: _?.srcSet,
@@ -1108,7 +1100,7 @@ const qo = /* @__PURE__ */ Te(({
1108
1100
  {
1109
1101
  ...b,
1110
1102
  ..._,
1111
- ref: T,
1103
+ ref: O,
1112
1104
  alt: e,
1113
1105
  loading: i,
1114
1106
  src: a,
@@ -1135,7 +1127,7 @@ const Wo = /* @__PURE__ */ Te(({
1135
1127
  onSizeChange: g,
1136
1128
  ...m
1137
1129
  }, b) => /* @__PURE__ */ w.jsxs("picture", { ...m, ref: b, children: [
1138
- i.map((T, _) => /* @__PURE__ */ w.jsx("source", { ...on.asProps(T) }, _)),
1130
+ i.map((O, _) => /* @__PURE__ */ w.jsx("source", { ...on.asProps(O) }, _)),
1139
1131
  /* @__PURE__ */ w.jsx(
1140
1132
  qo,
1141
1133
  {
@@ -1162,13 +1154,13 @@ const Jo = /* @__PURE__ */ Te(({
1162
1154
  onLoadStart: g,
1163
1155
  onLoadComplete: m,
1164
1156
  onLoadError: b,
1165
- ...T
1157
+ ...O
1166
1158
  }, _) => {
1167
1159
  const I = (P) => {
1168
1160
  C(P ? P.width / P.height : NaN);
1169
- }, $ = we(null), A = _ ?? $, [S, C] = Oe(NaN), q = isNaN(i) ? S : i, W = nt(A), Y = W.width / W.height, J = je.make(
1170
- Y > 1 ? Math.max(W.width, W.height * q) : Math.max(W.width, Math.max(W.height, W.width / q) * q),
1171
- Y > 1 ? Math.max(W.height, Math.max(W.width, W.height * q) / q) : Math.max(W.height, W.width / q)
1161
+ }, $ = we(null), A = _ ?? $, [S, C] = Oe(NaN), K = isNaN(i) ? S : i, W = nt(A), Y = W.width / W.height, J = je.make(
1162
+ Y > 1 ? Math.max(W.width, W.height * K) : Math.max(W.width, Math.max(W.height, W.width / K) * K),
1163
+ Y > 1 ? Math.max(W.height, Math.max(W.width, W.height * K) / K) : Math.max(W.height, W.width / K)
1172
1164
  ), x = ze(e, {
1173
1165
  content: vr,
1174
1166
  viewport: yr
@@ -1176,7 +1168,7 @@ const Jo = /* @__PURE__ */ Te(({
1176
1168
  return /* @__PURE__ */ w.jsxs(
1177
1169
  "div",
1178
1170
  {
1179
- ...T,
1171
+ ...O,
1180
1172
  ref: A,
1181
1173
  style: ce(d, ar.root),
1182
1174
  children: [
@@ -1254,7 +1246,7 @@ function ra(e, {
1254
1246
  onLoadComplete: a,
1255
1247
  onLoadError: c
1256
1248
  } = {}) {
1257
- const [u, d] = Oe(), g = Se(i), m = Se(a), b = Se(c), T = he(($) => {
1249
+ const [u, d] = Oe(), g = Se(i), m = Se(a), b = Se(c), O = he(($) => {
1258
1250
  r || d(void 0), g.current?.($);
1259
1251
  }, [r]), _ = he(($) => {
1260
1252
  d(oa($)), m.current?.($);
@@ -1262,7 +1254,7 @@ function ra(e, {
1262
1254
  r || d(void 0), b.current?.($);
1263
1255
  }, [r]);
1264
1256
  return na(e, {
1265
- onLoadStart: T,
1257
+ onLoadStart: O,
1266
1258
  onLoadComplete: _,
1267
1259
  onLoadError: I
1268
1260
  }), u;
@@ -1282,14 +1274,14 @@ const Zo = /* @__PURE__ */ Te(({
1282
1274
  style: g,
1283
1275
  onCanPlay: m,
1284
1276
  onEnd: b,
1285
- onFullscreenChange: T,
1277
+ onFullscreenChange: O,
1286
1278
  onLoadMetadata: _,
1287
1279
  onLoadMetadataComplete: I,
1288
1280
  onLoadMetadataError: $,
1289
1281
  onPause: A,
1290
1282
  onPlay: S,
1291
1283
  onSizeChange: C,
1292
- onTimeUpdate: q,
1284
+ onTimeUpdate: K,
1293
1285
  ...W
1294
1286
  }, Y) => {
1295
1287
  const J = we(null), x = Y ?? J, P = ra(d, {
@@ -1308,7 +1300,7 @@ const Zo = /* @__PURE__ */ Te(({
1308
1300
  }
1309
1301
  const z = (te) => {
1310
1302
  const ne = window.document.fullScreen || window.document.mozFullScreen || window.document.webkitIsFullScreen;
1311
- ne !== void 0 && T?.(ne);
1303
+ ne !== void 0 && O?.(ne);
1312
1304
  };
1313
1305
  return x.current.muted = a, x.current.load(), x.current.addEventListener("webkitfullscreenchange", z), x.current.addEventListener("mozfullscreenchange", z), x.current.addEventListener("fullscreenchange", z), () => {
1314
1306
  D(), x.current?.removeEventListener("webkitfullscreenchange", z), x.current?.removeEventListener("mozfullscreenchange", z), x.current?.removeEventListener("fullscreenchange", z);
@@ -1321,13 +1313,13 @@ const Zo = /* @__PURE__ */ Te(({
1321
1313
  r && te.paused && X(), m?.();
1322
1314
  }, B = (z) => {
1323
1315
  S?.();
1324
- }, K = (z) => {
1316
+ }, G = (z) => {
1325
1317
  A?.();
1326
1318
  }, oe = (z) => {
1327
1319
  b?.();
1328
1320
  }, Q = (z) => {
1329
1321
  const te = z.currentTarget;
1330
- q?.(te.currentTime, te.duration);
1322
+ K?.(te.currentTime, te.duration);
1331
1323
  }, X = () => {
1332
1324
  x.current && x.current.play();
1333
1325
  }, D = () => {
@@ -1347,7 +1339,7 @@ const Zo = /* @__PURE__ */ Te(({
1347
1339
  style: { ...E.root, ...g },
1348
1340
  onCanPlay: M,
1349
1341
  onEnded: oe,
1350
- onPause: K,
1342
+ onPause: G,
1351
1343
  onPlay: B,
1352
1344
  onTimeUpdate: Q,
1353
1345
  children: /* @__PURE__ */ w.jsx("source", { src: d })
@@ -1373,21 +1365,21 @@ const Qo = /* @__PURE__ */ Te(({
1373
1365
  isMuted: g,
1374
1366
  playsInline: m,
1375
1367
  posterSrc: b,
1376
- src: T,
1368
+ src: O,
1377
1369
  onCanPlay: _,
1378
1370
  onEnd: I,
1379
1371
  onFullscreenChange: $,
1380
1372
  onLoadMetadata: A,
1381
1373
  onLoadMetadataComplete: S,
1382
1374
  onLoadMetadataError: C,
1383
- onPause: q,
1375
+ onPause: K,
1384
1376
  onPlay: W,
1385
1377
  onSizeChange: Y,
1386
1378
  ...J
1387
1379
  }, x) => {
1388
1380
  const P = (z) => {
1389
- K(z ? z.width / z.height : NaN), Y?.(z);
1390
- }, E = x ?? we(null), M = nt(E), [B, K] = Oe(NaN), oe = isNaN(a) ? B : a, Q = M.width / M.height, X = je.make(
1381
+ G(z ? z.width / z.height : NaN), Y?.(z);
1382
+ }, E = x ?? we(null), M = nt(E), [B, G] = Oe(NaN), oe = isNaN(a) ? B : a, Q = M.width / M.height, X = je.make(
1391
1383
  Q > 1 ? Math.max(M.width, M.height * oe) : Math.max(M.width, Math.max(M.height, M.width / oe) * oe),
1392
1384
  Q > 1 ? Math.max(M.height, Math.max(M.width, M.height * oe) / oe) : Math.max(M.height, M.width / oe)
1393
1385
  ), D = ze(r, {
@@ -1411,7 +1403,7 @@ const Qo = /* @__PURE__ */ Te(({
1411
1403
  isMuted: g,
1412
1404
  playsInline: m,
1413
1405
  posterSrc: b,
1414
- src: T,
1406
+ src: O,
1415
1407
  style: ce(cr.viewport, {
1416
1408
  width: `${X.width}px`,
1417
1409
  height: `${X.height}px`,
@@ -1423,7 +1415,7 @@ const Qo = /* @__PURE__ */ Te(({
1423
1415
  onLoadMetadata: A,
1424
1416
  onLoadMetadataComplete: S,
1425
1417
  onLoadMetadataError: C,
1426
- onPause: q,
1418
+ onPause: K,
1427
1419
  onPlay: W,
1428
1420
  onSizeChange: (z) => P(z)
1429
1421
  }
@@ -1522,8 +1514,8 @@ const ca = /* @__PURE__ */ Te(({
1522
1514
  }, u) => {
1523
1515
  const d = i.length - 1, g = i[e], m = typeof g == "string" ? g : g?.label, b = he(() => {
1524
1516
  if (r) return;
1525
- const T = e < d ? e + 1 : 0, _ = i[T], I = typeof _ == "string" ? _ : _?.value;
1526
- a?.(I, T);
1517
+ const O = e < d ? e + 1 : 0, _ = i[O], I = typeof _ == "string" ? _ : _?.value;
1518
+ a?.(I, O);
1527
1519
  }, [d, r, e, i, a]);
1528
1520
  return /* @__PURE__ */ w.jsx(
1529
1521
  ei,
@@ -1621,10 +1613,10 @@ function da() {
1621
1613
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
1622
1614
  n.prototype = Object.create(t && t.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), t && _(n, t);
1623
1615
  }
1624
- function T(n) {
1625
- return T = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1616
+ function O(n) {
1617
+ return O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1626
1618
  return t.__proto__ || Object.getPrototypeOf(t);
1627
- }, T(n);
1619
+ }, O(n);
1628
1620
  }
1629
1621
  function _(n, t) {
1630
1622
  return _ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, s) {
@@ -1647,9 +1639,9 @@ function da() {
1647
1639
  }
1648
1640
  })();
1649
1641
  return function() {
1650
- var o, s = T(n);
1642
+ var o, s = O(n);
1651
1643
  if (t) {
1652
- var l = T(this).constructor;
1644
+ var l = O(this).constructor;
1653
1645
  o = Reflect.construct(s, arguments, l);
1654
1646
  } else o = s.apply(this, arguments);
1655
1647
  return (function(f, p) {
@@ -1662,7 +1654,7 @@ function da() {
1662
1654
  function A() {
1663
1655
  return A = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(n, t, o) {
1664
1656
  var s = (function(f, p) {
1665
- for (; !Object.prototype.hasOwnProperty.call(f, p) && (f = T(f)) !== null; ) ;
1657
+ for (; !Object.prototype.hasOwnProperty.call(f, p) && (f = O(f)) !== null; ) ;
1666
1658
  return f;
1667
1659
  })(n, t);
1668
1660
  if (s) {
@@ -1686,9 +1678,9 @@ function da() {
1686
1678
  }
1687
1679
  var C = function(n) {
1688
1680
  return !(!n || !n.Window) && n instanceof n.Window;
1689
- }, q = void 0, W = void 0;
1681
+ }, K = void 0, W = void 0;
1690
1682
  function Y(n) {
1691
- q = n;
1683
+ K = n;
1692
1684
  var t = n.document.createTextNode("");
1693
1685
  t.ownerDocument !== n.document && typeof n.wrap == "function" && n.wrap(t) === t && (n = n.wrap(n)), W = n;
1694
1686
  }
@@ -1736,9 +1728,9 @@ function da() {
1736
1728
  }
1737
1729
  }
1738
1730
  }
1739
- var K = { id: "actions/drag", install: function(n) {
1731
+ var G = { id: "actions/drag", install: function(n) {
1740
1732
  var t = n.actions, o = n.Interactable, s = n.defaults;
1741
- o.prototype.draggable = K.draggable, t.map.drag = K, t.methodDict.drag = "draggable", s.actions.drag = K.defaults;
1733
+ o.prototype.draggable = G.draggable, t.map.drag = G, t.methodDict.drag = "draggable", s.actions.drag = G.defaults;
1742
1734
  }, listeners: { "interactions:before-action-move": M, "interactions:action-resume": M, "interactions:action-move": B, "auto-start:check": function(n) {
1743
1735
  var t = n.interaction, o = n.interactable, s = n.buttons, l = o.options.drag;
1744
1736
  if (l && l.enabled && (!t.pointerIsDown || !/mouse|pointer/.test(t.pointerType) || (s & o.options.drag.mouseButtons) != 0)) return n.action = { name: "drag", axis: l.lockAxis === "start" ? l.startAxis : l.lockAxis }, !1;
@@ -1748,7 +1740,7 @@ function da() {
1748
1740
  return "move";
1749
1741
  }, filterEventType: function(n) {
1750
1742
  return n.search("drag") === 0;
1751
- } }, oe = K, Q = { init: function(n) {
1743
+ } }, oe = G, Q = { init: function(n) {
1752
1744
  var t = n;
1753
1745
  Q.document = t.document, Q.DocumentFragment = t.DocumentFragment || X, Q.SVGElement = t.SVGElement || X, Q.SVGSVGElement = t.SVGSVGElement || X, Q.SVGElementInstance = t.SVGElementInstance || X, Q.Element = t.Element || X, Q.HTMLElement = t.HTMLElement || Q.Element, Q.Event = t.Event, Q.Touch = t.Touch || X, Q.PointerEvent = t.PointerEvent || t.MSPointerEvent;
1754
1746
  }, document: null, DocumentFragment: null, SVGElement: null, SVGSVGElement: null, SVGElementInstance: null, Element: null, HTMLElement: null, Event: null, Touch: null, PointerEvent: null };
@@ -1782,7 +1774,7 @@ function da() {
1782
1774
  return t;
1783
1775
  }
1784
1776
  function R(n, t) {
1785
- return W !== q && (t = t.replace(/\/deep\//g, " ")), n[te.prefixedMatchesSelector](t);
1777
+ return W !== K && (t = t.replace(/\/deep\//g, " ")), n[te.prefixedMatchesSelector](t);
1786
1778
  }
1787
1779
  var k = function(n) {
1788
1780
  return n.parentNode || n.host;
@@ -1798,7 +1790,7 @@ function da() {
1798
1790
  }
1799
1791
  return !1;
1800
1792
  }
1801
- function G(n) {
1793
+ function q(n) {
1802
1794
  return n.correspondingUseElement || n;
1803
1795
  }
1804
1796
  function fe(n) {
@@ -1937,7 +1929,7 @@ function da() {
1937
1929
  }
1938
1930
  function Mr(n) {
1939
1931
  var t = E.func(n.composedPath) ? n.composedPath() : n.path;
1940
- return [G(t ? t[0] : n.target), G(n.currentTarget)];
1932
+ return [q(t ? t[0] : n.target), q(n.currentTarget)];
1941
1933
  }
1942
1934
  var Dt = (function() {
1943
1935
  function n(t) {
@@ -2005,8 +1997,8 @@ function da() {
2005
1997
  for (var h = [], v = 0, N = f.interactables.list; v < N.length; v++) {
2006
1998
  var y = N[v];
2007
1999
  if (y.options.drop.enabled) {
2008
- var O = y.options.drop.accept;
2009
- if (!(E.element(O) && O !== p || E.string(O) && !R(p, O) || E.func(O) && !O({ dropzone: y, draggableElement: p }))) for (var j = 0, V = y.getAllElements(); j < V.length; j++) {
2000
+ var T = y.options.drop.accept;
2001
+ if (!(E.element(T) && T !== p || E.string(T) && !R(p, T) || E.func(T) && !T({ dropzone: y, draggableElement: p }))) for (var j = 0, V = y.getAllElements(); j < V.length; j++) {
2010
2002
  var L = V[j];
2011
2003
  L !== p && h.push({ dropzone: y, element: L, rect: y.getRect(L) });
2012
2004
  }
@@ -2021,8 +2013,8 @@ function da() {
2021
2013
  }
2022
2014
  function Fr(n, t, o) {
2023
2015
  for (var s = n.dropState, l = n.interactable, f = n.element, p = [], h = 0, v = s.activeDrops; h < v.length; h++) {
2024
- var N = v[h], y = N.dropzone, O = N.element, j = N.rect, V = y.dropCheck(t, o, l, f, O, j);
2025
- p.push(V ? O : null);
2016
+ var N = v[h], y = N.dropzone, T = N.element, j = N.rect, V = y.dropCheck(t, o, l, f, T, j);
2017
+ p.push(V ? T : null);
2026
2018
  }
2027
2019
  var L = (function(H) {
2028
2020
  for (var ie, re, le, ve = [], xe = 0; xe < H.length; xe++) {
@@ -2077,8 +2069,8 @@ function da() {
2077
2069
  return (function(p, h) {
2078
2070
  if (E.object(h)) {
2079
2071
  if (p.options.drop.enabled = h.enabled !== !1, h.listeners) {
2080
- var v = Xe(h.listeners), N = Object.keys(v).reduce((function(O, j) {
2081
- return O[/^(enter|leave)/.test(j) ? "drag".concat(j) : /^(activate|deactivate|move)/.test(j) ? "drop".concat(j) : j] = v[j], O;
2072
+ var v = Xe(h.listeners), N = Object.keys(v).reduce((function(T, j) {
2073
+ return T[/^(enter|leave)/.test(j) ? "drag".concat(j) : /^(activate|deactivate|move)/.test(j) ? "drop".concat(j) : j] = v[j], T;
2082
2074
  }), {}), y = p.options.drop.listeners;
2083
2075
  y && p.off(y), p.on(N), p.options.drop.listeners = N;
2084
2076
  }
@@ -2087,10 +2079,10 @@ function da() {
2087
2079
  return E.bool(h) ? (p.options.drop.enabled = h, p) : p.options.drop;
2088
2080
  })(this, f);
2089
2081
  }, s.prototype.dropCheck = function(f, p, h, v, N, y) {
2090
- return (function(O, j, V, L, H, ie, re) {
2082
+ return (function(T, j, V, L, H, ie, re) {
2091
2083
  var le = !1;
2092
- if (!(re = re || O.getRect(ie))) return !!O.options.drop.checker && O.options.drop.checker(j, V, le, O, ie, L, H);
2093
- var ve = O.options.drop.overlap;
2084
+ if (!(re = re || T.getRect(ie))) return !!T.options.drop.checker && T.options.drop.checker(j, V, le, T, ie, L, H);
2085
+ var ve = T.options.drop.overlap;
2094
2086
  if (ve === "pointer") {
2095
2087
  var xe = Ye(L, H, "drag"), de = $r(j);
2096
2088
  de.x += xe.x, de.y += xe.y;
@@ -2102,7 +2094,7 @@ function da() {
2102
2094
  var Ve = Pe.left + Pe.width / 2, De = Pe.top + Pe.height / 2;
2103
2095
  le = Ve >= re.left && Ve <= re.right && De >= re.top && De <= re.bottom;
2104
2096
  }
2105
- return Pe && E.number(ve) && (le = Math.max(0, Math.min(re.right, Pe.right) - Math.max(re.left, Pe.left)) * Math.max(0, Math.min(re.bottom, Pe.bottom) - Math.max(re.top, Pe.top)) / (Pe.width * Pe.height) >= ve), O.options.drop.checker && (le = O.options.drop.checker(j, V, le, O, ie, L, H)), le;
2097
+ return Pe && E.number(ve) && (le = Math.max(0, Math.min(re.right, Pe.right) - Math.max(re.left, Pe.left)) * Math.max(0, Math.min(re.bottom, Pe.bottom) - Math.max(re.top, Pe.top)) / (Pe.width * Pe.height) >= ve), T.options.drop.checker && (le = T.options.drop.checker(j, V, le, T, ie, L, H)), le;
2106
2098
  })(this, f, p, h, v, N, y);
2107
2099
  }, o.dynamicDrop = function(f) {
2108
2100
  return E.bool(f) ? (n.dynamicDrop = f, o) : n.dynamicDrop;
@@ -2214,7 +2206,7 @@ function da() {
2214
2206
  (function(t) {
2215
2207
  var o = t.iEvent, s = t.interaction;
2216
2208
  if (s.prepared.name === "resize" && s.prepared.edges) {
2217
- var l = o, f = s.interactable.options.resize.invert, p = f === "reposition" || f === "negate", h = s.rect, v = s._rects, N = v.start, y = v.corrected, O = v.delta, j = v.previous;
2209
+ var l = o, f = s.interactable.options.resize.invert, p = f === "reposition" || f === "negate", h = s.rect, v = s._rects, N = v.start, y = v.corrected, T = v.delta, j = v.previous;
2218
2210
  if (ee(j, y), p) {
2219
2211
  if (ee(y, h), f === "reposition") {
2220
2212
  if (y.top > y.bottom) {
@@ -2227,8 +2219,8 @@ function da() {
2227
2219
  }
2228
2220
  }
2229
2221
  } else y.top = Math.min(h.top, N.bottom), y.bottom = Math.max(h.bottom, N.top), y.left = Math.min(h.left, N.right), y.right = Math.max(h.right, N.left);
2230
- for (var H in y.width = y.right - y.left, y.height = y.bottom - y.top, y) O[H] = y[H] - j[H];
2231
- l.edges = s.prepared.edges, l.rect = y, l.deltaRect = O;
2222
+ for (var H in y.width = y.right - y.left, y.height = y.bottom - y.top, y) T[H] = y[H] - j[H];
2223
+ l.edges = s.prepared.edges, l.rect = y, l.deltaRect = T;
2232
2224
  }
2233
2225
  })(n), Br(n);
2234
2226
  }, "interactions:action-end": function(n) {
@@ -2247,8 +2239,8 @@ function da() {
2247
2239
  for (var N in v) v[N] = ji(N, h.edges[N], p, t._latestPointer.eventTarget, s, l, h.margin || Ke.defaultMargin);
2248
2240
  v.left = v.left && !v.right, v.top = v.top && !v.bottom, (v.left || v.right || v.top || v.bottom) && (n.action = { name: "resize", edges: v });
2249
2241
  } else {
2250
- var y = h.axis !== "y" && p.x > l.right - Ke.defaultMargin, O = h.axis !== "x" && p.y > l.bottom - Ke.defaultMargin;
2251
- (y || O) && (n.action = { name: "resize", axes: (y ? "x" : "") + (O ? "y" : "") });
2242
+ var y = h.axis !== "y" && p.x > l.right - Ke.defaultMargin, T = h.axis !== "x" && p.y > l.bottom - Ke.defaultMargin;
2243
+ (y || T) && (n.action = { name: "resize", axes: (y ? "x" : "") + (T ? "y" : "") });
2252
2244
  }
2253
2245
  return !n.action && void 0;
2254
2246
  }
@@ -2296,7 +2288,7 @@ function da() {
2296
2288
  if (N.x || N.y) {
2297
2289
  var y = Xr(f);
2298
2290
  E.window(f) ? f.scrollBy(N.x, N.y) : f && (f.scrollLeft += N.x, f.scrollTop += N.y);
2299
- var O = Xr(f), j = { x: O.x - y.x, y: O.y - y.y };
2291
+ var T = Xr(f), j = { x: T.x - y.x, y: T.y - y.y };
2300
2292
  (j.x || j.y) && t.fire({ type: "autoscroll", target: o, interactable: t, delta: j, interaction: n, container: f });
2301
2293
  }
2302
2294
  pe.prevTime = p;
@@ -2309,10 +2301,10 @@ function da() {
2309
2301
  var t = n.interaction, o = n.pointer;
2310
2302
  if (t.interacting() && pe.check(t.interactable, t.prepared.name)) if (t.simulation) pe.x = pe.y = 0;
2311
2303
  else {
2312
- var s, l, f, p, h = t.interactable, v = t.element, N = t.prepared.name, y = h.options[N].autoScroll, O = Yr(y.container, h, v);
2313
- if (E.window(O)) p = o.clientX < pe.margin, s = o.clientY < pe.margin, l = o.clientX > O.innerWidth - pe.margin, f = o.clientY > O.innerHeight - pe.margin;
2304
+ var s, l, f, p, h = t.interactable, v = t.element, N = t.prepared.name, y = h.options[N].autoScroll, T = Yr(y.container, h, v);
2305
+ if (E.window(T)) p = o.clientX < pe.margin, s = o.clientY < pe.margin, l = o.clientX > T.innerWidth - pe.margin, f = o.clientY > T.innerHeight - pe.margin;
2314
2306
  else {
2315
- var j = fe(O);
2307
+ var j = fe(T);
2316
2308
  p = o.clientX < j.left + pe.margin, s = o.clientY < j.top + pe.margin, l = o.clientX > j.right - pe.margin, f = o.clientY > j.bottom - pe.margin;
2317
2309
  }
2318
2310
  pe.x = l ? 1 : p ? -1 : 0, pe.y = f ? 1 : s ? -1 : 0, pe.isScrolling || (pe.margin = y.margin, pe.speed = y.speed, pe.start(t));
@@ -2354,9 +2346,9 @@ function da() {
2354
2346
  var Vi = { id: "auto-start/interactableMethods", install: function(n) {
2355
2347
  var t = n.Interactable;
2356
2348
  t.prototype.getAction = function(o, s, l, f) {
2357
- var p = (function(h, v, N, y, O) {
2349
+ var p = (function(h, v, N, y, T) {
2358
2350
  var j = h.getRect(y), V = v.buttons || { 0: 1, 1: 4, 3: 8, 4: 16 }[v.button], L = { action: null, interactable: h, interaction: N, element: y, rect: j, buttons: V };
2359
- return O.fire("auto-start:check", L), L.action;
2351
+ return T.fire("auto-start:check", L), L.action;
2360
2352
  })(this, s, l, f, n);
2361
2353
  return this.options.actionChecker ? this.options.actionChecker(o, s, p, this, f, l) : p;
2362
2354
  }, t.prototype.ignoreFrom = yt((function(o) {
@@ -2370,9 +2362,9 @@ function da() {
2370
2362
  }
2371
2363
  function Di(n, t, o, s, l, f, p) {
2372
2364
  for (var h = 0, v = s.length; h < v; h++) {
2373
- var N = s[h], y = l[h], O = N.getAction(t, o, n, y);
2374
- if (O) {
2375
- var j = Ur(O, N, y, f, p);
2365
+ var N = s[h], y = l[h], T = N.getAction(t, o, n, y);
2366
+ if (T) {
2367
+ var j = Ur(T, N, y, f, p);
2376
2368
  if (j) return { action: j, interactable: N, element: y };
2377
2369
  }
2378
2370
  }
@@ -2398,8 +2390,8 @@ function da() {
2398
2390
  function Bt(n, t, o, s) {
2399
2391
  var l = n.options, f = l[o.name].max, p = l[o.name].maxPerElement, h = s.autoStart.maxInteractions, v = 0, N = 0, y = 0;
2400
2392
  if (!(f && p && h)) return !1;
2401
- for (var O = 0, j = s.interactions.list; O < j.length; O++) {
2402
- var V = j[O], L = V.prepared.name;
2393
+ for (var T = 0, j = s.interactions.list; T < j.length; T++) {
2394
+ var V = j[T], L = V.prepared.name;
2403
2395
  if (V.interacting() && (++v >= h || V.interactable === n && ((N += L === o.name ? 1 : 0) >= f || V.element === t && (y++, L === o.name && y >= p))))
2404
2396
  return !1;
2405
2397
  }
@@ -2452,25 +2444,25 @@ function da() {
2452
2444
  var p = Math.abs(l), h = Math.abs(f), v = o.interactable.options.drag, N = v.startAxis, y = p > h ? "x" : p < h ? "y" : "xy";
2453
2445
  if (o.prepared.axis = v.lockAxis === "start" ? y[0] : v.lockAxis, y !== "xy" && N !== "xy" && N !== y) {
2454
2446
  o.prepared.name = null;
2455
- for (var O = s, j = function(L) {
2447
+ for (var T = s, j = function(L) {
2456
2448
  if (L !== o.interactable) {
2457
2449
  var H = o.interactable.options.drag;
2458
- if (!H.manualStart && L.testIgnoreAllow(H, O, s)) {
2459
- var ie = L.getAction(o.downPointer, o.downEvent, o, O);
2450
+ if (!H.manualStart && L.testIgnoreAllow(H, T, s)) {
2451
+ var ie = L.getAction(o.downPointer, o.downEvent, o, T);
2460
2452
  if (ie && ie.name === "drag" && (function(re, le) {
2461
2453
  if (!le) return !1;
2462
2454
  var ve = le.options.drag.startAxis;
2463
2455
  return re === "xy" || ve === "xy" || ve === re;
2464
- })(y, L) && Wn.validateAction(ie, L, O, s, t)) return L;
2456
+ })(y, L) && Wn.validateAction(ie, L, T, s, t)) return L;
2465
2457
  }
2466
2458
  }
2467
- }; E.element(O); ) {
2468
- var V = t.interactables.forEachMatch(O, j);
2459
+ }; E.element(T); ) {
2460
+ var V = t.interactables.forEachMatch(T, j);
2469
2461
  if (V) {
2470
- o.prepared.name = "drag", o.interactable = V, o.element = O;
2462
+ o.prepared.name = "drag", o.interactable = V, o.element = T;
2471
2463
  break;
2472
2464
  }
2473
- O = F(O);
2465
+ T = F(T);
2474
2466
  }
2475
2467
  }
2476
2468
  }
@@ -2547,8 +2539,8 @@ function da() {
2547
2539
  }
2548
2540
  return g(n, [{ key: "start", value: function(t, o) {
2549
2541
  var s, l, f = t.phase, p = this.interaction, h = (function(N) {
2550
- var y = N.interactable.options[N.prepared.name], O = y.modifiers;
2551
- return O && O.length ? O : ["snap", "snapSize", "snapEdges", "restrict", "restrictEdges", "restrictSize"].map((function(j) {
2542
+ var y = N.interactable.options[N.prepared.name], T = y.modifiers;
2543
+ return T && T.length ? T : ["snap", "snapSize", "snapEdges", "restrict", "restrictEdges", "restrictSize"].map((function(j) {
2552
2544
  var V = y[j];
2553
2545
  return V && V.enabled && { options: V, methods: V._methods };
2554
2546
  })).filter((function(j) {
@@ -2570,8 +2562,8 @@ function da() {
2570
2562
  var o = t.phase, s = t.preEnd, l = t.skipModifiers, f = t.rect, p = t.edges;
2571
2563
  t.coords = ee({}, t.pageCoords), t.rect = ee({}, f), t.edges = ee({}, p);
2572
2564
  for (var h = l ? this.states.slice(l) : this.states, v = Yt(t.coords, t.rect), N = 0; N < h.length; N++) {
2573
- var y, O = h[N], j = O.options, V = ee({}, t.coords), L = null;
2574
- (y = O.methods) != null && y.set && this.shouldDo(j, s, o) && (t.state = O, L = O.methods.set(t), Le(t.edges, t.rect, { x: t.coords.x - V.x, y: t.coords.y - V.y })), v.eventProps.push(L);
2565
+ var y, T = h[N], j = T.options, V = ee({}, t.coords), L = null;
2566
+ (y = T.methods) != null && y.set && this.shouldDo(j, s, o) && (t.state = T, L = T.methods.set(t), Le(t.edges, t.rect, { x: t.coords.x - V.x, y: t.coords.y - V.y })), v.eventProps.push(L);
2575
2567
  }
2576
2568
  ee(this.edges, t.edges), v.delta.x = t.coords.x - t.pageCoords.x, v.delta.y = t.coords.y - t.pageCoords.y, v.rectDelta.left = t.rect.left - f.left, v.rectDelta.right = t.rect.right - f.right, v.rectDelta.top = t.rect.top - f.top, v.rectDelta.bottom = t.rect.bottom - f.bottom;
2577
2569
  var H = this.result.coords, ie = this.result.rect;
@@ -2584,7 +2576,7 @@ function da() {
2584
2576
  var o = this.interaction, s = t.phase, l = o.coords.cur, f = o.coords.start, p = this.result, h = this.startDelta, v = p.delta;
2585
2577
  s === "start" && ee(this.startDelta, p.delta);
2586
2578
  for (var N = 0, y = [[f, h], [l, v]]; N < y.length; N++) {
2587
- var O = y[N], j = O[0], V = O[1];
2579
+ var T = y[N], j = T[0], V = T[1];
2588
2580
  j.page.x += V.x, j.page.y += V.y, j.client.x += V.x, j.client.y += V.y;
2589
2581
  }
2590
2582
  var L = this.result.rectDelta, H = t.rect || o.rect;
@@ -2630,8 +2622,8 @@ function da() {
2630
2622
  } }, { key: "restoreInteractionCoords", value: function(t) {
2631
2623
  var o = t.interaction, s = o.coords, l = o.rect, f = o.modification;
2632
2624
  if (f.result) {
2633
- for (var p = f.startDelta, h = f.result, v = h.delta, N = h.rectDelta, y = 0, O = [[s.start, p], [s.cur, v]]; y < O.length; y++) {
2634
- var j = O[y], V = j[0], L = j[1];
2625
+ for (var p = f.startDelta, h = f.result, v = h.delta, N = h.rectDelta, y = 0, T = [[s.start, p], [s.cur, v]]; y < T.length; y++) {
2626
+ var j = T[y], V = j[0], L = j[1];
2635
2627
  V.page.x -= L.x, V.page.y -= L.y, V.client.x -= L.x, V.client.y -= L.y;
2636
2628
  }
2637
2629
  l.left -= N.left, l.right -= N.right, l.top -= N.top, l.bottom -= N.bottom;
@@ -2692,8 +2684,8 @@ function da() {
2692
2684
  function o(s, l, f, p, h, v, N) {
2693
2685
  var y;
2694
2686
  u(this, o), (y = t.call(this, s)).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 || s.element;
2695
- var O = s.interactable, j = (O && O.options || Qr).deltaSource, V = Ye(O, h, f), L = p === "start", H = p === "end", ie = L ? I(y) : s.prevEvent, re = L ? s.coords.start : H ? { page: ie.page, client: ie.client, timeStamp: s.coords.cur.timeStamp } : s.coords.cur;
2696
- return y.page = ee({}, re.page), y.client = ee({}, re.client), y.rect = ee({}, s.rect), y.timeStamp = re.timeStamp, H || (y.page.x -= V.x, y.page.y -= V.y, y.client.x -= V.x, y.client.y -= V.y), y.ctrlKey = l.ctrlKey, y.altKey = l.altKey, y.shiftKey = l.shiftKey, y.metaKey = l.metaKey, y.button = l.button, y.buttons = l.buttons, y.target = h, y.currentTarget = h, y.preEnd = v, y.type = N || f + (p || ""), y.interactable = O, y.t0 = L ? s.pointers[s.pointers.length - 1].downTime : ie.t0, y.x0 = s.coords.start.page.x - V.x, y.y0 = s.coords.start.page.y - V.y, y.clientX0 = s.coords.start.client.x - V.x, y.clientY0 = s.coords.start.client.y - V.y, y.delta = L || H ? { x: 0, y: 0 } : { x: y[j].x - ie[j].x, y: y[j].y - ie[j].y }, y.dt = s.coords.delta.timeStamp, y.duration = y.timeStamp - y.t0, y.velocity = ee({}, s.coords.velocity[j]), y.speed = ht(y.velocity.x, y.velocity.y), y.swipe = H || p === "inertiastart" ? y.getSwipe() : null, y;
2687
+ var T = s.interactable, j = (T && T.options || Qr).deltaSource, V = Ye(T, h, f), L = p === "start", H = p === "end", ie = L ? I(y) : s.prevEvent, re = L ? s.coords.start : H ? { page: ie.page, client: ie.client, timeStamp: s.coords.cur.timeStamp } : s.coords.cur;
2688
+ return y.page = ee({}, re.page), y.client = ee({}, re.client), y.rect = ee({}, s.rect), y.timeStamp = re.timeStamp, H || (y.page.x -= V.x, y.page.y -= V.y, y.client.x -= V.x, y.client.y -= V.y), y.ctrlKey = l.ctrlKey, y.altKey = l.altKey, y.shiftKey = l.shiftKey, y.metaKey = l.metaKey, y.button = l.button, y.buttons = l.buttons, y.target = h, y.currentTarget = h, y.preEnd = v, y.type = N || f + (p || ""), y.interactable = T, y.t0 = L ? s.pointers[s.pointers.length - 1].downTime : ie.t0, y.x0 = s.coords.start.page.x - V.x, y.y0 = s.coords.start.page.y - V.y, y.clientX0 = s.coords.start.client.x - V.x, y.clientY0 = s.coords.start.client.y - V.y, y.delta = L || H ? { x: 0, y: 0 } : { x: y[j].x - ie[j].x, y: y[j].y - ie[j].y }, y.dt = s.coords.delta.timeStamp, y.duration = y.timeStamp - y.t0, y.velocity = ee({}, s.coords.velocity[j]), y.speed = ht(y.velocity.x, y.velocity.y), y.swipe = H || p === "inertiastart" ? y.getSwipe() : null, y;
2697
2689
  }
2698
2690
  return g(o, [{ key: "getSwipe", value: function() {
2699
2691
  var s = this._interaction;
@@ -2781,8 +2773,8 @@ function da() {
2781
2773
  this.simulation || this.modification && this.modification.endResult || this.updatePointer(t, o, s, !1);
2782
2774
  var l, f, p = this.coords.cur.page.x === this.coords.prev.page.x && this.coords.cur.page.y === this.coords.prev.page.y && this.coords.cur.client.x === this.coords.prev.client.x && this.coords.cur.client.y === this.coords.prev.client.y;
2783
2775
  this.pointerIsDown && !this.pointerWasMoved && (l = this.coords.cur.client.x - this.coords.start.client.x, f = this.coords.cur.client.y - this.coords.start.client.y, this.pointerWasMoved = ht(l, f) > this.pointerMoveTolerance);
2784
- var h, v, N, y = this.getPointerIndex(t), O = { pointer: t, pointerIndex: y, pointerInfo: this.pointers[y], event: o, type: "move", eventTarget: s, dx: l, dy: f, duplicate: p, interaction: this };
2785
- p || (h = this.coords.velocity, v = this.coords.delta, N = Math.max(v.timeStamp / 1e3, 1e-3), h.page.x = v.page.x / N, h.page.y = v.page.y / N, h.client.x = v.client.x / N, h.client.y = v.client.y / N, h.timeStamp = N), this._scopeFire("interactions:move", O), p || this.simulation || (this.interacting() && (O.type = null, this.move(O)), this.pointerWasMoved && Ft(this.coords.prev, this.coords.cur));
2776
+ var h, v, N, y = this.getPointerIndex(t), T = { pointer: t, pointerIndex: y, pointerInfo: this.pointers[y], event: o, type: "move", eventTarget: s, dx: l, dy: f, duplicate: p, interaction: this };
2777
+ p || (h = this.coords.velocity, v = this.coords.delta, N = Math.max(v.timeStamp / 1e3, 1e-3), h.page.x = v.page.x / N, h.page.y = v.page.y / N, h.client.x = v.client.x / N, h.client.y = v.client.y / N, h.timeStamp = N), this._scopeFire("interactions:move", T), p || this.simulation || (this.interacting() && (T.type = null, this.move(T)), this.pointerWasMoved && Ft(this.coords.prev, this.coords.cur));
2786
2778
  } }, { key: "move", value: function(t) {
2787
2779
  t && t.event || kr(this.coords.delta), (t = ee({ pointer: this._latestPointer.pointer, event: this._latestPointer.event, eventTarget: this._latestPointer.eventTarget, interaction: this }, t || {})).phase = "move", this._doPhase(t);
2788
2780
  } }, { key: "pointerUp", value: function(t, o, s, l) {
@@ -2810,8 +2802,8 @@ function da() {
2810
2802
  return this.pointers[this.getPointerIndex(t)];
2811
2803
  } }, { key: "updatePointer", value: function(t, o, s, l) {
2812
2804
  var f, p, h, v = gt(t), N = this.getPointerIndex(t), y = this.pointers[N];
2813
- return l = l !== !1 && (l || /(down|start)$/i.test(o.type)), y ? y.pointer = t : (y = new Wi(v, t, o, null, null), N = this.pointers.length, this.pointers.push(y)), ki(this.coords.cur, this.pointers.map((function(O) {
2814
- return O.pointer;
2805
+ return l = l !== !1 && (l || /(down|start)$/i.test(o.type)), y ? y.pointer = t : (y = new Wi(v, t, o, null, null), N = this.pointers.length, this.pointers.push(y)), ki(this.coords.cur, this.pointers.map((function(T) {
2806
+ return T.pointer;
2815
2807
  })), this._now()), f = this.coords.delta, p = this.coords.prev, h = this.coords.cur, f.page.x = h.page.x - p.page.x, f.page.y = h.page.y - p.page.y, f.client.x = h.client.x - p.client.x, f.client.y = h.client.y - p.client.y, f.timeStamp = h.timeStamp - p.timeStamp, l && (this.pointerIsDown = !0, y.downTime = this.coords.cur.timeStamp, y.downTarget = s, Lt(this.downPointer, t), this.interacting() || (Ft(this.coords.start, this.coords.cur), Ft(this.coords.prev, this.coords.cur), this.downEvent = o, this.pointerWasMoved = !1)), this._updateLatestPointer(t, o, s), this._scopeFire("interactions:update-pointer", { pointer: t, event: o, eventTarget: s, down: l, pointerInfo: y, pointerIndex: N, interaction: this }), N;
2816
2808
  } }, { key: "removePointer", value: function(t, o) {
2817
2809
  var s = this.getPointerIndex(t);
@@ -2902,9 +2894,9 @@ function da() {
2902
2894
  o.active && t();
2903
2895
  }));
2904
2896
  } }, { key: "inertiaTick", value: function() {
2905
- var t, o, s, l, f, p, h, v = this, N = this.interaction, y = Xt(N).resistance, O = (N._now() - this.t0) / 1e3;
2906
- if (O < this.te) {
2907
- var j, V = 1 - (Math.exp(-y * O) - this.lambda_v0) / this.one_ve_v0;
2897
+ var t, o, s, l, f, p, h, v = this, N = this.interaction, y = Xt(N).resistance, T = (N._now() - this.t0) / 1e3;
2898
+ if (T < this.te) {
2899
+ var j, V = 1 - (Math.exp(-y * T) - this.lambda_v0) / this.one_ve_v0;
2908
2900
  this.isModified ? (t = 0, o = 0, s = this.targetOffset.x, l = this.targetOffset.y, f = this.modifiedOffset.x, p = this.modifiedOffset.y, j = { x: oo(h = V, t, s, f), y: oo(h, o, l, p) }) : j = { x: this.targetOffset.x * V, y: this.targetOffset.y * V };
2909
2901
  var L = { x: j.x - this.currentOffset.x, y: j.y - this.currentOffset.y };
2910
2902
  this.currentOffset.x += L.x, this.currentOffset.y += L.y, N.offsetBy(L), N.move(), this.onNextFrame((function() {
@@ -3019,7 +3011,7 @@ function da() {
3019
3011
  return n === t || (typeof n == "boolean" ? !!t.capture === n && !t.passive : !!n.capture == !!t.capture && !!n.passive == !!t.passive);
3020
3012
  }
3021
3013
  var ss = { id: "events", install: function(n) {
3022
- var t, o = [], s = {}, l = [], f = { add: p, remove: h, addDelegate: function(y, O, j, V, L) {
3014
+ var t, o = [], s = {}, l = [], f = { add: p, remove: h, addDelegate: function(y, T, j, V, L) {
3023
3015
  var H = xt(L);
3024
3016
  if (!s[j]) {
3025
3017
  s[j] = [];
@@ -3029,19 +3021,19 @@ function da() {
3029
3021
  }
3030
3022
  }
3031
3023
  var le = s[j], ve = vt(le, (function(xe) {
3032
- return xe.selector === y && xe.context === O;
3024
+ return xe.selector === y && xe.context === T;
3033
3025
  }));
3034
- ve || (ve = { selector: y, context: O, listeners: [] }, le.push(ve)), ve.listeners.push({ func: V, options: H });
3035
- }, removeDelegate: function(y, O, j, V, L) {
3026
+ ve || (ve = { selector: y, context: T, listeners: [] }, le.push(ve)), ve.listeners.push({ func: V, options: H });
3027
+ }, removeDelegate: function(y, T, j, V, L) {
3036
3028
  var H, ie = xt(L), re = s[j], le = !1;
3037
3029
  if (re)
3038
3030
  for (H = re.length - 1; H >= 0; H--) {
3039
3031
  var ve = re[H];
3040
- if (ve.selector === y && ve.context === O) {
3032
+ if (ve.selector === y && ve.context === T) {
3041
3033
  for (var xe = ve.listeners, de = xe.length - 1; de >= 0; de--) {
3042
3034
  var ye = xe[de];
3043
3035
  if (ye.func === V && Ut(ye.options, ie)) {
3044
- xe.splice(de, 1), xe.length || (re.splice(H, 1), h(O, j, v), h(O, j, N, !0)), le = !0;
3036
+ xe.splice(de, 1), xe.length || (re.splice(H, 1), h(T, j, v), h(T, j, N, !0)), le = !0;
3045
3037
  break;
3046
3038
  }
3047
3039
  }
@@ -3049,45 +3041,45 @@ function da() {
3049
3041
  }
3050
3042
  }
3051
3043
  }, delegateListener: v, delegateUseCapture: N, delegatedEvents: s, documents: l, targets: o, supportsOptions: !1, supportsPassive: !1 };
3052
- function p(y, O, j, V) {
3044
+ function p(y, T, j, V) {
3053
3045
  if (y.addEventListener) {
3054
3046
  var L = xt(V), H = vt(o, (function(ie) {
3055
3047
  return ie.eventTarget === y;
3056
3048
  }));
3057
- H || (H = { eventTarget: y, events: {} }, o.push(H)), H.events[O] || (H.events[O] = []), vt(H.events[O], (function(ie) {
3049
+ H || (H = { eventTarget: y, events: {} }, o.push(H)), H.events[T] || (H.events[T] = []), vt(H.events[T], (function(ie) {
3058
3050
  return ie.func === j && Ut(ie.options, L);
3059
- })) || (y.addEventListener(O, j, f.supportsOptions ? L : L.capture), H.events[O].push({ func: j, options: L }));
3051
+ })) || (y.addEventListener(T, j, f.supportsOptions ? L : L.capture), H.events[T].push({ func: j, options: L }));
3060
3052
  }
3061
3053
  }
3062
- function h(y, O, j, V) {
3054
+ function h(y, T, j, V) {
3063
3055
  if (y.addEventListener && y.removeEventListener) {
3064
3056
  var L = mt(o, (function(Me) {
3065
3057
  return Me.eventTarget === y;
3066
3058
  })), H = o[L];
3067
- if (H && H.events) if (O !== "all") {
3068
- var ie = !1, re = H.events[O];
3059
+ if (H && H.events) if (T !== "all") {
3060
+ var ie = !1, re = H.events[T];
3069
3061
  if (re) {
3070
3062
  if (j === "all") {
3071
3063
  for (var le = re.length - 1; le >= 0; le--) {
3072
3064
  var ve = re[le];
3073
- h(y, O, ve.func, ve.options);
3065
+ h(y, T, ve.func, ve.options);
3074
3066
  }
3075
3067
  return;
3076
3068
  }
3077
3069
  for (var xe = xt(V), de = 0; de < re.length; de++) {
3078
3070
  var ye = re[de];
3079
3071
  if (ye.func === j && Ut(ye.options, xe)) {
3080
- y.removeEventListener(O, j, f.supportsOptions ? xe : xe.capture), re.splice(de, 1), re.length === 0 && (delete H.events[O], ie = !0);
3072
+ y.removeEventListener(T, j, f.supportsOptions ? xe : xe.capture), re.splice(de, 1), re.length === 0 && (delete H.events[T], ie = !0);
3081
3073
  break;
3082
3074
  }
3083
3075
  }
3084
3076
  }
3085
3077
  ie && !Object.keys(H.events).length && o.splice(L, 1);
3086
- } else for (O in H.events) H.events.hasOwnProperty(O) && h(y, O, "all");
3078
+ } else for (T in H.events) H.events.hasOwnProperty(T) && h(y, T, "all");
3087
3079
  }
3088
3080
  }
3089
- function v(y, O) {
3090
- for (var j = xt(O), V = new is(y), L = s[y.type], H = Mr(y)[0], ie = H; E.element(ie); ) {
3081
+ function v(y, T) {
3082
+ for (var j = xt(T), V = new is(y), L = s[y.type], H = Mr(y)[0], ie = H; E.element(ie); ) {
3091
3083
  for (var re = 0; re < L.length; re++) {
3092
3084
  var le = L[re], ve = le.selector, xe = le.context;
3093
3085
  if (R(ie, ve) && ne(xe, H) && ne(xe, ie)) {
@@ -3140,8 +3132,8 @@ function da() {
3140
3132
  }
3141
3133
  if (t) return t;
3142
3134
  for (var N = 0, y = f.interactions.list; N < y.length; N++) {
3143
- var O = y[N];
3144
- if (!(O.pointerType !== s || /down/i.test(l) && O.simulation)) return O;
3135
+ var T = y[N];
3136
+ if (!(T.pointerType !== s || /down/i.test(l) && T.simulation)) return T;
3145
3137
  }
3146
3138
  return null;
3147
3139
  }, hasPointer: function(n) {
@@ -3173,7 +3165,7 @@ function da() {
3173
3165
  if (/^touch/.test(o.type)) {
3174
3166
  t.prevTouchTime = t.now();
3175
3167
  for (var N = 0, y = o.changedTouches; N < y.length; N++) {
3176
- var O = y[N], j = { pointer: O, pointerId: gt(O), pointerType: l, eventType: o.type, eventTarget: p, curEventTarget: h, scope: t }, V = uo(j);
3168
+ var T = y[N], j = { pointer: T, pointerId: gt(T), pointerType: l, eventType: o.type, eventTarget: p, curEventTarget: h, scope: t }, V = uo(j);
3177
3169
  v.push([j.pointer, j.eventTarget, j.curEventTarget, V]);
3178
3170
  }
3179
3171
  } else {
@@ -3201,8 +3193,8 @@ function da() {
3201
3193
  var o = n.doc, s = n.scope, l = n.options, f = s.interactions.docEvents, p = s.events, h = p[t];
3202
3194
  for (var v in s.browser.isIOS && !l.events && (l.events = { passive: !1 }), p.delegatedEvents) h(o, v, p.delegateListener), h(o, v, p.delegateUseCapture, !0);
3203
3195
  for (var N = l && l.events, y = 0; y < f.length; y++) {
3204
- var O = f[y];
3205
- h(o, O.type, O.listener, N);
3196
+ var T = f[y];
3197
+ h(o, T.type, T.listener, N);
3206
3198
  }
3207
3199
  }
3208
3200
  var cs = { id: "core/interactions", install: function(n) {
@@ -3215,11 +3207,11 @@ function da() {
3215
3207
  for (var h = 0, v = n.interactions.list; h < v.length; h++) {
3216
3208
  var N = v[h];
3217
3209
  if (N.pointerIsDown && N.pointerType === "touch" && !N._interacting) for (var y = function() {
3218
- var V = j[O];
3210
+ var V = j[T];
3219
3211
  n.documents.some((function(L) {
3220
3212
  return ne(L.doc, V.downTarget);
3221
3213
  })) || N.removePointer(V.pointer, V.event);
3222
- }, O = 0, j = N.pointers; O < j.length; O++) y();
3214
+ }, T = 0, j = N.pointers; T < j.length; T++) y();
3223
3215
  }
3224
3216
  }
3225
3217
  (l = D.PointerEvent ? [{ type: f.down, listener: p }, { type: f.down, listener: t.pointerDown }, { type: f.move, listener: t.pointerMove }, { type: f.up, listener: t.pointerUp }, { type: f.cancel, listener: t.pointerUp }] : [{ type: "mousedown", listener: t.pointerDown }, { type: "mousemove", listener: t.pointerMove }, { type: "mouseup", listener: t.pointerUp }, { type: "touchstart", listener: p }, { type: "touchstart", listener: t.pointerDown }, { type: "touchmove", listener: t.pointerMove }, { type: "touchend", listener: t.pointerUp }, { type: "touchcancel", listener: t.pointerUp }]).push({ type: "blur", listener: function(h) {
@@ -3385,7 +3377,7 @@ function da() {
3385
3377
  return this;
3386
3378
  }
3387
3379
  if (E.object(f)) {
3388
- for (var O in f) this.on(O, f[O], p);
3380
+ for (var T in f) this.on(T, f[T], p);
3389
3381
  return this;
3390
3382
  }
3391
3383
  return Ht(f, this.scope.actions) ? this.globalEvents[f] ? this.globalEvents[f].push(p) : this.globalEvents[f] = [p] : this.scope.events.add(this.scope.document, f, p, { options: h }), this;
@@ -3398,7 +3390,7 @@ function da() {
3398
3390
  return this;
3399
3391
  }
3400
3392
  if (E.object(f)) {
3401
- for (var O in f) this.off(O, f[O], p);
3393
+ for (var T in f) this.off(T, f[T], p);
3402
3394
  return this;
3403
3395
  }
3404
3396
  var j;
@@ -3432,9 +3424,9 @@ function da() {
3432
3424
  return g(f, [{ key: "_defaults", get: function() {
3433
3425
  return o.defaults;
3434
3426
  } }, { key: "set", value: function(p) {
3435
- return A(T(f.prototype), "set", this).call(this, p), o.fire("interactable:set", { options: p, interactable: this }), this;
3427
+ return A(O(f.prototype), "set", this).call(this, p), o.fire("interactable:set", { options: p, interactable: this }), this;
3436
3428
  } }, { key: "unset", value: function() {
3437
- A(T(f.prototype), "unset", this).call(this);
3429
+ A(O(f.prototype), "unset", this).call(this);
3438
3430
  var p = o.interactables.list.indexOf(this);
3439
3431
  p < 0 || (o.interactables.list.splice(p, 1), o.fire("interactable:unset", { interactable: this }));
3440
3432
  } }]), f;
@@ -3496,8 +3488,8 @@ function da() {
3496
3488
  var l = s[0], f = s[1];
3497
3489
  return l in n || f in n;
3498
3490
  })), o = function(s, l) {
3499
- for (var f = n.range, p = n.limits, h = p === void 0 ? { left: -1 / 0, right: 1 / 0, top: -1 / 0, bottom: 1 / 0 } : p, v = n.offset, N = v === void 0 ? { x: 0, y: 0 } : v, y = { range: f, grid: n, x: null, y: null }, O = 0; O < t.length; O++) {
3500
- var j = t[O], V = j[0], L = j[1], H = Math.round((s - N.x) / n[V]), ie = Math.round((l - N.y) / n[L]);
3491
+ for (var f = n.range, p = n.limits, h = p === void 0 ? { left: -1 / 0, right: 1 / 0, top: -1 / 0, bottom: 1 / 0 } : p, v = n.offset, N = v === void 0 ? { x: 0, y: 0 } : v, y = { range: f, grid: n, x: null, y: null }, T = 0; T < t.length; T++) {
3492
+ var j = t[T], V = j[0], L = j[1], H = Math.round((s - N.x) / n[V]), ie = Math.round((l - N.y) / n[L]);
3501
3493
  y[V] = Math.max(h.left, Math.min(h.right, H * n[V] + N.x)), y[L] = Math.max(h.top, Math.min(h.bottom, ie * n[L] + N.y));
3502
3494
  }
3503
3495
  return y;
@@ -3509,12 +3501,12 @@ function da() {
3509
3501
  } }, ms = gs, vs = { start: function(n) {
3510
3502
  var t = n.state, o = n.rect, s = n.edges, l = n.pageCoords, f = t.options, p = f.ratio, h = f.enabled, v = t.options, N = v.equalDelta, y = v.modifiers;
3511
3503
  p === "preserve" && (p = o.width / o.height), t.startCoords = ee({}, l), t.startRect = ee({}, o), t.ratio = p, t.equalDelta = N;
3512
- var O = t.linkedEdges = { top: s.top || s.left && !s.bottom, left: s.left || s.top && !s.right, bottom: s.bottom || s.right && !s.top, right: s.right || s.bottom && !s.left };
3504
+ var T = t.linkedEdges = { top: s.top || s.left && !s.bottom, left: s.left || s.top && !s.right, bottom: s.bottom || s.right && !s.top, right: s.right || s.bottom && !s.left };
3513
3505
  if (t.xIsPrimaryAxis = !(!s.left && !s.right), t.equalDelta) {
3514
- var j = (O.left ? 1 : -1) * (O.top ? 1 : -1);
3506
+ var j = (T.left ? 1 : -1) * (T.top ? 1 : -1);
3515
3507
  t.edgeSign = { x: j, y: j };
3516
- } else t.edgeSign = { x: O.left ? -1 : 1, y: O.top ? -1 : 1 };
3517
- if (h !== !1 && ee(s, O), y != null && y.length) {
3508
+ } else t.edgeSign = { x: T.left ? -1 : 1, y: T.top ? -1 : 1 };
3509
+ if (h !== !1 && ee(s, T), y != null && y.length) {
3518
3510
  var V = new Zn(n.interaction);
3519
3511
  V.copyFrom(n.interaction.modification), V.prepareStates(y), t.subModification = V, V.startAll(a({}, n));
3520
3512
  }
@@ -3552,8 +3544,8 @@ function da() {
3552
3544
  if (t && h) {
3553
3545
  var N = it(p.restriction, l, f);
3554
3546
  if (N) {
3555
- var y = N.right - N.left - t.width, O = N.bottom - N.top - t.height;
3556
- y < 0 && (v.left += y, v.right += y), O < 0 && (v.top += O, v.bottom += O);
3547
+ var y = N.right - N.left - t.width, T = N.bottom - N.top - t.height;
3548
+ y < 0 && (v.left += y, v.right += y), T < 0 && (v.top += T, v.bottom += T);
3557
3549
  }
3558
3550
  v.left += o.left - t.width * h.left, v.top += o.top - t.height * h.top, v.right += o.right - t.width * (1 - h.right), v.bottom += o.bottom - t.height * (1 - h.bottom);
3559
3551
  }
@@ -3604,16 +3596,16 @@ function da() {
3604
3596
  var y = Ce(v.offset, s, l, [o]);
3605
3597
  (t = Ie(y) || { x: 0, y: 0 }).x += N.x, t.y += N.y;
3606
3598
  }
3607
- var O = v.relativePoints;
3608
- p.offsets = f && O && O.length ? O.map((function(j, V) {
3599
+ var T = v.relativePoints;
3600
+ p.offsets = f && T && T.length ? T.map((function(j, V) {
3609
3601
  return { index: V, relativePoint: j, x: h.left - f.width * j.x + t.x, y: h.top - f.height * j.y + t.y };
3610
3602
  })) : [{ index: 0, relativePoint: null, x: t.x, y: t.y }];
3611
3603
  }, set: function(n) {
3612
3604
  var t = n.interaction, o = n.coords, s = n.state, l = s.options, f = s.offsets, p = Ye(t.interactable, t.element, t.prepared.name), h = ee({}, o), v = [];
3613
3605
  l.offsetWithOrigin || (h.x -= p.x, h.y -= p.y);
3614
- for (var N = 0, y = f; N < y.length; N++) for (var O = y[N], j = h.x - O.x, V = h.y - O.y, L = 0, H = l.targets.length; L < H; L++) {
3606
+ for (var N = 0, y = f; N < y.length; N++) for (var T = y[N], j = h.x - T.x, V = h.y - T.y, L = 0, H = l.targets.length; L < H; L++) {
3615
3607
  var ie = l.targets[L], re = void 0;
3616
- (re = E.func(ie) ? ie(j, V, t._proxy, O, L) : ie) && v.push({ x: (E.number(re.x) ? re.x : j) + O.x, y: (E.number(re.y) ? re.y : V) + O.y, range: E.number(re.range) ? re.range : l.range, source: ie, index: L, offset: O });
3608
+ (re = E.func(ie) ? ie(j, V, t._proxy, T, L) : ie) && v.push({ x: (E.number(re.x) ? re.x : j) + T.x, y: (E.number(re.y) ? re.y : V) + T.y, range: E.number(re.range) ? re.range : l.range, source: ie, index: L, offset: T });
3617
3609
  }
3618
3610
  for (var le = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, ve = 0; ve < v.length; ve++) {
3619
3611
  var xe = v[ve], de = xe.range, ye = xe.x - h.x, Me = xe.y - h.y, Pe = ht(ye, Me), Ve = Pe <= de;
@@ -3630,8 +3622,8 @@ function da() {
3630
3622
  for (var h = 0, v = l.targets || []; h < v.length; h++) {
3631
3623
  var N = v[h], y = void 0;
3632
3624
  if (y = E.func(N) ? N(p.x, p.y, t) : N) {
3633
- for (var O = 0, j = o.targetFields; O < j.length; O++) {
3634
- var V = j[O], L = V[0], H = V[1];
3625
+ for (var T = 0, j = o.targetFields; T < j.length; T++) {
3626
+ var V = j[T], L = V[0], H = V[1];
3635
3627
  if (L in y || H in y) {
3636
3628
  y.x = y[L], y.y = y[H];
3637
3629
  break;
@@ -3659,8 +3651,8 @@ function da() {
3659
3651
  if (u(this, o), Lt(I(N = t.call(this, h)), f), f !== l && Lt(I(N), l), N.timeStamp = v, N.originalEvent = f, N.type = s, N.pointerId = gt(l), N.pointerType = Ar(l), N.target = p, N.currentTarget = null, s === "tap") {
3660
3652
  var y = h.getPointerIndex(l);
3661
3653
  N.dt = N.timeStamp - h.pointers[y].downTime;
3662
- var O = N.timeStamp - h.tapTime;
3663
- N.double = !!h.prevTap && h.prevTap.type !== "doubletap" && h.prevTap.target === N.target && O < 500;
3654
+ var T = N.timeStamp - h.tapTime;
3655
+ N.double = !!h.prevTap && h.prevTap.type !== "doubletap" && h.prevTap.target === N.target && T < 500;
3664
3656
  } else s === "doubletap" && (N.dt = l.timeStamp - h.tapTime, N.double = !0);
3665
3657
  return N;
3666
3658
  }
@@ -3686,12 +3678,12 @@ function da() {
3686
3678
  n.duplicate || o.pointerIsDown && !o.pointerWasMoved || (o.pointerIsDown && sr(n), et({ interaction: o, pointer: s, event: l, eventTarget: f, type: "move" }, t));
3687
3679
  }, "interactions:down": function(n, t) {
3688
3680
  (function(o, s) {
3689
- for (var l = o.interaction, f = o.pointer, p = o.event, h = o.eventTarget, v = o.pointerIndex, N = l.pointers[v].hold, y = ue(h), O = { interaction: l, pointer: f, event: p, eventTarget: h, type: "hold", targets: [], path: y, node: null }, j = 0; j < y.length; j++) {
3681
+ for (var l = o.interaction, f = o.pointer, p = o.event, h = o.eventTarget, v = o.pointerIndex, N = l.pointers[v].hold, y = ue(h), T = { interaction: l, pointer: f, event: p, eventTarget: h, type: "hold", targets: [], path: y, node: null }, j = 0; j < y.length; j++) {
3690
3682
  var V = y[j];
3691
- O.node = V, s.fire("pointerEvents:collect-targets", O);
3683
+ T.node = V, s.fire("pointerEvents:collect-targets", T);
3692
3684
  }
3693
- if (O.targets.length) {
3694
- for (var L = 1 / 0, H = 0, ie = O.targets; H < ie.length; H++) {
3685
+ if (T.targets.length) {
3686
+ for (var L = 1 / 0, H = 0, ie = T.targets; H < ie.length; H++) {
3695
3687
  var re = ie[H].eventable.options.holdDuration;
3696
3688
  re < L && (L = re);
3697
3689
  }
@@ -3711,11 +3703,11 @@ function da() {
3711
3703
  function et(n, t) {
3712
3704
  var o = n.interaction, s = n.pointer, l = n.event, f = n.eventTarget, p = n.type, h = n.targets, v = h === void 0 ? bo(n, t) : h, N = new yo(p, s, l, f, o, t.now());
3713
3705
  t.fire("pointerEvents:new", { pointerEvent: N });
3714
- for (var y = { interaction: o, pointer: s, event: l, eventTarget: f, targets: v, type: p, pointerEvent: N }, O = 0; O < v.length; O++) {
3715
- var j = v[O];
3706
+ for (var y = { interaction: o, pointer: s, event: l, eventTarget: f, targets: v, type: p, pointerEvent: N }, T = 0; T < v.length; T++) {
3707
+ var j = v[T];
3716
3708
  for (var V in j.props || {}) N[V] = j.props[V];
3717
3709
  var L = Ye(j.eventable, j.node);
3718
- if (N._subtractOrigin(L), N.eventable = j.eventable, N.currentTarget = j.node, j.eventable.fire(N), N._addOrigin(L), N.immediatePropagationStopped || N.propagationStopped && O + 1 < v.length && v[O + 1].node !== N.currentTarget) break;
3710
+ if (N._subtractOrigin(L), N.eventable = j.eventable, N.currentTarget = j.node, j.eventable.fire(N), N._addOrigin(L), N.immediatePropagationStopped || N.propagationStopped && T + 1 < v.length && v[T + 1].node !== N.currentTarget) break;
3719
3711
  }
3720
3712
  if (t.fire("pointerEvents:fired", y), p === "tap") {
3721
3713
  var H = N.double ? et({ interaction: o, pointer: s, event: l, eventTarget: f, type: "doubletap" }, t) : N;
@@ -3726,8 +3718,8 @@ function da() {
3726
3718
  function bo(n, t) {
3727
3719
  var o = n.interaction, s = n.pointer, l = n.event, f = n.eventTarget, p = n.type, h = o.getPointerIndex(s), v = o.pointers[h];
3728
3720
  if (p === "tap" && (o.pointerWasMoved || !v || v.downTarget !== f)) return [];
3729
- for (var N = ue(f), y = { interaction: o, pointer: s, event: l, eventTarget: f, type: p, path: N, targets: [], node: null }, O = 0; O < N.length; O++) {
3730
- var j = N[O];
3721
+ for (var N = ue(f), y = { interaction: o, pointer: s, event: l, eventTarget: f, type: p, path: N, targets: [], node: null }, T = 0; T < N.length; T++) {
3722
+ var j = N[T];
3731
3723
  y.node = j, t.fire("pointerEvents:collect-targets", y);
3732
3724
  }
3733
3725
  return p === "hold" && (y.targets = y.targets.filter((function(V) {
@@ -3792,10 +3784,10 @@ function da() {
3792
3784
  n.actions.phases.reflow = !0, t.prototype.reflow = function(o) {
3793
3785
  return (function(s, l, f) {
3794
3786
  for (var p = s.getAllElements(), h = f.window.Promise, v = h ? [] : null, N = function() {
3795
- var O = p[y], j = s.getRect(O);
3787
+ var T = p[y], j = s.getRect(T);
3796
3788
  if (!j) return 1;
3797
3789
  var V, L = vt(f.interactions.list, (function(re) {
3798
- return re.interacting() && re.interactable === s && re.element === O && re.prepared.name === l.name;
3790
+ return re.interacting() && re.interactable === s && re.element === T && re.prepared.name === l.name;
3799
3791
  }));
3800
3792
  if (L) L.move(), v && (V = L._reflowPromise || new h((function(re) {
3801
3793
  L._reflowResolve = re;
@@ -3836,7 +3828,7 @@ function da() {
3836
3828
  ye._reflowResolve = Ge;
3837
3829
  })) : void 0;
3838
3830
  return ye._reflowPromise = De, ye.start(xe, le, ve), ye._interacting ? (ye.move(Me), ye.end(de)) : (ye.stop(), ye._reflowResolve()), ye.removePointer(de, de), De;
3839
- })(f, s, O, l, ie);
3831
+ })(f, s, T, l, ie);
3840
3832
  }
3841
3833
  v && v.push(V);
3842
3834
  }, y = 0; y < p.length && !N(); y++) ;
@@ -3876,7 +3868,7 @@ function ga(e, {
3876
3868
  if (!r) return;
3877
3869
  const b = e.current;
3878
3870
  if (!b) return;
3879
- const T = ha(b).draggable({
3871
+ const O = ha(b).draggable({
3880
3872
  inertia: !0,
3881
3873
  ...u,
3882
3874
  onstart: ({ client: _ }) => {
@@ -3884,8 +3876,8 @@ function ga(e, {
3884
3876
  d.current?.(I);
3885
3877
  },
3886
3878
  onmove: ({ client: _, clientX0: I, clientY0: $, dx: A, dy: S }) => {
3887
- const C = _e.make(I, $), q = _e.make(_), W = _e.make(A, S);
3888
- g.current?.(W, q, C);
3879
+ const C = _e.make(I, $), K = _e.make(_), W = _e.make(A, S);
3880
+ g.current?.(W, K, C);
3889
3881
  },
3890
3882
  onend: ({ client: _, clientX0: I, clientY0: $ }) => {
3891
3883
  const A = _e.make(I, $), S = _e.make(_);
@@ -3893,7 +3885,7 @@ function ga(e, {
3893
3885
  }
3894
3886
  });
3895
3887
  return () => {
3896
- T.unset(), m.current?.(_e.zero, _e.zero);
3888
+ O.unset(), m.current?.(_e.zero, _e.zero);
3897
3889
  };
3898
3890
  }, [r, We(u)]);
3899
3891
  }
@@ -3905,13 +3897,13 @@ function zt(e, {
3905
3897
  onDragEnd: u,
3906
3898
  ...d
3907
3899
  }) {
3908
- const g = we(r), [m, b] = Oe(!1), [T, _] = Oe(!1), [I, $] = Oe(r), A = Se(a), S = Se(c), C = Se(u), q = Se(i);
3900
+ const g = we(r), [m, b] = Oe(!1), [O, _] = Oe(!1), [I, $] = Oe(r), A = Se(a), S = Se(c), C = Se(u), K = Se(i);
3909
3901
  return ga(e, {
3910
3902
  onDragStart: (x) => {
3911
3903
  b(!0), _(!1), A.current?.(x);
3912
3904
  },
3913
3905
  onDragMove: (x, P, E) => {
3914
- const M = q.current(g.current, x.x, x.y);
3906
+ const M = K.current(g.current, x.x, x.y);
3915
3907
  _o(g, M) && $(M), b(!0), _(!1), S.current?.(x, P, E);
3916
3908
  },
3917
3909
  onDragEnd: (x, P) => {
@@ -3922,7 +3914,7 @@ function zt(e, {
3922
3914
  _o(g, I);
3923
3915
  }, [I]), {
3924
3916
  isDragging: m,
3925
- isReleasing: T,
3917
+ isReleasing: O,
3926
3918
  value: I,
3927
3919
  setValue: $
3928
3920
  };
@@ -3941,14 +3933,14 @@ const ti = /* @__PURE__ */ Te(({
3941
3933
  onDragEnd: g,
3942
3934
  onLoadImageStart: m,
3943
3935
  onLoadImageComplete: b,
3944
- onLoadImageError: T,
3936
+ onLoadImageError: O,
3945
3937
  onImageSizeChange: _,
3946
3938
  ...I
3947
3939
  }, $) => {
3948
- const A = he((M, B, K) => M - B * r, [r]), S = we(null), C = nt(S), q = Go({ src: i }, {
3940
+ const A = he((M, B, G) => M - B * r, [r]), S = we(null), C = nt(S), K = Go({ src: i }, {
3949
3941
  onLoadStart: m,
3950
3942
  onLoadComplete: b,
3951
- onLoadError: T
3943
+ onLoadError: O
3952
3944
  }), [W, Y] = Oe(e), { isDragging: J, value: x, setValue: P } = zt(S, {
3953
3945
  initialValue: 0,
3954
3946
  transform: A,
@@ -3956,18 +3948,18 @@ const ti = /* @__PURE__ */ Te(({
3956
3948
  onDragEnd: g
3957
3949
  });
3958
3950
  Ee(() => {
3959
- if (J || !q) return;
3960
- const M = va(e, q, be.size(C), a);
3951
+ if (J || !K) return;
3952
+ const M = va(e, K, be.size(C), a);
3961
3953
  M !== x && P(M), e !== W && Y(e);
3962
- }, [e, q, C.width, C.height, a]), Ee(() => {
3963
- if (!J || !q) return;
3964
- const M = ya(x, q, be.size(C), a);
3954
+ }, [e, K, C.width, C.height, a]), Ee(() => {
3955
+ if (!J || !K) return;
3956
+ const M = ya(x, K, be.size(C), a);
3965
3957
  W !== M && Y(M);
3966
- }, [x, q, C.width, C.height, a]), Ee(() => {
3958
+ }, [x, K, C.width, C.height, a]), Ee(() => {
3967
3959
  c?.(W, J), u?.(W / 360, J);
3968
3960
  }, [W]), Ee(() => {
3969
- _?.(q);
3970
- }, [q?.width, q?.height]);
3961
+ _?.(K);
3962
+ }, [K?.width, K?.height]);
3971
3963
  const E = ma({ src: i, displacement: x });
3972
3964
  return /* @__PURE__ */ w.jsx(
3973
3965
  "div",
@@ -4021,14 +4013,14 @@ const ri = /* @__PURE__ */ Te(({
4021
4013
  src: g,
4022
4014
  viewportSize: m,
4023
4015
  zeroAnchor: b = 0,
4024
- onAngleChange: T,
4016
+ onAngleChange: O,
4025
4017
  onDragEnd: _,
4026
4018
  onDragStart: I,
4027
4019
  onLoadImageComplete: $,
4028
4020
  onLoadImageError: A,
4029
4021
  onLoadImageStart: S,
4030
4022
  onImageSizeChange: C,
4031
- onPositionChange: q,
4023
+ onPositionChange: K,
4032
4024
  ...W
4033
4025
  }, Y) => {
4034
4026
  const J = we(null), x = nt(J), [P, E] = Oe(), [M, B] = Oe(!1), oe = he(() => {
@@ -4064,14 +4056,14 @@ const ri = /* @__PURE__ */ Te(({
4064
4056
  src: g,
4065
4057
  style: F.panorama,
4066
4058
  zeroAnchor: z,
4067
- onAngleChange: T,
4059
+ onAngleChange: O,
4068
4060
  onDragEnd: ne,
4069
4061
  onDragStart: te,
4070
4062
  onImageSizeChange: E,
4071
4063
  onLoadImageComplete: $,
4072
4064
  onLoadImageError: A,
4073
4065
  onLoadImageStart: S,
4074
- onPositionChange: q
4066
+ onPositionChange: K
4075
4067
  }
4076
4068
  ),
4077
4069
  /* @__PURE__ */ w.jsx("div", { style: F.body, children: /* @__PURE__ */ w.jsxs("div", { style: F.controls, children: [
@@ -4153,7 +4145,7 @@ const xa = /* @__PURE__ */ Te(({
4153
4145
  onSelect: g,
4154
4146
  onToggle: m,
4155
4147
  ...b
4156
- }, T) => {
4148
+ }, O) => {
4157
4149
  const _ = () => {
4158
4150
  if (!a)
4159
4151
  if (c) {
@@ -4166,7 +4158,7 @@ const xa = /* @__PURE__ */ Te(({
4166
4158
  "button",
4167
4159
  {
4168
4160
  ...b,
4169
- ref: T,
4161
+ ref: O,
4170
4162
  "aria-disabled": a,
4171
4163
  "aria-label": u,
4172
4164
  "aria-selected": c,
@@ -4179,12 +4171,7 @@ const xa = /* @__PURE__ */ Te(({
4179
4171
  });
4180
4172
  process.env.NODE_ENV === "development" && (xa.displayName = "SelectableButton");
4181
4173
  function wa({ children: e, if: r }) {
4182
- switch (typeof r) {
4183
- case "function":
4184
- return r() ? /* @__PURE__ */ w.jsx(w.Fragment, { children: e }) : /* @__PURE__ */ w.jsx(w.Fragment, {});
4185
- default:
4186
- return r ? /* @__PURE__ */ w.jsx(w.Fragment, { children: e }) : /* @__PURE__ */ w.jsx(w.Fragment, {});
4187
- }
4174
+ return typeof r === "function" ? r() ? /* @__PURE__ */ w.jsx(w.Fragment, { children: e }) : /* @__PURE__ */ w.jsx(w.Fragment, {}) : r ? /* @__PURE__ */ w.jsx(w.Fragment, { children: e }) : /* @__PURE__ */ w.jsx(w.Fragment, {});
4188
4175
  }
4189
4176
  process.env.NODE_ENV === "development" && (wa.displayName = "Conditional");
4190
4177
  function Mn({
@@ -4263,10 +4250,10 @@ function Na({
4263
4250
  maxWidth: m = 200,
4264
4251
  threshold: b = 100
4265
4252
  }) {
4266
- const T = we(null), _ = we(void 0), I = nt(T), $ = he(() => {
4253
+ const O = we(null), _ = we(void 0), I = nt(O), $ = he(() => {
4267
4254
  const C = window.document.createElement("span");
4268
4255
  C.className = se(r), C.innerHTML = g, C.role = "tooltip";
4269
- const q = a ?? (T.current ? _a(T.current, b) : "tl"), W = Sa(C), Y = Pa({ alignment: q, arrowSize: je.make(u, c), gap: d, maxDialogWidth: m, fullDialogWidth: W.width, targetWidth: I.width }), J = ce(i, Y.dialog);
4256
+ const K = a ?? (O.current ? _a(O.current, b) : "tl"), W = Sa(C), Y = Pa({ alignment: K, arrowSize: je.make(u, c), gap: d, maxDialogWidth: m, fullDialogWidth: W.width, targetWidth: I.width }), J = ce(i, Y.dialog);
4270
4257
  Object.keys(J).forEach((P) => C.style[P] = J[P]);
4271
4258
  const x = window.document.createElement("span");
4272
4259
  return Object.keys(Y.arrow).forEach((P) => x.style[P] = Y.arrow[P]), C.appendChild(x), C;
@@ -4277,13 +4264,13 @@ function Na({
4277
4264
  }, []);
4278
4265
  return Ee(() => {
4279
4266
  const C = $();
4280
- return T.current?.appendChild(C), _.current = C, () => {
4281
- T.current?.removeChild(C), _.current = void 0;
4267
+ return O.current?.appendChild(C), _.current = C, () => {
4268
+ O.current?.removeChild(C), _.current = void 0;
4282
4269
  };
4283
4270
  }, [$]), /* @__PURE__ */ w.jsx(
4284
4271
  ii,
4285
4272
  {
4286
- ref: T,
4273
+ ref: O,
4287
4274
  onMouseEnter: A,
4288
4275
  onMouseLeave: S,
4289
4276
  children: e
@@ -4471,26 +4458,7 @@ function Pa({ alignment: e, arrowSize: r, fullDialogWidth: i, gap: a, maxDialogW
4471
4458
  };
4472
4459
  }
4473
4460
  process.env.NODE_ENV === "development" && (Na.displayName = "WithTooltip");
4474
- function Dl() {
4475
- const e = navigator.userAgent || navigator.vendor || window.opera;
4476
- return pt(() => {
4477
- switch (!0) {
4478
- case /android/i.test(e):
4479
- return "android";
4480
- case (/iPad|iPhone|iPod/.test(e) && !window.MSStream):
4481
- return "ios";
4482
- case /win/i.test(e):
4483
- return "windows";
4484
- case /mac/i.test(e):
4485
- return "macos";
4486
- case /linux/i.test(e):
4487
- return "linux";
4488
- default:
4489
- return "unknown";
4490
- }
4491
- }, [e]);
4492
- }
4493
- function Bl(e, { element: r, isEnabled: i = !0 } = {}) {
4461
+ function Dl(e, { element: r, isEnabled: i = !0 } = {}) {
4494
4462
  $e(() => {
4495
4463
  if (!i) return;
4496
4464
  const a = r ?? window.document.documentElement, c = a.className;
@@ -4499,7 +4467,7 @@ function Bl(e, { element: r, isEnabled: i = !0 } = {}) {
4499
4467
  };
4500
4468
  }, [e, r, i]);
4501
4469
  }
4502
- function Hl(e, r) {
4470
+ function Bl(e, r) {
4503
4471
  const i = Se(r);
4504
4472
  $e(() => {
4505
4473
  const a = (c) => {
@@ -4521,7 +4489,7 @@ function Hl(e, r) {
4521
4489
  };
4522
4490
  }, []);
4523
4491
  }
4524
- function Yl() {
4492
+ function Hl() {
4525
4493
  return he(async (e) => {
4526
4494
  const r = e.type, i = new ClipboardItem({ [r]: e });
4527
4495
  try {
@@ -4531,7 +4499,7 @@ function Yl() {
4531
4499
  }
4532
4500
  }, []);
4533
4501
  }
4534
- function Xl() {
4502
+ function Yl() {
4535
4503
  return he((e, r) => {
4536
4504
  const i = URL.createObjectURL(e), a = document.createElement("a");
4537
4505
  a.href = i, a.download = r, document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(i);
@@ -4540,7 +4508,7 @@ function Xl() {
4540
4508
  function Ia() {
4541
4509
  return typeof window > "u" ? 1 : window.devicePixelRatio || 1;
4542
4510
  }
4543
- function Ul() {
4511
+ function Xl() {
4544
4512
  return pt(() => Ia(), []);
4545
4513
  }
4546
4514
  function ka(e, {
@@ -4550,15 +4518,15 @@ function ka(e, {
4550
4518
  onDragMove: c,
4551
4519
  onDragEnd: u
4552
4520
  }) {
4553
- const d = we(void 0), g = we(void 0), m = Se(a), b = Se(c), T = Se(u), _ = he((A) => {
4521
+ const d = we(void 0), g = we(void 0), m = Se(a), b = Se(c), O = Se(u), _ = he((A) => {
4554
4522
  if (!d.current) return;
4555
4523
  const S = _e.make(A.clientX, A.clientY), C = _e.subtract(S, g.current ?? d.current);
4556
4524
  g.current = S, b.current?.(C, S, d.current);
4557
4525
  }, []), I = he((A) => {
4558
4526
  const S = e.current;
4559
4527
  if (!S || !d.current) return;
4560
- const C = _e.make(A.clientX, A.clientY), q = _e.subtract(g.current ?? d.current, C);
4561
- T.current?.(C, q, d.current), d.current = void 0, g.current = void 0, S.removeEventListener("mousemove", _), S.removeEventListener("mouseup", I, { capture: !0 }), S.removeEventListener("mouseleave", I), i && (S.style.cursor = "grab");
4528
+ const C = _e.make(A.clientX, A.clientY), K = _e.subtract(g.current ?? d.current, C);
4529
+ O.current?.(C, K, d.current), d.current = void 0, g.current = void 0, S.removeEventListener("mousemove", _), S.removeEventListener("mouseup", I, { capture: !0 }), S.removeEventListener("mouseleave", I), i && (S.style.cursor = "grab");
4562
4530
  }, [i, _]), $ = he((A) => {
4563
4531
  const S = e.current;
4564
4532
  if (!S) return;
@@ -4581,7 +4549,7 @@ function ka(e, {
4581
4549
  };
4582
4550
  }, [r, _, I, $]);
4583
4551
  }
4584
- function Kl(e) {
4552
+ function Ul(e) {
4585
4553
  const [r, i] = Oe(!1), a = he((d) => {
4586
4554
  d.preventDefault(), d.stopPropagation(), i(!0);
4587
4555
  }, []), c = he((d) => {
@@ -4615,7 +4583,7 @@ function Ca(e, {
4615
4583
  }, [e, i, g]);
4616
4584
  return Ee(() => (r && e > 0 && m(), g), [r, e, m, g, ...c]), { start: m, stop: g };
4617
4585
  }
4618
- function Gl() {
4586
+ function Kl() {
4619
4587
  const [e, r] = Oe(!1);
4620
4588
  return Ee(() => (r(!0), () => {
4621
4589
  r(!1);
@@ -4627,7 +4595,7 @@ function $a() {
4627
4595
  function ja() {
4628
4596
  return pt(() => $a(), []);
4629
4597
  }
4630
- function ql(e, r, {
4598
+ function Gl(e, r, {
4631
4599
  isEnabled: i = !0,
4632
4600
  preventDefault: a = !0,
4633
4601
  capture: c = !0,
@@ -4638,7 +4606,7 @@ function ql(e, r, {
4638
4606
  if (!i || m.length === 0) return;
4639
4607
  const b = u && typeof u == "object" && "current" in u ? u.current : u || window;
4640
4608
  if (!b) return;
4641
- const T = (_) => {
4609
+ const O = (_) => {
4642
4610
  const I = new Set([
4643
4611
  _.key.toLowerCase(),
4644
4612
  _.ctrlKey && "control",
@@ -4648,8 +4616,8 @@ function ql(e, r, {
4648
4616
  ].filter(Boolean));
4649
4617
  m.every((A) => I.has(A)) && I.size === m.length && (a && _.preventDefault(), d.current?.());
4650
4618
  };
4651
- return b.addEventListener("keydown", T, { capture: c }), () => {
4652
- b.removeEventListener("keydown", T, { capture: c });
4619
+ return b.addEventListener("keydown", O, { capture: c }), () => {
4620
+ b.removeEventListener("keydown", O, { capture: c });
4653
4621
  };
4654
4622
  }, [i, a, c, m.join(",")]);
4655
4623
  }
@@ -4687,9 +4655,28 @@ function za(e, r, i) {
4687
4655
  };
4688
4656
  return Er?.setItem(r, JSON.stringify(a)), e;
4689
4657
  }
4690
- function Wl(e) {
4658
+ function ql(e) {
4691
4659
  return pt(() => Aa({ defaultTTL: e }), [e]);
4692
4660
  }
4661
+ function Wl() {
4662
+ const e = navigator.userAgent || navigator.vendor || window.opera;
4663
+ return pt(() => {
4664
+ switch (!0) {
4665
+ case /android/i.test(e):
4666
+ return "android";
4667
+ case (/iPad|iPhone|iPod/.test(e) && !window.MSStream):
4668
+ return "ios";
4669
+ case /win/i.test(e):
4670
+ return "windows";
4671
+ case /mac/i.test(e):
4672
+ return "macos";
4673
+ case /linux/i.test(e):
4674
+ return "linux";
4675
+ default:
4676
+ return "unknown";
4677
+ }
4678
+ }, [e]);
4679
+ }
4693
4680
  function Jl(e, r = []) {
4694
4681
  const i = Se(e), a = we(void 0), c = we(!1);
4695
4682
  $e(() => {
@@ -4824,17 +4811,17 @@ const li = /* @__PURE__ */ Te(({
4824
4811
  layout: g = "list",
4825
4812
  numSegments: m = 1,
4826
4813
  orientation: b = "vertical",
4827
- selection: T,
4814
+ selection: O,
4828
4815
  selectionMode: _ = "none",
4829
4816
  onActivateAt: I,
4830
4817
  onDeselectAt: $,
4831
4818
  onCustomEvent: A,
4832
4819
  onSelectAt: S,
4833
4820
  onSelectionChange: C,
4834
- ItemComponent: q,
4821
+ ItemComponent: K,
4835
4822
  ...W
4836
4823
  }, Y) => {
4837
- const J = Ua(T ?? [], d), x = Ka({ itemLength: c, itemPadding: u, layout: g, numSegments: m, orientation: b }), P = (X) => J.indexOf(X) >= 0, E = (X) => {
4824
+ const J = Ua(O ?? [], d), x = Ka({ itemLength: c, itemPadding: u, layout: g, numSegments: m, orientation: b }), P = (X) => J.indexOf(X) >= 0, E = (X) => {
4838
4825
  P(X) ? B(X) : M(X);
4839
4826
  }, M = (X) => {
4840
4827
  if (P(X)) return;
@@ -4857,7 +4844,7 @@ const li = /* @__PURE__ */ Te(({
4857
4844
  if (!P(X)) return;
4858
4845
  const D = (ne) => ne.filter((ae) => ae !== X), z = J, te = D(J);
4859
4846
  oe(z, te);
4860
- }, K = (X) => {
4847
+ }, G = (X) => {
4861
4848
  I?.(X), _ !== "none" && (a ? E(X) : M(X));
4862
4849
  }, oe = (X, D) => {
4863
4850
  if (qe(X, D)) return;
@@ -4905,8 +4892,8 @@ const li = /* @__PURE__ */ Te(({
4905
4892
  } : {}
4906
4893
  }
4907
4894
  });
4908
- return q ? /* @__PURE__ */ w.jsx(
4909
- q,
4895
+ return K ? /* @__PURE__ */ w.jsx(
4896
+ K,
4910
4897
  {
4911
4898
  "aria-selected": te,
4912
4899
  className: se({ active: te }),
@@ -4916,7 +4903,7 @@ const li = /* @__PURE__ */ Te(({
4916
4903
  orientation: b,
4917
4904
  role: z,
4918
4905
  style: ne,
4919
- onClick: () => K(D),
4906
+ onClick: () => G(D),
4920
4907
  onCustomEvent: (ae, F) => A?.(D, ae, F)
4921
4908
  }
4922
4909
  ) : /* @__PURE__ */ w.jsx(
@@ -4929,7 +4916,7 @@ const li = /* @__PURE__ */ Te(({
4929
4916
  selectionMode: _,
4930
4917
  style: ne,
4931
4918
  onActivateAt: I,
4932
- onClick: () => K(D),
4919
+ onClick: () => G(D),
4933
4920
  children: `${X}`
4934
4921
  }
4935
4922
  );
@@ -5003,19 +4990,19 @@ const fi = /* @__PURE__ */ Te(({
5003
4990
  selection: g,
5004
4991
  selectionMode: m = "single",
5005
4992
  onActivateAt: b,
5006
- onCollapseSectionAt: T,
4993
+ onCollapseSectionAt: O,
5007
4994
  onDeselectAt: _,
5008
4995
  onExpandedSectionsChange: I,
5009
4996
  onExpandSectionAt: $,
5010
4997
  onHeaderCustomEvent: A,
5011
4998
  onItemCustomEvent: S,
5012
4999
  onSelectAt: C,
5013
- onSelectionChange: q,
5000
+ onSelectionChange: K,
5014
5001
  HeaderComponent: W,
5015
5002
  ItemComponent: Y,
5016
5003
  ...J
5017
5004
  }, x) => {
5018
- const P = Wa(g ?? {}, d), E = qa(a ?? [], d), M = Ja({ orientation: c }), B = d.map(() => we(null)), K = B.map((F) => ci(F)), oe = (F, R) => (P[R]?.indexOf(F) ?? -1) >= 0, Q = (F) => E.indexOf(F) >= 0, X = (F) => {
5005
+ const P = Wa(g ?? {}, d), E = qa(a ?? [], d), M = Ja({ orientation: c }), B = d.map(() => we(null)), G = B.map((F) => ci(F)), oe = (F, R) => (P[R]?.indexOf(F) ?? -1) >= 0, Q = (F) => E.indexOf(F) >= 0, X = (F) => {
5019
5006
  let R;
5020
5007
  Q(F) ? R = (k) => k.filter((U) => U !== F) : i ? R = (k) => [F] : R = (k) => [...k.filter((U) => U !== F), F], te(E, R(E));
5021
5008
  }, D = (F, R) => {
@@ -5025,7 +5012,7 @@ const fi = /* @__PURE__ */ Te(({
5025
5012
  case "multiple":
5026
5013
  k = (Z) => ({
5027
5014
  ...Z,
5028
- [R]: fn([...(Z[R] ?? []).filter((G) => G !== F), F])
5015
+ [R]: fn([...(Z[R] ?? []).filter((q) => q !== F), F])
5029
5016
  });
5030
5017
  break;
5031
5018
  case "single":
@@ -5042,22 +5029,22 @@ const fi = /* @__PURE__ */ Te(({
5042
5029
  if (!oe(F, R)) return;
5043
5030
  const U = ((Z) => ({
5044
5031
  ...Z,
5045
- [R]: (Z[R] ?? []).filter((G) => G !== F)
5032
+ [R]: (Z[R] ?? []).filter((q) => q !== F)
5046
5033
  }))(P);
5047
5034
  ne(P, U);
5048
5035
  }, te = (F, R) => {
5049
5036
  if (qe(F, R)) return;
5050
5037
  const k = F?.filter((Z) => R.indexOf(Z) === -1) ?? [], U = R.filter((Z) => F?.indexOf(Z) === -1);
5051
- k.forEach((Z) => T?.(Z)), U.forEach((Z) => $?.(Z)), I?.(R);
5038
+ k.forEach((Z) => O?.(Z)), U.forEach((Z) => $?.(Z)), I?.(R);
5052
5039
  }, ne = (F, R) => {
5053
5040
  if (qe(F, R)) return;
5054
5041
  const k = d.length;
5055
5042
  let U = [], Z = [];
5056
- for (let G = 0; G < k; G++) {
5057
- const fe = F?.[G] ?? [], ge = R[G] ?? [], ue = fe.filter((ee) => ge.indexOf(ee) === -1), Ne = ge.filter((ee) => fe?.indexOf(ee) === -1);
5058
- U = [...U, ...ue.map((ee) => [ee, G])], Z = [...Z, ...Ne.map((ee) => [ee, G])];
5043
+ for (let q = 0; q < k; q++) {
5044
+ const fe = F?.[q] ?? [], ge = R[q] ?? [], ue = fe.filter((ee) => ge.indexOf(ee) === -1), Ne = ge.filter((ee) => fe?.indexOf(ee) === -1);
5045
+ U = [...U, ...ue.map((ee) => [ee, q])], Z = [...Z, ...Ne.map((ee) => [ee, q])];
5059
5046
  }
5060
- U.forEach((G) => _?.(G[0], G[1])), Z.forEach((G) => C?.(G[0], G[1])), q?.(R);
5047
+ U.forEach((q) => _?.(q[0], q[1])), Z.forEach((q) => C?.(q[0], q[1])), K?.(R);
5061
5048
  }, ae = ze(e, {
5062
5049
  collapseIcon: _r,
5063
5050
  expandIcon: Sr,
@@ -5066,7 +5053,7 @@ const fi = /* @__PURE__ */ Te(({
5066
5053
  section: dr
5067
5054
  });
5068
5055
  return /* @__PURE__ */ w.jsx("div", { ...J, ref: x, style: ce(r, M.root), children: /* @__PURE__ */ w.jsx(Mn, { in: d, children: (F, R) => {
5069
- const { collectionPadding: k = 0, items: U = [], itemLength: Z = 50, itemPadding: G = 0, isSelectionTogglable: fe, layout: ge = "list", maxVisible: ue = -1, numSegments: Ne = 1 } = F, ee = ge === "list" ? U.length : Math.ceil(U.length / Ne), Be = ue < 0 ? ee : Math.min(ee, ue), Ce = Z * Be + G * (Be - 1), Ie = !Q(R), He = K[R];
5056
+ const { collectionPadding: k = 0, items: U = [], itemLength: Z = 50, itemPadding: q = 0, isSelectionTogglable: fe, layout: ge = "list", maxVisible: ue = -1, numSegments: Ne = 1 } = F, ee = ge === "list" ? U.length : Math.ceil(U.length / Ne), Be = ue < 0 ? ee : Math.min(ee, ue), Ce = Z * Be + q * (Be - 1), Ie = !Q(R), He = G[R];
5070
5057
  return /* @__PURE__ */ w.jsxs(
5071
5058
  me,
5072
5059
  {
@@ -5153,7 +5140,7 @@ const fi = /* @__PURE__ */ Te(({
5153
5140
  isSelectionTogglable: fe,
5154
5141
  ItemComponent: Y,
5155
5142
  itemLength: Z,
5156
- itemPadding: G,
5143
+ itemPadding: q,
5157
5144
  items: U,
5158
5145
  layout: ge,
5159
5146
  numSegments: Ne,
@@ -5291,36 +5278,36 @@ const Za = /* @__PURE__ */ Te(({
5291
5278
  onAutoAdvanceResume: g,
5292
5279
  onIndexChange: m,
5293
5280
  ItemComponent: b,
5294
- ...T
5281
+ ...O
5295
5282
  }, _) => {
5296
- const I = we(void 0), $ = we(null), A = we(void 0), S = we(void 0), C = we(void 0), q = 1e3, W = Se(d), Y = Se(g), J = Se(m), x = we(!1), P = we(!1), E = ja(), [M, B] = Oe(Oo($, c)), [K, oe] = Oe(!1), Q = tc({ scrollSnapEnabled: E || !K, orientation: c }), X = e > 0, D = he(() => {
5283
+ const I = we(void 0), $ = we(null), A = we(void 0), S = we(void 0), C = we(void 0), K = 1e3, W = Se(d), Y = Se(g), J = Se(m), x = we(!1), P = we(!1), E = ja(), [M, B] = Oe(Oo($, c)), [G, oe] = Oe(!1), Q = tc({ scrollSnapEnabled: E || !G, orientation: c }), X = e > 0, D = he(() => {
5297
5284
  C.current !== void 0 && (clearTimeout(C.current), C.current = void 0);
5298
5285
  }, []), z = he(() => {
5299
5286
  D(), C.current = setTimeout(() => {
5300
5287
  clearTimeout(C.current), C.current = void 0;
5301
- }, q);
5302
- }, [q, D]), te = he(() => {
5288
+ }, K);
5289
+ }, [K, D]), te = he(() => {
5303
5290
  Qa($, r, c), z();
5304
5291
  }, [r, c]), ne = he(() => {
5305
5292
  B(Oo($, c));
5306
- }, [c]), ae = he((G) => {
5307
- E || (A.current = _e.make(G.clientX, G.clientY), oe(!0));
5308
- }, [E]), F = he((G) => {
5309
- E || (S.current = _e.make(G.clientX, G.clientY), te(), oe(!1));
5310
- }, [E, te]), R = he((G) => {
5293
+ }, [c]), ae = he((q) => {
5294
+ E || (A.current = _e.make(q.clientX, q.clientY), oe(!0));
5295
+ }, [E]), F = he((q) => {
5296
+ E || (S.current = _e.make(q.clientX, q.clientY), te(), oe(!1));
5297
+ }, [E, te]), R = he((q) => {
5311
5298
  const fe = A.current, ge = S.current;
5312
5299
  if (!fe || !ge) return;
5313
5300
  const ue = 5, Ne = _e.subtract(fe, ge);
5314
- (Math.abs(Ne.x) > ue || Math.abs(Ne.y) > ue) && G.stopPropagation(), A.current = void 0, S.current = void 0;
5301
+ (Math.abs(Ne.x) > ue || Math.abs(Ne.y) > ue) && q.stopPropagation(), A.current = void 0, S.current = void 0;
5315
5302
  }, []), k = he(() => {
5316
- const G = (r + a.length + 1) % a.length;
5317
- J.current?.(G);
5318
- }, [K, r, a.length]), U = he(({ x: G, y: fe }) => {
5303
+ const q = (r + a.length + 1) % a.length;
5304
+ J.current?.(q);
5305
+ }, [G, r, a.length]), U = he(({ x: q, y: fe }) => {
5319
5306
  const ge = $.current;
5320
5307
  !ge || x.current || (D(), x.current = !0, requestAnimationFrame(() => {
5321
5308
  switch (c) {
5322
5309
  case "horizontal":
5323
- ge.scrollLeft -= G * 1.5;
5310
+ ge.scrollLeft -= q * 1.5;
5324
5311
  break;
5325
5312
  case "vertical":
5326
5313
  ge.scrollTop -= fe * 1.5;
@@ -5330,10 +5317,10 @@ const Za = /* @__PURE__ */ Te(({
5330
5317
  x.current = !1;
5331
5318
  }));
5332
5319
  }, [c]), Z = he(() => {
5333
- const G = $.current;
5334
- !G || P.current || (P.current = !0, requestAnimationFrame(() => {
5320
+ const q = $.current;
5321
+ !q || P.current || (P.current = !0, requestAnimationFrame(() => {
5335
5322
  if (u && ne(), !(C.current !== void 0)) {
5336
- const ge = Math.round(c === "horizontal" ? G.scrollLeft / G.clientWidth : G.scrollTop / G.clientHeight), ue = Math.max(0, Math.min(a.length - 1, ge));
5323
+ const ge = Math.round(c === "horizontal" ? q.scrollLeft / q.clientWidth : q.scrollTop / q.clientHeight), ue = Math.max(0, Math.min(a.length - 1, ge));
5337
5324
  ue !== r && (I.current = ue, J.current?.(ue));
5338
5325
  }
5339
5326
  P.current = !1;
@@ -5342,21 +5329,21 @@ const Za = /* @__PURE__ */ Te(({
5342
5329
  return ka($, {
5343
5330
  isEnabled: !E && i && a.length > 1,
5344
5331
  onDragMove: U
5345
- }), Ca(K || !X ? -1 : e, {
5332
+ }), Ca(G || !X ? -1 : e, {
5346
5333
  onInterval: k
5347
5334
  }, [r]), $e(() => {
5348
- !X || E || (K ? W.current?.() : Y.current?.());
5349
- }, [E, K, X]), $e(() => {
5350
- const G = $.current;
5351
- if (!G) return;
5335
+ !X || E || (G ? W.current?.() : Y.current?.());
5336
+ }, [E, G, X]), $e(() => {
5337
+ const q = $.current;
5338
+ if (!q) return;
5352
5339
  const fe = I.current === void 0, ge = I.current === r;
5353
- return G.addEventListener("scroll", Z), u && ne(), ge || (I.current = r, fe || (J.current?.(r), te())), () => {
5354
- G.removeEventListener("scroll", Z);
5340
+ return q.addEventListener("scroll", Z), u && ne(), ge || (I.current = r, fe || (J.current?.(r), te())), () => {
5341
+ q.removeEventListener("scroll", Z);
5355
5342
  };
5356
5343
  }, [r, u, te, Z, ne]), /* @__PURE__ */ w.jsx(
5357
5344
  "div",
5358
5345
  {
5359
- ...T,
5346
+ ...O,
5360
5347
  ref: _,
5361
5348
  role: "region",
5362
5349
  onClick: R,
@@ -5364,12 +5351,12 @@ const Za = /* @__PURE__ */ Te(({
5364
5351
  onPointerDown: ae,
5365
5352
  onPointerLeave: F,
5366
5353
  onPointerUp: F,
5367
- children: /* @__PURE__ */ w.jsx("div", { ref: $, style: ce(Q.viewport), children: /* @__PURE__ */ w.jsx(Mn, { in: a, children: ({ style: G, ...fe }, ge) => /* @__PURE__ */ w.jsx("div", { style: ce(Q.itemContainer), children: /* @__PURE__ */ w.jsx(
5354
+ children: /* @__PURE__ */ w.jsx("div", { ref: $, style: ce(Q.viewport), children: /* @__PURE__ */ w.jsx(Mn, { in: a, children: ({ style: q, ...fe }, ge) => /* @__PURE__ */ w.jsx("div", { style: ce(Q.itemContainer), children: /* @__PURE__ */ w.jsx(
5368
5355
  b,
5369
5356
  {
5370
5357
  "aria-hidden": ge !== r,
5371
5358
  exposure: u ? M?.[ge] : void 0,
5372
- style: ce(G, Q.item),
5359
+ style: ce(q, Q.item),
5373
5360
  ...fe
5374
5361
  }
5375
5362
  ) }) }) })
@@ -5452,48 +5439,48 @@ const pi = /* @__PURE__ */ Te(({
5452
5439
  size: g,
5453
5440
  style: m,
5454
5441
  value: b,
5455
- onChange: T,
5442
+ onChange: O,
5456
5443
  ..._
5457
5444
  }, I) => {
5458
5445
  const $ = rc(b, g), A = we([]), S = nc(), C = ze(e, {
5459
5446
  field: dn
5460
- }), q = (x) => {
5447
+ }), K = (x) => {
5461
5448
  x < 0 ? A.current[0]?.focus() : x >= g ? A.current[g - 1]?.focus() : A.current[x]?.focus();
5462
5449
  }, W = (x) => (P) => {
5463
5450
  const E = $[x], M = oc(P.target.value, E), B = Po($.slice(), M.split("").slice(0, g), x);
5464
- T(B);
5465
- const K = Math.min(x + M.length, g - 1);
5466
- q(K);
5451
+ O(B);
5452
+ const G = Math.min(x + M.length, g - 1);
5453
+ K(G);
5467
5454
  }, Y = (x) => (P) => {
5468
5455
  switch (P.key) {
5469
5456
  case "Backspace": {
5470
5457
  if (P.preventDefault(), $[x]) {
5471
5458
  const E = $.slice();
5472
- E[x] = "", T(E), q(x - 1);
5459
+ E[x] = "", O(E), K(x - 1);
5473
5460
  } else
5474
- q(x - 1);
5461
+ K(x - 1);
5475
5462
  break;
5476
5463
  }
5477
5464
  case "ArrowLeft": {
5478
- P.preventDefault(), q(x - 1);
5465
+ P.preventDefault(), K(x - 1);
5479
5466
  break;
5480
5467
  }
5481
5468
  case "ArrowRight": {
5482
- P.preventDefault(), q(x + 1);
5469
+ P.preventDefault(), K(x + 1);
5483
5470
  break;
5484
5471
  }
5485
5472
  }
5486
5473
  }, J = (x) => (P) => {
5487
5474
  P.preventDefault();
5488
5475
  const E = P.clipboardData.getData("text").trim(), M = Po($.slice(), E.split("").slice(0, g), x);
5489
- T(M);
5476
+ O(M);
5490
5477
  const B = Math.min(x + E.length, g - 1);
5491
- q(B);
5478
+ K(B);
5492
5479
  };
5493
5480
  return Ee(() => {
5494
5481
  if (!i) return;
5495
5482
  const x = $.findIndex((P) => P === "");
5496
- x !== -1 && q(x);
5483
+ x !== -1 && K(x);
5497
5484
  }, [i]), /* @__PURE__ */ w.jsx("div", { ..._, ref: I, style: ce(m, S.root), children: /* @__PURE__ */ w.jsx(nn, { count: g, children: (x) => /* @__PURE__ */ w.jsx(
5498
5485
  me,
5499
5486
  {
@@ -5570,13 +5557,13 @@ const hi = /* @__PURE__ */ Te(({
5570
5557
  formatter: g,
5571
5558
  onFocus: m,
5572
5559
  onUnfocus: b,
5573
- onChange: T,
5560
+ onChange: O,
5574
5561
  ..._
5575
5562
  }, I) => {
5576
5563
  const $ = he((A) => {
5577
5564
  const S = (g?.(A) ?? A) || r;
5578
- T?.(S);
5579
- }, [T, g]);
5565
+ O?.(S);
5566
+ }, [O, g]);
5580
5567
  return /* @__PURE__ */ w.jsx(
5581
5568
  "input",
5582
5569
  {
@@ -5610,24 +5597,24 @@ const gi = /* @__PURE__ */ Te(({
5610
5597
  }, m) => {
5611
5598
  const b = () => {
5612
5599
  d?.(S(u - 1));
5613
- }, T = () => {
5600
+ }, O = () => {
5614
5601
  d?.(S(u + 1));
5615
5602
  }, _ = (P) => {
5616
- q(P);
5603
+ K(P);
5617
5604
  }, I = (P) => {
5618
5605
  const E = A(P);
5619
- E !== u ? d?.(E) : q($(E));
5606
+ E !== u ? d?.(E) : K($(E));
5620
5607
  }, $ = (P) => P.toLocaleString(), A = (P) => {
5621
5608
  const E = parseInt(P, 10);
5622
5609
  return E.toString() !== P.replace(/^0+/, "") ? u : S(E);
5623
5610
  }, S = (P) => {
5624
5611
  let E = P;
5625
5612
  return isNaN(c) || (E = Math.max(c, E)), isNaN(a) || (E = Math.min(a, E)), E;
5626
- }, [C, q] = Oe($(u)), W = Fa(u), Y = !isNaN(a) && u + 1 > a, J = !isNaN(c) && u - 1 < c;
5613
+ }, [C, K] = Oe($(u)), W = Fa(u), Y = !isNaN(a) && u + 1 > a, J = !isNaN(c) && u - 1 < c;
5627
5614
  Ee(() => {
5628
5615
  if (W === void 0 || W === u) return;
5629
5616
  const P = S(u);
5630
- q($(P));
5617
+ K($(P));
5631
5618
  }, [u, c, a]);
5632
5619
  const x = ze(e, {
5633
5620
  textField: pn,
@@ -5661,7 +5648,7 @@ const gi = /* @__PURE__ */ Te(({
5661
5648
  className: se({ disabled: Y }),
5662
5649
  element: x.addButton ?? /* @__PURE__ */ w.jsx(hn, {}),
5663
5650
  style: ce(Zt.add),
5664
- onClick: () => T()
5651
+ onClick: () => O()
5665
5652
  }
5666
5653
  )
5667
5654
  ] });
@@ -5707,12 +5694,12 @@ const ic = /* @__PURE__ */ Te(({
5707
5694
  trackThickness: g = 2,
5708
5695
  ...m
5709
5696
  }, b) => {
5710
- const T = u * 2, _ = Math.max(0, Math.min(360, a)), I = ze(e, {
5697
+ const O = u * 2, _ = Math.max(0, Math.min(360, a)), I = ze(e, {
5711
5698
  track: mn,
5712
5699
  knob: vn
5713
- }), $ = cc({ angle: i, diameter: T });
5700
+ }), $ = cc({ angle: i, diameter: O });
5714
5701
  return /* @__PURE__ */ w.jsxs("div", { ...m, ref: b, style: ce(r, $.root), children: [
5715
- /* @__PURE__ */ w.jsx("div", { style: $.trackContainer, children: /* @__PURE__ */ w.jsx("svg", { height: T, style: $.svgContainer, viewBox: `0 0 ${T} ${T}`, width: T, children: /* @__PURE__ */ w.jsx(
5702
+ /* @__PURE__ */ w.jsx("div", { style: $.trackContainer, children: /* @__PURE__ */ w.jsx("svg", { height: O, style: $.svgContainer, viewBox: `0 0 ${O} ${O}`, width: O, children: /* @__PURE__ */ w.jsx(
5716
5703
  me,
5717
5704
  {
5718
5705
  cx: u,
@@ -5724,7 +5711,7 @@ const ic = /* @__PURE__ */ Te(({
5724
5711
  strokeWidth: g
5725
5712
  }
5726
5713
  ) }) }),
5727
- /* @__PURE__ */ w.jsx("div", { style: ce($.knobContainer), children: /* @__PURE__ */ w.jsx("svg", { style: $.svgContainer, viewBox: `0 0 ${T} ${T}`, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ w.jsx(
5714
+ /* @__PURE__ */ w.jsx("div", { style: ce($.knobContainer), children: /* @__PURE__ */ w.jsx("svg", { style: $.svgContainer, viewBox: `0 0 ${O} ${O}`, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ w.jsx(
5728
5715
  me,
5729
5716
  {
5730
5717
  d: ac(u, u, u - c / 2 - (g - c) / 2, -_ / 2, _ / 2),
@@ -5813,14 +5800,14 @@ const mi = /* @__PURE__ */ Te(({
5813
5800
  label: g,
5814
5801
  layout: m = "list",
5815
5802
  isSelectionTogglable: b = !1,
5816
- itemLength: T,
5803
+ itemLength: O,
5817
5804
  itemPadding: _ = 0,
5818
5805
  items: I = [],
5819
5806
  maxVisibleItems: $ = -1,
5820
5807
  numSegments: A = 1,
5821
5808
  orientation: S = "vertical",
5822
5809
  selection: C = [],
5823
- selectionMode: q = "single",
5810
+ selectionMode: K = "single",
5824
5811
  onActivateAt: W,
5825
5812
  onCollapse: Y,
5826
5813
  onDeselectAt: J,
@@ -5829,23 +5816,23 @@ const mi = /* @__PURE__ */ Te(({
5829
5816
  onSelectionChange: E,
5830
5817
  onToggleCustomEvent: M,
5831
5818
  ItemComponent: B,
5832
- ToggleComponent: K,
5819
+ ToggleComponent: G,
5833
5820
  ...oe
5834
5821
  }, Q) => {
5835
- const X = we(null), D = nt(X), z = I.length, te = dc(I, $, A, m), ne = T ?? (S === "vertical" ? D.height : D.width), ae = ne * te + _ * (te - 1), F = uc(C, I), [R, k] = Oe(u ?? !0), U = pc({ isCollapsed: R, collectionPadding: c, isInverted: d, maxVisibleItems: $, menuLength: ae, numItems: z, orientation: S }), Z = ze(e, {
5822
+ const X = we(null), D = nt(X), z = I.length, te = dc(I, $, A, m), ne = O ?? (S === "vertical" ? D.height : D.width), ae = ne * te + _ * (te - 1), F = uc(C, I), [R, k] = Oe(u ?? !0), U = pc({ isCollapsed: R, collectionPadding: c, isInverted: d, maxVisibleItems: $, menuLength: ae, numItems: z, orientation: S }), Z = ze(e, {
5836
5823
  collapseIcon: Tr,
5837
5824
  collection: yn,
5838
5825
  expandIcon: Or,
5839
5826
  item: bn,
5840
5827
  toggle: xn
5841
- }), G = () => {
5828
+ }), q = () => {
5842
5829
  R && (k(!1), x?.());
5843
5830
  }, fe = () => {
5844
5831
  R || (k(!0), Y?.());
5845
5832
  }, ge = () => {
5846
- R ? G() : fe();
5833
+ R ? q() : fe();
5847
5834
  }, ue = (Ne) => {
5848
- P?.(Ne), q === "single" && a && fe();
5835
+ P?.(Ne), K === "single" && a && fe();
5849
5836
  };
5850
5837
  return Ee(() => {
5851
5838
  u !== void 0 && k(u);
@@ -5874,8 +5861,8 @@ const mi = /* @__PURE__ */ Te(({
5874
5861
  className: se(r, { collapsed: R, expanded: !R }),
5875
5862
  style: ce(i, U.root),
5876
5863
  children: /* @__PURE__ */ w.jsxs("div", { ref: X, style: ce(U.body), children: [
5877
- K ? /* @__PURE__ */ w.jsx(
5878
- K,
5864
+ G ? /* @__PURE__ */ w.jsx(
5865
+ G,
5879
5866
  {
5880
5867
  "aria-expanded": !R,
5881
5868
  "aria-haspopup": "listbox",
@@ -5919,7 +5906,7 @@ const mi = /* @__PURE__ */ Te(({
5919
5906
  numSegments: A,
5920
5907
  orientation: S,
5921
5908
  selection: F,
5922
- selectionMode: q,
5909
+ selectionMode: K,
5923
5910
  style: ce(U.collection),
5924
5911
  onActivateAt: W,
5925
5912
  onDeselectAt: J,
@@ -5964,14 +5951,11 @@ function fc(e) {
5964
5951
  }
5965
5952
  function dc(e, r, i, a) {
5966
5953
  const c = e.length;
5967
- switch (a) {
5968
- case "grid": {
5969
- const u = i < 1 ? c : Math.ceil(c / i);
5970
- return r < 0 ? u : Math.min(u, r);
5971
- }
5972
- default:
5973
- return r < 0 ? c : Math.min(c, r);
5974
- }
5954
+ if (a === "grid") {
5955
+ const u = i < 1 ? c : Math.ceil(c / i);
5956
+ return r < 0 ? u : Math.min(u, r);
5957
+ } else
5958
+ return r < 0 ? c : Math.min(c, r);
5975
5959
  }
5976
5960
  function pc({ isCollapsed: e = !0, isInverted: r = !1, collectionPadding: i = 0, maxVisibleItems: a = 0, menuLength: c = NaN, numItems: u = 0, orientation: d = "vertical" }) {
5977
5961
  return {
@@ -6090,18 +6074,18 @@ function bc(e, r) {
6090
6074
  const b = Ec(e, u);
6091
6075
  if (b === !1)
6092
6076
  return ke("InvalidAttr", "Attributes for '" + m + "' have open quote.", Re(e, u));
6093
- let T = b.value;
6094
- if (u = b.index, T[T.length - 1] === "/") {
6095
- const _ = u - T.length;
6096
- T = T.substring(0, T.length - 1);
6097
- const I = jo(T, r);
6077
+ let O = b.value;
6078
+ if (u = b.index, O[O.length - 1] === "/") {
6079
+ const _ = u - O.length;
6080
+ O = O.substring(0, O.length - 1);
6081
+ const I = jo(O, r);
6098
6082
  if (I === !0)
6099
6083
  a = !0;
6100
6084
  else
6101
6085
  return ke(I.err.code, I.err.msg, Re(e, _ + I.err.line));
6102
6086
  } else if (g)
6103
6087
  if (b.tagClosed) {
6104
- if (T.trim().length > 0)
6088
+ if (O.trim().length > 0)
6105
6089
  return ke("InvalidTag", "Closing tag '" + m + "' can't have attributes or invalid starting.", Re(e, d));
6106
6090
  if (i.length === 0)
6107
6091
  return ke("InvalidTag", "Closing tag '" + m + "' has not been opened.", Re(e, d));
@@ -6119,9 +6103,9 @@ function bc(e, r) {
6119
6103
  }
6120
6104
  } else return ke("InvalidTag", "Closing tag '" + m + "' doesn't have proper closing.", Re(e, u));
6121
6105
  else {
6122
- const _ = jo(T, r);
6106
+ const _ = jo(O, r);
6123
6107
  if (_ !== !0)
6124
- return ke(_.err.code, _.err.msg, Re(e, u - T.length + _.err.line));
6108
+ return ke(_.err.code, _.err.msg, Re(e, u - O.length + _.err.line));
6125
6109
  if (c === !0)
6126
6110
  return ke("InvalidXml", "Multiple possible root nodes found.", Re(e, u));
6127
6111
  r.unpairedTags.indexOf(m) !== -1 || i.push({ tagName: m, tagStartPos: d }), a = !0;
@@ -6336,7 +6320,7 @@ const Pc = {
6336
6320
  return Object.assign({}, Pc, e);
6337
6321
  };
6338
6322
  let wn;
6339
- typeof Symbol != "function" ? wn = "@@xmlMetadata" : wn = Symbol("XML Node Metadata");
6323
+ typeof Symbol != "function" ? wn = "@@xmlMetadata" : wn = /* @__PURE__ */ Symbol("XML Node Metadata");
6340
6324
  class ct {
6341
6325
  constructor(r) {
6342
6326
  this.tagname = r, this.child = [], this[":@"] = {};
@@ -6556,8 +6540,8 @@ function Ac(e, r = {}) {
6556
6540
  return r.eNotation ? m : e;
6557
6541
  if (i.indexOf(".") !== -1)
6558
6542
  return b === "0" || b === d || b === `${c}${d}` ? m : e;
6559
- let T = u ? d : i;
6560
- return u ? T === b || c + T === b ? m : e : T === b || T === c + b ? m : e;
6543
+ let O = u ? d : i;
6544
+ return u ? O === b || c + O === b ? m : e : O === b || O === c + b ? m : e;
6561
6545
  }
6562
6546
  } else
6563
6547
  return e;
@@ -6652,32 +6636,32 @@ function Bc(e) {
6652
6636
  return e;
6653
6637
  }
6654
6638
  const Hc = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
6655
- function Yc(e, r, i) {
6639
+ function Yc(e, r) {
6656
6640
  if (this.options.ignoreAttributes !== !0 && typeof e == "string") {
6657
- const a = yi(e, Hc), c = a.length, u = {};
6658
- for (let d = 0; d < c; d++) {
6659
- const g = this.resolveNameSpace(a[d][1]);
6660
- if (this.ignoreAttributesFn(g, r))
6641
+ const i = yi(e, Hc), a = i.length, c = {};
6642
+ for (let u = 0; u < a; u++) {
6643
+ const d = this.resolveNameSpace(i[u][1]);
6644
+ if (this.ignoreAttributesFn(d, r))
6661
6645
  continue;
6662
- let m = a[d][4], b = this.options.attributeNamePrefix + g;
6663
- if (g.length)
6664
- if (this.options.transformAttributeName && (b = this.options.transformAttributeName(b)), b === "__proto__" && (b = "#__proto__"), m !== void 0) {
6665
- this.options.trimValues && (m = m.trim()), m = this.replaceEntitiesValue(m);
6666
- const T = this.options.attributeValueProcessor(g, m, r);
6667
- T == null ? u[b] = m : typeof T != typeof m || T !== m ? u[b] = T : u[b] = hr(
6668
- m,
6646
+ let g = i[u][4], m = this.options.attributeNamePrefix + d;
6647
+ if (d.length)
6648
+ if (this.options.transformAttributeName && (m = this.options.transformAttributeName(m)), m === "__proto__" && (m = "#__proto__"), g !== void 0) {
6649
+ this.options.trimValues && (g = g.trim()), g = this.replaceEntitiesValue(g);
6650
+ const b = this.options.attributeValueProcessor(d, g, r);
6651
+ b == null ? c[m] = g : typeof b != typeof g || b !== g ? c[m] = b : c[m] = hr(
6652
+ g,
6669
6653
  this.options.parseAttributeValue,
6670
6654
  this.options.numberParseOptions
6671
6655
  );
6672
- } else this.options.allowBooleanAttributes && (u[b] = !0);
6656
+ } else this.options.allowBooleanAttributes && (c[m] = !0);
6673
6657
  }
6674
- if (!Object.keys(u).length)
6658
+ if (!Object.keys(c).length)
6675
6659
  return;
6676
6660
  if (this.options.attributesGroupName) {
6677
- const d = {};
6678
- return d[this.options.attributesGroupName] = u, d;
6661
+ const u = {};
6662
+ return u[this.options.attributesGroupName] = c, u;
6679
6663
  }
6680
- return u;
6664
+ return c;
6681
6665
  }
6682
6666
  }
6683
6667
  const Xc = function(e) {
@@ -6696,17 +6680,17 @@ const Xc = function(e) {
6696
6680
  I !== -1 && (b = b.substr(I + 1));
6697
6681
  }
6698
6682
  this.options.transformTagName && (b = this.options.transformTagName(b)), i && (a = this.saveTextToParentTag(a, i, c));
6699
- const T = c.substring(c.lastIndexOf(".") + 1);
6683
+ const O = c.substring(c.lastIndexOf(".") + 1);
6700
6684
  if (b && this.options.unpairedTags.indexOf(b) !== -1)
6701
6685
  throw new Error(`Unpaired tag can not be used as closing tag: </${b}>`);
6702
6686
  let _ = 0;
6703
- T && this.options.unpairedTags.indexOf(T) !== -1 ? (_ = c.lastIndexOf(".", c.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : _ = c.lastIndexOf("."), c = c.substring(0, _), i = this.tagsNodeStack.pop(), a = "", d = m;
6687
+ O && this.options.unpairedTags.indexOf(O) !== -1 ? (_ = c.lastIndexOf(".", c.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : _ = c.lastIndexOf("."), c = c.substring(0, _), i = this.tagsNodeStack.pop(), a = "", d = m;
6704
6688
  } else if (e[d + 1] === "?") {
6705
6689
  let m = pr(e, d, !1, "?>");
6706
6690
  if (!m) throw new Error("Pi Tag is not closed.");
6707
6691
  if (a = this.saveTextToParentTag(a, i, c), !(this.options.ignoreDeclaration && m.tagName === "?xml" || this.options.ignorePiTags)) {
6708
6692
  const b = new ct(m.tagName);
6709
- b.add(this.options.textNodeName, ""), m.tagName !== m.tagExp && m.attrExpPresent && (b[":@"] = this.buildAttributesMap(m.tagExp, c, m.tagName)), this.addChild(i, b, c, d);
6693
+ b.add(this.options.textNodeName, ""), m.tagName !== m.tagExp && m.attrExpPresent && (b[":@"] = this.buildAttributesMap(m.tagExp, c)), this.addChild(i, b, c, d);
6710
6694
  }
6711
6695
  d = m.closeIndex + 1;
6712
6696
  } else if (e.substr(d + 1, 3) === "!--") {
@@ -6722,13 +6706,17 @@ const Xc = function(e) {
6722
6706
  } else if (e.substr(d + 1, 2) === "![") {
6723
6707
  const m = lt(e, "]]>", d, "CDATA is not closed.") - 2, b = e.substring(d + 9, m);
6724
6708
  a = this.saveTextToParentTag(a, i, c);
6725
- let T = this.parseTextData(b, i.tagname, c, !0, !1, !0, !0);
6726
- T == null && (T = ""), this.options.cdataPropName ? i.add(this.options.cdataPropName, [{ [this.options.textNodeName]: b }]) : i.add(this.options.textNodeName, T), d = m + 2;
6709
+ let O = this.parseTextData(b, i.tagname, c, !0, !1, !0, !0);
6710
+ O == null && (O = ""), this.options.cdataPropName ? i.add(this.options.cdataPropName, [{ [this.options.textNodeName]: b }]) : i.add(this.options.textNodeName, O), d = m + 2;
6727
6711
  } else {
6728
6712
  let m = pr(e, d, this.options.removeNSPrefix), b = m.tagName;
6729
- const T = m.rawTagName;
6713
+ const O = m.rawTagName;
6730
6714
  let _ = m.tagExp, I = m.attrExpPresent, $ = m.closeIndex;
6731
- this.options.transformTagName && (b = this.options.transformTagName(b)), i && a && i.tagname !== "!xml" && (a = this.saveTextToParentTag(a, i, c, !1));
6715
+ if (this.options.transformTagName) {
6716
+ const C = this.options.transformTagName(b);
6717
+ _ === b && (_ = C), b = C;
6718
+ }
6719
+ i && a && i.tagname !== "!xml" && (a = this.saveTextToParentTag(a, i, c, !1));
6732
6720
  const A = i;
6733
6721
  A && this.options.unpairedTags.indexOf(A.tagname) !== -1 && (i = this.tagsNodeStack.pop(), c = c.substring(0, c.lastIndexOf("."))), b !== r.tagname && (c += c ? "." + b : b);
6734
6722
  const S = d;
@@ -6739,20 +6727,26 @@ const Xc = function(e) {
6739
6727
  else if (this.options.unpairedTags.indexOf(b) !== -1)
6740
6728
  d = m.closeIndex;
6741
6729
  else {
6742
- const W = this.readStopNodeData(e, T, $ + 1);
6743
- if (!W) throw new Error(`Unexpected end of ${T}`);
6730
+ const W = this.readStopNodeData(e, O, $ + 1);
6731
+ if (!W) throw new Error(`Unexpected end of ${O}`);
6744
6732
  d = W.i, C = W.tagContent;
6745
6733
  }
6746
- const q = new ct(b);
6747
- b !== _ && I && (q[":@"] = this.buildAttributesMap(_, c, b)), C && (C = this.parseTextData(C, b, c, !0, I, !0, !0)), c = c.substr(0, c.lastIndexOf(".")), q.add(this.options.textNodeName, C), this.addChild(i, q, c, S);
6734
+ const K = new ct(b);
6735
+ b !== _ && I && (K[":@"] = this.buildAttributesMap(
6736
+ _,
6737
+ c
6738
+ )), C && (C = this.parseTextData(C, b, c, !0, I, !0, !0)), c = c.substr(0, c.lastIndexOf(".")), K.add(this.options.textNodeName, C), this.addChild(i, K, c, S);
6748
6739
  } else {
6749
6740
  if (_.length > 0 && _.lastIndexOf("/") === _.length - 1) {
6750
- b[b.length - 1] === "/" ? (b = b.substr(0, b.length - 1), c = c.substr(0, c.length - 1), _ = b) : _ = _.substr(0, _.length - 1), this.options.transformTagName && (b = this.options.transformTagName(b));
6741
+ if (b[b.length - 1] === "/" ? (b = b.substr(0, b.length - 1), c = c.substr(0, c.length - 1), _ = b) : _ = _.substr(0, _.length - 1), this.options.transformTagName) {
6742
+ const K = this.options.transformTagName(b);
6743
+ _ === b && (_ = K), b = K;
6744
+ }
6751
6745
  const C = new ct(b);
6752
- b !== _ && I && (C[":@"] = this.buildAttributesMap(_, c, b)), this.addChild(i, C, c, S), c = c.substr(0, c.lastIndexOf("."));
6746
+ b !== _ && I && (C[":@"] = this.buildAttributesMap(_, c)), this.addChild(i, C, c, S), c = c.substr(0, c.lastIndexOf("."));
6753
6747
  } else {
6754
6748
  const C = new ct(b);
6755
- this.tagsNodeStack.push(i), b !== _ && I && (C[":@"] = this.buildAttributesMap(_, c, b)), this.addChild(i, C, c, S), i = C;
6749
+ this.tagsNodeStack.push(i), b !== _ && I && (C[":@"] = this.buildAttributesMap(_, c)), this.addChild(i, C, c, S), i = C;
6756
6750
  }
6757
6751
  a = "", d = $;
6758
6752
  }
@@ -6835,7 +6829,7 @@ function pr(e, r, i, a = ">") {
6835
6829
  const d = c.index, g = u.search(/\s/);
6836
6830
  let m = u, b = !0;
6837
6831
  g !== -1 && (m = u.substring(0, g), u = u.substring(g + 1).trimStart());
6838
- const T = m;
6832
+ const O = m;
6839
6833
  if (i) {
6840
6834
  const _ = m.indexOf(":");
6841
6835
  _ !== -1 && (m = m.substr(_ + 1), b = m !== c.data.substr(_ + 1));
@@ -6845,7 +6839,7 @@ function pr(e, r, i, a = ">") {
6845
6839
  tagExp: u,
6846
6840
  closeIndex: d,
6847
6841
  attrExpPresent: b,
6848
- rawTagName: T
6842
+ rawTagName: O
6849
6843
  };
6850
6844
  }
6851
6845
  function Jc(e, r, i) {
@@ -6896,8 +6890,8 @@ function xi(e, r, i) {
6896
6890
  continue;
6897
6891
  if (d[g]) {
6898
6892
  let b = xi(d[g], r, m);
6899
- const T = tl(b, r);
6900
- d[ur] !== void 0 && (b[ur] = d[ur]), d[":@"] ? el(b, d[":@"], m, r) : Object.keys(b).length === 1 && b[r.textNodeName] !== void 0 && !r.alwaysCreateTextNode ? b = b[r.textNodeName] : Object.keys(b).length === 0 && (r.alwaysCreateTextNode ? b[r.textNodeName] = "" : b = ""), c[g] !== void 0 && c.hasOwnProperty(g) ? (Array.isArray(c[g]) || (c[g] = [c[g]]), c[g].push(b)) : r.isArray(g, m, T) ? c[g] = [b] : c[g] = b;
6893
+ const O = tl(b, r);
6894
+ d[ur] !== void 0 && (b[ur] = d[ur]), d[":@"] ? el(b, d[":@"], m, r) : Object.keys(b).length === 1 && b[r.textNodeName] !== void 0 && !r.alwaysCreateTextNode ? b = b[r.textNodeName] : Object.keys(b).length === 0 && (r.alwaysCreateTextNode ? b[r.textNodeName] = "" : b = ""), c[g] !== void 0 && c.hasOwnProperty(g) ? (Array.isArray(c[g]) || (c[g] = [c[g]]), c[g].push(b)) : r.isArray(g, m, O) ? c[g] = [b] : c[g] = b;
6901
6895
  }
6902
6896
  }
6903
6897
  }
@@ -7004,9 +6998,9 @@ function wi(e, r, i, a) {
7004
6998
  C = C.length !== 0 ? " " + C : "", c += S + `<${m}${C}${A}?>`, u = !0;
7005
6999
  continue;
7006
7000
  }
7007
- let T = a;
7008
- T !== "" && (T += r.indentBy);
7009
- const _ = Ao(g[":@"], r), I = a + `<${m}${_}`, $ = wi(g[m], r, b, T);
7001
+ let O = a;
7002
+ O !== "" && (O += r.indentBy);
7003
+ const _ = Ao(g[":@"], r), I = a + `<${m}${_}`, $ = wi(g[m], r, b, O);
7010
7004
  r.unpairedTags.indexOf(m) !== -1 ? r.suppressUnpairedNode ? c += I + ">" : c += I + "/>" : (!$ || $.length === 0) && r.suppressEmptyNode ? c += I + "/>" : $ && $.endsWith(">") ? c += I + `>${$}${a}</${m}>` : (c += I + ">", $ && a !== "" && ($.includes("/>") || $.includes("</")) ? c += a + r.indentBy + $ + a : c += $, c += `</${m}>`), u = !0;
7011
7005
  }
7012
7006
  return c;
@@ -7116,8 +7110,8 @@ rt.prototype.j2x = function(e, r, i) {
7116
7110
  } else if (Array.isArray(e[d])) {
7117
7111
  const g = e[d].length;
7118
7112
  let m = "", b = "";
7119
- for (let T = 0; T < g; T++) {
7120
- const _ = e[d][T];
7113
+ for (let O = 0; O < g; O++) {
7114
+ const _ = e[d][O];
7121
7115
  if (!(typeof _ > "u")) if (_ === null)
7122
7116
  d[0] === "?" ? c += this.indentate(r) + "<" + d + "?" + this.tagEndChar : c += this.indentate(r) + "<" + d + "/" + this.tagEndChar;
7123
7117
  else if (typeof _ == "object")
@@ -7195,7 +7189,7 @@ const fl = /* @__PURE__ */ Te(({
7195
7189
  shouldStripStyles: u = !0,
7196
7190
  ...d
7197
7191
  }, g) => {
7198
- const b = ["id"].map((A) => `@_${A}`), T = ["class"].map((A) => `@_${A}`), _ = ["fill", "stroke", "style"].map((A) => `@_${A}`), I = ["x", "y"].map((A) => `@_${A}`), $ = () => {
7192
+ const b = ["id"].map((A) => `@_${A}`), O = ["class"].map((A) => `@_${A}`), _ = ["fill", "stroke", "style"].map((A) => `@_${A}`), I = ["x", "y"].map((A) => `@_${A}`), $ = () => {
7199
7193
  const A = new nl({
7200
7194
  attributeNamePrefix: "@_",
7201
7195
  ignoreAttributes: !1,
@@ -7203,12 +7197,12 @@ const fl = /* @__PURE__ */ Te(({
7203
7197
  ignorePiTags: !0,
7204
7198
  removeNSPrefix: !0,
7205
7199
  trimValues: !0,
7206
- updateTag: (q, W, Y) => {
7207
- if (u && q.toLowerCase() === "style") return !1;
7200
+ updateTag: (K, W, Y) => {
7201
+ if (u && K.toLowerCase() === "style") return !1;
7208
7202
  const J = Object.keys(Y);
7209
7203
  for (const x of J)
7210
- q.toLowerCase() === "svg" && (c && I.includes(x.toLowerCase()) && delete Y[x], e !== "preserve" && (x.toLowerCase() === "@_width" && delete Y[x], x.toLowerCase() === "@_height" && delete Y[x])), a && b.includes(x.toLowerCase()) && delete Y[x], i && T.includes(x.toLowerCase()) && delete Y[x], u && _.includes(x.toLowerCase()) && delete Y[x];
7211
- if (q.toLowerCase() === "svg")
7204
+ K.toLowerCase() === "svg" && (c && I.includes(x.toLowerCase()) && delete Y[x], e !== "preserve" && (x.toLowerCase() === "@_width" && delete Y[x], x.toLowerCase() === "@_height" && delete Y[x])), a && b.includes(x.toLowerCase()) && delete Y[x], i && O.includes(x.toLowerCase()) && delete Y[x], u && _.includes(x.toLowerCase()) && delete Y[x];
7205
+ if (K.toLowerCase() === "svg")
7212
7206
  switch (e) {
7213
7207
  case "fill":
7214
7208
  Y["@_width"] = "100%", Y["@_height"] = "100%";
@@ -7220,7 +7214,7 @@ const fl = /* @__PURE__ */ Te(({
7220
7214
  Y["@_height"] = "100%";
7221
7215
  break;
7222
7216
  }
7223
- return q;
7217
+ return K;
7224
7218
  }
7225
7219
  }), S = new rt({
7226
7220
  attributeNamePrefix: "@_",
@@ -7265,17 +7259,17 @@ const Mo = "base-", pl = /* @__PURE__ */ Te(({
7265
7259
  verticalSpacing: g = 0,
7266
7260
  ...m
7267
7261
  }, b) => {
7268
- const T = we(null), [_, I] = Oe(NaN), [$, A] = Oe(NaN), [S, C] = Oe(NaN), [q, W] = Oe(NaN), Y = () => be.from(T.current)?.width ?? 0, J = () => be.from(T.current)?.height ?? 0, x = () => {
7269
- const B = T.current;
7262
+ const O = we(null), [_, I] = Oe(NaN), [$, A] = Oe(NaN), [S, C] = Oe(NaN), [K, W] = Oe(NaN), Y = () => be.from(O.current)?.width ?? 0, J = () => be.from(O.current)?.height ?? 0, x = () => {
7263
+ const B = O.current;
7270
7264
  if (!B) return;
7271
- const K = B.children, oe = d;
7265
+ const G = B.children, oe = d;
7272
7266
  if (oe <= 0) {
7273
7267
  console.error("[etudes::MasonryGrid] You must specify a minimum of 1 section(s) (a.k.a. row(s) for horizontal orientation, column(s) for vertical orientation) for a MasonryGrid instance");
7274
7268
  return;
7275
7269
  }
7276
7270
  if (u === "vertical") {
7277
7271
  const Q = [...new Array(oe)].map(() => 0);
7278
- for (const z of Array.from(K)) {
7272
+ for (const z of Array.from(G)) {
7279
7273
  if (!(z instanceof HTMLElement)) continue;
7280
7274
  const te = zo(z, d), [ne, ae] = Ro(Q, te);
7281
7275
  z.role = "gridcell", z.style.position = "absolute", z.style.width = `calc(${100 / oe * te}% - ${a * (oe - 1) / oe * te}px + ${a * (te - 1)}px)`, z.style.height = "", z.style.left = `calc(${100 / oe * ne}% - ${a * (oe - 1) / oe * ne}px + ${a * ne}px)`, z.style.top = `${ae + (ae === 0 ? 0 : g)}px`;
@@ -7289,11 +7283,11 @@ const Mo = "base-", pl = /* @__PURE__ */ Te(({
7289
7283
  }
7290
7284
  const X = Y(), D = kt(Q, oe);
7291
7285
  if (I(X), A(D), isNaN(D) || (B.style.height = `${D}px`), c)
7292
- for (const z of Array.from(K))
7286
+ for (const z of Array.from(G))
7293
7287
  z instanceof HTMLElement && (z.style.left = `calc(${X}px - ${z.style.left} - ${z.getBoundingClientRect().width}px)`);
7294
7288
  } else {
7295
7289
  const Q = [...new Array(oe)].map(() => 0);
7296
- for (const z of Array.from(K)) {
7290
+ for (const z of Array.from(G)) {
7297
7291
  if (!(z instanceof HTMLElement)) continue;
7298
7292
  const te = zo(z, d), [ne, ae] = Ro(Q, te);
7299
7293
  z.style.position = "absolute", z.style.width = "", z.style.height = `calc(${100 / oe * te}% - ${g * (oe - 1) / oe * te}px + ${g * (te - 1)}px)`, z.style.top = `calc(${100 / oe * ne}% - ${g * (oe - 1) / oe * ne}px + ${g * ne}px)`, z.style.left = `${ae + (ae === 0 ? 0 : a)}px`;
@@ -7307,20 +7301,20 @@ const Mo = "base-", pl = /* @__PURE__ */ Te(({
7307
7301
  }
7308
7302
  const X = J(), D = kt(Q, oe);
7309
7303
  if (A(X), I(D), isNaN(D) || (B.style.width = `${D}px`), c)
7310
- for (const z of Array.from(K))
7304
+ for (const z of Array.from(G))
7311
7305
  z instanceof HTMLElement && (z.style.top = `calc(${X}px - ${z.style.top} - ${z.getBoundingClientRect().height}px)`);
7312
7306
  }
7313
7307
  }, P = he((B) => {
7314
- const K = be.size(be.from(B) ?? be.zero), oe = Y(), Q = J();
7315
- (_ !== oe || $ !== Q || K.width !== S || K.height !== q) && (x(), C(K.width), W(K.height));
7308
+ const G = be.size(be.from(B) ?? be.zero), oe = Y(), Q = J();
7309
+ (_ !== oe || $ !== Q || G.width !== S || G.height !== K) && (x(), C(G.width), W(G.height));
7316
7310
  }, [e, a, c, d, g, u]);
7317
- mr(T, {
7311
+ mr(O, {
7318
7312
  onResize: P
7319
7313
  }), Ee(() => {
7320
- const B = ml(T.current?.innerHTML);
7314
+ const B = ml(O.current?.innerHTML);
7321
7315
  if (B.length === 0) return x();
7322
- const K = B.length;
7323
- for (let oe = 0; oe < K; oe++) {
7316
+ const G = B.length;
7317
+ for (let oe = 0; oe < G; oe++) {
7324
7318
  const Q = B[oe], X = new Image();
7325
7319
  X.src = Q, X.onload = () => x();
7326
7320
  }
@@ -7333,7 +7327,7 @@ const Mo = "base-", pl = /* @__PURE__ */ Te(({
7333
7327
  ref: b,
7334
7328
  className: se(i, E.root),
7335
7329
  role: "grid",
7336
- children: /* @__PURE__ */ w.jsx("div", { ref: T, style: M.body, children: r })
7330
+ children: /* @__PURE__ */ w.jsx("div", { ref: O, style: M.body, children: r })
7337
7331
  }
7338
7332
  );
7339
7333
  });
@@ -7359,8 +7353,8 @@ function Ro(e, r) {
7359
7353
  for (let u = 0; u < i; u++) {
7360
7354
  const d = e[u], g = d < c, m = u + r <= i;
7361
7355
  let b = !0;
7362
- for (let T = 1; T < r; T++)
7363
- e[u + T] > d && (b = !1);
7356
+ for (let O = 1; O < r; O++)
7357
+ e[u + O] > d && (b = !1);
7364
7358
  g && m && b && (a = u, c = d);
7365
7359
  }
7366
7360
  return isNaN(a) ? [0, kt(e, r)] : [a, c];
@@ -7399,28 +7393,28 @@ const Ni = /* @__PURE__ */ Te(({
7399
7393
  max: g,
7400
7394
  min: m,
7401
7395
  orientation: b = "vertical",
7402
- range: T,
7396
+ range: O,
7403
7397
  steps: _ = -1,
7404
7398
  onChange: I,
7405
7399
  ...$
7406
7400
  }, A) => {
7407
- const S = we(null), C = nt(S), q = we(null), W = we(null), [Y, J] = Oe(T ?? [m, g]), x = Nl(m, g, _), [P, E] = Y.map((U) => at(U, m, g, b, C, d, c, a)), M = E - P, B = ze(e, {
7401
+ const S = we(null), C = nt(S), K = we(null), W = we(null), [Y, J] = Oe(O ?? [m, g]), x = Nl(m, g, _), [P, E] = Y.map((U) => at(U, m, g, b, C, d, c, a)), M = E - P, B = ze(e, {
7408
7402
  gutter: En,
7409
7403
  highlight: Nn,
7410
7404
  knob: jt,
7411
7405
  knobContainer: tn,
7412
7406
  label: $t
7413
- }), K = he((U, Z, G) => {
7414
- const fe = b === "horizontal" ? Z : G, ge = at(m, m, g, b, C, d, c, a), ue = at(Y[1], m, g, b, C, d, c, a), Ne = at(U, m, g, b, C, d, c, a) + fe;
7407
+ }), G = he((U, Z, q) => {
7408
+ const fe = b === "horizontal" ? Z : q, ge = at(m, m, g, b, C, d, c, a), ue = at(Y[1], m, g, b, C, d, c, a), Ne = at(U, m, g, b, C, d, c, a) + fe;
7415
7409
  return Lo(Math.max(ge, Math.min(ue, Ne)), m, g, b, C, d, c, a);
7416
- }, [d, c, a, m, g, b, Y[1], be.toString(C)]), oe = he((U, Z, G) => {
7417
- const fe = b === "horizontal" ? Z : G, ge = at(Y[0], m, g, b, C, d, c, a), ue = at(g, m, g, b, C, d, c, a), Ne = at(U, m, g, b, C, d, c, a) + fe;
7410
+ }, [d, c, a, m, g, b, Y[1], be.toString(C)]), oe = he((U, Z, q) => {
7411
+ const fe = b === "horizontal" ? Z : q, ge = at(Y[0], m, g, b, C, d, c, a), ue = at(g, m, g, b, C, d, c, a), Ne = at(U, m, g, b, C, d, c, a) + fe;
7418
7412
  return Lo(Math.max(ge, Math.min(ue, Ne)), m, g, b, C, d, c, a);
7419
- }, [d, c, a, m, g, b, Y[0], be.toString(C)]), { isDragging: Q, isReleasing: X, value: D, setValue: z } = zt(q, {
7420
- initialValue: T?.[0] ?? m,
7421
- transform: K
7413
+ }, [d, c, a, m, g, b, Y[0], be.toString(C)]), { isDragging: Q, isReleasing: X, value: D, setValue: z } = zt(K, {
7414
+ initialValue: O?.[0] ?? m,
7415
+ transform: G
7422
7416
  }), { isDragging: te, isReleasing: ne, value: ae, setValue: F } = zt(W, {
7423
- initialValue: T?.[1] ?? g,
7417
+ initialValue: O?.[1] ?? g,
7424
7418
  transform: oe
7425
7419
  }), R = vl({ isDraggingEndKnob: te, isDraggingStartKnob: Q, isReleasingEndKnob: ne, isReleasingStartKnob: X }), k = yl({ orientation: b, highlightLength: M, start: P, knobPadding: u, knobWidth: d, knobHeight: c });
7426
7420
  return Ee(() => {
@@ -7428,8 +7422,8 @@ const Ni = /* @__PURE__ */ Te(({
7428
7422
  }, [D, ae]), Ee(() => {
7429
7423
  I?.(Y);
7430
7424
  }, [Y[0], Y[1]]), Ee(() => {
7431
- Q || te || ne || qe(T, Y) || (J(T ?? [m, g]), z(T?.[0] ?? m), F(T?.[1] ?? g));
7432
- }, [T?.[0], T?.[1], Q, te, ne]), Ee(() => {
7425
+ Q || te || ne || qe(O, Y) || (J(O ?? [m, g]), z(O?.[0] ?? m), F(O?.[1] ?? g));
7426
+ }, [O?.[0], O?.[1], Q, te, ne]), Ee(() => {
7433
7427
  x && z(Fo(D, x));
7434
7428
  }, [X, We(x)]), Ee(() => {
7435
7429
  !x || !ne || F(Fo(ae, x));
@@ -7448,7 +7442,7 @@ const Ni = /* @__PURE__ */ Te(({
7448
7442
  /* @__PURE__ */ w.jsx(
7449
7443
  me,
7450
7444
  {
7451
- ref: q,
7445
+ ref: K,
7452
7446
  className: R.startKnobContainer,
7453
7447
  disabled: qe([D, ae], [m, m]),
7454
7448
  element: B.knobContainer ?? /* @__PURE__ */ w.jsx(tn, {}),
@@ -7670,7 +7664,7 @@ const Si = /* @__PURE__ */ Te(({
7670
7664
  onChange: g,
7671
7665
  ...m
7672
7666
  }, b) => {
7673
- const T = ze(e, {
7667
+ const O = ze(e, {
7674
7668
  expandIcon: Pr,
7675
7669
  option: At,
7676
7670
  toggle: Sn
@@ -7680,19 +7674,19 @@ const Si = /* @__PURE__ */ Te(({
7680
7674
  me,
7681
7675
  {
7682
7676
  "aria-required": i ? "true" : void 0,
7683
- element: T.toggle ?? /* @__PURE__ */ w.jsx(Sn, {}),
7677
+ element: O.toggle ?? /* @__PURE__ */ w.jsx(Sn, {}),
7684
7678
  name: a,
7685
7679
  required: i,
7686
7680
  style: fr.select,
7687
7681
  value: d,
7688
7682
  onChange: (_) => g?.(_.target.value),
7689
7683
  children: [
7690
- u !== void 0 && /* @__PURE__ */ w.jsx(me, { disabled: !0, hidden: !0, element: T.option ?? /* @__PURE__ */ w.jsx(At, {}), value: "", children: u }),
7691
- c.map((_, I) => /* @__PURE__ */ w.jsx(me, { element: T.option ?? /* @__PURE__ */ w.jsx(At, {}), value: _, children: _ }, `${I}-${_}`))
7684
+ u !== void 0 && /* @__PURE__ */ w.jsx(me, { disabled: !0, hidden: !0, element: O.option ?? /* @__PURE__ */ w.jsx(At, {}), value: "", children: u }),
7685
+ c.map((_, I) => /* @__PURE__ */ w.jsx(me, { element: O.option ?? /* @__PURE__ */ w.jsx(At, {}), value: _, children: _ }, `${I}-${_}`))
7692
7686
  ]
7693
7687
  }
7694
7688
  ),
7695
- T.expandIcon && /* @__PURE__ */ w.jsx(me, { element: T.expandIcon, style: fr.expandIcon })
7689
+ O.expandIcon && /* @__PURE__ */ w.jsx(me, { element: O.expandIcon, style: fr.expandIcon })
7696
7690
  ] });
7697
7691
  }), Pr = ({ children: e, style: r, ...i }) => /* @__PURE__ */ w.jsx("figure", { ...i, "aria-hidden": !0, style: ce(r, { pointerEvents: "none" }), children: e }), Sn = ({ children: e, ...r }) => /* @__PURE__ */ w.jsx("select", { ...r, children: e }), At = ({ ...e }) => /* @__PURE__ */ w.jsx("option", { ...e }), au = /* @__PURE__ */ Object.assign(Si, {
7698
7692
  /**
@@ -7741,14 +7735,14 @@ const _i = /* @__PURE__ */ Te(({
7741
7735
  knobWidth: g = 30,
7742
7736
  onlyDispatchesOnDragEnd: m = !1,
7743
7737
  orientation: b = "vertical",
7744
- position: T = 0,
7738
+ position: O = 0,
7745
7739
  trackPadding: _ = 0,
7746
7740
  labelProvider: I,
7747
7741
  onDragEnd: $,
7748
7742
  onDragStart: A,
7749
7743
  onChange: S,
7750
7744
  ...C
7751
- }, q) => {
7745
+ }, K) => {
7752
7746
  const W = we(null), Y = we(null), J = he((te, ne, ae) => {
7753
7747
  const F = be.from(W.current) ?? be.zero, R = a ? 1 - te : te;
7754
7748
  switch (b) {
@@ -7781,14 +7775,14 @@ const _i = /* @__PURE__ */ Te(({
7781
7775
  console.error(`[etudes::Slider] Invalid orientation: ${b}`);
7782
7776
  }
7783
7777
  }, [W.current, a, c, b]), { isDragging: P, isReleasing: E, value: M, setValue: B } = zt(Y, {
7784
- initialValue: T,
7778
+ initialValue: O,
7785
7779
  transform: J,
7786
7780
  onDragStart: A,
7787
7781
  onDragEnd: $
7788
- }), K = a ? 1 - M : M, X = Sl({ orientation: b, isAtEnd: a ? M === 0 : M === 1, isAtStart: a ? M === 1 : M === 0, isDragging: P, isReleasing: E }), D = _l({ orientation: b, isClipped: i, naturalPosition: K, knobPadding: d, knobHeight: u, knobWidth: g, isTrackInteractive: c });
7782
+ }), G = a ? 1 - M : M, X = Sl({ orientation: b, isAtEnd: a ? M === 0 : M === 1, isAtStart: a ? M === 1 : M === 0, isDragging: P, isReleasing: E }), D = _l({ orientation: b, isClipped: i, naturalPosition: G, knobPadding: d, knobHeight: u, knobWidth: g, isTrackInteractive: c });
7789
7783
  Ee(() => {
7790
- P || T === M || B(T);
7791
- }, [T]), Ee(() => {
7784
+ P || O === M || B(O);
7785
+ }, [O]), Ee(() => {
7792
7786
  P && m || S?.(M, P);
7793
7787
  }, [M]), Ee(() => {
7794
7788
  P || !m || S?.(M, !0);
@@ -7803,7 +7797,7 @@ const _i = /* @__PURE__ */ Te(({
7803
7797
  "div",
7804
7798
  {
7805
7799
  ...C,
7806
- ref: q,
7800
+ ref: K,
7807
7801
  "aria-orientation": b,
7808
7802
  "aria-valuenow": M,
7809
7803
  className: se(r, X.root),
@@ -7815,11 +7809,11 @@ const _i = /* @__PURE__ */ Te(({
7815
7809
  className: se(a ? "end" : "start", X.track),
7816
7810
  element: z.track ?? /* @__PURE__ */ w.jsx(Mt, {}),
7817
7811
  style: ce(D.track, b === "vertical" ? {
7818
- height: `calc(${K * 100}% - ${_ <= 0 ? 0 : u * 0.5}px - ${_}px)`,
7812
+ height: `calc(${G * 100}% - ${_ <= 0 ? 0 : u * 0.5}px - ${_}px)`,
7819
7813
  top: "0"
7820
7814
  } : {
7821
7815
  left: "0",
7822
- width: `calc(${K * 100}% - ${_ <= 0 ? 0 : g * 0.5}px - ${_}px)`
7816
+ width: `calc(${G * 100}% - ${_ <= 0 ? 0 : g * 0.5}px - ${_}px)`
7823
7817
  }),
7824
7818
  onClick: x,
7825
7819
  children: /* @__PURE__ */ w.jsx("div", { style: D.trackHitBox })
@@ -7832,10 +7826,10 @@ const _i = /* @__PURE__ */ Te(({
7832
7826
  element: z.track ?? /* @__PURE__ */ w.jsx(Mt, {}),
7833
7827
  style: ce(D.track, b === "vertical" ? {
7834
7828
  bottom: "0",
7835
- height: `calc(${(1 - K) * 100}% - ${_ <= 0 ? 0 : u * 0.5}px - ${_}px)`
7829
+ height: `calc(${(1 - G) * 100}% - ${_ <= 0 ? 0 : u * 0.5}px - ${_}px)`
7836
7830
  } : {
7837
7831
  right: "0",
7838
- width: `calc(${(1 - K) * 100}% - ${_ <= 0 ? 0 : g * 0.5}px - ${_}px)`
7832
+ width: `calc(${(1 - G) * 100}% - ${_ <= 0 ? 0 : g * 0.5}px - ${_}px)`
7839
7833
  }),
7840
7834
  onClick: x,
7841
7835
  children: /* @__PURE__ */ w.jsx("div", { style: D.trackHitBox })
@@ -7987,31 +7981,31 @@ const Ti = /* @__PURE__ */ Te(({
7987
7981
  knobPadding: g = 0,
7988
7982
  knobWidth: m = 30,
7989
7983
  labelProvider: b,
7990
- onlyDispatchesOnDragEnd: T = !1,
7984
+ onlyDispatchesOnDragEnd: O = !1,
7991
7985
  orientation: _ = "vertical",
7992
7986
  steps: I = Oi(10),
7993
7987
  trackPadding: $ = 0,
7994
7988
  onDragEnd: A,
7995
7989
  onDragStart: S,
7996
7990
  onIndexChange: C,
7997
- onPositionChange: q,
7991
+ onPositionChange: K,
7998
7992
  ...W
7999
7993
  }, Y) => {
8000
7994
  const J = we(null), x = we(null), P = nt(J), [E, M] = Oe(i), B = he((k, U, Z) => {
8001
- const G = c ? tt(k) : k;
7995
+ const q = c ? tt(k) : k;
8002
7996
  switch (_) {
8003
7997
  case "horizontal": {
8004
- const fe = a ? P.width - m : P.width, ge = G * fe + U, ue = Qt(ge / fe);
7998
+ const fe = a ? P.width - m : P.width, ge = q * fe + U, ue = Qt(ge / fe);
8005
7999
  return c ? tt(ue) : ue;
8006
8000
  }
8007
8001
  case "vertical": {
8008
- const fe = a ? P.height - d : P.height, ge = G * fe + Z, ue = Qt(ge / fe);
8002
+ const fe = a ? P.height - d : P.height, ge = q * fe + Z, ue = Qt(ge / fe);
8009
8003
  return c ? tt(ue) : ue;
8010
8004
  }
8011
8005
  default:
8012
8006
  return console.error(`[etudes::StepSlider] Invalid orientation: ${_}`), NaN;
8013
8007
  }
8014
- }, [P.width, P.height, a, c, m, d, _]), { isDragging: K, isReleasing: oe, value: Q, setValue: X } = zt(x, {
8008
+ }, [P.width, P.height, a, c, m, d, _]), { isDragging: G, isReleasing: oe, value: Q, setValue: X } = zt(x, {
8015
8009
  initialValue: dt(i, I),
8016
8010
  transform: B,
8017
8011
  onDragStart: S,
@@ -8021,18 +8015,18 @@ const Ti = /* @__PURE__ */ Te(({
8021
8015
  const U = be.fromViewport();
8022
8016
  switch (_) {
8023
8017
  case "horizontal": {
8024
- const Z = (k.clientX + U.left - P.left) / P.width, G = c ? tt(Z) : Z, fe = It(G, I);
8018
+ const Z = (k.clientX + U.left - P.left) / P.width, q = c ? tt(Z) : Z, fe = It(q, I);
8025
8019
  if (fe === E) {
8026
- const ge = G > Q ? fe + 1 : fe - 1;
8020
+ const ge = q > Q ? fe + 1 : fe - 1;
8027
8021
  M(Qt(ge, I.length - 1));
8028
8022
  } else
8029
8023
  M(fe);
8030
8024
  break;
8031
8025
  }
8032
8026
  case "vertical": {
8033
- const Z = (k.clientY + U.top - P.top) / P.height, G = c ? tt(Z) : Z, fe = It(G, I);
8027
+ const Z = (k.clientY + U.top - P.top) / P.height, q = c ? tt(Z) : Z, fe = It(q, I);
8034
8028
  if (fe === E) {
8035
- const ge = G > Q ? fe + 1 : fe - 1, ue = dt(ge, I);
8029
+ const ge = q > Q ? fe + 1 : fe - 1, ue = dt(ge, I);
8036
8030
  X(ue), M(Qt(ge, I.length - 1));
8037
8031
  } else {
8038
8032
  const ge = dt(fe, I);
@@ -8043,27 +8037,27 @@ const Ti = /* @__PURE__ */ Te(({
8043
8037
  default:
8044
8038
  console.error(`[etudes::StepSlider] Invalid orientation: ${_}`);
8045
8039
  }
8046
- }, [P.width, P.left, P.top, P.height, E, Q, c, u, _, We(I)]), z = c ? tt(Q) : Q, ae = Tl({ orientation: _, isAtEnd: c ? Q === 0 : Q === 1, isAtStart: c ? Q === 1 : Q === 0, isDragging: K, isReleasing: oe }), F = Ol({ orientation: _, naturalPosition: z, isClipped: a, knobPadding: g, knobHeight: d, knobWidth: m, isTrackInteractive: u }), R = ze(e, {
8040
+ }, [P.width, P.left, P.top, P.height, E, Q, c, u, _, We(I)]), z = c ? tt(Q) : Q, ae = Tl({ orientation: _, isAtEnd: c ? Q === 0 : Q === 1, isAtStart: c ? Q === 1 : Q === 0, isDragging: G, isReleasing: oe }), F = Ol({ orientation: _, naturalPosition: z, isClipped: a, knobPadding: g, knobHeight: d, knobWidth: m, isTrackInteractive: u }), R = ze(e, {
8047
8041
  knob: Pn,
8048
8042
  knobContainer: In,
8049
8043
  label: kn,
8050
8044
  track: Rt
8051
8045
  });
8052
8046
  return Ee(() => {
8053
- K || (X(dt(i, I)), M(i));
8054
- }, [i, K, We(I)]), Ee(() => {
8055
- if (K) {
8056
- if (T) return;
8047
+ G || (X(dt(i, I)), M(i));
8048
+ }, [i, G, We(I)]), Ee(() => {
8049
+ if (G) {
8050
+ if (O) return;
8057
8051
  M(It(Q, I));
8058
8052
  } else {
8059
8053
  const k = It(Q, I), U = dt(k, I);
8060
8054
  X(U), M(k);
8061
8055
  }
8062
- }, [Q, K, T, We(I)]), Ee(() => {
8063
- q?.(Q, K);
8064
- }, [Q, K]), Ee(() => {
8065
- C?.(E, K);
8066
- }, [E, K]), /* @__PURE__ */ w.jsx(
8056
+ }, [Q, G, O, We(I)]), Ee(() => {
8057
+ K?.(Q, G);
8058
+ }, [Q, G]), Ee(() => {
8059
+ C?.(E, G);
8060
+ }, [E, G]), /* @__PURE__ */ w.jsx(
8067
8061
  "div",
8068
8062
  {
8069
8063
  ...W,
@@ -8285,21 +8279,21 @@ const Pl = /* @__PURE__ */ Te(({
8285
8279
  onSwipeUp: d,
8286
8280
  ...g
8287
8281
  }, m) => {
8288
- const [b, T] = Oe(void 0), [_, I] = Oe(void 0), [$, A] = Oe(NaN), S = (Y, J) => {
8282
+ const [b, O] = Oe(void 0), [_, I] = Oe(void 0), [$, A] = Oe(NaN), S = (Y, J) => {
8289
8283
  if (isNaN(Y) || isNaN(J)) return W();
8290
- T(_e.make(Y, J));
8284
+ O(_e.make(Y, J));
8291
8285
  }, C = (Y, J) => {
8292
8286
  const x = b;
8293
8287
  if (x === void 0) return;
8294
8288
  const P = x.x !== Y || x.y !== J, E = !isNaN($);
8295
8289
  P && (E || A(Date.now()), I(_e.make(Y, J)));
8296
- }, q = () => {
8290
+ }, K = () => {
8297
8291
  const Y = $, J = b, x = _;
8298
8292
  if (isNaN(Y) || J === void 0 || x === void 0) return;
8299
- const P = Date.now() - Y, E = x.x - J.x, M = x.y - J.y, B = E / P, K = M / P;
8300
- r && (Math.abs(B) >= i && Math.abs(B) > Math.abs(K) ? B > 0 ? u?.() : c?.() : Math.abs(K) >= i && Math.abs(K) > Math.abs(B) && (K > 0 ? a?.() : d?.())), W();
8293
+ const P = Date.now() - Y, E = x.x - J.x, M = x.y - J.y, B = E / P, G = M / P;
8294
+ r && (Math.abs(B) >= i && Math.abs(B) > Math.abs(G) ? B > 0 ? u?.() : c?.() : Math.abs(G) >= i && Math.abs(G) > Math.abs(B) && (G > 0 ? a?.() : d?.())), W();
8301
8295
  }, W = () => {
8302
- T(void 0), I(void 0), A(NaN);
8296
+ O(void 0), I(void 0), A(NaN);
8303
8297
  };
8304
8298
  return /* @__PURE__ */ w.jsx(
8305
8299
  "div",
@@ -8309,8 +8303,8 @@ const Pl = /* @__PURE__ */ Te(({
8309
8303
  onMouseDown: (Y) => S(Y.clientX, Y.clientY),
8310
8304
  onMouseLeave: () => W(),
8311
8305
  onMouseMove: (Y) => C(Y.clientX, Y.clientY),
8312
- onMouseUp: () => q(),
8313
- onTouchEnd: () => q(),
8306
+ onMouseUp: () => K(),
8307
+ onTouchEnd: () => K(),
8314
8308
  onTouchMove: (Y) => C(Y.targetTouches[0].clientX, Y.targetTouches[0].clientY),
8315
8309
  onTouchStart: (Y) => S(Y.targetTouches[0].clientX, Y.targetTouches[0].clientY),
8316
8310
  children: e
@@ -8340,10 +8334,10 @@ const Pi = /* @__PURE__ */ Te(({
8340
8334
  onChange: d,
8341
8335
  ...g
8342
8336
  }, m) => {
8343
- const b = we(null), T = ci(b), _ = ze(r, {
8337
+ const b = we(null), O = ci(b), _ = ze(r, {
8344
8338
  knob: $n,
8345
8339
  track: Cn
8346
- }), I = kl({ isOn: a }), $ = Cl({ isOn: a, isInverted: i, orientation: c, knobSize: T });
8340
+ }), I = kl({ isOn: a }), $ = Cl({ isOn: a, isInverted: i, orientation: c, knobSize: O });
8347
8341
  return /* @__PURE__ */ w.jsxs("label", { ...g, ref: m, className: se(e, I.root), style: ce(u, $.root), children: [
8348
8342
  /* @__PURE__ */ w.jsx("input", { checked: a, style: $.input, type: "checkbox", onChange: (A) => d?.(A.target.checked) }),
8349
8343
  /* @__PURE__ */ w.jsx(me, { className: I.track, element: _.track ?? /* @__PURE__ */ w.jsx(Cn, {}), style: $.track, children: /* @__PURE__ */ w.jsx("div", { style: { position: "relative", width: "100%", height: "100%" }, children: /* @__PURE__ */ w.jsx(me, { ref: b, className: I.knob, element: _.knob ?? /* @__PURE__ */ w.jsx($n, {}), style: $.knob }) }) })
@@ -8436,7 +8430,10 @@ function $l({
8436
8430
  return /* @__PURE__ */ w.jsx(w.Fragment, { children: jn.map(e, (i) => An(i) ? gr(i, { ...r }) : i) });
8437
8431
  }
8438
8432
  process.env.NODE_ENV === "development" && ($l.displayName = "ExtractChildren");
8439
- function fu({
8433
+ function fu() {
8434
+ return typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
8435
+ }
8436
+ function du({
8440
8437
  children: e,
8441
8438
  fallback: r = void 0
8442
8439
  }) {
@@ -8468,7 +8465,7 @@ export {
8468
8465
  qo as Image,
8469
8466
  on as ImageSource,
8470
8467
  pl as MasonryGrid,
8471
- fu as NoSSR,
8468
+ du as NoSSR,
8472
8469
  ca as OptionButton,
8473
8470
  ti as Panorama,
8474
8471
  Fl as PanoramaSlider,
@@ -8502,28 +8499,29 @@ export {
8502
8499
  Aa as createLocalCache,
8503
8500
  Va as createSessionCache,
8504
8501
  Ya as getStyle,
8502
+ fu as getSystemColorScheme,
8505
8503
  $a as isTouchDevice,
8506
8504
  To as setStyle,
8507
8505
  ce as styles,
8508
- Dl as useAgent,
8509
- Bl as useClassName,
8510
- Hl as useClickOutside,
8511
- Yl as useCopyBlobToClipboard,
8512
- Ul as useDPR,
8513
- Xl as useDownloadBlob,
8506
+ Dl as useClassName,
8507
+ Bl as useClickOutside,
8508
+ Hl as useCopyBlobToClipboard,
8509
+ Xl as useDPR,
8510
+ Yl as useDownloadBlob,
8514
8511
  ka as useDrag,
8515
- Kl as useDropzone,
8512
+ Ul as useDropzone,
8516
8513
  Qs as useImageLoader,
8517
8514
  Go as useImageSize,
8518
8515
  ga as useInertiaDrag,
8519
8516
  zt as useInertiaDragValue,
8520
8517
  Js as useIntersectionObserver,
8521
8518
  Ca as useInterval,
8522
- Gl as useIsMounted,
8519
+ Kl as useIsMounted,
8523
8520
  ja as useIsTouchDevice,
8524
- ql as useKeyboardShortcut,
8521
+ Gl as useKeyboardShortcut,
8525
8522
  Se as useLatest,
8526
- Wl as useLocalCache,
8523
+ ql as useLocalCache,
8524
+ Wl as useOS,
8527
8525
  Jl as usePosition,
8528
8526
  Fa as usePrevious,
8529
8527
  nt as useRect,