tiptop-editor 1.6.3 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,7 +64,7 @@ function af() {
64
64
  return "Fragment";
65
65
  case w:
66
66
  return "Profiler";
67
- case v:
67
+ case y:
68
68
  return "StrictMode";
69
69
  case A:
70
70
  return "Suspense";
@@ -211,7 +211,7 @@ function af() {
211
211
  var W = Object.keys(x).filter(function(ce) {
212
212
  return ce !== "key";
213
213
  });
214
- R = 0 < W.length ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}", y[U + R] || (W = 0 < W.length ? "{" + W.join(": ..., ") + ": ...}" : "{}", console.error(
214
+ R = 0 < W.length ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}", v[U + R] || (W = 0 < W.length ? "{" + W.join(": ..., ") + ": ...}" : "{}", console.error(
215
215
  `A props object containing a "key" prop is being spread into JSX:
216
216
  let props = %s;
217
217
  <%s {...props} />
@@ -222,7 +222,7 @@ React keys must be passed directly to JSX without using spread:
222
222
  U,
223
223
  W,
224
224
  U
225
- ), y[U + R] = !0);
225
+ ), v[U + R] = !0);
226
226
  }
227
227
  if (U = null, N !== void 0 && (r(N), U = "" + N), s(x) && (r(x.key), U = "" + x.key), "key" in x) {
228
228
  N = {};
@@ -247,7 +247,7 @@ React keys must be passed directly to JSX without using spread:
247
247
  function p($) {
248
248
  return typeof $ == "object" && $ !== null && $.$$typeof === g;
249
249
  }
250
- var f = Q, g = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), v = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), P = /* @__PURE__ */ Symbol.for("react.consumer"), k = /* @__PURE__ */ Symbol.for("react.context"), C = /* @__PURE__ */ Symbol.for("react.forward_ref"), A = /* @__PURE__ */ Symbol.for("react.suspense"), D = /* @__PURE__ */ Symbol.for("react.suspense_list"), T = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.activity"), F = /* @__PURE__ */ Symbol.for("react.client.reference"), L = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, E = Array.isArray, M = console.createTask ? console.createTask : function() {
250
+ var f = Q, g = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), P = /* @__PURE__ */ Symbol.for("react.consumer"), k = /* @__PURE__ */ Symbol.for("react.context"), C = /* @__PURE__ */ Symbol.for("react.forward_ref"), A = /* @__PURE__ */ Symbol.for("react.suspense"), D = /* @__PURE__ */ Symbol.for("react.suspense_list"), T = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.activity"), F = /* @__PURE__ */ Symbol.for("react.client.reference"), L = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, E = Array.isArray, M = console.createTask ? console.createTask : function() {
251
251
  return null;
252
252
  };
253
253
  f = {
@@ -258,7 +258,7 @@ React keys must be passed directly to JSX without using spread:
258
258
  var z, _ = {}, I = f.react_stack_bottom_frame.bind(
259
259
  f,
260
260
  o
261
- )(), j = M(n(o)), y = {};
261
+ )(), j = M(n(o)), v = {};
262
262
  or.Fragment = m, or.jsx = function($, x, N) {
263
263
  var R = 1e4 > L.recentlyCreatedOwnerStacks++;
264
264
  return d(
@@ -1580,14 +1580,14 @@ function Ir(e, t, r, n) {
1580
1580
  function ea(e, t, r = {}) {
1581
1581
  let { block: n = "nearest", inline: a = "nearest" } = r;
1582
1582
  if (e === t) return;
1583
- let o = e.scrollTop, s = e.scrollLeft, l = t.getBoundingClientRect(), i = e.getBoundingClientRect(), c = window.getComputedStyle(t), d = window.getComputedStyle(e), u = document.scrollingElement || document.documentElement, p = e === u ? 0 : i.top, f = e === u ? e.clientHeight : i.bottom, g = e === u ? 0 : i.left, b = e === u ? e.clientWidth : i.right, m = parseInt(c.scrollMarginTop, 10) || 0, v = parseInt(c.scrollMarginBottom, 10) || 0, w = parseInt(c.scrollMarginLeft, 10) || 0, P = parseInt(c.scrollMarginRight, 10) || 0, k = parseInt(d.scrollPaddingTop, 10) || 0, C = parseInt(d.scrollPaddingBottom, 10) || 0, A = parseInt(d.scrollPaddingLeft, 10) || 0, D = parseInt(d.scrollPaddingRight, 10) || 0, T = parseInt(d.borderTopWidth, 10) || 0, O = parseInt(d.borderBottomWidth, 10) || 0, B = parseInt(d.borderLeftWidth, 10) || 0, F = parseInt(d.borderRightWidth, 10) || 0, L = l.top - m, K = l.bottom + v, E = l.left - w, M = l.right + P, z = e === u ? 0 : B + F, _ = e === u ? 0 : T + O, I = e.offsetWidth - e.clientWidth - z, j = e.offsetHeight - e.clientHeight - _, y = p + T + k, $ = f - O - C - j, x = g + B + A, N = b - F - D;
1583
+ let o = e.scrollTop, s = e.scrollLeft, l = t.getBoundingClientRect(), i = e.getBoundingClientRect(), c = window.getComputedStyle(t), d = window.getComputedStyle(e), u = document.scrollingElement || document.documentElement, p = e === u ? 0 : i.top, f = e === u ? e.clientHeight : i.bottom, g = e === u ? 0 : i.left, b = e === u ? e.clientWidth : i.right, m = parseInt(c.scrollMarginTop, 10) || 0, y = parseInt(c.scrollMarginBottom, 10) || 0, w = parseInt(c.scrollMarginLeft, 10) || 0, P = parseInt(c.scrollMarginRight, 10) || 0, k = parseInt(d.scrollPaddingTop, 10) || 0, C = parseInt(d.scrollPaddingBottom, 10) || 0, A = parseInt(d.scrollPaddingLeft, 10) || 0, D = parseInt(d.scrollPaddingRight, 10) || 0, T = parseInt(d.borderTopWidth, 10) || 0, O = parseInt(d.borderBottomWidth, 10) || 0, B = parseInt(d.borderLeftWidth, 10) || 0, F = parseInt(d.borderRightWidth, 10) || 0, L = l.top - m, K = l.bottom + y, E = l.left - w, M = l.right + P, z = e === u ? 0 : B + F, _ = e === u ? 0 : T + O, I = e.offsetWidth - e.clientWidth - z, j = e.offsetHeight - e.clientHeight - _, v = p + T + k, $ = f - O - C - j, x = g + B + A, N = b - F - D;
1584
1584
  d.direction === "rtl" && !wr() ? x += I : N -= I;
1585
- let R = L < y || K > $, V = E < x || M > N;
1586
- if (R && n === "start") o += L - y;
1587
- else if (R && n === "center") o += (L + K) / 2 - (y + $) / 2;
1585
+ let R = L < v || K > $, V = E < x || M > N;
1586
+ if (R && n === "start") o += L - v;
1587
+ else if (R && n === "center") o += (L + K) / 2 - (v + $) / 2;
1588
1588
  else if (R && n === "end") o += K - $;
1589
1589
  else if (R && n === "nearest") {
1590
- let Z = L - y, U = K - $;
1590
+ let Z = L - v, U = K - $;
1591
1591
  o += Math.abs(Z) <= Math.abs(U) ? Z : U;
1592
1592
  }
1593
1593
  if (V && a === "start") s += E - x;
@@ -1823,29 +1823,29 @@ function Mo(e) {
1823
1823
  }, Nr[e];
1824
1824
  }
1825
1825
  function On(e, t, r, n, a, o, s, l, i, c, d) {
1826
- let { placement: u, crossPlacement: p, axis: f, crossAxis: g, size: b, crossSize: m } = n, v = {};
1826
+ let { placement: u, crossPlacement: p, axis: f, crossAxis: g, size: b, crossSize: m } = n, y = {};
1827
1827
  var w;
1828
- v[g] = (w = e[g]) !== null && w !== void 0 ? w : 0;
1828
+ y[g] = (w = e[g]) !== null && w !== void 0 ? w : 0;
1829
1829
  var P, k, C, A;
1830
- p === "center" ? v[g] += (((P = e[m]) !== null && P !== void 0 ? P : 0) - ((k = r[m]) !== null && k !== void 0 ? k : 0)) / 2 : p !== g && (v[g] += ((C = e[m]) !== null && C !== void 0 ? C : 0) - ((A = r[m]) !== null && A !== void 0 ? A : 0)), v[g] += o;
1830
+ p === "center" ? y[g] += (((P = e[m]) !== null && P !== void 0 ? P : 0) - ((k = r[m]) !== null && k !== void 0 ? k : 0)) / 2 : p !== g && (y[g] += ((C = e[m]) !== null && C !== void 0 ? C : 0) - ((A = r[m]) !== null && A !== void 0 ? A : 0)), y[g] += o;
1831
1831
  const D = e[g] - r[m] + i + c, T = e[g] + e[m] - i - c;
1832
- if (v[g] = ra(v[g], D, T), u === f) {
1832
+ if (y[g] = ra(y[g], D, T), u === f) {
1833
1833
  let O = l ? d[b] : d[ul[b]];
1834
- v[rn[f]] = Math.floor(O - e[f] + a);
1835
- } else v[f] = Math.floor(e[f] + e[b] + a);
1836
- return v;
1834
+ y[rn[f]] = Math.floor(O - e[f] + a);
1835
+ } else y[f] = Math.floor(e[f] + e[b] + a);
1836
+ return y;
1837
1837
  }
1838
1838
  function jp(e, t, r, n, a, o, s, l, i, c, d) {
1839
1839
  var u, p;
1840
1840
  let f = (e.top != null ? e.top : i[ul.height] - ((u = e.bottom) !== null && u !== void 0 ? u : 0) - s) - ((p = i.scroll.top) !== null && p !== void 0 ? p : 0), g = c ? r.top : 0;
1841
- var b, m, v;
1841
+ var b, m, y;
1842
1842
  let w = {
1843
1843
  // This should be boundary top in container coord system vs viewport top in container coord system
1844
1844
  // For the viewport top, there are several cases
1845
1845
  // 1. pinchzoom case where we want the viewports offset top as top here
1846
1846
  // 2. case where container is offset from the boundary and is contained by the boundary. In this case the top we want here is NOT 0, we want to take boundary's top even though is is a negative number OR the visual viewport, whichever is more restrictive
1847
1847
  top: Math.max(t.top + g, ((b = d?.offsetTop) !== null && b !== void 0 ? b : t.top) + g),
1848
- bottom: Math.min(t.top + t.height + g, ((m = d?.offsetTop) !== null && m !== void 0 ? m : 0) + ((v = d?.height) !== null && v !== void 0 ? v : 0))
1848
+ bottom: Math.min(t.top + t.height + g, ((m = d?.offsetTop) !== null && m !== void 0 ? m : 0) + ((y = d?.height) !== null && y !== void 0 ? y : 0))
1849
1849
  };
1850
1850
  var P, k, C, A;
1851
1851
  return l !== "top" ? (
@@ -1860,7 +1860,7 @@ function Ao(e, t, r, n, a, o, s, l) {
1860
1860
  var f, g;
1861
1861
  return Math.max(0, e[d] + e[c] + (l ? t[c] : 0) - r[c] - r[d] + ((f = s.scroll[c]) !== null && f !== void 0 ? f : 0) - ((g = n[c]) !== null && g !== void 0 ? g : 0) - n[rn[c]] - a);
1862
1862
  }
1863
- function Bp(e, t, r, n, a, o, s, l, i, c, d, u, p, f, g, b, m, v) {
1863
+ function Bp(e, t, r, n, a, o, s, l, i, c, d, u, p, f, g, b, m, y) {
1864
1864
  let w = Mo(e), { size: P, crossAxis: k, crossSize: C, placement: A, crossPlacement: D } = w, T = On(t, l, r, w, d, u, c, p, g, b, i), O = d, B = Ao(l, c, t, a, o + d, w, i, m);
1865
1865
  if (s && r[P] > B) {
1866
1866
  let te = Mo(`${rn[A]} ${D}`), ce = On(t, l, r, te, d, u, c, p, g, b, i);
@@ -1870,12 +1870,12 @@ function Bp(e, t, r, n, a, o, s, l, i, c, d, u, p, f, g, b, m, v) {
1870
1870
  w.axis === "top" ? w.placement === "top" ? F = "top" : w.placement === "bottom" && (F = "bottom") : w.crossAxis === "top" && (w.crossPlacement === "top" ? F = "bottom" : w.crossPlacement === "bottom" && (F = "top"));
1871
1871
  let L = To(k, T[k], r[C], l, i, o, c);
1872
1872
  T[k] += L;
1873
- let K = jp(T, l, c, p, a, o, r.height, F, i, m, v);
1873
+ let K = jp(T, l, c, p, a, o, r.height, F, i, m, y);
1874
1874
  f && f < K && (K = f), r.height = Math.min(r.height, K), T = On(t, l, r, w, O, u, c, p, g, b, i), L = To(k, T[k], r[C], l, i, o, c), T[k] += L;
1875
1875
  let E = {}, M = t[k] - T[k] - a[We[k]], z = M + 0.5 * t[C];
1876
1876
  const _ = g / 2 + b;
1877
- var I, j, y, $;
1878
- const x = We[k] === "left" ? ((I = a.left) !== null && I !== void 0 ? I : 0) + ((j = a.right) !== null && j !== void 0 ? j : 0) : ((y = a.top) !== null && y !== void 0 ? y : 0) + (($ = a.bottom) !== null && $ !== void 0 ? $ : 0), N = r[C] - x - g / 2 - b, R = t[k] + g / 2 - (T[k] + a[We[k]]), V = t[k] + t[C] - g / 2 - (T[k] + a[We[k]]), Z = ra(z, R, V);
1877
+ var I, j, v, $;
1878
+ const x = We[k] === "left" ? ((I = a.left) !== null && I !== void 0 ? I : 0) + ((j = a.right) !== null && j !== void 0 ? j : 0) : ((v = a.top) !== null && v !== void 0 ? v : 0) + (($ = a.bottom) !== null && $ !== void 0 ? $ : 0), N = r[C] - x - g / 2 - b, R = t[k] + g / 2 - (T[k] + a[We[k]]), V = t[k] + t[C] - g / 2 - (T[k] + a[We[k]]), Z = ra(z, R, V);
1879
1879
  E[k] = ra(Z, _, N), { placement: A, crossPlacement: D } = w, g ? M = E[k] : D === "right" ? M += t[C] : D === "center" && (M += t[C] / 2);
1880
1880
  let U = A === "left" || A === "top" ? r[P] : 0, W = {
1881
1881
  x: A === "top" || A === "bottom" ? M : U,
@@ -1893,7 +1893,7 @@ function Bp(e, t, r, n, a, o, s, l, i, c, d, u, p, f, g, b, m, v) {
1893
1893
  function Fp(e) {
1894
1894
  let { placement: t, targetNode: r, overlayNode: n, scrollNode: a, padding: o, shouldFlip: s, boundaryElement: l, offset: i, crossOffset: c, maxHeight: d, arrowSize: u = 0, arrowBoundaryOffset: p = 0 } = e, f = Rp(), g = n instanceof HTMLElement ? Kp(n) : document.documentElement, b = g === document.documentElement;
1895
1895
  const m = window.getComputedStyle(g).position;
1896
- let v = !!m && m !== "static", w = b ? mr(r, !1) : Io(r, g, !1);
1896
+ let y = !!m && m !== "static", w = b ? mr(r, !1) : Io(r, g, !1);
1897
1897
  if (!b) {
1898
1898
  let { marginTop: E, marginLeft: M } = window.getComputedStyle(r);
1899
1899
  w.top += parseInt(E, 10) || 0, w.left += parseInt(M, 10) || 0;
@@ -1919,7 +1919,7 @@ function Fp(e) {
1919
1919
  height: 0
1920
1920
  } : L = Io(l, g, !1);
1921
1921
  let K = se(l, g);
1922
- return Bp(t, w, P, O, k, o, s, B, F, L, i, c, v, d, u, p, K, f);
1922
+ return Bp(t, w, P, O, k, o, s, B, F, L, i, c, y, d, u, p, K, f);
1923
1923
  }
1924
1924
  function Cn(e, t) {
1925
1925
  let { top: r, left: n, width: a, height: o } = e.getBoundingClientRect();
@@ -1981,7 +1981,7 @@ function Wp(e) {
1981
1981
  }
1982
1982
  let we = typeof document < "u" ? window.visualViewport : null;
1983
1983
  function pl(e) {
1984
- let { direction: t } = vn(), { arrowSize: r, targetRef: n, overlayRef: a, arrowRef: o, scrollRef: s = a, placement: l = "bottom", containerPadding: i = 12, shouldFlip: c = !0, boundaryElement: d = typeof document < "u" ? document.body : null, offset: u = 0, crossOffset: p = 0, shouldUpdatePosition: f = !0, isOpen: g = !0, onClose: b, maxHeight: m, arrowBoundaryOffset: v = 0 } = e, [w, P] = ne(null), k = [
1984
+ let { direction: t } = vn(), { arrowSize: r, targetRef: n, overlayRef: a, arrowRef: o, scrollRef: s = a, placement: l = "bottom", containerPadding: i = 12, shouldFlip: c = !0, boundaryElement: d = typeof document < "u" ? document.body : null, offset: u = 0, crossOffset: p = 0, shouldUpdatePosition: f = !0, isOpen: g = !0, onClose: b, maxHeight: m, arrowBoundaryOffset: y = 0 } = e, [w, P] = ne(null), k = [
1985
1985
  f,
1986
1986
  l,
1987
1987
  a.current,
@@ -1996,7 +1996,7 @@ function pl(e) {
1996
1996
  g,
1997
1997
  t,
1998
1998
  m,
1999
- v,
1999
+ y,
2000
2000
  r
2001
2001
  ], C = H(we?.scale);
2002
2002
  ee(() => {
@@ -2039,13 +2039,13 @@ function pl(e) {
2039
2039
  crossOffset: p,
2040
2040
  maxHeight: m,
2041
2041
  arrowSize: r ?? (o?.current ? Cn(o.current, !0).width : 0),
2042
- arrowBoundaryOffset: v
2042
+ arrowBoundaryOffset: y
2043
2043
  });
2044
2044
  if (!j.position) return;
2045
2045
  z.style.top = "", z.style.bottom = "", z.style.left = "", z.style.right = "", Object.keys(j.position).forEach(($) => z.style[$] = j.position[$] + "px"), z.style.maxHeight = j.maxHeight != null ? j.maxHeight + "px" : "";
2046
- let y = be();
2047
- if (L && y && s.current) {
2048
- let $ = y.getBoundingClientRect(), x = s.current.getBoundingClientRect(), N = $[L.type] - x[L.type];
2046
+ let v = be();
2047
+ if (L && v && s.current) {
2048
+ let $ = v.getBoundingClientRect(), x = s.current.getBoundingClientRect(), N = $[L.type] - x[L.type];
2049
2049
  s.current.scrollTop += N - L.offset;
2050
2050
  }
2051
2051
  P(j);
@@ -2294,12 +2294,12 @@ function $r(e) {
2294
2294
  isOverTarget: !1,
2295
2295
  pointerType: null,
2296
2296
  disposables: []
2297
- }), { addGlobalListener: v, removeAllGlobalListeners: w, removeGlobalListener: P } = kn(), k = G((y, $) => {
2297
+ }), { addGlobalListener: y, removeAllGlobalListeners: w, removeGlobalListener: P } = kn(), k = G((v, $) => {
2298
2298
  let x = m.current;
2299
2299
  if (l || x.didFirePressStart) return !1;
2300
2300
  let N = !0;
2301
2301
  if (x.isTriggeringEvent = !0, n) {
2302
- let R = new zr("pressstart", $, y);
2302
+ let R = new zr("pressstart", $, v);
2303
2303
  n(R), N = R.shouldStopPropagation;
2304
2304
  }
2305
2305
  return r && r(!0), x.isTriggeringEvent = !1, x.didFirePressStart = !0, b(!0), N;
@@ -2307,17 +2307,17 @@ function $r(e) {
2307
2307
  l,
2308
2308
  n,
2309
2309
  r
2310
- ]), C = G((y, $, x = !0) => {
2310
+ ]), C = G((v, $, x = !0) => {
2311
2311
  let N = m.current;
2312
2312
  if (!N.didFirePressStart) return !1;
2313
2313
  N.didFirePressStart = !1, N.isTriggeringEvent = !0;
2314
2314
  let R = !0;
2315
2315
  if (a) {
2316
- let V = new zr("pressend", $, y);
2316
+ let V = new zr("pressend", $, v);
2317
2317
  a(V), R = V.shouldStopPropagation;
2318
2318
  }
2319
2319
  if (r && r(!1), b(!1), t && x && !l) {
2320
- let V = new zr("press", $, y);
2320
+ let V = new zr("press", $, v);
2321
2321
  t(V), R && (R = V.shouldStopPropagation);
2322
2322
  }
2323
2323
  return N.isTriggeringEvent = !1, R;
@@ -2326,22 +2326,22 @@ function $r(e) {
2326
2326
  a,
2327
2327
  r,
2328
2328
  t
2329
- ]), A = mt(C), D = G((y, $) => {
2329
+ ]), A = mt(C), D = G((v, $) => {
2330
2330
  let x = m.current;
2331
2331
  if (l) return !1;
2332
2332
  if (o) {
2333
2333
  x.isTriggeringEvent = !0;
2334
- let N = new zr("pressup", $, y);
2334
+ let N = new zr("pressup", $, v);
2335
2335
  return o(N), x.isTriggeringEvent = !1, N.shouldStopPropagation;
2336
2336
  }
2337
2337
  return !0;
2338
2338
  }, [
2339
2339
  l,
2340
2340
  o
2341
- ]), T = mt(D), O = G((y) => {
2341
+ ]), T = mt(D), O = G((v) => {
2342
2342
  let $ = m.current;
2343
2343
  if ($.isPressed && $.target) {
2344
- $.didFirePressStart && $.pointerType != null && C(kt($.target, y), $.pointerType, !1), $.isPressed = !1, I(null), $.isOverTarget = !1, $.activePointerId = null, $.pointerType = null, w(), u || Ln($.target);
2344
+ $.didFirePressStart && $.pointerType != null && C(kt($.target, v), $.pointerType, !1), $.isPressed = !1, I(null), $.isOverTarget = !1, $.activePointerId = null, $.pointerType = null, w(), u || Ln($.target);
2345
2345
  for (let x of $.disposables) x();
2346
2346
  $.disposables = [];
2347
2347
  }
@@ -2349,19 +2349,19 @@ function $r(e) {
2349
2349
  u,
2350
2350
  w,
2351
2351
  C
2352
- ]), B = mt(O), F = G((y) => {
2353
- d && O(y);
2352
+ ]), B = mt(O), F = G((v) => {
2353
+ d && O(v);
2354
2354
  }, [
2355
2355
  d,
2356
2356
  O
2357
- ]), L = G((y) => {
2358
- l || s?.(y);
2357
+ ]), L = G((v) => {
2358
+ l || s?.(v);
2359
2359
  }, [
2360
2360
  l,
2361
2361
  s
2362
- ]), K = G((y, $) => {
2362
+ ]), K = G((v, $) => {
2363
2363
  if (!l && s) {
2364
- let x = new MouseEvent("click", y);
2364
+ let x = new MouseEvent("click", v);
2365
2365
  gl(x, $), s(ja(x));
2366
2366
  }
2367
2367
  }, [
@@ -2369,120 +2369,120 @@ function $r(e) {
2369
2369
  s
2370
2370
  ]), E = mt(K), [M, z] = ne(!1);
2371
2371
  ge(() => {
2372
- let y = m.current;
2372
+ let v = m.current;
2373
2373
  if (M) {
2374
2374
  let $ = (V) => {
2375
2375
  var Z;
2376
- if (y.isPressed && y.target && jn(V, y.target)) {
2376
+ if (v.isPressed && v.target && jn(V, v.target)) {
2377
2377
  var U;
2378
2378
  Fo(X(V), V.key) && V.preventDefault();
2379
- let te = X(V), ce = se(y.target, te);
2380
- A(kt(y.target, V), "keyboard", ce), ce && E(V, y.target), w(), V.key !== "Enter" && Fa(y.target) && se(y.target, te) && !V[Ro] && (V[Ro] = !0, ct(y.target, V, !1)), y.isPressed = !1, z(!1), (U = y.metaKeyEvents) === null || U === void 0 || U.delete(V.key);
2381
- } else if (V.key === "Meta" && (!((Z = y.metaKeyEvents) === null || Z === void 0) && Z.size)) {
2379
+ let te = X(V), ce = se(v.target, te);
2380
+ A(kt(v.target, V), "keyboard", ce), ce && E(V, v.target), w(), V.key !== "Enter" && Fa(v.target) && se(v.target, te) && !V[Ro] && (V[Ro] = !0, ct(v.target, V, !1)), v.isPressed = !1, z(!1), (U = v.metaKeyEvents) === null || U === void 0 || U.delete(V.key);
2381
+ } else if (V.key === "Meta" && (!((Z = v.metaKeyEvents) === null || Z === void 0) && Z.size)) {
2382
2382
  var W;
2383
- let te = y.metaKeyEvents;
2384
- y.metaKeyEvents = void 0;
2385
- for (let ce of te.values()) (W = y.target) === null || W === void 0 || W.dispatchEvent(new KeyboardEvent("keyup", ce));
2383
+ let te = v.metaKeyEvents;
2384
+ v.metaKeyEvents = void 0;
2385
+ for (let ce of te.values()) (W = v.target) === null || W === void 0 || W.dispatchEvent(new KeyboardEvent("keyup", ce));
2386
2386
  }
2387
- }, x = y.target, R = Zt((V) => {
2388
- x && jn(V, x) && !V.repeat && se(x, X(V)) && y.target && T(kt(y.target, V), "keyboard");
2387
+ }, x = v.target, R = Zt((V) => {
2388
+ x && jn(V, x) && !V.repeat && se(x, X(V)) && v.target && T(kt(v.target, V), "keyboard");
2389
2389
  }, $);
2390
- return v(de(y.target), "keyup", R, !0), () => {
2391
- P(de(y.target), "keyup", R, !0);
2390
+ return y(de(v.target), "keyup", R, !0), () => {
2391
+ P(de(v.target), "keyup", R, !0);
2392
2392
  };
2393
2393
  }
2394
2394
  }, [
2395
2395
  M,
2396
- v,
2396
+ y,
2397
2397
  w,
2398
2398
  P
2399
2399
  ]);
2400
2400
  let [_, I] = ne(null);
2401
2401
  ge(() => {
2402
- let y = m.current;
2402
+ let v = m.current;
2403
2403
  if (_ === "pointer") {
2404
2404
  let $ = (N) => {
2405
- if (N.pointerId === y.activePointerId && y.isPressed && N.button === 0 && y.target) {
2406
- if (se(y.target, X(N)) && y.pointerType != null) {
2405
+ if (N.pointerId === v.activePointerId && v.isPressed && N.button === 0 && v.target) {
2406
+ if (se(v.target, X(N)) && v.pointerType != null) {
2407
2407
  let R = !1, V = setTimeout(() => {
2408
- y.isPressed && y.target instanceof HTMLElement && (R ? B(N) : (Xe(y.target), y.target.click()));
2408
+ v.isPressed && v.target instanceof HTMLElement && (R ? B(N) : (Xe(v.target), v.target.click()));
2409
2409
  }, 80);
2410
- N.currentTarget && v(N.currentTarget, "click", () => R = !0, !0), y.disposables.push(() => clearTimeout(V));
2410
+ N.currentTarget && y(N.currentTarget, "click", () => R = !0, !0), v.disposables.push(() => clearTimeout(V));
2411
2411
  } else B(N);
2412
- y.isOverTarget = !1;
2412
+ v.isOverTarget = !1;
2413
2413
  }
2414
2414
  }, x = (N) => {
2415
2415
  B(N);
2416
2416
  };
2417
- return v(de(y.target), "pointerup", $, !1), v(de(y.target), "pointercancel", x, !1), () => {
2418
- P(de(y.target), "pointerup", $, !1), P(de(y.target), "pointercancel", x, !1);
2417
+ return y(de(v.target), "pointerup", $, !1), y(de(v.target), "pointercancel", x, !1), () => {
2418
+ P(de(v.target), "pointerup", $, !1), P(de(v.target), "pointercancel", x, !1);
2419
2419
  };
2420
2420
  } else if (_ === "mouse" && process.env.NODE_ENV === "test") {
2421
2421
  let $ = (x) => {
2422
2422
  if (x.button === 0) {
2423
- if (y.ignoreEmulatedMouseEvents) {
2424
- y.ignoreEmulatedMouseEvents = !1;
2423
+ if (v.ignoreEmulatedMouseEvents) {
2424
+ v.ignoreEmulatedMouseEvents = !1;
2425
2425
  return;
2426
2426
  }
2427
- y.target && se(y.target, x.target) && y.pointerType != null || B(x), y.isOverTarget = !1;
2427
+ v.target && se(v.target, x.target) && v.pointerType != null || B(x), v.isOverTarget = !1;
2428
2428
  }
2429
2429
  };
2430
- return v(de(y.target), "mouseup", $, !1), () => {
2431
- P(de(y.target), "mouseup", $, !1);
2430
+ return y(de(v.target), "mouseup", $, !1), () => {
2431
+ P(de(v.target), "mouseup", $, !1);
2432
2432
  };
2433
2433
  } else if (_ === "touch" && process.env.NODE_ENV === "test") {
2434
2434
  let $ = (x) => {
2435
- y.isPressed && se(X(x), y.target) && B({
2436
- currentTarget: y.target,
2435
+ v.isPressed && se(X(x), v.target) && B({
2436
+ currentTarget: v.target,
2437
2437
  shiftKey: !1,
2438
2438
  ctrlKey: !1,
2439
2439
  metaKey: !1,
2440
2440
  altKey: !1
2441
2441
  });
2442
2442
  };
2443
- return v(_e(y.target), "scroll", $, !0), () => {
2444
- P(_e(y.target), "scroll", $, !0);
2443
+ return y(_e(v.target), "scroll", $, !0), () => {
2444
+ P(_e(v.target), "scroll", $, !0);
2445
2445
  };
2446
2446
  }
2447
2447
  }, [
2448
2448
  _,
2449
- v,
2449
+ y,
2450
2450
  P
2451
2451
  ]);
2452
2452
  let j = J(() => {
2453
- let y = m.current, $ = {
2453
+ let v = m.current, $ = {
2454
2454
  onKeyDown(x) {
2455
2455
  if (jn(x.nativeEvent, x.currentTarget) && se(x.currentTarget, X(x))) {
2456
2456
  var N;
2457
2457
  Fo(X(x), x.key) && x.preventDefault();
2458
2458
  let R = !0;
2459
- !y.isPressed && !x.repeat && (y.target = x.currentTarget, y.isPressed = !0, z(!0), y.pointerType = "keyboard", R = k(x, "keyboard")), R && x.stopPropagation(), x.metaKey && vt() && ((N = y.metaKeyEvents) === null || N === void 0 || N.set(x.key, x.nativeEvent));
2460
- } else x.key === "Meta" && (y.metaKeyEvents = /* @__PURE__ */ new Map());
2459
+ !v.isPressed && !x.repeat && (v.target = x.currentTarget, v.isPressed = !0, z(!0), v.pointerType = "keyboard", R = k(x, "keyboard")), R && x.stopPropagation(), x.metaKey && vt() && ((N = v.metaKeyEvents) === null || N === void 0 || N.set(x.key, x.nativeEvent));
2460
+ } else x.key === "Meta" && (v.metaKeyEvents = /* @__PURE__ */ new Map());
2461
2461
  },
2462
2462
  onClick(x) {
2463
- if (!(x && !se(x.currentTarget, X(x))) && x && x.button === 0 && !y.isTriggeringEvent && !ct.isOpening) {
2463
+ if (!(x && !se(x.currentTarget, X(x))) && x && x.button === 0 && !v.isTriggeringEvent && !ct.isOpening) {
2464
2464
  let N = !0;
2465
- if (l && x.preventDefault(), !y.ignoreEmulatedMouseEvents && !y.isPressed && (y.pointerType === "virtual" || ta(x.nativeEvent))) {
2465
+ if (l && x.preventDefault(), !v.ignoreEmulatedMouseEvents && !v.isPressed && (v.pointerType === "virtual" || ta(x.nativeEvent))) {
2466
2466
  let R = k(x, "virtual"), V = D(x, "virtual"), Z = C(x, "virtual");
2467
2467
  L(x), N = R && V && Z;
2468
- } else if (y.isPressed && y.pointerType !== "keyboard") {
2469
- let R = y.pointerType || x.nativeEvent.pointerType || "virtual", V = D(kt(x.currentTarget, x), R), Z = C(kt(x.currentTarget, x), R, !0);
2470
- N = V && Z, y.isOverTarget = !1, L(x), O(x);
2468
+ } else if (v.isPressed && v.pointerType !== "keyboard") {
2469
+ let R = v.pointerType || x.nativeEvent.pointerType || "virtual", V = D(kt(x.currentTarget, x), R), Z = C(kt(x.currentTarget, x), R, !0);
2470
+ N = V && Z, v.isOverTarget = !1, L(x), O(x);
2471
2471
  }
2472
- y.ignoreEmulatedMouseEvents = !1, N && x.stopPropagation();
2472
+ v.ignoreEmulatedMouseEvents = !1, N && x.stopPropagation();
2473
2473
  }
2474
2474
  }
2475
2475
  };
2476
2476
  return typeof PointerEvent < "u" ? ($.onPointerDown = (x) => {
2477
2477
  if (x.button !== 0 || !se(x.currentTarget, X(x))) return;
2478
2478
  if (Pp(x.nativeEvent)) {
2479
- y.pointerType = "virtual";
2479
+ v.pointerType = "virtual";
2480
2480
  return;
2481
2481
  }
2482
- y.pointerType = x.pointerType;
2482
+ v.pointerType = x.pointerType;
2483
2483
  let N = !0;
2484
- if (!y.isPressed) {
2485
- y.isPressed = !0, I("pointer"), y.isOverTarget = !0, y.activePointerId = x.pointerId, y.target = x.currentTarget, u || zo(y.target), N = k(x, y.pointerType);
2484
+ if (!v.isPressed) {
2485
+ v.isPressed = !0, I("pointer"), v.isOverTarget = !0, v.activePointerId = x.pointerId, v.target = x.currentTarget, u || zo(v.target), N = k(x, v.pointerType);
2486
2486
  let R = X(x);
2487
2487
  "releasePointerCapture" in R && ("hasPointerCapture" in R ? R.hasPointerCapture(x.pointerId) && R.releasePointerCapture(x.pointerId) : R.releasePointerCapture(x.pointerId));
2488
2488
  }
@@ -2491,61 +2491,61 @@ function $r(e) {
2491
2491
  if (se(x.currentTarget, X(x)) && x.button === 0) {
2492
2492
  if (c) {
2493
2493
  let N = Do(x.target);
2494
- N && y.disposables.push(N);
2494
+ N && v.disposables.push(N);
2495
2495
  }
2496
2496
  x.stopPropagation();
2497
2497
  }
2498
2498
  }, $.onPointerUp = (x) => {
2499
- !se(x.currentTarget, X(x)) || y.pointerType === "virtual" || x.button === 0 && !y.isPressed && D(x, y.pointerType || x.pointerType);
2499
+ !se(x.currentTarget, X(x)) || v.pointerType === "virtual" || x.button === 0 && !v.isPressed && D(x, v.pointerType || x.pointerType);
2500
2500
  }, $.onPointerEnter = (x) => {
2501
- x.pointerId === y.activePointerId && y.target && !y.isOverTarget && y.pointerType != null && (y.isOverTarget = !0, k(kt(y.target, x), y.pointerType));
2501
+ x.pointerId === v.activePointerId && v.target && !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, k(kt(v.target, x), v.pointerType));
2502
2502
  }, $.onPointerLeave = (x) => {
2503
- x.pointerId === y.activePointerId && y.target && y.isOverTarget && y.pointerType != null && (y.isOverTarget = !1, C(kt(y.target, x), y.pointerType, !1), F(x));
2503
+ x.pointerId === v.activePointerId && v.target && v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, C(kt(v.target, x), v.pointerType, !1), F(x));
2504
2504
  }, $.onDragStart = (x) => {
2505
2505
  se(x.currentTarget, X(x)) && O(x);
2506
2506
  }) : process.env.NODE_ENV === "test" && ($.onMouseDown = (x) => {
2507
2507
  if (x.button !== 0 || !se(x.currentTarget, X(x))) return;
2508
- if (y.ignoreEmulatedMouseEvents) {
2508
+ if (v.ignoreEmulatedMouseEvents) {
2509
2509
  x.stopPropagation();
2510
2510
  return;
2511
2511
  }
2512
- if (y.isPressed = !0, I("mouse"), y.isOverTarget = !0, y.target = x.currentTarget, y.pointerType = ta(x.nativeEvent) ? "virtual" : "mouse", Sa(() => k(x, y.pointerType)) && x.stopPropagation(), c) {
2512
+ if (v.isPressed = !0, I("mouse"), v.isOverTarget = !0, v.target = x.currentTarget, v.pointerType = ta(x.nativeEvent) ? "virtual" : "mouse", Sa(() => k(x, v.pointerType)) && x.stopPropagation(), c) {
2513
2513
  let R = Do(x.target);
2514
- R && y.disposables.push(R);
2514
+ R && v.disposables.push(R);
2515
2515
  }
2516
2516
  }, $.onMouseEnter = (x) => {
2517
2517
  if (!se(x.currentTarget, X(x))) return;
2518
2518
  let N = !0;
2519
- y.isPressed && !y.ignoreEmulatedMouseEvents && y.pointerType != null && (y.isOverTarget = !0, N = k(x, y.pointerType)), N && x.stopPropagation();
2519
+ v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !0, N = k(x, v.pointerType)), N && x.stopPropagation();
2520
2520
  }, $.onMouseLeave = (x) => {
2521
2521
  if (!se(x.currentTarget, X(x))) return;
2522
2522
  let N = !0;
2523
- y.isPressed && !y.ignoreEmulatedMouseEvents && y.pointerType != null && (y.isOverTarget = !1, N = C(x, y.pointerType, !1), F(x)), N && x.stopPropagation();
2523
+ v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !1, N = C(x, v.pointerType, !1), F(x)), N && x.stopPropagation();
2524
2524
  }, $.onMouseUp = (x) => {
2525
- se(x.currentTarget, X(x)) && !y.ignoreEmulatedMouseEvents && x.button === 0 && !y.isPressed && D(x, y.pointerType || "mouse");
2525
+ se(x.currentTarget, X(x)) && !v.ignoreEmulatedMouseEvents && x.button === 0 && !v.isPressed && D(x, v.pointerType || "mouse");
2526
2526
  }, $.onTouchStart = (x) => {
2527
2527
  if (!se(x.currentTarget, X(x))) return;
2528
2528
  let N = Xp(x.nativeEvent);
2529
2529
  if (!N) return;
2530
- y.activePointerId = N.identifier, y.ignoreEmulatedMouseEvents = !0, y.isOverTarget = !0, y.isPressed = !0, I("touch"), y.target = x.currentTarget, y.pointerType = "touch", u || zo(y.target), k(ft(y.target, x), y.pointerType) && x.stopPropagation();
2530
+ v.activePointerId = N.identifier, v.ignoreEmulatedMouseEvents = !0, v.isOverTarget = !0, v.isPressed = !0, I("touch"), v.target = x.currentTarget, v.pointerType = "touch", u || zo(v.target), k(ft(v.target, x), v.pointerType) && x.stopPropagation();
2531
2531
  }, $.onTouchMove = (x) => {
2532
2532
  if (!se(x.currentTarget, X(x))) return;
2533
- if (!y.isPressed) {
2533
+ if (!v.isPressed) {
2534
2534
  x.stopPropagation();
2535
2535
  return;
2536
2536
  }
2537
- let N = jo(x.nativeEvent, y.activePointerId), R = !0;
2538
- N && Bo(N, x.currentTarget) ? !y.isOverTarget && y.pointerType != null && (y.isOverTarget = !0, R = k(ft(y.target, x), y.pointerType)) : y.isOverTarget && y.pointerType != null && (y.isOverTarget = !1, R = C(ft(y.target, x), y.pointerType, !1), F(ft(y.target, x))), R && x.stopPropagation();
2537
+ let N = jo(x.nativeEvent, v.activePointerId), R = !0;
2538
+ N && Bo(N, x.currentTarget) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, R = k(ft(v.target, x), v.pointerType)) : v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, R = C(ft(v.target, x), v.pointerType, !1), F(ft(v.target, x))), R && x.stopPropagation();
2539
2539
  }, $.onTouchEnd = (x) => {
2540
2540
  if (!se(x.currentTarget, X(x))) return;
2541
- if (!y.isPressed) {
2541
+ if (!v.isPressed) {
2542
2542
  x.stopPropagation();
2543
2543
  return;
2544
2544
  }
2545
- let N = jo(x.nativeEvent, y.activePointerId), R = !0;
2546
- N && Bo(N, x.currentTarget) && y.pointerType != null ? (D(ft(y.target, x), y.pointerType), R = C(ft(y.target, x), y.pointerType), K(x.nativeEvent, y.target)) : y.isOverTarget && y.pointerType != null && (R = C(ft(y.target, x), y.pointerType, !1)), R && x.stopPropagation(), y.isPressed = !1, I(null), y.activePointerId = null, y.isOverTarget = !1, y.ignoreEmulatedMouseEvents = !0, y.target && !u && Ln(y.target), w();
2545
+ let N = jo(x.nativeEvent, v.activePointerId), R = !0;
2546
+ N && Bo(N, x.currentTarget) && v.pointerType != null ? (D(ft(v.target, x), v.pointerType), R = C(ft(v.target, x), v.pointerType), K(x.nativeEvent, v.target)) : v.isOverTarget && v.pointerType != null && (R = C(ft(v.target, x), v.pointerType, !1)), R && x.stopPropagation(), v.isPressed = !1, I(null), v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !u && Ln(v.target), w();
2547
2547
  }, $.onTouchCancel = (x) => {
2548
- se(x.currentTarget, X(x)) && (x.stopPropagation(), y.isPressed && O(ft(y.target, x)));
2548
+ se(x.currentTarget, X(x)) && (x.stopPropagation(), v.isPressed && O(ft(v.target, x)));
2549
2549
  }, $.onDragStart = (x) => {
2550
2550
  se(x.currentTarget, X(x)) && O(x);
2551
2551
  }), $;
@@ -2564,25 +2564,25 @@ function $r(e) {
2564
2564
  ]);
2565
2565
  return ee(() => {
2566
2566
  if (!p || process.env.NODE_ENV === "test") return;
2567
- const y = de(p.current);
2568
- if (!y || !y.head || y.getElementById(Oo)) return;
2569
- const $ = y.createElement("style");
2567
+ const v = de(p.current);
2568
+ if (!v || !v.head || v.getElementById(Oo)) return;
2569
+ const $ = v.createElement("style");
2570
2570
  $.id = Oo, $.textContent = `
2571
2571
  @layer {
2572
2572
  [${Lo}] {
2573
2573
  touch-action: pan-x pan-y pinch-zoom;
2574
2574
  }
2575
2575
  }
2576
- `.trim(), y.head.prepend($);
2576
+ `.trim(), v.head.prepend($);
2577
2577
  }, [
2578
2578
  p
2579
2579
  ]), ee(() => {
2580
- let y = m.current;
2580
+ let v = m.current;
2581
2581
  return () => {
2582
2582
  var $;
2583
- u || Ln(($ = y.target) !== null && $ !== void 0 ? $ : void 0);
2584
- for (let x of y.disposables) x();
2585
- y.disposables = [];
2583
+ u || Ln(($ = v.target) !== null && $ !== void 0 ? $ : void 0);
2584
+ for (let x of v.disposables) x();
2585
+ v.disposables = [];
2586
2586
  };
2587
2587
  }, [
2588
2588
  u
@@ -2882,10 +2882,10 @@ function Sn(e) {
2882
2882
  n && n(u), a && a(!0), o.current.isFocusWithin = !0, c(u);
2883
2883
  let b = u.currentTarget;
2884
2884
  s(f, "focus", (m) => {
2885
- let v = X(m);
2886
- if (o.current.isFocusWithin && !se(b, v)) {
2885
+ let y = X(m);
2886
+ if (o.current.isFocusWithin && !se(b, y)) {
2887
2887
  let w = new f.defaultView.FocusEvent("blur", {
2888
- relatedTarget: v
2888
+ relatedTarget: y
2889
2889
  });
2890
2890
  gl(w, b);
2891
2891
  let P = ja(w);
@@ -2942,21 +2942,21 @@ function xt(e) {
2942
2942
  let p = (b, m) => {
2943
2943
  if (l.pointerType = m, a || m === "touch" || l.isHovered || !se(b.currentTarget, X(b))) return;
2944
2944
  l.isHovered = !0;
2945
- let v = b.currentTarget;
2946
- l.target = v, i(de(X(b)), "pointerover", (w) => {
2945
+ let y = b.currentTarget;
2946
+ l.target = y, i(de(X(b)), "pointerover", (w) => {
2947
2947
  l.isHovered && l.target && !se(l.target, X(w)) && f(w, w.pointerType);
2948
2948
  }, {
2949
2949
  capture: !0
2950
2950
  }), t && t({
2951
2951
  type: "hoverstart",
2952
- target: v,
2952
+ target: y,
2953
2953
  pointerType: m
2954
2954
  }), r && r(!0), s(!0);
2955
2955
  }, f = (b, m) => {
2956
- let v = l.target;
2957
- l.pointerType = "", l.target = null, !(m === "touch" || !l.isHovered || !v) && (l.isHovered = !1, c(), n && n({
2956
+ let y = l.target;
2957
+ l.pointerType = "", l.target = null, !(m === "touch" || !l.isHovered || !y) && (l.isHovered = !1, c(), n && n({
2958
2958
  type: "hoverend",
2959
- target: v,
2959
+ target: y,
2960
2960
  pointerType: m
2961
2961
  }), r && r(!1), s(!1));
2962
2962
  }, g = {};
@@ -4332,7 +4332,7 @@ var ot = em(), tm = (e) => {
4332
4332
  // add "base" to the slots object
4333
4333
  base: ln(n?.base, b && o?.base),
4334
4334
  ...s
4335
- }, v = b ? m : Zg(
4335
+ }, y = b ? m : Zg(
4336
4336
  { ...o?.slots },
4337
4337
  Re(m) ? { base: n?.base } : m
4338
4338
  ), w = Re(o?.compoundVariants) ? i : mi(o?.compoundVariants, i), P = (C) => {
@@ -4352,10 +4352,10 @@ var ot = em(), tm = (e) => {
4352
4352
  return null;
4353
4353
  const j = _?.[E] ?? C?.[E];
4354
4354
  if (j === null) return null;
4355
- const y = Qo(j);
4356
- if (typeof y == "object")
4355
+ const v = Qo(j);
4356
+ if (typeof v == "object")
4357
4357
  return null;
4358
- const $ = g?.[E], x = y ?? Qo($);
4358
+ const $ = g?.[E], x = v ?? Qo($);
4359
4359
  return I[x || "false"];
4360
4360
  }, D = () => {
4361
4361
  if (!f) return null;
@@ -4391,7 +4391,7 @@ var ot = em(), tm = (e) => {
4391
4391
  }, F = (E = [], M) => {
4392
4392
  const z = [], _ = E.length;
4393
4393
  for (let I = 0; I < _; I++) {
4394
- const { class: j, className: y, ...$ } = E[I];
4394
+ const { class: j, className: v, ...$ } = E[I];
4395
4395
  let x = !0;
4396
4396
  const N = B(null, M);
4397
4397
  for (const R in $) {
@@ -4410,7 +4410,7 @@ var ot = em(), tm = (e) => {
4410
4410
  }
4411
4411
  }
4412
4412
  }
4413
- x && (j && z.push(j), y && z.push(y));
4413
+ x && (j && z.push(j), v && z.push(v));
4414
4414
  }
4415
4415
  return z;
4416
4416
  }, L = (E) => {
@@ -4422,8 +4422,8 @@ var ot = em(), tm = (e) => {
4422
4422
  if (typeof j == "string")
4423
4423
  z.base = _(z.base, j)(u);
4424
4424
  else if (typeof j == "object")
4425
- for (const y in j)
4426
- z[y] = _(z[y], j[y])(u);
4425
+ for (const v in j)
4426
+ z[v] = _(z[v], j[v])(u);
4427
4427
  }
4428
4428
  return z;
4429
4429
  }, K = (E) => {
@@ -4433,7 +4433,7 @@ var ot = em(), tm = (e) => {
4433
4433
  const {
4434
4434
  slots: I = [],
4435
4435
  class: j,
4436
- className: y,
4436
+ className: v,
4437
4437
  ...$
4438
4438
  } = c[_];
4439
4439
  if (!Re($)) {
@@ -4449,20 +4449,20 @@ var ot = em(), tm = (e) => {
4449
4449
  }
4450
4450
  for (let x = 0; x < I.length; x++) {
4451
4451
  const N = I[x];
4452
- M[N] || (M[N] = []), M[N].push([j, y]);
4452
+ M[N] || (M[N] = []), M[N].push([j, v]);
4453
4453
  }
4454
4454
  }
4455
4455
  return M;
4456
4456
  };
4457
4457
  if (!Re(s) || !b) {
4458
4458
  const E = {};
4459
- if (typeof v == "object" && !Re(v)) {
4459
+ if (typeof y == "object" && !Re(y)) {
4460
4460
  const M = e;
4461
- for (const z in v)
4461
+ for (const z in y)
4462
4462
  E[z] = (_) => {
4463
4463
  const I = L(_), j = K(_);
4464
4464
  return M(
4465
- v[z],
4465
+ y[z],
4466
4466
  T(z, _),
4467
4467
  I ? I[z] : void 0,
4468
4468
  j ? j[z] : void 0,
@@ -4484,7 +4484,7 @@ var ot = em(), tm = (e) => {
4484
4484
  if (!(!f || typeof f != "object"))
4485
4485
  return Object.keys(f);
4486
4486
  };
4487
- return P.variantKeys = k(), P.extend = o, P.base = p, P.slots = v, P.variants = f, P.defaultVariants = g, P.compoundSlots = c, P.compoundVariants = w, P;
4487
+ return P.variantKeys = k(), P.extend = o, P.base = p, P.slots = y, P.variants = f, P.defaultVariants = g, P.compoundSlots = c, P.compoundVariants = w, P;
4488
4488
  };
4489
4489
  return {
4490
4490
  tv: t,
@@ -4713,23 +4713,23 @@ const rm = (e, t) => {
4713
4713
  i = d + (i.length > 0 ? " " + i : i);
4714
4714
  continue;
4715
4715
  }
4716
- let m = !!b, v = n(m ? g.substring(0, b) : g);
4717
- if (!v) {
4716
+ let m = !!b, y = n(m ? g.substring(0, b) : g);
4717
+ if (!y) {
4718
4718
  if (!m) {
4719
4719
  i = d + (i.length > 0 ? " " + i : i);
4720
4720
  continue;
4721
4721
  }
4722
- if (v = n(g), !v) {
4722
+ if (y = n(g), !y) {
4723
4723
  i = d + (i.length > 0 ? " " + i : i);
4724
4724
  continue;
4725
4725
  }
4726
4726
  m = !1;
4727
4727
  }
4728
- const w = p.length === 0 ? "" : p.length === 1 ? p[0] : o(p).join(":"), P = f ? w + ma : w, k = P + v;
4728
+ const w = p.length === 0 ? "" : p.length === 1 ? p[0] : o(p).join(":"), P = f ? w + ma : w, k = P + y;
4729
4729
  if (s.indexOf(k) > -1)
4730
4730
  continue;
4731
4731
  s.push(k);
4732
- const C = a(v, m);
4732
+ const C = a(y, m);
4733
4733
  for (let A = 0; A < C.length; ++A) {
4734
4734
  const D = C[A];
4735
4735
  s.push(P + D);
@@ -4777,7 +4777,7 @@ const rm = (e, t) => {
4777
4777
  const n = wi.exec(e);
4778
4778
  return n ? n[1] ? t(n[1]) : r : !1;
4779
4779
  }, ki = (e) => e === "position" || e === "percentage", Ci = (e) => e === "image" || e === "url", Pi = (e) => e === "length" || e === "size" || e === "bg-size", Si = (e) => e === "length", jm = (e) => e === "number", Bm = (e) => e === "family-name", Ei = (e) => e === "shadow", ha = () => {
4780
- const e = Ce("color"), t = Ce("font"), r = Ce("text"), n = Ce("font-weight"), a = Ce("tracking"), o = Ce("leading"), s = Ce("breakpoint"), l = Ce("container"), i = Ce("spacing"), c = Ce("radius"), d = Ce("shadow"), u = Ce("inset-shadow"), p = Ce("text-shadow"), f = Ce("drop-shadow"), g = Ce("blur"), b = Ce("perspective"), m = Ce("aspect"), v = Ce("ease"), w = Ce("animate"), P = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [
4780
+ const e = Ce("color"), t = Ce("font"), r = Ce("text"), n = Ce("font-weight"), a = Ce("tracking"), o = Ce("leading"), s = Ce("breakpoint"), l = Ce("container"), i = Ce("spacing"), c = Ce("radius"), d = Ce("shadow"), u = Ce("inset-shadow"), p = Ce("text-shadow"), f = Ce("drop-shadow"), g = Ce("blur"), b = Ce("perspective"), m = Ce("aspect"), y = Ce("ease"), w = Ce("animate"), P = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [
4781
4781
  "center",
4782
4782
  "top",
4783
4783
  "bottom",
@@ -4799,7 +4799,7 @@ const rm = (e, t) => {
4799
4799
  span: ["full", pt, q, Y]
4800
4800
  }, pt, q, Y], L = () => [pt, "auto", q, Y], K = () => ["auto", "min", "max", "fr", q, Y], E = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], M = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], z = () => ["auto", ...T()], _ = () => [Ot, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], I = () => [e, q, Y], j = () => [...k(), as, ns, {
4801
4801
  position: [q, Y]
4802
- }], y = () => ["no-repeat", {
4802
+ }], v = () => ["no-repeat", {
4803
4803
  repeat: ["", "x", "y", "space", "round"]
4804
4804
  }], $ = () => ["auto", "cover", "contain", Om, zm, {
4805
4805
  size: [q, Y]
@@ -5777,7 +5777,7 @@ const rm = (e, t) => {
5777
5777
  * @see https://tailwindcss.com/docs/background-repeat
5778
5778
  */
5779
5779
  "bg-repeat": [{
5780
- bg: y()
5780
+ bg: v()
5781
5781
  }],
5782
5782
  /**
5783
5783
  * Background Size
@@ -6454,7 +6454,7 @@ const rm = (e, t) => {
6454
6454
  * @see https://tailwindcss.com/docs/mask-repeat
6455
6455
  */
6456
6456
  "mask-repeat": [{
6457
- mask: y()
6457
+ mask: v()
6458
6458
  }],
6459
6459
  /**
6460
6460
  * Mask Size
@@ -6720,7 +6720,7 @@ const rm = (e, t) => {
6720
6720
  * @see https://tailwindcss.com/docs/transition-timing-function
6721
6721
  */
6722
6722
  ease: [{
6723
- ease: ["linear", "initial", v, q, Y]
6723
+ ease: ["linear", "initial", y, q, Y]
6724
6724
  }],
6725
6725
  /**
6726
6726
  * Transition Delay
@@ -17730,7 +17730,7 @@ function ab(e) {
17730
17730
  return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
17731
17731
  }
17732
17732
  function ob(e) {
17733
- let { selectionManager: t, keyboardDelegate: r, ref: n, autoFocus: a = !1, shouldFocusWrap: o = !1, disallowEmptySelection: s = !1, disallowSelectAll: l = !1, escapeKeyBehavior: i = "clearSelection", selectOnFocus: c = t.selectionBehavior === "replace", disallowTypeAhead: d = !1, shouldUseVirtualFocus: u, allowsTabNavigation: p = !1, scrollRef: f = n, linkBehavior: g = "action" } = e, { direction: b } = vn(), m = $n(), v = (E) => {
17733
+ let { selectionManager: t, keyboardDelegate: r, ref: n, autoFocus: a = !1, shouldFocusWrap: o = !1, disallowEmptySelection: s = !1, disallowSelectAll: l = !1, escapeKeyBehavior: i = "clearSelection", selectOnFocus: c = t.selectionBehavior === "replace", disallowTypeAhead: d = !1, shouldUseVirtualFocus: u, allowsTabNavigation: p = !1, scrollRef: f = n, linkBehavior: g = "action" } = e, { direction: b } = vn(), m = $n(), y = (E) => {
17734
17734
  if (E.altKey && E.key === "Tab" && E.preventDefault(), !n.current || !se(n.current, X(E))) return;
17735
17735
  const M = (W, te) => {
17736
17736
  if (W != null) {
@@ -17756,8 +17756,8 @@ function ob(e) {
17756
17756
  break;
17757
17757
  case "ArrowUp":
17758
17758
  if (r.getKeyAbove) {
17759
- var j, y, $;
17760
- let W = t.focusedKey != null ? (j = r.getKeyAbove) === null || j === void 0 ? void 0 : j.call(r, t.focusedKey) : (y = r.getLastKey) === null || y === void 0 ? void 0 : y.call(r);
17759
+ var j, v, $;
17760
+ let W = t.focusedKey != null ? (j = r.getKeyAbove) === null || j === void 0 ? void 0 : j.call(r, t.focusedKey) : (v = r.getLastKey) === null || v === void 0 ? void 0 : v.call(r);
17761
17761
  W == null && o && (W = ($ = r.getLastKey) === null || $ === void 0 ? void 0 : $.call(r, t.focusedKey)), W != null && (E.preventDefault(), M(W));
17762
17762
  }
17763
17763
  break;
@@ -17846,9 +17846,9 @@ function ob(e) {
17846
17846
  var M, z;
17847
17847
  let j = ($) => {
17848
17848
  $ != null && (t.setFocusedKey($), c && !t.isSelected($) && t.replaceSelection($));
17849
- }, y = E.relatedTarget;
17849
+ }, v = E.relatedTarget;
17850
17850
  var _, I;
17851
- y && E.currentTarget.compareDocumentPosition(y) & Node.DOCUMENT_POSITION_FOLLOWING ? j((_ = t.lastSelectedKey) !== null && _ !== void 0 ? _ : (M = r.getLastKey) === null || M === void 0 ? void 0 : M.call(r)) : j((I = t.firstSelectedKey) !== null && I !== void 0 ? I : (z = r.getFirstKey) === null || z === void 0 ? void 0 : z.call(r));
17851
+ v && E.currentTarget.compareDocumentPosition(v) & Node.DOCUMENT_POSITION_FOLLOWING ? j((_ = t.lastSelectedKey) !== null && _ !== void 0 ? _ : (M = r.getLastKey) === null || M === void 0 ? void 0 : M.call(r)) : j((I = t.firstSelectedKey) !== null && I !== void 0 ? I : (z = r.getFirstKey) === null || z === void 0 ? void 0 : z.call(r));
17852
17852
  } else f.current && (f.current.scrollTop = w.current.top, f.current.scrollLeft = w.current.left);
17853
17853
  if (t.focusedKey != null && f.current) {
17854
17854
  let j = qr(n, t.focusedKey);
@@ -17894,8 +17894,8 @@ function ob(e) {
17894
17894
  a === "last" && (I = (_ = (M = r.getLastKey) === null || M === void 0 ? void 0 : M.call(r)) !== null && _ !== void 0 ? _ : null);
17895
17895
  let j = t.selectedKeys;
17896
17896
  if (j.size) {
17897
- for (let y of j) if (t.canSelectItem(y)) {
17898
- I = y;
17897
+ for (let v of j) if (t.canSelectItem(v)) {
17898
+ I = v;
17899
17899
  break;
17900
17900
  }
17901
17901
  }
@@ -17921,7 +17921,7 @@ function ob(e) {
17921
17921
  E.preventDefault(), t.setFocused(!0);
17922
17922
  });
17923
17923
  let B = {
17924
- onKeyDown: v,
17924
+ onKeyDown: y,
17925
17925
  onFocus: P,
17926
17926
  onBlur: k,
17927
17927
  onMouseDown(E) {
@@ -17945,18 +17945,18 @@ function ob(e) {
17945
17945
  function Di(e) {
17946
17946
  let { id: t, selectionManager: r, key: n, ref: a, shouldSelectOnPressUp: o, shouldUseVirtualFocus: s, focus: l, isDisabled: i, onAction: c, allowsDifferentPressOrigin: d, linkBehavior: u = "action" } = e, p = $n();
17947
17947
  t = Ue(t);
17948
- let f = (y) => {
17949
- if (y.pointerType === "keyboard" && va(y)) r.toggleSelection(n);
17948
+ let f = (v) => {
17949
+ if (v.pointerType === "keyboard" && va(v)) r.toggleSelection(n);
17950
17950
  else {
17951
17951
  if (r.selectionMode === "none") return;
17952
17952
  if (r.isLink(n)) {
17953
17953
  if (u === "selection" && a.current) {
17954
17954
  let $ = r.getItemProps(n);
17955
- p.open(a.current, y, $.href, $.routerOptions), r.setSelectedKeys(r.selectedKeys);
17955
+ p.open(a.current, v, $.href, $.routerOptions), r.setSelectedKeys(r.selectedKeys);
17956
17956
  return;
17957
17957
  } else if (u === "override" || u === "none") return;
17958
17958
  }
17959
- r.selectionMode === "single" ? r.isSelected(n) && !r.disallowEmptySelection ? r.toggleSelection(n) : r.replaceSelection(n) : y && y.shiftKey ? r.extendSelection(n) : r.selectionBehavior === "toggle" || y && (Kt(y) || y.pointerType === "touch" || y.pointerType === "virtual") ? r.toggleSelection(n) : r.replaceSelection(n);
17959
+ r.selectionMode === "single" ? r.isSelected(n) && !r.disallowEmptySelection ? r.toggleSelection(n) : r.replaceSelection(n) : v && v.shiftKey ? r.extendSelection(n) : r.selectionBehavior === "toggle" || v && (Kt(v) || v.pointerType === "touch" || v.pointerType === "virtual") ? r.toggleSelection(n) : r.replaceSelection(n);
17960
17960
  }
17961
17961
  };
17962
17962
  ee(() => {
@@ -17972,11 +17972,11 @@ function Di(e) {
17972
17972
  let g = {};
17973
17973
  !s && !i ? g = {
17974
17974
  tabIndex: n === r.focusedKey ? 0 : -1,
17975
- onFocus(y) {
17976
- X(y) === a.current && r.setFocusedKey(n);
17975
+ onFocus(v) {
17976
+ X(v) === a.current && r.setFocusedKey(n);
17977
17977
  }
17978
- } : i && (g.onMouseDown = (y) => {
17979
- y.preventDefault();
17978
+ } : i && (g.onMouseDown = (v) => {
17979
+ v.preventDefault();
17980
17980
  }), ee(() => {
17981
17981
  i && r.focusedKey === n && r.setFocusedKey(null);
17982
17982
  }, [
@@ -17984,59 +17984,59 @@ function Di(e) {
17984
17984
  i,
17985
17985
  n
17986
17986
  ]);
17987
- let b = r.isLink(n) && u === "override", m = c && e.UNSTABLE_itemBehavior === "action", v = r.isLink(n) && u !== "selection" && u !== "none", w = !i && r.canSelectItem(n) && !b && !m, P = (c || v) && !i, k = P && (r.selectionBehavior === "replace" ? !w : !w || r.isEmpty), C = P && w && r.selectionBehavior === "replace", A = k || C, D = H(null), T = A && w, O = H(!1), B = H(!1), F = r.getItemProps(n), L = (y) => {
17987
+ let b = r.isLink(n) && u === "override", m = c && e.UNSTABLE_itemBehavior === "action", y = r.isLink(n) && u !== "selection" && u !== "none", w = !i && r.canSelectItem(n) && !b && !m, P = (c || y) && !i, k = P && (r.selectionBehavior === "replace" ? !w : !w || r.isEmpty), C = P && w && r.selectionBehavior === "replace", A = k || C, D = H(null), T = A && w, O = H(!1), B = H(!1), F = r.getItemProps(n), L = (v) => {
17988
17988
  if (c) {
17989
17989
  var $;
17990
17990
  c(), ($ = a.current) === null || $ === void 0 || $.dispatchEvent(new CustomEvent("react-aria-item-action", {
17991
17991
  bubbles: !0
17992
17992
  }));
17993
17993
  }
17994
- v && a.current && p.open(a.current, y, F.href, F.routerOptions);
17994
+ y && a.current && p.open(a.current, v, F.href, F.routerOptions);
17995
17995
  }, K = {
17996
17996
  ref: a
17997
17997
  };
17998
- if (o ? (K.onPressStart = (y) => {
17999
- D.current = y.pointerType, O.current = T, y.pointerType === "keyboard" && (!A || ds(y.key)) && f(y);
18000
- }, d ? (K.onPressUp = k ? void 0 : (y) => {
18001
- y.pointerType === "mouse" && w && f(y);
18002
- }, K.onPress = k ? L : (y) => {
18003
- y.pointerType !== "keyboard" && y.pointerType !== "mouse" && w && f(y);
18004
- }) : K.onPress = (y) => {
18005
- if (k || C && y.pointerType !== "mouse") {
18006
- if (y.pointerType === "keyboard" && !cs(y.key)) return;
18007
- L(y);
18008
- } else y.pointerType !== "keyboard" && w && f(y);
18009
- }) : (K.onPressStart = (y) => {
18010
- D.current = y.pointerType, O.current = T, B.current = k, w && (y.pointerType === "mouse" && !k || y.pointerType === "keyboard" && (!P || ds(y.key))) && f(y);
18011
- }, K.onPress = (y) => {
18012
- (y.pointerType === "touch" || y.pointerType === "pen" || y.pointerType === "virtual" || y.pointerType === "keyboard" && A && cs(y.key) || y.pointerType === "mouse" && B.current) && (A ? L(y) : w && f(y));
17998
+ if (o ? (K.onPressStart = (v) => {
17999
+ D.current = v.pointerType, O.current = T, v.pointerType === "keyboard" && (!A || ds(v.key)) && f(v);
18000
+ }, d ? (K.onPressUp = k ? void 0 : (v) => {
18001
+ v.pointerType === "mouse" && w && f(v);
18002
+ }, K.onPress = k ? L : (v) => {
18003
+ v.pointerType !== "keyboard" && v.pointerType !== "mouse" && w && f(v);
18004
+ }) : K.onPress = (v) => {
18005
+ if (k || C && v.pointerType !== "mouse") {
18006
+ if (v.pointerType === "keyboard" && !cs(v.key)) return;
18007
+ L(v);
18008
+ } else v.pointerType !== "keyboard" && w && f(v);
18009
+ }) : (K.onPressStart = (v) => {
18010
+ D.current = v.pointerType, O.current = T, B.current = k, w && (v.pointerType === "mouse" && !k || v.pointerType === "keyboard" && (!P || ds(v.key))) && f(v);
18011
+ }, K.onPress = (v) => {
18012
+ (v.pointerType === "touch" || v.pointerType === "pen" || v.pointerType === "virtual" || v.pointerType === "keyboard" && A && cs(v.key) || v.pointerType === "mouse" && B.current) && (A ? L(v) : w && f(v));
18013
18013
  }), g["data-collection"] = tb(r.collection), g["data-key"] = n, K.preventFocusOnPress = s, s && (K = Se(K, {
18014
- onPressStart(y) {
18015
- y.pointerType !== "touch" && (r.setFocused(!0), r.setFocusedKey(n));
18014
+ onPressStart(v) {
18015
+ v.pointerType !== "touch" && (r.setFocused(!0), r.setFocusedKey(n));
18016
18016
  },
18017
- onPress(y) {
18018
- y.pointerType === "touch" && (r.setFocused(!0), r.setFocusedKey(n));
18017
+ onPress(v) {
18018
+ v.pointerType === "touch" && (r.setFocused(!0), r.setFocusedKey(n));
18019
18019
  }
18020
18020
  })), F)
18021
- for (let y of [
18021
+ for (let v of [
18022
18022
  "onPressStart",
18023
18023
  "onPressEnd",
18024
18024
  "onPressChange",
18025
18025
  "onPress",
18026
18026
  "onPressUp",
18027
18027
  "onClick"
18028
- ]) F[y] && (K[y] = Zt(K[y], F[y]));
18029
- let { pressProps: E, isPressed: M } = $r(K), z = C ? (y) => {
18030
- D.current === "mouse" && (y.stopPropagation(), y.preventDefault(), L(y));
18028
+ ]) F[v] && (K[v] = Zt(K[v], F[v]));
18029
+ let { pressProps: E, isPressed: M } = $r(K), z = C ? (v) => {
18030
+ D.current === "mouse" && (v.stopPropagation(), v.preventDefault(), L(v));
18031
18031
  } : void 0, { longPressProps: _ } = Cl({
18032
18032
  isDisabled: !T,
18033
- onLongPress(y) {
18034
- y.pointerType === "touch" && (f(y), r.setSelectionBehavior("toggle"));
18033
+ onLongPress(v) {
18034
+ v.pointerType === "touch" && (f(v), r.setSelectionBehavior("toggle"));
18035
18035
  }
18036
- }), I = (y) => {
18037
- D.current === "touch" && O.current && y.preventDefault();
18038
- }, j = u !== "none" && r.isLink(n) ? (y) => {
18039
- ct.isOpening || y.preventDefault();
18036
+ }), I = (v) => {
18037
+ D.current === "touch" && O.current && v.preventDefault();
18038
+ }, j = u !== "none" && r.isLink(n) ? (v) => {
18039
+ ct.isOpening || v.preventDefault();
18040
18040
  } : void 0;
18041
18041
  return {
18042
18042
  itemProps: Se(
@@ -18051,7 +18051,7 @@ function Di(e) {
18051
18051
  },
18052
18052
  // Prevent DOM focus from moving on mouse down when using virtual focus
18053
18053
  s ? {
18054
- onMouseDown: (y) => y.preventDefault()
18054
+ onMouseDown: (v) => v.preventDefault()
18055
18055
  } : void 0
18056
18056
  ),
18057
18057
  isPressed: M,
@@ -18379,18 +18379,18 @@ function _i(e) {
18379
18379
  e.defaultSelectedKeys
18380
18380
  ]), [f, g] = La(u, p, e.onSelectionChange), b = J(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [
18381
18381
  e.disabledKeys
18382
- ]), [m, v] = ne(a);
18383
- a === "replace" && m === "toggle" && typeof f == "object" && f.size === 0 && v("replace");
18382
+ ]), [m, y] = ne(a);
18383
+ a === "replace" && m === "toggle" && typeof f == "object" && f.size === 0 && y("replace");
18384
18384
  let w = H(a);
18385
18385
  return ee(() => {
18386
- a !== w.current && (v(a), w.current = a);
18386
+ a !== w.current && (y(a), w.current = a);
18387
18387
  }, [
18388
18388
  a
18389
18389
  ]), {
18390
18390
  selectionMode: t,
18391
18391
  disallowEmptySelection: r,
18392
18392
  selectionBehavior: m,
18393
- setSelectionBehavior: v,
18393
+ setSelectionBehavior: y,
18394
18394
  get isFocused() {
18395
18395
  return s.current;
18396
18396
  },
@@ -18542,10 +18542,10 @@ class db {
18542
18542
  m.push(w);
18543
18543
  });
18544
18544
  var o;
18545
- let v = (o = t.index) !== null && o !== void 0 ? o : 0;
18545
+ let y = (o = t.index) !== null && o !== void 0 ? o : 0;
18546
18546
  for (const w of m) yield* this.getFullNode({
18547
18547
  element: w,
18548
- index: v++
18548
+ index: y++
18549
18549
  }, r, n, a);
18550
18550
  return;
18551
18551
  }
@@ -18564,9 +18564,9 @@ class db {
18564
18564
  let k = s.type;
18565
18565
  throw new Error(`Unknown element <${k}> in collection.`);
18566
18566
  }
18567
- let v = m.getCollectionNode(s.props, this.context);
18567
+ let y = m.getCollectionNode(s.props, this.context);
18568
18568
  var l;
18569
- let w = (l = t.index) !== null && l !== void 0 ? l : 0, P = v.next();
18569
+ let w = (l = t.index) !== null && l !== void 0 ? l : 0, P = y.next();
18570
18570
  for (; !P.done && P.value; ) {
18571
18571
  let k = P.value;
18572
18572
  t.index = w;
@@ -18588,7 +18588,7 @@ class db {
18588
18588
  if (t.type && T.type !== t.type) throw new Error(`Unsupported type <${Vn(T.type)}> in <${Vn((u = a?.type) !== null && u !== void 0 ? u : "unknown parent type")}>. Only <${Vn(t.type)}> is supported.`);
18589
18589
  w++, yield T;
18590
18590
  }
18591
- P = v.next(D);
18591
+ P = y.next(D);
18592
18592
  }
18593
18593
  return;
18594
18594
  }
@@ -18612,12 +18612,12 @@ class db {
18612
18612
  childNodes: gs(function* () {
18613
18613
  if (!t.hasChildNodes || !t.childNodes) return;
18614
18614
  let m = 0;
18615
- for (let v of t.childNodes()) {
18616
- v.key != null && (v.key = `${b.key}${v.key}`);
18615
+ for (let y of t.childNodes()) {
18616
+ y.key != null && (y.key = `${b.key}${y.key}`);
18617
18617
  let w = p.getFullNode({
18618
- ...v,
18618
+ ...y,
18619
18619
  index: m
18620
- }, p.getChildState(r, v), b.key, b);
18620
+ }, p.getChildState(r, y), b.key, b);
18621
18621
  for (let P of w)
18622
18622
  m++, yield P;
18623
18623
  }
@@ -19212,11 +19212,11 @@ function Ua(e, t) {
19212
19212
  rel: g,
19213
19213
  type: b = "button",
19214
19214
  allowTextSelectionOnPress: m
19215
- } = e, v;
19216
- r === "button" ? v = {
19215
+ } = e, y;
19216
+ r === "button" ? y = {
19217
19217
  type: b,
19218
19218
  disabled: n
19219
- } : v = {
19219
+ } : y = {
19220
19220
  role: "button",
19221
19221
  href: r === "a" && !n ? p : void 0,
19222
19222
  target: r === "a" ? f : void 0,
@@ -19246,7 +19246,7 @@ function Ua(e, t) {
19246
19246
  return {
19247
19247
  isPressed: P,
19248
19248
  // Used to indicate press state for visual
19249
- buttonProps: Se(v, C, {
19249
+ buttonProps: Se(y, C, {
19250
19250
  "aria-haspopup": e["aria-haspopup"],
19251
19251
  "aria-expanded": e["aria-expanded"],
19252
19252
  "aria-controls": e["aria-controls"],
@@ -19320,7 +19320,7 @@ function kb(e) {
19320
19320
  as: g,
19321
19321
  children: b,
19322
19322
  startContent: m,
19323
- endContent: v,
19323
+ endContent: y,
19324
19324
  autoFocus: w,
19325
19325
  className: P,
19326
19326
  spinner: k,
@@ -19338,7 +19338,7 @@ function kb(e) {
19338
19338
  onPress: z,
19339
19339
  onClick: _,
19340
19340
  ...I
19341
- } = e, j = g || "button", y = typeof j == "string", $ = Jt(f), x = (c = A ?? u?.disableRipple) != null ? c : L, { isFocusVisible: N, isFocused: R, focusProps: V } = kr({
19341
+ } = e, j = g || "button", v = typeof j == "string", $ = Jt(f), x = (c = A ?? u?.disableRipple) != null ? c : L, { isFocusVisible: N, isFocused: R, focusProps: V } = kr({
19342
19342
  autoFocus: w
19343
19343
  }), Z = K || C, U = J(
19344
19344
  () => Ym({
@@ -19392,7 +19392,7 @@ function kb(e) {
19392
19392
  V,
19393
19393
  je,
19394
19394
  tt(I, {
19395
- enabled: y
19395
+ enabled: v
19396
19396
  }),
19397
19397
  tt(Ee)
19398
19398
  ),
@@ -19403,7 +19403,7 @@ function kb(e) {
19403
19403
  Z,
19404
19404
  R,
19405
19405
  Le,
19406
- y,
19406
+ v,
19407
19407
  N,
19408
19408
  $e,
19409
19409
  ue,
@@ -19416,7 +19416,7 @@ function kb(e) {
19416
19416
  // @ts-ignore
19417
19417
  "aria-hidden": !0,
19418
19418
  focusable: !1
19419
- }) : null, ae = De(m), ze = De(v), xe = J(() => ({
19419
+ }) : null, ae = De(m), ze = De(y), xe = J(() => ({
19420
19420
  sm: "sm",
19421
19421
  md: "sm",
19422
19422
  lg: "md"
@@ -19567,7 +19567,7 @@ function Eb(e) {
19567
19567
  className: g,
19568
19568
  classNames: b,
19569
19569
  allowTextSelectionOnPress: m = !0,
19570
- ...v
19570
+ ...y
19571
19571
  } = s, w = Jt(i), P = c || (e.isPressable ? "button" : "div"), k = typeof P == "string", C = (r = (t = e.disableAnimation) != null ? t : o?.disableAnimation) != null ? r : !1, A = (a = (n = e.disableRipple) != null ? n : o?.disableRipple) != null ? a : !1, D = me(b?.base, g), { onClear: T, onPress: O, ripples: B } = qi(), F = G(
19572
19572
  (N) => {
19573
19573
  A || C || w.current && O(N);
@@ -19580,12 +19580,12 @@ function Eb(e) {
19580
19580
  isDisabled: !e.isPressable,
19581
19581
  onClick: u,
19582
19582
  allowTextSelectionOnPress: m,
19583
- ...v
19583
+ ...y
19584
19584
  },
19585
19585
  w
19586
19586
  ), { hoverProps: E, isHovered: M } = xt({
19587
19587
  isDisabled: !e.isHoverable,
19588
- ...v
19588
+ ...y
19589
19589
  }), { isFocusVisible: z, isFocused: _, focusProps: I } = kr({
19590
19590
  autoFocus: f
19591
19591
  }), j = J(
@@ -19594,7 +19594,7 @@ function Eb(e) {
19594
19594
  disableAnimation: C
19595
19595
  }),
19596
19596
  [yt(l), C]
19597
- ), y = J(
19597
+ ), v = J(
19598
19598
  () => ({
19599
19599
  slots: j,
19600
19600
  classNames: b,
@@ -19624,7 +19624,7 @@ function Eb(e) {
19624
19624
  ...fe(
19625
19625
  e.isPressable ? { ...L, ...I, role: "button" } : {},
19626
19626
  e.isHoverable ? E : {},
19627
- tt(v, {
19627
+ tt(y, {
19628
19628
  enabled: k
19629
19629
  }),
19630
19630
  tt(N)
@@ -19644,14 +19644,14 @@ function Eb(e) {
19644
19644
  L,
19645
19645
  I,
19646
19646
  E,
19647
- v
19647
+ y
19648
19648
  ]
19649
19649
  ), x = G(
19650
19650
  () => ({ ripples: B, onClear: T }),
19651
19651
  [B, T]
19652
19652
  );
19653
19653
  return {
19654
- context: y,
19654
+ context: v,
19655
19655
  domRef: w,
19656
19656
  Component: P,
19657
19657
  classNames: b,
@@ -19809,7 +19809,7 @@ function zb(e, t, r) {
19809
19809
  isDisabled: n,
19810
19810
  onHoverStart: u,
19811
19811
  onHoverEnd: p
19812
- }), { focusableProps: v } = Ka({
19812
+ }), { focusableProps: y } = Ka({
19813
19813
  isDisabled: n,
19814
19814
  onFocus: g,
19815
19815
  onBlur: b
@@ -19817,7 +19817,7 @@ function zb(e, t, r) {
19817
19817
  return {
19818
19818
  triggerProps: {
19819
19819
  "aria-describedby": t.isOpen ? s : void 0,
19820
- ...Se(v, m, {
19820
+ ...Se(y, m, {
19821
19821
  onPointerDown: f,
19822
19822
  onKeyDown: f
19823
19823
  }),
@@ -19870,9 +19870,9 @@ function Qi(e, t) {
19870
19870
  m.target === m.currentTarget && m.preventDefault();
19871
19871
  };
19872
19872
  function b(m) {
19873
- const v = m.current;
19874
- if (!v) return "unknown";
19875
- const w = (v.getAttribute("role") || "").toLowerCase(), P = v.getAttribute("aria-modal");
19873
+ const y = m.current;
19874
+ if (!y) return "unknown";
19875
+ const w = (y.getAttribute("role") || "").toLowerCase(), P = y.getAttribute("aria-modal");
19876
19876
  return (w === "dialog" || w === "alertdialog") && (P === null || P.toLowerCase() === "true") ? "pressEnd" : ["listbox", "menu", "tree", "grid", "combobox"].includes(w) ? "pressStart" : "unknown";
19877
19877
  }
19878
19878
  return {
@@ -19899,7 +19899,7 @@ function _b(e) {
19899
19899
  trigger: g,
19900
19900
  shouldFlip: b = !0,
19901
19901
  containerPadding: m = 12,
19902
- placement: v = "top",
19902
+ placement: y = "top",
19903
19903
  delay: w = 0,
19904
19904
  closeDelay: P = 500,
19905
19905
  showArrow: k = !1,
@@ -19916,7 +19916,7 @@ function _b(e) {
19916
19916
  motionProps: M,
19917
19917
  classNames: z,
19918
19918
  ..._
19919
- } = a, I = l || "div", j = (r = (t = e?.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, y = Nb({
19919
+ } = a, I = l || "div", j = (r = (t = e?.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, v = Nb({
19920
19920
  delay: w,
19921
19921
  closeDelay: P,
19922
19922
  isDisabled: f,
@@ -19925,7 +19925,7 @@ function _b(e) {
19925
19925
  onOpenChange: (ve) => {
19926
19926
  p?.(ve), ve || E?.();
19927
19927
  }
19928
- }), $ = H(null), x = H(null), N = Ld(), R = y.isOpen && !f;
19928
+ }), $ = H(null), x = H(null), N = Ld(), R = v.isOpen && !f;
19929
19929
  vr(
19930
19930
  s,
19931
19931
  () => (
@@ -19938,14 +19938,14 @@ function _b(e) {
19938
19938
  isDisabled: f,
19939
19939
  trigger: g
19940
19940
  },
19941
- y,
19941
+ v,
19942
19942
  $
19943
19943
  ), { tooltipProps: U } = Db(
19944
19944
  {
19945
19945
  isOpen: R,
19946
19946
  ...fe(a, Z)
19947
19947
  },
19948
- y
19948
+ v
19949
19949
  ), {
19950
19950
  overlayProps: W,
19951
19951
  placement: te,
@@ -19953,7 +19953,7 @@ function _b(e) {
19953
19953
  } = pl({
19954
19954
  isOpen: R,
19955
19955
  targetRef: $,
19956
- placement: Vi(v),
19956
+ placement: Vi(y),
19957
19957
  overlayRef: x,
19958
19958
  offset: k ? C + 3 : C,
19959
19959
  crossOffset: A,
@@ -19966,7 +19966,7 @@ function _b(e) {
19966
19966
  const { overlayProps: ie } = Qi(
19967
19967
  {
19968
19968
  isOpen: R,
19969
- onClose: y.close,
19969
+ onClose: v.close,
19970
19970
  isDismissable: D,
19971
19971
  shouldCloseOnBlur: T,
19972
19972
  isKeyboardDismissDisabled: B,
@@ -19997,7 +19997,7 @@ function _b(e) {
19997
19997
  ref: Xs(De, $),
19998
19998
  "aria-describedby": R ? N : void 0
19999
19999
  }),
20000
- [V, R, N, y]
20000
+ [V, R, N, v]
20001
20001
  ), $e = G(
20002
20002
  () => ({
20003
20003
  ref: x,
@@ -20005,7 +20005,7 @@ function _b(e) {
20005
20005
  "data-open": oe(R),
20006
20006
  "data-arrow": oe(k),
20007
20007
  "data-disabled": oe(f),
20008
- "data-placement": fn(te || "top", v),
20008
+ "data-placement": fn(te || "top", y),
20009
20009
  ...fe(U, ie, _),
20010
20010
  style: fe(W.style, _.style, a.style),
20011
20011
  className: ue.base({ class: z?.base }),
@@ -20017,7 +20017,7 @@ function _b(e) {
20017
20017
  k,
20018
20018
  f,
20019
20019
  te,
20020
- v,
20020
+ y,
20021
20021
  U,
20022
20022
  ie,
20023
20023
  _,
@@ -20031,10 +20031,10 @@ function _b(e) {
20031
20031
  "data-open": oe(R),
20032
20032
  "data-arrow": oe(k),
20033
20033
  "data-disabled": oe(f),
20034
- "data-placement": fn(te || "top", v),
20034
+ "data-placement": fn(te || "top", y),
20035
20035
  className: ue.content({ class: me(z?.content, K) })
20036
20036
  }),
20037
- [ue, R, k, f, te, v, z]
20037
+ [ue, R, k, f, te, y, z]
20038
20038
  );
20039
20039
  return {
20040
20040
  Component: I,
@@ -20044,7 +20044,7 @@ function _b(e) {
20044
20044
  triggerRef: $,
20045
20045
  showArrow: k,
20046
20046
  portalContainer: O,
20047
- placement: v,
20047
+ placement: y,
20048
20048
  disableAnimation: j,
20049
20049
  isDisabled: f,
20050
20050
  motionProps: M,
@@ -20083,7 +20083,7 @@ var Rb = () => import("./index-SfZMAM5z.js").then((e) => e.default), ec = Ye((e,
20083
20083
  } catch {
20084
20084
  g = /* @__PURE__ */ h.jsx("span", {}), bf("Tooltip must have only one child node. Please, check your code.");
20085
20085
  }
20086
- const { ref: b, id: m, style: v, ...w } = p(), P = /* @__PURE__ */ h.jsx("div", { ref: b, id: m, style: v, children: /* @__PURE__ */ h.jsx(
20086
+ const { ref: b, id: m, style: y, ...w } = p(), P = /* @__PURE__ */ h.jsx("div", { ref: b, id: m, style: y, children: /* @__PURE__ */ h.jsx(
20087
20087
  Qr.div,
20088
20088
  {
20089
20089
  animate: "enter",
@@ -20100,7 +20100,7 @@ var Rb = () => import("./index-SfZMAM5z.js").then((e) => e.default), ec = Ye((e,
20100
20100
  ) }, `${m}-tooltip-content`);
20101
20101
  return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
20102
20102
  g,
20103
- c ? s && /* @__PURE__ */ h.jsx(Xo, { portalContainer: l, children: /* @__PURE__ */ h.jsx("div", { ref: b, id: m, style: v, ...w, children: /* @__PURE__ */ h.jsx(n, { ...f(), children: o }) }) }) : /* @__PURE__ */ h.jsx(Zr, { features: Rb, children: /* @__PURE__ */ h.jsx(Ta, { children: s && /* @__PURE__ */ h.jsx(Xo, { portalContainer: l, children: P }) }) })
20103
+ c ? s && /* @__PURE__ */ h.jsx(Xo, { portalContainer: l, children: /* @__PURE__ */ h.jsx("div", { ref: b, id: m, style: y, ...w, children: /* @__PURE__ */ h.jsx(n, { ...f(), children: o }) }) }) : /* @__PURE__ */ h.jsx(Zr, { features: Rb, children: /* @__PURE__ */ h.jsx(Ta, { children: s && /* @__PURE__ */ h.jsx(Xo, { portalContainer: l, children: P }) }) })
20104
20104
  ] });
20105
20105
  });
20106
20106
  ec.displayName = "HeroUI.Tooltip";
@@ -20122,11 +20122,11 @@ function Ob(e, t) {
20122
20122
  placement: g = "top",
20123
20123
  containerPadding: b,
20124
20124
  shouldCloseOnInteractOutside: m,
20125
- isNonModal: v,
20125
+ isNonModal: y,
20126
20126
  isKeyboardDismissDisabled: w,
20127
20127
  updatePositionDeps: P = [],
20128
20128
  ...k
20129
- } = e, C = v ?? !0, A = k.trigger === "SubmenuTrigger", { overlayProps: D, underlayProps: T } = Qi(
20129
+ } = e, C = y ?? !0, A = k.trigger === "SubmenuTrigger", { overlayProps: D, underlayProps: T } = Qi(
20130
20130
  {
20131
20131
  isOpen: t.isOpen,
20132
20132
  onClose: t.close,
@@ -20189,7 +20189,7 @@ function jb(e) {
20189
20189
  onOpenChange: g,
20190
20190
  isOpen: b,
20191
20191
  isNonModal: m = !0,
20192
- shouldFlip: v = !0,
20192
+ shouldFlip: y = !0,
20193
20193
  containerPadding: w = 12,
20194
20194
  shouldBlockScroll: P = !1,
20195
20195
  isDismissable: k = !0,
@@ -20208,7 +20208,7 @@ function jb(e) {
20208
20208
  shouldCloseOnScroll: _,
20209
20209
  triggerAnchorPoint: I,
20210
20210
  motionProps: j,
20211
- className: y,
20211
+ className: v,
20212
20212
  classNames: $,
20213
20213
  onClose: x,
20214
20214
  ...N
@@ -20234,7 +20234,7 @@ function jb(e) {
20234
20234
  shouldCloseOnBlur: C,
20235
20235
  boundaryElement: E,
20236
20236
  crossOffset: K,
20237
- shouldFlip: v,
20237
+ shouldFlip: y,
20238
20238
  containerPadding: w,
20239
20239
  updatePositionDeps: D,
20240
20240
  isKeyboardDismissDisabled: M,
@@ -20248,7 +20248,7 @@ function jb(e) {
20248
20248
  ...s
20249
20249
  }),
20250
20250
  [yt(s)]
20251
- ), ye = me($?.base, y), Ee = {
20251
+ ), ye = me($?.base, v), Ee = {
20252
20252
  "--trigger-anchor-point": I ? `${I.x}px ${I.y}px` : void 0
20253
20253
  };
20254
20254
  kg({
@@ -20404,9 +20404,9 @@ var [Fb, tc] = yr({
20404
20404
  getContentProps: f,
20405
20405
  isNonModal: g,
20406
20406
  onClose: b
20407
- } = tc(), m = H(null), { dialogProps: v, titleProps: w } = Bb({}, m), P = u({
20407
+ } = tc(), m = H(null), { dialogProps: y, titleProps: w } = Bb({}, m), P = u({
20408
20408
  ref: m,
20409
- ...v,
20409
+ ...y,
20410
20410
  ...a
20411
20411
  }), k = t || o || "div", C = r && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
20412
20412
  !g && /* @__PURE__ */ h.jsx(Zo, { onDismiss: b }),
@@ -20752,7 +20752,7 @@ function Gb(e, t, r) {
20752
20752
  };
20753
20753
  }
20754
20754
  function Yb(e, t, r) {
20755
- let { id: n, key: a, closeOnSelect: o, shouldCloseOnSelect: s, isVirtualized: l, "aria-haspopup": i, onPressStart: c, onPressUp: d, onPress: u, onPressChange: p, onPressEnd: f, onClick: g, onHoverStart: b, onHoverChange: m, onHoverEnd: v, onKeyDown: w, onKeyUp: P, onFocus: k, onFocusChange: C, onBlur: A, selectionManager: D = t.selectionManager } = e, T = !!i, O = T && e["aria-expanded"] === "true";
20755
+ let { id: n, key: a, closeOnSelect: o, shouldCloseOnSelect: s, isVirtualized: l, "aria-haspopup": i, onPressStart: c, onPressUp: d, onPress: u, onPressChange: p, onPressEnd: f, onClick: g, onHoverStart: b, onHoverChange: m, onHoverEnd: y, onKeyDown: w, onKeyUp: P, onFocus: k, onFocusChange: C, onBlur: A, selectionManager: D = t.selectionManager } = e, T = !!i, O = T && e["aria-expanded"] === "true";
20756
20756
  var B;
20757
20757
  let F = (B = e.isDisabled) !== null && B !== void 0 ? B : D.isDisabled(a);
20758
20758
  var L;
@@ -20764,12 +20764,12 @@ function Yb(e, t, r) {
20764
20764
  }
20765
20765
  }, j = "menuitem";
20766
20766
  T || (D.selectionMode === "single" ? j = "menuitemradio" : D.selectionMode === "multiple" && (j = "menuitemcheckbox"));
20767
- let y = Ut(), $ = Ut(), x = Ut(), N = {
20767
+ let v = Ut(), $ = Ut(), x = Ut(), N = {
20768
20768
  id: n,
20769
20769
  "aria-disabled": F || void 0,
20770
20770
  role: j,
20771
20771
  "aria-label": e["aria-label"],
20772
- "aria-labelledby": y,
20772
+ "aria-labelledby": v,
20773
20773
  "aria-describedby": [
20774
20774
  e["aria-describedby"],
20775
20775
  $,
@@ -20821,7 +20821,7 @@ function Yb(e, t, r) {
20821
20821
  !dt() && !(O && i) && (D.setFocused(!0), D.setFocusedKey(a)), b?.(ae);
20822
20822
  },
20823
20823
  onHoverChange: m,
20824
- onHoverEnd: v
20824
+ onHoverEnd: y
20825
20825
  }), { keyboardProps: $e } = kl({
20826
20826
  onKeyDown: (ae) => {
20827
20827
  if (ae.repeat) {
@@ -20881,7 +20881,7 @@ function Yb(e, t, r) {
20881
20881
  tabIndex: te.tabIndex != null && O && !E.shouldUseVirtualFocus ? -1 : te.tabIndex
20882
20882
  },
20883
20883
  labelProps: {
20884
- id: y
20884
+ id: v
20885
20885
  },
20886
20886
  descriptionProps: {
20887
20887
  id: $
@@ -20934,7 +20934,7 @@ function Jb(e) {
20934
20934
  selectedIcon: g,
20935
20935
  className: b,
20936
20936
  classNames: m,
20937
- onAction: v,
20937
+ onAction: y,
20938
20938
  autoFocus: w,
20939
20939
  onPress: P,
20940
20940
  onPressStart: k,
@@ -20950,7 +20950,7 @@ function Jb(e) {
20950
20950
  onClose: E,
20951
20951
  onClick: M,
20952
20952
  ...z
20953
- } = a, _ = (r = (t = e.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, I = H(null), j = s || (z?.href ? "a" : "li"), y = typeof j == "string", { rendered: $, key: x } = l, N = i.disabledKeys.has(x) || e.isDisabled, R = i.selectionManager.selectionMode !== "none", V = Kc(), { isFocusVisible: Z, focusProps: U } = kr({
20953
+ } = a, _ = (r = (t = e.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, I = H(null), j = s || (z?.href ? "a" : "li"), v = typeof j == "string", { rendered: $, key: x } = l, N = i.disabledKeys.has(x) || e.isDisabled, R = i.selectionManager.selectionMode !== "none", V = Kc(), { isFocusVisible: Z, focusProps: U } = kr({
20954
20954
  autoFocus: w
20955
20955
  }), W = G(
20956
20956
  (Me) => {
@@ -20979,7 +20979,7 @@ function Jb(e) {
20979
20979
  "aria-label": a["aria-label"],
20980
20980
  closeOnSelect: K,
20981
20981
  isVirtualized: f,
20982
- onAction: v
20982
+ onAction: y
20983
20983
  },
20984
20984
  i,
20985
20985
  I
@@ -21008,7 +21008,7 @@ function Jb(e) {
21008
21008
  ...fe(
21009
21009
  L ? {} : U,
21010
21010
  tt(z, {
21011
- enabled: y
21011
+ enabled: v
21012
21012
  }),
21013
21013
  ze,
21014
21014
  De,
@@ -21081,7 +21081,7 @@ var Wc = (e) => {
21081
21081
  hideSelectedIcon: g,
21082
21082
  getItemProps: b,
21083
21083
  getLabelProps: m,
21084
- getDescriptionProps: v,
21084
+ getDescriptionProps: y,
21085
21085
  getKeyboardShortcutProps: w,
21086
21086
  getSelectedIconProps: P
21087
21087
  } = Jb(e), k = J(() => {
@@ -21092,7 +21092,7 @@ var Wc = (e) => {
21092
21092
  u,
21093
21093
  s ? /* @__PURE__ */ h.jsxs("div", { className: r.wrapper({ class: n?.wrapper }), children: [
21094
21094
  /* @__PURE__ */ h.jsx("span", { ...m(), children: a }),
21095
- /* @__PURE__ */ h.jsx("span", { ...v(), children: s })
21095
+ /* @__PURE__ */ h.jsx("span", { ...y(), children: s })
21096
21096
  ] }) : /* @__PURE__ */ h.jsx("span", { ...m(), children: a }),
21097
21097
  o && /* @__PURE__ */ h.jsx("kbd", { ...w(), children: o }),
21098
21098
  l && !g && /* @__PURE__ */ h.jsx("span", { ...P(), children: k }),
@@ -21122,12 +21122,12 @@ var Hc = Wc, Vc = Ye(
21122
21122
  title: g,
21123
21123
  ...b
21124
21124
  }, m) => {
21125
- const v = r || "li", w = J(() => Ii(), []), P = me(c?.base, i), k = me(c?.divider, p?.className), { itemProps: C, headingProps: A, groupProps: D } = qb({
21125
+ const y = r || "li", w = J(() => Ii(), []), P = me(c?.base, i), k = me(c?.divider, p?.className), { itemProps: C, headingProps: A, groupProps: D } = qb({
21126
21126
  heading: e.rendered,
21127
21127
  "aria-label": e["aria-label"]
21128
21128
  });
21129
21129
  return /* @__PURE__ */ h.jsxs(
21130
- v,
21130
+ y,
21131
21131
  {
21132
21132
  "data-slot": "base",
21133
21133
  ...fe(C, b),
@@ -21207,7 +21207,7 @@ function Qb(e) {
21207
21207
  topContent: g,
21208
21208
  bottomContent: b,
21209
21209
  hideEmptyContent: m = !1,
21210
- hideSelectedIcon: v = !1,
21210
+ hideSelectedIcon: y = !1,
21211
21211
  emptyContent: w = "No items.",
21212
21212
  menuProps: P,
21213
21213
  onClose: k,
@@ -21242,7 +21242,7 @@ function Qb(e) {
21242
21242
  ...I
21243
21243
  }),
21244
21244
  hideEmptyContent: m,
21245
- hideSelectedIcon: v,
21245
+ hideSelectedIcon: y,
21246
21246
  getEmptyContentProps: (I = {}) => ({
21247
21247
  children: w,
21248
21248
  className: K.emptyContent({ class: C?.emptyContent }),
@@ -21266,9 +21266,9 @@ var eh = Ye(function(t, r) {
21266
21266
  itemClasses: g,
21267
21267
  getBaseProps: b,
21268
21268
  getListProps: m,
21269
- getEmptyContentProps: v
21269
+ getEmptyContentProps: y
21270
21270
  } = Qb({ ...t, ref: r }), w = /* @__PURE__ */ h.jsxs(n, { ...m(), children: [
21271
- !a.collection.size && !c && /* @__PURE__ */ h.jsx("li", { children: /* @__PURE__ */ h.jsx("div", { ...v() }) }),
21271
+ !a.collection.size && !c && /* @__PURE__ */ h.jsx("li", { children: /* @__PURE__ */ h.jsx("div", { ...y() }) }),
21272
21272
  [...a.collection].map((P) => {
21273
21273
  const k = {
21274
21274
  closeOnSelect: o,
@@ -21360,7 +21360,7 @@ function ch(e) {
21360
21360
  classNames: g,
21361
21361
  disableAnimation: b = (t = r?.disableAnimation) != null ? t : !1,
21362
21362
  onClose: m,
21363
- className: v,
21363
+ className: y,
21364
21364
  ...w
21365
21365
  } = e, P = n || "div", k = H(null), C = a || k, A = H(null), D = H(null), T = sh({
21366
21366
  trigger: d,
@@ -21375,9 +21375,9 @@ function ch(e) {
21375
21375
  C
21376
21376
  ), F = J(
21377
21377
  () => qm({
21378
- className: v
21378
+ className: y
21379
21379
  }),
21380
- [v]
21380
+ [y]
21381
21381
  ), L = (z) => {
21382
21382
  z !== void 0 && !z || p && T.close();
21383
21383
  }, K = (z = {}) => {
@@ -21406,8 +21406,8 @@ function ch(e) {
21406
21406
  closeOnSelect: p,
21407
21407
  ...fe(z, {
21408
21408
  onAction: (I, j) => {
21409
- const y = ih(z, I, j);
21410
- L(y);
21409
+ const v = ih(z, I, j);
21410
+ L(v);
21411
21411
  },
21412
21412
  onClose: T.close
21413
21413
  })
@@ -21446,10 +21446,10 @@ function Bt(e, t, r) {
21446
21446
  n = d;
21447
21447
  let p;
21448
21448
  if (r.key && ((s = r.debug) != null && s.call(r)) && (p = Date.now()), a = t(...d), r.key && ((l = r.debug) != null && l.call(r))) {
21449
- const f = Math.round((Date.now() - c) * 100) / 100, g = Math.round((Date.now() - p) * 100) / 100, b = g / 16, m = (v, w) => {
21450
- for (v = String(v); v.length < w; )
21451
- v = " " + v;
21452
- return v;
21449
+ const f = Math.round((Date.now() - c) * 100) / 100, g = Math.round((Date.now() - p) * 100) / 100, b = g / 16, m = (y, w) => {
21450
+ for (y = String(y); y.length < w; )
21451
+ y = " " + y;
21452
+ return y;
21453
21453
  };
21454
21454
  console.info(
21455
21455
  `%c⏱ ${m(g, 5)} /${m(f, 5)} ms`,
@@ -21698,14 +21698,14 @@ class xh {
21698
21698
  this.pendingMeasuredCacheIndexes = [];
21699
21699
  const c = this.measurementsCache.slice(0, i);
21700
21700
  for (let d = i; d < r; d++) {
21701
- const u = o(d), p = this.options.lanes === 1 ? c[d - 1] : this.getFurthestMeasurement(c, d), f = p ? p.end + this.options.gap : n + a, g = l.get(u), b = typeof g == "number" ? g : this.options.estimateSize(d), m = f + b, v = p ? p.lane : d % this.options.lanes;
21701
+ const u = o(d), p = this.options.lanes === 1 ? c[d - 1] : this.getFurthestMeasurement(c, d), f = p ? p.end + this.options.gap : n + a, g = l.get(u), b = typeof g == "number" ? g : this.options.estimateSize(d), m = f + b, y = p ? p.lane : d % this.options.lanes;
21702
21702
  c[d] = {
21703
21703
  index: d,
21704
21704
  start: f,
21705
21705
  size: b,
21706
21706
  end: m,
21707
21707
  key: u,
21708
- lane: v
21708
+ lane: y
21709
21709
  };
21710
21710
  }
21711
21711
  return this.measurementsCache = c, c;
@@ -22097,15 +22097,15 @@ function Th(e, t) {
22097
22097
  if (t.focusedKey != null && !e.getItem(t.focusedKey) && r.current) {
22098
22098
  const d = r.current.getItem(t.focusedKey), u = [
22099
22099
  ...r.current.getKeys()
22100
- ].map((v) => {
22101
- const w = r.current.getItem(v);
22100
+ ].map((y) => {
22101
+ const w = r.current.getItem(y);
22102
22102
  return w?.type === "item" ? w : null;
22103
- }).filter((v) => v !== null), p = [
22103
+ }).filter((y) => y !== null), p = [
22104
22104
  ...e.getKeys()
22105
- ].map((v) => {
22106
- const w = e.getItem(v);
22105
+ ].map((y) => {
22106
+ const w = e.getItem(y);
22107
22107
  return w?.type === "item" ? w : null;
22108
- }).filter((v) => v !== null);
22108
+ }).filter((y) => y !== null);
22109
22109
  var n, a;
22110
22110
  const f = ((n = u?.length) !== null && n !== void 0 ? n : 0) - ((a = p?.length) !== null && a !== void 0 ? a : 0);
22111
22111
  var o, s, l;
@@ -22198,8 +22198,8 @@ function _h(e, t, r) {
22198
22198
  let g = (f = e.shouldFocusOnHover) !== null && f !== void 0 ? f : s?.shouldFocusOnHover;
22199
22199
  var b;
22200
22200
  let m = (b = e.shouldUseVirtualFocus) !== null && b !== void 0 ? b : s?.shouldUseVirtualFocus;
22201
- var v;
22202
- let w = (v = e.isVirtualized) !== null && v !== void 0 ? v : s?.isVirtualized, P = Ut(), k = Ut(), C = {
22201
+ var y;
22202
+ let w = (y = e.isVirtualized) !== null && y !== void 0 ? y : s?.isVirtualized, P = Ut(), k = Ut(), C = {
22203
22203
  role: "option",
22204
22204
  "aria-disabled": i || void 0,
22205
22205
  "aria-selected": t.selectionManager.selectionMode !== "none" ? d : void 0
@@ -22296,7 +22296,7 @@ function Oh(e) {
22296
22296
  topContent: g,
22297
22297
  bottomContent: b,
22298
22298
  emptyContent: m = "No items.",
22299
- hideSelectedIcon: v = !1,
22299
+ hideSelectedIcon: y = !1,
22300
22300
  hideEmptyContent: w = !1,
22301
22301
  shouldHighlightOnFocus: P = !1,
22302
22302
  classNames: k,
@@ -22314,7 +22314,7 @@ function Oh(e) {
22314
22314
  emptyContent: m,
22315
22315
  hideEmptyContent: w,
22316
22316
  shouldHighlightOnFocus: P,
22317
- hideSelectedIcon: v,
22317
+ hideSelectedIcon: y,
22318
22318
  disableAnimation: u,
22319
22319
  className: f,
22320
22320
  itemClasses: p,
@@ -22384,7 +22384,7 @@ function jh(e) {
22384
22384
  className: g,
22385
22385
  classNames: b,
22386
22386
  autoFocus: m,
22387
- onPress: v,
22387
+ onPress: y,
22388
22388
  onPressUp: w,
22389
22389
  onPressStart: P,
22390
22390
  onPressEnd: k,
@@ -22394,11 +22394,11 @@ function jh(e) {
22394
22394
  hideSelectedIcon: T = !1,
22395
22395
  isReadOnly: O = !1,
22396
22396
  ...B
22397
- } = a, F = (r = (t = e.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, L = H(null), K = s || (e.href ? "a" : "li"), E = typeof K == "string", { rendered: M, key: z } = l, _ = i.disabledKeys.has(z) || e.isDisabled, I = i.selectionManager.selectionMode !== "none", j = Kc(), { pressProps: y, isPressed: $ } = $r({
22397
+ } = a, F = (r = (t = e.disableAnimation) != null ? t : n?.disableAnimation) != null ? r : !1, L = H(null), K = s || (e.href ? "a" : "li"), E = typeof K == "string", { rendered: M, key: z } = l, _ = i.disabledKeys.has(z) || e.isDisabled, I = i.selectionManager.selectionMode !== "none", j = Kc(), { pressProps: v, isPressed: $ } = $r({
22398
22398
  ref: L,
22399
22399
  isDisabled: _,
22400
22400
  onClick: A,
22401
- onPress: v,
22401
+ onPress: y,
22402
22402
  onPressUp: w,
22403
22403
  onPressStart: P,
22404
22404
  onPressEnd: k,
@@ -22437,7 +22437,7 @@ function jh(e) {
22437
22437
  onFocusCapture: je,
22438
22438
  ...fe(
22439
22439
  ie,
22440
- O ? {} : fe(V, y),
22440
+ O ? {} : fe(V, v),
22441
22441
  N,
22442
22442
  tt(B, {
22443
22443
  enabled: E
@@ -22511,7 +22511,7 @@ var Jc = (e) => {
22511
22511
  getWrapperProps: g,
22512
22512
  getDescriptionProps: b,
22513
22513
  getSelectedIconProps: m
22514
- } = jh(e), v = J(() => {
22514
+ } = jh(e), y = J(() => {
22515
22515
  const w = /* @__PURE__ */ h.jsx(Lh, { disableAnimation: u, isSelected: o });
22516
22516
  return typeof l == "function" ? l({ icon: w, isSelected: o, isDisabled: s }) : l || w;
22517
22517
  }, [l, o, s, u]);
@@ -22521,7 +22521,7 @@ var Jc = (e) => {
22521
22521
  /* @__PURE__ */ h.jsx("span", { ...f(), children: r }),
22522
22522
  /* @__PURE__ */ h.jsx("span", { ...b(), children: n })
22523
22523
  ] }) : /* @__PURE__ */ h.jsx("span", { ...f(), children: r }),
22524
- a && !d && /* @__PURE__ */ h.jsx("span", { ...m(), children: v }),
22524
+ a && !d && /* @__PURE__ */ h.jsx("span", { ...m(), children: y }),
22525
22525
  c && /* @__PURE__ */ h.jsx("span", { "data-slot": "endContent", children: c })
22526
22526
  ] });
22527
22527
  };
@@ -22549,7 +22549,7 @@ var qa = Jc, Zc = Ye(
22549
22549
  items: f,
22550
22550
  ...g
22551
22551
  }, b) => {
22552
- const m = r || "li", v = J(() => Ii(), []), w = me(l?.base, s), P = me(l?.divider, d?.className), { itemProps: k, headingProps: C, groupProps: A } = Rh({
22552
+ const m = r || "li", y = J(() => Ii(), []), w = me(l?.base, s), P = me(l?.divider, d?.className), { itemProps: k, headingProps: C, groupProps: A } = Rh({
22553
22553
  heading: e.rendered,
22554
22554
  "aria-label": e["aria-label"]
22555
22555
  });
@@ -22558,13 +22558,13 @@ var qa = Jc, Zc = Ye(
22558
22558
  {
22559
22559
  "data-slot": "base",
22560
22560
  ...fe(k, g),
22561
- className: v.base({ class: w }),
22561
+ className: y.base({ class: w }),
22562
22562
  children: [
22563
22563
  e.rendered && /* @__PURE__ */ h.jsx(
22564
22564
  "span",
22565
22565
  {
22566
22566
  ...C,
22567
- className: v.heading({ class: l?.heading }),
22567
+ className: y.heading({ class: l?.heading }),
22568
22568
  "data-slot": "heading",
22569
22569
  children: e.rendered
22570
22570
  }
@@ -22573,7 +22573,7 @@ var qa = Jc, Zc = Ye(
22573
22573
  "ul",
22574
22574
  {
22575
22575
  ...A,
22576
- className: v.group({ class: l?.group }),
22576
+ className: y.group({ class: l?.group }),
22577
22577
  "data-has-title": !!e.rendered,
22578
22578
  "data-slot": "group",
22579
22579
  children: [
@@ -22599,7 +22599,7 @@ var qa = Jc, Zc = Ye(
22599
22599
  Be,
22600
22600
  {
22601
22601
  as: "li",
22602
- className: v.divider({
22602
+ className: y.divider({
22603
22603
  class: P
22604
22604
  }),
22605
22605
  ...d
@@ -22629,12 +22629,12 @@ function Bh(e = {}) {
22629
22629
  ee(() => {
22630
22630
  const c = t?.current;
22631
22631
  if (!c || !r) return;
22632
- const d = (f, g, b, m, v) => {
22632
+ const d = (f, g, b, m, y) => {
22633
22633
  if (a === "auto") {
22634
- const w = `${m}${pf(v)}Scroll`;
22635
- g && b ? (c.dataset[w] = "true", c.removeAttribute(`data-${m}-scroll`), c.removeAttribute(`data-${v}-scroll`)) : (c.dataset[`${m}Scroll`] = g.toString(), c.dataset[`${v}Scroll`] = b.toString(), c.removeAttribute(`data-${m}-${v}-scroll`));
22634
+ const w = `${m}${pf(y)}Scroll`;
22635
+ g && b ? (c.dataset[w] = "true", c.removeAttribute(`data-${m}-scroll`), c.removeAttribute(`data-${y}-scroll`)) : (c.dataset[`${m}Scroll`] = g.toString(), c.dataset[`${y}Scroll`] = b.toString(), c.removeAttribute(`data-${m}-${y}-scroll`));
22636
22636
  } else {
22637
- const w = g && b ? "both" : g ? m : b ? v : "none";
22637
+ const w = g && b ? "both" : g ? m : b ? y : "none";
22638
22638
  w !== i.current && (s?.(w), i.current = w);
22639
22639
  }
22640
22640
  }, u = () => {
@@ -22642,10 +22642,10 @@ function Bh(e = {}) {
22642
22642
  const b = [
22643
22643
  { type: "vertical", prefix: "top", suffix: "bottom" },
22644
22644
  { type: "horizontal", prefix: "left", suffix: "right" }
22645
- ], m = c.querySelector('ul[data-slot="list"]'), v = +((f = m?.getAttribute("data-virtual-scroll-height")) != null ? f : c.scrollHeight), w = +((g = m?.getAttribute("data-virtual-scroll-top")) != null ? g : c.scrollTop);
22645
+ ], m = c.querySelector('ul[data-slot="list"]'), y = +((f = m?.getAttribute("data-virtual-scroll-height")) != null ? f : c.scrollHeight), w = +((g = m?.getAttribute("data-virtual-scroll-top")) != null ? g : c.scrollTop);
22646
22646
  for (const { type: P, prefix: k, suffix: C } of b)
22647
22647
  if (n === P || n === "both") {
22648
- const A = P === "vertical" ? w > o : c.scrollLeft > o, D = P === "vertical" ? w + c.clientHeight + o < v : c.scrollLeft + c.clientWidth + o < c.scrollWidth;
22648
+ const A = P === "vertical" ? w > o : c.scrollLeft > o, D = P === "vertical" ? w + c.clientHeight + o < y : c.scrollLeft + c.clientWidth + o < c.scrollWidth;
22649
22649
  d(P, A, D, k, C);
22650
22650
  }
22651
22651
  }, p = () => {
@@ -22684,18 +22684,18 @@ function Fh(e) {
22684
22684
  updateDeps: [s],
22685
22685
  overflowCheck: (t = e.orientation) != null ? t : "vertical"
22686
22686
  });
22687
- const v = J(
22687
+ const y = J(
22688
22688
  () => ls({
22689
22689
  ...n,
22690
22690
  className: l
22691
22691
  }),
22692
22692
  [yt(n), l]
22693
22693
  );
22694
- return { Component: b, styles: v, domRef: m, children: s, getBaseProps: (P = {}) => {
22694
+ return { Component: b, styles: y, domRef: m, children: s, getBaseProps: (P = {}) => {
22695
22695
  var k;
22696
22696
  return {
22697
22697
  ref: m,
22698
- className: v,
22698
+ className: y,
22699
22699
  "data-orientation": (k = e.orientation) != null ? k : "vertical",
22700
22700
  style: {
22701
22701
  "--scroll-shadow-size": `${c}px`,
@@ -22743,12 +22743,12 @@ var Kh = (e, t) => {
22743
22743
  getEmptyContentProps: g,
22744
22744
  getListProps: b,
22745
22745
  scrollShadowProps: m
22746
- } = e, { virtualization: v } = e;
22747
- if (!v || !df(v) && !v.maxListboxHeight && !v.itemHeight)
22746
+ } = e, { virtualization: y } = e;
22747
+ if (!y || !df(y) && !y.maxListboxHeight && !y.itemHeight)
22748
22748
  throw new Error(
22749
22749
  "You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox."
22750
22750
  );
22751
- const { maxListboxHeight: w, itemHeight: P } = v, k = Math.min(w, P * n.collection.size), C = H(null), A = J(
22751
+ const { maxListboxHeight: w, itemHeight: P } = y, k = Math.min(w, P * n.collection.size), C = H(null), A = J(
22752
22752
  () => Kh([...n.collection], P),
22753
22753
  [n.collection, P]
22754
22754
  ), D = kh({
@@ -22786,7 +22786,7 @@ var Kh = (e, t) => {
22786
22786
  },
22787
22787
  _.key
22788
22788
  );
22789
- let y = /* @__PURE__ */ h.jsx(
22789
+ let v = /* @__PURE__ */ h.jsx(
22790
22790
  qa,
22791
22791
  {
22792
22792
  ...I,
@@ -22796,7 +22796,7 @@ var Kh = (e, t) => {
22796
22796
  },
22797
22797
  _.key
22798
22798
  );
22799
- return _.wrapper && (y = _.wrapper(y)), y;
22799
+ return _.wrapper && (v = _.wrapper(v)), v;
22800
22800
  }, [L, K] = ne({
22801
22801
  isTop: !1,
22802
22802
  isBottom: !0,
@@ -22855,7 +22855,7 @@ var Kh = (e, t) => {
22855
22855
  hideEmptyContent: g,
22856
22856
  hideSelectedIcon: b,
22857
22857
  shouldHighlightOnFocus: m,
22858
- disableAnimation: v,
22858
+ disableAnimation: y,
22859
22859
  getEmptyContentProps: w,
22860
22860
  getListProps: P
22861
22861
  } = o;
@@ -22870,7 +22870,7 @@ var Kh = (e, t) => {
22870
22870
  item: C,
22871
22871
  state: l,
22872
22872
  variant: c,
22873
- disableAnimation: v,
22873
+ disableAnimation: y,
22874
22874
  hideSelectedIcon: b,
22875
22875
  ...C.props
22876
22876
  };
@@ -23352,14 +23352,14 @@ var bv = (e) => !("type" in e), hv = (e, t, r) => ({ tr: n, dispatch: a, editor:
23352
23352
  b = t.map((m) => m.text || "").join("");
23353
23353
  else if (t instanceof ht) {
23354
23354
  let m = "";
23355
- t.forEach((v) => {
23356
- v.text && (m += v.text);
23355
+ t.forEach((y) => {
23356
+ y.text && (m += y.text);
23357
23357
  }), b = m;
23358
23358
  } else typeof t == "object" && t && t.text ? b = t.text : b = t;
23359
23359
  n.insertText(b, d, u);
23360
23360
  } else {
23361
23361
  b = l;
23362
- const m = n.doc.resolve(d), v = m.node(), w = m.parentOffset === 0, P = v.isText || v.isTextblock, k = v.content.size > 0;
23362
+ const m = n.doc.resolve(d), y = m.node(), w = m.parentOffset === 0, P = y.isText || y.isTextblock, k = y.content.size > 0;
23363
23363
  w && P && k && (d = Math.max(0, d - 1)), n.replaceWith(d, u, b);
23364
23364
  }
23365
23365
  r.updateSelection && mv(n, n.steps.length - 1, -1), r.applyInputRules && n.setMeta("applyInputRules", { from: d, text: b }), r.applyPasteRules && n.setMeta("applyPasteRules", { from: d, text: b });
@@ -23709,11 +23709,11 @@ function Jv(e, t, r = {}) {
23709
23709
  return !1;
23710
23710
  if (!b.isText && !b.marks.length)
23711
23711
  return;
23712
- const v = Math.max(f, m), w = Math.min(g, m + b.nodeSize), P = w - v;
23712
+ const y = Math.max(f, m), w = Math.min(g, m + b.nodeSize), P = w - y;
23713
23713
  s += P, l.push(
23714
23714
  ...b.marks.map((k) => ({
23715
23715
  mark: k,
23716
- from: v,
23716
+ from: y,
23717
23717
  to: w
23718
23718
  }))
23719
23719
  );
@@ -23760,7 +23760,7 @@ function fd(e, {
23760
23760
  return !1;
23761
23761
  }
23762
23762
  function pd(e, t, r) {
23763
- const a = e.state.doc.content.size, o = it(t, 0, a), s = it(r, 0, a), l = e.coordsAtPos(o), i = e.coordsAtPos(s, -1), c = Math.min(l.top, i.top), d = Math.max(l.bottom, i.bottom), u = Math.min(l.left, i.left), p = Math.max(l.right, i.right), f = p - u, g = d - c, v = {
23763
+ const a = e.state.doc.content.size, o = it(t, 0, a), s = it(r, 0, a), l = e.coordsAtPos(o), i = e.coordsAtPos(s, -1), c = Math.min(l.top, i.top), d = Math.max(l.bottom, i.bottom), u = Math.min(l.left, i.left), p = Math.max(l.right, i.right), f = p - u, g = d - c, y = {
23764
23764
  top: c,
23765
23765
  bottom: d,
23766
23766
  left: u,
@@ -23771,8 +23771,8 @@ function pd(e, t, r) {
23771
23771
  y: c
23772
23772
  };
23773
23773
  return {
23774
- ...v,
23775
- toJSON: () => v
23774
+ ...y,
23775
+ toJSON: () => y
23776
23776
  };
23777
23777
  }
23778
23778
  function Zv(e, t, r) {
@@ -23813,12 +23813,12 @@ var Qv = (e, t = {}) => ({ tr: r, state: n, dispatch: a }) => {
23813
23813
  const d = c.$from.pos, u = c.$to.pos;
23814
23814
  n.doc.nodesBetween(d, u, (p, f) => {
23815
23815
  const g = Math.max(f, d), b = Math.min(f + p.nodeSize, u);
23816
- p.marks.find((v) => v.type === i) ? p.marks.forEach((v) => {
23817
- i === v.type && r.addMark(
23816
+ p.marks.find((y) => y.type === i) ? p.marks.forEach((y) => {
23817
+ i === y.type && r.addMark(
23818
23818
  g,
23819
23819
  b,
23820
23820
  i.create({
23821
- ...v.attrs,
23821
+ ...y.attrs,
23822
23822
  ...t
23823
23823
  })
23824
23824
  );
@@ -23901,10 +23901,10 @@ var s0 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: r, dispatch: n, editor
23901
23901
  if (i.depth === 2 || i.node(-3).type !== l || i.index(-2) !== i.node(-2).childCount - 1)
23902
23902
  return !1;
23903
23903
  if (a) {
23904
- let v = ht.empty;
23904
+ let y = ht.empty;
23905
23905
  const w = i.index(-1) ? 1 : i.index(-2) ? 2 : 3;
23906
23906
  for (let T = i.depth - w; T >= i.depth - 3; T -= 1)
23907
- v = ht.from(i.node(T).copy(v));
23907
+ y = ht.from(i.node(T).copy(y));
23908
23908
  const P = (
23909
23909
  // eslint-disable-next-line no-nested-ternary
23910
23910
  i.indexAfter(-1) < i.node(-2).childCount ? 1 : i.indexAfter(-2) < i.node(-3).childCount ? 2 : 3
@@ -23912,9 +23912,9 @@ var s0 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: r, dispatch: n, editor
23912
23912
  ...Xr(p, i.node().type.name, i.node().attrs),
23913
23913
  ...t
23914
23914
  }, C = ((s = l.contentMatch.defaultType) == null ? void 0 : s.createAndFill(k)) || void 0;
23915
- v = v.append(ht.from(l.createAndFill(null, C) || void 0));
23915
+ y = y.append(ht.from(l.createAndFill(null, C) || void 0));
23916
23916
  const A = i.before(i.depth - (w - 1));
23917
- r.replace(A, i.after(-P), new hu(v, 4 - w, 0));
23917
+ r.replace(A, i.after(-P), new hu(y, 4 - w, 0));
23918
23918
  let D = -1;
23919
23919
  r.doc.nodesBetween(A, r.doc.content.size, (T, O) => {
23920
23920
  if (D > -1)
@@ -23939,7 +23939,7 @@ var s0 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: r, dispatch: n, editor
23939
23939
  if (!Ur(r.doc, i.pos, 2))
23940
23940
  return !1;
23941
23941
  if (a) {
23942
- const { selection: v, storedMarks: w } = n, { splittableMarks: P } = o.extensionManager, k = w || v.$to.parentOffset && v.$from.marks();
23942
+ const { selection: y, storedMarks: w } = n, { splittableMarks: P } = o.extensionManager, k = w || y.$to.parentOffset && y.$from.marks();
23943
23943
  if (r.split(i.pos, 2, m).scrollIntoView(), !k || !a)
23944
23944
  return !0;
23945
23945
  const C = k.filter((A) => P.includes(A.type.name));
@@ -23965,7 +23965,7 @@ var s0 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: r, dispatch: n, editor
23965
23965
  const a = e.doc.nodeAt(n);
23966
23966
  return r.node.type === a?.type && Ws(e.doc, n) && e.join(n), !0;
23967
23967
  }, i0 = (e, t, r, n = {}) => ({ editor: a, tr: o, state: s, dispatch: l, chain: i, commands: c, can: d }) => {
23968
- const { extensions: u, splittableMarks: p } = a.extensionManager, f = Ie(e, s.schema), g = Ie(t, s.schema), { selection: b, storedMarks: m } = s, { $from: v, $to: w } = b, P = v.blockRange(w), k = m || b.$to.parentOffset && b.$from.marks();
23968
+ const { extensions: u, splittableMarks: p } = a.extensionManager, f = Ie(e, s.schema), g = Ie(t, s.schema), { selection: b, storedMarks: m } = s, { $from: y, $to: w } = b, P = y.blockRange(w), k = m || b.$to.parentOffset && b.$from.marks();
23969
23969
  if (!P)
23970
23970
  return !1;
23971
23971
  const C = Qa((A) => Es(A.type.name, u))(b);
@@ -24050,15 +24050,15 @@ var s0 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: r, dispatch: n, editor
24050
24050
  return r.selection.ranges.forEach((c) => {
24051
24051
  const d = c.$from.pos, u = c.$to.pos;
24052
24052
  let p, f, g, b;
24053
- r.selection.empty ? n.doc.nodesBetween(d, u, (m, v) => {
24054
- o && o === m.type && (i = !0, g = Math.max(v, d), b = Math.min(v + m.nodeSize, u), p = v, f = m);
24055
- }) : n.doc.nodesBetween(d, u, (m, v) => {
24056
- v < d && o && o === m.type && (i = !0, g = Math.max(v, d), b = Math.min(v + m.nodeSize, u), p = v, f = m), v >= d && v <= u && (o && o === m.type && (i = !0, a && r.setNodeMarkup(v, void 0, {
24053
+ r.selection.empty ? n.doc.nodesBetween(d, u, (m, y) => {
24054
+ o && o === m.type && (i = !0, g = Math.max(y, d), b = Math.min(y + m.nodeSize, u), p = y, f = m);
24055
+ }) : n.doc.nodesBetween(d, u, (m, y) => {
24056
+ y < d && o && o === m.type && (i = !0, g = Math.max(y, d), b = Math.min(y + m.nodeSize, u), p = y, f = m), y >= d && y <= u && (o && o === m.type && (i = !0, a && r.setNodeMarkup(y, void 0, {
24057
24057
  ...m.attrs,
24058
24058
  ...t
24059
24059
  })), s && m.marks.length && m.marks.forEach((w) => {
24060
24060
  if (s === w.type && (i = !0, a)) {
24061
- const P = Math.max(v, d), k = Math.min(v + m.nodeSize, u);
24061
+ const P = Math.max(y, d), k = Math.min(y + m.nodeSize, u);
24062
24062
  r.addMark(
24063
24063
  P,
24064
24064
  k,
@@ -24215,7 +24215,7 @@ var Ne = class bd extends md {
24215
24215
  const d = Wv(e.before, [e, ...t]);
24216
24216
  Xv(d).forEach((f) => {
24217
24217
  d.mapping.mapResult(f.oldRange.from).deletedAfter && d.mapping.mapResult(f.oldRange.to).deletedBefore && d.before.nodesBetween(f.oldRange.from, f.oldRange.to, (g, b) => {
24218
- const m = b + g.nodeSize - 2, v = f.oldRange.from <= b && m <= f.oldRange.to;
24218
+ const m = b + g.nodeSize - 2, y = f.oldRange.from <= b && m <= f.oldRange.to;
24219
24219
  this.editor.emit("delete", {
24220
24220
  type: "node",
24221
24221
  node: g,
@@ -24225,7 +24225,7 @@ var Ne = class bd extends md {
24225
24225
  newTo: d.mapping.map(m),
24226
24226
  deletedRange: f.oldRange,
24227
24227
  newRange: f.newRange,
24228
- partial: !v,
24228
+ partial: !y,
24229
24229
  editor: this.editor,
24230
24230
  transaction: e,
24231
24231
  combinedTransform: d
@@ -24236,7 +24236,7 @@ var Ne = class bd extends md {
24236
24236
  d.steps.forEach((f, g) => {
24237
24237
  var b, m;
24238
24238
  if (f instanceof Yd) {
24239
- const v = p.slice(g).map(f.from, -1), w = p.slice(g).map(f.to), P = p.invert().map(v, -1), k = p.invert().map(w), C = (b = d.doc.nodeAt(v - 1)) == null ? void 0 : b.marks.some((D) => D.eq(f.mark)), A = (m = d.doc.nodeAt(w)) == null ? void 0 : m.marks.some((D) => D.eq(f.mark));
24239
+ const y = p.slice(g).map(f.from, -1), w = p.slice(g).map(f.to), P = p.invert().map(y, -1), k = p.invert().map(w), C = (b = d.doc.nodeAt(y - 1)) == null ? void 0 : b.marks.some((D) => D.eq(f.mark)), A = (m = d.doc.nodeAt(w)) == null ? void 0 : m.marks.some((D) => D.eq(f.mark));
24240
24240
  this.editor.emit("delete", {
24241
24241
  type: "mark",
24242
24242
  mark: f.mark,
@@ -24247,7 +24247,7 @@ var Ne = class bd extends md {
24247
24247
  to: k
24248
24248
  },
24249
24249
  newRange: {
24250
- from: v,
24250
+ from: y,
24251
24251
  to: w
24252
24252
  },
24253
24253
  partial: !!(A || C),
@@ -24322,8 +24322,8 @@ var Ne = class bd extends md {
24322
24322
  () => s.undoInputRule(),
24323
24323
  // maybe convert first text block node to default node
24324
24324
  () => s.command(({ tr: l }) => {
24325
- const { selection: i, doc: c } = l, { empty: d, $anchor: u } = i, { pos: p, parent: f } = u, g = u.parent.isTextblock && p > 0 ? l.doc.resolve(p - 1) : u, b = g.parent.type.spec.isolating, m = u.pos - u.parentOffset, v = b && g.parent.childCount === 1 ? m === u.pos : Ht.atStart(c).from === p;
24326
- return !d || !f.type.isTextblock || f.textContent.length || !v || v && u.parent.type.name === "paragraph" ? !1 : s.clearNodes();
24325
+ const { selection: i, doc: c } = l, { empty: d, $anchor: u } = i, { pos: p, parent: f } = u, g = u.parent.isTextblock && p > 0 ? l.doc.resolve(p - 1) : u, b = g.parent.type.spec.isolating, m = u.pos - u.parentOffset, y = b && g.parent.childCount === 1 ? m === u.pos : Ht.atStart(c).from === p;
24326
+ return !d || !f.type.isTextblock || f.textContent.length || !y || y && u.parent.type.name === "paragraph" ? !1 : s.clearNodes();
24327
24327
  }),
24328
24328
  () => s.deleteSelection(),
24329
24329
  () => s.joinBackward(),
@@ -24596,9 +24596,9 @@ function D0(e) {
24596
24596
  const b = new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*\\n`), m = u.match(b);
24597
24597
  if (!m)
24598
24598
  return;
24599
- const [v, w = ""] = m, P = a(w);
24599
+ const [y, w = ""] = m, P = a(w);
24600
24600
  let k = 1;
24601
- const C = v.length;
24601
+ const C = y.length;
24602
24602
  let A = "";
24603
24603
  const D = /^:::([\w-]*)(\s.*)?/gm, T = u.slice(C);
24604
24604
  for (D.lastIndex = 0; ; ) {
@@ -24682,10 +24682,10 @@ function R0(e) {
24682
24682
  return i.forEach((g) => {
24683
24683
  const b = typeof g == "string" ? g : g.name, m = typeof g == "string" ? void 0 : g.skipIfDefault;
24684
24684
  if (b in p) {
24685
- const v = p[b];
24686
- if (m !== void 0 && v === m)
24685
+ const y = p[b];
24686
+ if (m !== void 0 && y === m)
24687
24687
  return;
24688
- f[b] = v;
24688
+ f[b] = y;
24689
24689
  }
24690
24690
  }), f;
24691
24691
  }, u = c.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
@@ -24708,26 +24708,26 @@ function R0(e) {
24708
24708
  const b = l ? new RegExp(`^\\[${u}\\s*([^\\]]*)\\]`) : new RegExp(`^\\[${u}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${u}\\]`), m = p.match(b);
24709
24709
  if (!m)
24710
24710
  return;
24711
- let v = "", w = "";
24711
+ let y = "", w = "";
24712
24712
  if (l) {
24713
24713
  const [, k] = m;
24714
24714
  w = k;
24715
24715
  } else {
24716
24716
  const [, k, C] = m;
24717
- w = k, v = C || "";
24717
+ w = k, y = C || "";
24718
24718
  }
24719
24719
  const P = a(w.trim());
24720
24720
  return {
24721
24721
  type: t,
24722
24722
  raw: m[0],
24723
- content: v.trim(),
24723
+ content: y.trim(),
24724
24724
  attributes: P
24725
24725
  };
24726
24726
  }
24727
24727
  },
24728
24728
  renderMarkdown: (p) => {
24729
24729
  let f = "";
24730
- n ? f = n(p) : p.content && p.content.length > 0 && (f = p.content.filter((v) => v.type === "text").map((v) => v.text).join(""));
24730
+ n ? f = n(p) : p.content && p.content.length > 0 && (f = p.content.filter((y) => y.type === "text").map((y) => y.text).join(""));
24731
24731
  const g = d(p.attrs || {}), b = o(g), m = b ? ` ${b}` : "";
24732
24732
  return l ? `[${c}${m}]` : `[${c}${m}]${f}[/${c}]`;
24733
24733
  }
@@ -24754,7 +24754,7 @@ function O0(e, t, r) {
24754
24754
  const g = t.extractItemData(f), { indentLevel: b, mainContent: m } = g;
24755
24755
  c = `${c}${p}
24756
24756
  `;
24757
- const v = [m];
24757
+ const y = [m];
24758
24758
  for (d += 1; d < l.length; ) {
24759
24759
  const C = l[d];
24760
24760
  if (C.trim() === "") {
@@ -24762,20 +24762,20 @@ function O0(e, t, r) {
24762
24762
  if (D === -1)
24763
24763
  break;
24764
24764
  if ((((a = (n = l[d + 1 + D].match(/^(\s*)/)) == null ? void 0 : n[1]) == null ? void 0 : a.length) || 0) > b) {
24765
- v.push(C), c = `${c}${C}
24765
+ y.push(C), c = `${c}${C}
24766
24766
  `, d += 1;
24767
24767
  continue;
24768
24768
  } else
24769
24769
  break;
24770
24770
  }
24771
24771
  if ((((s = (o = C.match(/^(\s*)/)) == null ? void 0 : o[1]) == null ? void 0 : s.length) || 0) > b)
24772
- v.push(C), c = `${c}${C}
24772
+ y.push(C), c = `${c}${C}
24773
24773
  `, d += 1;
24774
24774
  else
24775
24775
  break;
24776
24776
  }
24777
24777
  let w;
24778
- const P = v.slice(1);
24778
+ const P = y.slice(1);
24779
24779
  if (P.length > 0) {
24780
24780
  const C = P.map((A) => A.slice(b + u)).join(`
24781
24781
  `);
@@ -25237,7 +25237,7 @@ var Cd = Q.forwardRef(
25237
25237
  options: l
25238
25238
  }, m = H(b);
25239
25239
  m.current = b;
25240
- const [v, w] = ne(!1), P = H(!0);
25240
+ const [y, w] = ne(!1), P = H(!0);
25241
25241
  return ee(() => {
25242
25242
  if (g?.isDestroyed)
25243
25243
  return;
@@ -25260,7 +25260,7 @@ var Cd = Q.forwardRef(
25260
25260
  });
25261
25261
  };
25262
25262
  }, [g]), ee(() => {
25263
- if (!(!v || !g || g.isDestroyed)) {
25263
+ if (!(!y || !g || g.isDestroyed)) {
25264
25264
  if (P.current) {
25265
25265
  P.current = !1;
25266
25266
  return;
@@ -25273,7 +25273,7 @@ var Cd = Q.forwardRef(
25273
25273
  );
25274
25274
  }
25275
25275
  }, [
25276
- v,
25276
+ y,
25277
25277
  g,
25278
25278
  r,
25279
25279
  n,
@@ -25298,7 +25298,7 @@ Q.forwardRef(
25298
25298
  options: s
25299
25299
  }, b = H(g);
25300
25300
  b.current = g;
25301
- const [m, v] = ne(!1), w = H(!0);
25301
+ const [m, y] = ne(!1), w = H(!0);
25302
25302
  return ee(() => {
25303
25303
  if (f?.isDestroyed)
25304
25304
  return;
@@ -25317,8 +25317,8 @@ Q.forwardRef(
25317
25317
  });
25318
25318
  f.registerPlugin(k);
25319
25319
  const C = b.current.pluginKey;
25320
- return w.current = !0, v(!0), () => {
25321
- v(!1), f.unregisterPlugin(C), window.requestAnimationFrame(() => {
25320
+ return w.current = !0, y(!0), () => {
25321
+ y(!1), f.unregisterPlugin(C), window.requestAnimationFrame(() => {
25322
25322
  P.parentNode && P.parentNode.removeChild(P);
25323
25323
  });
25324
25324
  };
@@ -26488,11 +26488,11 @@ const Ad = (e, t) => {
26488
26488
  g.dispatch(m);
26489
26489
  }, [n, e, t]), p = G(
26490
26490
  (f, g) => {
26491
- const b = f.state.doc.resolve(g), m = b.nodeAfter || b.parent, v = g + m.nodeSize;
26492
- f.chain().focus(v, { scrollIntoView: !0 }).insertContentAt(v, {
26491
+ const b = f.state.doc.resolve(g), m = b.nodeAfter || b.parent, y = g + m.nodeSize;
26492
+ f.chain().focus(y, { scrollIntoView: !0 }).insertContentAt(y, {
26493
26493
  type: "paragraph",
26494
26494
  content: [{ type: "text", text: "/" }]
26495
- }).setTextSelection(v + 2).run();
26495
+ }).setTextSelection(y + 2).run();
26496
26496
  },
26497
26497
  []
26498
26498
  );
@@ -26830,15 +26830,15 @@ function Is(e, t, r, n, a, o) {
26830
26830
  for (let p = 0, f = 0; p < d.childCount; p += 1) {
26831
26831
  const { colspan: g, colwidth: b } = d.child(p).attrs;
26832
26832
  for (let m = 0; m < g; m += 1, f += 1) {
26833
- const v = a === f ? o : b && b[m], w = v ? `${v}px` : "";
26834
- if (l += v || n, v || (i = !1), c) {
26833
+ const y = a === f ? o : b && b[m], w = y ? `${y}px` : "";
26834
+ if (l += y || n, y || (i = !1), c) {
26835
26835
  if (c.style.width !== w) {
26836
- const [P, k] = $a(n, v);
26836
+ const [P, k] = $a(n, y);
26837
26837
  c.style.setProperty(P, k);
26838
26838
  }
26839
26839
  c = c.nextSibling;
26840
26840
  } else {
26841
- const P = document.createElement("col"), [k, C] = $a(n, v);
26841
+ const P = document.createElement("col"), [k, C] = $a(n, y);
26842
26842
  P.style.setProperty(k, C), t.appendChild(P);
26843
26843
  }
26844
26844
  }
@@ -26872,8 +26872,8 @@ function Gy(e, t, r, n) {
26872
26872
  for (let b = 0; b < f; b += 1, p += 1) {
26873
26873
  const m = r === p ? n : g && g[b];
26874
26874
  a += m || t, m || (o = !1);
26875
- const [v, w] = $a(t, m);
26876
- s.push(["col", { style: `${v}: ${w}` }]);
26875
+ const [y, w] = $a(t, m);
26876
+ s.push(["col", { style: `${y}: ${w}` }]);
26877
26877
  }
26878
26878
  }
26879
26879
  const i = o ? `${a}px` : "", c = o ? "" : `${a}px`;
@@ -26932,9 +26932,9 @@ function Qy(e, t, r = {}) {
26932
26932
  e.content.forEach((g) => {
26933
26933
  const b = [];
26934
26934
  g.content && g.content.forEach((m) => {
26935
- let v = "";
26936
- m.content && Array.isArray(m.content) && m.content.length > 1 ? v = m.content.map((C) => t.renderChildren(C)).join(a) : v = m.content ? t.renderChildren(m.content) : "";
26937
- const w = Zy(v), P = m.type === "tableHeader";
26935
+ let y = "";
26936
+ m.content && Array.isArray(m.content) && m.content.length > 1 ? y = m.content.map((C) => t.renderChildren(C)).join(a) : y = m.content ? t.renderChildren(m.content) : "";
26937
+ const w = Zy(y), P = m.type === "tableHeader";
26938
26938
  b.push({ text: w, isHeader: P });
26939
26939
  }), o.push(b);
26940
26940
  });
@@ -27229,7 +27229,7 @@ const ox = hn(({ items: e, command: t }, r) => {
27229
27229
  ];
27230
27230
  }
27231
27231
  }), ix = (e) => {
27232
- const t = H(0), r = H(null), n = H(null), [a, o] = ne(!1), { editor: s, node: l } = e, { uploading: i, src: c, failed: d, progress: u, selectMedia: p, id: f, errorMessage: g, name: b, size: m } = l.attrs, v = () => {
27232
+ const t = H(0), r = H(null), n = H(null), [a, o] = ne(!1), { editor: s, node: l } = e, { uploading: i, src: c, failed: d, progress: u, selectMedia: p, id: f, errorMessage: g, name: b, size: m } = l.attrs, y = () => {
27233
27233
  n.current?.click();
27234
27234
  }, w = (T) => {
27235
27235
  if (i) return;
@@ -27298,7 +27298,7 @@ const ox = hn(({ items: e, command: t }, r) => {
27298
27298
  onChange: w
27299
27299
  }
27300
27300
  ),
27301
- p && !i && /* @__PURE__ */ h.jsxs("div", { onClick: v, className: "flex flex-col gap-2 items-center justify-center", children: [
27301
+ p && !i && /* @__PURE__ */ h.jsxs("div", { onClick: y, className: "flex flex-col gap-2 items-center justify-center", children: [
27302
27302
  /* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(
27303
27303
  Pe,
27304
27304
  {
@@ -27507,8 +27507,8 @@ const px = Ne.create({
27507
27507
  if (!i?.includes(r.type))
27508
27508
  d = `Unsupported file type: ${r.type}`;
27509
27509
  else if (r.size >= c) {
27510
- const v = Math.round(c / 1048576);
27511
- d = `File too large: ${(r.size / (1024 * 1024)).toFixed(2)}MB. Maximum size is ${v}MB.`;
27510
+ const y = Math.round(c / 1048576);
27511
+ d = `File too large: ${(r.size / (1024 * 1024)).toFixed(2)}MB. Maximum size is ${y}MB.`;
27512
27512
  }
27513
27513
  if (d) {
27514
27514
  if (!a)
@@ -27545,21 +27545,21 @@ const px = Ne.create({
27545
27545
  },
27546
27546
  o
27547
27547
  );
27548
- const p = (v) => {
27549
- u() && Jr(t, { id: n, pos: o }, v);
27550
- }, f = (v) => {
27551
- u() && (p({ uploading: !1, failed: !1, src: v, progress: 100 }), e.delete(n));
27552
- }, g = (v = "Upload failed") => {
27553
- u() && (p({ uploading: !1, failed: !0, errorMessage: v, progress: 0 }), e.delete(n));
27548
+ const p = (y) => {
27549
+ u() && Jr(t, { id: n, pos: o }, y);
27550
+ }, f = (y) => {
27551
+ u() && (p({ uploading: !1, failed: !1, src: y, progress: 100 }), e.delete(n));
27552
+ }, g = (y = "Upload failed") => {
27553
+ u() && (p({ uploading: !1, failed: !0, errorMessage: y, progress: 0 }), e.delete(n));
27554
27554
  }, b = () => {
27555
27555
  Jr(
27556
27556
  t,
27557
27557
  { id: n, pos: o },
27558
27558
  { uploading: !1, failed: !0, errorMessage: "Upload cancelled", progress: 0 }
27559
27559
  ), e.delete(n);
27560
- }, m = (v, w) => {
27560
+ }, m = (y, w) => {
27561
27561
  const P = e.get(n);
27562
- return !P || P.cancelled ? !1 : (p({ progress: v }), !0);
27562
+ return !P || P.cancelled ? !1 : (p({ progress: y }), !0);
27563
27563
  };
27564
27564
  (async () => {
27565
27565
  try {
@@ -27582,18 +27582,18 @@ const px = Ne.create({
27582
27582
  }), B = setTimeout(F, T);
27583
27583
  return;
27584
27584
  }
27585
- const v = new AbortController();
27585
+ const y = new AbortController();
27586
27586
  e.set(n, {
27587
27587
  cancelled: !1,
27588
27588
  cleanup: () => {
27589
- v.abort();
27589
+ y.abort();
27590
27590
  }
27591
27591
  });
27592
27592
  const w = await xy({
27593
27593
  file: r,
27594
27594
  url: s,
27595
27595
  onProgress: m,
27596
- signal: v.signal
27596
+ signal: y.signal
27597
27597
  });
27598
27598
  if (e.get(n)?.cancelled) {
27599
27599
  b();
@@ -27605,8 +27605,8 @@ const px = Ne.create({
27605
27605
  if (!k) throw new Error("No URL returned from server");
27606
27606
  if (typeof k != "string") throw new Error("The upload response resolver must return a string URL");
27607
27607
  f(k);
27608
- } catch (v) {
27609
- v instanceof Error && (v.name === "AbortError" ? b() : g(v.message));
27608
+ } catch (y) {
27609
+ y instanceof Error && (y.name === "AbortError" ? b() : g(y.message));
27610
27610
  }
27611
27611
  })();
27612
27612
  },
@@ -27853,42 +27853,42 @@ const px = Ne.create({
27853
27853
  s,
27854
27854
  o,
27855
27855
  g
27856
- ]), v = Hd({
27856
+ ]), y = Hd({
27857
27857
  content: "<p>This is just a content</p>",
27858
27858
  extensions: f,
27859
27859
  editable: d ?? !0,
27860
27860
  ...u
27861
27861
  }, m);
27862
27862
  ee(() => {
27863
- v && d !== void 0 && v.setEditable(d);
27864
- }, [v, d]), vr(a, () => ({
27865
- getEditor: () => v,
27866
- on: ((...k) => (v?.on(...k), v)),
27867
- off: ((...k) => (v?.off(...k), v)),
27868
- once: ((...k) => (v?.once(...k), v)),
27869
- getDocumentMap: () => v ? ro(v) : null,
27870
- applyTargetedUpdate: (k) => v ? Ad(v, k) : !1,
27871
- applyTargetedUpdates: (k) => v ? Cy(v, k) : !1
27872
- }), [v]);
27863
+ y && d !== void 0 && y.setEditable(d);
27864
+ }, [y, d]), vr(a, () => ({
27865
+ getEditor: () => y,
27866
+ on: ((...k) => (y?.on(...k), y)),
27867
+ off: ((...k) => (y?.off(...k), y)),
27868
+ once: ((...k) => (y?.once(...k), y)),
27869
+ getDocumentMap: () => y ? ro(y) : null,
27870
+ applyTargetedUpdate: (k) => y ? Ad(y, k) : !1,
27871
+ applyTargetedUpdates: (k) => y ? Cy(y, k) : !1
27872
+ }), [y]);
27873
27873
  const w = l ? Bd : Tb, P = l ? {} : { className: "w-full overflow-visible" };
27874
- return /* @__PURE__ */ h.jsx(zd.Provider, { value: v, children: /* @__PURE__ */ h.jsxs(w, { ...P, children: [
27875
- Ft(t.editorTop, v),
27876
- v && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
27877
- i && v.isEditable ? /* @__PURE__ */ h.jsx(Ky, { editor: v }) : null,
27874
+ return /* @__PURE__ */ h.jsx(zd.Provider, { value: y, children: /* @__PURE__ */ h.jsxs(w, { ...P, children: [
27875
+ Ft(t.editorTop, y),
27876
+ y && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
27877
+ i ? /* @__PURE__ */ h.jsx(Ky, { editor: y }) : null,
27878
27878
  /* @__PURE__ */ h.jsx(
27879
27879
  _y,
27880
27880
  {
27881
- editor: v,
27882
- prepend: Ft(t.selectionMenuPrepend, v),
27883
- append: Ft(t.selectionMenuAppend, v)
27881
+ editor: y,
27882
+ prepend: Ft(t.selectionMenuPrepend, y),
27883
+ append: Ft(t.selectionMenuAppend, y)
27884
27884
  }
27885
27885
  ),
27886
27886
  /* @__PURE__ */ h.jsx(
27887
27887
  Oy,
27888
27888
  {
27889
- editor: v,
27890
- prepend: Ft(t.tableMenuPrepend, v),
27891
- append: Ft(t.tableMenuAppend, v)
27889
+ editor: y,
27890
+ prepend: Ft(t.tableMenuPrepend, y),
27891
+ append: Ft(t.tableMenuAppend, y)
27892
27892
  }
27893
27893
  )
27894
27894
  ] }),
@@ -27897,10 +27897,10 @@ const px = Ne.create({
27897
27897
  {
27898
27898
  ...n,
27899
27899
  className: me(r, l ? "tiptop-editor-no-padding" : null),
27900
- editor: v
27900
+ editor: y
27901
27901
  }
27902
27902
  ),
27903
- Ft(t.editorBottom, v)
27903
+ Ft(t.editorBottom, y)
27904
27904
  ] }) });
27905
27905
  }
27906
27906
  );