react-virtuoso 4.18.8 → 4.18.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import { jsx as G, jsxs as $t } from "react/jsx-runtime";
2
2
  import E, { createElement as Dt } from "react";
3
- import So from "react-dom";
4
- const we = 0, Pt = 1, Xt = 2, Wn = 4;
3
+ import xo from "react-dom";
4
+ const we = 0, Pt = 1, Xt = 2, Pn = 4;
5
5
  function fn(t) {
6
6
  return () => t;
7
7
  }
8
- function xo(t) {
8
+ function vo(t) {
9
9
  t();
10
10
  }
11
11
  function re(t, e) {
@@ -14,15 +14,15 @@ function re(t, e) {
14
14
  function mn(t, e) {
15
15
  return () => t(e);
16
16
  }
17
- function vo(t, e) {
17
+ function To(t, e) {
18
18
  return (n) => t(e, n);
19
19
  }
20
20
  function _e(t) {
21
21
  return t !== void 0;
22
22
  }
23
- function To(...t) {
23
+ function Co(...t) {
24
24
  return () => {
25
- t.map(xo);
25
+ t.map(vo);
26
26
  };
27
27
  }
28
28
  function Jt() {
@@ -30,7 +30,7 @@ function Jt() {
30
30
  function ye(t, e) {
31
31
  return e(t), t;
32
32
  }
33
- function Co(t, e) {
33
+ function wo(t, e) {
34
34
  return e(t);
35
35
  }
36
36
  function rt(...t) {
@@ -46,10 +46,10 @@ function Ne(t) {
46
46
  t(Xt);
47
47
  }
48
48
  function it(t) {
49
- return t(Wn);
49
+ return t(Pn);
50
50
  }
51
51
  function z(t, e) {
52
- return Y(t, vo(e, we));
52
+ return Y(t, To(e, we));
53
53
  }
54
54
  function yt(t, e) {
55
55
  const n = t(Pt, (o) => {
@@ -65,10 +65,10 @@ function pn(t) {
65
65
  }, t);
66
66
  };
67
67
  }
68
- function Pn(t, e) {
68
+ function Gn(t, e) {
69
69
  return t === e;
70
70
  }
71
- function nt(t = Pn) {
71
+ function nt(t = Gn) {
72
72
  let e;
73
73
  return (n) => (o) => {
74
74
  t(e, o) || (e = o, n(o));
@@ -88,7 +88,7 @@ function Bt(t) {
88
88
  };
89
89
  }
90
90
  function x(t, ...e) {
91
- const n = wo(...e);
91
+ const n = yo(...e);
92
92
  return ((o, r) => {
93
93
  switch (o) {
94
94
  case Xt:
@@ -134,10 +134,10 @@ function $(...t) {
134
134
  n === r ? l() : o = l;
135
135
  };
136
136
  }
137
- function wo(...t) {
138
- return (e) => t.reduceRight(Co, e);
137
+ function yo(...t) {
138
+ return (e) => t.reduceRight(wo, e);
139
139
  }
140
- function yo(t) {
140
+ function bo(t) {
141
141
  let e, n;
142
142
  const o = () => e?.();
143
143
  return function(r, s) {
@@ -162,7 +162,7 @@ function T(t) {
162
162
  r(e);
163
163
  break;
164
164
  }
165
- case Wn:
165
+ case Pn:
166
166
  return e;
167
167
  }
168
168
  return n(o, r);
@@ -194,18 +194,18 @@ function U() {
194
194
  function Tt(t) {
195
195
  return ye(U(), (e) => z(t, e));
196
196
  }
197
- const bo = { singleton: !0 };
198
- function j(t, e = [], n = bo) {
197
+ const Ro = { singleton: !0 };
198
+ function j(t, e = [], n = Ro) {
199
199
  const { singleton: o } = n;
200
200
  return {
201
201
  constructor: t,
202
202
  dependencies: e,
203
- id: Ro(),
203
+ id: Ho(),
204
204
  singleton: o
205
205
  };
206
206
  }
207
- const Ro = () => /* @__PURE__ */ Symbol("id");
208
- function Ho(t) {
207
+ const Ho = () => /* @__PURE__ */ Symbol("id");
208
+ function Eo(t) {
209
209
  const e = /* @__PURE__ */ new Map(), n = ({ constructor: o, dependencies: r, id: s, singleton: i }) => {
210
210
  if (i && e.has(s))
211
211
  return e.get(s);
@@ -234,7 +234,7 @@ function at(...t) {
234
234
  }
235
235
  };
236
236
  }
237
- function W(t, e = Pn) {
237
+ function W(t, e = Gn) {
238
238
  return x(t, nt(e));
239
239
  }
240
240
  function Fe(...t) {
@@ -243,7 +243,7 @@ function Fe(...t) {
243
243
  case Xt:
244
244
  return;
245
245
  case Pt:
246
- return To(...t.map((o) => Y(o, n)));
246
+ return Co(...t.map((o) => Y(o, n)));
247
247
  }
248
248
  };
249
249
  }
@@ -256,18 +256,18 @@ const ft = {
256
256
  WARN: 2,
257
257
  /** Error messages for failures (default level) */
258
258
  ERROR: 3
259
- }, Eo = {
259
+ }, Bo = {
260
260
  [ft.DEBUG]: "debug",
261
261
  [ft.ERROR]: "error",
262
262
  [ft.INFO]: "log",
263
263
  [ft.WARN]: "warn"
264
- }, Bo = () => typeof globalThis > "u" ? window : globalThis, Gt = j(
264
+ }, Oo = () => typeof globalThis > "u" ? window : globalThis, Gt = j(
265
265
  () => {
266
266
  const t = T(ft.ERROR);
267
267
  return {
268
268
  log: T((n, o, r = ft.INFO) => {
269
- const s = Bo().VIRTUOSO_LOG_LEVEL ?? it(t);
270
- r >= s && console[Eo[r]](
269
+ const s = Oo().VIRTUOSO_LOG_LEVEL ?? it(t);
270
+ r >= s && console[Bo[r]](
271
271
  "%creact-virtuoso: %c%s %o",
272
272
  "color: #0253b3; font-weight: bold",
273
273
  "color: initial",
@@ -281,21 +281,21 @@ const ft = {
281
281
  [],
282
282
  { singleton: !0 }
283
283
  ), Ve = /* @__PURE__ */ new WeakMap();
284
- function Gn(t) {
284
+ function Mn(t) {
285
285
  return "self" in t ? t.document.documentElement : t;
286
286
  }
287
- function Oo(t) {
288
- const e = Gn(t), n = Ve.get(e);
287
+ function Lo(t) {
288
+ const e = Mn(t), n = Ve.get(e);
289
289
  if (n !== void 0)
290
290
  return n;
291
291
  const o = e.ownerDocument.defaultView.getComputedStyle(e).direction === "rtl";
292
292
  return Ve.set(e, o), o;
293
293
  }
294
294
  function hn(t) {
295
- Ve.delete(Gn(t));
295
+ Ve.delete(Mn(t));
296
296
  }
297
297
  function An(t, e) {
298
- return Oo(t) ? -e : e;
298
+ return Lo(t) ? -e : e;
299
299
  }
300
300
  const _t = An;
301
301
  function gn(t, e) {
@@ -319,10 +319,10 @@ function De(t, e, n) {
319
319
  i && e ? (s?.observe(i), o.current = i) : (o.current && s?.unobserve(o.current), o.current = null);
320
320
  }, { callbackRef: r, ref: o };
321
321
  }
322
- function Mn(t, e, n, o, r, s, i, l, c) {
322
+ function _n(t, e, n, o, r, s, i, l, c) {
323
323
  const d = E.useCallback(
324
324
  (m) => {
325
- const v = Lo(m.children, e, l ? "offsetWidth" : "offsetHeight", r);
325
+ const v = ko(m.children, e, l ? "offsetWidth" : "offsetHeight", r);
326
326
  let p = m.parentElement;
327
327
  for (; p.dataset.virtuosoScroller === void 0; )
328
328
  p = p.parentElement;
@@ -342,7 +342,7 @@ function Mn(t, e, n, o, r, s, i, l, c) {
342
342
  );
343
343
  return De(d, n, c);
344
344
  }
345
- function Lo(t, e, n, o) {
345
+ function ko(t, e, n, o) {
346
346
  const r = t.length;
347
347
  if (r === 0)
348
348
  return null;
@@ -444,7 +444,7 @@ const It = j(
444
444
  [],
445
445
  { singleton: !0 }
446
446
  ), se = { lvl: 0 };
447
- function _n(t, e) {
447
+ function Nn(t, e) {
448
448
  const n = t.length;
449
449
  if (n === 0)
450
450
  return [];
@@ -475,7 +475,7 @@ function Rt(t, e, n = "k") {
475
475
  return Rt(t.l, e, n);
476
476
  }
477
477
  function vt(t, e, n) {
478
- return J(t) ? $n(e, n, 1) : e === t.k ? dt(t, { k: e, v: n }) : e < t.k ? Sn(dt(t, { l: vt(t.l, e, n) })) : Sn(dt(t, { r: vt(t.r, e, n) }));
478
+ return J(t) ? Un(e, n, 1) : e === t.k ? dt(t, { k: e, v: n }) : e < t.k ? Sn(dt(t, { l: vt(t.l, e, n) })) : Sn(dt(t, { r: vt(t.r, e, n) }));
479
479
  }
480
480
  function Yt() {
481
481
  return se;
@@ -484,7 +484,7 @@ function Zt(t, e, n) {
484
484
  if (J(t))
485
485
  return [];
486
486
  const o = Rt(t, e)[0];
487
- return ko(Pe(t, o, n));
487
+ return zo(Pe(t, o, n));
488
488
  }
489
489
  function We(t, e) {
490
490
  if (J(t))
@@ -495,8 +495,8 @@ function We(t, e) {
495
495
  return r;
496
496
  if (J(r))
497
497
  return o;
498
- const [s, i] = Dn(o);
499
- return xe(dt(t, { k: s, l: Nn(o), v: i }));
498
+ const [s, i] = $n(o);
499
+ return xe(dt(t, { k: s, l: Dn(o), v: i }));
500
500
  }
501
501
  return e < n ? xe(dt(t, { l: We(o, e) })) : xe(dt(t, { r: We(r, e) }));
502
502
  }
@@ -516,7 +516,7 @@ function xe(t) {
516
516
  return t;
517
517
  if (n > o.lvl + 1) {
518
518
  if (Be(e))
519
- return Un(dt(t, { lvl: n - 1 }));
519
+ return Kn(dt(t, { lvl: n - 1 }));
520
520
  if (!J(e) && !J(e.r))
521
521
  return dt(e.r, {
522
522
  l: dt(e, { r: e.r.l }),
@@ -544,7 +544,7 @@ function xe(t) {
544
544
  throw new Error("Unexpected empty nodes");
545
545
  }
546
546
  function dt(t, e) {
547
- return $n(
547
+ return Un(
548
548
  e.k === void 0 ? t.k : e.k,
549
549
  e.v === void 0 ? t.v : e.v,
550
550
  e.lvl === void 0 ? t.lvl : e.lvl,
@@ -552,22 +552,22 @@ function dt(t, e) {
552
552
  e.r === void 0 ? t.r : e.r
553
553
  );
554
554
  }
555
- function Nn(t) {
556
- return J(t.r) ? t.l : xe(dt(t, { r: Nn(t.r) }));
555
+ function Dn(t) {
556
+ return J(t.r) ? t.l : xe(dt(t, { r: Dn(t.r) }));
557
557
  }
558
558
  function Be(t) {
559
559
  return J(t) || t.lvl > t.r.lvl;
560
560
  }
561
- function Dn(t) {
562
- return J(t.r) ? [t.k, t.v] : Dn(t.r);
561
+ function $n(t) {
562
+ return J(t.r) ? [t.k, t.v] : $n(t.r);
563
563
  }
564
- function $n(t, e, n, o = se, r = se) {
564
+ function Un(t, e, n, o = se, r = se) {
565
565
  return { k: t, l: o, lvl: n, r, v: e };
566
566
  }
567
567
  function Sn(t) {
568
- return Ge(Un(t));
568
+ return Ge(Kn(t));
569
569
  }
570
- function Un(t) {
570
+ function Kn(t) {
571
571
  const { l: e } = t;
572
572
  return !J(e) && e.lvl === t.lvl ? dt(e, { r: dt(t, { l: e.r }) }) : t;
573
573
  }
@@ -575,10 +575,10 @@ function Ge(t) {
575
575
  const { lvl: e, r: n } = t;
576
576
  return !J(n) && !J(n.r) && n.lvl === e && n.r.lvl === e ? dt(n, { l: dt(t, { r: n.l }), lvl: e + 1 }) : t;
577
577
  }
578
- function ko(t) {
579
- return _n(t, ({ k: e, v: n }) => ({ index: e, value: n }));
578
+ function zo(t) {
579
+ return Nn(t, ({ k: e, v: n }) => ({ index: e, value: n }));
580
580
  }
581
- function Kn(t, e) {
581
+ function jn(t, e) {
582
582
  return !!(t && t.startIndex === e.startIndex && t.endIndex === e.endIndex);
583
583
  }
584
584
  function le(t, e) {
@@ -589,7 +589,7 @@ const Ue = j(
589
589
  [],
590
590
  { singleton: !0 }
591
591
  );
592
- function jn(t, e, n) {
592
+ function qn(t, e, n) {
593
593
  return t[Te(t, e, n)];
594
594
  }
595
595
  function Te(t, e, n, o = 0) {
@@ -610,7 +610,7 @@ function Te(t, e, n, o = 0) {
610
610
  }
611
611
  throw new Error(`Failed binary finding record in array - ${t.join(",")}, searched for ${e}`);
612
612
  }
613
- function zo(t, e, n, o) {
613
+ function Fo(t, e, n, o) {
614
614
  const r = Te(t, e, o), s = Te(t, n, o, r);
615
615
  return t.slice(r, s + 1);
616
616
  }
@@ -623,7 +623,7 @@ function be(t) {
623
623
  function Ke({ index: t }, e) {
624
624
  return e === t ? 0 : e < t ? -1 : 1;
625
625
  }
626
- function Fo() {
626
+ function Vo() {
627
627
  return {
628
628
  groupIndices: [],
629
629
  groupOffsetTree: Yt(),
@@ -634,7 +634,7 @@ function Fo() {
634
634
  sizeTree: Yt()
635
635
  };
636
636
  }
637
- function Vo(t, e) {
637
+ function Wo(t, e) {
638
638
  let n = J(t) ? 0 : 1 / 0;
639
639
  for (const o of e) {
640
640
  const { endIndex: r, size: s, startIndex: i } = o;
@@ -643,7 +643,7 @@ function Vo(t, e) {
643
643
  continue;
644
644
  }
645
645
  const l = Zt(t, i - 1, r + 1);
646
- if (l.some(No(o)))
646
+ if (l.some(Do(o)))
647
647
  continue;
648
648
  let c = !1, d = !1;
649
649
  for (const { end: m, start: v, value: p } of l)
@@ -652,19 +652,19 @@ function Vo(t, e) {
652
652
  }
653
653
  return [t, n];
654
654
  }
655
- function Wo(t) {
655
+ function Po(t) {
656
656
  return t.groupIndex !== void 0;
657
657
  }
658
- function Po({ offset: t }, e) {
658
+ function Go({ offset: t }, e) {
659
659
  return e === t ? 0 : e < t ? -1 : 1;
660
660
  }
661
661
  function ce(t, e, n) {
662
662
  if (e.length === 0)
663
663
  return 0;
664
- const { index: o, offset: r, size: s } = jn(e, t, Ke), i = t - o, l = s * i + (i - 1) * n + r;
664
+ const { index: o, offset: r, size: s } = qn(e, t, Ke), i = t - o, l = s * i + (i - 1) * n + r;
665
665
  return l > 0 ? l + n : l;
666
666
  }
667
- function qn(t, e) {
667
+ function Yn(t, e) {
668
668
  if (!be(e))
669
669
  return t;
670
670
  let n = 0;
@@ -672,15 +672,15 @@ function qn(t, e) {
672
672
  n++;
673
673
  return t + n;
674
674
  }
675
- function Yn(t, e, n) {
676
- if (Wo(t))
675
+ function Zn(t, e, n) {
676
+ if (Po(t))
677
677
  return e.groupIndices[t.groupIndex] + 1;
678
678
  const o = t.index === "LAST" ? n : t.index;
679
- let r = qn(o, e);
679
+ let r = Yn(o, e);
680
680
  return r = Math.max(0, Math.min(n, r)), r;
681
681
  }
682
- function Go(t, e, n, o = 0) {
683
- return o > 0 && (e = Math.max(e, jn(t, o, Ke).offset)), _n(zo(t, e, n, Po), _o);
682
+ function Mo(t, e, n, o = 0) {
683
+ return o > 0 && (e = Math.max(e, qn(t, o, Ke).offset)), Nn(Fo(t, e, n, Go), No);
684
684
  }
685
685
  function Ao(t, [e, n, o, r]) {
686
686
  e.length > 0 && o("received item sizes", e, ft.DEBUG);
@@ -690,10 +690,10 @@ function Ao(t, [e, n, o, r]) {
690
690
  const p = e[0].size, I = e[1].size;
691
691
  i = n.reduce((w, R) => vt(vt(w, R, p), R + 1, I), i);
692
692
  } else
693
- [i, l] = Vo(i, e);
693
+ [i, l] = Wo(i, e);
694
694
  if (i === s)
695
695
  return t;
696
- const { lastIndex: c, lastOffset: d, lastSize: m, offsetTree: v } = Ae(t.offsetTree, l, i, r);
696
+ const { lastIndex: c, lastOffset: d, lastSize: m, offsetTree: v } = Me(t.offsetTree, l, i, r);
697
697
  return {
698
698
  groupIndices: n,
699
699
  groupOffsetTree: n.reduce((p, I) => vt(p, I, ce(I, v, r)), Yt()),
@@ -704,7 +704,7 @@ function Ao(t, [e, n, o, r]) {
704
704
  sizeTree: i
705
705
  };
706
706
  }
707
- function Mo(t) {
707
+ function _o(t) {
708
708
  return Nt(t).map(({ k: e, v: n }, o, r) => {
709
709
  const s = r[o + 1];
710
710
  return { endIndex: s === void 0 ? 1 / 0 : s.k - 1, size: n, startIndex: e };
@@ -716,7 +716,7 @@ function xn(t, e) {
716
716
  n += e[o + 1] - e[o] - 1, o++;
717
717
  return o - (n === t ? 0 : 1);
718
718
  }
719
- function Ae(t, e, n, o) {
719
+ function Me(t, e, n, o) {
720
720
  let r = t, s = 0, i = 0, l = 0, c = 0;
721
721
  if (e === 0)
722
722
  r = [];
@@ -740,19 +740,19 @@ function Ae(t, e, n, o) {
740
740
  offsetTree: r
741
741
  };
742
742
  }
743
- function _o(t) {
743
+ function No(t) {
744
744
  return { index: t.index, value: t };
745
745
  }
746
- function No(t) {
746
+ function Do(t) {
747
747
  const { endIndex: e, size: n, startIndex: o } = t;
748
748
  return (r) => r.start === o && (r.end === e || r.end === 1 / 0) && r.value === n;
749
749
  }
750
- const Do = {
750
+ const $o = {
751
751
  offsetHeight: "height",
752
752
  offsetWidth: "width"
753
753
  }, kt = j(
754
754
  ([{ log: t }, { recalcInProgress: e }]) => {
755
- const n = U(), o = U(), r = ht(o, 0), s = U(), i = U(), l = T(0), c = T([]), d = T(void 0), m = T(void 0), v = T(void 0), p = T(void 0), I = T((u, g) => Ht(u, Do[g])), w = T(void 0), R = T(0), h = Fo(), f = ht(
755
+ const n = U(), o = U(), r = ht(o, 0), s = U(), i = U(), l = T(0), c = T([]), d = T(void 0), m = T(void 0), v = T(void 0), p = T(void 0), I = T((u, g) => Ht(u, $o[g])), w = T(void 0), R = T(0), h = Vo(), f = ht(
756
756
  x(n, $(c, t, R), Ot(Ao, h), nt()),
757
757
  h
758
758
  ), a = ht(
@@ -1000,14 +1000,14 @@ const Do = {
1000
1000
  return {
1001
1001
  ...g,
1002
1002
  sizeTree: V,
1003
- ...Ae(g.offsetTree, 0, V, C)
1003
+ ...Me(g.offsetTree, 0, V, C)
1004
1004
  };
1005
1005
  }
1006
1006
  const O = Nt(g.sizeTree).reduce((V, { k: N, v: Z }) => vt(V, Math.max(0, N + u), Z), Yt());
1007
1007
  return {
1008
1008
  ...g,
1009
1009
  sizeTree: O,
1010
- ...Ae(g.offsetTree, 0, O, C)
1010
+ ...Me(g.offsetTree, 0, O, C)
1011
1011
  };
1012
1012
  })
1013
1013
  ),
@@ -1039,7 +1039,7 @@ const Do = {
1039
1039
  rt(Gt, Ue),
1040
1040
  { singleton: !0 }
1041
1041
  );
1042
- function $o(t) {
1042
+ function Uo(t) {
1043
1043
  return t.reduce(
1044
1044
  (e, n) => (e.groupIndices.push(e.totalCount), e.totalCount += n + 1, e),
1045
1045
  {
@@ -1048,9 +1048,9 @@ function $o(t) {
1048
1048
  }
1049
1049
  );
1050
1050
  }
1051
- const Zn = j(
1051
+ const Xn = j(
1052
1052
  ([{ groupIndices: t, sizes: e, totalCount: n }, { headerHeight: o, scrollTop: r }]) => {
1053
- const s = U(), i = U(), l = Tt(x(s, B($o)));
1053
+ const s = U(), i = U(), l = Tt(x(s, B(Uo)));
1054
1054
  return z(
1055
1055
  x(
1056
1056
  l,
@@ -1075,7 +1075,7 @@ const Zn = j(
1075
1075
  ), { groupCounts: s, topItemsIndexes: i };
1076
1076
  },
1077
1077
  rt(kt, It)
1078
- ), At = j(
1078
+ ), Mt = j(
1079
1079
  ([{ log: t }]) => {
1080
1080
  const e = T(!1), n = Tt(
1081
1081
  x(
@@ -1090,10 +1090,10 @@ const Zn = j(
1090
1090
  },
1091
1091
  rt(Gt),
1092
1092
  { singleton: !0 }
1093
- ), Uo = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
1094
- function Xn(t) {
1095
- const e = typeof t == "number" ? { index: t } : t;
1096
- return e.align || (e.align = "start"), (!e.behavior || !Uo) && (e.behavior = "auto"), e.offset === void 0 && (e.offset = 0), e;
1093
+ ), Ko = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
1094
+ function Jn(t) {
1095
+ const e = typeof t == "number" ? { index: t } : { ...t };
1096
+ return e.align || (e.align = "start"), (!e.behavior || !Ko) && (e.behavior = "auto"), e.offset === void 0 && (e.offset = 0), e;
1097
1097
  }
1098
1098
  const fe = j(
1099
1099
  ([
@@ -1127,7 +1127,7 @@ const fe = j(
1127
1127
  N,
1128
1128
  Z
1129
1129
  ]) => {
1130
- const F = Xn(H), { align: mt, behavior: q, offset: Q } = F, gt = u - 1, ut = Yn(F, y, gt);
1130
+ const F = Jn(H), { align: mt, behavior: q, offset: Q } = F, gt = u - 1, ut = Zn(F, y, gt);
1131
1131
  let St = ce(ut, y.offsetTree, V) + C;
1132
1132
  mt === "end" ? (St += N + Rt(y.sizeTree, ut)[1] - L + Z, ut === gt && (St += k)) : mt === "center" ? St += (N + Rt(y.sizeTree, ut)[1] - L + Z) / 2 : St -= g, Q !== void 0 && Q !== 0 && (St += Q);
1133
1133
  const Ft = (pt) => {
@@ -1141,7 +1141,7 @@ const fe = j(
1141
1141
  Ft(pt);
1142
1142
  });
1143
1143
  } else
1144
- h = yt(x(e, Ko(150)), Ft);
1144
+ h = yt(x(e, jo(150)), Ft);
1145
1145
  return f = setTimeout(() => {
1146
1146
  S();
1147
1147
  }, 1200), _(c, !0), O("scrolling from index to", { behavior: q, index: ut, top: St }, ft.DEBUG), { behavior: q, top: St };
@@ -1158,7 +1158,7 @@ const fe = j(
1158
1158
  rt(kt, It, Gt),
1159
1159
  { singleton: !0 }
1160
1160
  );
1161
- function Ko(t) {
1161
+ function jo(t) {
1162
1162
  return (e) => {
1163
1163
  const n = setTimeout(() => {
1164
1164
  e(!1);
@@ -1174,8 +1174,11 @@ function je(t, e) {
1174
1174
  });
1175
1175
  }
1176
1176
  function qe(t, e) {
1177
- const n = e - 1;
1178
- return typeof t == "number" ? t : t.index === "LAST" ? n : t.index;
1177
+ const n = e - 1, o = typeof t == "number" ? t : t.index === "LAST" ? n : t.index;
1178
+ return Math.max(0, Math.min(o, n));
1179
+ }
1180
+ function vn(t) {
1181
+ return typeof t == "number" ? t === 0 : t.index === 0 && (t.align === void 0 || t.align === "start") && (t.offset === void 0 || t.offset === 0);
1179
1182
  }
1180
1183
  const me = j(
1181
1184
  ([{ defaultItemSize: t, listRefresh: e, sizes: n }, { scrollTop: o }, { scrollTargetReached: r, scrollToIndex: s }, { didMount: i }]) => {
@@ -1184,7 +1187,7 @@ const me = j(
1184
1187
  x(
1185
1188
  i,
1186
1189
  $(c),
1187
- P(([m, v]) => v !== 0),
1190
+ P(([m, v]) => !vn(v)),
1188
1191
  Bt(!1)
1189
1192
  ),
1190
1193
  l
@@ -1192,7 +1195,7 @@ const me = j(
1192
1195
  x(
1193
1196
  i,
1194
1197
  $(c),
1195
- P(([m, v]) => v !== 0),
1198
+ P(([m, v]) => !vn(v)),
1196
1199
  Bt(!1)
1197
1200
  ),
1198
1201
  d
@@ -1218,13 +1221,13 @@ const me = j(
1218
1221
  scrolledToInitialItem: l
1219
1222
  };
1220
1223
  },
1221
- rt(kt, It, fe, At),
1224
+ rt(kt, It, fe, Mt),
1222
1225
  { singleton: !0 }
1223
1226
  );
1224
- function Jn(t, e) {
1227
+ function Qn(t, e) {
1225
1228
  return Math.abs(t - e) < 1.01;
1226
1229
  }
1227
- const ue = "up", ne = "down", jo = "none", qo = {
1230
+ const ue = "up", ne = "down", qo = "none", Yo = {
1228
1231
  atBottom: !1,
1229
1232
  notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
1230
1233
  state: {
@@ -1233,8 +1236,8 @@ const ue = "up", ne = "down", jo = "none", qo = {
1233
1236
  scrollTop: 0,
1234
1237
  viewportHeight: 0
1235
1238
  }
1236
- }, Yo = 0, pe = j(([{ footerHeight: t, headerHeight: e, scrollBy: n, scrollContainerState: o, scrollTop: r, viewportHeight: s }]) => {
1237
- const i = T(!1), l = T(!0), c = U(), d = U(), m = T(4), v = T(Yo), p = ht(
1239
+ }, Zo = 0, pe = j(([{ footerHeight: t, headerHeight: e, scrollBy: n, scrollContainerState: o, scrollTop: r, viewportHeight: s }]) => {
1240
+ const i = T(!1), l = T(!0), c = U(), d = U(), m = T(4), v = T(Zo), p = ht(
1238
1241
  x(
1239
1242
  Fe(x(W(r), Ut(1), Bt(!0)), x(W(r), Ut(1), Bt(!1), pn(100))),
1240
1243
  nt()
@@ -1276,7 +1279,7 @@ const ue = "up", ne = "down", jo = "none", qo = {
1276
1279
  notAtBottomBecause: O,
1277
1280
  state: k
1278
1281
  };
1279
- }, qo),
1282
+ }, Yo),
1280
1283
  nt((a, S) => a !== void 0 && a.atBottom === S.atBottom)
1281
1284
  )
1282
1285
  ), R = ht(
@@ -1284,7 +1287,7 @@ const ue = "up", ne = "down", jo = "none", qo = {
1284
1287
  o,
1285
1288
  Ot(
1286
1289
  (a, { scrollHeight: S, scrollTop: H, viewportHeight: y }) => {
1287
- if (!Jn(a.scrollHeight, S)) {
1290
+ if (!Qn(a.scrollHeight, S)) {
1288
1291
  const L = S - (H + y) < 1;
1289
1292
  return a.scrollTop !== H && L ? {
1290
1293
  changed: !0,
@@ -1332,7 +1335,7 @@ const ue = "up", ne = "down", jo = "none", qo = {
1332
1335
  B((a) => a.direction)
1333
1336
  ),
1334
1337
  h
1335
- ), z(x(o, zt(50), Bt(jo)), h);
1338
+ ), z(x(o, zt(50), Bt(qo)), h);
1336
1339
  const f = T(0);
1337
1340
  return z(
1338
1341
  x(
@@ -1364,11 +1367,11 @@ const ue = "up", ne = "down", jo = "none", qo = {
1364
1367
  scrollDirection: h,
1365
1368
  scrollVelocity: f
1366
1369
  };
1367
- }, rt(It)), ae = "top", de = "bottom", vn = "none";
1368
- function Tn(t, e, n) {
1370
+ }, rt(It)), ae = "top", de = "bottom", Tn = "none";
1371
+ function Cn(t, e, n) {
1369
1372
  return typeof t == "number" ? n === ue && e === ae || n === ne && e === de ? t : 0 : n === ue ? e === ae ? t.main : t.reverse : e === de ? t.main : t.reverse;
1370
1373
  }
1371
- function Cn(t, e) {
1374
+ function wn(t, e) {
1372
1375
  return typeof t == "number" ? t : t[e] ?? 0;
1373
1376
  }
1374
1377
  const Ye = j(
@@ -1399,11 +1402,11 @@ const Ye = j(
1399
1402
  S
1400
1403
  ]) => {
1401
1404
  const H = m - a, y = h + f, L = Math.max(p - H, 0);
1402
- let u = vn;
1403
- const g = Cn(S, ae), C = Cn(S, de);
1404
- return I -= a, I += p + f, w += p + f, w -= a, I > m + y - g && (u = ue), w < m - L + v + C && (u = ne), u !== vn ? [
1405
- Math.max(H - p - Tn(R, ae, u) - g, 0),
1406
- H - L - f + v + Tn(R, de, u) + C
1405
+ let u = Tn;
1406
+ const g = wn(S, ae), C = wn(S, de);
1407
+ return I -= a, I += p + f, w += p + f, w -= a, I > m + y - g && (u = ue), w < m - L + v + C && (u = ne), u !== Tn ? [
1408
+ Math.max(H - p - Cn(R, ae, u) - g, 0),
1409
+ H - L - f + v + Cn(R, de, u) + C
1407
1410
  ] : null;
1408
1411
  }
1409
1412
  ),
@@ -1425,9 +1428,9 @@ const Ye = j(
1425
1428
  rt(It),
1426
1429
  { singleton: !0 }
1427
1430
  );
1428
- function Zo(t, e, n) {
1431
+ function Xo(t, e, n) {
1429
1432
  if (be(e)) {
1430
- const o = qn(t, e);
1433
+ const o = Yn(t, e);
1431
1434
  return [
1432
1435
  { index: Rt(e.groupOffsetTree, o)[0], offset: 0, size: 0 },
1433
1436
  { data: n?.[0], index: o, offset: 0, size: 0 }
@@ -1458,16 +1461,16 @@ function ve(t, e, n, o, r, s) {
1458
1461
  return {
1459
1462
  bottom: m,
1460
1463
  firstItemIndex: s,
1461
- items: wn(t, r, s),
1464
+ items: yn(t, r, s),
1462
1465
  offsetBottom: w,
1463
1466
  offsetTop: d,
1464
1467
  top: I,
1465
- topItems: wn(e, r, s),
1468
+ topItems: yn(e, r, s),
1466
1469
  topListHeight: e.reduce((R, h) => h.size + R, 0),
1467
1470
  totalCount: n
1468
1471
  };
1469
1472
  }
1470
- function Qn(t, e, n, o, r, s) {
1473
+ function to(t, e, n, o, r, s) {
1471
1474
  let i = 0;
1472
1475
  if (n.groupIndices.length > 0)
1473
1476
  for (const m of n.groupIndices) {
@@ -1483,7 +1486,7 @@ function Qn(t, e, n, o, r, s) {
1483
1486
  }));
1484
1487
  return ve(d, [], l, r, n, o);
1485
1488
  }
1486
- function wn(t, e, n) {
1489
+ function yn(t, e, n) {
1487
1490
  if (t.length === 0)
1488
1491
  return [];
1489
1492
  if (!be(e))
@@ -1509,7 +1512,7 @@ function wn(t, e, n) {
1509
1512
  }
1510
1513
  return s;
1511
1514
  }
1512
- function yn(t, e) {
1515
+ function bn(t, e) {
1513
1516
  return t === void 0 ? 0 : typeof t == "number" ? t : t[e] ?? 0;
1514
1517
  }
1515
1518
  const Kt = j(
@@ -1564,10 +1567,10 @@ const Kt = j(
1564
1567
  if (C === 0)
1565
1568
  return { ...Oe, totalCount: C };
1566
1569
  if (u === 0 && g === 0)
1567
- return St === 0 ? { ...Oe, totalCount: C } : Qn(St, O, k, Z, F, q || []);
1570
+ return St === 0 ? { ...Oe, totalCount: C } : to(St, O, k, Z, F, q || []);
1568
1571
  if (J(ut))
1569
1572
  return St > 0 ? null : ve(
1570
- Zo(qe(O, C), Q, q),
1573
+ Xo(qe(O, C), Q, q),
1571
1574
  [],
1572
1575
  C,
1573
1576
  F,
@@ -1586,7 +1589,7 @@ const Kt = j(
1586
1589
  }
1587
1590
  if (!V)
1588
1591
  return ve([], Ft, C, F, Q, Z);
1589
- const pt = N.length > 0 ? N[N.length - 1] + 1 : 0, jt = Go(gt, u, g, pt);
1592
+ const pt = N.length > 0 ? N[N.length - 1] + 1 : 0, jt = Mo(gt, u, g, pt);
1590
1593
  if (jt.length === 0)
1591
1594
  return null;
1592
1595
  const Qt = C - 1, Et = ye([], (D) => {
@@ -1604,7 +1607,7 @@ const Kt = j(
1604
1607
  for (let ct = X; ct <= xt && !(tt >= g); ct++)
1605
1608
  D.push({ data: q?.[ct], index: ct, offset: tt, size: lt }), tt += lt + F;
1606
1609
  }
1607
- }), te = yn(mt, ae), b = yn(mt, de);
1610
+ }), te = bn(mt, ae), b = bn(mt, de);
1608
1611
  if (Et.length > 0 && (te > 0 || b > 0)) {
1609
1612
  const D = Et[0], K = Et[Et.length - 1];
1610
1613
  if (te > 0 && D.index > pt) {
@@ -1694,7 +1697,7 @@ const Kt = j(
1694
1697
  startIndex: u[g].index
1695
1698
  };
1696
1699
  }),
1697
- nt(Kn)
1700
+ nt(jn)
1698
1701
  )
1699
1702
  );
1700
1703
  return {
@@ -1711,16 +1714,16 @@ const Kt = j(
1711
1714
  },
1712
1715
  rt(
1713
1716
  kt,
1714
- Zn,
1717
+ Xn,
1715
1718
  Ye,
1716
1719
  me,
1717
1720
  fe,
1718
1721
  pe,
1719
- At,
1722
+ Mt,
1720
1723
  Ue
1721
1724
  ),
1722
1725
  { singleton: !0 }
1723
- ), to = j(
1726
+ ), eo = j(
1724
1727
  ([{ fixedFooterHeight: t, fixedHeaderHeight: e, footerHeight: n, headerHeight: o }, { listState: r }]) => {
1725
1728
  const s = U(), i = ht(
1726
1729
  x(
@@ -1733,7 +1736,7 @@ const Kt = j(
1733
1736
  },
1734
1737
  rt(It, Kt),
1735
1738
  { singleton: !0 }
1736
- ), Xo = j(
1739
+ ), Jo = j(
1737
1740
  ([{ viewportHeight: t }, { totalListHeight: e }]) => {
1738
1741
  const n = T(!1), o = ht(
1739
1742
  x(
@@ -1747,17 +1750,17 @@ const Kt = j(
1747
1750
  );
1748
1751
  return { alignToBottom: n, paddingTopAddition: o };
1749
1752
  },
1750
- rt(It, to),
1753
+ rt(It, eo),
1751
1754
  { singleton: !0 }
1752
- ), eo = j(() => ({
1755
+ ), no = j(() => ({
1753
1756
  context: T(null)
1754
- })), Jo = ({
1757
+ })), Qo = ({
1755
1758
  itemBottom: t,
1756
1759
  itemTop: e,
1757
1760
  locationParams: { align: n, behavior: o, ...r },
1758
1761
  viewportBottom: s,
1759
1762
  viewportTop: i
1760
- }) => e < i ? { ...r, align: n ?? "start", ...o === void 0 ? {} : { behavior: o } } : t > s ? { ...r, align: n ?? "end", ...o === void 0 ? {} : { behavior: o } } : null, no = j(
1763
+ }) => e < i ? { ...r, align: n ?? "start", ...o === void 0 ? {} : { behavior: o } } : t > s ? { ...r, align: n ?? "end", ...o === void 0 ? {} : { behavior: o } } : null, oo = j(
1761
1764
  ([
1762
1765
  { gap: t, sizes: e, totalCount: n },
1763
1766
  { fixedFooterHeight: o, fixedHeaderHeight: r, headerHeight: s, scrollingInProgress: i, scrollTop: l, viewportHeight: c },
@@ -1770,7 +1773,7 @@ const Kt = j(
1770
1773
  $(e, c, n, s, r, o, l),
1771
1774
  $(t),
1772
1775
  B(([[v, p, I, w, R, h, f, a], S]) => {
1773
- const { calculateViewLocation: H = Jo, done: y, ...L } = v, u = Yn(v, p, w - 1), g = ce(u, p.offsetTree, S) + R + h, C = g + Rt(p.sizeTree, u)[1], k = a + h, O = a + I - f, V = H({
1776
+ const { calculateViewLocation: H = Qo, done: y, ...L } = v, u = Zn(v, p, w - 1), g = ce(u, p.offsetTree, S) + R + h, C = g + Rt(p.sizeTree, u)[1], k = a + h, O = a + I - f, V = H({
1774
1777
  itemBottom: C,
1775
1778
  itemTop: g,
1776
1779
  locationParams: L,
@@ -1798,10 +1801,10 @@ const Kt = j(
1798
1801
  rt(kt, It, fe, Kt, Gt),
1799
1802
  { singleton: !0 }
1800
1803
  );
1801
- function bn(t) {
1804
+ function Rn(t) {
1802
1805
  return t === !1 ? !1 : t === "smooth" ? "smooth" : "auto";
1803
1806
  }
1804
- const Qo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), tr = j(
1807
+ const tr = (t, e) => typeof t == "function" ? Rn(t(e)) : e && Rn(t), er = j(
1805
1808
  ([
1806
1809
  { listRefresh: t, totalCount: e, fixedItemSize: n, data: o },
1807
1810
  { atBottomState: r, isAtBottom: s },
@@ -1828,7 +1831,7 @@ const Qo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), tr = j(
1828
1831
  $(W(w), s, l, v),
1829
1832
  B(([[y, L], u, g, C, k]) => {
1830
1833
  let O = L && C, V = "auto";
1831
- return O && (V = Qo(u, g || k), O = O && V !== !1), { followOutputBehavior: V, shouldFollow: O, totalCount: y };
1834
+ return O && (V = tr(u, g || k), O = O && V !== !1), { followOutputBehavior: V, shouldFollow: O, totalCount: y };
1832
1835
  }),
1833
1836
  P(({ shouldFollow: y }) => y)
1834
1837
  ),
@@ -1897,26 +1900,26 @@ const Qo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), tr = j(
1897
1900
  pe,
1898
1901
  fe,
1899
1902
  me,
1900
- At,
1903
+ Mt,
1901
1904
  Gt,
1902
1905
  It,
1903
- eo,
1904
- no
1906
+ no,
1907
+ oo
1905
1908
  )
1906
- ), er = j(
1909
+ ), nr = j(
1907
1910
  ([{ data: t, firstItemIndex: e, gap: n, sizes: o }, { initialTopMostItemIndex: r }, { initialItemCount: s, listState: i }, { didMount: l }]) => (z(
1908
1911
  x(
1909
1912
  l,
1910
1913
  $(s),
1911
1914
  P(([, c]) => c !== 0),
1912
1915
  $(r, o, e, n, t),
1913
- B(([[, c], d, m, v, p, I = []]) => Qn(c, d, m, v, p, I))
1916
+ B(([[, c], d, m, v, p, I = []]) => to(c, d, m, v, p, I))
1914
1917
  ),
1915
1918
  i
1916
1919
  ), {}),
1917
- rt(kt, me, Kt, At),
1920
+ rt(kt, me, Kt, Mt),
1918
1921
  { singleton: !0 }
1919
- ), nr = j(
1922
+ ), or = j(
1920
1923
  ([{ didMount: t }, { scrollTo: e }, { listState: n }]) => {
1921
1924
  const o = T(0);
1922
1925
  return Y(
@@ -1944,9 +1947,9 @@ const Qo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), tr = j(
1944
1947
  initialScrollTop: o
1945
1948
  };
1946
1949
  },
1947
- rt(At, It, Kt),
1950
+ rt(Mt, It, Kt),
1948
1951
  { singleton: !0 }
1949
- ), oo = j(
1952
+ ), ro = j(
1950
1953
  ([{ scrollVelocity: t }]) => {
1951
1954
  const e = T(!1), n = U(), o = T(!1);
1952
1955
  return z(
@@ -2007,7 +2010,7 @@ const Qo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), tr = j(
2007
2010
  windowScrollTo: r,
2008
2011
  windowViewportRect: o
2009
2012
  };
2010
- }, rt(It)), or = j(
2013
+ }, rt(It)), rr = j(
2011
2014
  ([
2012
2015
  { sizeRanges: t, sizes: e },
2013
2016
  { headerHeight: n, scrollTop: o },
@@ -2022,10 +2025,10 @@ const Qo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), tr = j(
2022
2025
  $(e, o, i, v, p, n)
2023
2026
  ),
2024
2027
  ([I, w, R, h, f, a, S]) => {
2025
- const H = Mo(w.sizeTree);
2028
+ const H = _o(w.sizeTree);
2026
2029
  h && f !== null && a !== null && (R = f.scrollTop - a.offsetTop), R -= S, I({ ranges: H, scrollTop: R });
2027
2030
  }
2028
- ), z(x(m, P(_e), B(rr)), r), z(
2031
+ ), z(x(m, P(_e), B(sr)), r), z(
2029
2032
  x(
2030
2033
  s,
2031
2034
  $(m),
@@ -2039,12 +2042,12 @@ const Qo = (t, e) => typeof t == "function" ? bn(t(e)) : e && bn(t), tr = j(
2039
2042
  restoreStateFrom: m
2040
2043
  };
2041
2044
  },
2042
- rt(kt, It, me, At, Ze)
2045
+ rt(kt, It, me, Mt, Ze)
2043
2046
  );
2044
- function rr(t) {
2047
+ function sr(t) {
2045
2048
  return { align: "start", index: 0, offset: t.scrollTop };
2046
2049
  }
2047
- const sr = j(([{ topItemsIndexes: t }]) => {
2050
+ const ir = j(([{ topItemsIndexes: t }]) => {
2048
2051
  const e = T(0);
2049
2052
  return z(
2050
2053
  x(
@@ -2055,11 +2058,11 @@ const sr = j(([{ topItemsIndexes: t }]) => {
2055
2058
  t
2056
2059
  ), { topItemCount: e };
2057
2060
  }, rt(Kt));
2058
- function ro(t) {
2061
+ function so(t) {
2059
2062
  let e = !1, n;
2060
2063
  return (() => (e || (e = !0, n = t()), n));
2061
2064
  }
2062
- const ir = ro(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), lr = j(
2065
+ const lr = so(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), cr = j(
2063
2066
  ([
2064
2067
  { deviation: t, scrollBy: e, scrollingInProgress: n, scrollTop: o },
2065
2068
  { isAtBottom: r, isScrolling: s, lastJumpDueToItemResize: i, scrollDirection: l },
@@ -2090,7 +2093,7 @@ const ir = ro(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2090
2093
  f > 0 ? (_(e, { behavior: "auto", top: -f }), _(t, 0)) : (_(t, 0), _(e, { behavior: "auto", top: -f }));
2091
2094
  }
2092
2095
  return Y(x(R, $(t, s)), ([f, a, S]) => {
2093
- S && ir() ? _(t, a - f) : h(-f);
2096
+ S && lr() ? _(t, a - f) : h(-f);
2094
2097
  }), Y(
2095
2098
  x(
2096
2099
  at(ht(s, !1), t, w),
@@ -2136,7 +2139,7 @@ const ir = ro(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2136
2139
  ), { deviation: t };
2137
2140
  },
2138
2141
  rt(It, pe, Kt, kt, Gt, Ue)
2139
- ), cr = j(
2142
+ ), ur = j(
2140
2143
  ([
2141
2144
  t,
2142
2145
  e,
@@ -2164,18 +2167,18 @@ const ir = ro(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2164
2167
  }),
2165
2168
  rt(
2166
2169
  Ye,
2167
- er,
2168
- At,
2169
- oo,
2170
- to,
2171
2170
  nr,
2172
- Xo,
2171
+ Mt,
2172
+ ro,
2173
+ eo,
2174
+ or,
2175
+ Jo,
2173
2176
  Ze,
2174
- no,
2177
+ oo,
2175
2178
  Gt,
2176
- eo
2179
+ no
2177
2180
  )
2178
- ), so = j(
2181
+ ), io = j(
2179
2182
  ([
2180
2183
  {
2181
2184
  data: t,
@@ -2251,17 +2254,17 @@ const ir = ro(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2251
2254
  kt,
2252
2255
  me,
2253
2256
  It,
2254
- or,
2255
- tr,
2257
+ rr,
2258
+ er,
2256
2259
  Kt,
2257
2260
  fe,
2258
- lr,
2259
- sr,
2260
- Zn,
2261
- cr
2261
+ cr,
2262
+ ir,
2263
+ Xn,
2264
+ ur
2262
2265
  )
2263
2266
  );
2264
- function ur(t, e) {
2267
+ function ar(t, e) {
2265
2268
  const n = {}, o = {};
2266
2269
  let r = 0;
2267
2270
  const s = t.length;
@@ -2294,10 +2297,10 @@ function Xe(t, e, n) {
2294
2297
  }, a), {});
2295
2298
  }
2296
2299
  function m(f) {
2297
- return i.reduce((a, S) => (a[S] = yo(f[e.events[S]]), a), {});
2300
+ return i.reduce((a, S) => (a[S] = bo(f[e.events[S]]), a), {});
2298
2301
  }
2299
2302
  const v = E.forwardRef(function(a, S) {
2300
- const { children: H, ...y } = a, [L] = E.useState(() => ye(Ho(t), (C) => {
2303
+ const { children: H, ...y } = a, [L] = E.useState(() => ye(Eo(t), (C) => {
2301
2304
  c(C, y);
2302
2305
  })), [u] = E.useState(mn(m, L));
2303
2306
  Ie(() => {
@@ -2310,7 +2313,7 @@ function Xe(t, e, n) {
2310
2313
  c(L, y);
2311
2314
  }), E.useImperativeHandle(S, fn(d(L)));
2312
2315
  const g = n;
2313
- return /* @__PURE__ */ G(l.Provider, { value: L, children: n === void 0 ? H : /* @__PURE__ */ G(g, { ...ur([...o, ...r, ...i], y), children: H }) });
2316
+ return /* @__PURE__ */ G(l.Provider, { value: L, children: n === void 0 ? H : /* @__PURE__ */ G(g, { ...ar([...o, ...r, ...i], y), children: H }) });
2314
2317
  }), p = (f) => {
2315
2318
  const a = E.useContext(l);
2316
2319
  return E.useCallback(
@@ -2348,24 +2351,24 @@ function Xe(t, e, n) {
2348
2351
  usePublisher: p
2349
2352
  };
2350
2353
  }
2351
- const Re = E.createContext(void 0), io = E.createContext(void 0), Le = "-webkit-sticky", Rn = "sticky", Je = ro(() => {
2354
+ const Re = E.createContext(void 0), lo = E.createContext(void 0), Le = "-webkit-sticky", Hn = "sticky", Je = so(() => {
2352
2355
  if (typeof document > "u")
2353
- return Rn;
2356
+ return Hn;
2354
2357
  const t = document.createElement("div");
2355
- return t.style.position = Le, t.style.position === Le ? Le : Rn;
2356
- }), lo = typeof document > "u" ? E.useEffect : E.useLayoutEffect;
2358
+ return t.style.position = Le, t.style.position === Le ? Le : Hn;
2359
+ }), co = typeof document > "u" ? E.useEffect : E.useLayoutEffect;
2357
2360
  function ke(t) {
2358
2361
  return "self" in t;
2359
2362
  }
2360
- function ar(t) {
2363
+ function dr(t) {
2361
2364
  return "body" in t;
2362
2365
  }
2363
- function co(t, e, n, o = Jt, r, s) {
2366
+ function uo(t, e, n, o = Jt, r, s) {
2364
2367
  const i = E.useRef(null), l = E.useRef(null), c = E.useRef(null), d = E.useCallback(
2365
2368
  (p) => {
2366
2369
  let I, w, R;
2367
2370
  const h = p.target;
2368
- if (ar(h) || ke(h)) {
2371
+ if (dr(h) || ke(h)) {
2369
2372
  const a = ke(h) ? h : h.defaultView;
2370
2373
  R = s === !0 ? _t(a, a.scrollX) : a.scrollY, I = s === !0 ? a.document.documentElement.scrollWidth : a.document.documentElement.scrollHeight, w = s === !0 ? a.innerWidth : a.innerHeight;
2371
2374
  } else
@@ -2377,7 +2380,7 @@ function co(t, e, n, o = Jt, r, s) {
2377
2380
  viewportHeight: w
2378
2381
  });
2379
2382
  };
2380
- p.suppressFlushSync === !0 ? f() : So.flushSync(f), l.current !== null && (R === l.current || R <= 0 || R === I - w) && (l.current = null, e(!0), c.current && (clearTimeout(c.current), c.current = null));
2383
+ p.suppressFlushSync === !0 ? f() : xo.flushSync(f), l.current !== null && (R === l.current || R <= 0 || R === I - w) && (l.current = null, e(!0), c.current && (clearTimeout(c.current), c.current = null));
2381
2384
  },
2382
2385
  [t, e, s]
2383
2386
  );
@@ -2403,7 +2406,7 @@ function co(t, e, n, o = Jt, r, s) {
2403
2406
  return;
2404
2407
  }
2405
2408
  const S = Math.ceil(Math.max(Math.min(a, p.top), 0));
2406
- if (p.top = S, Jn(R, h) || S === f) {
2409
+ if (p.top = S, Qn(R, h) || S === f) {
2407
2410
  t({ scrollHeight: h, scrollTop: f, viewportHeight: R }), w && e(!0);
2408
2411
  return;
2409
2412
  }
@@ -2425,7 +2428,7 @@ function co(t, e, n, o = Jt, r, s) {
2425
2428
  function Qe(t) {
2426
2429
  return t;
2427
2430
  }
2428
- const dr = /* @__PURE__ */ j(() => {
2431
+ const fr = /* @__PURE__ */ j(() => {
2429
2432
  const t = T((l) => `Item ${l}`), e = T((l) => `Group ${l}`), n = T({}), o = T(Qe), r = T("div"), s = T(Jt), i = (l, c = null) => ht(
2430
2433
  x(
2431
2434
  n,
@@ -2451,11 +2454,11 @@ const dr = /* @__PURE__ */ j(() => {
2451
2454
  ScrollSeekPlaceholder: i("ScrollSeekPlaceholder"),
2452
2455
  TopItemListComponent: i("TopItemList")
2453
2456
  };
2454
- }), fr = /* @__PURE__ */ j(
2457
+ }), mr = /* @__PURE__ */ j(
2455
2458
  ([t, e]) => ({ ...t, ...e }),
2456
- rt(so, dr)
2457
- ), mr = ({ height: t }) => /* @__PURE__ */ G("div", { style: { height: t } }), pr = { overflowAnchor: "none", position: Je(), zIndex: 1 }, uo = { overflowAnchor: "none" }, hr = { ...uo, display: "inline-block", height: "100%" }, Hn = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2458
- const n = A("listState"), o = Ct("sizeRanges"), r = A("useWindowScroll"), s = A("customScrollParent"), i = Ct("windowScrollContainerState"), l = Ct("scrollContainerState"), c = s || r ? i : l, d = A("itemContent"), m = A("context"), v = A("groupContent"), p = A("trackItemSizes"), I = A("itemSize"), w = A("log"), R = Ct("gap"), h = A("horizontalDirection"), { callbackRef: f } = Mn(
2459
+ rt(io, fr)
2460
+ ), pr = ({ height: t }) => /* @__PURE__ */ G("div", { style: { height: t } }), hr = { overflowAnchor: "none", position: Je(), zIndex: 1 }, ao = { overflowAnchor: "none" }, gr = { ...ao, display: "inline-block", height: "100%" }, En = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2461
+ const n = M("listState"), o = Ct("sizeRanges"), r = M("useWindowScroll"), s = M("customScrollParent"), i = Ct("windowScrollContainerState"), l = Ct("scrollContainerState"), c = s || r ? i : l, d = M("itemContent"), m = M("context"), v = M("groupContent"), p = M("trackItemSizes"), I = M("itemSize"), w = M("log"), R = Ct("gap"), h = M("horizontalDirection"), { callbackRef: f } = _n(
2459
2462
  o,
2460
2463
  I,
2461
2464
  p,
@@ -2464,12 +2467,12 @@ const dr = /* @__PURE__ */ j(() => {
2464
2467
  R,
2465
2468
  s,
2466
2469
  h,
2467
- A("skipAnimationFrameInResizeObserver")
2470
+ M("skipAnimationFrameInResizeObserver")
2468
2471
  ), [a, S] = E.useState(0);
2469
2472
  on("deviation", (F) => {
2470
2473
  a !== F && S(F);
2471
2474
  });
2472
- const H = A("EmptyPlaceholder"), y = A("ScrollSeekPlaceholder") ?? mr, L = A("ListComponent"), u = A("ItemComponent"), g = A("GroupComponent"), C = A("computeItemKey"), k = A("isSeeking"), O = A("groupIndices").length > 0, V = A("alignToBottom"), N = A("initialItemFinalLocationReached"), Z = e ? {} : {
2475
+ const H = M("EmptyPlaceholder"), y = M("ScrollSeekPlaceholder") ?? pr, L = M("ListComponent"), u = M("ItemComponent"), g = M("GroupComponent"), C = M("computeItemKey"), k = M("isSeeking"), O = M("groupIndices").length > 0, V = M("alignToBottom"), N = M("initialItemFinalLocationReached"), Z = e ? {} : {
2473
2476
  boxSizing: "border-box",
2474
2477
  ...h ? {
2475
2478
  display: "inline-block",
@@ -2512,33 +2515,33 @@ const dr = /* @__PURE__ */ j(() => {
2512
2515
  "data-item-index": F.index,
2513
2516
  "data-known-size": F.size,
2514
2517
  key: q,
2515
- style: pr
2518
+ style: hr
2516
2519
  },
2517
2520
  v(F.index, m)
2518
2521
  ) : /* @__PURE__ */ Dt(
2519
2522
  u,
2520
2523
  {
2521
2524
  ...ot(u, m),
2522
- ...ao(u, F.data),
2525
+ ...fo(u, F.data),
2523
2526
  "data-index": mt,
2524
2527
  "data-item-group-index": F.groupIndex,
2525
2528
  "data-item-index": F.index,
2526
2529
  "data-known-size": F.size,
2527
2530
  key: q,
2528
- style: h ? hr : uo
2531
+ style: h ? gr : ao
2529
2532
  },
2530
2533
  O ? d(F.index, F.groupIndex, F.data, m) : d(F.index, F.data, m)
2531
2534
  );
2532
2535
  })
2533
2536
  }
2534
2537
  );
2535
- }), gr = {
2538
+ }), Ir = {
2536
2539
  height: "100%",
2537
2540
  outline: "none",
2538
2541
  overflowY: "auto",
2539
2542
  position: "relative",
2540
2543
  WebkitOverflowScrolling: "touch"
2541
- }, Ir = {
2544
+ }, Sr = {
2542
2545
  outline: "none",
2543
2546
  overflowX: "auto",
2544
2547
  position: "relative"
@@ -2552,7 +2555,7 @@ const dr = /* @__PURE__ */ j(() => {
2552
2555
  ...He(t),
2553
2556
  position: e ? "relative" : "absolute",
2554
2557
  top: e ? -n : 0
2555
- }), Sr = {
2558
+ }), xr = {
2556
2559
  position: Je(),
2557
2560
  top: 0,
2558
2561
  width: "100%",
@@ -2562,11 +2565,11 @@ function ot(t, e) {
2562
2565
  if (typeof t != "string")
2563
2566
  return { context: e };
2564
2567
  }
2565
- function ao(t, e) {
2568
+ function fo(t, e) {
2566
2569
  return { item: typeof t == "string" ? void 0 : e };
2567
2570
  }
2568
- const xr = /* @__PURE__ */ E.memo(function() {
2569
- const e = A("HeaderComponent"), n = Ct("headerHeight"), o = A("HeaderFooterTag"), r = Lt(
2571
+ const vr = /* @__PURE__ */ E.memo(function() {
2572
+ const e = M("HeaderComponent"), n = Ct("headerHeight"), o = M("HeaderFooterTag"), r = Lt(
2570
2573
  E.useMemo(
2571
2574
  () => (i) => {
2572
2575
  n(Ht(i, "height"));
@@ -2574,11 +2577,11 @@ const xr = /* @__PURE__ */ E.memo(function() {
2574
2577
  [n]
2575
2578
  ),
2576
2579
  !0,
2577
- A("skipAnimationFrameInResizeObserver")
2578
- ), s = A("context");
2580
+ M("skipAnimationFrameInResizeObserver")
2581
+ ), s = M("context");
2579
2582
  return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...ot(e, s) }) }) : null;
2580
- }), vr = /* @__PURE__ */ E.memo(function() {
2581
- const e = A("FooterComponent"), n = Ct("footerHeight"), o = A("HeaderFooterTag"), r = Lt(
2583
+ }), Tr = /* @__PURE__ */ E.memo(function() {
2584
+ const e = M("FooterComponent"), n = Ct("footerHeight"), o = M("HeaderFooterTag"), r = Lt(
2582
2585
  E.useMemo(
2583
2586
  () => (i) => {
2584
2587
  n(Ht(i, "height"));
@@ -2586,13 +2589,13 @@ const xr = /* @__PURE__ */ E.memo(function() {
2586
2589
  [n]
2587
2590
  ),
2588
2591
  !0,
2589
- A("skipAnimationFrameInResizeObserver")
2590
- ), s = A("context");
2592
+ M("skipAnimationFrameInResizeObserver")
2593
+ ), s = M("context");
2591
2594
  return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...ot(e, s) }) }) : null;
2592
2595
  });
2593
2596
  function en({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2594
2597
  return E.memo(function({ children: s, style: i, context: l, ...c }) {
2595
- const d = n("scrollContainerState"), m = e("ScrollerComponent"), v = n("smoothScrollTargetReached"), p = e("scrollerRef"), I = e("horizontalDirection") || !1, { scrollByCallback: w, scrollerRef: R, scrollToCallback: h } = co(
2598
+ const d = n("scrollContainerState"), m = e("ScrollerComponent"), v = n("smoothScrollTargetReached"), p = e("scrollerRef"), I = e("horizontalDirection") || !1, { scrollByCallback: w, scrollerRef: R, scrollToCallback: h } = uo(
2596
2599
  d,
2597
2600
  v,
2598
2601
  m,
@@ -2606,7 +2609,7 @@ function en({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2606
2609
  "data-testid": "virtuoso-scroller",
2607
2610
  "data-virtuoso-scroller": !0,
2608
2611
  ref: R,
2609
- style: { ...I ? Ir : gr, ...i },
2612
+ style: { ...I ? Sr : Ir, ...i },
2610
2613
  tabIndex: 0,
2611
2614
  ...c,
2612
2615
  ...ot(m, l),
@@ -2617,14 +2620,14 @@ function en({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2617
2620
  }
2618
2621
  function nn({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2619
2622
  return E.memo(function({ children: s, style: i, context: l, ...c }) {
2620
- const d = n("windowScrollContainerState"), m = e("ScrollerComponent"), v = n("smoothScrollTargetReached"), p = e("totalListHeight"), I = e("deviation"), w = e("customScrollParent"), R = E.useRef(null), h = e("scrollerRef"), { scrollByCallback: f, scrollerRef: a, scrollToCallback: S } = co(
2623
+ const d = n("windowScrollContainerState"), m = e("ScrollerComponent"), v = n("smoothScrollTargetReached"), p = e("totalListHeight"), I = e("deviation"), w = e("customScrollParent"), R = E.useRef(null), h = e("scrollerRef"), { scrollByCallback: f, scrollerRef: a, scrollToCallback: S } = uo(
2621
2624
  d,
2622
2625
  v,
2623
2626
  m,
2624
2627
  h,
2625
2628
  w
2626
2629
  );
2627
- return lo(() => (a.current = w ?? R.current?.ownerDocument.defaultView, () => {
2630
+ return co(() => (a.current = w ?? R.current?.ownerDocument.defaultView, () => {
2628
2631
  a.current = null;
2629
2632
  }), [a, w]), t("windowScrollTo", S), t("scrollBy", f), /* @__PURE__ */ G(
2630
2633
  m,
@@ -2639,43 +2642,43 @@ function nn({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2639
2642
  );
2640
2643
  });
2641
2644
  }
2642
- const Tr = ({ children: t }) => {
2643
- const e = E.useContext(Re), n = Ct("viewportHeight"), o = Ct("fixedItemHeight"), r = A("alignToBottom"), s = A("horizontalDirection"), i = E.useMemo(
2645
+ const Cr = ({ children: t }) => {
2646
+ const e = E.useContext(Re), n = Ct("viewportHeight"), o = Ct("fixedItemHeight"), r = M("alignToBottom"), s = M("horizontalDirection"), i = E.useMemo(
2644
2647
  () => re(n, (c) => Ht(c, s ? "width" : "height")),
2645
2648
  [n, s]
2646
- ), l = Lt(i, !0, A("skipAnimationFrameInResizeObserver"));
2649
+ ), l = Lt(i, !0, M("skipAnimationFrameInResizeObserver"));
2647
2650
  return E.useEffect(() => {
2648
2651
  e && (n(e.viewportHeight), o(e.itemHeight));
2649
2652
  }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "element", ref: l, style: He(r), children: t });
2650
- }, Cr = ({ children: t }) => {
2651
- const e = E.useContext(Re), n = Ct("windowViewportRect"), o = Ct("fixedItemHeight"), r = A("customScrollParent"), s = A("useWindowScroll"), i = A("topListHeight"), l = $e(
2653
+ }, wr = ({ children: t }) => {
2654
+ const e = E.useContext(Re), n = Ct("windowViewportRect"), o = Ct("fixedItemHeight"), r = M("customScrollParent"), s = M("useWindowScroll"), i = M("topListHeight"), l = $e(
2652
2655
  n,
2653
2656
  r,
2654
- A("skipAnimationFrameInResizeObserver")
2655
- ), c = A("alignToBottom");
2657
+ M("skipAnimationFrameInResizeObserver")
2658
+ ), c = M("alignToBottom");
2656
2659
  return E.useEffect(() => {
2657
2660
  e && (o(e.itemHeight), n({ listHeight: 0, offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2658
2661
  }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "window", ref: l, style: tn(c, s, i), children: t });
2659
- }, wr = ({ children: t }) => {
2660
- const e = A("TopItemListComponent") ?? "div", n = A("headerHeight"), o = { ...Sr, marginTop: `${n}px` }, r = A("context");
2662
+ }, yr = ({ children: t }) => {
2663
+ const e = M("TopItemListComponent") ?? "div", n = M("headerHeight"), o = { ...xr, marginTop: `${n}px` }, r = M("context");
2661
2664
  return /* @__PURE__ */ G(e, { style: o, ...ot(e, r), children: t });
2662
- }, yr = /* @__PURE__ */ E.memo(function(e) {
2663
- const n = A("useWindowScroll"), o = A("topItemsIndexes").length > 0, r = A("customScrollParent"), s = A("context");
2664
- return /* @__PURE__ */ $t(r || n ? Rr : br, { ...e, context: s, children: [
2665
- o && /* @__PURE__ */ G(wr, { children: /* @__PURE__ */ G(Hn, { showTopList: !0 }) }),
2666
- /* @__PURE__ */ $t(r || n ? Cr : Tr, { children: [
2667
- /* @__PURE__ */ G(xr, {}),
2668
- /* @__PURE__ */ G(Hn, {}),
2669
- /* @__PURE__ */ G(vr, {})
2665
+ }, br = /* @__PURE__ */ E.memo(function(e) {
2666
+ const n = M("useWindowScroll"), o = M("topItemsIndexes").length > 0, r = M("customScrollParent"), s = M("context");
2667
+ return /* @__PURE__ */ $t(r || n ? Hr : Rr, { ...e, context: s, children: [
2668
+ o && /* @__PURE__ */ G(yr, { children: /* @__PURE__ */ G(En, { showTopList: !0 }) }),
2669
+ /* @__PURE__ */ $t(r || n ? wr : Cr, { children: [
2670
+ /* @__PURE__ */ G(vr, {}),
2671
+ /* @__PURE__ */ G(En, {}),
2672
+ /* @__PURE__ */ G(Tr, {})
2670
2673
  ] })
2671
2674
  ] });
2672
2675
  }), {
2673
- Component: fo,
2676
+ Component: mo,
2674
2677
  useEmitter: on,
2675
- useEmitterValue: A,
2678
+ useEmitterValue: M,
2676
2679
  usePublisher: Ct
2677
2680
  } = /* @__PURE__ */ Xe(
2678
- fr,
2681
+ mr,
2679
2682
  {
2680
2683
  optional: {
2681
2684
  restoreStateFrom: "restoreStateFrom",
@@ -2735,8 +2738,8 @@ const Tr = ({ children: t }) => {
2735
2738
  groupIndices: "groupIndices"
2736
2739
  }
2737
2740
  },
2738
- yr
2739
- ), br = /* @__PURE__ */ en({ useEmitter: on, useEmitterValue: A, usePublisher: Ct }), Rr = /* @__PURE__ */ nn({ useEmitter: on, useEmitterValue: A, usePublisher: Ct }), os = fo, rs = fo, Hr = /* @__PURE__ */ j(() => {
2741
+ br
2742
+ ), Rr = /* @__PURE__ */ en({ useEmitter: on, useEmitterValue: M, usePublisher: Ct }), Hr = /* @__PURE__ */ nn({ useEmitter: on, useEmitterValue: M, usePublisher: Ct }), rs = mo, ss = mo, Er = /* @__PURE__ */ j(() => {
2740
2743
  const t = T((d) => /* @__PURE__ */ $t("td", { children: [
2741
2744
  "Item $",
2742
2745
  d
@@ -2771,11 +2774,11 @@ const Tr = ({ children: t }) => {
2771
2774
  TableRowComponent: c("TableRow", "tr"),
2772
2775
  GroupComponent: c("Group", "tr")
2773
2776
  };
2774
- }), Er = /* @__PURE__ */ j(
2777
+ }), Br = /* @__PURE__ */ j(
2775
2778
  ([t, e]) => ({ ...t, ...e }),
2776
- rt(so, Hr)
2777
- ), Br = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { height: t } }) }), Or = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { border: 0, height: t, padding: 0 } }) }), Lr = { overflowAnchor: "none" }, En = { position: Je(), zIndex: 2, overflowAnchor: "none" }, Bn = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2778
- const n = M("listState"), o = M("computeItemKey"), r = M("firstItemIndex"), s = M("context"), i = M("isSeeking"), l = M("fixedHeaderHeight"), c = M("groupIndices").length > 0, d = M("itemContent"), m = M("groupContent"), v = M("ScrollSeekPlaceholder") ?? Br, p = M("GroupComponent"), I = M("TableRowComponent"), w = (e ? n.topItems : []).reduce((h, f, a) => (a === 0 ? h.push(f.size) : h.push(h[a - 1] + f.size), h), []);
2779
+ rt(io, Er)
2780
+ ), Or = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { height: t } }) }), Lr = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { border: 0, height: t, padding: 0 } }) }), kr = { overflowAnchor: "none" }, Bn = { position: Je(), zIndex: 2, overflowAnchor: "none" }, On = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2781
+ const n = A("listState"), o = A("computeItemKey"), r = A("firstItemIndex"), s = A("context"), i = A("isSeeking"), l = A("fixedHeaderHeight"), c = A("groupIndices").length > 0, d = A("itemContent"), m = A("groupContent"), v = A("ScrollSeekPlaceholder") ?? Or, p = A("GroupComponent"), I = A("TableRowComponent"), w = (e ? n.topItems : []).reduce((h, f, a) => (a === 0 ? h.push(f.size) : h.push(h[a - 1] + f.size), h), []);
2779
2782
  return (e ? n.topItems : n.items).map((h) => {
2780
2783
  const f = h.originalIndex, a = o(f + r, h.data, s), S = e ? f === 0 ? 0 : w[f - 1] : 0;
2781
2784
  return i ? /* @__PURE__ */ Dt(
@@ -2796,7 +2799,7 @@ const Tr = ({ children: t }) => {
2796
2799
  "data-known-size": h.size,
2797
2800
  key: a,
2798
2801
  style: {
2799
- ...En,
2802
+ ...Bn,
2800
2803
  top: l
2801
2804
  }
2802
2805
  },
@@ -2805,19 +2808,19 @@ const Tr = ({ children: t }) => {
2805
2808
  I,
2806
2809
  {
2807
2810
  ...ot(I, s),
2808
- ...ao(I, h.data),
2811
+ ...fo(I, h.data),
2809
2812
  "data-index": f,
2810
2813
  "data-item-index": h.index,
2811
2814
  "data-known-size": h.size,
2812
2815
  "data-item-group-index": h.groupIndex,
2813
2816
  key: a,
2814
- style: e ? { ...En, top: l + S } : Lr
2817
+ style: e ? { ...Bn, top: l + S } : kr
2815
2818
  },
2816
2819
  c ? d(h.index, h.groupIndex, h.data, s) : d(h.index, h.data, s)
2817
2820
  );
2818
2821
  });
2819
- }), kr = /* @__PURE__ */ E.memo(function() {
2820
- const e = M("listState"), n = M("topItemsIndexes").length > 0, o = bt("sizeRanges"), r = M("useWindowScroll"), s = M("customScrollParent"), i = bt("windowScrollContainerState"), l = bt("scrollContainerState"), c = s || r ? i : l, d = M("trackItemSizes"), m = M("itemSize"), v = M("log"), { callbackRef: p, ref: I } = Mn(
2822
+ }), zr = /* @__PURE__ */ E.memo(function() {
2823
+ const e = A("listState"), n = A("topItemsIndexes").length > 0, o = bt("sizeRanges"), r = A("useWindowScroll"), s = A("customScrollParent"), i = bt("windowScrollContainerState"), l = bt("scrollContainerState"), c = s || r ? i : l, d = A("trackItemSizes"), m = A("itemSize"), v = A("log"), { callbackRef: p, ref: I } = _n(
2821
2824
  o,
2822
2825
  m,
2823
2826
  d,
@@ -2826,49 +2829,49 @@ const Tr = ({ children: t }) => {
2826
2829
  void 0,
2827
2830
  s,
2828
2831
  !1,
2829
- M("skipAnimationFrameInResizeObserver")
2832
+ A("skipAnimationFrameInResizeObserver")
2830
2833
  ), [w, R] = E.useState(0);
2831
2834
  rn("deviation", (O) => {
2832
2835
  w !== O && (I.current.style.marginTop = `${O}px`, R(O));
2833
2836
  });
2834
- const h = M("EmptyPlaceholder"), f = M("FillerRow") ?? Or, a = M("TableBodyComponent"), S = M("paddingTopAddition"), H = M("statefulTotalCount"), y = M("context");
2837
+ const h = A("EmptyPlaceholder"), f = A("FillerRow") ?? Lr, a = A("TableBodyComponent"), S = A("paddingTopAddition"), H = A("statefulTotalCount"), y = A("context");
2835
2838
  if (H === 0 && h !== null && h !== void 0)
2836
2839
  return /* @__PURE__ */ G(h, { ...ot(h, y) });
2837
2840
  const L = (n ? e.topItems : []).reduce((O, V) => O + V.size, 0), u = e.offsetTop + S + w - L, g = e.offsetBottom, C = u > 0 ? /* @__PURE__ */ G(f, { context: y, height: u }, "padding-top") : null, k = g > 0 ? /* @__PURE__ */ G(f, { context: y, height: g }, "padding-bottom") : null;
2838
2841
  return /* @__PURE__ */ $t(a, { "data-testid": "virtuoso-item-list", ref: p, ...ot(a, y), children: [
2839
2842
  C,
2840
- n && /* @__PURE__ */ G(Bn, { showTopList: !0 }),
2841
- /* @__PURE__ */ G(Bn, {}),
2843
+ n && /* @__PURE__ */ G(On, { showTopList: !0 }),
2844
+ /* @__PURE__ */ G(On, {}),
2842
2845
  k
2843
2846
  ] });
2844
- }), zr = ({ children: t }) => {
2847
+ }), Fr = ({ children: t }) => {
2845
2848
  const e = E.useContext(Re), n = bt("viewportHeight"), o = bt("fixedItemHeight"), r = Lt(
2846
2849
  E.useMemo(() => re(n, (s) => Ht(s, "height")), [n]),
2847
2850
  !0,
2848
- M("skipAnimationFrameInResizeObserver")
2851
+ A("skipAnimationFrameInResizeObserver")
2849
2852
  );
2850
2853
  return E.useEffect(() => {
2851
2854
  e && (n(e.viewportHeight), o(e.itemHeight));
2852
2855
  }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "element", ref: r, style: He(!1), children: t });
2853
- }, Fr = ({ children: t }) => {
2854
- const e = E.useContext(Re), n = bt("windowViewportRect"), o = bt("fixedItemHeight"), r = M("customScrollParent"), s = M("useWindowScroll"), i = $e(
2856
+ }, Vr = ({ children: t }) => {
2857
+ const e = E.useContext(Re), n = bt("windowViewportRect"), o = bt("fixedItemHeight"), r = A("customScrollParent"), s = A("useWindowScroll"), i = $e(
2855
2858
  n,
2856
2859
  r,
2857
- M("skipAnimationFrameInResizeObserver")
2860
+ A("skipAnimationFrameInResizeObserver")
2858
2861
  );
2859
2862
  return E.useEffect(() => {
2860
2863
  e && (o(e.itemHeight), n({ listHeight: 0, offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2861
2864
  }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "window", ref: i, style: tn(!1, s), children: t });
2862
- }, Vr = /* @__PURE__ */ E.memo(function(e) {
2863
- const n = M("useWindowScroll"), o = M("customScrollParent"), r = bt("fixedHeaderHeight"), s = bt("fixedFooterHeight"), i = M("fixedHeaderContent"), l = M("fixedFooterContent"), c = M("context"), d = Lt(
2865
+ }, Wr = /* @__PURE__ */ E.memo(function(e) {
2866
+ const n = A("useWindowScroll"), o = A("customScrollParent"), r = bt("fixedHeaderHeight"), s = bt("fixedFooterHeight"), i = A("fixedHeaderContent"), l = A("fixedFooterContent"), c = A("context"), d = Lt(
2864
2867
  E.useMemo(() => re(r, (a) => Ht(a, "height")), [r]),
2865
2868
  !0,
2866
- M("skipAnimationFrameInResizeObserver")
2869
+ A("skipAnimationFrameInResizeObserver")
2867
2870
  ), m = Lt(
2868
2871
  E.useMemo(() => re(s, (a) => Ht(a, "height")), [s]),
2869
2872
  !0,
2870
- M("skipAnimationFrameInResizeObserver")
2871
- ), v = o || n ? Pr : Wr, p = o || n ? Fr : zr, I = M("TableComponent"), w = M("TableHeadComponent"), R = M("TableFooterComponent"), h = i ? /* @__PURE__ */ G(
2873
+ A("skipAnimationFrameInResizeObserver")
2874
+ ), v = o || n ? Gr : Pr, p = o || n ? Vr : Fr, I = A("TableComponent"), w = A("TableHeadComponent"), R = A("TableFooterComponent"), h = i ? /* @__PURE__ */ G(
2872
2875
  w,
2873
2876
  {
2874
2877
  ref: d,
@@ -2889,16 +2892,16 @@ const Tr = ({ children: t }) => {
2889
2892
  ) : null;
2890
2893
  return /* @__PURE__ */ G(v, { ...e, ...ot(v, c), children: /* @__PURE__ */ G(p, { children: /* @__PURE__ */ $t(I, { style: { borderSpacing: 0, overflowAnchor: "none" }, ...ot(I, c), children: [
2891
2894
  h,
2892
- /* @__PURE__ */ G(kr, {}, "TableBody"),
2895
+ /* @__PURE__ */ G(zr, {}, "TableBody"),
2893
2896
  f
2894
2897
  ] }) }) });
2895
2898
  }), {
2896
- Component: mo,
2899
+ Component: po,
2897
2900
  useEmitter: rn,
2898
- useEmitterValue: M,
2901
+ useEmitterValue: A,
2899
2902
  usePublisher: bt
2900
2903
  } = /* @__PURE__ */ Xe(
2901
- Er,
2904
+ Br,
2902
2905
  {
2903
2906
  optional: {
2904
2907
  restoreStateFrom: "restoreStateFrom",
@@ -2954,8 +2957,8 @@ const Tr = ({ children: t }) => {
2954
2957
  groupIndices: "groupIndices"
2955
2958
  }
2956
2959
  },
2957
- Vr
2958
- ), Wr = /* @__PURE__ */ en({ useEmitter: rn, useEmitterValue: M, usePublisher: bt }), Pr = /* @__PURE__ */ nn({ useEmitter: rn, useEmitterValue: M, usePublisher: bt }), ss = mo, is = mo, On = {
2960
+ Wr
2961
+ ), Pr = /* @__PURE__ */ en({ useEmitter: rn, useEmitterValue: A, usePublisher: bt }), Gr = /* @__PURE__ */ nn({ useEmitter: rn, useEmitterValue: A, usePublisher: bt }), is = po, ls = po, Ln = {
2959
2962
  bottom: 0,
2960
2963
  itemHeight: 0,
2961
2964
  items: [],
@@ -2963,7 +2966,7 @@ const Tr = ({ children: t }) => {
2963
2966
  offsetBottom: 0,
2964
2967
  offsetTop: 0,
2965
2968
  top: 0
2966
- }, Gr = {
2969
+ }, Mr = {
2967
2970
  bottom: 0,
2968
2971
  itemHeight: 0,
2969
2972
  items: [{ index: 0 }],
@@ -2971,23 +2974,23 @@ const Tr = ({ children: t }) => {
2971
2974
  offsetBottom: 0,
2972
2975
  offsetTop: 0,
2973
2976
  top: 0
2974
- }, { ceil: Ln, floor: Ce, max: oe, min: ze, round: kn } = Math;
2975
- function zn(t, e, n) {
2977
+ }, { ceil: kn, floor: Ce, max: oe, min: ze, round: zn } = Math;
2978
+ function Fn(t, e, n) {
2976
2979
  return Array.from({ length: e - t + 1 }).map((o, r) => ({ data: n === null ? null : n[r + t], index: r + t }));
2977
2980
  }
2978
2981
  function Ar(t) {
2979
2982
  return {
2980
- ...Gr,
2983
+ ...Mr,
2981
2984
  items: t
2982
2985
  };
2983
2986
  }
2984
2987
  function Se(t, e) {
2985
2988
  return t !== void 0 && t.width === e.width && t.height === e.height;
2986
2989
  }
2987
- function Mr(t, e) {
2990
+ function _r(t, e) {
2988
2991
  return t !== void 0 && t.column === e.column && t.row === e.row;
2989
2992
  }
2990
- const _r = /* @__PURE__ */ j(
2993
+ const Nr = /* @__PURE__ */ j(
2991
2994
  ([
2992
2995
  { increaseViewportBy: t, listBoundary: e, overscan: n, visibleRange: o },
2993
2996
  { footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: d, smoothScrollTargetReached: m, viewportHeight: v },
@@ -2997,7 +3000,7 @@ const _r = /* @__PURE__ */ j(
2997
3000
  { customScrollParent: h, useWindowScroll: f, windowScrollContainerState: a, windowScrollTo: S, windowViewportRect: H },
2998
3001
  y
2999
3002
  ]) => {
3000
- const L = T(0), u = T(0), g = T(On), C = T({ height: 0, width: 0 }), k = T({ height: 0, width: 0 }), O = U(), V = U(), N = T(0), Z = T(null), F = T({ column: 0, row: 0 }), mt = U(), q = U(), Q = T(!1), gt = T(0), ut = T(!0), St = T(!1), Ft = T(!1);
3003
+ const L = T(0), u = T(0), g = T(Ln), C = T({ height: 0, width: 0 }), k = T({ height: 0, width: 0 }), O = U(), V = U(), N = T(0), Z = T(null), F = T({ column: 0, row: 0 }), mt = U(), q = U(), Q = T(!1), gt = T(0), ut = T(!0), St = T(!1), Ft = T(!1);
3001
3004
  Y(
3002
3005
  x(
3003
3006
  w,
@@ -3064,7 +3067,7 @@ const _r = /* @__PURE__ */ j(
3064
3067
  at(
3065
3068
  W(L),
3066
3069
  o,
3067
- W(F, Mr),
3070
+ W(F, _r),
3068
3071
  W(k, Se),
3069
3072
  W(C, Se),
3070
3073
  W(Z),
@@ -3089,16 +3092,16 @@ const _r = /* @__PURE__ */ j(
3089
3092
  ]) => {
3090
3093
  const { column: Wt, row: ee } = st, { height: he, width: Ee } = tt, { width: sn } = X;
3091
3094
  if (xt === 0 && (b === 0 || sn === 0))
3092
- return On;
3095
+ return Ln;
3093
3096
  if (Ee === 0) {
3094
- const dn = qe(Vt, b), Io = dn + Math.max(xt - 1, 0);
3095
- return Ar(zn(dn, Io, lt));
3097
+ const dn = qe(Vt, b), So = dn + Math.max(xt - 1, 0);
3098
+ return Ar(Fn(dn, So, lt));
3096
3099
  }
3097
- const ge = po(sn, Ee, Wt);
3098
- let qt, Mt;
3099
- ct ? D === 0 && K === 0 && xt > 0 ? (qt = 0, Mt = xt - 1) : (qt = ge * Ce((D + ee) / (he + ee)), Mt = ge * Ln((K + ee) / (he + ee)) - 1, Mt = ze(b - 1, oe(Mt, ge - 1)), qt = ze(Mt, oe(0, qt))) : (qt = 0, Mt = -1);
3100
- const ln = zn(qt, Mt, lt), { bottom: cn, top: un } = Fn(X, st, tt, ln), an = Ln(b / ge), go = an * he + (an - 1) * ee - cn;
3101
- return { bottom: cn, itemHeight: he, items: ln, itemWidth: Ee, offsetBottom: go, offsetTop: un, top: un };
3100
+ const ge = ho(sn, Ee, Wt);
3101
+ let qt, At;
3102
+ ct ? D === 0 && K === 0 && xt > 0 ? (qt = 0, At = xt - 1) : (qt = ge * Ce((D + ee) / (he + ee)), At = ge * kn((K + ee) / (he + ee)) - 1, At = ze(b - 1, oe(At, ge - 1)), qt = ze(At, oe(0, qt))) : (qt = 0, At = -1);
3103
+ const ln = Fn(qt, At, lt), { bottom: cn, top: un } = Vn(X, st, tt, ln), an = kn(b / ge), Io = an * he + (an - 1) * ee - cn;
3104
+ return { bottom: cn, itemHeight: he, items: ln, itemWidth: Ee, offsetBottom: Io, offsetTop: un, top: un };
3102
3105
  }
3103
3106
  )
3104
3107
  ),
@@ -3115,7 +3118,7 @@ const _r = /* @__PURE__ */ j(
3115
3118
  at(C, k, g, F),
3116
3119
  P(([b, D, { items: K }]) => K.length > 0 && D.height !== 0 && b.height !== 0),
3117
3120
  B(([b, D, { items: K }, st]) => {
3118
- const { bottom: tt, top: X } = Fn(b, st, D, K);
3121
+ const { bottom: tt, top: X } = Vn(b, st, D, K);
3119
3122
  return [X, tt];
3120
3123
  }),
3121
3124
  nt(le)
@@ -3159,7 +3162,7 @@ const _r = /* @__PURE__ */ j(
3159
3162
  endIndex: b[b.length - 1].index,
3160
3163
  startIndex: b[0].index
3161
3164
  })),
3162
- nt(Kn),
3165
+ nt(jn),
3163
3166
  zt(0)
3164
3167
  )
3165
3168
  );
@@ -3168,11 +3171,11 @@ const _r = /* @__PURE__ */ j(
3168
3171
  O,
3169
3172
  $(C, k, L, F),
3170
3173
  B(([b, D, K, st, tt]) => {
3171
- const X = Xn(b), { align: lt, behavior: xt, offset: ct } = X;
3174
+ const X = Jn(b), { align: lt, behavior: xt, offset: ct } = X;
3172
3175
  let Vt = X.index;
3173
3176
  Vt === "LAST" && (Vt = st - 1), Vt = oe(0, Vt, ze(st - 1, Vt));
3174
- let Wt = Me(D, tt, K, Vt);
3175
- return lt === "end" ? Wt = kn(Wt - D.height + K.height) : lt === "center" && (Wt = kn(Wt - D.height / 2 + K.height / 2)), ct !== void 0 && ct !== 0 && (Wt += ct), { behavior: xt, top: Wt };
3177
+ let Wt = Ae(D, tt, K, Vt);
3178
+ return lt === "end" ? Wt = zn(Wt - D.height + K.height) : lt === "center" && (Wt = zn(Wt - D.height / 2 + K.height / 2)), ct !== void 0 && ct !== 0 && (Wt += ct), { behavior: xt, top: Wt };
3176
3179
  })
3177
3180
  ),
3178
3181
  c
@@ -3232,23 +3235,23 @@ const _r = /* @__PURE__ */ j(
3232
3235
  ...y
3233
3236
  };
3234
3237
  },
3235
- rt(Ye, It, pe, oo, At, Ze, Gt)
3238
+ rt(Ye, It, pe, ro, Mt, Ze, Gt)
3236
3239
  );
3237
- function po(t, e, n) {
3240
+ function ho(t, e, n) {
3238
3241
  return oe(1, Ce((t + n) / (Ce(e) + n)));
3239
3242
  }
3240
- function Fn(t, e, n, o) {
3243
+ function Vn(t, e, n, o) {
3241
3244
  const { height: r } = n;
3242
3245
  if (r === void 0 || o.length === 0)
3243
3246
  return { bottom: 0, top: 0 };
3244
- const s = Me(t, e, n, o[0].index);
3245
- return { bottom: Me(t, e, n, o[o.length - 1].index) + r, top: s };
3247
+ const s = Ae(t, e, n, o[0].index);
3248
+ return { bottom: Ae(t, e, n, o[o.length - 1].index) + r, top: s };
3246
3249
  }
3247
- function Me(t, e, n, o) {
3248
- const r = po(t.width, n.width, e.column), s = Ce(o / r), i = s * n.height + oe(0, s - 1) * e.row;
3250
+ function Ae(t, e, n, o) {
3251
+ const r = ho(t.width, n.width, e.column), s = Ce(o / r), i = s * n.height + oe(0, s - 1) * e.row;
3249
3252
  return i > 0 ? i + e.row : i;
3250
3253
  }
3251
- const Nr = /* @__PURE__ */ j(() => {
3254
+ const Dr = /* @__PURE__ */ j(() => {
3252
3255
  const t = T((v) => `Item ${v}`), e = T({}), n = T(null), o = T("virtuoso-grid-item"), r = T("virtuoso-grid-list"), s = T(Qe), i = T("div"), l = T(Jt), c = (v, p = null) => ht(
3253
3256
  x(
3254
3257
  e,
@@ -3275,10 +3278,10 @@ const Nr = /* @__PURE__ */ j(() => {
3275
3278
  scrollerRef: l,
3276
3279
  ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
3277
3280
  };
3278
- }), Dr = /* @__PURE__ */ j(
3281
+ }), $r = /* @__PURE__ */ j(
3279
3282
  ([t, e]) => ({ ...t, ...e }),
3280
- rt(_r, Nr)
3281
- ), $r = /* @__PURE__ */ E.memo(function() {
3283
+ rt(Nr, Dr)
3284
+ ), Ur = /* @__PURE__ */ E.memo(function() {
3282
3285
  const e = et("gridState"), n = et("listClassName"), o = et("itemClassName"), r = et("itemContent"), s = et("computeItemKey"), i = et("isSeeking"), l = wt("scrollHeight"), c = et("ItemComponent"), d = et("ListComponent"), m = et("ScrollSeekPlaceholder"), v = et("context"), p = wt("itemDimensions"), I = wt("gap"), w = et("log"), R = et("stateRestoreInProgress"), h = wt("reportReadyState"), f = Lt(
3283
3286
  E.useMemo(
3284
3287
  () => (a) => {
@@ -3290,8 +3293,8 @@ const Nr = /* @__PURE__ */ j(() => {
3290
3293
  p({ height: y, width: L });
3291
3294
  }
3292
3295
  I({
3293
- column: Vn("column-gap", getComputedStyle(a).columnGap, w),
3294
- row: Vn("row-gap", getComputedStyle(a).rowGap, w)
3296
+ column: Wn("column-gap", getComputedStyle(a).columnGap, w),
3297
+ row: Wn("row-gap", getComputedStyle(a).rowGap, w)
3295
3298
  });
3296
3299
  },
3297
3300
  [l, p, I, w]
@@ -3299,7 +3302,7 @@ const Nr = /* @__PURE__ */ j(() => {
3299
3302
  !0,
3300
3303
  !1
3301
3304
  );
3302
- return lo(() => {
3305
+ return co(() => {
3303
3306
  e.itemHeight > 0 && e.itemWidth > 0 && h(!0);
3304
3307
  }, [e]), R ? null : /* @__PURE__ */ G(
3305
3308
  d,
@@ -3333,7 +3336,7 @@ const Nr = /* @__PURE__ */ j(() => {
3333
3336
  })
3334
3337
  }
3335
3338
  );
3336
- }), Ur = E.memo(function() {
3339
+ }), Kr = E.memo(function() {
3337
3340
  const e = et("HeaderComponent"), n = wt("headerHeight"), o = et("headerFooterTag"), r = Lt(
3338
3341
  E.useMemo(
3339
3342
  () => (i) => {
@@ -3345,7 +3348,7 @@ const Nr = /* @__PURE__ */ j(() => {
3345
3348
  !1
3346
3349
  ), s = et("context");
3347
3350
  return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...ot(e, s) }) }) : null;
3348
- }), Kr = E.memo(function() {
3351
+ }), jr = E.memo(function() {
3349
3352
  const e = et("FooterComponent"), n = wt("footerHeight"), o = et("headerFooterTag"), r = Lt(
3350
3353
  E.useMemo(
3351
3354
  () => (i) => {
@@ -3357,8 +3360,8 @@ const Nr = /* @__PURE__ */ j(() => {
3357
3360
  !1
3358
3361
  ), s = et("context");
3359
3362
  return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...ot(e, s) }) }) : null;
3360
- }), jr = ({ children: t }) => {
3361
- const e = E.useContext(io), n = wt("itemDimensions"), o = wt("viewportDimensions"), r = Lt(
3363
+ }), qr = ({ children: t }) => {
3364
+ const e = E.useContext(lo), n = wt("itemDimensions"), o = wt("viewportDimensions"), r = Lt(
3362
3365
  E.useMemo(
3363
3366
  () => (s) => {
3364
3367
  o(s.getBoundingClientRect());
@@ -3371,25 +3374,25 @@ const Nr = /* @__PURE__ */ j(() => {
3371
3374
  return E.useEffect(() => {
3372
3375
  e && (o({ height: e.viewportHeight, width: e.viewportWidth }), n({ height: e.itemHeight, width: e.itemWidth }));
3373
3376
  }, [e, o, n]), /* @__PURE__ */ G("div", { ref: r, style: He(!1), children: t });
3374
- }, qr = ({ children: t }) => {
3375
- const e = E.useContext(io), n = wt("windowViewportRect"), o = wt("itemDimensions"), r = et("customScrollParent"), s = et("useWindowScroll"), i = $e(n, r, !1);
3377
+ }, Yr = ({ children: t }) => {
3378
+ const e = E.useContext(lo), n = wt("windowViewportRect"), o = wt("itemDimensions"), r = et("customScrollParent"), s = et("useWindowScroll"), i = $e(n, r, !1);
3376
3379
  return E.useEffect(() => {
3377
3380
  e && (o({ height: e.itemHeight, width: e.itemWidth }), n({ listHeight: 0, offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: e.viewportWidth }));
3378
3381
  }, [e, n, o]), /* @__PURE__ */ G("div", { ref: i, style: tn(!1, s), children: t });
3379
- }, Yr = /* @__PURE__ */ E.memo(function({ ...e }) {
3380
- const n = et("useWindowScroll"), o = et("customScrollParent"), r = o || n ? Jr : Xr, s = o || n ? qr : jr, i = et("context");
3382
+ }, Zr = /* @__PURE__ */ E.memo(function({ ...e }) {
3383
+ const n = et("useWindowScroll"), o = et("customScrollParent"), r = o || n ? Qr : Jr, s = o || n ? Yr : qr, i = et("context");
3381
3384
  return /* @__PURE__ */ G(r, { ...e, ...ot(r, i), children: /* @__PURE__ */ $t(s, { children: [
3385
+ /* @__PURE__ */ G(Kr, {}),
3382
3386
  /* @__PURE__ */ G(Ur, {}),
3383
- /* @__PURE__ */ G($r, {}),
3384
- /* @__PURE__ */ G(Kr, {})
3387
+ /* @__PURE__ */ G(jr, {})
3385
3388
  ] }) });
3386
3389
  }), {
3387
- Component: Zr,
3388
- useEmitter: ho,
3390
+ Component: Xr,
3391
+ useEmitter: go,
3389
3392
  useEmitterValue: et,
3390
3393
  usePublisher: wt
3391
3394
  } = /* @__PURE__ */ Xe(
3392
- Dr,
3395
+ $r,
3393
3396
  {
3394
3397
  optional: {
3395
3398
  context: "context",
@@ -3428,19 +3431,19 @@ const Nr = /* @__PURE__ */ j(() => {
3428
3431
  readyStateChanged: "readyStateChanged"
3429
3432
  }
3430
3433
  },
3431
- Yr
3432
- ), Xr = /* @__PURE__ */ en({ useEmitter: ho, useEmitterValue: et, usePublisher: wt }), Jr = /* @__PURE__ */ nn({ useEmitter: ho, useEmitterValue: et, usePublisher: wt });
3433
- function Vn(t, e, n) {
3434
+ Zr
3435
+ ), Jr = /* @__PURE__ */ en({ useEmitter: go, useEmitterValue: et, usePublisher: wt }), Qr = /* @__PURE__ */ nn({ useEmitter: go, useEmitterValue: et, usePublisher: wt });
3436
+ function Wn(t, e, n) {
3434
3437
  return e !== "normal" && e?.endsWith("px") !== !0 && n(`${t} was not resolved to pixel value correctly`, e, ft.WARN), e === "normal" ? 0 : parseInt(e ?? "0", 10);
3435
3438
  }
3436
- const ls = Zr;
3439
+ const cs = Xr;
3437
3440
  export {
3438
- is as GroupedTableVirtuoso,
3439
- rs as GroupedVirtuoso,
3441
+ ls as GroupedTableVirtuoso,
3442
+ ss as GroupedVirtuoso,
3440
3443
  ft as LogLevel,
3441
- ss as TableVirtuoso,
3442
- os as Virtuoso,
3443
- ls as VirtuosoGrid,
3444
- io as VirtuosoGridMockContext,
3444
+ is as TableVirtuoso,
3445
+ rs as Virtuoso,
3446
+ cs as VirtuosoGrid,
3447
+ lo as VirtuosoGridMockContext,
3445
3448
  Re as VirtuosoMockContext
3446
3449
  };