@factorialco/f0-react 1.400.0 → 1.401.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { jsx as g, jsxs as z, Fragment as je } from "react/jsx-runtime";
2
2
  import * as Ne from "react";
3
3
  import R, { useRef as de, useState as Z, useCallback as Fe, useEffect as be, useContext as Ot, useMemo as ce, createContext as Bt, forwardRef as ht, useLayoutEffect as hr, isValidElement as ni, Children as ja, PureComponent as ui, useImperativeHandle as kx, cloneElement as Dt, createElement as Yl, Component as B9, useId as _x, Fragment as Xa, useDebugValue as z9, createRef as RI, memo as $I, version as i2 } from "react";
4
- import { f2 as r2, f3 as ec, f4 as jI, a8 as q9, f5 as LI, f6 as FI, f7 as BI, f8 as Up, f9 as zI, K as qI, fa as HI, ap as Te, Y as H9, N as WI, aD as pn, aR as Ch, a9 as V, aH as Ah, e6 as VI, e5 as UI, aa as Sx, bg as en, bQ as gr, fb as Dc, af as rt, aA as st, bT as W9, bR as KI, bS as GI, aN as YI, fc as Po, fd as XI, fe as JI, ff as ZI, fg as a2, fh as o2, fi as s2, fj as l2, fk as Ou, fl as V9, fm as hu, fn as U9, fo as QI, fp as eR, fq as tR, bO as Wo, ae as Ie, bh as nR, bU as sr, bV as xi, aq as iR, ar as rR, as as aR, aw as oR, fr as K9, fs as G9, cD as sR, ab as Ee, aP as tc, dV as lR, dA as Pt, u as Ke, ft as Y9, fu as X9, fv as Yg, fw as fR, fx as f2, bX as J9, dH as Z9, dB as Xg, cd as Ox, ce as Cx, cf as Ax, dF as cR, c7 as Q9, fy as eE, dn as uR, fz as dR, aB as hR, aC as pR, dK as nc, aG as mR, aO as yR, eg as vR, eh as c2, aM as u2, du as Ex, ek as gR, el as bR, aF as xR, en as wR, ac as Eh, aV as tE, ax as bt, d3 as nE, bm as Vo, c2 as iE, av as ii, cC as kR, c$ as _R, d0 as SR, ds as OR, bZ as Xl, cy as rE, c5 as Ja, aW as Th, bo as Uo, ei as CR, cI as Tx, fA as AR, fB as aE, bK as ic, fC as Ph, fD as Mh, bM as rc, by as ER, eG as Px, e3 as d2, cY as TR, fE as PR, c6 as Cu, bs as MR, fF as DR, fG as Jg, fH as oE, fI as sE, fJ as lE, fK as NR, fL as IR, fM as RR, fN as $R, bz as jR, bA as LR, bB as FR, bC as fE, bD as BR, bE as zR, fO as cE, bH as qR, bJ as HR, bI as WR, bN as VR, bL as UR, fP as uE, e0 as dE, aS as hE, ai as KR, ec as GR, fQ as YR, eq as XR, er as JR, bn as Mx, aI as tt, fR as ZR, cT as Zg, ca as QR, d4 as pE, df as mE, cq as e$, cw as yE, eu as vE, ev as gE, ew as bE, dk as t$, ex as n$, cG as i$, fS as r$, fT as a$, dE as o$, fU as s$, cU as l$, fV as f$, d1 as c$, fW as u$, eS as d$, cK as h$, eT as p$, e_ as Dh, eY as Dx, d5 as m$, d6 as y$, d7 as v$, d9 as g$, fX as Nx, eZ as xE, eJ as Ix, dW as b$, fY as x$, ey as Qg, b$ as w$, c0 as k$, aJ as _$, cx as S$, eU as Au, fZ as O$, f_ as C$, ef as wE, c3 as A$, f$ as E$, d_ as Eu, g0 as T$, dt as P$, g1 as M$, aT as D$, c4 as kE, dr as N$, g2 as h2, g3 as I$, g4 as R$, g5 as $$, g6 as j$, g7 as L$, g8 as F$, dI as _E, ez as B$, eX as z$ } from "./F0AiChat-CaAV8VN2.js";
4
+ import { f3 as r2, f4 as ec, f5 as jI, a8 as q9, f6 as LI, f7 as FI, f8 as BI, f9 as Up, fa as zI, K as qI, fb as HI, ap as Te, Y as H9, N as WI, aD as pn, aR as Ch, a9 as V, aH as Ah, e6 as VI, e5 as UI, aa as Sx, bg as en, bQ as gr, fc as Dc, af as rt, aA as st, bT as W9, bR as KI, bS as GI, aN as YI, fd as Po, fe as XI, ff as JI, fg as ZI, fh as a2, fi as o2, fj as s2, fk as l2, fl as Ou, fm as V9, fn as hu, fo as U9, fp as QI, fq as eR, fr as tR, bO as Wo, ae as Ie, bh as nR, bU as sr, bV as xi, aq as iR, ar as rR, as as aR, aw as oR, fs as K9, ft as G9, cD as sR, ab as Ee, aP as tc, dV as lR, dA as Pt, u as Ke, fu as Y9, fv as X9, fw as Yg, fx as fR, fy as f2, bX as J9, dH as Z9, dB as Xg, cd as Ox, ce as Cx, cf as Ax, dF as cR, c7 as Q9, fz as eE, dn as uR, fA as dR, aB as hR, aC as pR, dK as nc, aG as mR, aO as yR, eg as vR, eh as c2, aM as u2, du as Ex, ek as gR, el as bR, aF as xR, en as wR, ac as Eh, aV as tE, ax as bt, d3 as nE, bm as Vo, c2 as iE, av as ii, cC as kR, c$ as _R, d0 as SR, ds as OR, bZ as Xl, cy as rE, c5 as Ja, aW as Th, bo as Uo, ei as CR, cI as Tx, fB as AR, fC as aE, bK as ic, fD as Ph, fE as Mh, bM as rc, by as ER, eG as Px, e3 as d2, cY as TR, fF as PR, c6 as Cu, bs as MR, fG as DR, fH as Jg, fI as oE, fJ as sE, fK as lE, fL as NR, fM as IR, fN as RR, fO as $R, bz as jR, bA as LR, bB as FR, bC as fE, bD as BR, bE as zR, fP as cE, bH as qR, bJ as HR, bI as WR, bN as VR, bL as UR, fQ as uE, e0 as dE, aS as hE, ai as KR, ec as GR, fR as YR, eq as XR, er as JR, bn as Mx, aI as tt, fS as ZR, cT as Zg, ca as QR, d4 as pE, df as mE, cq as e$, cw as yE, eu as vE, ev as gE, ew as bE, dk as t$, ex as n$, cG as i$, fT as r$, fU as a$, dE as o$, fV as s$, cU as l$, fW as f$, d1 as c$, fX as u$, eT as d$, cK as h$, eU as p$, e$ as Dh, eZ as Dx, d5 as m$, d6 as y$, d7 as v$, d9 as g$, fY as Nx, e_ as xE, eK as Ix, dW as b$, fZ as x$, ey as Qg, b$ as w$, c0 as k$, aJ as _$, cx as S$, eV as Au, f_ as O$, f$ as C$, ef as wE, c3 as A$, g0 as E$, d_ as Eu, g1 as T$, dt as P$, g2 as M$, aT as D$, c4 as kE, dr as N$, g3 as h2, g4 as I$, g5 as R$, g6 as $$, g7 as j$, g8 as L$, g9 as F$, dI as _E, ez as B$, eY as z$ } from "./F0AiChat-CpaeHxvD.js";
5
5
  import Rx from "react-dom";
6
6
  import './useDataCollectionSource.css';const q$ = {
7
7
  active: !0,
@@ -46,7 +46,7 @@ function $x(t = {}) {
46
46
  const {
47
47
  ownerWindow: M
48
48
  } = n.internalEngine();
49
- M.clearTimeout(o), o = M.setTimeout(E, r[n.selectedScrollSnap()]), a = (/* @__PURE__ */ new Date()).getTime(), n.emit("autoplay:timerset");
49
+ M.clearTimeout(o), o = M.setTimeout(T, r[n.selectedScrollSnap()]), a = (/* @__PURE__ */ new Date()).getTime(), n.emit("autoplay:timerset");
50
50
  }
51
51
  function p() {
52
52
  const {
@@ -101,7 +101,7 @@ function $x(t = {}) {
101
101
  function P() {
102
102
  return s;
103
103
  }
104
- function E() {
104
+ function T() {
105
105
  const {
106
106
  index: M
107
107
  } = n.internalEngine(), D = M.clone().add(1).get(), I = n.scrollSnapList().length - 1, F = e.stopOnLastSnap && D === I;
@@ -361,9 +361,9 @@ function lj(t) {
361
361
  }, _ = function() {
362
362
  o = g2(), o.isStarted = !0, o.startTime = Date.now(), f = void 0, l = !1;
363
363
  }, S = /* @__PURE__ */ (function() {
364
- var T;
364
+ var E;
365
365
  return function() {
366
- clearTimeout(T), T = setTimeout(C, o.willEndTimeout);
366
+ clearTimeout(E), E = setTimeout(C, o.willEndTimeout);
367
367
  };
368
368
  })(), C = function(M) {
369
369
  M === void 0 && (M = !1), o.isStarted && (o.isMomentum && M ? d({
@@ -372,12 +372,12 @@ function lj(t) {
372
372
  }) : d({
373
373
  isEnding: !0
374
374
  }), o.isMomentum = !1, o.isStarted = !1);
375
- }, O = J$(c), P = O.observe, E = O.unobserve, A = O.disconnect;
375
+ }, O = J$(c), P = O.observe, T = O.unobserve, A = O.disconnect;
376
376
  return u(t), Ko({
377
377
  on: n,
378
378
  off: i,
379
379
  observe: P,
380
- unobserve: E,
380
+ unobserve: T,
381
381
  disconnect: A,
382
382
  feedWheel: c,
383
383
  updateOptions: u
@@ -403,16 +403,16 @@ function jx(t) {
403
403
  preventWheelAction: m,
404
404
  reverseSign: [!0, !0, !1]
405
405
  }), v = y.observe(p), x = y.on("wheel", A), b = !1, k;
406
- function w(T) {
406
+ function w(E) {
407
407
  try {
408
- k = new MouseEvent("mousedown", T.event), E(k);
408
+ k = new MouseEvent("mousedown", E.event), T(k);
409
409
  } catch {
410
410
  return cj && console.warn("Legacy browser requires events-polyfill (https://github.com/xiel/embla-carousel-wheel-gestures#legacy-browsers)"), n();
411
411
  }
412
412
  b = !0, S(), e.wheelDraggingClass && p.classList.add(e.wheelDraggingClass);
413
413
  }
414
- function _(T) {
415
- b = !1, E(P("mouseup", T)), C(), e.wheelDraggingClass && p.classList.remove(e.wheelDraggingClass);
414
+ function _(E) {
415
+ b = !1, T(P("mouseup", E)), C(), e.wheelDraggingClass && p.classList.remove(e.wheelDraggingClass);
416
416
  }
417
417
  function S() {
418
418
  document.documentElement.addEventListener("mousemove", O, !0), document.documentElement.addEventListener("mouseup", O, !0), document.documentElement.addEventListener("mousedown", O, !0);
@@ -420,10 +420,10 @@ function jx(t) {
420
420
  function C() {
421
421
  document.documentElement.removeEventListener("mousemove", O, !0), document.documentElement.removeEventListener("mouseup", O, !0), document.documentElement.removeEventListener("mousedown", O, !0);
422
422
  }
423
- function O(T) {
424
- b && T.isTrusted && T.stopImmediatePropagation();
423
+ function O(E) {
424
+ b && E.isTrusted && E.stopImmediatePropagation();
425
425
  }
426
- function P(T, M) {
426
+ function P(E, M) {
427
427
  var D, I;
428
428
  if (m === h.options.axis) {
429
429
  var F = M.axisMovement;
@@ -436,7 +436,7 @@ function jx(t) {
436
436
  var q = h.containerRect.width, $ = h.containerRect.height;
437
437
  D = D < 0 ? Math.max(D, -q) : Math.min(D, q), I = I < 0 ? Math.max(I, -$) : Math.min(I, $);
438
438
  }
439
- return new MouseEvent(T, {
439
+ return new MouseEvent(E, {
440
440
  clientX: k.clientX + D,
441
441
  clientY: k.clientY + I,
442
442
  screenX: k.screenX + D,
@@ -449,12 +449,12 @@ function jx(t) {
449
449
  composed: !0
450
450
  });
451
451
  }
452
- function E(T) {
453
- a.containerNode().dispatchEvent(T);
452
+ function T(E) {
453
+ a.containerNode().dispatchEvent(E);
454
454
  }
455
- function A(T) {
456
- var M = T.axisDelta, D = M[0], I = M[1], F = m === "x" ? D : I, L = m === "x" ? I : D, q = T.isMomentum && T.previous && !T.previous.isMomentum, $ = T.isEnding && !T.isMomentum || q, j = Math.abs(F) > Math.abs(L);
457
- j && !b && !T.isMomentum && w(T), b && ($ ? _(T) : E(P("mousemove", T)));
455
+ function A(E) {
456
+ var M = E.axisDelta, D = M[0], I = M[1], F = m === "x" ? D : I, L = m === "x" ? I : D, q = E.isMomentum && E.previous && !E.previous.isMomentum, $ = E.isEnding && !E.isMomentum || q, j = Math.abs(F) > Math.abs(L);
457
+ j && !b && !E.isMomentum && w(E), b && ($ ? _(E) : T(P("mousemove", E)));
458
458
  }
459
459
  n = function() {
460
460
  v(), x(), C();
@@ -730,11 +730,11 @@ function bj(t, e, n, i, r, a, o, s, l, f, c, u, d, h, p, m, y, v, x) {
730
730
  }, S = Ql(), C = Ql(), O = Za(50, 225).constrain(h.measure(20)), P = {
731
731
  mouse: 300,
732
732
  touch: 400
733
- }, E = {
733
+ }, T = {
734
734
  mouse: 500,
735
735
  touch: 600
736
736
  }, A = p ? 43 : 25;
737
- let T = !1, M = 0, D = 0, I = !1, F = !1, L = !1, q = !1;
737
+ let E = !1, M = 0, D = 0, I = !1, F = !1, L = !1, q = !1;
738
738
  function $(N) {
739
739
  if (!x) return;
740
740
  function Q(le) {
@@ -757,7 +757,7 @@ function bj(t, e, n, i, r, a, o, s, l, f, c, u, d, h, p, m, y, v, x) {
757
757
  return w.includes(Q);
758
758
  }
759
759
  function K() {
760
- return (p ? E : P)[q ? "mouse" : "touch"];
760
+ return (p ? T : P)[q ? "mouse" : "touch"];
761
761
  }
762
762
  function X(N, Q) {
763
763
  const W = u.add(Bx(N) * -1), le = c.byDistance(N, !p).distance;
@@ -765,7 +765,7 @@ function bj(t, e, n, i, r, a, o, s, l, f, c, u, d, h, p, m, y, v, x) {
765
765
  }
766
766
  function ee(N) {
767
767
  const Q = t0(N, i);
768
- q = Q, L = p && Q && !N.buttons && T, T = Ol(r.get(), o.get()) >= 2, !(Q && N.button !== 0) && (H(N.target) || (I = !0, a.pointerDown(N), f.useFriction(0).useDuration(0), r.set(o), B(), M = a.readPoint(N), D = a.readPoint(N, b), d.emit("pointerDown")));
768
+ q = Q, L = p && Q && !N.buttons && E, E = Ol(r.get(), o.get()) >= 2, !(Q && N.button !== 0) && (H(N.target) || (I = !0, a.pointerDown(N), f.useFriction(0).useDuration(0), r.set(o), B(), M = a.readPoint(N), D = a.readPoint(N, b), d.emit("pointerDown")));
769
769
  }
770
770
  function ie(N) {
771
771
  if (!t0(N, i) && N.touches.length >= 2) return ne(N);
@@ -1228,14 +1228,14 @@ function Rj(t, e, n, i, r, a, o, s, l) {
1228
1228
  }
1229
1229
  function y(S, C, O) {
1230
1230
  const P = m(C);
1231
- return S.map((E) => {
1232
- const A = O ? 0 : -n, T = O ? n : 0, M = O ? "end" : "start", D = P[E][M];
1231
+ return S.map((T) => {
1232
+ const A = O ? 0 : -n, E = O ? n : 0, M = O ? "end" : "start", D = P[T][M];
1233
1233
  return {
1234
- index: E,
1234
+ index: T,
1235
1235
  loopPoint: D,
1236
1236
  slideLocation: yl(-1),
1237
- translate: CE(t, l[E]),
1238
- target: () => s.get() > D ? A : T
1237
+ translate: CE(t, l[T]),
1238
+ target: () => s.get() > D ? A : E
1239
1239
  };
1240
1240
  });
1241
1241
  }
@@ -1261,8 +1261,8 @@ function Rj(t, e, n, i, r, a, o, s, l) {
1261
1261
  target: C,
1262
1262
  translate: O,
1263
1263
  slideLocation: P
1264
- } = S, E = C();
1265
- E !== P.get() && (O.to(E), P.set(E));
1264
+ } = S, T = C();
1265
+ T !== P.get() && (O.to(T), P.set(T));
1266
1266
  });
1267
1267
  }
1268
1268
  function w() {
@@ -1377,7 +1377,7 @@ function Fj(t, e, n, i, r, a, o, s, l) {
1377
1377
  }
1378
1378
  function p(v) {
1379
1379
  return v.length ? Jl(v).reduce((x, b, k) => {
1380
- const w = wi(x) || 0, _ = w === 0, S = b === ac(v), C = r[f] - a[w][f], O = r[f] - a[b][c], P = !i && _ ? u(o) : 0, E = !i && S ? u(s) : 0, A = gt(O - E - (C + P));
1380
+ const w = wi(x) || 0, _ = w === 0, S = b === ac(v), C = r[f] - a[w][f], O = r[f] - a[b][c], P = !i && _ ? u(o) : 0, T = !i && S ? u(s) : 0, A = gt(O - T - (C + P));
1381
1381
  return k && A > e + l && x.push(b), S && x.push(v.length), x;
1382
1382
  }, []).map((x, b, k) => {
1383
1383
  const w = Math.max(k[b - 1] || 0);
@@ -1409,15 +1409,15 @@ function Bj(t, e, n, i, r, a, o) {
1409
1409
  watchSlides: k,
1410
1410
  watchDrag: w,
1411
1411
  watchFocus: _
1412
- } = a, S = 2, C = wj(), O = C.measure(e), P = n.map(C.measure), E = gj(l, f), A = E.measureSize(O), T = kj(A), M = yj(s, A), D = !u && !!x, I = u || !!x, {
1412
+ } = a, S = 2, C = wj(), O = C.measure(e), P = n.map(C.measure), T = gj(l, f), A = T.measureSize(O), E = kj(A), M = yj(s, A), D = !u && !!x, I = u || !!x, {
1413
1413
  slideSizes: F,
1414
1414
  slideSizesWithGaps: L,
1415
1415
  startGap: q,
1416
1416
  endGap: $
1417
- } = Lj(E, O, P, n, I, r), j = Fj(E, A, y, u, O, P, q, $, S), {
1417
+ } = Lj(T, O, P, n, I, r), j = Fj(T, A, y, u, O, P, q, $, S), {
1418
1418
  snaps: B,
1419
1419
  snapsAligned: H
1420
- } = Pj(E, M, O, P, j), K = -wi(B) + wi(L), {
1420
+ } = Pj(T, M, O, P, j), K = -wi(B) + wi(L), {
1421
1421
  snapsContained: X,
1422
1422
  scrollContainLimit: ee
1423
1423
  } = Cj(A, K, H, x, S), ie = D ? X : H, {
@@ -1460,10 +1460,10 @@ function Bj(t, e, n, i, r, a, o) {
1460
1460
  containerRect: O,
1461
1461
  slideRects: P,
1462
1462
  animation: W,
1463
- axis: E,
1464
- dragHandler: bj(E, t, i, r, ve, xj(E, r), ue, W, pe, _e, He, U, o, T, h, p, v, le, w),
1463
+ axis: T,
1464
+ dragHandler: bj(T, t, i, r, ve, xj(T, r), ue, W, pe, _e, He, U, o, E, h, p, v, le, w),
1465
1465
  eventStore: at,
1466
- percentOfView: T,
1466
+ percentOfView: E,
1467
1467
  index: U,
1468
1468
  indexPrevious: J,
1469
1469
  limit: ne,
@@ -1471,16 +1471,16 @@ function Bj(t, e, n, i, r, a, o) {
1471
1471
  offsetLocation: ke,
1472
1472
  previousLocation: Pe,
1473
1473
  options: a,
1474
- resizeHandler: _j(e, o, r, n, E, b, C),
1474
+ resizeHandler: _j(e, o, r, n, T, b, C),
1475
1475
  scrollBody: _e,
1476
- scrollBounds: Oj(ne, ke, ve, _e, T),
1476
+ scrollBounds: Oj(ne, ke, ve, _e, E),
1477
1477
  scrollLooper: Ej(K, ne, ke, [ue, ke, Pe, ve]),
1478
1478
  scrollProgress: We,
1479
1479
  scrollSnapList: ie.map(We.get),
1480
1480
  scrollSnaps: ie,
1481
1481
  scrollTarget: He,
1482
1482
  scrollTo: pe,
1483
- slideLooper: Rj(E, A, K, F, L, B, ie, ke, n),
1483
+ slideLooper: Rj(T, A, K, F, L, B, ie, ke, n),
1484
1484
  slideFocus: gn,
1485
1485
  slidesHandler: $j(e, o, k),
1486
1486
  slidesInView: et,
@@ -1488,7 +1488,7 @@ function Bj(t, e, n, i, r, a, o) {
1488
1488
  slideRegistry: Et,
1489
1489
  slidesToScroll: j,
1490
1490
  target: ve,
1491
- translate: CE(E, e)
1491
+ translate: CE(T, e)
1492
1492
  };
1493
1493
  return Ci;
1494
1494
  }
@@ -1586,7 +1586,7 @@ function Tu(t, e, n) {
1586
1586
  on: d,
1587
1587
  off: h,
1588
1588
  emit: p
1589
- } = l, m = E;
1589
+ } = l, m = T;
1590
1590
  let y = !1, v, x = f(qj, Tu.globalOptions), b = f(x), k = [], w, _, S;
1591
1591
  function C() {
1592
1592
  const {
@@ -1610,9 +1610,9 @@ function Tu(t, e, n) {
1610
1610
  function P(re, N) {
1611
1611
  y || (x = f(x, re), b = c(x), k = N || k, C(), v = O(b), u([x, ...k.map(({
1612
1612
  options: Q
1613
- }) => Q)]).forEach((Q) => s.add(Q, "change", E)), b.active && (v.translate.to(v.location.get()), v.animation.init(), v.slidesInView.init(), v.slideFocus.init(J), v.eventHandler.init(J), v.resizeHandler.init(J), v.slidesHandler.init(J), v.options.loop && v.slideLooper.loop(), _.offsetParent && S.length && v.dragHandler.init(J), w = o.init(J, k)));
1613
+ }) => Q)]).forEach((Q) => s.add(Q, "change", T)), b.active && (v.translate.to(v.location.get()), v.animation.init(), v.slidesInView.init(), v.slideFocus.init(J), v.eventHandler.init(J), v.resizeHandler.init(J), v.slidesHandler.init(J), v.options.loop && v.slideLooper.loop(), _.offsetParent && S.length && v.dragHandler.init(J), w = o.init(J, k)));
1614
1614
  }
1615
- function E(re, N) {
1615
+ function T(re, N) {
1616
1616
  const Q = j();
1617
1617
  A(), P(f({
1618
1618
  startIndex: Q
@@ -1621,7 +1621,7 @@ function Tu(t, e, n) {
1621
1621
  function A() {
1622
1622
  v.dragHandler.destroy(), v.eventStore.clear(), v.translate.clear(), v.slideLooper.clear(), v.resizeHandler.destroy(), v.slidesHandler.destroy(), v.slidesInView.destroy(), v.animation.destroy(), o.destroy(), s.clear();
1623
1623
  }
1624
- function T() {
1624
+ function E() {
1625
1625
  y || (y = !0, s.clear(), A(), l.emit("destroy"), l.clear());
1626
1626
  }
1627
1627
  function M(re, N, Q) {
@@ -1679,7 +1679,7 @@ function Tu(t, e, n) {
1679
1679
  canScrollPrev: L,
1680
1680
  containerNode: ne,
1681
1681
  internalEngine: ee,
1682
- destroy: T,
1682
+ destroy: E,
1683
1683
  off: h,
1684
1684
  on: d,
1685
1685
  emit: p,
@@ -3028,14 +3028,14 @@ function BL() {
3028
3028
  if (O3) return Ym;
3029
3029
  O3 = 1;
3030
3030
  var t = sc(), e = LL(), n = Hx(), i = WE(), r = FL(), a = Kx(), o = 1, s = 2, l = "[object Boolean]", f = "[object Date]", c = "[object Error]", u = "[object Map]", d = "[object Number]", h = "[object RegExp]", p = "[object Set]", m = "[object String]", y = "[object Symbol]", v = "[object ArrayBuffer]", x = "[object DataView]", b = t ? t.prototype : void 0, k = b ? b.valueOf : void 0;
3031
- function w(_, S, C, O, P, E, A) {
3031
+ function w(_, S, C, O, P, T, A) {
3032
3032
  switch (C) {
3033
3033
  case x:
3034
3034
  if (_.byteLength != S.byteLength || _.byteOffset != S.byteOffset)
3035
3035
  return !1;
3036
3036
  _ = _.buffer, S = S.buffer;
3037
3037
  case v:
3038
- return !(_.byteLength != S.byteLength || !E(new e(_), new e(S)));
3038
+ return !(_.byteLength != S.byteLength || !T(new e(_), new e(S)));
3039
3039
  case l:
3040
3040
  case f:
3041
3041
  case d:
@@ -3046,16 +3046,16 @@ function BL() {
3046
3046
  case m:
3047
3047
  return _ == S + "";
3048
3048
  case u:
3049
- var T = r;
3049
+ var E = r;
3050
3050
  case p:
3051
3051
  var M = O & o;
3052
- if (T || (T = a), _.size != S.size && !M)
3052
+ if (E || (E = a), _.size != S.size && !M)
3053
3053
  return !1;
3054
3054
  var D = A.get(_);
3055
3055
  if (D)
3056
3056
  return D == S;
3057
3057
  O |= s, A.set(_, S);
3058
- var I = i(T(_), T(S), O, P, E, A);
3058
+ var I = i(E(_), E(S), O, P, T, A);
3059
3059
  return A.delete(_), I;
3060
3060
  case y:
3061
3061
  if (k)
@@ -3210,10 +3210,10 @@ var fy, B3;
3210
3210
  function GL() {
3211
3211
  if (B3) return fy;
3212
3212
  B3 = 1;
3213
- var t = br(), e = Xx(), n = xr(), i = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", o = "[object Date]", s = "[object Error]", l = "[object Function]", f = "[object Map]", c = "[object Number]", u = "[object Object]", d = "[object RegExp]", h = "[object Set]", p = "[object String]", m = "[object WeakMap]", y = "[object ArrayBuffer]", v = "[object DataView]", x = "[object Float32Array]", b = "[object Float64Array]", k = "[object Int8Array]", w = "[object Int16Array]", _ = "[object Int32Array]", S = "[object Uint8Array]", C = "[object Uint8ClampedArray]", O = "[object Uint16Array]", P = "[object Uint32Array]", E = {};
3214
- E[x] = E[b] = E[k] = E[w] = E[_] = E[S] = E[C] = E[O] = E[P] = !0, E[i] = E[r] = E[y] = E[a] = E[v] = E[o] = E[s] = E[l] = E[f] = E[c] = E[u] = E[d] = E[h] = E[p] = E[m] = !1;
3215
- function A(T) {
3216
- return n(T) && e(T.length) && !!E[t(T)];
3213
+ var t = br(), e = Xx(), n = xr(), i = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", o = "[object Date]", s = "[object Error]", l = "[object Function]", f = "[object Map]", c = "[object Number]", u = "[object Object]", d = "[object RegExp]", h = "[object Set]", p = "[object String]", m = "[object WeakMap]", y = "[object ArrayBuffer]", v = "[object DataView]", x = "[object Float32Array]", b = "[object Float64Array]", k = "[object Int8Array]", w = "[object Int16Array]", _ = "[object Int32Array]", S = "[object Uint8Array]", C = "[object Uint8ClampedArray]", O = "[object Uint16Array]", P = "[object Uint32Array]", T = {};
3214
+ T[x] = T[b] = T[k] = T[w] = T[_] = T[S] = T[C] = T[O] = T[P] = !0, T[i] = T[r] = T[y] = T[a] = T[v] = T[o] = T[s] = T[l] = T[f] = T[c] = T[u] = T[d] = T[h] = T[p] = T[m] = !1;
3215
+ function A(E) {
3216
+ return n(E) && e(E.length) && !!T[t(E)];
3217
3217
  }
3218
3218
  return fy = A, fy;
3219
3219
  }
@@ -3438,22 +3438,22 @@ function oF() {
3438
3438
  function p(m, y, v, x, b, k) {
3439
3439
  var w = a(m), _ = a(y), S = w ? c : r(m), C = _ ? c : r(y);
3440
3440
  S = S == f ? u : S, C = C == f ? u : C;
3441
- var O = S == u, P = C == u, E = S == C;
3442
- if (E && o(m)) {
3441
+ var O = S == u, P = C == u, T = S == C;
3442
+ if (T && o(m)) {
3443
3443
  if (!o(y))
3444
3444
  return !1;
3445
3445
  w = !0, O = !1;
3446
3446
  }
3447
- if (E && !O)
3447
+ if (T && !O)
3448
3448
  return k || (k = new t()), w || s(m) ? e(m, y, v, x, b, k) : n(m, y, S, v, x, b, k);
3449
3449
  if (!(v & l)) {
3450
- var A = O && h.call(m, "__wrapped__"), T = P && h.call(y, "__wrapped__");
3451
- if (A || T) {
3452
- var M = A ? m.value() : m, D = T ? y.value() : y;
3450
+ var A = O && h.call(m, "__wrapped__"), E = P && h.call(y, "__wrapped__");
3451
+ if (A || E) {
3452
+ var M = A ? m.value() : m, D = E ? y.value() : y;
3453
3453
  return k || (k = new t()), b(M, D, v, x, k);
3454
3454
  }
3455
3455
  }
3456
- return E ? (k || (k = new t()), i(m, y, v, x, b, k)) : !1;
3456
+ return T ? (k || (k = new t()), i(m, y, v, x, b, k)) : !1;
3457
3457
  }
3458
3458
  return Cy = p, Cy;
3459
3459
  }
@@ -4046,7 +4046,7 @@ function KF() {
4046
4046
  }
4047
4047
  }
4048
4048
  }
4049
- var _ = o, S = a, C = t, O = l, P = n, E = d, A = u, T = e, M = r, D = i, I = f, F = c, L = !1, q = !1;
4049
+ var _ = o, S = a, C = t, O = l, P = n, T = d, A = u, E = e, M = r, D = i, I = f, F = c, L = !1, q = !1;
4050
4050
  function $(W) {
4051
4051
  return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
4052
4052
  }
@@ -4089,7 +4089,7 @@ function KF() {
4089
4089
  function Q(W) {
4090
4090
  return w(W) === c;
4091
4091
  }
4092
- Xe.ContextConsumer = _, Xe.ContextProvider = S, Xe.Element = C, Xe.ForwardRef = O, Xe.Fragment = P, Xe.Lazy = E, Xe.Memo = A, Xe.Portal = T, Xe.Profiler = M, Xe.StrictMode = D, Xe.Suspense = I, Xe.SuspenseList = F, Xe.isAsyncMode = $, Xe.isConcurrentMode = j, Xe.isContextConsumer = B, Xe.isContextProvider = H, Xe.isElement = K, Xe.isForwardRef = X, Xe.isFragment = ee, Xe.isLazy = ie, Xe.isMemo = ne, Xe.isPortal = U, Xe.isProfiler = J, Xe.isStrictMode = re, Xe.isSuspense = N, Xe.isSuspenseList = Q, Xe.isValidElementType = k, Xe.typeOf = w;
4092
+ Xe.ContextConsumer = _, Xe.ContextProvider = S, Xe.Element = C, Xe.ForwardRef = O, Xe.Fragment = P, Xe.Lazy = T, Xe.Memo = A, Xe.Portal = E, Xe.Profiler = M, Xe.StrictMode = D, Xe.Suspense = I, Xe.SuspenseList = F, Xe.isAsyncMode = $, Xe.isConcurrentMode = j, Xe.isContextConsumer = B, Xe.isContextProvider = H, Xe.isElement = K, Xe.isForwardRef = X, Xe.isFragment = ee, Xe.isLazy = ie, Xe.isMemo = ne, Xe.isPortal = U, Xe.isProfiler = J, Xe.isStrictMode = re, Xe.isSuspense = N, Xe.isSuspenseList = Q, Xe.isValidElementType = k, Xe.typeOf = w;
4093
4093
  })()), Xe;
4094
4094
  }
4095
4095
  var O_;
@@ -6879,7 +6879,7 @@ var Pq = function(e) {
6879
6879
  var A = {
6880
6880
  padding: 0,
6881
6881
  margin: 0
6882
- }, T = (d ? cw(c, d) : c).map(function(M, D) {
6882
+ }, E = (d ? cw(c, d) : c).map(function(M, D) {
6883
6883
  if (M.type === "none")
6884
6884
  return null;
6885
6885
  var I = Xv({
@@ -6916,7 +6916,7 @@ var Pq = function(e) {
6916
6916
  return /* @__PURE__ */ R.createElement("ul", {
6917
6917
  className: "recharts-tooltip-item-list",
6918
6918
  style: A
6919
- }, T);
6919
+ }, E);
6920
6920
  }
6921
6921
  return null;
6922
6922
  }, k = Xv({
@@ -7466,39 +7466,39 @@ function oH() {
7466
7466
  if (typeof s != "function")
7467
7467
  throw new TypeError(i);
7468
7468
  l = n(l) || 0, t(f) && (v = !!f.leading, x = "maxWait" in f, d = x ? r(n(f.maxWait) || 0, l) : d, b = "trailing" in f ? !!f.trailing : b);
7469
- function k(T) {
7469
+ function k(E) {
7470
7470
  var M = c, D = u;
7471
- return c = u = void 0, y = T, h = s.apply(D, M), h;
7471
+ return c = u = void 0, y = E, h = s.apply(D, M), h;
7472
7472
  }
7473
- function w(T) {
7474
- return y = T, p = setTimeout(C, l), v ? k(T) : h;
7473
+ function w(E) {
7474
+ return y = E, p = setTimeout(C, l), v ? k(E) : h;
7475
7475
  }
7476
- function _(T) {
7477
- var M = T - m, D = T - y, I = l - M;
7476
+ function _(E) {
7477
+ var M = E - m, D = E - y, I = l - M;
7478
7478
  return x ? a(I, d - D) : I;
7479
7479
  }
7480
- function S(T) {
7481
- var M = T - m, D = T - y;
7480
+ function S(E) {
7481
+ var M = E - m, D = E - y;
7482
7482
  return m === void 0 || M >= l || M < 0 || x && D >= d;
7483
7483
  }
7484
7484
  function C() {
7485
- var T = e();
7486
- if (S(T))
7487
- return O(T);
7488
- p = setTimeout(C, _(T));
7485
+ var E = e();
7486
+ if (S(E))
7487
+ return O(E);
7488
+ p = setTimeout(C, _(E));
7489
7489
  }
7490
- function O(T) {
7491
- return p = void 0, b && c ? k(T) : (c = u = void 0, h);
7490
+ function O(E) {
7491
+ return p = void 0, b && c ? k(E) : (c = u = void 0, h);
7492
7492
  }
7493
7493
  function P() {
7494
7494
  p !== void 0 && clearTimeout(p), y = 0, c = m = u = p = void 0;
7495
7495
  }
7496
- function E() {
7496
+ function T() {
7497
7497
  return p === void 0 ? h : O(e());
7498
7498
  }
7499
7499
  function A() {
7500
- var T = e(), M = S(T);
7501
- if (c = arguments, u = this, m = T, M) {
7500
+ var E = e(), M = S(E);
7501
+ if (c = arguments, u = this, m = E, M) {
7502
7502
  if (p === void 0)
7503
7503
  return w(m);
7504
7504
  if (x)
@@ -7506,7 +7506,7 @@ function oH() {
7506
7506
  }
7507
7507
  return p === void 0 && (p = setTimeout(C, l)), h;
7508
7508
  }
7509
- return A.cancel = P, A.flush = E, A;
7509
+ return A.cancel = P, A.flush = T, A;
7510
7510
  }
7511
7511
  return t1 = o, t1;
7512
7512
  }
@@ -7632,9 +7632,9 @@ var vH = /* @__PURE__ */ ht(function(t, e) {
7632
7632
  var S = Z({
7633
7633
  containerWidth: r.width,
7634
7634
  containerHeight: r.height
7635
- }), C = dH(S, 2), O = C[0], P = C[1], E = Fe(function(T, M) {
7635
+ }), C = dH(S, 2), O = C[0], P = C[1], T = Fe(function(E, M) {
7636
7636
  P(function(D) {
7637
- var I = Math.round(T), F = Math.round(M);
7637
+ var I = Math.round(E), F = Math.round(M);
7638
7638
  return D.containerWidth === I && D.containerHeight === F ? D : {
7639
7639
  containerWidth: I,
7640
7640
  containerHeight: F
@@ -7642,26 +7642,26 @@ var vH = /* @__PURE__ */ ht(function(t, e) {
7642
7642
  });
7643
7643
  }, []);
7644
7644
  be(function() {
7645
- var T = function(q) {
7645
+ var E = function(q) {
7646
7646
  var $, j = q[0].contentRect, B = j.width, H = j.height;
7647
- E(B, H), ($ = _.current) === null || $ === void 0 || $.call(_, B, H);
7647
+ T(B, H), ($ = _.current) === null || $ === void 0 || $.call(_, B, H);
7648
7648
  };
7649
- m > 0 && (T = zT(T, m, {
7649
+ m > 0 && (E = zT(E, m, {
7650
7650
  trailing: !0,
7651
7651
  leading: !1
7652
7652
  }));
7653
- var M = new ResizeObserver(T), D = w.current.getBoundingClientRect(), I = D.width, F = D.height;
7654
- return E(I, F), M.observe(w.current), function() {
7653
+ var M = new ResizeObserver(E), D = w.current.getBoundingClientRect(), I = D.width, F = D.height;
7654
+ return T(I, F), M.observe(w.current), function() {
7655
7655
  M.disconnect();
7656
7656
  };
7657
- }, [E, m]);
7657
+ }, [T, m]);
7658
7658
  var A = ce(function() {
7659
- var T = O.containerWidth, M = O.containerHeight;
7660
- if (T < 0 || M < 0)
7659
+ var E = O.containerWidth, M = O.containerHeight;
7660
+ if (E < 0 || M < 0)
7661
7661
  return null;
7662
7662
  ki(Ea(o) || Ea(l), `The width(%s) and height(%s) are both fixed numbers,
7663
7663
  maybe you don't need to use a ResponsiveContainer.`, o, l), ki(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
7664
- var D = Ea(o) ? T : o, I = Ea(l) ? M : l;
7664
+ var D = Ea(o) ? E : o, I = Ea(l) ? M : l;
7665
7665
  n && n > 0 && (D ? I = D / n : I && (D = I * n), d && I > d && (I = d)), ki(D > 0 || I > 0, `The width(%s) and height(%s) of chart should be greater than 0,
7666
7666
  please check the style of container, or the props width(%s) and height(%s),
7667
7667
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
@@ -8093,8 +8093,8 @@ var WT = /[ \f\n\r\t\v\u2028\u2029]+/, VT = function(e) {
8093
8093
  }).wordsWithComputedWidth, L = d(F), q = L.length > o || p(L).width > Number(r);
8094
8094
  return [q, L];
8095
8095
  }, v = 0, x = u.length - 1, b = 0, k; v <= x && b <= u.length - 1; ) {
8096
- var w = Math.floor((v + x) / 2), _ = w - 1, S = y(_), C = yS(S, 2), O = C[0], P = C[1], E = y(w), A = yS(E, 1), T = A[0];
8097
- if (!O && !T && (v = w + 1), O && T && (x = w - 1), !O && T) {
8096
+ var w = Math.floor((v + x) / 2), _ = w - 1, S = y(_), C = yS(S, 2), O = C[0], P = C[1], T = y(w), A = yS(T, 1), E = A[0];
8097
+ if (!O && !E && (v = w + 1), O && E && (x = w - 1), !O && E) {
8098
8098
  k = P;
8099
8099
  break;
8100
8100
  }
@@ -8140,7 +8140,7 @@ var WT = /[ \f\n\r\t\v\u2028\u2029]+/, VT = function(e) {
8140
8140
  }, [x.breakAll, x.children, x.maxLines, u, x.style, x.width]), k = x.dx, w = x.dy, _ = x.angle, S = x.className, C = x.breakAll, O = mS(x, zH);
8141
8141
  if (!Ft(i) || !Ft(a))
8142
8142
  return null;
8143
- var P = i + (fe(k) ? k : 0), E = a + (fe(w) ? w : 0), A;
8143
+ var P = i + (fe(k) ? k : 0), T = a + (fe(w) ? w : 0), A;
8144
8144
  switch (m) {
8145
8145
  case "start":
8146
8146
  A = i1("calc(".concat(f, ")"));
@@ -8152,14 +8152,14 @@ var WT = /[ \f\n\r\t\v\u2028\u2029]+/, VT = function(e) {
8152
8152
  A = i1("calc(".concat(b.length - 1, " * -").concat(s, ")"));
8153
8153
  break;
8154
8154
  }
8155
- var T = [];
8155
+ var E = [];
8156
8156
  if (u) {
8157
8157
  var M = b[0].width, D = x.width;
8158
- T.push("scale(".concat((fe(D) ? D / M : 1) / M, ")"));
8158
+ E.push("scale(".concat((fe(D) ? D / M : 1) / M, ")"));
8159
8159
  }
8160
- return _ && T.push("rotate(".concat(_, ", ").concat(P, ", ").concat(E, ")")), T.length && (O.transform = T.join(" ")), /* @__PURE__ */ R.createElement("text", w0({}, xe(O, !0), {
8160
+ return _ && E.push("rotate(".concat(_, ", ").concat(P, ", ").concat(T, ")")), E.length && (O.transform = E.join(" ")), /* @__PURE__ */ R.createElement("text", w0({}, xe(O, !0), {
8161
8161
  x: P,
8162
- y: E,
8162
+ y: T,
8163
8163
  className: Ie("recharts-text", S),
8164
8164
  textAnchor: h,
8165
8165
  fill: v.includes("url") ? bS : v
@@ -9033,38 +9033,38 @@ function HW(t) {
9033
9033
  w === "n" ? (x = !0, w = "g") : RS[w] || (b === void 0 && (b = 12), k = !0, w = "g"), (y || d === "0" && h === "=") && (y = !0, d = "0", h = "=");
9034
9034
  var _ = m === "$" ? n : m === "#" && /[boxX]/.test(w) ? "0" + w.toLowerCase() : "", S = m === "$" ? i : /[%p]/.test(w) ? o : "", C = RS[w], O = /[defgprs%]/.test(w);
9035
9035
  b = b === void 0 ? 6 : /[gprs]/.test(w) ? Math.max(1, Math.min(21, b)) : Math.max(0, Math.min(20, b));
9036
- function P(E) {
9037
- var A = _, T = S, M, D, I;
9036
+ function P(T) {
9037
+ var A = _, E = S, M, D, I;
9038
9038
  if (w === "c")
9039
- T = C(E) + T, E = "";
9039
+ E = C(T) + E, T = "";
9040
9040
  else {
9041
- E = +E;
9042
- var F = E < 0 || 1 / E < 0;
9043
- if (E = isNaN(E) ? l : C(Math.abs(E), b), k && (E = zW(E)), F && +E == 0 && p !== "+" && (F = !1), A = (F ? p === "(" ? p : s : p === "-" || p === "(" ? "" : p) + A, T = (w === "s" ? LS[8 + QT / 3] : "") + T + (F && p === "(" ? ")" : ""), O) {
9044
- for (M = -1, D = E.length; ++M < D; )
9045
- if (I = E.charCodeAt(M), 48 > I || I > 57) {
9046
- T = (I === 46 ? r + E.slice(M + 1) : E.slice(M)) + T, E = E.slice(0, M);
9041
+ T = +T;
9042
+ var F = T < 0 || 1 / T < 0;
9043
+ if (T = isNaN(T) ? l : C(Math.abs(T), b), k && (T = zW(T)), F && +T == 0 && p !== "+" && (F = !1), A = (F ? p === "(" ? p : s : p === "-" || p === "(" ? "" : p) + A, E = (w === "s" ? LS[8 + QT / 3] : "") + E + (F && p === "(" ? ")" : ""), O) {
9044
+ for (M = -1, D = T.length; ++M < D; )
9045
+ if (I = T.charCodeAt(M), 48 > I || I > 57) {
9046
+ E = (I === 46 ? r + T.slice(M + 1) : T.slice(M)) + E, T = T.slice(0, M);
9047
9047
  break;
9048
9048
  }
9049
9049
  }
9050
9050
  }
9051
- x && !y && (E = e(E, 1 / 0));
9052
- var L = A.length + E.length + T.length, q = L < v ? new Array(v - L + 1).join(d) : "";
9053
- switch (x && y && (E = e(q + E, q.length ? v - T.length : 1 / 0), q = ""), h) {
9051
+ x && !y && (T = e(T, 1 / 0));
9052
+ var L = A.length + T.length + E.length, q = L < v ? new Array(v - L + 1).join(d) : "";
9053
+ switch (x && y && (T = e(q + T, q.length ? v - E.length : 1 / 0), q = ""), h) {
9054
9054
  case "<":
9055
- E = A + E + T + q;
9055
+ T = A + T + E + q;
9056
9056
  break;
9057
9057
  case "=":
9058
- E = A + q + E + T;
9058
+ T = A + q + T + E;
9059
9059
  break;
9060
9060
  case "^":
9061
- E = q.slice(0, L = q.length >> 1) + A + E + T + q.slice(L);
9061
+ T = q.slice(0, L = q.length >> 1) + A + T + E + q.slice(L);
9062
9062
  break;
9063
9063
  default:
9064
- E = q + A + E + T;
9064
+ T = q + A + T + E;
9065
9065
  break;
9066
9066
  }
9067
- return a(E);
9067
+ return a(T);
9068
9068
  }
9069
9069
  return P.toString = function() {
9070
9070
  return u + "";
@@ -9676,9 +9676,9 @@ function mV(t) {
9676
9676
  "%": e5
9677
9677
  }, w = {
9678
9678
  a: P,
9679
- A: E,
9679
+ A: T,
9680
9680
  b: A,
9681
- B: T,
9681
+ B: E,
9682
9682
  c: M,
9683
9683
  d: XS,
9684
9684
  e: XS,
@@ -9748,7 +9748,7 @@ function mV(t) {
9748
9748
  var N = h.exec(J.slice(re));
9749
9749
  return N ? (U.w = p.get(N[0].toLowerCase()), re + N[0].length) : -1;
9750
9750
  }
9751
- function E(U, J, re) {
9751
+ function T(U, J, re) {
9752
9752
  var N = u.exec(J.slice(re));
9753
9753
  return N ? (U.w = d.get(N[0].toLowerCase()), re + N[0].length) : -1;
9754
9754
  }
@@ -9756,7 +9756,7 @@ function mV(t) {
9756
9756
  var N = v.exec(J.slice(re));
9757
9757
  return N ? (U.m = x.get(N[0].toLowerCase()), re + N[0].length) : -1;
9758
9758
  }
9759
- function T(U, J, re) {
9759
+ function E(U, J, re) {
9760
9760
  var N = m.exec(J.slice(re));
9761
9761
  return N ? (U.m = y.get(N[0].toLowerCase()), re + N[0].length) : -1;
9762
9762
  }
@@ -10609,19 +10609,19 @@ var fr = /* @__PURE__ */ (function() {
10609
10609
  for (; !i[0] && i.length > 1; ) i.shift();
10610
10610
  }
10611
10611
  return function(i, r, a, o) {
10612
- var s, l, f, c, u, d, h, p, m, y, v, x, b, k, w, _, S, C, O = i.constructor, P = i.s == r.s ? 1 : -1, E = i.d, A = r.d;
10612
+ var s, l, f, c, u, d, h, p, m, y, v, x, b, k, w, _, S, C, O = i.constructor, P = i.s == r.s ? 1 : -1, T = i.d, A = r.d;
10613
10613
  if (!i.s) return new O(i);
10614
10614
  if (!r.s) throw Error(si + "Division by zero");
10615
- for (l = i.e - r.e, S = A.length, w = E.length, h = new O(P), p = h.d = [], f = 0; A[f] == (E[f] || 0); ) ++f;
10616
- if (A[f] > (E[f] || 0) && --l, a == null ? x = a = O.precision : o ? x = a + (It(i) - It(r)) + 1 : x = a, x < 0) return new O(0);
10615
+ for (l = i.e - r.e, S = A.length, w = T.length, h = new O(P), p = h.d = [], f = 0; A[f] == (T[f] || 0); ) ++f;
10616
+ if (A[f] > (T[f] || 0) && --l, a == null ? x = a = O.precision : o ? x = a + (It(i) - It(r)) + 1 : x = a, x < 0) return new O(0);
10617
10617
  if (x = x / mt + 2 | 0, f = 0, S == 1)
10618
10618
  for (c = 0, A = A[0], x++; (f < w || c) && x--; f++)
10619
- b = c * qt + (E[f] || 0), p[f] = b / A | 0, c = b % A | 0;
10619
+ b = c * qt + (T[f] || 0), p[f] = b / A | 0, c = b % A | 0;
10620
10620
  else {
10621
- for (c = qt / (A[0] + 1) | 0, c > 1 && (A = t(A, c), E = t(E, c), S = A.length, w = E.length), k = S, m = E.slice(0, S), y = m.length; y < S; ) m[y++] = 0;
10621
+ for (c = qt / (A[0] + 1) | 0, c > 1 && (A = t(A, c), T = t(T, c), S = A.length, w = T.length), k = S, m = T.slice(0, S), y = m.length; y < S; ) m[y++] = 0;
10622
10622
  C = A.slice(), C.unshift(0), _ = A[0], A[1] >= qt / 2 && ++_;
10623
10623
  do
10624
- c = 0, s = e(A, m, S, y), s < 0 ? (v = m[0], S != y && (v = v * qt + (m[1] || 0)), c = v / _ | 0, c > 1 ? (c >= qt && (c = qt - 1), u = t(A, c), d = u.length, y = m.length, s = e(u, m, d, y), s == 1 && (c--, n(u, S < d ? C : A, d))) : (c == 0 && (s = c = 1), u = A.slice()), d = u.length, d < y && u.unshift(0), n(m, u, y), s == -1 && (y = m.length, s = e(A, m, S, y), s < 1 && (c++, n(m, S < y ? C : A, y))), y = m.length) : s === 0 && (c++, m = [0]), p[f++] = c, s && m[0] ? m[y++] = E[k] || 0 : (m = [E[k]], y = 1);
10624
+ c = 0, s = e(A, m, S, y), s < 0 ? (v = m[0], S != y && (v = v * qt + (m[1] || 0)), c = v / _ | 0, c > 1 ? (c >= qt && (c = qt - 1), u = t(A, c), d = u.length, y = m.length, s = e(u, m, d, y), s == 1 && (c--, n(u, S < d ? C : A, d))) : (c == 0 && (s = c = 1), u = A.slice()), d = u.length, d < y && u.unshift(0), n(m, u, y), s == -1 && (y = m.length, s = e(A, m, S, y), s < 1 && (c++, n(m, S < y ? C : A, y))), y = m.length) : s === 0 && (c++, m = [0]), p[f++] = c, s && m[0] ? m[y++] = T[k] || 0 : (m = [T[k]], y = 1);
10625
10625
  while ((k++ < w || m[0] !== void 0) && x--);
10626
10626
  }
10627
10627
  return p[0] || p.shift(), h.e = l, lt(h, o ? a + It(h) + 1 : a);
@@ -11217,21 +11217,21 @@ var mc = /* @__PURE__ */ (function(t) {
11217
11217
  } else
11218
11218
  _ = S = k;
11219
11219
  if (a === "vertical") {
11220
- var O = c.scale, P = x + r, E = P + o, A = P - o, T = O(b - _), M = O(b + S);
11220
+ var O = c.scale, P = x + r, T = P + o, A = P - o, E = O(b - _), M = O(b + S);
11221
11221
  w.push({
11222
11222
  x1: M,
11223
- y1: E,
11223
+ y1: T,
11224
11224
  x2: M,
11225
11225
  y2: A
11226
11226
  }), w.push({
11227
- x1: T,
11227
+ x1: E,
11228
11228
  y1: P,
11229
11229
  x2: M,
11230
11230
  y2: P
11231
11231
  }), w.push({
11232
- x1: T,
11233
- y1: E,
11234
- x2: T,
11232
+ x1: E,
11233
+ y1: T,
11234
+ x2: E,
11235
11235
  y2: A
11236
11236
  });
11237
11237
  } else if (a === "horizontal") {
@@ -12061,9 +12061,9 @@ var id = Math.PI / 180, QK = function(e) {
12061
12061
  }
12062
12062
  var C = KP(x, a), O = C.realScaleType, P = C.scale;
12063
12063
  P.domain(b).range(w), GP(P);
12064
- var E = YP(P, Ji(Ji({}, x), {}, {
12064
+ var T = YP(P, Ji(Ji({}, x), {}, {
12065
12065
  realScaleType: O
12066
- })), A = Ji(Ji(Ji({}, x), E), {}, {
12066
+ })), A = Ji(Ji(Ji({}, x), T), {}, {
12067
12067
  range: w,
12068
12068
  radius: p,
12069
12069
  realScaleType: O,
@@ -12815,11 +12815,11 @@ var WG = function(e, n) {
12815
12815
  isExternal: !0,
12816
12816
  cornerRadius: o,
12817
12817
  cornerIsExternal: l
12818
- }), E = P.circleTangency, A = P.lineTangency, T = P.theta, M = l ? Math.abs(f - c) : Math.abs(f - c) - O - T;
12818
+ }), T = P.circleTangency, A = P.lineTangency, E = P.theta, M = l ? Math.abs(f - c) : Math.abs(f - c) - O - E;
12819
12819
  if (M < 0 && o === 0)
12820
12820
  return "".concat(w, "L").concat(n, ",").concat(i, "Z");
12821
12821
  w += "L".concat(A.x, ",").concat(A.y, `
12822
- A`).concat(o, ",").concat(o, ",0,0,").concat(+(u < 0), ",").concat(E.x, ",").concat(E.y, `
12822
+ A`).concat(o, ",").concat(o, ",0,0,").concat(+(u < 0), ",").concat(T.x, ",").concat(T.y, `
12823
12823
  A`).concat(r, ",").concat(r, ",0,").concat(+(M > 180), ",").concat(+(u > 0), ",").concat(S.x, ",").concat(S.y, `
12824
12824
  A`).concat(o, ",").concat(o, ",0,0,").concat(+(u < 0), ",").concat(C.x, ",").concat(C.y, "Z");
12825
12825
  } else
@@ -13081,7 +13081,7 @@ function QG() {
13081
13081
  }
13082
13082
  }
13083
13083
  }
13084
- var w = l, _ = f, S = s, C = o, O = e, P = c, E = i, A = p, T = h, M = n, D = a, I = r, F = u, L = !1;
13084
+ var w = l, _ = f, S = s, C = o, O = e, P = c, T = i, A = p, E = h, M = n, D = a, I = r, F = u, L = !1;
13085
13085
  function q(N) {
13086
13086
  return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), $(N) || k(N) === l;
13087
13087
  }
@@ -13121,7 +13121,7 @@ function QG() {
13121
13121
  function re(N) {
13122
13122
  return k(N) === u;
13123
13123
  }
13124
- Ze.AsyncMode = w, Ze.ConcurrentMode = _, Ze.ContextConsumer = S, Ze.ContextProvider = C, Ze.Element = O, Ze.ForwardRef = P, Ze.Fragment = E, Ze.Lazy = A, Ze.Memo = T, Ze.Portal = M, Ze.Profiler = D, Ze.StrictMode = I, Ze.Suspense = F, Ze.isAsyncMode = q, Ze.isConcurrentMode = $, Ze.isContextConsumer = j, Ze.isContextProvider = B, Ze.isElement = H, Ze.isForwardRef = K, Ze.isFragment = X, Ze.isLazy = ee, Ze.isMemo = ie, Ze.isPortal = ne, Ze.isProfiler = U, Ze.isStrictMode = J, Ze.isSuspense = re, Ze.isValidElementType = b, Ze.typeOf = k;
13124
+ Ze.AsyncMode = w, Ze.ConcurrentMode = _, Ze.ContextConsumer = S, Ze.ContextProvider = C, Ze.Element = O, Ze.ForwardRef = P, Ze.Fragment = T, Ze.Lazy = A, Ze.Memo = E, Ze.Portal = M, Ze.Profiler = D, Ze.StrictMode = I, Ze.Suspense = F, Ze.isAsyncMode = q, Ze.isConcurrentMode = $, Ze.isContextConsumer = j, Ze.isContextProvider = B, Ze.isElement = H, Ze.isForwardRef = K, Ze.isFragment = X, Ze.isLazy = ee, Ze.isMemo = ie, Ze.isPortal = ne, Ze.isProfiler = U, Ze.isStrictMode = J, Ze.isSuspense = re, Ze.isValidElementType = b, Ze.typeOf = k;
13125
13125
  })()), Ze;
13126
13126
  }
13127
13127
  var L5;
@@ -13277,7 +13277,7 @@ function nY() {
13277
13277
  oneOf: S,
13278
13278
  oneOfType: O,
13279
13279
  shape: A,
13280
- exact: T
13280
+ exact: E
13281
13281
  };
13282
13282
  function p($, j) {
13283
13283
  return $ === j ? $ !== 0 || 1 / $ === 1 / j : $ !== $ && j !== j;
@@ -13438,7 +13438,7 @@ function nY() {
13438
13438
  }
13439
13439
  return y($);
13440
13440
  }
13441
- function E($, j, B, H, K) {
13441
+ function T($, j, B, H, K) {
13442
13442
  return new m(
13443
13443
  ($ || "React class") + ": " + j + " type `" + B + "." + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + K + "`."
13444
13444
  );
@@ -13451,7 +13451,7 @@ function nY() {
13451
13451
  for (var U in $) {
13452
13452
  var J = $[U];
13453
13453
  if (typeof J != "function")
13454
- return E(K, X, ee, U, F(J));
13454
+ return T(K, X, ee, U, F(J));
13455
13455
  var re = J(ie, U, K, X, ee + "." + U, n);
13456
13456
  if (re)
13457
13457
  return re;
@@ -13460,7 +13460,7 @@ function nY() {
13460
13460
  }
13461
13461
  return y(j);
13462
13462
  }
13463
- function T($) {
13463
+ function E($) {
13464
13464
  function j(B, H, K, X, ee) {
13465
13465
  var ie = B[H], ne = I(ie);
13466
13466
  if (ne !== "object")
@@ -13469,7 +13469,7 @@ function nY() {
13469
13469
  for (var J in U) {
13470
13470
  var re = $[J];
13471
13471
  if (i($, J) && typeof re != "function")
13472
- return E(K, X, ee, J, F(re));
13472
+ return T(K, X, ee, J, F(re));
13473
13473
  if (!re)
13474
13474
  return new m(
13475
13475
  "Invalid " + X + " `" + ee + "` key `" + J + "` supplied to `" + K + "`.\nBad object: " + JSON.stringify(B[H], null, " ") + `
@@ -14603,10 +14603,10 @@ var _i = /* @__PURE__ */ (function(t) {
14603
14603
  duration: x,
14604
14604
  easing: k
14605
14605
  }), x]);
14606
- var P = r6(O, x, k), E = pi(pi(pi({}, C.style), w), {}, {
14606
+ var P = r6(O, x, k), T = pi(pi(pi({}, C.style), w), {}, {
14607
14607
  transition: P
14608
14608
  });
14609
- return [].concat(E1(m), [E, x, S]).filter(JY);
14609
+ return [].concat(E1(m), [T, x, S]).filter(JY);
14610
14610
  };
14611
14611
  return this.manager.start([l].concat(E1(o.reduce(h, [c, Math.max(d, s)])), [r.onAnimationEnd]));
14612
14612
  }
@@ -16206,11 +16206,11 @@ var kr = /* @__PURE__ */ (function(t) {
16206
16206
  });
16207
16207
  y.push(C), x = C.endAngle;
16208
16208
  } else {
16209
- var O = b.endAngle, P = b.startAngle, E = jt(0, O - P), A = E(m), T = ft(ft({}, b), {}, {
16209
+ var O = b.endAngle, P = b.startAngle, T = jt(0, O - P), A = T(m), E = ft(ft({}, b), {}, {
16210
16210
  startAngle: x + _,
16211
16211
  endAngle: x + A + _
16212
16212
  });
16213
- y.push(T), x = T.endAngle;
16213
+ y.push(E), x = E.endAngle;
16214
16214
  }
16215
16215
  }), /* @__PURE__ */ R.createElement(qe, null, i.renderSectorsStatically(y));
16216
16216
  });
@@ -16390,10 +16390,10 @@ Qn(kr, "getComposedData", function(t) {
16390
16390
  if (w > 0) {
16391
16391
  var S;
16392
16392
  _ = r.map(function(C, O) {
16393
- var P = At(C, v, 0), E = At(C, c, O), A = (fe(P) ? P : 0) / w, T;
16394
- O ? T = S.endAngle + un(m) * l * (P !== 0 ? 1 : 0) : T = o;
16395
- var M = T + un(m) * ((P !== 0 ? h : 0) + A * k), D = (T + M) / 2, I = (p.innerRadius + p.outerRadius) / 2, F = [{
16396
- name: E,
16393
+ var P = At(C, v, 0), T = At(C, c, O), A = (fe(P) ? P : 0) / w, E;
16394
+ O ? E = S.endAngle + un(m) * l * (P !== 0 ? 1 : 0) : E = o;
16395
+ var M = E + un(m) * ((P !== 0 ? h : 0) + A * k), D = (E + M) / 2, I = (p.innerRadius + p.outerRadius) / 2, F = [{
16396
+ name: T,
16397
16397
  value: P,
16398
16398
  payload: C,
16399
16399
  dataKey: v,
@@ -16402,14 +16402,14 @@ Qn(kr, "getComposedData", function(t) {
16402
16402
  return S = ft(ft(ft({
16403
16403
  percent: A,
16404
16404
  cornerRadius: a,
16405
- name: E,
16405
+ name: T,
16406
16406
  tooltipPayload: F,
16407
16407
  midAngle: D,
16408
16408
  middleRadius: I,
16409
16409
  tooltipPosition: L
16410
16410
  }, C), p), {}, {
16411
16411
  value: At(C, v),
16412
- startAngle: T,
16412
+ startAngle: E,
16413
16413
  endAngle: M,
16414
16414
  payload: C,
16415
16415
  paddingAngle: un(m) * l
@@ -17537,11 +17537,11 @@ qr(sa, "getComposedData", function(t) {
17537
17537
  var p = e.layout, m = n.type.defaultProps, y = m !== void 0 ? Mt(Mt({}, m), n.props) : n.props, v = y.dataKey, x = y.children, b = y.minPointSize, k = p === "horizontal" ? o : a, w = f ? k.scale.domain() : null, _ = HK({
17538
17538
  numericAxis: k
17539
17539
  }), S = Fn(x, Uh), C = u.map(function(O, P) {
17540
- var E, A, T, M, D, I;
17541
- f ? E = jK(f[c + P], w) : (E = At(O, v), Array.isArray(E) || (E = [_, E]));
17542
- var F = nQ(b, OM.defaultProps.minPointSize)(E[1], P);
17540
+ var T, A, E, M, D, I;
17541
+ f ? T = jK(f[c + P], w) : (T = At(O, v), Array.isArray(T) || (T = [_, T]));
17542
+ var F = nQ(b, OM.defaultProps.minPointSize)(T[1], P);
17543
17543
  if (p === "horizontal") {
17544
- var L, q = [o.scale(E[0]), o.scale(E[1])], $ = q[0], j = q[1];
17544
+ var L, q = [o.scale(T[0]), o.scale(T[1])], $ = q[0], j = q[1];
17545
17545
  A = b5({
17546
17546
  axis: a,
17547
17547
  ticks: s,
@@ -17549,7 +17549,7 @@ qr(sa, "getComposedData", function(t) {
17549
17549
  offset: h.offset,
17550
17550
  entry: O,
17551
17551
  index: P
17552
- }), T = (L = j ?? $) !== null && L !== void 0 ? L : void 0, M = h.size;
17552
+ }), E = (L = j ?? $) !== null && L !== void 0 ? L : void 0, M = h.size;
17553
17553
  var B = $ - j;
17554
17554
  if (D = Number.isNaN(B) ? 0 : B, I = {
17555
17555
  x: A,
@@ -17558,11 +17558,11 @@ qr(sa, "getComposedData", function(t) {
17558
17558
  height: o.height
17559
17559
  }, Math.abs(F) > 0 && Math.abs(D) < Math.abs(F)) {
17560
17560
  var H = un(D || F) * (Math.abs(F) - Math.abs(D));
17561
- T -= H, D += H;
17561
+ E -= H, D += H;
17562
17562
  }
17563
17563
  } else {
17564
- var K = [a.scale(E[0]), a.scale(E[1])], X = K[0], ee = K[1];
17565
- if (A = X, T = b5({
17564
+ var K = [a.scale(T[0]), a.scale(T[1])], X = K[0], ee = K[1];
17565
+ if (A = X, E = b5({
17566
17566
  axis: o,
17567
17567
  ticks: l,
17568
17568
  bandSize: r,
@@ -17571,7 +17571,7 @@ qr(sa, "getComposedData", function(t) {
17571
17571
  index: P
17572
17572
  }), M = ee - X, D = h.size, I = {
17573
17573
  x: a.x,
17574
- y: T,
17574
+ y: E,
17575
17575
  width: a.width,
17576
17576
  height: D
17577
17577
  }, Math.abs(F) > 0 && Math.abs(M) < Math.abs(F)) {
@@ -17581,17 +17581,17 @@ qr(sa, "getComposedData", function(t) {
17581
17581
  }
17582
17582
  return Mt(Mt(Mt({}, O), {}, {
17583
17583
  x: A,
17584
- y: T,
17584
+ y: E,
17585
17585
  width: M,
17586
17586
  height: D,
17587
- value: f ? E : E[1],
17587
+ value: f ? T : T[1],
17588
17588
  payload: O,
17589
17589
  background: I
17590
17590
  }, S && S[P] && S[P].props), {}, {
17591
17591
  tooltipPayload: [JP(n, O)],
17592
17592
  tooltipPosition: {
17593
17593
  x: A + M / 2,
17594
- y: T + D / 2
17594
+ y: E + D / 2
17595
17595
  }
17596
17596
  });
17597
17597
  });
@@ -17671,13 +17671,13 @@ var Fw = function(e, n, i, r, a) {
17671
17671
  bottomMirror: s - i.bottom
17672
17672
  }, d = !!Nn(f, sa);
17673
17673
  return c.reduce(function(h, p) {
17674
- var m = n[p], y = m.orientation, v = m.domain, x = m.padding, b = x === void 0 ? {} : x, k = m.mirror, w = m.reversed, _ = "".concat(y).concat(k ? "Mirror" : ""), S, C, O, P, E;
17674
+ var m = n[p], y = m.orientation, v = m.domain, x = m.padding, b = x === void 0 ? {} : x, k = m.mirror, w = m.reversed, _ = "".concat(y).concat(k ? "Mirror" : ""), S, C, O, P, T;
17675
17675
  if (m.type === "number" && (m.padding === "gap" || m.padding === "no-gap")) {
17676
- var A = v[1] - v[0], T = 1 / 0, M = m.categoricalDomain.sort();
17676
+ var A = v[1] - v[0], E = 1 / 0, M = m.categoricalDomain.sort();
17677
17677
  if (M.forEach(function(K, X) {
17678
- X > 0 && (T = Math.min((K || 0) - (M[X - 1] || 0), T));
17679
- }), Number.isFinite(T)) {
17680
- var D = T / A, I = m.layout === "vertical" ? i.height : i.width;
17678
+ X > 0 && (E = Math.min((K || 0) - (M[X - 1] || 0), E));
17679
+ }), Number.isFinite(E)) {
17680
+ var D = E / A, I = m.layout === "vertical" ? i.height : i.width;
17681
17681
  if (m.padding === "gap" && (S = D * I / 2), m.padding === "no-gap") {
17682
17682
  var F = dn(e.barCategoryGap, D * I), L = D * I / 2;
17683
17683
  S = L - F - (L - F) / I * F;
@@ -17690,7 +17690,7 @@ var Fw = function(e, n, i, r, a) {
17690
17690
  var B = YP($, mi(mi({}, m), {}, {
17691
17691
  realScaleType: j
17692
17692
  }));
17693
- r === "xAxis" ? (E = y === "top" && !k || y === "bottom" && k, O = i.left, P = u[_] - E * m.height) : r === "yAxis" && (E = y === "left" && !k || y === "right" && k, O = u[_] - E * m.width, P = i.top);
17693
+ r === "xAxis" ? (T = y === "top" && !k || y === "bottom" && k, O = i.left, P = u[_] - T * m.height) : r === "yAxis" && (T = y === "left" && !k || y === "right" && k, O = u[_] - T * m.width, P = i.top);
17694
17694
  var H = mi(mi(mi({}, m), B), {}, {
17695
17695
  realScaleType: j,
17696
17696
  x: O,
@@ -17699,7 +17699,7 @@ var Fw = function(e, n, i, r, a) {
17699
17699
  width: r === "xAxis" ? i.width : m.width,
17700
17700
  height: r === "yAxis" ? i.height : m.height
17701
17701
  });
17702
- return H.bandSize = nd(H, B), !m.hide && r === "xAxis" ? u[_] += (E ? -1 : 1) * H.height : m.hide || (u[_] += (E ? -1 : 1) * H.width), mi(mi({}, h), {}, fp({}, p, H));
17702
+ return H.bandSize = nd(H, B), !m.hide && r === "xAxis" ? u[_] += (T ? -1 : 1) * H.height : m.hide || (u[_] += (T ? -1 : 1) * H.width), mi(mi({}, h), {}, fp({}, p, H));
17703
17703
  }, {});
17704
17704
  }, TM = function(e, n) {
17705
17705
  var i = e.x, r = e.y, a = n.x, o = n.y;
@@ -19333,7 +19333,7 @@ function vc(t) {
19333
19333
  ki(Array.isArray(O), "horizontalCoordinatesGenerator should return Array but instead it returned [".concat(no(O), "]")), Array.isArray(O) && (_ = O);
19334
19334
  }
19335
19335
  if ((!S || !S.length) && Ae(k)) {
19336
- var P = v && v.length, E = k({
19336
+ var P = v && v.length, T = k({
19337
19337
  xAxis: x ? sn(sn({}, x), {}, {
19338
19338
  ticks: P ? v : x.ticks
19339
19339
  }) : void 0,
@@ -19341,7 +19341,7 @@ function vc(t) {
19341
19341
  height: l,
19342
19342
  offset: f
19343
19343
  }, P ? !0 : m);
19344
- ki(Array.isArray(E), "verticalCoordinatesGenerator should return Array but instead it returned [".concat(no(E), "]")), Array.isArray(E) && (S = E);
19344
+ ki(Array.isArray(T), "verticalCoordinatesGenerator should return Array but instead it returned [".concat(no(T), "]")), Array.isArray(T) && (S = T);
19345
19345
  }
19346
19346
  return /* @__PURE__ */ R.createElement("g", {
19347
19347
  className: "recharts-cartesian-grid"
@@ -19690,8 +19690,8 @@ var gc = /* @__PURE__ */ (function(t) {
19690
19690
  }, function(k) {
19691
19691
  var w = k.t;
19692
19692
  if (x) {
19693
- var _ = x.length / s.length, S = s.map(function(A, T) {
19694
- var M = Math.floor(T * _);
19693
+ var _ = x.length / s.length, S = s.map(function(A, E) {
19694
+ var M = Math.floor(E * _);
19695
19695
  if (x[M]) {
19696
19696
  var D = x[M], I = jt(D.x, A.x), F = jt(D.y, A.y);
19697
19697
  return Mn(Mn({}, A), {}, {
@@ -19715,10 +19715,10 @@ var gc = /* @__PURE__ */ (function(t) {
19715
19715
  }
19716
19716
  var C = jt(0, b), O = C(w), P;
19717
19717
  if (l) {
19718
- var E = "".concat(l).split(/[,\s]+/gim).map(function(A) {
19718
+ var T = "".concat(l).split(/[,\s]+/gim).map(function(A) {
19719
19719
  return parseFloat(A);
19720
19720
  });
19721
- P = a.getStrokeDasharray(O, b, E);
19721
+ P = a.getStrokeDasharray(O, b, T);
19722
19722
  } else
19723
19723
  P = a.generateSimpleStrokeDasharray(b, O);
19724
19724
  return a.renderCurveStatically(s, i, r, {
@@ -19741,7 +19741,7 @@ var gc = /* @__PURE__ */ (function(t) {
19741
19741
  var v = this.state.isAnimationFinished, x = s.length === 1, b = Ie("recharts-line", l), k = f && f.allowDataOverflow, w = c && c.allowDataOverflow, _ = k || w, S = Me(y) ? this.id : y, C = (i = xe(o, !1)) !== null && i !== void 0 ? i : {
19742
19742
  r: 3,
19743
19743
  strokeWidth: 2
19744
- }, O = C.r, P = O === void 0 ? 3 : O, E = C.strokeWidth, A = E === void 0 ? 2 : E, T = aT(o) ? o : {}, M = T.clipDot, D = M === void 0 ? !0 : M, I = P * 2 + A;
19744
+ }, O = C.r, P = O === void 0 ? 3 : O, T = C.strokeWidth, A = T === void 0 ? 2 : T, E = aT(o) ? o : {}, M = E.clipDot, D = M === void 0 ? !0 : M, I = P * 2 + A;
19745
19745
  return /* @__PURE__ */ R.createElement(qe, {
19746
19746
  className: b
19747
19747
  }, k || w ? /* @__PURE__ */ R.createElement("defs", null, /* @__PURE__ */ R.createElement("clipPath", {
@@ -20119,10 +20119,10 @@ var la = /* @__PURE__ */ (function(t) {
20119
20119
  var b = m.length / s.length, k = s.map(function(C, O) {
20120
20120
  var P = Math.floor(O * b);
20121
20121
  if (m[P]) {
20122
- var E = m[P], A = jt(E.x, C.x), T = jt(E.y, C.y);
20122
+ var T = m[P], A = jt(T.x, C.x), E = jt(T.y, C.y);
20123
20123
  return Mr(Mr({}, C), {}, {
20124
20124
  x: A(x),
20125
- y: T(x)
20125
+ y: E(x)
20126
20126
  });
20127
20127
  }
20128
20128
  return C;
@@ -20137,10 +20137,10 @@ var la = /* @__PURE__ */ (function(t) {
20137
20137
  w = l.map(function(C, O) {
20138
20138
  var P = Math.floor(O * b);
20139
20139
  if (y[P]) {
20140
- var E = y[P], A = jt(E.x, C.x), T = jt(E.y, C.y);
20140
+ var T = y[P], A = jt(T.x, C.x), E = jt(T.y, C.y);
20141
20141
  return Mr(Mr({}, C), {}, {
20142
20142
  x: A(x),
20143
- y: T(x)
20143
+ y: E(x)
20144
20144
  });
20145
20145
  }
20146
20146
  return C;
@@ -20169,7 +20169,7 @@ var la = /* @__PURE__ */ (function(t) {
20169
20169
  var v = this.state.isAnimationFinished, x = s.length === 1, b = Ie("recharts-area", l), k = u && u.allowDataOverflow, w = d && d.allowDataOverflow, _ = k || w, S = Me(y) ? this.id : y, C = (i = xe(o, !1)) !== null && i !== void 0 ? i : {
20170
20170
  r: 3,
20171
20171
  strokeWidth: 2
20172
- }, O = C.r, P = O === void 0 ? 3 : O, E = C.strokeWidth, A = E === void 0 ? 2 : E, T = aT(o) ? o : {}, M = T.clipDot, D = M === void 0 ? !0 : M, I = P * 2 + A;
20172
+ }, O = C.r, P = O === void 0 ? 3 : O, T = C.strokeWidth, A = T === void 0 ? 2 : T, E = aT(o) ? o : {}, M = E.clipDot, D = M === void 0 ? !0 : M, I = P * 2 + A;
20173
20173
  return /* @__PURE__ */ R.createElement(qe, {
20174
20174
  className: b
20175
20175
  }, k || w ? /* @__PURE__ */ R.createElement("defs", null, /* @__PURE__ */ R.createElement("clipPath", {
@@ -21226,7 +21226,7 @@ var _b = function(e, n, i, r) {
21226
21226
  }),
21227
21227
  dataStartIndex: l,
21228
21228
  dataEndIndex: f
21229
- }), E = P.length, A, T, M;
21229
+ }), T = P.length, A, E, M;
21230
21230
  Ute(v.domain, k, x) && (A = $0(v.domain, null, k), h && (x === "number" || _ !== "auto") && (M = El(P, b, "category")));
21231
21231
  var D = h8(x);
21232
21232
  if (!A || A.length === 0) {
@@ -21234,7 +21234,7 @@ var _b = function(e, n, i, r) {
21234
21234
  if (b) {
21235
21235
  if (A = El(P, b, x), x === "category" && h) {
21236
21236
  var L = tB(A);
21237
- w && L ? (T = A, A = md(0, E)) : w || (A = k5(F, A, m).reduce(function(B, H) {
21237
+ w && L ? (E = A, A = md(0, T)) : w || (A = k5(F, A, m).reduce(function(B, H) {
21238
21238
  return B.indexOf(H) >= 0 ? B : [].concat(ws(B), [H]);
21239
21239
  }, []));
21240
21240
  } else if (x === "category")
@@ -21251,7 +21251,7 @@ var _b = function(e, n, i, r) {
21251
21251
  q && (A = q);
21252
21252
  }
21253
21253
  h && (x === "number" || _ !== "auto") && (M = El(P, b, "category"));
21254
- } else h ? A = md(0, E) : s && s[O] && s[O].hasStack && x === "number" ? A = d === "expand" ? [0, 1] : XP(s[O].stackGroups, l, f) : A = WP(P, r.filter(function(B) {
21254
+ } else h ? A = md(0, T) : s && s[O] && s[O].hasStack && x === "number" ? A = d === "expand" ? [0, 1] : XP(s[O].stackGroups, l, f) : A = WP(P, r.filter(function(B) {
21255
21255
  var H = o in B.props ? B.props[o] : B.type.defaultProps[o], K = "hide" in B.props ? B.props.hide : B.type.defaultProps.hide;
21256
21256
  return H === O && (C || !K);
21257
21257
  }), x, c, !0);
@@ -21268,7 +21268,7 @@ var _b = function(e, n, i, r) {
21268
21268
  axisType: a,
21269
21269
  domain: A,
21270
21270
  categoricalDomain: M,
21271
- duplicateDomain: T,
21271
+ duplicateDomain: E,
21272
21272
  originalDomain: (y = v.domain) !== null && y !== void 0 ? y : D,
21273
21273
  isCategorical: h,
21274
21274
  layout: c
@@ -21391,7 +21391,7 @@ var _b = function(e, n, i, r) {
21391
21391
  return e[n].height;
21392
21392
  }, mp = function(e) {
21393
21393
  var n = e.chartName, i = e.GraphicalChild, r = e.defaultTooltipEventType, a = r === void 0 ? "axis" : r, o = e.validateTooltipEventTypes, s = o === void 0 ? ["axis"] : o, l = e.axisComponents, f = e.legendContent, c = e.formatAxisMap, u = e.defaultProps, d = function(v, x) {
21394
- var b = x.graphicalItems, k = x.stackGroups, w = x.offset, _ = x.updateId, S = x.dataStartIndex, C = x.dataEndIndex, O = v.barSize, P = v.layout, E = v.barGap, A = v.barCategoryGap, T = v.maxBarSize, M = IO(P), D = M.numericAxisName, I = M.cateAxisName, F = Sne(b), L = [];
21394
+ var b = x.graphicalItems, k = x.stackGroups, w = x.offset, _ = x.updateId, S = x.dataStartIndex, C = x.dataEndIndex, O = v.barSize, P = v.layout, T = v.barGap, A = v.barCategoryGap, E = v.maxBarSize, M = IO(P), D = M.numericAxisName, I = M.cateAxisName, F = Sne(b), L = [];
21395
21395
  return b.forEach(function(q, $) {
21396
21396
  var j = pp(v.data, {
21397
21397
  graphicalItems: [q],
@@ -21411,9 +21411,9 @@ var _b = function(e, n, i, r) {
21411
21411
  totalSize: Cne(ne, I)
21412
21412
  });
21413
21413
  if (N) {
21414
- var oe, ue, Pe = Me(K) ? T : K, ke = (oe = (ue = nd(U, J, !0)) !== null && ue !== void 0 ? ue : Pe) !== null && oe !== void 0 ? oe : 0;
21414
+ var oe, ue, Pe = Me(K) ? E : K, ke = (oe = (ue = nd(U, J, !0)) !== null && ue !== void 0 ? ue : Pe) !== null && oe !== void 0 ? oe : 0;
21415
21415
  W = DK({
21416
- barGap: E,
21416
+ barGap: T,
21417
21417
  barCategoryGap: A,
21418
21418
  bandSize: ke !== Q ? ke : Q,
21419
21419
  sizeList: le[ee],
@@ -21453,11 +21453,11 @@ var _b = function(e, n, i, r) {
21453
21453
  props: b
21454
21454
  }))
21455
21455
  return null;
21456
- var S = b.children, C = b.layout, O = b.stackOffset, P = b.data, E = b.reverseStackOrder, A = IO(C), T = A.numericAxisName, M = A.cateAxisName, D = Fn(S, i), I = qK(P, D, "".concat(T, "Id"), "".concat(M, "Id"), O, E), F = l.reduce(function(B, H) {
21456
+ var S = b.children, C = b.layout, O = b.stackOffset, P = b.data, T = b.reverseStackOrder, A = IO(C), E = A.numericAxisName, M = A.cateAxisName, D = Fn(S, i), I = qK(P, D, "".concat(E, "Id"), "".concat(M, "Id"), O, T), F = l.reduce(function(B, H) {
21457
21457
  var K = "".concat(H.axisType, "Map");
21458
21458
  return Y(Y({}, B), {}, Ce({}, K, kne(b, Y(Y({}, H), {}, {
21459
21459
  graphicalItems: D,
21460
- stackGroups: H.axisType === T && I,
21460
+ stackGroups: H.axisType === E && I,
21461
21461
  dataStartIndex: k,
21462
21462
  dataEndIndex: w
21463
21463
  }))));
@@ -21620,19 +21620,19 @@ var _b = function(e, n, i, r) {
21620
21620
  }), Ce(w, "triggerSyncEvent", function(_) {
21621
21621
  w.props.syncId !== void 0 && Z1.emit(Q1, w.props.syncId, _, w.eventEmitterSymbol);
21622
21622
  }), Ce(w, "applySyncEvent", function(_) {
21623
- var S = w.props, C = S.layout, O = S.syncMethod, P = w.state.updateId, E = _.dataStartIndex, A = _.dataEndIndex;
21623
+ var S = w.props, C = S.layout, O = S.syncMethod, P = w.state.updateId, T = _.dataStartIndex, A = _.dataEndIndex;
21624
21624
  if (_.dataStartIndex !== void 0 || _.dataEndIndex !== void 0)
21625
21625
  w.setState(Y({
21626
- dataStartIndex: E,
21626
+ dataStartIndex: T,
21627
21627
  dataEndIndex: A
21628
21628
  }, h({
21629
21629
  props: w.props,
21630
- dataStartIndex: E,
21630
+ dataStartIndex: T,
21631
21631
  dataEndIndex: A,
21632
21632
  updateId: P
21633
21633
  }, w.state)));
21634
21634
  else if (_.activeTooltipIndex !== void 0) {
21635
- var T = _.chartX, M = _.chartY, D = _.activeTooltipIndex, I = w.state, F = I.offset, L = I.tooltipTicks;
21635
+ var E = _.chartX, M = _.chartY, D = _.activeTooltipIndex, I = w.state, F = I.offset, L = I.tooltipTicks;
21636
21636
  if (!F)
21637
21637
  return;
21638
21638
  if (typeof O == "function")
@@ -21648,7 +21648,7 @@ var _b = function(e, n, i, r) {
21648
21648
  var $ = Y(Y({}, F), {}, {
21649
21649
  x: F.left,
21650
21650
  y: F.top
21651
- }), j = Math.min(T, $.x + $.width), B = Math.min(M, $.y + $.height), H = L[D] && L[D].value, K = _b(w.state, w.props.data, D), X = L[D] ? {
21651
+ }), j = Math.min(E, $.x + $.width), B = Math.min(M, $.y + $.height), H = L[D] && L[D].value, K = _b(w.state, w.props.data, D), X = L[D] ? {
21652
21652
  x: C === "horizontal" ? L[D].coordinate : j,
21653
21653
  y: C === "horizontal" ? B : L[D].coordinate
21654
21654
  } : d8;
@@ -21661,12 +21661,12 @@ var _b = function(e, n, i, r) {
21661
21661
  } else
21662
21662
  w.setState(_);
21663
21663
  }), Ce(w, "renderCursor", function(_) {
21664
- var S, C = w.state, O = C.isTooltipActive, P = C.activeCoordinate, E = C.activePayload, A = C.offset, T = C.activeTooltipIndex, M = C.tooltipAxisBandSize, D = w.getTooltipEventType(), I = (S = _.props.active) !== null && S !== void 0 ? S : O, F = w.props.layout, L = _.key || "_recharts-cursor";
21664
+ var S, C = w.state, O = C.isTooltipActive, P = C.activeCoordinate, T = C.activePayload, A = C.offset, E = C.activeTooltipIndex, M = C.tooltipAxisBandSize, D = w.getTooltipEventType(), I = (S = _.props.active) !== null && S !== void 0 ? S : O, F = w.props.layout, L = _.key || "_recharts-cursor";
21665
21665
  return /* @__PURE__ */ R.createElement(Zte, {
21666
21666
  key: L,
21667
21667
  activeCoordinate: P,
21668
- activePayload: E,
21669
- activeTooltipIndex: T,
21668
+ activePayload: T,
21669
+ activeTooltipIndex: E,
21670
21670
  chartName: n,
21671
21671
  element: _,
21672
21672
  isActive: I,
@@ -21676,14 +21676,14 @@ var _b = function(e, n, i, r) {
21676
21676
  tooltipEventType: D
21677
21677
  });
21678
21678
  }), Ce(w, "renderPolarAxis", function(_, S, C) {
21679
- var O = Ln(_, "type.axisType"), P = Ln(w.state, "".concat(O, "Map")), E = _.type.defaultProps, A = E !== void 0 ? Y(Y({}, E), _.props) : _.props, T = P && P[A["".concat(O, "Id")]];
21680
- return /* @__PURE__ */ Dt(_, Y(Y({}, T), {}, {
21681
- className: Ie(O, T.className),
21679
+ var O = Ln(_, "type.axisType"), P = Ln(w.state, "".concat(O, "Map")), T = _.type.defaultProps, A = T !== void 0 ? Y(Y({}, T), _.props) : _.props, E = P && P[A["".concat(O, "Id")]];
21680
+ return /* @__PURE__ */ Dt(_, Y(Y({}, E), {}, {
21681
+ className: Ie(O, E.className),
21682
21682
  key: _.key || "".concat(S, "-").concat(C),
21683
- ticks: rr(T, !0)
21683
+ ticks: rr(E, !0)
21684
21684
  }));
21685
21685
  }), Ce(w, "renderPolarGrid", function(_) {
21686
- var S = _.props, C = S.radialLines, O = S.polarAngles, P = S.polarRadius, E = w.state, A = E.radiusAxisMap, T = E.angleAxisMap, M = jr(A), D = jr(T), I = D.cx, F = D.cy, L = D.innerRadius, q = D.outerRadius;
21686
+ var S = _.props, C = S.radialLines, O = S.polarAngles, P = S.polarRadius, T = w.state, A = T.radiusAxisMap, E = T.angleAxisMap, M = jr(A), D = jr(E), I = D.cx, F = D.cy, L = D.innerRadius, q = D.outerRadius;
21687
21687
  return /* @__PURE__ */ Dt(_, {
21688
21688
  polarAngles: Array.isArray(O) ? O : rr(D, !0).map(function($) {
21689
21689
  return $.coordinate;
@@ -21699,26 +21699,26 @@ var _b = function(e, n, i, r) {
21699
21699
  radialLines: C
21700
21700
  });
21701
21701
  }), Ce(w, "renderLegend", function() {
21702
- var _ = w.state.formattedGraphicalItems, S = w.props, C = S.children, O = S.width, P = S.height, E = w.props.margin || {}, A = O - (E.left || 0) - (E.right || 0), T = qP({
21702
+ var _ = w.state.formattedGraphicalItems, S = w.props, C = S.children, O = S.width, P = S.height, T = w.props.margin || {}, A = O - (T.left || 0) - (T.right || 0), E = qP({
21703
21703
  children: C,
21704
21704
  formattedGraphicalItems: _,
21705
21705
  legendWidth: A,
21706
21706
  legendContent: f
21707
21707
  });
21708
- if (!T)
21708
+ if (!E)
21709
21709
  return null;
21710
- var M = T.item, D = PO(T, Qte);
21710
+ var M = E.item, D = PO(E, Qte);
21711
21711
  return /* @__PURE__ */ Dt(M, Y(Y({}, D), {}, {
21712
21712
  chartWidth: O,
21713
21713
  chartHeight: P,
21714
- margin: E,
21714
+ margin: T,
21715
21715
  onBBoxUpdate: w.handleLegendBBoxUpdate
21716
21716
  }));
21717
21717
  }), Ce(w, "renderTooltip", function() {
21718
21718
  var _, S = w.props, C = S.children, O = S.accessibilityLayer, P = Nn(C, Ti);
21719
21719
  if (!P)
21720
21720
  return null;
21721
- var E = w.state, A = E.isTooltipActive, T = E.activeCoordinate, M = E.activePayload, D = E.activeLabel, I = E.offset, F = (_ = P.props.active) !== null && _ !== void 0 ? _ : A;
21721
+ var T = w.state, A = T.isTooltipActive, E = T.activeCoordinate, M = T.activePayload, D = T.activeLabel, I = T.offset, F = (_ = P.props.active) !== null && _ !== void 0 ? _ : A;
21722
21722
  return /* @__PURE__ */ Dt(P, {
21723
21723
  viewBox: Y(Y({}, I), {}, {
21724
21724
  x: I.left,
@@ -21727,30 +21727,30 @@ var _b = function(e, n, i, r) {
21727
21727
  active: F,
21728
21728
  label: D,
21729
21729
  payload: F ? M : [],
21730
- coordinate: T,
21730
+ coordinate: E,
21731
21731
  accessibilityLayer: O
21732
21732
  });
21733
21733
  }), Ce(w, "renderBrush", function(_) {
21734
- var S = w.props, C = S.margin, O = S.data, P = w.state, E = P.offset, A = P.dataStartIndex, T = P.dataEndIndex, M = P.updateId;
21734
+ var S = w.props, C = S.margin, O = S.data, P = w.state, T = P.offset, A = P.dataStartIndex, E = P.dataEndIndex, M = P.updateId;
21735
21735
  return /* @__PURE__ */ Dt(_, {
21736
21736
  key: _.key || "_recharts-brush",
21737
21737
  onChange: qc(w.handleBrushChange, _.props.onChange),
21738
21738
  data: O,
21739
- x: fe(_.props.x) ? _.props.x : E.left,
21740
- y: fe(_.props.y) ? _.props.y : E.top + E.height + E.brushBottom - (C.bottom || 0),
21741
- width: fe(_.props.width) ? _.props.width : E.width,
21739
+ x: fe(_.props.x) ? _.props.x : T.left,
21740
+ y: fe(_.props.y) ? _.props.y : T.top + T.height + T.brushBottom - (C.bottom || 0),
21741
+ width: fe(_.props.width) ? _.props.width : T.width,
21742
21742
  startIndex: A,
21743
- endIndex: T,
21743
+ endIndex: E,
21744
21744
  updateId: "brush-".concat(M)
21745
21745
  });
21746
21746
  }), Ce(w, "renderReferenceElement", function(_, S, C) {
21747
21747
  if (!_)
21748
21748
  return null;
21749
- var O = w, P = O.clipPathId, E = w.state, A = E.xAxisMap, T = E.yAxisMap, M = E.offset, D = _.type.defaultProps || {}, I = _.props, F = I.xAxisId, L = F === void 0 ? D.xAxisId : F, q = I.yAxisId, $ = q === void 0 ? D.yAxisId : q;
21749
+ var O = w, P = O.clipPathId, T = w.state, A = T.xAxisMap, E = T.yAxisMap, M = T.offset, D = _.type.defaultProps || {}, I = _.props, F = I.xAxisId, L = F === void 0 ? D.xAxisId : F, q = I.yAxisId, $ = q === void 0 ? D.yAxisId : q;
21750
21750
  return /* @__PURE__ */ Dt(_, {
21751
21751
  key: _.key || "".concat(S, "-").concat(C),
21752
21752
  xAxis: A[L],
21753
- yAxis: T[$],
21753
+ yAxis: E[$],
21754
21754
  viewBox: {
21755
21755
  x: M.left,
21756
21756
  y: M.top,
@@ -21760,7 +21760,7 @@ var _b = function(e, n, i, r) {
21760
21760
  clipPathId: P
21761
21761
  });
21762
21762
  }), Ce(w, "renderActivePoints", function(_) {
21763
- var S = _.item, C = _.activePoint, O = _.basePoint, P = _.childIndex, E = _.isRange, A = [], T = S.props.key, M = S.item.type.defaultProps !== void 0 ? Y(Y({}, S.item.type.defaultProps), S.item.props) : S.item.props, D = M.activeDot, I = M.dataKey, F = Y(Y({
21763
+ var S = _.item, C = _.activePoint, O = _.basePoint, P = _.childIndex, T = _.isRange, A = [], E = S.props.key, M = S.item.type.defaultProps !== void 0 ? Y(Y({}, S.item.type.defaultProps), S.item.props) : S.item.props, D = M.activeDot, I = M.dataKey, F = Y(Y({
21764
21764
  index: P,
21765
21765
  dataKey: I,
21766
21766
  cx: C.x,
@@ -21772,15 +21772,15 @@ var _b = function(e, n, i, r) {
21772
21772
  payload: C.payload,
21773
21773
  value: C.value
21774
21774
  }, xe(D, !1)), Mu(D));
21775
- return A.push(v.renderActiveDot(D, F, "".concat(T, "-activePoint-").concat(P))), O ? A.push(v.renderActiveDot(D, Y(Y({}, F), {}, {
21775
+ return A.push(v.renderActiveDot(D, F, "".concat(E, "-activePoint-").concat(P))), O ? A.push(v.renderActiveDot(D, Y(Y({}, F), {}, {
21776
21776
  cx: O.x,
21777
21777
  cy: O.y
21778
- }), "".concat(T, "-basePoint-").concat(P))) : E && A.push(null), A;
21778
+ }), "".concat(E, "-basePoint-").concat(P))) : T && A.push(null), A;
21779
21779
  }), Ce(w, "renderGraphicChild", function(_, S, C) {
21780
21780
  var O = w.filterFormatItem(_, S, C);
21781
21781
  if (!O)
21782
21782
  return null;
21783
- var P = w.getTooltipEventType(), E = w.state, A = E.isTooltipActive, T = E.tooltipAxis, M = E.activeTooltipIndex, D = E.activeLabel, I = w.props.children, F = Nn(I, Ti), L = O.props, q = L.points, $ = L.isRange, j = L.baseLine, B = O.item.type.defaultProps !== void 0 ? Y(Y({}, O.item.type.defaultProps), O.item.props) : O.item.props, H = B.activeDot, K = B.hide, X = B.activeBar, ee = B.activeShape, ie = !!(!K && A && F && (H || X || ee)), ne = {};
21783
+ var P = w.getTooltipEventType(), T = w.state, A = T.isTooltipActive, E = T.tooltipAxis, M = T.activeTooltipIndex, D = T.activeLabel, I = w.props.children, F = Nn(I, Ti), L = O.props, q = L.points, $ = L.isRange, j = L.baseLine, B = O.item.type.defaultProps !== void 0 ? Y(Y({}, O.item.type.defaultProps), O.item.props) : O.item.props, H = B.activeDot, K = B.hide, X = B.activeBar, ee = B.activeShape, ie = !!(!K && A && F && (H || X || ee)), ne = {};
21784
21784
  P !== "axis" && F && F.props.trigger === "click" ? ne = {
21785
21785
  onClick: qc(w.handleItemMouseEnter, _.props.onClick)
21786
21786
  } : P !== "axis" && (ne = {
@@ -21789,13 +21789,13 @@ var _b = function(e, n, i, r) {
21789
21789
  });
21790
21790
  var U = /* @__PURE__ */ Dt(_, Y(Y({}, O.props), ne));
21791
21791
  function J(He) {
21792
- return typeof T.dataKey == "function" ? T.dataKey(He.payload) : null;
21792
+ return typeof E.dataKey == "function" ? E.dataKey(He.payload) : null;
21793
21793
  }
21794
21794
  if (ie)
21795
21795
  if (M >= 0) {
21796
21796
  var re, N;
21797
- if (T.dataKey && !T.allowDuplicatedCategory) {
21798
- var Q = typeof T.dataKey == "function" ? J : "payload.".concat(T.dataKey.toString());
21797
+ if (E.dataKey && !E.allowDuplicatedCategory) {
21798
+ var Q = typeof E.dataKey == "function" ? J : "payload.".concat(E.dataKey.toString());
21799
21799
  re = Pu(q, Q, D), N = $ && j && Pu(j, Q, D);
21800
21800
  } else
21801
21801
  re = q?.[M], N = $ && j && j[M];
@@ -21915,22 +21915,22 @@ var _b = function(e, n, i, r) {
21915
21915
  if (C) {
21916
21916
  var O = C.props.defaultIndex;
21917
21917
  if (!(typeof O != "number" || O < 0 || O > this.state.tooltipTicks.length - 1)) {
21918
- var P = this.state.tooltipTicks[O] && this.state.tooltipTicks[O].value, E = _b(this.state, w, O, P), A = this.state.tooltipTicks[O].coordinate, T = (this.state.offset.top + _) / 2, M = S === "horizontal", D = M ? {
21918
+ var P = this.state.tooltipTicks[O] && this.state.tooltipTicks[O].value, T = _b(this.state, w, O, P), A = this.state.tooltipTicks[O].coordinate, E = (this.state.offset.top + _) / 2, M = S === "horizontal", D = M ? {
21919
21919
  x: A,
21920
- y: T
21920
+ y: E
21921
21921
  } : {
21922
21922
  y: A,
21923
- x: T
21923
+ x: E
21924
21924
  }, I = this.state.formattedGraphicalItems.find(function(L) {
21925
21925
  var q = L.item;
21926
21926
  return q.type.name === "Scatter";
21927
21927
  });
21928
- I && (D = Y(Y({}, D), I.props.points[O].tooltipPosition), E = I.props.points[O].tooltipPayload);
21928
+ I && (D = Y(Y({}, D), I.props.points[O].tooltipPosition), T = I.props.points[O].tooltipPayload);
21929
21929
  var F = {
21930
21930
  activeTooltipIndex: O,
21931
21931
  isTooltipActive: !0,
21932
21932
  activeLabel: P,
21933
- activePayload: E,
21933
+ activePayload: T,
21934
21934
  activeCoordinate: D
21935
21935
  };
21936
21936
  this.setState(F), this.renderCursor(C), this.accessibilityManager.setIndex(O);
@@ -21993,9 +21993,9 @@ var _b = function(e, n, i, r) {
21993
21993
  }, C = w.width / k.offsetWidth || 1, O = this.inRange(S.chartX, S.chartY, C);
21994
21994
  if (!O)
21995
21995
  return null;
21996
- var P = this.state, E = P.xAxisMap, A = P.yAxisMap, T = this.getTooltipEventType();
21997
- if (T !== "axis" && E && A) {
21998
- var M = jr(E).scale, D = jr(A).scale, I = M && M.invert ? M.invert(S.chartX) : null, F = D && D.invert ? D.invert(S.chartY) : null;
21996
+ var P = this.state, T = P.xAxisMap, A = P.yAxisMap, E = this.getTooltipEventType();
21997
+ if (E !== "axis" && T && A) {
21998
+ var M = jr(T).scale, D = jr(A).scale, I = M && M.invert ? M.invert(S.chartX) : null, F = D && D.invert ? D.invert(S.chartY) : null;
21999
21999
  return Y(Y({}, S), {}, {
22000
22000
  xValue: I,
22001
22001
  yValue: F
@@ -22015,8 +22015,8 @@ var _b = function(e, n, i, r) {
22015
22015
  y: C
22016
22016
  } : null;
22017
22017
  }
22018
- var E = this.state, A = E.angleAxisMap, T = E.radiusAxisMap;
22019
- if (A && T) {
22018
+ var T = this.state, A = T.angleAxisMap, E = T.radiusAxisMap;
22019
+ if (A && E) {
22020
22020
  var M = jr(A);
22021
22021
  return O5({
22022
22022
  x: S,
@@ -22113,8 +22113,8 @@ var _b = function(e, n, i, r) {
22113
22113
  var k = this.state, w = k.formattedGraphicalItems, _ = k.activeItem;
22114
22114
  if (w && w.length)
22115
22115
  for (var S = 0, C = w.length; S < C; S++) {
22116
- var O = w[S], P = O.props, E = O.item, A = E.type.defaultProps !== void 0 ? Y(Y({}, E.type.defaultProps), E.props) : E.props, T = lr(E.type);
22117
- if (T === "Bar") {
22116
+ var O = w[S], P = O.props, T = O.item, A = T.type.defaultProps !== void 0 ? Y(Y({}, T.type.defaultProps), T.props) : T.props, E = lr(T.type);
22117
+ if (E === "Bar") {
22118
22118
  var M = (P.data || []).find(function(L) {
22119
22119
  return WX(b, L);
22120
22120
  });
@@ -22123,7 +22123,7 @@ var _b = function(e, n, i, r) {
22123
22123
  graphicalItem: O,
22124
22124
  payload: M
22125
22125
  };
22126
- } else if (T === "RadialBar") {
22126
+ } else if (E === "RadialBar") {
22127
22127
  var D = (P.data || []).find(function(L) {
22128
22128
  return O5(b, L);
22129
22129
  });
@@ -22154,7 +22154,7 @@ var _b = function(e, n, i, r) {
22154
22154
  var b = this;
22155
22155
  if (!D_(this))
22156
22156
  return null;
22157
- var k = this.props, w = k.children, _ = k.className, S = k.width, C = k.height, O = k.style, P = k.compact, E = k.title, A = k.desc, T = PO(k, ene), M = xe(T, !1);
22157
+ var k = this.props, w = k.children, _ = k.className, S = k.width, C = k.height, O = k.style, P = k.compact, T = k.title, A = k.desc, E = PO(k, ene), M = xe(E, !1);
22158
22158
  if (P)
22159
22159
  return /* @__PURE__ */ R.createElement(lO, {
22160
22160
  state: this.state,
@@ -22164,7 +22164,7 @@ var _b = function(e, n, i, r) {
22164
22164
  }, /* @__PURE__ */ R.createElement(o0, Ro({}, M, {
22165
22165
  width: S,
22166
22166
  height: C,
22167
- title: E,
22167
+ title: T,
22168
22168
  desc: A
22169
22169
  }), this.renderClipPath(), I_(w, this.renderMap)));
22170
22170
  if (this.props.accessibilityLayer) {
@@ -22196,7 +22196,7 @@ var _b = function(e, n, i, r) {
22196
22196
  }), /* @__PURE__ */ R.createElement(o0, Ro({}, M, {
22197
22197
  width: S,
22198
22198
  height: C,
22199
- title: E,
22199
+ title: T,
22200
22200
  desc: A,
22201
22201
  style: vne
22202
22202
  }), this.renderClipPath(), I_(w, this.renderMap)), this.renderLegend(), this.renderTooltip()));
@@ -22217,7 +22217,7 @@ var _b = function(e, n, i, r) {
22217
22217
  reverseStackOrder: !1,
22218
22218
  syncMethod: "index"
22219
22219
  }, u)), Ce(p, "getDerivedStateFromProps", function(y, v) {
22220
- var x = y.dataKey, b = y.data, k = y.children, w = y.width, _ = y.height, S = y.layout, C = y.stackOffset, O = y.margin, P = v.dataStartIndex, E = v.dataEndIndex;
22220
+ var x = y.dataKey, b = y.data, k = y.children, w = y.width, _ = y.height, S = y.layout, C = y.stackOffset, O = y.margin, P = v.dataStartIndex, T = v.dataEndIndex;
22221
22221
  if (v.updateId === void 0) {
22222
22222
  var A = NO(y);
22223
22223
  return Y(Y(Y({}, A), {}, {
@@ -22238,7 +22238,7 @@ var _b = function(e, n, i, r) {
22238
22238
  });
22239
22239
  }
22240
22240
  if (x !== v.prevDataKey || b !== v.prevData || w !== v.prevWidth || _ !== v.prevHeight || S !== v.prevLayout || C !== v.prevStackOffset || !jo(O, v.prevMargin)) {
22241
- var T = NO(y), M = {
22241
+ var E = NO(y), M = {
22242
22242
  // (chartX, chartY) are (0,0) in default state, but we want to keep the last mouse position to avoid
22243
22243
  // any flickering
22244
22244
  chartX: v.chartX,
@@ -22248,7 +22248,7 @@ var _b = function(e, n, i, r) {
22248
22248
  isTooltipActive: v.isTooltipActive
22249
22249
  }, D = Y(Y({}, DO(v, b, S)), {}, {
22250
22250
  updateId: v.updateId + 1
22251
- }), I = Y(Y(Y({}, T), M), D);
22251
+ }), I = Y(Y(Y({}, E), M), D);
22252
22252
  return Y(Y(Y({}, I), h(Y({
22253
22253
  props: y
22254
22254
  }, I), v)), {}, {
@@ -22263,7 +22263,7 @@ var _b = function(e, n, i, r) {
22263
22263
  });
22264
22264
  }
22265
22265
  if (!r0(k, v.prevChildren)) {
22266
- var F, L, q, $, j = Nn(k, fs), B = j && (F = (L = j.props) === null || L === void 0 ? void 0 : L.startIndex) !== null && F !== void 0 ? F : P, H = j && (q = ($ = j.props) === null || $ === void 0 ? void 0 : $.endIndex) !== null && q !== void 0 ? q : E, K = B !== P || H !== E, X = !Me(b), ee = X && !K ? v.updateId : v.updateId + 1;
22266
+ var F, L, q, $, j = Nn(k, fs), B = j && (F = (L = j.props) === null || L === void 0 ? void 0 : L.startIndex) !== null && F !== void 0 ? F : P, H = j && (q = ($ = j.props) === null || $ === void 0 ? void 0 : $.endIndex) !== null && q !== void 0 ? q : T, K = B !== P || H !== T, X = !Me(b), ee = X && !K ? v.updateId : v.updateId + 1;
22267
22267
  return Y(Y({
22268
22268
  updateId: ee
22269
22269
  }, h(Y(Y({
@@ -23576,12 +23576,12 @@ function g8({
23576
23576
  value: m?.value,
23577
23577
  granularity: L
23578
23578
  });
23579
- }, E = ce(
23579
+ }, T = ce(
23580
23580
  () => n.length > 0 && !C,
23581
23581
  [n, C]
23582
23582
  ), A = () => {
23583
23583
  O(!1);
23584
- }, T = ce(
23584
+ }, E = ce(
23585
23585
  () => b.calendarView || "day",
23586
23586
  [b]
23587
23587
  ), [M, D] = Z(o || void 0), I = ce(() => {
@@ -23624,7 +23624,7 @@ function g8({
23624
23624
  );
23625
23625
  }, [M, s, I]), /* @__PURE__ */ z(Ox, { open: d.open, onOpenChange: d.onOpenChange, children: [
23626
23626
  /* @__PURE__ */ g(Cx, { asChild: c, children: r }),
23627
- /* @__PURE__ */ g(Ax, { className: "w-full overflow-auto", align: "start", children: E ? /* @__PURE__ */ g(
23627
+ /* @__PURE__ */ g(Ax, { className: "w-full overflow-auto", align: "start", children: T ? /* @__PURE__ */ g(
23628
23628
  Jne,
23629
23629
  {
23630
23630
  presets: n,
@@ -23659,7 +23659,7 @@ function g8({
23659
23659
  {
23660
23660
  showInput: !l,
23661
23661
  mode: k,
23662
- view: T,
23662
+ view: E,
23663
23663
  onSelect: w,
23664
23664
  defaultSelected: m?.value,
23665
23665
  minDate: d.minDate,
@@ -23799,8 +23799,8 @@ function Zne({
23799
23799
  Bo(c, C) || u(C);
23800
23800
  }, [e]);
23801
23801
  const b = (C) => {
23802
- const O = v(C), E = y(O?.granularity).calendarMode !== "range" && !Bo(O, c);
23803
- k(O), E && h(!1);
23802
+ const O = v(C), T = y(O?.granularity).calendarMode !== "range" && !Bo(O, c);
23803
+ k(O), T && h(!1);
23804
23804
  }, k = (C) => {
23805
23805
  const O = v(C);
23806
23806
  if (u(O), !Bo(O, c)) {
@@ -24897,10 +24897,10 @@ function Nie(t) {
24897
24897
  input: k,
24898
24898
  result: _
24899
24899
  });
24900
- var P = (p = (m = C.getData) === null || m === void 0 ? void 0 : m.call(C, O)) !== null && p !== void 0 ? p : {}, E = (y = (v = C.getDropEffect) === null || v === void 0 ? void 0 : v.call(C, O)) !== null && y !== void 0 ? y : n, A = {
24900
+ var P = (p = (m = C.getData) === null || m === void 0 ? void 0 : m.call(C, O)) !== null && p !== void 0 ? p : {}, T = (y = (v = C.getDropEffect) === null || v === void 0 ? void 0 : v.call(C, O)) !== null && y !== void 0 ? y : n, A = {
24901
24901
  data: P,
24902
24902
  element: C.element,
24903
- dropEffect: E,
24903
+ dropEffect: T,
24904
24904
  // we are collecting _actual_ drop targets, so these are
24905
24905
  // being applied _not_ due to stickiness
24906
24906
  isActiveDueToStickiness: !1
@@ -24960,15 +24960,15 @@ function Nie(t) {
24960
24960
  } finally {
24961
24961
  x.f();
24962
24962
  }
24963
- var P = ag(m.location.current.dropTargets), E;
24963
+ var P = ag(m.location.current.dropTargets), T;
24964
24964
  try {
24965
- for (P.s(); !(E = P.n()).done; ) {
24966
- var A, T, M = E.value;
24965
+ for (P.s(); !(T = P.n()).done; ) {
24966
+ var A, E, M = T.value;
24967
24967
  if (!v.has(M.element)) {
24968
24968
  var D = Er(Er({}, m), {}, {
24969
24969
  self: M
24970
24970
  }), I = i.get(M.element);
24971
- I == null || (A = I.onDropTargetChange) === null || A === void 0 || A.call(I, D), I == null || (T = I.onDragEnter) === null || T === void 0 || T.call(I, D);
24971
+ I == null || (A = I.onDropTargetChange) === null || A === void 0 || A.call(I, D), I == null || (E = I.onDragEnter) === null || E === void 0 || E.call(I, D);
24972
24972
  }
24973
24973
  }
24974
24974
  } catch (F) {
@@ -24995,18 +24995,18 @@ function Nie(t) {
24995
24995
  w.push(O);
24996
24996
  continue;
24997
24997
  }
24998
- var P = w[_ - 1], E = b[_ - 1];
24999
- if (P?.element !== E?.element)
24998
+ var P = w[_ - 1], T = b[_ - 1];
24999
+ if (P?.element !== T?.element)
25000
25000
  break;
25001
25001
  var A = i.get(C.element);
25002
25002
  if (!A)
25003
25003
  break;
25004
- var T = {
25004
+ var E = {
25005
25005
  input: y,
25006
25006
  source: p,
25007
25007
  element: A.element
25008
25008
  };
25009
- if (A.canDrop && !A.canDrop(T) || !((S = A.getIsSticky) !== null && S !== void 0 && S.call(A, T)))
25009
+ if (A.canDrop && !A.canDrop(E) || !((S = A.getIsSticky) !== null && S !== void 0 && S.call(A, E)))
25010
25010
  break;
25011
25011
  w.push(Er(Er({}, C), {}, {
25012
25012
  // making it clear to consumers this drop target is active due to stickiness
@@ -25704,8 +25704,8 @@ function Il({
25704
25704
  return P.kind === "toc-item" && P.id !== t.id;
25705
25705
  },
25706
25706
  getData: ({ input: O, element: P }) => {
25707
- const E = P.getBoundingClientRect(), T = O.clientY - E.top, D = E.height * 0.6;
25708
- return u && T > D ? { type: "toc-item-target", id: t.id, position: "inside" } : rk(
25707
+ const T = P.getBoundingClientRect(), E = O.clientY - T.top, D = T.height * 0.6;
25708
+ return u && E > D ? { type: "toc-item-target", id: t.id, position: "inside" } : rk(
25709
25709
  { type: "toc-item-target", id: t.id },
25710
25710
  {
25711
25711
  input: O,
@@ -25725,21 +25725,21 @@ function Il({
25725
25725
  k(null), _(!1), S.current = null;
25726
25726
  return;
25727
25727
  }
25728
- const A = O.data, T = Ss(O.data);
25728
+ const A = O.data, E = Ss(O.data);
25729
25729
  if (A.position === "inside") {
25730
25730
  const M = S.current;
25731
25731
  (!M || !M.isInside || M.edge !== null) && (_(!0), k(null), S.current = { edge: null, isInside: !0 }, l?.(t.id, "inside"));
25732
- } else if (T && (T === "top" || T === "bottom")) {
25733
- const M = T === "top" ? "before" : "after", D = S.current;
25734
- !D || D.edge !== T || D.isInside !== !1 ? (k(T), _(!1), S.current = {
25735
- edge: T,
25732
+ } else if (E && (E === "top" || E === "bottom")) {
25733
+ const M = E === "top" ? "before" : "after", D = S.current;
25734
+ !D || D.edge !== E || D.isInside !== !1 ? (k(E), _(!1), S.current = {
25735
+ edge: E,
25736
25736
  isInside: !1,
25737
25737
  lastReportTime: Date.now()
25738
25738
  }, l?.(t.id, M)) : Date.now() - (D.lastReportTime || 0) > 50 && (l?.(t.id, M), S.current = {
25739
25739
  ...D,
25740
25740
  lastReportTime: Date.now()
25741
25741
  });
25742
- } else if (!T) {
25742
+ } else if (!E) {
25743
25743
  const M = S.current;
25744
25744
  if (M?.edge) {
25745
25745
  const D = M.edge === "top" ? "before" : "after";
@@ -25755,8 +25755,8 @@ function Il({
25755
25755
  },
25756
25756
  onDrop: ({ self: O }) => {
25757
25757
  const P = O.data;
25758
- let E = "after";
25759
- P.position === "inside" ? E = "inside" : E = Ss(O.data) === "top" ? "before" : "after", k(null), _(!1), c && c(t.id, E);
25758
+ let T = "after";
25759
+ P.position === "inside" ? T = "inside" : T = Ss(O.data) === "top" ? "before" : "after", k(null), _(!1), c && c(t.id, T);
25760
25760
  }
25761
25761
  });
25762
25762
  }, [t.id, o, u, l, f, c]), /* @__PURE__ */ g(
@@ -26267,7 +26267,7 @@ function ere({
26267
26267
  }), l && l(Oo(ue));
26268
26268
  },
26269
26269
  [x, l, Oo]
26270
- ), O = ce(() => eC(x, d), [x, d]), [P, E] = Z(null), [A, T] = Z(null), [M, D] = Z(null), [I, F] = Z(
26270
+ ), O = ce(() => eC(x, d), [x, d]), [P, T] = Z(null), [A, E] = Z(null), [M, D] = Z(null), [I, F] = Z(
26271
26271
  null
26272
26272
  ), L = de(null), q = de(!1), $ = de(null), j = de(null), B = de(null), H = de(null), K = de(null), X = de(0), ee = de(0), ie = de(!1), ne = de(null), U = Fe(
26273
26273
  (N, Q) => {
@@ -26282,7 +26282,7 @@ function ere({
26282
26282
  B.current = setTimeout(() => {
26283
26283
  const ve = H.current;
26284
26284
  if (ve) {
26285
- T(ve.itemId), D(ve.position), $.current = ve.itemId, j.current = ve.position;
26285
+ E(ve.itemId), D(ve.position), $.current = ve.itemId, j.current = ve.position;
26286
26286
  const _e = Date.now();
26287
26287
  X.current = _e, ee.current = _e;
26288
26288
  const pe = (a ? O : m)[0];
@@ -26333,7 +26333,7 @@ function ere({
26333
26333
  } else
26334
26334
  ie.current = !1;
26335
26335
  }
26336
- K.current = null, X.current = 0, T(null), D(null), $.current = null, j.current = null, B.current = null;
26336
+ K.current = null, X.current = 0, E(null), D(null), $.current = null, j.current = null, B.current = null;
26337
26337
  }, N);
26338
26338
  }, [
26339
26339
  A,
@@ -26345,8 +26345,8 @@ function ere({
26345
26345
  (N, Q) => {
26346
26346
  q.current = !0;
26347
26347
  const W = L.current;
26348
- if (ie.current = !1, T(null), D(null), $.current = null, j.current = null, B.current && (clearTimeout(B.current), B.current = null), !W || W === N) {
26349
- L.current = null, E(null), T(null), D(null);
26348
+ if (ie.current = !1, E(null), D(null), $.current = null, j.current = null, B.current && (clearTimeout(B.current), B.current = null), !W || W === N) {
26349
+ L.current = null, T(null), E(null), D(null);
26350
26350
  return;
26351
26351
  }
26352
26352
  const le = In(x, N), oe = In(x, W);
@@ -26386,7 +26386,7 @@ function ere({
26386
26386
  F(null);
26387
26387
  }, 300));
26388
26388
  }
26389
- ie.current = !1, L.current = null, q.current = !0, K.current = null, X.current = 0, ee.current = 0, ne.current && (clearTimeout(ne.current), ne.current = null), E(null), setTimeout(() => {
26389
+ ie.current = !1, L.current = null, q.current = !0, K.current = null, X.current = 0, ee.current = 0, ne.current && (clearTimeout(ne.current), ne.current = null), T(null), setTimeout(() => {
26390
26390
  q.current = !1;
26391
26391
  }, 600);
26392
26392
  },
@@ -26396,9 +26396,9 @@ function ere({
26396
26396
  Fe(
26397
26397
  (N) => {
26398
26398
  if (N.phase === "start" && N.source.kind === "toc-item")
26399
- B.current && (clearTimeout(B.current), B.current = null), ne.current && (clearTimeout(ne.current), ne.current = null), L.current = N.source.id, q.current = !1, H.current = null, E(N.source.id);
26399
+ B.current && (clearTimeout(B.current), B.current = null), ne.current && (clearTimeout(ne.current), ne.current = null), L.current = N.source.id, q.current = !1, H.current = null, T(N.source.id);
26400
26400
  else if (N.phase === "cancel")
26401
- ie.current = !1, q.current = !1, H.current = null, K.current = null, X.current = 0, ee.current = 0, B.current && (clearTimeout(B.current), B.current = null), ne.current && (clearTimeout(ne.current), ne.current = null), T(null), D(null), $.current = null, j.current = null, E(null), L.current = null;
26401
+ ie.current = !1, q.current = !1, H.current = null, K.current = null, X.current = 0, ee.current = 0, B.current && (clearTimeout(B.current), B.current = null), ne.current && (clearTimeout(ne.current), ne.current = null), E(null), D(null), $.current = null, j.current = null, T(null), L.current = null;
26402
26402
  else if (N.phase === "drop") {
26403
26403
  B.current && (clearTimeout(B.current), B.current = null), ie.current = !1;
26404
26404
  const Q = $.current || H.current?.itemId, W = j.current || H.current?.position;
@@ -26411,7 +26411,7 @@ function ere({
26411
26411
  });
26412
26412
  }), ne.current && (clearTimeout(ne.current), ne.current = null);
26413
26413
  const le = setTimeout(() => {
26414
- q.current || (H.current = null, K.current = null, X.current = 0, ee.current = 0, T(null), D(null), $.current = null, j.current = null, E(null), L.current = null), ne.current === le && (ne.current = null);
26414
+ q.current || (H.current = null, K.current = null, X.current = 0, ee.current = 0, E(null), D(null), $.current = null, j.current = null, T(null), L.current = null), ne.current === le && (ne.current = null);
26415
26415
  }, 500);
26416
26416
  ne.current = le;
26417
26417
  }
@@ -35117,8 +35117,8 @@ function Roe(t, e, n, i, r) {
35117
35117
  if (P && !t.state.selection.eq(P)) {
35118
35118
  if (ln && ar && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (A) => A(t, Ca(13, "Enter"))))
35119
35119
  return;
35120
- let E = t.state.tr.setSelection(P);
35121
- O == "pointer" ? E.setMeta("pointer", !0) : O == "key" && E.scrollIntoView(), a && E.setMeta("composition", a), t.dispatch(E);
35120
+ let T = t.state.tr.setSelection(P);
35121
+ O == "pointer" ? T.setMeta("pointer", !0) : O == "key" && T.scrollIntoView(), a && T.setMeta("composition", a), t.dispatch(T);
35122
35122
  }
35123
35123
  return;
35124
35124
  }
@@ -39393,7 +39393,7 @@ function cA(t) {
39393
39393
  h -= P - i.width, h *= l ? 1 : -1;
39394
39394
  }
39395
39395
  }
39396
- var E = Object.assign({
39396
+ var T = Object.assign({
39397
39397
  position: s
39398
39398
  }, f && Mfe), A = c === !0 ? Dfe({
39399
39399
  x: h,
@@ -39403,10 +39403,10 @@ function cA(t) {
39403
39403
  y: m
39404
39404
  };
39405
39405
  if (h = A.x, m = A.y, l) {
39406
- var T;
39407
- return Object.assign({}, E, (T = {}, T[k] = x ? "0" : "", T[b] = v ? "0" : "", T.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", T));
39406
+ var E;
39407
+ return Object.assign({}, T, (E = {}, E[k] = x ? "0" : "", E[b] = v ? "0" : "", E.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", E));
39408
39408
  }
39409
- return Object.assign({}, E, (e = {}, e[k] = x ? m + "px" : "", e[b] = v ? h + "px" : "", e.transform = "", e));
39409
+ return Object.assign({}, T, (e = {}, e[k] = x ? m + "px" : "", e[b] = v ? h + "px" : "", e.transform = "", e));
39410
39410
  }
39411
39411
  function Nfe(t) {
39412
39412
  var e = t.state, n = t.options, i = n.gpuAcceleration, r = i === void 0 ? !0 : i, a = n.adaptive, o = a === void 0 ? !0 : a, s = n.roundOffsets, l = s === void 0 ? !0 : s, f = {
@@ -39615,12 +39615,12 @@ function Gf(t, e) {
39615
39615
  bottom: O.bottom - w.bottom + v.bottom,
39616
39616
  left: w.left - O.left + v.left,
39617
39617
  right: O.right - w.right + v.right
39618
- }, E = t.modifiersData.offset;
39619
- if (d === pl && E) {
39620
- var A = E[r];
39621
- Object.keys(P).forEach(function(T) {
39622
- var M = [ci, fi].indexOf(T) >= 0 ? 1 : -1, D = [An, fi].indexOf(T) >= 0 ? "y" : "x";
39623
- P[T] += A[D] * M;
39618
+ }, T = t.modifiersData.offset;
39619
+ if (d === pl && T) {
39620
+ var A = T[r];
39621
+ Object.keys(P).forEach(function(E) {
39622
+ var M = [ci, fi].indexOf(E) >= 0 ? 1 : -1, D = [An, fi].indexOf(E) >= 0 ? "y" : "x";
39623
+ P[E] += A[D] * M;
39624
39624
  });
39625
39625
  }
39626
39626
  return P;
@@ -39664,22 +39664,22 @@ function Ufe(t) {
39664
39664
  allowedAutoPlacements: m
39665
39665
  }) : X);
39666
39666
  }, []), w = e.rects.reference, _ = e.rects.popper, S = /* @__PURE__ */ new Map(), C = !0, O = k[0], P = 0; P < k.length; P++) {
39667
- var E = k[P], A = $i(E), T = Is(E) === Ms, M = [An, fi].indexOf(A) >= 0, D = M ? "width" : "height", I = Gf(e, {
39668
- placement: E,
39667
+ var T = k[P], A = $i(T), E = Is(T) === Ms, M = [An, fi].indexOf(A) >= 0, D = M ? "width" : "height", I = Gf(e, {
39668
+ placement: T,
39669
39669
  boundary: c,
39670
39670
  rootBoundary: u,
39671
39671
  altBoundary: d,
39672
39672
  padding: f
39673
- }), F = M ? T ? ci : En : T ? fi : An;
39673
+ }), F = M ? E ? ci : En : E ? fi : An;
39674
39674
  w[D] > _[D] && (F = gu(F));
39675
39675
  var L = gu(F), q = [];
39676
39676
  if (a && q.push(I[A] <= 0), s && q.push(I[F] <= 0, I[L] <= 0), q.every(function(K) {
39677
39677
  return K;
39678
39678
  })) {
39679
- O = E, C = !1;
39679
+ O = T, C = !1;
39680
39680
  break;
39681
39681
  }
39682
- S.set(E, q);
39682
+ S.set(T, q);
39683
39683
  }
39684
39684
  if (C)
39685
39685
  for (var $ = p ? 3 : 1, j = function(X) {
@@ -39805,20 +39805,20 @@ function nce(t) {
39805
39805
  } : Object.assign({
39806
39806
  mainAxis: 0,
39807
39807
  altAxis: 0
39808
- }, O), E = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, A = {
39808
+ }, O), T = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, A = {
39809
39809
  x: 0,
39810
39810
  y: 0
39811
39811
  };
39812
39812
  if (_) {
39813
39813
  if (a) {
39814
- var T, M = k === "y" ? An : En, D = k === "y" ? fi : ci, I = k === "y" ? "height" : "width", F = _[k], L = F + y[M], q = F - y[D], $ = h ? -C[I] / 2 : 0, j = x === Ms ? S[I] : C[I], B = x === Ms ? -C[I] : -S[I], H = e.elements.arrow, K = h && H ? Mk(H) : {
39814
+ var E, M = k === "y" ? An : En, D = k === "y" ? fi : ci, I = k === "y" ? "height" : "width", F = _[k], L = F + y[M], q = F - y[D], $ = h ? -C[I] / 2 : 0, j = x === Ms ? S[I] : C[I], B = x === Ms ? -C[I] : -S[I], H = e.elements.arrow, K = h && H ? Mk(H) : {
39815
39815
  width: 0,
39816
39816
  height: 0
39817
- }, X = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : MD(), ee = X[M], ie = X[D], ne = Fl(0, S[I], K[I]), U = b ? S[I] / 2 - $ - ne - ee - P.mainAxis : j - ne - ee - P.mainAxis, J = b ? -S[I] / 2 + $ + ne + ie + P.mainAxis : B + ne + ie + P.mainAxis, re = e.elements.arrow && Ac(e.elements.arrow), N = re ? k === "y" ? re.clientTop || 0 : re.clientLeft || 0 : 0, Q = (T = E?.[k]) != null ? T : 0, W = F + U - Q - N, le = F + J - Q, oe = Fl(h ? Wd(L, W) : L, F, h ? Ka(q, le) : q);
39817
+ }, X = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : MD(), ee = X[M], ie = X[D], ne = Fl(0, S[I], K[I]), U = b ? S[I] / 2 - $ - ne - ee - P.mainAxis : j - ne - ee - P.mainAxis, J = b ? -S[I] / 2 + $ + ne + ie + P.mainAxis : B + ne + ie + P.mainAxis, re = e.elements.arrow && Ac(e.elements.arrow), N = re ? k === "y" ? re.clientTop || 0 : re.clientLeft || 0 : 0, Q = (E = T?.[k]) != null ? E : 0, W = F + U - Q - N, le = F + J - Q, oe = Fl(h ? Wd(L, W) : L, F, h ? Ka(q, le) : q);
39818
39818
  _[k] = oe, A[k] = oe - F;
39819
39819
  }
39820
39820
  if (s) {
39821
- var ue, Pe = k === "x" ? An : En, ke = k === "x" ? fi : ci, ve = _[w], _e = w === "y" ? "height" : "width", He = ve + y[Pe], pe = ve - y[ke], We = [An, En].indexOf(v) !== -1, at = (ue = E?.[w]) != null ? ue : 0, et = We ? He : ve - S[_e] - C[_e] - at + P.altAxis, Et = We ? ve + S[_e] + C[_e] - at - P.altAxis : pe, gn = h && We ? Cfe(et, ve, Et) : Fl(h ? et : He, ve, h ? Et : pe);
39821
+ var ue, Pe = k === "x" ? An : En, ke = k === "x" ? fi : ci, ve = _[w], _e = w === "y" ? "height" : "width", He = ve + y[Pe], pe = ve - y[ke], We = [An, En].indexOf(v) !== -1, at = (ue = T?.[w]) != null ? ue : 0, et = We ? He : ve - S[_e] - C[_e] - at + P.altAxis, Et = We ? ve + S[_e] + C[_e] - at - P.altAxis : pe, gn = h && We ? Cfe(et, ve, Et) : Fl(h ? et : He, ve, h ? Et : pe);
39822
39822
  _[w] = gn, A[w] = gn - ve;
39823
39823
  }
39824
39824
  e.modifiersData[i] = A;
@@ -40434,18 +40434,18 @@ function qce(t, e) {
40434
40434
  var G = k.props.touch;
40435
40435
  return Array.isArray(G) ? G : [G, 0];
40436
40436
  }
40437
- function E() {
40437
+ function T() {
40438
40438
  return P()[0] === "hold";
40439
40439
  }
40440
40440
  function A() {
40441
40441
  var G;
40442
40442
  return !!((G = k.props.render) != null && G.$$tippy);
40443
40443
  }
40444
- function T() {
40444
+ function E() {
40445
40445
  return m || t;
40446
40446
  }
40447
40447
  function M() {
40448
- var G = T().parentNode;
40448
+ var G = E().parentNode;
40449
40449
  return G ? Cce(G) : document;
40450
40450
  }
40451
40451
  function D() {
@@ -40484,7 +40484,7 @@ function qce(t, e) {
40484
40484
  if (!(O || !k.props.aria.expanded)) {
40485
40485
  var G = Eo(k.props.triggerTarget || t);
40486
40486
  G.forEach(function(me) {
40487
- k.props.interactive ? me.setAttribute("aria-expanded", k.state.isVisible && me === T() ? "true" : "false") : me.removeAttribute("aria-expanded");
40487
+ k.props.interactive ? me.setAttribute("aria-expanded", k.state.isVisible && me === E() ? "true" : "false") : me.removeAttribute("aria-expanded");
40488
40488
  });
40489
40489
  }
40490
40490
  }
@@ -40554,7 +40554,7 @@ function qce(t, e) {
40554
40554
  });
40555
40555
  }
40556
40556
  function re() {
40557
- E() && (J("touchstart", Q, {
40557
+ T() && (J("touchstart", Q, {
40558
40558
  passive: !0
40559
40559
  }), J("touchend", le, {
40560
40560
  passive: !0
@@ -40589,7 +40589,7 @@ function qce(t, e) {
40589
40589
  }
40590
40590
  }
40591
40591
  function W(G) {
40592
- var me = G.target, Se = T().contains(me) || _.contains(me);
40592
+ var me = G.target, Se = E().contains(me) || _.contains(me);
40593
40593
  if (!(G.type === "mousemove" && Se)) {
40594
40594
  var Ve = _e().concat(_).map(function(Be) {
40595
40595
  var Tt, tn = Be._tippy, qn = (Tt = tn.popperInstance) == null ? void 0 : Tt.state;
@@ -40613,16 +40613,16 @@ function qce(t, e) {
40613
40613
  }
40614
40614
  }
40615
40615
  function oe(G) {
40616
- k.props.trigger.indexOf("focusin") < 0 && G.target !== T() || k.props.interactive && G.relatedTarget && _.contains(G.relatedTarget) || pe(G);
40616
+ k.props.trigger.indexOf("focusin") < 0 && G.target !== E() || k.props.interactive && G.relatedTarget && _.contains(G.relatedTarget) || pe(G);
40617
40617
  }
40618
40618
  function ue(G) {
40619
- return Pi.isTouch ? E() !== G.type.indexOf("touch") >= 0 : !1;
40619
+ return Pi.isTouch ? T() !== G.type.indexOf("touch") >= 0 : !1;
40620
40620
  }
40621
40621
  function Pe() {
40622
40622
  ke();
40623
40623
  var G = k.props, me = G.popperOptions, Se = G.placement, Ve = G.offset, Be = G.getReferenceClientRect, Tt = G.moveTransition, tn = A() ? ex(_).arrow : null, qn = Be ? {
40624
40624
  getBoundingClientRect: Be,
40625
- contextElement: Be.contextElement || T()
40625
+ contextElement: Be.contextElement || E()
40626
40626
  } : t, Cr = {
40627
40627
  name: "$$tippy",
40628
40628
  enabled: !0,
@@ -40679,7 +40679,7 @@ function qce(t, e) {
40679
40679
  k.popperInstance && (k.popperInstance.destroy(), k.popperInstance = null);
40680
40680
  }
40681
40681
  function ve() {
40682
- var G = k.props.appendTo, me, Se = T();
40682
+ var G = k.props.appendTo, me, Se = E();
40683
40683
  k.props.interactive && G === FD || G === "parent" ? me = Se.parentNode : me = BD(G, [Se]), me.contains(_) || me.appendChild(_), k.state.isMounted = !0, Pe(), process.env.NODE_ENV !== "production" && Qi(k.props.interactive && G === jn.appendTo && Se.nextElementSibling !== _, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
40684
40684
 
40685
40685
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
@@ -40742,7 +40742,7 @@ function qce(t, e) {
40742
40742
  function Ci() {
40743
40743
  process.env.NODE_ENV !== "production" && Qi(k.state.isDestroyed, ko("show"));
40744
40744
  var G = k.state.isVisible, me = k.state.isDestroyed, Se = !k.state.isEnabled, Ve = Pi.isTouch && !k.props.touch, Be = Og(k.props.duration, 0, jn.duration);
40745
- if (!(G || me || Se || Ve) && !T().hasAttribute("disabled") && (L("onShow", [k], !1), k.props.onShow(k) !== !1)) {
40745
+ if (!(G || me || Se || Ve) && !E().hasAttribute("disabled") && (L("onShow", [k], !1), k.props.onShow(k) !== !1)) {
40746
40746
  if (k.state.isVisible = !0, A() && (_.style.visibility = "visible"), F(), X(), k.state.isMounted || (_.style.transition = "none"), A()) {
40747
40747
  var Tt = D(), tn = Tt.box, qn = Tt.content;
40748
40748
  Cg([tn, qn], 0);
@@ -41040,12 +41040,12 @@ function Uce() {
41040
41040
  h(O) && P({
41041
41041
  inst: O
41042
41042
  });
41043
- var E = function() {
41043
+ var T = function() {
41044
41044
  h(O) && P({
41045
41045
  inst: O
41046
41046
  });
41047
41047
  };
41048
- return b(E);
41048
+ return b(T);
41049
41049
  }, [b]), f(_), _;
41050
41050
  }
41051
41051
  function h(b) {
@@ -41274,13 +41274,13 @@ function nue() {
41274
41274
  var w = !1, _, S, C = function(A) {
41275
41275
  if (!w) {
41276
41276
  w = !0, _ = A;
41277
- var T = h(A);
41277
+ var E = h(A);
41278
41278
  if (p !== void 0 && y.hasValue) {
41279
41279
  var M = y.value;
41280
- if (p(M, T))
41280
+ if (p(M, E))
41281
41281
  return S = M, M;
41282
41282
  }
41283
- return S = T, T;
41283
+ return S = E, E;
41284
41284
  }
41285
41285
  var D = _, I = S;
41286
41286
  if (i(D, A))
@@ -41289,10 +41289,10 @@ function nue() {
41289
41289
  return p !== void 0 && p(I, F) ? I : (_ = A, S = F, F);
41290
41290
  }, O = d === void 0 ? null : d, P = function() {
41291
41291
  return C(u());
41292
- }, E = O === null ? void 0 : function() {
41292
+ }, T = O === null ? void 0 : function() {
41293
41293
  return C(O());
41294
41294
  };
41295
- return [P, E];
41295
+ return [P, T];
41296
41296
  }, [u, d, h, p]), x = v[0], b = v[1], k = r(c, x, b);
41297
41297
  return o(function() {
41298
41298
  y.hasValue = !0, y.value = k;
@@ -46745,7 +46745,7 @@ function khe({
46745
46745
  Le(w, e, w), Le(w, n, _), Le(_, e, w), Le(_, n, _), se(x, Ei, w), se(k, Ei, w);
46746
46746
  const S = se(s, Fr), C = se(l, Fr), O = se(C, Ei), P = se(O, Ei);
46747
46747
  Le(s, t.domain, o), se(s, Ai, v), se(s, Xn, y), Le(l, t.domain, o), se(l, Ai, v), se(l, Xn, y), Le(S, t.domain, w), se(S, Ei, w), se(S, Kl, w), Le(P, t.domain, w), Le(P, e, w), se(P, Ei, w);
46748
- const E = [
46748
+ const T = [
46749
46749
  [Wl, Vl],
46750
46750
  // {}
46751
46751
  [Zd, Qd],
@@ -46763,9 +46763,9 @@ function khe({
46763
46763
  [ch, uh]
46764
46764
  // <>
46765
46765
  ];
46766
- for (let A = 0; A < E.length; A++) {
46767
- const [T, M] = E[A], D = se(w, T);
46768
- se(_, T, D), se(D, M, w);
46766
+ for (let A = 0; A < T.length; A++) {
46767
+ const [E, M] = T[A], D = se(w, E);
46768
+ se(_, E, D), se(D, M, w);
46769
46769
  const I = Kn(uu);
46770
46770
  Le(D, e, I);
46771
46771
  const F = Kn();
@@ -48523,10 +48523,10 @@ function Fpe({ pluginKey: t = Lpe, editor: e, char: n = "@", allowSpaces: i = !1
48523
48523
  return {
48524
48524
  update: async (v, x) => {
48525
48525
  var b, k, w, _, S, C, O;
48526
- const P = (b = this.key) === null || b === void 0 ? void 0 : b.getState(x), E = (k = this.key) === null || k === void 0 ? void 0 : k.getState(v.state), A = P.active && E.active && P.range.from !== E.range.from, T = !P.active && E.active, M = P.active && !E.active, D = !T && !M && P.query !== E.query, I = T || A && D, F = D || A, L = M || A && D;
48526
+ const P = (b = this.key) === null || b === void 0 ? void 0 : b.getState(x), T = (k = this.key) === null || k === void 0 ? void 0 : k.getState(v.state), A = P.active && T.active && P.range.from !== T.range.from, E = !P.active && T.active, M = P.active && !T.active, D = !E && !M && P.query !== T.query, I = E || A && D, F = D || A, L = M || A && D;
48527
48527
  if (!I && !F && !L)
48528
48528
  return;
48529
- const q = L && !I ? P : E, $ = v.dom.querySelector(`[data-decoration-id="${q.decorationId}"]`);
48529
+ const q = L && !I ? P : T, $ = v.dom.querySelector(`[data-decoration-id="${q.decorationId}"]`);
48530
48530
  p = {
48531
48531
  editor: e,
48532
48532
  range: q.range,
@@ -48576,7 +48576,7 @@ function Fpe({ pluginKey: t = Lpe, editor: e, char: n = "@", allowSpaces: i = !1
48576
48576
  const { isEditable: w } = e, { composing: _ } = e.view, { selection: S } = v, { empty: C, from: O } = S, P = { ...x };
48577
48577
  if (P.composing = _, w && (C || e.view.composing)) {
48578
48578
  (O < x.range.from || O > x.range.to) && !_ && !x.composing && (P.active = !1);
48579
- const E = h({
48579
+ const T = h({
48580
48580
  char: n,
48581
48581
  allowSpaces: i,
48582
48582
  allowToIncludeChar: r,
@@ -48584,12 +48584,12 @@ function Fpe({ pluginKey: t = Lpe, editor: e, char: n = "@", allowSpaces: i = !1
48584
48584
  startOfLine: o,
48585
48585
  $position: S.$from
48586
48586
  }), A = `id_${Math.floor(Math.random() * 4294967295)}`;
48587
- E && d({
48587
+ T && d({
48588
48588
  editor: e,
48589
48589
  state: k,
48590
- range: E.range,
48590
+ range: T.range,
48591
48591
  isActive: x.active
48592
- }) ? (P.active = !0, P.decorationId = x.decorationId ? x.decorationId : A, P.range = E.range, P.query = E.query, P.text = E.text) : P.active = !1;
48592
+ }) ? (P.active = !0, P.decorationId = x.decorationId ? x.decorationId : A, P.range = T.range, P.query = T.query, P.text = T.text) : P.active = !1;
48593
48593
  } else
48594
48594
  P.active = !1;
48595
48595
  return P.active || (P.decorationId = null, P.range = { from: 0, to: 0 }, P.query = null, P.text = null), P;
@@ -49982,7 +49982,7 @@ const _me = ({
49982
49982
  onBlur: x,
49983
49983
  dataTestId: b
49984
49984
  }, k) {
49985
- const w = Ke(), _ = _x(), S = de(null), C = de(null), O = de(null), [P, E] = Z(!1), [A, T] = Z(!0), [M, D] = Z(!1), [I, F] = Z(!1), [L, q] = Z(!1), [$, j] = Z(!1), [B, H] = Z(null), [K, X] = Z(!1), [ee, ie] = Z(null), [ne, U] = Z(s?.files || []), [J, re] = Z(
49985
+ const w = Ke(), _ = _x(), S = de(null), C = de(null), O = de(null), [P, T] = Z(!1), [A, E] = Z(!0), [M, D] = Z(!1), [I, F] = Z(!1), [L, q] = Z(!1), [$, j] = Z(!1), [B, H] = Z(null), [K, X] = Z(!1), [ee, ie] = Z(null), [ne, U] = Z(s?.files || []), [J, re] = Z(
49986
49986
  e?.users || []
49987
49987
  ), [N, Q] = Z({
49988
49988
  html: s?.content || "",
@@ -49994,8 +49994,8 @@ const _me = ({
49994
49994
  const ke = L ? window.innerHeight : Ome(u);
49995
49995
  return Ame({
49996
49996
  containerRef: O,
49997
- onHeightChange: E,
49998
- onScrollChange: T,
49997
+ onHeightChange: T,
49998
+ onScrollChange: E,
49999
49999
  heightThreshold: ke
50000
50000
  });
50001
50001
  }, [u, L]);
@@ -52175,44 +52175,45 @@ const _ye = en(
52175
52175
  image: l,
52176
52176
  imageFit: f,
52177
52177
  imageSize: c,
52178
- blurredBackground: u,
52179
- compact: d,
52180
- tmpFullWidth: h
52178
+ imageAspectRatio: u,
52179
+ blurredBackground: d,
52180
+ compact: h,
52181
+ tmpFullWidth: p
52181
52182
  }) => {
52182
- function p(v, x) {
52183
- return x.map((b) => {
52184
- if (b.hide?.(v))
52183
+ function m(x, b) {
52184
+ return b.map((k) => {
52185
+ if (k.hide?.(x))
52185
52186
  return null;
52186
- const k = b.render(v);
52187
- if (k === void 0)
52187
+ const w = k.render(x);
52188
+ if (w === void 0)
52188
52189
  return null;
52189
- const w = m(k);
52190
- return w ? w.type === "file" ? {
52191
- property: w
52190
+ const _ = y(w);
52191
+ return _ ? _.type === "file" ? {
52192
+ property: _
52192
52193
  } : {
52193
- icon: b.icon ?? b$,
52194
- tooltip: b.tooltip,
52195
- property: w
52194
+ icon: k.icon ?? b$,
52195
+ tooltip: k.tooltip,
52196
+ property: _
52196
52197
  } : null;
52197
- }).filter((b) => b !== null);
52198
+ }).filter((k) => k !== null);
52198
52199
  }
52199
- function m(v) {
52200
- return typeof v == "string" ? { type: "text", value: v } : typeof v == "number" ? { type: "number", value: v } : y(v) ? v : null;
52200
+ function y(x) {
52201
+ return typeof x == "string" ? { type: "text", value: x } : typeof x == "number" ? { type: "number", value: x } : v(x) ? x : null;
52201
52202
  }
52202
- function y(v) {
52203
- if (typeof v != "object" || v === null || !("type" in v))
52203
+ function v(x) {
52204
+ if (typeof x != "object" || x === null || !("type" in x))
52204
52205
  return !1;
52205
- const x = v.type;
52206
- return typeof x == "string" && x in x$;
52207
- }
52208
- return /* @__PURE__ */ g(QN, { tmpFullWidth: h, children: e.map((v, x) => {
52209
- const b = t.selectable ? t.selectable(v) : void 0, k = t.itemUrl ? t.itemUrl(v) : void 0, w = t.itemOnClick ? t.itemOnClick(v) : void 0, _ = (t.itemActions ? t.itemActions(v) || [] : []).filter((A) => A.type !== "separator"), S = (_.filter(
52210
- (A) => A.type === "other" || !A.type
52211
- ) || []).map((A) => ({
52212
- ...A,
52206
+ const b = x.type;
52207
+ return typeof b == "string" && b in x$;
52208
+ }
52209
+ return /* @__PURE__ */ g(QN, { tmpFullWidth: p, children: e.map((x, b) => {
52210
+ const k = t.selectable ? t.selectable(x) : void 0, w = t.itemUrl ? t.itemUrl(x) : void 0, _ = t.itemOnClick ? t.itemOnClick(x) : void 0, S = (t.itemActions ? t.itemActions(x) || [] : []).filter((E) => E.type !== "separator"), C = (S.filter(
52211
+ (E) => E.type === "other" || !E.type
52212
+ ) || []).map((E) => ({
52213
+ ...E,
52213
52214
  // Reconverts the type to DropdownItemObject
52214
52215
  type: "item"
52215
- })), C = _.find((A) => A.type === "primary") || void 0, O = _.filter((A) => A.type === "secondary") || [], P = !!t.selectable && b !== void 0, E = p(v, r);
52216
+ })), O = S.find((E) => E.type === "primary") || void 0, P = S.filter((E) => E.type === "secondary") || [], T = !!t.selectable && k !== void 0, A = m(x, r);
52216
52217
  return /* @__PURE__ */ g(
52217
52218
  Te.div,
52218
52219
  {
@@ -52220,7 +52221,7 @@ const _ye = en(
52220
52221
  initial: "hidden",
52221
52222
  animate: "visible",
52222
52223
  exit: "hidden",
52223
- custom: x,
52224
+ custom: b,
52224
52225
  variants: xE({
52225
52226
  delay: 0.02,
52226
52227
  duration: 0.3
@@ -52228,29 +52229,30 @@ const _ye = en(
52228
52229
  children: /* @__PURE__ */ g(
52229
52230
  Ix,
52230
52231
  {
52231
- title: a(v),
52232
- selectable: P,
52233
- description: o ? o(v) : void 0,
52234
- avatar: s ? s(v) : void 0,
52235
- image: l ? l(v) : void 0,
52232
+ title: a(x),
52233
+ selectable: T,
52234
+ description: o ? o(x) : void 0,
52235
+ avatar: s ? s(x) : void 0,
52236
+ image: l ? l(x) : void 0,
52236
52237
  imageFit: f,
52237
52238
  imageSize: c,
52238
- blurredBackground: u,
52239
- selected: P && n.has(b),
52240
- onSelect: (A) => i(v, A),
52241
- secondaryActions: O,
52242
- primaryAction: C,
52243
- otherActions: S,
52244
- onClick: w,
52245
- link: k,
52246
- compact: d || !1,
52247
- metadata: E,
52239
+ imageAspectRatio: u,
52240
+ blurredBackground: d,
52241
+ selected: T && n.has(k),
52242
+ onSelect: (E) => i(x, E),
52243
+ secondaryActions: P,
52244
+ primaryAction: O,
52245
+ otherActions: C,
52246
+ onClick: _,
52247
+ link: w,
52248
+ compact: h || !1,
52249
+ metadata: A,
52248
52250
  fullHeight: !0
52249
52251
  },
52250
- x
52252
+ b
52251
52253
  )
52252
52254
  },
52253
- x
52255
+ b
52254
52256
  );
52255
52257
  }) });
52256
52258
  }, Oye = ({
@@ -52261,89 +52263,90 @@ const _ye = en(
52261
52263
  image: r,
52262
52264
  imageFit: a,
52263
52265
  imageSize: o,
52264
- blurredBackground: s,
52265
- compact: l,
52266
- source: f,
52267
- onSelectItems: c,
52268
- onLoadData: u,
52269
- onLoadError: d,
52270
- tmpFullWidth: h
52266
+ imageAspectRatio: s,
52267
+ blurredBackground: l,
52268
+ compact: f,
52269
+ source: c,
52270
+ onSelectItems: u,
52271
+ onLoadData: d,
52272
+ onLoadError: h,
52273
+ tmpFullWidth: p
52271
52274
  }) => {
52272
- const p = ce(() => {
52273
- if (f.dataAdapter.paginationType === "pages") {
52274
- const E = f.dataAdapter.perPage, A = Sye(E ?? 24);
52275
+ const m = ce(() => {
52276
+ if (c.dataAdapter.paginationType === "pages") {
52277
+ const A = c.dataAdapter.perPage, E = Sye(A ?? 24);
52275
52278
  return {
52276
- ...f.dataAdapter,
52277
- perPage: A
52279
+ ...c.dataAdapter,
52280
+ perPage: E
52278
52281
  };
52279
52282
  }
52280
- return f.dataAdapter;
52281
- }, [f.dataAdapter]), { data: m, paginationInfo: y, setPage: v, isInitialLoading: x } = zp(
52283
+ return c.dataAdapter;
52284
+ }, [c.dataAdapter]), { data: y, paginationInfo: v, setPage: x, isInitialLoading: b } = zp(
52282
52285
  {
52283
- ...f,
52284
- dataAdapter: p
52286
+ ...c,
52287
+ dataAdapter: m
52285
52288
  },
52286
52289
  {
52287
- onError: (E) => {
52288
- d(E);
52290
+ onError: (A) => {
52291
+ h(A);
52289
52292
  }
52290
52293
  }
52291
52294
  );
52292
52295
  be(() => {
52293
- u({
52294
- totalItems: y?.total || m.records.length,
52295
- filters: f.currentFilters,
52296
- search: f.currentSearch,
52297
- isInitialLoading: x,
52298
- data: m.records
52296
+ d({
52297
+ totalItems: v?.total || y.records.length,
52298
+ filters: c.currentFilters,
52299
+ search: c.currentSearch,
52300
+ isInitialLoading: b,
52301
+ data: y.records
52299
52302
  });
52300
- }, [y?.total, m.records]);
52303
+ }, [v?.total, y.records]);
52301
52304
  const {
52302
- selectedItems: b,
52303
- groupAllSelectedStatus: k,
52304
- handleSelectItemChange: w,
52305
- handleSelectGroupChange: _
52305
+ selectedItems: k,
52306
+ groupAllSelectedStatus: w,
52307
+ handleSelectItemChange: _,
52308
+ handleSelectGroupChange: S
52306
52309
  } = Dh({
52307
- data: m,
52308
- paginationInfo: y,
52309
- source: f,
52310
- onSelectItems: c,
52310
+ data: y,
52311
+ paginationInfo: v,
52312
+ source: c,
52313
+ onSelectItems: u,
52311
52314
  selectionMode: "multi",
52312
- selectedState: f.defaultSelectedItems
52313
- }), S = f.grouping?.collapsible, C = f.grouping?.defaultOpenGroups, { openGroups: O, setGroupOpen: P } = Dx(
52314
- m?.type === "grouped" ? m.groups : [],
52315
- C
52315
+ selectedState: c.defaultSelectedItems
52316
+ }), C = c.grouping?.collapsible, O = c.grouping?.defaultOpenGroups, { openGroups: P, setGroupOpen: T } = Dx(
52317
+ y?.type === "grouped" ? y.groups : [],
52318
+ O
52316
52319
  );
52317
52320
  return /* @__PURE__ */ z("div", { className: "flex h-full min-h-0 flex-1 flex-col gap-4", children: [
52318
- /* @__PURE__ */ g("div", { className: "overflow-auto", children: x ? /* @__PURE__ */ g(QN, { tmpFullWidth: h, children: Array.from({ length: 8 }).map((E, A) => /* @__PURE__ */ z(m$, { children: [
52321
+ /* @__PURE__ */ g("div", { className: "overflow-auto", children: b ? /* @__PURE__ */ g(QN, { tmpFullWidth: p, children: Array.from({ length: 8 }).map((A, E) => /* @__PURE__ */ z(m$, { children: [
52319
52322
  /* @__PURE__ */ g(y$, { children: /* @__PURE__ */ g(v$, { "aria-label": "Loading card", children: /* @__PURE__ */ g(tt, { className: "h-4 w-3/4" }) }) }),
52320
- /* @__PURE__ */ g(g$, { className: "space-y-2", children: t.map((T) => /* @__PURE__ */ z("div", { className: "space-y-1", children: [
52323
+ /* @__PURE__ */ g(g$, { className: "space-y-2", children: t.map((M) => /* @__PURE__ */ z("div", { className: "space-y-1", children: [
52321
52324
  /* @__PURE__ */ g(tt, { className: "h-3 w-1/4" }),
52322
52325
  /* @__PURE__ */ g(tt, { className: "h-3 w-1/2" })
52323
- ] }, String(T.label))) })
52324
- ] }, A)) }) : /* @__PURE__ */ z(je, { children: [
52325
- m?.type === "grouped" && m.groups.map((E) => /* @__PURE__ */ z(je, { children: [
52326
+ ] }, String(M.label))) })
52327
+ ] }, E)) }) : /* @__PURE__ */ z(je, { children: [
52328
+ y?.type === "grouped" && y.groups.map((A) => /* @__PURE__ */ z(je, { children: [
52326
52329
  /* @__PURE__ */ g(
52327
52330
  Nx,
52328
52331
  {
52329
- label: E.label,
52330
- itemCount: E.itemCount,
52331
- onOpenChange: (A) => P(E.key, A),
52332
- open: O[E.key],
52333
- selectable: !!f.selectable,
52334
- showOpenChange: S,
52335
- select: k[E.key]?.checked ? !0 : k[E.key]?.indeterminate ? "indeterminate" : !1,
52336
- onSelectChange: (A) => _(E, A),
52332
+ label: A.label,
52333
+ itemCount: A.itemCount,
52334
+ onOpenChange: (E) => T(A.key, E),
52335
+ open: P[A.key],
52336
+ selectable: !!c.selectable,
52337
+ showOpenChange: C,
52338
+ select: w[A.key]?.checked ? !0 : w[A.key]?.indeterminate ? "indeterminate" : !1,
52339
+ onSelectChange: (E) => S(A, E),
52337
52340
  className: "px-4 pb-2 pt-4"
52338
52341
  }
52339
52342
  ),
52340
- /* @__PURE__ */ g(bt, { children: (!S || O[E.key]) && /* @__PURE__ */ g(
52343
+ /* @__PURE__ */ g(bt, { children: (!C || P[A.key]) && /* @__PURE__ */ g(
52341
52344
  E9,
52342
52345
  {
52343
- source: f,
52344
- items: E.records,
52345
- selectedItems: b,
52346
- handleSelectItemChange: w,
52346
+ source: c,
52347
+ items: A.records,
52348
+ selectedItems: k,
52349
+ handleSelectItemChange: _,
52347
52350
  title: e,
52348
52351
  cardProperties: t,
52349
52352
  description: n,
@@ -52351,20 +52354,21 @@ const _ye = en(
52351
52354
  image: r,
52352
52355
  imageFit: a,
52353
52356
  imageSize: o,
52354
- blurredBackground: s,
52355
- compact: l,
52356
- tmpFullWidth: h
52357
+ imageAspectRatio: s,
52358
+ blurredBackground: l,
52359
+ compact: f,
52360
+ tmpFullWidth: p
52357
52361
  },
52358
- E.key
52362
+ A.key
52359
52363
  ) })
52360
52364
  ] })),
52361
- m?.type === "flat" && /* @__PURE__ */ g(
52365
+ y?.type === "flat" && /* @__PURE__ */ g(
52362
52366
  E9,
52363
52367
  {
52364
- source: f,
52365
- items: m.records,
52366
- selectedItems: b,
52367
- handleSelectItemChange: w,
52368
+ source: c,
52369
+ items: y.records,
52370
+ selectedItems: k,
52371
+ handleSelectItemChange: _,
52368
52372
  title: e,
52369
52373
  cardProperties: t,
52370
52374
  description: n,
@@ -52372,13 +52376,14 @@ const _ye = en(
52372
52376
  image: r,
52373
52377
  imageFit: a,
52374
52378
  imageSize: o,
52375
- blurredBackground: s,
52376
- compact: l,
52377
- tmpFullWidth: h
52379
+ imageAspectRatio: s,
52380
+ blurredBackground: l,
52381
+ compact: f,
52382
+ tmpFullWidth: p
52378
52383
  }
52379
52384
  )
52380
52385
  ] }) }),
52381
- /* @__PURE__ */ g(Jk, { paginationInfo: y, setPage: v })
52386
+ /* @__PURE__ */ g(Jk, { paginationInfo: v, setPage: x })
52382
52387
  ] });
52383
52388
  }, Cye = () => {
52384
52389
  const t = {};
@@ -53548,13 +53553,13 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
53548
53553
  source: t.source,
53549
53554
  onClearFetchedData: () => s(a, !1)
53550
53555
  }), p = l && u, m = l, y = l && h?.hasMore, { calculatedHeight: v, setFirstChildRef: x, setLastChildRef: b } = Xye(d, !!y), k = Fe(
53551
- (E) => {
53552
- n.current = E, typeof e == "function" && e(E);
53556
+ (T) => {
53557
+ n.current = T, typeof e == "function" && e(T);
53553
53558
  },
53554
53559
  [e]
53555
53560
  ), w = () => {
53556
- const E = !l;
53557
- s(a, E), E && !f.length && c();
53561
+ const T = !l;
53562
+ s(a, T), T && !f.length && c();
53558
53563
  }, _ = {
53559
53564
  depth: t.nestedRowProps?.depth ?? 0,
53560
53565
  expanded: l,
@@ -53582,8 +53587,8 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
53582
53587
  fromVisualization: t.fromVisualization
53583
53588
  }
53584
53589
  ),
53585
- m && f.map((E, A) => {
53586
- const T = E, M = t.source.itemsWithChildren?.(T), D = A === 0, I = A === f.length - 1, F = (t.nestedRowProps?.depth ?? 0) + 1, L = () => {
53590
+ m && f.map((T, A) => {
53591
+ const E = T, M = t.source.itemsWithChildren?.(E), D = A === 0, I = A === f.length - 1, F = (t.nestedRowProps?.depth ?? 0) + 1, L = () => {
53587
53592
  if (D)
53588
53593
  return (j) => {
53589
53594
  x(j);
@@ -53598,9 +53603,9 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
53598
53603
  CI,
53599
53604
  {
53600
53605
  ...t,
53601
- key: `nested-row-${t.groupIndex}-${E.id}-${t.index}-${A}`,
53606
+ key: `nested-row-${t.groupIndex}-${T.id}-${t.index}-${A}`,
53602
53607
  index: A,
53603
- item: T,
53608
+ item: E,
53604
53609
  tableWithChildren: t.tableWithChildren,
53605
53610
  ref: L(),
53606
53611
  nestedRowProps: {
@@ -53615,11 +53620,11 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
53615
53620
  return $ ? /* @__PURE__ */ g(
53616
53621
  $,
53617
53622
  {
53618
- item: T,
53623
+ item: E,
53619
53624
  index: A,
53620
53625
  children: j
53621
53626
  },
53622
- `nested-row-${t.groupIndex}-${E.id}-${t.index}-${A}`
53627
+ `nested-row-${t.groupIndex}-${T.id}-${t.index}-${A}`
53623
53628
  ) : j;
53624
53629
  } else {
53625
53630
  const j = !q && S, B = /* @__PURE__ */ Yl(
@@ -53628,7 +53633,7 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
53628
53633
  ...t,
53629
53634
  key: `row-${t.groupIndex}-${t.index}-${A}`,
53630
53635
  index: A,
53631
- item: T,
53636
+ item: E,
53632
53637
  noBorder: j,
53633
53638
  ref: L(),
53634
53639
  nestedRowProps: {
@@ -53646,7 +53651,7 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
53646
53651
  return $ ? /* @__PURE__ */ g(
53647
53652
  $,
53648
53653
  {
53649
- item: T,
53654
+ item: E,
53650
53655
  index: A,
53651
53656
  children: B
53652
53657
  },
@@ -53737,9 +53742,9 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
53737
53742
  r,
53738
53743
  !!t.selectable
53739
53744
  ), {
53740
- hasItemActions: E,
53745
+ hasItemActions: T,
53741
53746
  primaryItemActions: A,
53742
- dropdownItemActions: T,
53747
+ dropdownItemActions: E,
53743
53748
  mobileDropdownItemActions: M,
53744
53749
  handleDropDownOpenChange: D,
53745
53750
  dropDownOpen: I
@@ -53838,7 +53843,7 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
53838
53843
  m,
53839
53844
  {
53840
53845
  item: e,
53841
- isLastColumn: !E && B === r.length - 1,
53846
+ isLastColumn: !T && B === r.length - 1,
53842
53847
  column: j,
53843
53848
  cellIndex: B,
53844
53849
  children: H
@@ -53848,12 +53853,12 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
53848
53853
  `table-cell-${l}-${s}-${B}`
53849
53854
  );
53850
53855
  }),
53851
- E && !c && !u?.onLoadMoreChildren && /* @__PURE__ */ z(je, { children: [
53856
+ T && !c && !u?.onLoadMoreChildren && /* @__PURE__ */ z(je, { children: [
53852
53857
  /* @__PURE__ */ g("td", { className: "sticky right-0 top-0 z-10 hidden md:table-cell", children: /* @__PURE__ */ g(xI, { dropDownOpen: I, children: /* @__PURE__ */ g(
53853
53858
  kI,
53854
53859
  {
53855
53860
  primaryItemActions: A,
53856
- dropdownItemActions: T,
53861
+ dropdownItemActions: E,
53857
53862
  handleDropDownOpenChange: D
53858
53863
  }
53859
53864
  ) }) }),
@@ -54166,7 +54171,7 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
54166
54171
  onError: (pe) => {
54167
54172
  a(pe);
54168
54173
  }
54169
- }), { currentSortings: E, setCurrentSortings: A, isLoading: T } = e, M = u !== !1 && !!e.itemActions, D = ce(
54174
+ }), { currentSortings: T, setCurrentSortings: A, isLoading: E } = e, M = u !== !1 && !!e.itemActions, D = ce(
54170
54175
  () => u === !1 ? {
54171
54176
  ...e,
54172
54177
  itemActions: void 0
@@ -54175,7 +54180,7 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
54175
54180
  [e, u]
54176
54181
  ), { loadingIndicatorRef: I } = t2(
54177
54182
  w,
54178
- T,
54183
+ E,
54179
54184
  C,
54180
54185
  O
54181
54186
  );
@@ -54211,10 +54216,10 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
54211
54216
  if (!(!pe || !We))
54212
54217
  return at === null ? "none" : at.field === pe ? at.order : "none";
54213
54218
  }, ne = (pe) => {
54214
- A(() => !E || E.field !== pe ? {
54219
+ A(() => !T || T.field !== pe ? {
54215
54220
  field: pe,
54216
54221
  order: "asc"
54217
- } : E.order === "asc" ? {
54222
+ } : T.order === "asc" ? {
54218
54223
  field: pe,
54219
54224
  order: "desc"
54220
54225
  } : null);
@@ -54237,7 +54242,7 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
54237
54242
  });
54238
54243
  const ue = $.selectedCount > 0 || $.checked, Pe = !$.checked && $.unselectedCount === 0 && $.selectedCount > 0, ke = !!e.allPagesSelection && !$.checked && w?.total !== void 0 && w.total > $.selectedCount, ve = b.length + (M ? 2 : 0), _e = $.selectedCount === 1 ? m.status.selected.singular : m.status.selected.plural;
54239
54244
  return /* @__PURE__ */ g("div", { className: "flex h-full min-h-0 flex-col gap-4", children: /* @__PURE__ */ z(oe ? Jye : Xa, { children: [
54240
- /* @__PURE__ */ z(M9, { loading: T, children: [
54245
+ /* @__PURE__ */ z(M9, { loading: E, children: [
54241
54246
  /* @__PURE__ */ g(mI, { sticky: !0, children: ue && e.selectable ? /* @__PURE__ */ z(vi, { children: [
54242
54247
  /* @__PURE__ */ g(
54243
54248
  Sl,
@@ -54313,7 +54318,7 @@ const Gye = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.select
54313
54318
  sortState: ie(
54314
54319
  pe,
54315
54320
  e.sortings,
54316
- E
54321
+ T
54317
54322
  ),
54318
54323
  width: at.width,
54319
54324
  align: at.align,
@@ -55448,25 +55453,25 @@ function Qve({
55448
55453
  accepts: ["list-card"]
55449
55454
  } : void 0
55450
55455
  ), be(() => {
55451
- const E = () => {
55452
- const A = performance.now(), T = y.current ?? A, M = (A - T) / 1e3;
55456
+ const T = () => {
55457
+ const A = performance.now(), E = y.current ?? A, M = (A - E) / 1e3;
55453
55458
  y.current = A;
55454
55459
  const D = h.current;
55455
55460
  if (!v || m.current === 0) {
55456
55461
  p.current != null && (window.cancelAnimationFrame(p.current), p.current = null), y.current = null;
55457
55462
  return;
55458
55463
  }
55459
- D && (D.scrollTop += m.current * M), p.current = window.requestAnimationFrame(E);
55464
+ D && (D.scrollTop += m.current * M), p.current = window.requestAnimationFrame(T);
55460
55465
  };
55461
- return p.current == null && v && m.current !== 0 && (y.current = null, p.current = window.requestAnimationFrame(E)), () => {
55466
+ return p.current == null && v && m.current !== 0 && (y.current = null, p.current = window.requestAnimationFrame(T)), () => {
55462
55467
  p.current != null && (window.cancelAnimationFrame(p.current), p.current = null), y.current = null, m.current = 0;
55463
55468
  };
55464
55469
  }, [v]), be(() => {
55465
55470
  if (!t) return;
55466
- const E = () => {
55471
+ const T = () => {
55467
55472
  p.current == null && m.current !== 0 && (y.current = null, p.current = window.requestAnimationFrame(() => {
55468
- const T = performance.now();
55469
- y.current = T, p.current = window.requestAnimationFrame(function M() {
55473
+ const E = performance.now();
55474
+ y.current = E, p.current = window.requestAnimationFrame(function M() {
55470
55475
  const D = y.current ?? performance.now(), I = performance.now(), F = (I - D) / 1e3;
55471
55476
  y.current = I;
55472
55477
  const L = h.current;
@@ -55477,10 +55482,10 @@ function Qve({
55477
55482
  L && (L.scrollTop += m.current * F), p.current = window.requestAnimationFrame(M);
55478
55483
  });
55479
55484
  }));
55480
- }, A = (T) => Gve(t, T);
55485
+ }, A = (E) => Gve(t, E);
55481
55486
  return T8({
55482
- onDropTargetChange: ({ location: T, source: M }) => {
55483
- const D = T.current.dropTargets.some((j) => {
55487
+ onDropTargetChange: ({ location: E, source: M }) => {
55488
+ const D = E.current.dropTargets.some((j) => {
55484
55489
  const B = j.data;
55485
55490
  return B.type === "list-droppable" && B.id === t;
55486
55491
  });
@@ -55488,14 +55493,14 @@ function Qve({
55488
55493
  const I = String(M.data.id), L = String(
55489
55494
  M.data.data?.laneId ?? ""
55490
55495
  ) || String(
55491
- T.initial.dropTargets.find(
55496
+ E.initial.dropTargets.find(
55492
55497
  (j) => j.data.type === "list-droppable"
55493
55498
  )?.data?.id ?? ""
55494
55499
  ), q = String(L) === String(t), $ = i.items.findIndex((j, B) => String(i.getKey(j, B)) === I);
55495
55500
  if (D && q ? P($) : (!D || !q) && P(-1), D && v && i.items.length === 0 ? (C(!0), k(null), _(null)) : D && v && i.items.length > 0 && C(!1), D && v) {
55496
55501
  const j = h.current || r.current;
55497
55502
  if (j) {
55498
- const B = j.getBoundingClientRect(), H = T.current.input?.clientY, K = T.current.input?.clientX;
55503
+ const B = j.getBoundingClientRect(), H = E.current.input?.clientY, K = E.current.input?.clientX;
55499
55504
  if (typeof H == "number" && typeof K == "number") {
55500
55505
  const X = B.top + B.height / 2, ee = H - X, ie = 24, ne = 300, U = B.height / 2;
55501
55506
  let J = 0;
@@ -55506,7 +55511,7 @@ function Qve({
55506
55511
  ) / U;
55507
55512
  J = Math.sign(ee) * ne * Q;
55508
55513
  }
55509
- if (m.current = J, E(), T.current.dropTargets.some((N) => N.data.type === "list-card-target"))
55514
+ if (m.current = J, T(), E.current.dropTargets.some((N) => N.data.type === "list-card-target"))
55510
55515
  (b !== null || w !== null) && (k(null), _(null));
55511
55516
  else {
55512
55517
  const N = r.current;
@@ -55535,19 +55540,19 @@ function Qve({
55535
55540
  } else
55536
55541
  m.current = 0, D || (k(null), _(null), C(!1), P(-1));
55537
55542
  },
55538
- onDrop: async ({ location: T, source: M }) => {
55543
+ onDrop: async ({ location: E, source: M }) => {
55539
55544
  l(!1), C(!1);
55540
55545
  const D = String(M.data.id);
55541
55546
  M.data.data;
55542
55547
  const I = i.items.findIndex((K, X) => String(i.getKey(K, X)) === D), L = String(
55543
55548
  M.data.data?.laneId ?? ""
55544
55549
  ) || String(
55545
- T.initial.dropTargets.find(
55550
+ E.initial.dropTargets.find(
55546
55551
  (K) => K.data.type === "list-droppable"
55547
55552
  )?.data?.id ?? ""
55548
55553
  ), q = String(L) !== String(t);
55549
55554
  if (!q && I >= 0) {
55550
- const K = T.current.dropTargets.find((X) => X.data.type === "list-card-target");
55555
+ const K = E.current.dropTargets.find((X) => X.data.type === "list-card-target");
55551
55556
  if (K) {
55552
55557
  const X = K.data.index, ee = K.data.closestEdge;
55553
55558
  if (X !== void 0 && ee) {
@@ -55561,14 +55566,14 @@ function Qve({
55561
55566
  k(null), _(null);
55562
55567
  return;
55563
55568
  }
55564
- if (!T.current.dropTargets.some((K) => {
55569
+ if (!E.current.dropTargets.some((K) => {
55565
55570
  const X = K.data;
55566
55571
  return X.type === "list-droppable" && X.id === t;
55567
55572
  }))
55568
55573
  return;
55569
55574
  let j = null;
55570
55575
  const { type: B, cardTarget: H } = A(
55571
- T.current.dropTargets
55576
+ E.current.dropTargets
55572
55577
  );
55573
55578
  if (q ? H && H.data ? j = Jve({
55574
55579
  cardTarget: H,
@@ -55620,53 +55625,53 @@ function Qve({
55620
55625
  b,
55621
55626
  w
55622
55627
  ]), be(() => {
55623
- const E = () => {
55628
+ const T = () => {
55624
55629
  const M = r.current;
55625
55630
  return M ? (h.current = M.querySelector(
55626
55631
  "[data-scroll-container]"
55627
55632
  ), h.current) : null;
55628
55633
  };
55629
- E();
55634
+ T();
55630
55635
  const A = r.current;
55631
55636
  if (!A) return;
55632
- const T = new MutationObserver(() => {
55633
- E();
55637
+ const E = new MutationObserver(() => {
55638
+ T();
55634
55639
  });
55635
- return T.observe(A, { subtree: !0, childList: !0 }), () => T.disconnect();
55636
- }, [t]), ok(({ phase: E }) => {
55637
- E === "start" && x(!0), (E === "drop" || E === "cancel") && (x(!1), C(!1), k(null), _(null), P(-1));
55640
+ return E.observe(A, { subtree: !0, childList: !0 }), () => E.disconnect();
55641
+ }, [t]), ok(({ phase: T }) => {
55642
+ T === "start" && x(!0), (T === "drop" || T === "cancel") && (x(!1), C(!1), k(null), _(null), P(-1));
55638
55643
  }), be(() => {
55639
- const E = (A) => {
55644
+ const T = (A) => {
55640
55645
  if (!t) return;
55641
- const T = A.detail;
55642
- T && T.toLaneId === t && n?.(T).catch(() => {
55646
+ const E = A.detail;
55647
+ E && E.toLaneId === t && n?.(E).catch(() => {
55643
55648
  });
55644
55649
  };
55645
- return window.addEventListener("kanban-test-move", E), () => window.removeEventListener("kanban-test-move", E);
55650
+ return window.addEventListener("kanban-test-move", T), () => window.removeEventListener("kanban-test-move", T);
55646
55651
  }, [t, n]), hr(() => {
55647
- const E = o.current, A = a.current;
55648
- if (!E || !A) return;
55649
- let T = null, M = null;
55652
+ const T = o.current, A = a.current;
55653
+ if (!T || !A) return;
55654
+ let E = null, M = null;
55650
55655
  const D = () => {
55651
55656
  const q = A.parentElement?.parentElement;
55652
55657
  if (!q) return;
55653
55658
  const $ = q.offsetHeight, j = A.style.height;
55654
- A.style.height = "auto", E.offsetHeight;
55655
- const B = E.scrollHeight;
55659
+ A.style.height = "auto", T.offsetHeight;
55660
+ const B = T.scrollHeight;
55656
55661
  A.style.height = j;
55657
55662
  let H;
55658
55663
  $ < 100 ? H = Math.max(B, 400) : H = Math.min(B, $), (M === null || Math.abs(H - M) > 1) && (M = H, c(H));
55659
55664
  };
55660
55665
  D();
55661
55666
  const I = () => {
55662
- T !== null && cancelAnimationFrame(T), T = requestAnimationFrame(() => {
55663
- D(), T = null;
55667
+ E !== null && cancelAnimationFrame(E), E = requestAnimationFrame(() => {
55668
+ D(), E = null;
55664
55669
  });
55665
55670
  }, F = new ResizeObserver(I);
55666
- F.observe(E);
55671
+ F.observe(T);
55667
55672
  const L = A.parentElement?.parentElement;
55668
55673
  return L && F.observe(L), () => {
55669
- T !== null && cancelAnimationFrame(T), F.disconnect();
55674
+ E !== null && cancelAnimationFrame(E), F.disconnect();
55670
55675
  };
55671
55676
  }, [i.items.length, i.loading, S]), /* @__PURE__ */ g(
55672
55677
  "div",
@@ -55701,19 +55706,19 @@ function Qve({
55701
55706
  {
55702
55707
  ...i,
55703
55708
  dropPlaceholderIndex: S && i.items.length === 0 ? 0 : void 0,
55704
- renderCard: (E, A) => {
55705
- const T = i.renderCard(E, A);
55706
- if (ni(T)) {
55709
+ renderCard: (T, A) => {
55710
+ const E = i.renderCard(T, A);
55711
+ if (ni(E)) {
55707
55712
  const M = A === b ? w : null, D = [];
55708
55713
  return O >= 0 && (A === O ? D.push("top", "bottom") : A === O - 1 ? D.push("bottom") : A === O + 1 && D.push("top")), Dt(
55709
- T,
55714
+ E,
55710
55715
  {
55711
55716
  forcedEdge: M,
55712
55717
  disabledEdges: D
55713
55718
  }
55714
55719
  );
55715
55720
  }
55716
- return T;
55721
+ return E;
55717
55722
  }
55718
55723
  }
55719
55724
  ) })
@@ -55743,14 +55748,14 @@ function j9(t) {
55743
55748
  _ === "start" && h(!0), (_ === "drop" || _ === "cancel") && h(!1);
55744
55749
  }), be(() => {
55745
55750
  const _ = () => {
55746
- const P = performance.now(), E = b.current ?? P, A = (P - E) / 1e3;
55751
+ const P = performance.now(), T = b.current ?? P, A = (P - T) / 1e3;
55747
55752
  b.current = P;
55748
- const T = y.current;
55749
- if (!d || !T || x.current === 0) {
55753
+ const E = y.current;
55754
+ if (!d || !E || x.current === 0) {
55750
55755
  v.current != null && (window.cancelAnimationFrame(v.current), v.current = null), b.current = null;
55751
55756
  return;
55752
55757
  }
55753
- T.scrollLeft += x.current * A, v.current = window.requestAnimationFrame(_);
55758
+ E.scrollLeft += x.current * A, v.current = window.requestAnimationFrame(_);
55754
55759
  }, S = (P) => {
55755
55760
  x.current = P, v.current == null && (b.current = null, v.current = window.requestAnimationFrame(_));
55756
55761
  }, C = () => {
@@ -55782,32 +55787,32 @@ function j9(t) {
55782
55787
  const C = l.find((O) => O.id === _);
55783
55788
  return C ? C.items.findIndex((O, P) => String(i(O, P, _)) === String(S)) : -1;
55784
55789
  }, w = async (_) => {
55785
- const { fromLaneId: S, toLaneId: C, sourceId: O, indexOfTarget: P, position: E } = _, A = l;
55786
- let T = A.findIndex((j) => j.id === S);
55790
+ const { fromLaneId: S, toLaneId: C, sourceId: O, indexOfTarget: P, position: T } = _, A = l;
55791
+ let E = A.findIndex((j) => j.id === S);
55787
55792
  const M = A.findIndex((j) => j.id === C);
55788
55793
  if (M === -1) return Promise.reject(new Error("Lane not found"));
55789
55794
  let D = -1;
55790
- if (T !== -1 && (D = A[T].items.findIndex((j, B) => String(i(j, B, S)) === String(O))), D === -1)
55795
+ if (E !== -1 && (D = A[E].items.findIndex((j, B) => String(i(j, B, S)) === String(O))), D === -1)
55791
55796
  for (let j = 0; j < A.length; j++) {
55792
55797
  const B = A[j].id, H = A[j].items.findIndex((K, X) => String(i(K, X, B)) === String(O));
55793
55798
  if (H !== -1) {
55794
- T = j, D = H;
55799
+ E = j, D = H;
55795
55800
  break;
55796
55801
  }
55797
55802
  }
55798
- if (T === -1 || D === -1)
55803
+ if (E === -1 || D === -1)
55799
55804
  return Promise.resolve(void 0);
55800
- const I = A[T].items[D];
55805
+ const I = A[E].items[D];
55801
55806
  let F = 0;
55802
- P == null ? F = 0 : F = P + (E === "below" ? 1 : 0);
55807
+ P == null ? F = 0 : F = P + (T === "below" ? 1 : 0);
55803
55808
  const L = S === C, q = A.map((j, B) => {
55804
- if (B === T && L) {
55809
+ if (B === E && L) {
55805
55810
  const H = [...j.items];
55806
55811
  H.splice(D, 1);
55807
55812
  const K = D < F ? F - 1 : F;
55808
55813
  return H.splice(K, 0, I), { ...j, items: H };
55809
55814
  }
55810
- if (B === T) {
55815
+ if (B === E) {
55811
55816
  const H = [...j.items];
55812
55817
  H.splice(D, 1);
55813
55818
  const K = typeof j.total == "number" && !L ? Math.max(0, j.total - 1) : j.total;
@@ -55833,7 +55838,7 @@ function j9(t) {
55833
55838
  I,
55834
55839
  j ? {
55835
55840
  record: j,
55836
- position: E ?? "above"
55841
+ position: T ?? "above"
55837
55842
  } : null
55838
55843
  );
55839
55844
  return B && f((H) => {
@@ -55940,10 +55945,10 @@ const e1e = ({
55940
55945
  ...A,
55941
55946
  items: d[A.id]?.data?.records || []
55942
55947
  })), [y]), x = (A) => A.map(
55943
- ({ icon: T, tooltip: M, property: D }) => D.type === "file" ? { property: D } : { icon: T, tooltip: M, property: D }
55948
+ ({ icon: E, tooltip: M, property: D }) => D.type === "file" ? { property: D } : { icon: E, tooltip: M, property: D }
55944
55949
  ), b = (A) => !!(A && A.type === "infinite-scroll"), k = {
55945
55950
  lanes: v.map((A) => {
55946
- const T = d[A.id], M = T?.paginationInfo?.total, D = b(T?.paginationInfo) && T?.paginationInfo?.hasMore;
55951
+ const E = d[A.id], M = E?.paginationInfo?.total, D = b(E?.paginationInfo) && E?.paginationInfo?.hasMore;
55947
55952
  return {
55948
55953
  id: A.id,
55949
55954
  title: A.title,
@@ -55951,33 +55956,33 @@ const e1e = ({
55951
55956
  variant: A.variant,
55952
55957
  total: M,
55953
55958
  hasMore: D,
55954
- loading: T?.isLoading || !1,
55955
- loadingMore: T?.isLoadingMore || !1,
55956
- fetchMore: D ? () => T.loadMore() : void 0
55959
+ loading: E?.isLoading || !1,
55960
+ loadingMore: E?.isLoadingMore || !1,
55961
+ fetchMore: D ? () => E.loadMore() : void 0
55957
55962
  };
55958
55963
  }),
55959
55964
  loading: Object.values(d).some(
55960
55965
  (A) => A.isInitialLoading
55961
55966
  ),
55962
- getKey: (A, T) => {
55963
- if (m) return String(m(A, T));
55967
+ getKey: (A, E) => {
55968
+ if (m) return String(m(A, E));
55964
55969
  const M = A?.id;
55965
- return M != null ? String(M) : String(T);
55970
+ return M != null ? String(M) : String(E);
55966
55971
  },
55967
- renderCard: (A, T, M, D) => {
55972
+ renderCard: (A, E, M, D) => {
55968
55973
  const I = String(
55969
- m ? m(A, T) : A?.id ?? T
55970
- ), F = s.selectable ? s.selectable(A) : A.id, L = E && D ? E.get(D) : void 0, q = (typeof F == "string" || typeof F == "number") && L && L?.selectedItems.has(F), $ = s.itemUrl ? s.itemUrl(A) : void 0, j = s.itemOnClick ? s.itemOnClick(A) : void 0;
55974
+ m ? m(A, E) : A?.id ?? E
55975
+ ), F = s.selectable ? s.selectable(A) : A.id, L = T && D ? T.get(D) : void 0, q = (typeof F == "string" || typeof F == "number") && L && L?.selectedItems.has(F), $ = s.itemUrl ? s.itemUrl(A) : void 0, j = s.itemOnClick ? s.itemOnClick(A) : void 0;
55971
55976
  return /* @__PURE__ */ g(
55972
55977
  Vve,
55973
55978
  {
55974
55979
  drag: { id: I, type: "list-card", data: { ...A, laneId: D } },
55975
55980
  id: String(A.id),
55976
- index: T,
55981
+ index: E,
55977
55982
  total: M,
55978
55983
  laneId: D,
55979
55984
  showIndicator: S,
55980
- title: e ? e(A) : String(T),
55985
+ title: e ? e(A) : String(E),
55981
55986
  description: n ? n(A) : void 0,
55982
55987
  avatar: i ? i(A) : void 0,
55983
55988
  draggable: a !== void 0,
@@ -56000,13 +56005,13 @@ const e1e = ({
56000
56005
  }, w = ce(() => {
56001
56006
  const A = Object.values(d);
56002
56007
  if (A.length !== 0)
56003
- return A.reduce((T, M) => {
56008
+ return A.reduce((E, M) => {
56004
56009
  const D = M.paginationInfo?.total ?? M.data.records.length;
56005
- return T + (typeof D == "number" ? D : 0);
56010
+ return E + (typeof D == "number" ? D : 0);
56006
56011
  }, 0);
56007
56012
  }, [d]), _ = ce(() => {
56008
56013
  const A = Object.values(d);
56009
- return A.length === 0 ? !0 : A.some((T) => T.isInitialLoading);
56014
+ return A.length === 0 ? !0 : A.some((E) => E.isInitialLoading);
56010
56015
  }, [d]);
56011
56016
  be(() => {
56012
56017
  c({
@@ -56019,18 +56024,18 @@ const e1e = ({
56019
56024
  }, [w, _]);
56020
56025
  const S = s.currentSortings === null, C = ce(() => {
56021
56026
  const A = /* @__PURE__ */ new Map();
56022
- return v.forEach((T) => {
56027
+ return v.forEach((E) => {
56023
56028
  const M = /* @__PURE__ */ new Map();
56024
- T.items.forEach((D, I) => {
56029
+ E.items.forEach((D, I) => {
56025
56030
  const F = m ? m(D, I) : D?.id ?? I, L = String(F);
56026
56031
  M.set(L, I);
56027
- }), A.set(T.id, M);
56032
+ }), A.set(E.id, M);
56028
56033
  }), A;
56029
56034
  }, [v, m]);
56030
56035
  k.dnd = {
56031
56036
  instanceId: p,
56032
- getIndexById: (A, T) => {
56033
- const M = C.get(A)?.get(T) ?? -1;
56037
+ getIndexById: (A, E) => {
56038
+ const M = C.get(A)?.get(E) ?? -1;
56034
56039
  return S ? M : -1;
56035
56040
  },
56036
56041
  onMove: a
@@ -56043,8 +56048,8 @@ const e1e = ({
56043
56048
  groups: []
56044
56049
  },
56045
56050
  paginationInfo: d[A.id]?.paginationInfo || null
56046
- })), [t, d]), { lanesSelectProvider: P, lanesUseSelectable: E } = Dve(O, s, (A, T) => {
56047
- l?.(A, T);
56051
+ })), [t, d]), { lanesSelectProvider: P, lanesUseSelectable: T } = Dve(O, s, (A, E) => {
56052
+ l?.(A, E);
56048
56053
  });
56049
56054
  return /* @__PURE__ */ z(je, { children: [
56050
56055
  u,
@@ -56337,7 +56342,7 @@ const e1e = ({
56337
56342
  "aria-busy": C ? "true" : void 0,
56338
56343
  children: /* @__PURE__ */ z("div", { className: "min-h-0 flex-1 overflow-auto pb-3", children: [
56339
56344
  s.type === "grouped" && s.groups.map((O, P) => {
56340
- const E = O.itemCount;
56345
+ const T = O.itemCount;
56341
56346
  return /* @__PURE__ */ z(
56342
56347
  "div",
56343
56348
  {
@@ -56352,7 +56357,7 @@ const e1e = ({
56352
56357
  onSelectChange: (A) => x(O, A),
56353
56358
  showOpenChange: b,
56354
56359
  label: O.label,
56355
- itemCount: E,
56360
+ itemCount: T,
56356
56361
  open: w[O.key],
56357
56362
  onOpenChange: (A) => _(O.key, A)
56358
56363
  },
@@ -56778,9 +56783,9 @@ const e1e = ({
56778
56783
  // Summary
56779
56784
  totalItemSummary: O,
56780
56785
  currentGrouping: P,
56781
- setCurrentGrouping: E,
56786
+ setCurrentGrouping: T,
56782
56787
  grouping: A,
56783
- currentSortings: T,
56788
+ currentSortings: E,
56784
56789
  setCurrentSortings: M,
56785
56790
  sortings: D
56786
56791
  } = t, [I, F] = Z(0), {
@@ -56807,13 +56812,13 @@ const e1e = ({
56807
56812
  K,
56808
56813
  $,
56809
56814
  j
56810
- ]), ee = de(T), { emitSortingChange: ie } = F$({
56815
+ ]), ee = de(E), { emitSortingChange: ie } = F$({
56811
56816
  defaultSorting: ee.current,
56812
56817
  currentVisualization: K ? I : void 0
56813
56818
  });
56814
56819
  be(() => {
56815
- ie(T);
56816
- }, [ie, T]);
56820
+ ie(E);
56821
+ }, [ie, E]);
56817
56822
  const ne = ce(
56818
56823
  () => Jme(_),
56819
56824
  [_]
@@ -56915,12 +56920,12 @@ const e1e = ({
56915
56920
  setValue: ma
56916
56921
  },
56917
56922
  sortings: {
56918
- value: T,
56923
+ value: E,
56919
56924
  setValue: M
56920
56925
  },
56921
56926
  grouping: {
56922
56927
  value: P,
56923
- setValue: E
56928
+ setValue: T
56924
56929
  },
56925
56930
  navigationFilters: {
56926
56931
  value: m,
@@ -56953,7 +56958,7 @@ const e1e = ({
56953
56958
  _E(() => {
56954
56959
  r?.({
56955
56960
  filters: $,
56956
- sortings: T,
56961
+ sortings: E,
56957
56962
  visualization: I,
56958
56963
  grouping: P,
56959
56964
  search: b,
@@ -56965,7 +56970,7 @@ const e1e = ({
56965
56970
  $,
56966
56971
  b,
56967
56972
  m,
56968
- T,
56973
+ E,
56969
56974
  I,
56970
56975
  P,
56971
56976
  xn,
@@ -57058,9 +57063,9 @@ const e1e = ({
57058
57063
  onVisualizationChange: F,
57059
57064
  grouping: A,
57060
57065
  currentGrouping: P,
57061
- onGroupingChange: E,
57066
+ onGroupingChange: T,
57062
57067
  sortings: D,
57063
- currentSortings: T,
57068
+ currentSortings: E,
57064
57069
  onSortingsChange: M
57065
57070
  }
57066
57071
  ),