react-virtuoso 4.18.4 → 4.18.6

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,46 +1,46 @@
1
1
  import { jsx as G, jsxs as Dt } from "react/jsx-runtime";
2
2
  import E, { createElement as Nt } from "react";
3
- import ao from "react-dom";
4
- const we = 0, Wt = 1, Zt = 2, kn = 4;
5
- function un(t) {
3
+ import fo from "react-dom";
4
+ const Ce = 0, Pt = 1, Zt = 2, kn = 4;
5
+ function an(t) {
6
6
  return () => t;
7
7
  }
8
- function fo(t) {
8
+ function mo(t) {
9
9
  t();
10
10
  }
11
- function re(t, e) {
11
+ function oe(t, e) {
12
12
  return (n) => t(e(n));
13
13
  }
14
- function an(t, e) {
14
+ function dn(t, e) {
15
15
  return () => t(e);
16
16
  }
17
- function mo(t, e) {
17
+ function po(t, e) {
18
18
  return (n) => t(e, n);
19
19
  }
20
20
  function Ae(t) {
21
21
  return t !== void 0;
22
22
  }
23
- function po(...t) {
23
+ function ho(...t) {
24
24
  return () => {
25
- t.map(fo);
25
+ t.map(mo);
26
26
  };
27
27
  }
28
28
  function Xt() {
29
29
  }
30
- function ye(t, e) {
30
+ function we(t, e) {
31
31
  return e(t), t;
32
32
  }
33
- function ho(t, e) {
33
+ function go(t, e) {
34
34
  return e(t);
35
35
  }
36
- function ot(...t) {
36
+ function rt(...t) {
37
37
  return t;
38
38
  }
39
39
  function Y(t, e) {
40
- return t(Wt, e);
40
+ return t(Pt, e);
41
41
  }
42
42
  function _(t, e) {
43
- t(we, e);
43
+ t(Ce, e);
44
44
  }
45
45
  function Me(t) {
46
46
  t(Zt);
@@ -48,16 +48,16 @@ function Me(t) {
48
48
  function it(t) {
49
49
  return t(kn);
50
50
  }
51
- function L(t, e) {
52
- return Y(t, mo(e, we));
51
+ function k(t, e) {
52
+ return Y(t, po(e, Ce));
53
53
  }
54
54
  function yt(t, e) {
55
- const n = t(Wt, (o) => {
55
+ const n = t(Pt, (o) => {
56
56
  n(), e(o);
57
57
  });
58
58
  return n;
59
59
  }
60
- function dn(t) {
60
+ function fn(t) {
61
61
  let e, n;
62
62
  return (o) => (r) => {
63
63
  e = r, n && clearTimeout(n), n = setTimeout(() => {
@@ -65,22 +65,22 @@ function dn(t) {
65
65
  }, t);
66
66
  };
67
67
  }
68
- function Ln(t, e) {
68
+ function zn(t, e) {
69
69
  return t === e;
70
70
  }
71
- function et(t = Ln) {
71
+ function nt(t = zn) {
72
72
  let e;
73
73
  return (n) => (o) => {
74
74
  t(e, o) || (e = o, n(o));
75
75
  };
76
76
  }
77
- function W(t) {
77
+ function P(t) {
78
78
  return (e) => (n) => {
79
79
  t(n) && e(n);
80
80
  };
81
81
  }
82
82
  function B(t) {
83
- return (e) => re(e, t);
83
+ return (e) => oe(e, t);
84
84
  }
85
85
  function Bt(t) {
86
86
  return (e) => () => {
@@ -88,13 +88,13 @@ function Bt(t) {
88
88
  };
89
89
  }
90
90
  function I(t, ...e) {
91
- const n = go(...e);
91
+ const n = Io(...e);
92
92
  return ((o, r) => {
93
93
  switch (o) {
94
94
  case Zt:
95
95
  Me(t);
96
96
  return;
97
- case Wt:
97
+ case Pt:
98
98
  return Y(t, n(r));
99
99
  }
100
100
  });
@@ -134,15 +134,15 @@ function $(...t) {
134
134
  n === r ? l() : o = l;
135
135
  };
136
136
  }
137
- function go(...t) {
138
- return (e) => t.reduceRight(ho, e);
137
+ function Io(...t) {
138
+ return (e) => t.reduceRight(go, e);
139
139
  }
140
- function Io(t) {
140
+ function So(t) {
141
141
  let e, n;
142
142
  const o = () => e?.();
143
143
  return function(r, s) {
144
144
  switch (r) {
145
- case Wt:
145
+ case Pt:
146
146
  return s ? n === s ? void 0 : (o(), n = s, e = Y(t, s), e) : (o(), Xt);
147
147
  case Zt:
148
148
  o(), n = null;
@@ -155,10 +155,10 @@ function v(t) {
155
155
  const n = U();
156
156
  return ((o, r) => {
157
157
  switch (o) {
158
- case we:
158
+ case Ce:
159
159
  e = r;
160
160
  break;
161
- case Wt: {
161
+ case Pt: {
162
162
  r(e);
163
163
  break;
164
164
  }
@@ -169,13 +169,13 @@ function v(t) {
169
169
  });
170
170
  }
171
171
  function ht(t, e) {
172
- return ye(v(e), (n) => L(t, n));
172
+ return we(v(e), (n) => k(t, n));
173
173
  }
174
174
  function U() {
175
175
  const t = [];
176
176
  return ((e, n) => {
177
177
  switch (e) {
178
- case we:
178
+ case Ce:
179
179
  t.slice().forEach((o) => {
180
180
  o(n);
181
181
  });
@@ -183,7 +183,7 @@ function U() {
183
183
  case Zt:
184
184
  t.splice(0, t.length);
185
185
  return;
186
- case Wt:
186
+ case Pt:
187
187
  return t.push(n), () => {
188
188
  const o = t.indexOf(n);
189
189
  o > -1 && t.splice(o, 1);
@@ -192,7 +192,7 @@ function U() {
192
192
  });
193
193
  }
194
194
  function vt(t) {
195
- return ye(U(), (e) => L(t, e));
195
+ return we(U(), (e) => k(t, e));
196
196
  }
197
197
  function j(t, e = [], { singleton: n } = { singleton: !0 }) {
198
198
  return {
@@ -203,7 +203,7 @@ function j(t, e = [], { singleton: n } = { singleton: !0 }) {
203
203
  };
204
204
  }
205
205
  const xo = () => Symbol();
206
- function So(t) {
206
+ function To(t) {
207
207
  const e = /* @__PURE__ */ new Map(), n = ({ constructor: o, dependencies: r, id: s, singleton: i }) => {
208
208
  if (i && e.has(s))
209
209
  return e.get(s);
@@ -227,21 +227,21 @@ function at(...t) {
227
227
  Me(e);
228
228
  return;
229
229
  }
230
- case Wt:
230
+ case Pt:
231
231
  return o === r && i(n), Y(e, i);
232
232
  }
233
233
  };
234
234
  }
235
- function P(t, e = Ln) {
236
- return I(t, et(e));
235
+ function W(t, e = zn) {
236
+ return I(t, nt(e));
237
237
  }
238
238
  function ze(...t) {
239
239
  return function(e, n) {
240
240
  switch (e) {
241
241
  case Zt:
242
242
  return;
243
- case Wt:
244
- return po(...t.map((o) => Y(o, n)));
243
+ case Pt:
244
+ return ho(...t.map((o) => Y(o, n)));
245
245
  }
246
246
  };
247
247
  }
@@ -254,18 +254,18 @@ const ft = {
254
254
  WARN: 2,
255
255
  /** Error messages for failures (default level) */
256
256
  ERROR: 3
257
- }, To = {
257
+ }, vo = {
258
258
  [ft.DEBUG]: "debug",
259
259
  [ft.ERROR]: "error",
260
260
  [ft.INFO]: "log",
261
261
  [ft.WARN]: "warn"
262
- }, vo = () => typeof globalThis > "u" ? window : globalThis, Gt = j(
262
+ }, Co = () => typeof globalThis > "u" ? window : globalThis, Gt = j(
263
263
  () => {
264
264
  const t = v(ft.ERROR);
265
265
  return {
266
266
  log: v((n, o, r = ft.INFO) => {
267
- const s = vo().VIRTUOSO_LOG_LEVEL ?? it(t);
268
- r >= s && console[To[r]](
267
+ const s = Co().VIRTUOSO_LOG_LEVEL ?? it(t);
268
+ r >= s && console[vo[r]](
269
269
  "%creact-virtuoso: %c%s %o",
270
270
  "color: #0253b3; font-weight: bold",
271
271
  "color: initial",
@@ -279,7 +279,7 @@ const ft = {
279
279
  [],
280
280
  { singleton: !0 }
281
281
  );
282
- function kt(t, e, n) {
282
+ function Lt(t, e, n) {
283
283
  return _e(t, e, n).callbackRef;
284
284
  }
285
285
  function _e(t, e, n) {
@@ -297,10 +297,10 @@ function _e(t, e, n) {
297
297
  i && e ? (s?.observe(i), o.current = i) : (o.current && s?.unobserve(o.current), o.current = null);
298
298
  }, { callbackRef: r, ref: o };
299
299
  }
300
- function zn(t, e, n, o, r, s, i, l, c) {
300
+ function Fn(t, e, n, o, r, s, i, l, c) {
301
301
  const d = E.useCallback(
302
302
  (m) => {
303
- const x = Co(m.children, e, l ? "offsetWidth" : "offsetHeight", r);
303
+ const S = wo(m.children, e, l ? "offsetWidth" : "offsetHeight", r);
304
304
  let p = m.parentElement;
305
305
  for (; p.dataset.virtuosoScroller === void 0; )
306
306
  p = p.parentElement;
@@ -313,14 +313,14 @@ function zn(t, e, n, o, r, s, i, l, c) {
313
313
  scrollTop: Math.max(R, 0),
314
314
  viewportHeight: f
315
315
  }), s?.(
316
- l ? fn("column-gap", getComputedStyle(m).columnGap, r) : fn("row-gap", getComputedStyle(m).rowGap, r)
317
- ), x !== null && t(x);
316
+ l ? mn("column-gap", getComputedStyle(m).columnGap, r) : mn("row-gap", getComputedStyle(m).rowGap, r)
317
+ ), S !== null && t(S);
318
318
  },
319
319
  [t, e, r, s, i, o, l]
320
320
  );
321
321
  return _e(d, n, c);
322
322
  }
323
- function Co(t, e, n, o) {
323
+ function wo(t, e, n, o) {
324
324
  const r = t.length;
325
325
  if (r === 0)
326
326
  return null;
@@ -332,12 +332,12 @@ function Co(t, e, n, o) {
332
332
  const c = parseInt(l.dataset.index), d = parseFloat(l.dataset.knownSize), m = e(l, n);
333
333
  if (m === 0 && o("Zero-sized element, this should not happen", { child: l }, ft.ERROR), m === d)
334
334
  continue;
335
- const x = s[s.length - 1];
336
- s.length === 0 || x.size !== m || x.endIndex !== c - 1 ? s.push({ endIndex: c, size: m, startIndex: c }) : s[s.length - 1].endIndex++;
335
+ const S = s[s.length - 1];
336
+ s.length === 0 || S.size !== m || S.endIndex !== c - 1 ? s.push({ endIndex: c, size: m, startIndex: c }) : s[s.length - 1].endIndex++;
337
337
  }
338
338
  return s;
339
339
  }
340
- function fn(t, e, n) {
340
+ function mn(t, e, n) {
341
341
  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);
342
342
  }
343
343
  function Ne(t, e, n) {
@@ -346,17 +346,17 @@ function Ne(t, e, n) {
346
346
  if (!c?.offsetParent)
347
347
  return;
348
348
  const d = c.getBoundingClientRect(), m = d.width;
349
- let x, p;
349
+ let S, p;
350
350
  if (e) {
351
351
  const T = e.getBoundingClientRect(), w = d.top - T.top;
352
- p = T.height - Math.max(0, w), x = w + e.scrollTop;
352
+ p = T.height - Math.max(0, w), S = w + e.scrollTop;
353
353
  } else {
354
354
  const T = i.current.ownerDocument.defaultView;
355
- p = T.innerHeight - Math.max(0, d.top), x = d.top + T.scrollY;
355
+ p = T.innerHeight - Math.max(0, d.top), S = d.top + T.scrollY;
356
356
  }
357
357
  o.current = {
358
358
  listHeight: d.height,
359
- offsetTop: x,
359
+ offsetTop: S,
360
360
  visibleHeight: p,
361
361
  visibleWidth: m
362
362
  }, t(o.current);
@@ -384,20 +384,20 @@ function Ne(t, e, n) {
384
384
  }
385
385
  const It = j(
386
386
  () => {
387
- const t = U(), e = U(), n = v(0), o = U(), r = v(0), s = U(), i = U(), l = v(0), c = v(0), d = v(0), m = v(0), x = U(), p = U(), T = v(!1), w = v(!1), R = v(!1);
388
- return L(
387
+ const t = U(), e = U(), n = v(0), o = U(), r = v(0), s = U(), i = U(), l = v(0), c = v(0), d = v(0), m = v(0), S = U(), p = U(), T = v(!1), w = v(!1), R = v(!1);
388
+ return k(
389
389
  I(
390
390
  t,
391
391
  B(({ scrollTop: h }) => h)
392
392
  ),
393
393
  e
394
- ), L(
394
+ ), k(
395
395
  I(
396
396
  t,
397
397
  B(({ scrollHeight: h }) => h)
398
398
  ),
399
399
  i
400
- ), L(e, r), {
400
+ ), k(e, r), {
401
401
  deviation: n,
402
402
  fixedFooterHeight: d,
403
403
  fixedHeaderHeight: c,
@@ -410,7 +410,7 @@ const It = j(
410
410
  scrollHeight: i,
411
411
  scrollingInProgress: T,
412
412
  // signals
413
- scrollTo: x,
413
+ scrollTo: S,
414
414
  scrollTop: e,
415
415
  skipAnimationFrameInResizeObserver: R,
416
416
  smoothScrollTargetReached: o,
@@ -421,8 +421,8 @@ const It = j(
421
421
  },
422
422
  [],
423
423
  { singleton: !0 }
424
- ), se = { lvl: 0 };
425
- function Fn(t, e) {
424
+ ), re = { lvl: 0 };
425
+ function Vn(t, e) {
426
426
  const n = t.length;
427
427
  if (n === 0)
428
428
  return [];
@@ -435,11 +435,11 @@ function Fn(t, e) {
435
435
  return s.push({ end: 1 / 0, start: o, value: r }), s;
436
436
  }
437
437
  function J(t) {
438
- return t === se;
438
+ return t === re;
439
439
  }
440
- function ie(t, e) {
440
+ function se(t, e) {
441
441
  if (!J(t))
442
- return e === t.k ? t.v : e < t.k ? ie(t.l, e) : ie(t.r, e);
442
+ return e === t.k ? t.v : e < t.k ? se(t.l, e) : se(t.r, e);
443
443
  }
444
444
  function Rt(t, e, n = "k") {
445
445
  if (J(t))
@@ -453,20 +453,20 @@ function Rt(t, e, n = "k") {
453
453
  return Rt(t.l, e, n);
454
454
  }
455
455
  function Tt(t, e, n) {
456
- return J(t) ? Wn(e, n, 1) : e === t.k ? dt(t, { k: e, v: n }) : e < t.k ? mn(dt(t, { l: Tt(t.l, e, n) })) : mn(dt(t, { r: Tt(t.r, e, n) }));
456
+ return J(t) ? Gn(e, n, 1) : e === t.k ? dt(t, { k: e, v: n }) : e < t.k ? pn(dt(t, { l: Tt(t.l, e, n) })) : pn(dt(t, { r: Tt(t.r, e, n) }));
457
457
  }
458
458
  function qt() {
459
- return se;
459
+ return re;
460
460
  }
461
461
  function Yt(t, e, n) {
462
462
  if (J(t))
463
463
  return [];
464
464
  const o = Rt(t, e)[0];
465
- return wo(Ve(t, o, n));
465
+ return yo(Ve(t, o, n));
466
466
  }
467
467
  function Fe(t, e) {
468
468
  if (J(t))
469
- return se;
469
+ return re;
470
470
  const { k: n, l: o, r } = t;
471
471
  if (e === n) {
472
472
  if (J(o))
@@ -474,7 +474,7 @@ function Fe(t, e) {
474
474
  if (J(r))
475
475
  return o;
476
476
  const [s, i] = Pn(o);
477
- return Se(dt(t, { k: s, l: Vn(o), v: i }));
477
+ return Se(dt(t, { k: s, l: Wn(o), v: i }));
478
478
  }
479
479
  return e < n ? Se(dt(t, { l: Fe(o, e) })) : Se(dt(t, { r: Fe(r, e) }));
480
480
  }
@@ -494,7 +494,7 @@ function Se(t) {
494
494
  return t;
495
495
  if (n > o.lvl + 1) {
496
496
  if (Ee(e))
497
- return Gn(dt(t, { lvl: n - 1 }));
497
+ return An(dt(t, { lvl: n - 1 }));
498
498
  if (!J(e) && !J(e.r))
499
499
  return dt(e.r, {
500
500
  l: dt(e, { r: e.r.l }),
@@ -507,7 +507,7 @@ function Se(t) {
507
507
  throw new Error("Unexpected empty nodes");
508
508
  }
509
509
  if (Ee(t))
510
- return Pe(dt(t, { lvl: n - 1 }));
510
+ return We(dt(t, { lvl: n - 1 }));
511
511
  if (!J(o) && !J(o.l)) {
512
512
  const r = o.l, s = Ee(r) ? o.lvl - 1 : o.lvl;
513
513
  return dt(r, {
@@ -516,13 +516,13 @@ function Se(t) {
516
516
  r: r.l
517
517
  }),
518
518
  lvl: r.lvl + 1,
519
- r: Pe(dt(o, { l: r.r, lvl: s }))
519
+ r: We(dt(o, { l: r.r, lvl: s }))
520
520
  });
521
521
  }
522
522
  throw new Error("Unexpected empty nodes");
523
523
  }
524
524
  function dt(t, e) {
525
- return Wn(
525
+ return Gn(
526
526
  e.k !== void 0 ? e.k : t.k,
527
527
  e.v !== void 0 ? e.v : t.v,
528
528
  e.lvl !== void 0 ? e.lvl : t.lvl,
@@ -530,8 +530,8 @@ function dt(t, e) {
530
530
  e.r !== void 0 ? e.r : t.r
531
531
  );
532
532
  }
533
- function Vn(t) {
534
- return J(t.r) ? t.l : Se(dt(t, { r: Vn(t.r) }));
533
+ function Wn(t) {
534
+ return J(t.r) ? t.l : Se(dt(t, { r: Wn(t.r) }));
535
535
  }
536
536
  function Ee(t) {
537
537
  return J(t) || t.lvl > t.r.lvl;
@@ -539,27 +539,27 @@ function Ee(t) {
539
539
  function Pn(t) {
540
540
  return J(t.r) ? [t.k, t.v] : Pn(t.r);
541
541
  }
542
- function Wn(t, e, n, o = se, r = se) {
542
+ function Gn(t, e, n, o = re, r = re) {
543
543
  return { k: t, l: o, lvl: n, r, v: e };
544
544
  }
545
- function mn(t) {
546
- return Pe(Gn(t));
545
+ function pn(t) {
546
+ return We(An(t));
547
547
  }
548
- function Gn(t) {
548
+ function An(t) {
549
549
  const { l: e } = t;
550
550
  return !J(e) && e.lvl === t.lvl ? dt(e, { r: dt(t, { l: e.r }) }) : t;
551
551
  }
552
- function Pe(t) {
552
+ function We(t) {
553
553
  const { lvl: e, r: n } = t;
554
554
  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;
555
555
  }
556
- function wo(t) {
557
- return Fn(t, ({ k: e, v: n }) => ({ index: e, value: n }));
556
+ function yo(t) {
557
+ return Vn(t, ({ k: e, v: n }) => ({ index: e, value: n }));
558
558
  }
559
- function An(t, e) {
559
+ function Mn(t, e) {
560
560
  return !!(t && t.startIndex === e.startIndex && t.endIndex === e.endIndex);
561
561
  }
562
- function le(t, e) {
562
+ function ie(t, e) {
563
563
  return !!(t && t[0] === e[0] && t[1] === e[1]);
564
564
  }
565
565
  const De = j(
@@ -567,10 +567,10 @@ const De = j(
567
567
  [],
568
568
  { singleton: !0 }
569
569
  );
570
- function Mn(t, e, n) {
571
- return t[ve(t, e, n)];
570
+ function _n(t, e, n) {
571
+ return t[Te(t, e, n)];
572
572
  }
573
- function ve(t, e, n, o = 0) {
573
+ function Te(t, e, n, o = 0) {
574
574
  let r = t.length - 1;
575
575
  for (; o <= r; ) {
576
576
  const s = Math.floor((o + r) / 2), i = t[s], l = n(i, e);
@@ -588,20 +588,20 @@ function ve(t, e, n, o = 0) {
588
588
  }
589
589
  throw new Error(`Failed binary finding record in array - ${t.join(",")}, searched for ${e}`);
590
590
  }
591
- function yo(t, e, n, o) {
592
- const r = ve(t, e, o), s = ve(t, n, o, r);
591
+ function bo(t, e, n, o) {
592
+ const r = Te(t, e, o), s = Te(t, n, o, r);
593
593
  return t.slice(r, s + 1);
594
594
  }
595
595
  function Ht(t, e) {
596
596
  return Math.round(t.getBoundingClientRect()[e]);
597
597
  }
598
- function be(t) {
598
+ function ye(t) {
599
599
  return !J(t.groupOffsetTree);
600
600
  }
601
601
  function $e({ index: t }, e) {
602
602
  return e === t ? 0 : e < t ? -1 : 1;
603
603
  }
604
- function bo() {
604
+ function Ro() {
605
605
  return {
606
606
  groupIndices: [],
607
607
  groupOffsetTree: qt(),
@@ -612,7 +612,7 @@ function bo() {
612
612
  sizeTree: qt()
613
613
  };
614
614
  }
615
- function Ro(t, e) {
615
+ function Ho(t, e) {
616
616
  let n = J(t) ? 0 : 1 / 0;
617
617
  for (const o of e) {
618
618
  const { endIndex: r, size: s, startIndex: i } = o;
@@ -621,46 +621,46 @@ function Ro(t, e) {
621
621
  continue;
622
622
  }
623
623
  const l = Yt(t, i - 1, r + 1);
624
- if (l.some(zo(o)))
624
+ if (l.some(Fo(o)))
625
625
  continue;
626
626
  let c = !1, d = !1;
627
- for (const { end: m, start: x, value: p } of l)
628
- c ? (r >= x || s === p) && (t = Fe(t, x)) : (d = p !== s, c = !0), m > r && r >= x && p !== s && (t = Tt(t, r + 1, p));
627
+ for (const { end: m, start: S, value: p } of l)
628
+ c ? (r >= S || s === p) && (t = Fe(t, S)) : (d = p !== s, c = !0), m > r && r >= S && p !== s && (t = Tt(t, r + 1, p));
629
629
  d && (t = Tt(t, i, s));
630
630
  }
631
631
  return [t, n];
632
632
  }
633
- function Ho(t) {
633
+ function Eo(t) {
634
634
  return typeof t.groupIndex < "u";
635
635
  }
636
- function Eo({ offset: t }, e) {
636
+ function Bo({ offset: t }, e) {
637
637
  return e === t ? 0 : e < t ? -1 : 1;
638
638
  }
639
- function ce(t, e, n) {
639
+ function le(t, e, n) {
640
640
  if (e.length === 0)
641
641
  return 0;
642
- const { index: o, offset: r, size: s } = Mn(e, t, $e), i = t - o, l = s * i + (i - 1) * n + r;
642
+ const { index: o, offset: r, size: s } = _n(e, t, $e), i = t - o, l = s * i + (i - 1) * n + r;
643
643
  return l > 0 ? l + n : l;
644
644
  }
645
- function _n(t, e) {
646
- if (!be(e))
645
+ function Nn(t, e) {
646
+ if (!ye(e))
647
647
  return t;
648
648
  let n = 0;
649
649
  for (; e.groupIndices[n] <= t + n; )
650
650
  n++;
651
651
  return t + n;
652
652
  }
653
- function Nn(t, e, n) {
654
- if (Ho(t))
653
+ function Dn(t, e, n) {
654
+ if (Eo(t))
655
655
  return e.groupIndices[t.groupIndex] + 1;
656
656
  const o = t.index === "LAST" ? n : t.index;
657
- let r = _n(o, e);
657
+ let r = Nn(o, e);
658
658
  return r = Math.max(0, r, Math.min(n, r)), r;
659
659
  }
660
- function Bo(t, e, n, o = 0) {
661
- return o > 0 && (e = Math.max(e, Mn(t, o, $e).offset)), Fn(yo(t, e, n, Eo), Lo);
660
+ function Oo(t, e, n, o = 0) {
661
+ return o > 0 && (e = Math.max(e, _n(t, o, $e).offset)), Vn(bo(t, e, n, Bo), zo);
662
662
  }
663
- function Oo(t, [e, n, o, r]) {
663
+ function Lo(t, [e, n, o, r]) {
664
664
  e.length > 0 && o("received item sizes", e, ft.DEBUG);
665
665
  const s = t.sizeTree;
666
666
  let i = s, l = 0;
@@ -668,17 +668,17 @@ function Oo(t, [e, n, o, r]) {
668
668
  const p = e[0].size, T = e[1].size;
669
669
  i = n.reduce((w, R) => Tt(Tt(w, R, p), R + 1, T), i);
670
670
  } else
671
- [i, l] = Ro(i, e);
671
+ [i, l] = Ho(i, e);
672
672
  if (i === s)
673
673
  return t;
674
- const { lastIndex: c, lastOffset: d, lastSize: m, offsetTree: x } = We(t.offsetTree, l, i, r);
674
+ const { lastIndex: c, lastOffset: d, lastSize: m, offsetTree: S } = Pe(t.offsetTree, l, i, r);
675
675
  return {
676
676
  groupIndices: n,
677
- groupOffsetTree: n.reduce((p, T) => Tt(p, T, ce(T, x, r)), qt()),
677
+ groupOffsetTree: n.reduce((p, T) => Tt(p, T, le(T, S, r)), qt()),
678
678
  lastIndex: c,
679
679
  lastOffset: d,
680
680
  lastSize: m,
681
- offsetTree: x,
681
+ offsetTree: S,
682
682
  sizeTree: i
683
683
  };
684
684
  }
@@ -688,22 +688,22 @@ function ko(t) {
688
688
  return { endIndex: s !== void 0 ? s.k - 1 : 1 / 0, size: n, startIndex: e };
689
689
  });
690
690
  }
691
- function pn(t, e) {
691
+ function hn(t, e) {
692
692
  let n = 0, o = 0;
693
693
  for (; n < t; )
694
694
  n += e[o + 1] - e[o] - 1, o++;
695
695
  return o - (n === t ? 0 : 1);
696
696
  }
697
- function We(t, e, n, o) {
697
+ function Pe(t, e, n, o) {
698
698
  let r = t, s = 0, i = 0, l = 0, c = 0;
699
699
  if (e !== 0) {
700
- c = ve(r, e - 1, $e), l = r[c].offset;
700
+ c = Te(r, e - 1, $e), l = r[c].offset;
701
701
  const m = Rt(n, e - 1);
702
702
  s = m[0], i = m[1], r.length && r[c].size === Rt(n, e)[1] && (c -= 1), r = r.slice(0, c + 1);
703
703
  } else
704
704
  r = [];
705
705
  for (const { start: d, value: m } of Yt(n, e, 1 / 0)) {
706
- const x = d - s, p = x * i + l + x * o;
706
+ const S = d - s, p = S * i + l + S * o;
707
707
  r.push({
708
708
  index: d,
709
709
  offset: p,
@@ -717,25 +717,25 @@ function We(t, e, n, o) {
717
717
  offsetTree: r
718
718
  };
719
719
  }
720
- function Lo(t) {
720
+ function zo(t) {
721
721
  return { index: t.index, value: t };
722
722
  }
723
- function zo(t) {
723
+ function Fo(t) {
724
724
  const { endIndex: e, size: n, startIndex: o } = t;
725
725
  return (r) => r.start === o && (r.end === e || r.end === 1 / 0) && r.value === n;
726
726
  }
727
- const Fo = {
727
+ const Vo = {
728
728
  offsetHeight: "height",
729
729
  offsetWidth: "width"
730
- }, Lt = j(
730
+ }, kt = j(
731
731
  ([{ log: t }, { recalcInProgress: e }]) => {
732
- const n = U(), o = U(), r = ht(o, 0), s = U(), i = U(), l = v(0), c = v([]), d = v(void 0), m = v(void 0), x = v(void 0), p = v(void 0), T = v((u, g) => Ht(u, Fo[g])), w = v(void 0), R = v(0), h = bo(), f = ht(
733
- I(n, $(c, t, R), Ot(Oo, h), et()),
732
+ const n = U(), o = U(), r = ht(o, 0), s = U(), i = U(), l = v(0), c = v([]), d = v(void 0), m = v(void 0), S = v(void 0), p = v(void 0), T = v((u, g) => Ht(u, Vo[g])), w = v(void 0), R = v(0), h = Ro(), f = ht(
733
+ I(n, $(c, t, R), Ot(Lo, h), nt()),
734
734
  h
735
735
  ), a = ht(
736
736
  I(
737
737
  c,
738
- et(),
738
+ nt(),
739
739
  Ot((u, g) => ({ current: g, prev: u.current }), {
740
740
  current: [],
741
741
  prev: []
@@ -744,13 +744,13 @@ const Fo = {
744
744
  ),
745
745
  []
746
746
  );
747
- L(
747
+ k(
748
748
  I(
749
749
  c,
750
- W((u) => u.length > 0),
750
+ P((u) => u.length > 0),
751
751
  $(f, R),
752
752
  B(([u, g, C]) => {
753
- const z = u.reduce((O, V, N) => Tt(O, V, ce(V, g.offsetTree, C) || N), qt());
753
+ const z = u.reduce((O, V, N) => Tt(O, V, le(V, g.offsetTree, C) || N), qt());
754
754
  return {
755
755
  ...g,
756
756
  groupIndices: u,
@@ -759,11 +759,11 @@ const Fo = {
759
759
  })
760
760
  ),
761
761
  f
762
- ), L(
762
+ ), k(
763
763
  I(
764
764
  o,
765
765
  $(f),
766
- W(([u, { lastIndex: g }]) => u < g),
766
+ P(([u, { lastIndex: g }]) => u < g),
767
767
  B(([u, { lastIndex: g, lastSize: C }]) => [
768
768
  {
769
769
  endIndex: g,
@@ -773,20 +773,20 @@ const Fo = {
773
773
  ])
774
774
  ),
775
775
  n
776
- ), L(d, m);
777
- const S = ht(
776
+ ), k(d, m);
777
+ const x = ht(
778
778
  I(
779
779
  d,
780
780
  B((u) => u === void 0)
781
781
  ),
782
782
  !0
783
783
  );
784
- L(
784
+ k(
785
785
  I(
786
786
  m,
787
- W((u) => u !== void 0 && J(it(f).sizeTree)),
787
+ P((u) => u !== void 0 && J(it(f).sizeTree)),
788
788
  B((u) => {
789
- const g = it(x), C = it(c).length > 0;
789
+ const g = it(S), C = it(c).length > 0;
790
790
  return g !== void 0 && g !== 0 ? C ? [
791
791
  { endIndex: 0, size: g, startIndex: 0 },
792
792
  { endIndex: 1, size: u, startIndex: 1 }
@@ -794,10 +794,10 @@ const Fo = {
794
794
  })
795
795
  ),
796
796
  n
797
- ), L(
797
+ ), k(
798
798
  I(
799
799
  p,
800
- W((u) => u !== void 0 && u.length > 0 && J(it(f).sizeTree)),
800
+ P((u) => u !== void 0 && u.length > 0 && J(it(f).sizeTree)),
801
801
  B((u) => {
802
802
  const g = [];
803
803
  let C = u[0], z = 0;
@@ -817,11 +817,11 @@ const Fo = {
817
817
  })
818
818
  ),
819
819
  n
820
- ), L(
820
+ ), k(
821
821
  I(
822
822
  c,
823
- $(x, m),
824
- W(([, u, g]) => u !== void 0 && g !== void 0),
823
+ $(S, m),
824
+ P(([, u, g]) => u !== void 0 && g !== void 0),
825
825
  B(([u, g, C]) => {
826
826
  const z = [];
827
827
  for (let O = 0; O < u.length; O++) {
@@ -867,10 +867,10 @@ const Fo = {
867
867
  (u) => {
868
868
  const { groupIndices: g } = it(f);
869
869
  if (u > 0)
870
- _(e, !0), _(s, u + pn(u, g));
870
+ _(e, !0), _(s, u + hn(u, g));
871
871
  else if (u < 0) {
872
872
  const C = it(a);
873
- C.length > 0 && (u -= pn(-u, C)), _(i, u);
873
+ C.length > 0 && (u -= hn(-u, C)), _(i, u);
874
874
  }
875
875
  }
876
876
  ), Y(I(l, $(t)), ([u, g]) => {
@@ -881,14 +881,14 @@ const Fo = {
881
881
  );
882
882
  });
883
883
  const y = vt(s);
884
- L(
884
+ k(
885
885
  I(
886
886
  s,
887
887
  $(f),
888
888
  B(([u, g]) => {
889
889
  const C = g.groupIndices.length > 0, z = [], O = g.lastSize;
890
890
  if (C) {
891
- const V = ie(g.sizeTree, 0);
891
+ const V = se(g.sizeTree, 0);
892
892
  let N = 0, Z = 0;
893
893
  for (; N < u; ) {
894
894
  const q = g.groupIndices[Z], Q = g.groupIndices.length === Z + 1 ? 1 / 0 : g.groupIndices[Z + 1] - q - 1;
@@ -942,17 +942,17 @@ const Fo = {
942
942
  ),
943
943
  n
944
944
  );
945
- const k = vt(
945
+ const L = vt(
946
946
  I(
947
947
  i,
948
948
  $(f, R),
949
949
  B(([u, { offsetTree: g }, C]) => {
950
950
  const z = -u;
951
- return ce(z, g, C);
951
+ return le(z, g, C);
952
952
  })
953
953
  )
954
954
  );
955
- return L(
955
+ return k(
956
956
  I(
957
957
  i,
958
958
  $(f, R),
@@ -969,7 +969,7 @@ const Fo = {
969
969
  F++, Z += Q + 1;
970
970
  }
971
971
  if (V = _t(g.sizeTree).reduce((Q, { k: gt, v: ut }) => Tt(Q, Math.max(0, gt + u), ut), V), Z !== -u) {
972
- const Q = ie(g.sizeTree, mt);
972
+ const Q = se(g.sizeTree, mt);
973
973
  V = Tt(V, 0, Q);
974
974
  const gt = Rt(g.sizeTree, -u + 1)[1];
975
975
  V = Tt(V, 1, gt);
@@ -977,14 +977,14 @@ const Fo = {
977
977
  return {
978
978
  ...g,
979
979
  sizeTree: V,
980
- ...We(g.offsetTree, 0, V, C)
980
+ ...Pe(g.offsetTree, 0, V, C)
981
981
  };
982
982
  }
983
983
  const O = _t(g.sizeTree).reduce((V, { k: N, v: Z }) => Tt(V, Math.max(0, N + u), Z), qt());
984
984
  return {
985
985
  ...g,
986
986
  sizeTree: O,
987
- ...We(g.offsetTree, 0, O, C)
987
+ ...Pe(g.offsetTree, 0, O, C)
988
988
  };
989
989
  })
990
990
  ),
@@ -996,27 +996,27 @@ const Fo = {
996
996
  defaultItemSize: m,
997
997
  firstItemIndex: l,
998
998
  fixedItemSize: d,
999
- fixedGroupSize: x,
999
+ fixedGroupSize: S,
1000
1000
  gap: R,
1001
1001
  groupIndices: c,
1002
1002
  heightEstimates: p,
1003
1003
  itemSize: T,
1004
1004
  listRefresh: H,
1005
1005
  shiftWith: i,
1006
- shiftWithOffset: k,
1006
+ shiftWithOffset: L,
1007
1007
  sizeRanges: n,
1008
1008
  // output
1009
1009
  sizes: f,
1010
1010
  statefulTotalCount: r,
1011
1011
  totalCount: o,
1012
- trackItemSizes: S,
1012
+ trackItemSizes: x,
1013
1013
  unshiftWith: s
1014
1014
  };
1015
1015
  },
1016
- ot(Gt, De),
1016
+ rt(Gt, De),
1017
1017
  { singleton: !0 }
1018
1018
  );
1019
- function Vo(t) {
1019
+ function Wo(t) {
1020
1020
  return t.reduce(
1021
1021
  (e, n) => (e.groupIndices.push(e.totalCount), e.totalCount += n + 1, e),
1022
1022
  {
@@ -1025,54 +1025,54 @@ function Vo(t) {
1025
1025
  }
1026
1026
  );
1027
1027
  }
1028
- const Dn = j(
1028
+ const $n = j(
1029
1029
  ([{ groupIndices: t, sizes: e, totalCount: n }, { headerHeight: o, scrollTop: r }]) => {
1030
- const s = U(), i = U(), l = vt(I(s, B(Vo)));
1031
- return L(
1030
+ const s = U(), i = U(), l = vt(I(s, B(Wo)));
1031
+ return k(
1032
1032
  I(
1033
1033
  l,
1034
1034
  B((c) => c.totalCount)
1035
1035
  ),
1036
1036
  n
1037
- ), L(
1037
+ ), k(
1038
1038
  I(
1039
1039
  l,
1040
1040
  B((c) => c.groupIndices)
1041
1041
  ),
1042
1042
  t
1043
- ), L(
1043
+ ), k(
1044
1044
  I(
1045
1045
  at(r, e, o),
1046
- W(([c, d]) => be(d)),
1046
+ P(([c, d]) => ye(d)),
1047
1047
  B(([c, d, m]) => Rt(d.groupOffsetTree, Math.max(c - m, 0), "v")[0]),
1048
- et(),
1048
+ nt(),
1049
1049
  B((c) => [c])
1050
1050
  ),
1051
1051
  i
1052
1052
  ), { groupCounts: s, topItemsIndexes: i };
1053
1053
  },
1054
- ot(Lt, It)
1054
+ rt(kt, It)
1055
1055
  ), At = j(
1056
1056
  ([{ log: t }]) => {
1057
1057
  const e = v(!1), n = vt(
1058
1058
  I(
1059
1059
  e,
1060
- W((o) => o),
1061
- et()
1060
+ P((o) => o),
1061
+ nt()
1062
1062
  )
1063
1063
  );
1064
1064
  return Y(e, (o) => {
1065
1065
  o && it(t)("props updated", {}, ft.DEBUG);
1066
1066
  }), { didMount: n, propsReady: e };
1067
1067
  },
1068
- ot(Gt),
1068
+ rt(Gt),
1069
1069
  { singleton: !0 }
1070
1070
  ), Po = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
1071
- function $n(t) {
1071
+ function Un(t) {
1072
1072
  const e = typeof t == "number" ? { index: t } : t;
1073
1073
  return e.align || (e.align = "start"), (!e.behavior || !Po) && (e.behavior = "auto"), e.offset === void 0 && (e.offset = 0), e;
1074
1074
  }
1075
- const fe = j(
1075
+ const de = j(
1076
1076
  ([
1077
1077
  { gap: t, listRefresh: e, sizes: n, totalCount: o },
1078
1078
  {
@@ -1083,34 +1083,34 @@ const fe = j(
1083
1083
  scrollingInProgress: c,
1084
1084
  scrollTo: d,
1085
1085
  smoothScrollTargetReached: m,
1086
- viewportHeight: x
1086
+ viewportHeight: S
1087
1087
  },
1088
1088
  { log: p }
1089
1089
  ]) => {
1090
1090
  const T = U(), w = U(), R = v(0);
1091
1091
  let h = null, f = null, a = null;
1092
- function S() {
1092
+ function x() {
1093
1093
  h !== null && (h(), h = null), a !== null && (a(), a = null), f && (clearTimeout(f), f = null), _(c, !1);
1094
1094
  }
1095
- return L(
1095
+ return k(
1096
1096
  I(
1097
1097
  T,
1098
- $(n, x, o, R, l, i, p),
1098
+ $(n, S, o, R, l, i, p),
1099
1099
  $(t, s, r),
1100
1100
  B(
1101
1101
  ([
1102
- [H, y, k, u, g, C, z, O],
1102
+ [H, y, L, u, g, C, z, O],
1103
1103
  V,
1104
1104
  N,
1105
1105
  Z
1106
1106
  ]) => {
1107
- const F = $n(H), { align: mt, behavior: q, offset: Q } = F, gt = u - 1, ut = Nn(F, y, gt);
1108
- let xt = ce(ut, y.offsetTree, V) + C;
1109
- mt === "end" ? (xt += N + Rt(y.sizeTree, ut)[1] - k + Z, ut === gt && (xt += z)) : mt === "center" ? xt += (N + Rt(y.sizeTree, ut)[1] - k + Z) / 2 : xt -= g, Q !== void 0 && Q !== 0 && (xt += Q);
1107
+ const F = Un(H), { align: mt, behavior: q, offset: Q } = F, gt = u - 1, ut = Dn(F, y, gt);
1108
+ let St = le(ut, y.offsetTree, V) + C;
1109
+ mt === "end" ? (St += N + Rt(y.sizeTree, ut)[1] - L + Z, ut === gt && (St += z)) : mt === "center" ? St += (N + Rt(y.sizeTree, ut)[1] - L + Z) / 2 : St -= g, Q !== void 0 && Q !== 0 && (St += Q);
1110
1110
  const Ft = (pt) => {
1111
- S(), pt ? (O("retrying to scroll to", { location: H }, ft.DEBUG), _(T, H)) : (_(w, !0), O("list did not change, scroll successful", {}, ft.DEBUG));
1111
+ x(), pt ? (O("retrying to scroll to", { location: H }, ft.DEBUG), _(T, H)) : (_(w, !0), O("list did not change, scroll successful", {}, ft.DEBUG));
1112
1112
  };
1113
- if (S(), q === "smooth") {
1113
+ if (x(), q === "smooth") {
1114
1114
  let pt = !1;
1115
1115
  a = Y(e, (Kt) => {
1116
1116
  pt = pt || Kt;
@@ -1118,10 +1118,10 @@ const fe = j(
1118
1118
  Ft(pt);
1119
1119
  });
1120
1120
  } else
1121
- h = yt(I(e, Wo(150)), Ft);
1121
+ h = yt(I(e, Go(150)), Ft);
1122
1122
  return f = setTimeout(() => {
1123
- S();
1124
- }, 1200), _(c, !0), O("scrolling from index to", { behavior: q, index: ut, top: xt }, ft.DEBUG), { behavior: q, top: xt };
1123
+ x();
1124
+ }, 1200), _(c, !0), O("scrolling from index to", { behavior: q, index: ut, top: St }, ft.DEBUG), { behavior: q, top: St };
1125
1125
  }
1126
1126
  )
1127
1127
  ),
@@ -1132,10 +1132,10 @@ const fe = j(
1132
1132
  topListHeight: R
1133
1133
  };
1134
1134
  },
1135
- ot(Lt, It, Gt),
1135
+ rt(kt, It, Gt),
1136
1136
  { singleton: !0 }
1137
1137
  );
1138
- function Wo(t) {
1138
+ function Go(t) {
1139
1139
  return (e) => {
1140
1140
  const n = setTimeout(() => {
1141
1141
  e(!1);
@@ -1154,22 +1154,22 @@ function Ke(t, e) {
1154
1154
  const n = e - 1;
1155
1155
  return typeof t == "number" ? t : t.index === "LAST" ? n : t.index;
1156
1156
  }
1157
- const me = j(
1157
+ const fe = j(
1158
1158
  ([{ defaultItemSize: t, listRefresh: e, sizes: n }, { scrollTop: o }, { scrollTargetReached: r, scrollToIndex: s }, { didMount: i }]) => {
1159
1159
  const l = v(!0), c = v(0), d = v(!0);
1160
- return L(
1160
+ return k(
1161
1161
  I(
1162
1162
  i,
1163
1163
  $(c),
1164
- W(([m, x]) => x !== 0),
1164
+ P(([m, S]) => S !== 0),
1165
1165
  Bt(!1)
1166
1166
  ),
1167
1167
  l
1168
- ), L(
1168
+ ), k(
1169
1169
  I(
1170
1170
  i,
1171
1171
  $(c),
1172
- W(([m, x]) => x !== 0),
1172
+ P(([m, S]) => S !== 0),
1173
1173
  Bt(!1)
1174
1174
  ),
1175
1175
  d
@@ -1177,7 +1177,7 @@ const me = j(
1177
1177
  I(
1178
1178
  at(e, i),
1179
1179
  $(l, n, t, d),
1180
- W(([[, m], x, { sizeTree: p }, T, w]) => m && (!J(p) || Ae(T)) && !x && !w),
1180
+ P(([[, m], S, { sizeTree: p }, T, w]) => m && (!J(p) || Ae(T)) && !S && !w),
1181
1181
  $(c)
1182
1182
  ),
1183
1183
  ([, m]) => {
@@ -1195,13 +1195,13 @@ const me = j(
1195
1195
  scrolledToInitialItem: l
1196
1196
  };
1197
1197
  },
1198
- ot(Lt, It, fe, At),
1198
+ rt(kt, It, de, At),
1199
1199
  { singleton: !0 }
1200
1200
  );
1201
- function Un(t, e) {
1201
+ function Kn(t, e) {
1202
1202
  return Math.abs(t - e) < 1.01;
1203
1203
  }
1204
- const ue = "up", ne = "down", Go = "none", Ao = {
1204
+ const ce = "up", ee = "down", Ao = "none", Mo = {
1205
1205
  atBottom: !1,
1206
1206
  notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
1207
1207
  state: {
@@ -1210,31 +1210,31 @@ const ue = "up", ne = "down", Go = "none", Ao = {
1210
1210
  scrollTop: 0,
1211
1211
  viewportHeight: 0
1212
1212
  }
1213
- }, Mo = 0, pe = j(([{ footerHeight: t, headerHeight: e, scrollBy: n, scrollContainerState: o, scrollTop: r, viewportHeight: s }]) => {
1214
- const i = v(!1), l = v(!0), c = U(), d = U(), m = v(4), x = v(Mo), p = ht(
1213
+ }, _o = 0, me = j(([{ footerHeight: t, headerHeight: e, scrollBy: n, scrollContainerState: o, scrollTop: r, viewportHeight: s }]) => {
1214
+ const i = v(!1), l = v(!0), c = U(), d = U(), m = v(4), S = v(_o), p = ht(
1215
1215
  I(
1216
- ze(I(P(r), $t(1), Bt(!0)), I(P(r), $t(1), Bt(!1), dn(100))),
1217
- et()
1216
+ ze(I(W(r), $t(1), Bt(!0)), I(W(r), $t(1), Bt(!1), fn(100))),
1217
+ nt()
1218
1218
  ),
1219
1219
  !1
1220
1220
  ), T = ht(
1221
- I(ze(I(n, Bt(!0)), I(n, Bt(!1), dn(200))), et()),
1221
+ I(ze(I(n, Bt(!0)), I(n, Bt(!1), fn(200))), nt()),
1222
1222
  !1
1223
1223
  );
1224
- L(
1224
+ k(
1225
1225
  I(
1226
- at(P(r), P(x)),
1227
- B(([a, S]) => a <= S),
1228
- et()
1226
+ at(W(r), W(S)),
1227
+ B(([a, x]) => a <= x),
1228
+ nt()
1229
1229
  ),
1230
1230
  l
1231
- ), L(I(l, zt(50)), d);
1231
+ ), k(I(l, zt(50)), d);
1232
1232
  const w = vt(
1233
1233
  I(
1234
- at(o, P(s), P(e), P(t), P(m)),
1235
- Ot((a, [{ scrollHeight: S, scrollTop: H }, y, k, u, g]) => {
1236
- const C = H + y - S > -g, z = {
1237
- scrollHeight: S,
1234
+ at(o, W(s), W(e), W(t), W(m)),
1235
+ Ot((a, [{ scrollHeight: x, scrollTop: H }, y, L, u, g]) => {
1236
+ const C = H + y - x > -g, z = {
1237
+ scrollHeight: x,
1238
1238
  scrollTop: H,
1239
1239
  viewportHeight: y
1240
1240
  };
@@ -1253,79 +1253,79 @@ const ue = "up", ne = "down", Go = "none", Ao = {
1253
1253
  notAtBottomBecause: O,
1254
1254
  state: z
1255
1255
  };
1256
- }, Ao),
1257
- et((a, S) => a !== void 0 && a.atBottom === S.atBottom)
1256
+ }, Mo),
1257
+ nt((a, x) => a !== void 0 && a.atBottom === x.atBottom)
1258
1258
  )
1259
1259
  ), R = ht(
1260
1260
  I(
1261
1261
  o,
1262
1262
  Ot(
1263
- (a, { scrollHeight: S, scrollTop: H, viewportHeight: y }) => {
1264
- if (!Un(a.scrollHeight, S)) {
1265
- const k = S - (H + y) < 1;
1266
- return a.scrollTop !== H && k ? {
1263
+ (a, { scrollHeight: x, scrollTop: H, viewportHeight: y }) => {
1264
+ if (!Kn(a.scrollHeight, x)) {
1265
+ const L = x - (H + y) < 1;
1266
+ return a.scrollTop !== H && L ? {
1267
1267
  changed: !0,
1268
1268
  jump: a.scrollTop - H,
1269
- scrollHeight: S,
1269
+ scrollHeight: x,
1270
1270
  scrollTop: H
1271
1271
  } : {
1272
1272
  changed: !0,
1273
1273
  jump: 0,
1274
- scrollHeight: S,
1274
+ scrollHeight: x,
1275
1275
  scrollTop: H
1276
1276
  };
1277
1277
  }
1278
1278
  return {
1279
1279
  changed: !1,
1280
1280
  jump: 0,
1281
- scrollHeight: S,
1281
+ scrollHeight: x,
1282
1282
  scrollTop: H
1283
1283
  };
1284
1284
  },
1285
1285
  { changed: !1, jump: 0, scrollHeight: 0, scrollTop: 0 }
1286
1286
  ),
1287
- W((a) => a.changed),
1287
+ P((a) => a.changed),
1288
1288
  B((a) => a.jump)
1289
1289
  ),
1290
1290
  0
1291
1291
  );
1292
- L(
1292
+ k(
1293
1293
  I(
1294
1294
  w,
1295
1295
  B((a) => a.atBottom)
1296
1296
  ),
1297
1297
  i
1298
- ), L(I(i, zt(50)), c);
1299
- const h = v(ne);
1300
- L(
1298
+ ), k(I(i, zt(50)), c);
1299
+ const h = v(ee);
1300
+ k(
1301
1301
  I(
1302
1302
  o,
1303
1303
  B(({ scrollTop: a }) => a),
1304
- et(),
1304
+ nt(),
1305
1305
  Ot(
1306
- (a, S) => it(T) ? { direction: a.direction, prevScrollTop: S } : { direction: S < a.prevScrollTop ? ue : ne, prevScrollTop: S },
1307
- { direction: ne, prevScrollTop: 0 }
1306
+ (a, x) => it(T) ? { direction: a.direction, prevScrollTop: x } : { direction: x < a.prevScrollTop ? ce : ee, prevScrollTop: x },
1307
+ { direction: ee, prevScrollTop: 0 }
1308
1308
  ),
1309
1309
  B((a) => a.direction)
1310
1310
  ),
1311
1311
  h
1312
- ), L(I(o, zt(50), Bt(Go)), h);
1312
+ ), k(I(o, zt(50), Bt(Ao)), h);
1313
1313
  const f = v(0);
1314
- return L(
1314
+ return k(
1315
1315
  I(
1316
1316
  p,
1317
- W((a) => !a),
1317
+ P((a) => !a),
1318
1318
  Bt(0)
1319
1319
  ),
1320
1320
  f
1321
- ), L(
1321
+ ), k(
1322
1322
  I(
1323
1323
  r,
1324
1324
  zt(100),
1325
1325
  $(p),
1326
- W(([a, S]) => S),
1327
- Ot(([a, S], [H]) => [S, H], [0, 0]),
1328
- B(([a, S]) => S - a)
1326
+ P(([a, x]) => x),
1327
+ Ot(([a, x], [H]) => [x, H], [0, 0]),
1328
+ B(([a, x]) => x - a)
1329
1329
  ),
1330
1330
  f
1331
1331
  ), {
@@ -1333,7 +1333,7 @@ const ue = "up", ne = "down", Go = "none", Ao = {
1333
1333
  atBottomStateChange: c,
1334
1334
  atBottomThreshold: m,
1335
1335
  atTopStateChange: d,
1336
- atTopThreshold: x,
1336
+ atTopThreshold: S,
1337
1337
  isAtBottom: i,
1338
1338
  isAtTop: l,
1339
1339
  isScrolling: p,
@@ -1341,11 +1341,11 @@ const ue = "up", ne = "down", Go = "none", Ao = {
1341
1341
  scrollDirection: h,
1342
1342
  scrollVelocity: f
1343
1343
  };
1344
- }, ot(It)), ae = "top", de = "bottom", hn = "none";
1345
- function gn(t, e, n) {
1346
- 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;
1344
+ }, rt(It)), ue = "top", ae = "bottom", gn = "none";
1345
+ function In(t, e, n) {
1346
+ return typeof t == "number" ? n === ce && e === ue || n === ee && e === ae ? t : 0 : n === ce ? e === ue ? t.main : t.reverse : e === ae ? t.main : t.reverse;
1347
1347
  }
1348
- function In(t, e) {
1348
+ function Sn(t, e) {
1349
1349
  return typeof t == "number" ? t : t[e] ?? 0;
1350
1350
  }
1351
1351
  const je = j(
@@ -1353,39 +1353,39 @@ const je = j(
1353
1353
  const s = U(), i = v(0), l = v(0), c = v(0), d = ht(
1354
1354
  I(
1355
1355
  at(
1356
- P(o),
1357
- P(r),
1358
- P(n),
1359
- P(s, le),
1360
- P(c),
1361
- P(i),
1362
- P(e),
1363
- P(t),
1364
- P(l)
1356
+ W(o),
1357
+ W(r),
1358
+ W(n),
1359
+ W(s, ie),
1360
+ W(c),
1361
+ W(i),
1362
+ W(e),
1363
+ W(t),
1364
+ W(l)
1365
1365
  ),
1366
1366
  B(
1367
1367
  ([
1368
1368
  m,
1369
- x,
1369
+ S,
1370
1370
  p,
1371
1371
  [T, w],
1372
1372
  R,
1373
1373
  h,
1374
1374
  f,
1375
1375
  a,
1376
- S
1376
+ x
1377
1377
  ]) => {
1378
- const H = m - a, y = h + f, k = Math.max(p - H, 0);
1379
- let u = hn;
1380
- const g = In(S, ae), C = In(S, de);
1381
- return T -= a, T += p + f, w += p + f, w -= a, T > m + y - g && (u = ue), w < m - k + x + C && (u = ne), u !== hn ? [
1382
- Math.max(H - p - gn(R, ae, u) - g, 0),
1383
- H - k - f + x + gn(R, de, u) + C
1378
+ const H = m - a, y = h + f, L = Math.max(p - H, 0);
1379
+ let u = gn;
1380
+ const g = Sn(x, ue), C = Sn(x, ae);
1381
+ return T -= a, T += p + f, w += p + f, w -= a, T > m + y - g && (u = ce), w < m - L + S + C && (u = ee), u !== gn ? [
1382
+ Math.max(H - p - In(R, ue, u) - g, 0),
1383
+ H - L - f + S + In(R, ae, u) + C
1384
1384
  ] : null;
1385
1385
  }
1386
1386
  ),
1387
- W((m) => m !== null),
1388
- et(le)
1387
+ P((m) => m !== null),
1388
+ nt(ie)
1389
1389
  ),
1390
1390
  [0, 0]
1391
1391
  );
@@ -1399,12 +1399,12 @@ const je = j(
1399
1399
  visibleRange: d
1400
1400
  };
1401
1401
  },
1402
- ot(It),
1402
+ rt(It),
1403
1403
  { singleton: !0 }
1404
1404
  );
1405
- function _o(t, e, n) {
1406
- if (be(e)) {
1407
- const o = _n(t, e);
1405
+ function No(t, e, n) {
1406
+ if (ye(e)) {
1407
+ const o = Nn(t, e);
1408
1408
  return [
1409
1409
  { index: Rt(e.groupOffsetTree, o)[0], offset: 0, size: 0 },
1410
1410
  { data: n?.[0], index: o, offset: 0, size: 0 }
@@ -1423,7 +1423,7 @@ const Be = {
1423
1423
  topListHeight: 0,
1424
1424
  totalCount: 0
1425
1425
  };
1426
- function Te(t, e, n, o, r, s) {
1426
+ function xe(t, e, n, o, r, s) {
1427
1427
  const { lastIndex: i, lastOffset: l, lastSize: c } = r;
1428
1428
  let d = 0, m = 0;
1429
1429
  if (t.length > 0) {
@@ -1431,7 +1431,7 @@ function Te(t, e, n, o, r, s) {
1431
1431
  const R = t[t.length - 1];
1432
1432
  m = R.offset + R.size;
1433
1433
  }
1434
- const x = n - i, p = l + x * c + (x - 1) * o, T = d, w = p - m;
1434
+ const S = n - i, p = l + S * c + (S - 1) * o, T = d, w = p - m;
1435
1435
  return {
1436
1436
  bottom: m,
1437
1437
  firstItemIndex: s,
@@ -1444,7 +1444,7 @@ function Te(t, e, n, o, r, s) {
1444
1444
  totalCount: n
1445
1445
  };
1446
1446
  }
1447
- function Kn(t, e, n, o, r, s) {
1447
+ function jn(t, e, n, o, r, s) {
1448
1448
  let i = 0;
1449
1449
  if (n.groupIndices.length > 0)
1450
1450
  for (const m of n.groupIndices) {
@@ -1452,18 +1452,18 @@ function Kn(t, e, n, o, r, s) {
1452
1452
  break;
1453
1453
  i++;
1454
1454
  }
1455
- const l = t + i, c = Ke(e, l), d = Array.from({ length: l }).map((m, x) => ({
1456
- data: s[x + c],
1457
- index: x + c,
1455
+ const l = t + i, c = Ke(e, l), d = Array.from({ length: l }).map((m, S) => ({
1456
+ data: s[S + c],
1457
+ index: S + c,
1458
1458
  offset: 0,
1459
1459
  size: 0
1460
1460
  }));
1461
- return Te(d, [], l, r, n, o);
1461
+ return xe(d, [], l, r, n, o);
1462
1462
  }
1463
1463
  function xn(t, e, n) {
1464
1464
  if (t.length === 0)
1465
1465
  return [];
1466
- if (!be(e))
1466
+ if (!ye(e))
1467
1467
  return t.map((d) => ({ ...d, index: d.index + n, originalIndex: d.index }));
1468
1468
  const o = t[0].index, r = t[t.length - 1].index, s = [], i = Yt(e.groupOffsetTree, o, r);
1469
1469
  let l, c = 0;
@@ -1486,7 +1486,7 @@ function xn(t, e, n) {
1486
1486
  }
1487
1487
  return s;
1488
1488
  }
1489
- function Sn(t, e) {
1489
+ function Tn(t, e) {
1490
1490
  return t === void 0 ? 0 : typeof t == "number" ? t : t[e] ?? 0;
1491
1491
  }
1492
1492
  const Ut = j(
@@ -1495,30 +1495,30 @@ const Ut = j(
1495
1495
  s,
1496
1496
  { listBoundary: i, topListHeight: l, visibleRange: c },
1497
1497
  { initialTopMostItemIndex: d, scrolledToInitialItem: m },
1498
- { topListHeight: x },
1498
+ { topListHeight: S },
1499
1499
  p,
1500
1500
  { didMount: T },
1501
1501
  { recalcInProgress: w }
1502
1502
  ]) => {
1503
1503
  const R = v([]), h = v(0), f = U(), a = v(0);
1504
- L(s.topItemsIndexes, R);
1505
- const S = ht(
1504
+ k(s.topItemsIndexes, R);
1505
+ const x = ht(
1506
1506
  I(
1507
1507
  at(
1508
1508
  T,
1509
1509
  w,
1510
- P(c, le),
1511
- P(r),
1512
- P(o),
1513
- P(d),
1510
+ W(c, ie),
1511
+ W(r),
1512
+ W(o),
1513
+ W(d),
1514
1514
  m,
1515
- P(R),
1516
- P(e),
1517
- P(n),
1518
- P(a),
1515
+ W(R),
1516
+ W(e),
1517
+ W(n),
1518
+ W(a),
1519
1519
  t
1520
1520
  ),
1521
- W(([u, g, , C, , , , , , , , z]) => {
1521
+ P(([u, g, , C, , , , , , , , z]) => {
1522
1522
  const O = z !== void 0 && z.length !== C;
1523
1523
  return u && !g && !O;
1524
1524
  }),
@@ -1537,14 +1537,14 @@ const Ut = j(
1537
1537
  mt,
1538
1538
  q
1539
1539
  ]) => {
1540
- const Q = z, { offsetTree: gt, sizeTree: ut } = Q, xt = it(h);
1540
+ const Q = z, { offsetTree: gt, sizeTree: ut } = Q, St = it(h);
1541
1541
  if (C === 0)
1542
1542
  return { ...Be, totalCount: C };
1543
1543
  if (u === 0 && g === 0)
1544
- return xt === 0 ? { ...Be, totalCount: C } : Kn(xt, O, z, Z, F, q || []);
1544
+ return St === 0 ? { ...Be, totalCount: C } : jn(St, O, z, Z, F, q || []);
1545
1545
  if (J(ut))
1546
- return xt > 0 ? null : Te(
1547
- _o(Ke(O, C), Q, q),
1546
+ return St > 0 ? null : xe(
1547
+ No(Ke(O, C), Q, q),
1548
1548
  [],
1549
1549
  C,
1550
1550
  F,
@@ -1554,111 +1554,111 @@ const Ut = j(
1554
1554
  const Ft = [];
1555
1555
  if (N.length > 0) {
1556
1556
  const D = N[0], K = N[N.length - 1];
1557
- let rt = 0;
1557
+ let st = 0;
1558
1558
  for (const tt of Yt(ut, D, K)) {
1559
- const X = tt.value, lt = Math.max(tt.start, D), St = Math.min(tt.end, K);
1560
- for (let ct = lt; ct <= St; ct++)
1561
- Ft.push({ data: q?.[ct], index: ct, offset: rt, size: X }), rt += X;
1559
+ const X = tt.value, lt = Math.max(tt.start, D), xt = Math.min(tt.end, K);
1560
+ for (let ct = lt; ct <= xt; ct++)
1561
+ Ft.push({ data: q?.[ct], index: ct, offset: st, size: X }), st += X;
1562
1562
  }
1563
1563
  }
1564
1564
  if (!V)
1565
- return Te([], Ft, C, F, Q, Z);
1566
- const pt = N.length > 0 ? N[N.length - 1] + 1 : 0, Kt = Bo(gt, u, g, pt);
1565
+ return xe([], Ft, C, F, Q, Z);
1566
+ const pt = N.length > 0 ? N[N.length - 1] + 1 : 0, Kt = Oo(gt, u, g, pt);
1567
1567
  if (Kt.length === 0)
1568
1568
  return null;
1569
- const Qt = C - 1, Et = ye([], (D) => {
1569
+ const Jt = C - 1, Et = we([], (D) => {
1570
1570
  for (const K of Kt) {
1571
- const rt = K.value;
1572
- let tt = rt.offset, X = K.start;
1573
- const lt = rt.size;
1574
- if (rt.offset < u) {
1575
- X += Math.floor((u - rt.offset + F) / (lt + F));
1571
+ const st = K.value;
1572
+ let tt = st.offset, X = K.start;
1573
+ const lt = st.size;
1574
+ if (st.offset < u) {
1575
+ X += Math.floor((u - st.offset + F) / (lt + F));
1576
1576
  const ct = X - K.start;
1577
1577
  tt += ct * lt + ct * F;
1578
1578
  }
1579
1579
  X < pt && (tt += (pt - X) * lt, X = pt);
1580
- const St = Math.min(K.end, Qt);
1581
- for (let ct = X; ct <= St && !(tt >= g); ct++)
1580
+ const xt = Math.min(K.end, Jt);
1581
+ for (let ct = X; ct <= xt && !(tt >= g); ct++)
1582
1582
  D.push({ data: q?.[ct], index: ct, offset: tt, size: lt }), tt += lt + F;
1583
1583
  }
1584
- }), te = Sn(mt, ae), b = Sn(mt, de);
1585
- if (Et.length > 0 && (te > 0 || b > 0)) {
1584
+ }), Qt = Tn(mt, ue), b = Tn(mt, ae);
1585
+ if (Et.length > 0 && (Qt > 0 || b > 0)) {
1586
1586
  const D = Et[0], K = Et[Et.length - 1];
1587
- if (te > 0 && D.index > pt) {
1588
- const rt = Math.min(te, D.index - pt), tt = [];
1587
+ if (Qt > 0 && D.index > pt) {
1588
+ const st = Math.min(Qt, D.index - pt), tt = [];
1589
1589
  let X = D.offset;
1590
- for (let lt = D.index - 1; lt >= D.index - rt; lt--) {
1590
+ for (let lt = D.index - 1; lt >= D.index - st; lt--) {
1591
1591
  const ct = Yt(ut, lt, lt)[0]?.value ?? D.size;
1592
1592
  X -= ct + F, tt.unshift({ data: q?.[lt], index: lt, offset: X, size: ct });
1593
1593
  }
1594
1594
  Et.unshift(...tt);
1595
1595
  }
1596
- if (b > 0 && K.index < Qt) {
1597
- const rt = Math.min(b, Qt - K.index);
1596
+ if (b > 0 && K.index < Jt) {
1597
+ const st = Math.min(b, Jt - K.index);
1598
1598
  let tt = K.offset + K.size + F;
1599
- for (let X = K.index + 1; X <= K.index + rt; X++) {
1600
- const St = Yt(ut, X, X)[0]?.value ?? K.size;
1601
- Et.push({ data: q?.[X], index: X, offset: tt, size: St }), tt += St + F;
1599
+ for (let X = K.index + 1; X <= K.index + st; X++) {
1600
+ const xt = Yt(ut, X, X)[0]?.value ?? K.size;
1601
+ Et.push({ data: q?.[X], index: X, offset: tt, size: xt }), tt += xt + F;
1602
1602
  }
1603
1603
  }
1604
1604
  }
1605
- return Te(Et, Ft, C, F, Q, Z);
1605
+ return xe(Et, Ft, C, F, Q, Z);
1606
1606
  }
1607
1607
  ),
1608
1608
  //@ts-expect-error filter needs to be fixed
1609
- W((u) => u !== null),
1610
- et()
1609
+ P((u) => u !== null),
1610
+ nt()
1611
1611
  ),
1612
1612
  Be
1613
1613
  );
1614
- L(
1614
+ k(
1615
1615
  I(
1616
1616
  t,
1617
- W(Ae),
1617
+ P(Ae),
1618
1618
  B((u) => u?.length)
1619
1619
  ),
1620
1620
  r
1621
- ), L(
1621
+ ), k(
1622
1622
  I(
1623
- S,
1623
+ x,
1624
1624
  B((u) => u.topListHeight)
1625
1625
  ),
1626
- x
1627
- ), L(x, l), L(
1626
+ S
1627
+ ), k(S, l), k(
1628
1628
  I(
1629
- S,
1629
+ x,
1630
1630
  B((u) => [u.top, u.bottom])
1631
1631
  ),
1632
1632
  i
1633
- ), L(
1633
+ ), k(
1634
1634
  I(
1635
- S,
1635
+ x,
1636
1636
  B((u) => u.items)
1637
1637
  ),
1638
1638
  f
1639
1639
  );
1640
1640
  const H = vt(
1641
1641
  I(
1642
- S,
1643
- W(({ items: u }) => u.length > 0),
1642
+ x,
1643
+ P(({ items: u }) => u.length > 0),
1644
1644
  $(r, t),
1645
- W(([{ items: u }, g]) => u[u.length - 1].originalIndex === g - 1),
1645
+ P(([{ items: u }, g]) => u[u.length - 1].originalIndex === g - 1),
1646
1646
  B(([, u, g]) => [u - 1, g]),
1647
- et(le),
1647
+ nt(ie),
1648
1648
  B(([u]) => u)
1649
1649
  )
1650
1650
  ), y = vt(
1651
1651
  I(
1652
- S,
1652
+ x,
1653
1653
  zt(200),
1654
- W(({ items: u, topItems: g }) => u.length > 0 && u[0].originalIndex === g.length),
1654
+ P(({ items: u, topItems: g }) => u.length > 0 && u[0].originalIndex === g.length),
1655
1655
  B(({ items: u }) => u[0].index),
1656
- et()
1656
+ nt()
1657
1657
  )
1658
- ), k = vt(
1658
+ ), L = vt(
1659
1659
  I(
1660
- S,
1661
- W(({ items: u }) => u.length > 0),
1660
+ x,
1661
+ P(({ items: u }) => u.length > 0),
1662
1662
  B(({ items: u }) => {
1663
1663
  let g = 0, C = u.length - 1;
1664
1664
  for (; u[g].type === "group" && g < C; )
@@ -1670,93 +1670,93 @@ const Ut = j(
1670
1670
  startIndex: u[g].index
1671
1671
  };
1672
1672
  }),
1673
- et(An)
1673
+ nt(Mn)
1674
1674
  )
1675
1675
  );
1676
1676
  return {
1677
1677
  endReached: H,
1678
1678
  initialItemCount: h,
1679
1679
  itemsRendered: f,
1680
- listState: S,
1680
+ listState: x,
1681
1681
  minOverscanItemCount: a,
1682
- rangeChanged: k,
1682
+ rangeChanged: L,
1683
1683
  startReached: y,
1684
1684
  topItemsIndexes: R,
1685
1685
  ...p
1686
1686
  };
1687
1687
  },
1688
- ot(
1689
- Lt,
1690
- Dn,
1688
+ rt(
1689
+ kt,
1690
+ $n,
1691
1691
  je,
1692
- me,
1693
1692
  fe,
1694
- pe,
1693
+ de,
1694
+ me,
1695
1695
  At,
1696
1696
  De
1697
1697
  ),
1698
1698
  { singleton: !0 }
1699
- ), jn = j(
1699
+ ), qn = j(
1700
1700
  ([{ fixedFooterHeight: t, fixedHeaderHeight: e, footerHeight: n, headerHeight: o }, { listState: r }]) => {
1701
1701
  const s = U(), i = ht(
1702
1702
  I(
1703
1703
  at(n, t, o, e, r),
1704
- B(([l, c, d, m, x]) => l + c + d + m + x.offsetBottom + x.bottom)
1704
+ B(([l, c, d, m, S]) => l + c + d + m + S.offsetBottom + S.bottom)
1705
1705
  ),
1706
1706
  0
1707
1707
  );
1708
- return L(P(i), s), { totalListHeight: i, totalListHeightChanged: s };
1708
+ return k(W(i), s), { totalListHeight: i, totalListHeightChanged: s };
1709
1709
  },
1710
- ot(It, Ut),
1710
+ rt(It, Ut),
1711
1711
  { singleton: !0 }
1712
- ), No = j(
1712
+ ), Do = j(
1713
1713
  ([{ viewportHeight: t }, { totalListHeight: e }]) => {
1714
1714
  const n = v(!1), o = ht(
1715
1715
  I(
1716
1716
  at(n, t, e),
1717
- W(([r]) => r),
1717
+ P(([r]) => r),
1718
1718
  B(([, r, s]) => Math.max(0, r - s)),
1719
1719
  zt(0),
1720
- et()
1720
+ nt()
1721
1721
  ),
1722
1722
  0
1723
1723
  );
1724
1724
  return { alignToBottom: n, paddingTopAddition: o };
1725
1725
  },
1726
- ot(It, jn),
1726
+ rt(It, qn),
1727
1727
  { singleton: !0 }
1728
- ), qn = j(() => ({
1728
+ ), Yn = j(() => ({
1729
1729
  context: v(null)
1730
- })), Do = ({
1730
+ })), $o = ({
1731
1731
  itemBottom: t,
1732
1732
  itemTop: e,
1733
1733
  locationParams: { align: n, behavior: o, ...r },
1734
1734
  viewportBottom: s,
1735
1735
  viewportTop: i
1736
- }) => e < i ? { ...r, align: n ?? "start", ...o !== void 0 ? { behavior: o } : {} } : t > s ? { ...r, align: n ?? "end", ...o !== void 0 ? { behavior: o } : {} } : null, Yn = j(
1736
+ }) => e < i ? { ...r, align: n ?? "start", ...o !== void 0 ? { behavior: o } : {} } : t > s ? { ...r, align: n ?? "end", ...o !== void 0 ? { behavior: o } : {} } : null, Zn = j(
1737
1737
  ([
1738
1738
  { gap: t, sizes: e, totalCount: n },
1739
1739
  { fixedFooterHeight: o, fixedHeaderHeight: r, headerHeight: s, scrollingInProgress: i, scrollTop: l, viewportHeight: c },
1740
1740
  { scrollToIndex: d }
1741
1741
  ]) => {
1742
1742
  const m = U();
1743
- return L(
1743
+ return k(
1744
1744
  I(
1745
1745
  m,
1746
1746
  $(e, c, n, s, r, o, l),
1747
1747
  $(t),
1748
- B(([[x, p, T, w, R, h, f, a], S]) => {
1749
- const { calculateViewLocation: H = Do, done: y, ...k } = x, u = Nn(x, p, w - 1), g = ce(u, p.offsetTree, S) + R + h, C = g + Rt(p.sizeTree, u)[1], z = a + h, O = a + T - f, V = H({
1748
+ B(([[S, p, T, w, R, h, f, a], x]) => {
1749
+ const { calculateViewLocation: H = $o, done: y, ...L } = S, u = Dn(S, p, w - 1), g = le(u, p.offsetTree, x) + R + h, C = g + Rt(p.sizeTree, u)[1], z = a + h, O = a + T - f, V = H({
1750
1750
  itemBottom: C,
1751
1751
  itemTop: g,
1752
- locationParams: k,
1752
+ locationParams: L,
1753
1753
  viewportBottom: O,
1754
1754
  viewportTop: z
1755
1755
  });
1756
1756
  return V !== null ? y && yt(
1757
1757
  I(
1758
1758
  i,
1759
- W((N) => !N),
1759
+ P((N) => !N),
1760
1760
  // skips the initial publish of false, and the cleanup call.
1761
1761
  // but if scrollingInProgress is true, we skip the initial publish.
1762
1762
  $t(it(i) ? 1 : 2)
@@ -1764,20 +1764,20 @@ const Ut = j(
1764
1764
  y
1765
1765
  ) : y?.(), V;
1766
1766
  }),
1767
- W((x) => x !== null)
1767
+ P((S) => S !== null)
1768
1768
  ),
1769
1769
  d
1770
1770
  ), {
1771
1771
  scrollIntoView: m
1772
1772
  };
1773
1773
  },
1774
- ot(Lt, It, fe, Ut, Gt),
1774
+ rt(kt, It, de, Ut, Gt),
1775
1775
  { singleton: !0 }
1776
1776
  );
1777
- function Tn(t) {
1777
+ function vn(t) {
1778
1778
  return t === !1 ? !1 : t === "smooth" ? "smooth" : "auto";
1779
1779
  }
1780
- const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1780
+ const Uo = (t, e) => typeof t == "function" ? vn(t(e)) : e && vn(t), Ko = j(
1781
1781
  ([
1782
1782
  { listRefresh: t, totalCount: e, fixedItemSize: n, data: o },
1783
1783
  { atBottomState: r, isAtBottom: s },
@@ -1785,7 +1785,7 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1785
1785
  { scrolledToInitialItem: l },
1786
1786
  { didMount: c, propsReady: d },
1787
1787
  { log: m },
1788
- { scrollingInProgress: x },
1788
+ { scrollingInProgress: S },
1789
1789
  { context: p },
1790
1790
  { scrollIntoView: T }
1791
1791
  ]) => {
@@ -1800,37 +1800,37 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1800
1800
  }
1801
1801
  Y(
1802
1802
  I(
1803
- at(I(P(e), $t(1)), c),
1804
- $(P(w), s, l, x),
1805
- B(([[y, k], u, g, C, z]) => {
1806
- let O = k && C, V = "auto";
1807
- return O && (V = $o(u, g || z), O = O && V !== !1), { followOutputBehavior: V, shouldFollow: O, totalCount: y };
1803
+ at(I(W(e), $t(1)), c),
1804
+ $(W(w), s, l, S),
1805
+ B(([[y, L], u, g, C, z]) => {
1806
+ let O = L && C, V = "auto";
1807
+ return O && (V = Uo(u, g || z), O = O && V !== !1), { followOutputBehavior: V, shouldFollow: O, totalCount: y };
1808
1808
  }),
1809
- W(({ shouldFollow: y }) => y)
1809
+ P(({ shouldFollow: y }) => y)
1810
1810
  ),
1811
- ({ followOutputBehavior: y, totalCount: k }) => {
1811
+ ({ followOutputBehavior: y, totalCount: L }) => {
1812
1812
  h !== null && (h(), h = null), it(n) !== void 0 ? requestAnimationFrame(() => {
1813
- it(m)("following output to ", { totalCount: k }, ft.DEBUG), f(y);
1813
+ it(m)("following output to ", { totalCount: L }, ft.DEBUG), f(y);
1814
1814
  }) : h = yt(t, () => {
1815
- it(m)("following output to ", { totalCount: k }, ft.DEBUG), f(y), h = null;
1815
+ it(m)("following output to ", { totalCount: L }, ft.DEBUG), f(y), h = null;
1816
1816
  });
1817
1817
  }
1818
1818
  );
1819
1819
  function a(y) {
1820
- const k = yt(r, (u) => {
1820
+ const L = yt(r, (u) => {
1821
1821
  y && !u.atBottom && u.notAtBottomBecause === "SIZE_INCREASED" && h === null && (it(m)("scrolling to bottom due to increased size", {}, ft.DEBUG), f("auto"));
1822
1822
  });
1823
- setTimeout(k, 100);
1823
+ setTimeout(L, 100);
1824
1824
  }
1825
1825
  Y(
1826
1826
  I(
1827
- at(P(w), e, d),
1828
- W(([y, , k]) => y !== !1 && k),
1827
+ at(W(w), e, d),
1828
+ P(([y, , L]) => y !== !1 && L),
1829
1829
  Ot(
1830
- ({ value: y }, [, k]) => ({ refreshed: y === k, value: k }),
1830
+ ({ value: y }, [, L]) => ({ refreshed: y === L, value: L }),
1831
1831
  { refreshed: !1, value: 0 }
1832
1832
  ),
1833
- W(({ refreshed: y }) => y),
1833
+ P(({ refreshed: y }) => y),
1834
1834
  $(w, e)
1835
1835
  ),
1836
1836
  ([, y]) => {
@@ -1838,25 +1838,25 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1838
1838
  }
1839
1839
  ), Y(R, () => {
1840
1840
  a(it(w) !== !1);
1841
- }), Y(at(P(w), r), ([y, k]) => {
1842
- y !== !1 && !k.atBottom && k.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && f("auto");
1841
+ }), Y(at(W(w), r), ([y, L]) => {
1842
+ y !== !1 && !L.atBottom && L.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && f("auto");
1843
1843
  });
1844
- const S = v(null), H = U();
1845
- return L(
1844
+ const x = v(null), H = U();
1845
+ return k(
1846
1846
  ze(
1847
1847
  I(
1848
- P(o),
1848
+ W(o),
1849
1849
  B((y) => y?.length ?? 0)
1850
1850
  ),
1851
- I(P(e))
1851
+ I(W(e))
1852
1852
  ),
1853
1853
  H
1854
1854
  ), Y(
1855
1855
  I(
1856
1856
  at(I(H, $t(1)), c),
1857
- $(P(S), l, x, p),
1858
- B(([[y, k], u, g, C, z]) => k && g && u?.({ context: z, totalCount: y, scrollingInProgress: C })),
1859
- W((y) => !!y),
1857
+ $(W(x), l, S, p),
1858
+ B(([[y, L], u, g, C, z]) => L && g && u?.({ context: z, totalCount: y, scrollingInProgress: C })),
1859
+ P((y) => !!y),
1860
1860
  zt(0)
1861
1861
  ),
1862
1862
  (y) => {
@@ -1866,40 +1866,40 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1866
1866
  it(m)("scrolling into view", {}), _(T, y), h = null;
1867
1867
  });
1868
1868
  }
1869
- ), { autoscrollToBottom: R, followOutput: w, scrollIntoViewOnChange: S };
1869
+ ), { autoscrollToBottom: R, followOutput: w, scrollIntoViewOnChange: x };
1870
1870
  },
1871
- ot(
1872
- Lt,
1873
- pe,
1874
- fe,
1871
+ rt(
1872
+ kt,
1875
1873
  me,
1874
+ de,
1875
+ fe,
1876
1876
  At,
1877
1877
  Gt,
1878
1878
  It,
1879
- qn,
1880
- Yn
1879
+ Yn,
1880
+ Zn
1881
1881
  )
1882
- ), Ko = j(
1883
- ([{ data: t, firstItemIndex: e, gap: n, sizes: o }, { initialTopMostItemIndex: r }, { initialItemCount: s, listState: i }, { didMount: l }]) => (L(
1882
+ ), jo = j(
1883
+ ([{ data: t, firstItemIndex: e, gap: n, sizes: o }, { initialTopMostItemIndex: r }, { initialItemCount: s, listState: i }, { didMount: l }]) => (k(
1884
1884
  I(
1885
1885
  l,
1886
1886
  $(s),
1887
- W(([, c]) => c !== 0),
1887
+ P(([, c]) => c !== 0),
1888
1888
  $(r, o, e, n, t),
1889
- B(([[, c], d, m, x, p, T = []]) => Kn(c, d, m, x, p, T))
1889
+ B(([[, c], d, m, S, p, T = []]) => jn(c, d, m, S, p, T))
1890
1890
  ),
1891
1891
  i
1892
1892
  ), {}),
1893
- ot(Lt, me, Ut, At),
1893
+ rt(kt, fe, Ut, At),
1894
1894
  { singleton: !0 }
1895
- ), jo = j(
1895
+ ), qo = j(
1896
1896
  ([{ didMount: t }, { scrollTo: e }, { listState: n }]) => {
1897
1897
  const o = v(0);
1898
1898
  return Y(
1899
1899
  I(
1900
1900
  t,
1901
1901
  $(o),
1902
- W(([, r]) => r !== 0),
1902
+ P(([, r]) => r !== 0),
1903
1903
  B(([, r]) => ({ top: r }))
1904
1904
  ),
1905
1905
  (r) => {
@@ -1907,7 +1907,7 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1907
1907
  I(
1908
1908
  n,
1909
1909
  $t(1),
1910
- W((s) => s.items.length > 1)
1910
+ P((s) => s.items.length > 1)
1911
1911
  ),
1912
1912
  () => {
1913
1913
  requestAnimationFrame(() => {
@@ -1920,16 +1920,16 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1920
1920
  initialScrollTop: o
1921
1921
  };
1922
1922
  },
1923
- ot(At, It, Ut),
1923
+ rt(At, It, Ut),
1924
1924
  { singleton: !0 }
1925
- ), Zn = j(
1925
+ ), Xn = j(
1926
1926
  ([{ scrollVelocity: t }]) => {
1927
1927
  const e = v(!1), n = U(), o = v(!1);
1928
- return L(
1928
+ return k(
1929
1929
  I(
1930
1930
  t,
1931
1931
  $(o, e, n),
1932
- W(([r, s]) => s !== !1 && s !== void 0),
1932
+ P(([r, s]) => s !== !1 && s !== void 0),
1933
1933
  B(([r, s, i, l]) => {
1934
1934
  const { enter: c, exit: d } = s;
1935
1935
  if (i) {
@@ -1939,7 +1939,7 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1939
1939
  return !0;
1940
1940
  return i;
1941
1941
  }),
1942
- et()
1942
+ nt()
1943
1943
  ),
1944
1944
  e
1945
1945
  ), Y(
@@ -1949,11 +1949,11 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1949
1949
  }
1950
1950
  ), { isSeeking: e, scrollSeekConfiguration: o, scrollSeekRangeChanged: n, scrollVelocity: t };
1951
1951
  },
1952
- ot(pe),
1952
+ rt(me),
1953
1953
  { singleton: !0 }
1954
1954
  ), qe = j(([{ scrollContainerState: t, scrollTo: e }]) => {
1955
1955
  const n = U(), o = U(), r = U(), s = v(!1), i = v(void 0);
1956
- return L(
1956
+ return k(
1957
1957
  I(
1958
1958
  at(n, o),
1959
1959
  B(([{ scrollTop: l, viewportHeight: c }, { offsetTop: d, listHeight: m }]) => ({
@@ -1963,7 +1963,7 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1963
1963
  }))
1964
1964
  ),
1965
1965
  t
1966
- ), L(
1966
+ ), k(
1967
1967
  I(
1968
1968
  e,
1969
1969
  $(o),
@@ -1983,7 +1983,7 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1983
1983
  windowScrollTo: r,
1984
1984
  windowViewportRect: o
1985
1985
  };
1986
- }, ot(It)), qo = j(
1986
+ }, rt(It)), Yo = j(
1987
1987
  ([
1988
1988
  { sizeRanges: t, sizes: e },
1989
1989
  { headerHeight: n, scrollTop: o },
@@ -1991,22 +1991,22 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
1991
1991
  { didMount: s },
1992
1992
  { useWindowScroll: i, windowScrollContainerState: l, windowViewportRect: c }
1993
1993
  ]) => {
1994
- const d = U(), m = v(void 0), x = v(null), p = v(null);
1995
- return L(l, x), L(c, p), Y(
1994
+ const d = U(), m = v(void 0), S = v(null), p = v(null);
1995
+ return k(l, S), k(c, p), Y(
1996
1996
  I(
1997
1997
  d,
1998
- $(e, o, i, x, p, n)
1998
+ $(e, o, i, S, p, n)
1999
1999
  ),
2000
- ([T, w, R, h, f, a, S]) => {
2000
+ ([T, w, R, h, f, a, x]) => {
2001
2001
  const H = ko(w.sizeTree);
2002
- h && f !== null && a !== null && (R = f.scrollTop - a.offsetTop), R -= S, T({ ranges: H, scrollTop: R });
2002
+ h && f !== null && a !== null && (R = f.scrollTop - a.offsetTop), R -= x, T({ ranges: H, scrollTop: R });
2003
2003
  }
2004
- ), L(I(m, W(Ae), B(Yo)), r), L(
2004
+ ), k(I(m, P(Ae), B(Zo)), r), k(
2005
2005
  I(
2006
2006
  s,
2007
2007
  $(m),
2008
- W(([, T]) => T !== void 0),
2009
- et(),
2008
+ P(([, T]) => T !== void 0),
2009
+ nt(),
2010
2010
  B(([, T]) => T.ranges)
2011
2011
  ),
2012
2012
  t
@@ -2015,32 +2015,32 @@ const $o = (t, e) => typeof t == "function" ? Tn(t(e)) : e && Tn(t), Uo = j(
2015
2015
  restoreStateFrom: m
2016
2016
  };
2017
2017
  },
2018
- ot(Lt, It, me, At, qe)
2018
+ rt(kt, It, fe, At, qe)
2019
2019
  );
2020
- function Yo(t) {
2020
+ function Zo(t) {
2021
2021
  return { align: "start", index: 0, offset: t.scrollTop };
2022
2022
  }
2023
- const Zo = j(([{ topItemsIndexes: t }]) => {
2023
+ const Xo = j(([{ topItemsIndexes: t }]) => {
2024
2024
  const e = v(0);
2025
- return L(
2025
+ return k(
2026
2026
  I(
2027
2027
  e,
2028
- W((n) => n >= 0),
2028
+ P((n) => n >= 0),
2029
2029
  B((n) => Array.from({ length: n }).map((o, r) => r))
2030
2030
  ),
2031
2031
  t
2032
2032
  ), { topItemCount: e };
2033
- }, ot(Ut));
2034
- function Xn(t) {
2033
+ }, rt(Ut));
2034
+ function Jn(t) {
2035
2035
  let e = !1, n;
2036
2036
  return (() => (e || (e = !0, n = t()), n));
2037
2037
  }
2038
- const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Jo = j(
2038
+ const Jo = Jn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Qo = j(
2039
2039
  ([
2040
2040
  { deviation: t, scrollBy: e, scrollingInProgress: n, scrollTop: o },
2041
2041
  { isAtBottom: r, isScrolling: s, lastJumpDueToItemResize: i, scrollDirection: l },
2042
2042
  { listState: c },
2043
- { beforeUnshiftWith: d, gap: m, shiftWithOffset: x, sizes: p },
2043
+ { beforeUnshiftWith: d, gap: m, shiftWithOffset: S, sizes: p },
2044
2044
  { log: T },
2045
2045
  { recalcInProgress: w }
2046
2046
  ]) => {
@@ -2049,35 +2049,35 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2049
2049
  c,
2050
2050
  $(i),
2051
2051
  Ot(
2052
- ([, f, a, S], [{ bottom: H, items: y, offsetBottom: k, totalCount: u }, g]) => {
2053
- const C = H + k;
2052
+ ([, f, a, x], [{ bottom: H, items: y, offsetBottom: L, totalCount: u }, g]) => {
2053
+ const C = H + L;
2054
2054
  let z = 0;
2055
- return a === u && f.length > 0 && y.length > 0 && (y[0].originalIndex === 0 && f[0].originalIndex === 0 || (z = C - S, z !== 0 && (z += g))), [z, y, u, C];
2055
+ return a === u && f.length > 0 && y.length > 0 && (y[0].originalIndex === 0 && f[0].originalIndex === 0 || (z = C - x, z !== 0 && (z += g))), [z, y, u, C];
2056
2056
  },
2057
2057
  [0, [], 0, 0]
2058
2058
  ),
2059
- W(([f]) => f !== 0),
2059
+ P(([f]) => f !== 0),
2060
2060
  $(o, l, n, r, T, w),
2061
- W(([, f, a, S, , , H]) => !H && !S && f !== 0 && a === ue),
2061
+ P(([, f, a, x, , , H]) => !H && !x && f !== 0 && a === ce),
2062
2062
  B(([[f], , , , , a]) => (a("Upward scrolling compensation", { amount: f }, ft.DEBUG), f))
2063
2063
  )
2064
2064
  );
2065
2065
  function h(f) {
2066
2066
  f > 0 ? (_(e, { behavior: "auto", top: -f }), _(t, 0)) : (_(t, 0), _(e, { behavior: "auto", top: -f }));
2067
2067
  }
2068
- return Y(I(R, $(t, s)), ([f, a, S]) => {
2069
- S && Xo() ? _(t, a - f) : h(-f);
2068
+ return Y(I(R, $(t, s)), ([f, a, x]) => {
2069
+ x && Jo() ? _(t, a - f) : h(-f);
2070
2070
  }), Y(
2071
2071
  I(
2072
2072
  at(ht(s, !1), t, w),
2073
- W(([f, a, S]) => !f && !S && a !== 0),
2073
+ P(([f, a, x]) => !f && !x && a !== 0),
2074
2074
  B(([f, a]) => a),
2075
2075
  zt(1)
2076
2076
  ),
2077
2077
  h
2078
- ), L(
2078
+ ), k(
2079
2079
  I(
2080
- x,
2080
+ S,
2081
2081
  B((f) => ({ top: -f }))
2082
2082
  ),
2083
2083
  e
@@ -2085,19 +2085,19 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2085
2085
  I(
2086
2086
  d,
2087
2087
  $(p, m),
2088
- B(([f, { groupIndices: a, lastSize: S, sizeTree: H }, y]) => {
2089
- function k(O) {
2090
- return O * (S + y);
2088
+ B(([f, { groupIndices: a, lastSize: x, sizeTree: H }, y]) => {
2089
+ function L(O) {
2090
+ return O * (x + y);
2091
2091
  }
2092
2092
  if (a.length === 0)
2093
- return k(f);
2093
+ return L(f);
2094
2094
  let u = 0;
2095
- const g = ie(H, 0);
2095
+ const g = se(H, 0);
2096
2096
  let C = 0, z = 0;
2097
2097
  for (; C < f; ) {
2098
2098
  C++, u += g;
2099
2099
  let O = a.length === z + 1 ? 1 / 0 : a[z + 1] - a[z] - 1;
2100
- C + O > f && (u -= g, O = f - C + 1), C += O, u += k(O), z++;
2100
+ C + O > f && (u -= g, O = f - C + 1), C += O, u += L(O), z++;
2101
2101
  }
2102
2102
  return u;
2103
2103
  })
@@ -2111,8 +2111,8 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2111
2111
  }
2112
2112
  ), { deviation: t };
2113
2113
  },
2114
- ot(It, pe, Ut, Lt, Gt, De)
2115
- ), Qo = j(
2114
+ rt(It, me, Ut, kt, Gt, De)
2115
+ ), tr = j(
2116
2116
  ([
2117
2117
  t,
2118
2118
  e,
@@ -2138,20 +2138,20 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2138
2138
  ...d,
2139
2139
  ...m
2140
2140
  }),
2141
- ot(
2141
+ rt(
2142
2142
  je,
2143
- Ko,
2144
- At,
2145
- Zn,
2146
- jn,
2147
2143
  jo,
2148
- No,
2144
+ At,
2145
+ Xn,
2146
+ qn,
2147
+ qo,
2148
+ Do,
2149
2149
  qe,
2150
- Yn,
2150
+ Zn,
2151
2151
  Gt,
2152
- qn
2152
+ Yn
2153
2153
  )
2154
- ), Jn = j(
2154
+ ), Qn = j(
2155
2155
  ([
2156
2156
  {
2157
2157
  data: t,
@@ -2165,23 +2165,23 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2165
2165
  itemSize: c,
2166
2166
  sizeRanges: d,
2167
2167
  sizes: m,
2168
- statefulTotalCount: x,
2168
+ statefulTotalCount: S,
2169
2169
  totalCount: p,
2170
2170
  trackItemSizes: T
2171
2171
  },
2172
2172
  { initialItemFinalLocationReached: w, initialTopMostItemIndex: R, scrolledToInitialItem: h },
2173
2173
  f,
2174
2174
  a,
2175
- S,
2175
+ x,
2176
2176
  H,
2177
2177
  { scrollToIndex: y },
2178
- k,
2178
+ L,
2179
2179
  { topItemCount: u },
2180
2180
  { groupCounts: g },
2181
2181
  C
2182
2182
  ]) => {
2183
2183
  const { listState: z, minOverscanItemCount: O, topItemsIndexes: V, rangeChanged: N, ...Z } = H;
2184
- return L(N, C.scrollSeekRangeChanged), L(
2184
+ return k(N, C.scrollSeekRangeChanged), k(
2185
2185
  I(
2186
2186
  C.windowViewportRect,
2187
2187
  B((F) => F.visibleHeight)
@@ -2204,14 +2204,14 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2204
2204
  topItemsIndexes: V,
2205
2205
  // input
2206
2206
  totalCount: p,
2207
- ...S,
2207
+ ...x,
2208
2208
  groupIndices: i,
2209
2209
  itemSize: c,
2210
2210
  listState: z,
2211
2211
  minOverscanItemCount: O,
2212
2212
  scrollToIndex: y,
2213
2213
  // output
2214
- statefulTotalCount: x,
2214
+ statefulTotalCount: S,
2215
2215
  trackItemSizes: T,
2216
2216
  // exported from stateFlagsSystem
2217
2217
  rangeChanged: N,
@@ -2223,21 +2223,21 @@ const Xo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2223
2223
  ...a
2224
2224
  };
2225
2225
  },
2226
- ot(
2227
- Lt,
2228
- me,
2226
+ rt(
2227
+ kt,
2228
+ fe,
2229
2229
  It,
2230
- qo,
2231
- Uo,
2230
+ Yo,
2231
+ Ko,
2232
2232
  Ut,
2233
- fe,
2234
- Jo,
2235
- Zo,
2236
- Dn,
2237
- Qo
2233
+ de,
2234
+ Qo,
2235
+ Xo,
2236
+ $n,
2237
+ tr
2238
2238
  )
2239
2239
  );
2240
- function tr(t, e) {
2240
+ function er(t, e) {
2241
2241
  const n = {}, o = {};
2242
2242
  let r = 0;
2243
2243
  const s = t.length;
@@ -2247,102 +2247,102 @@ function tr(t, e) {
2247
2247
  Object.hasOwn(o, i) || (n[i] = e[i]);
2248
2248
  return n;
2249
2249
  }
2250
- const Ie = typeof document < "u" ? E.useLayoutEffect : E.useEffect;
2250
+ const ge = typeof document < "u" ? E.useLayoutEffect : E.useEffect;
2251
2251
  function Ye(t, e, n) {
2252
2252
  const o = Object.keys(e.required || {}), r = Object.keys(e.optional || {}), s = Object.keys(e.methods || {}), i = Object.keys(e.events || {}), l = E.createContext({});
2253
2253
  function c(f, a) {
2254
2254
  f.propsReady !== void 0 && _(f.propsReady, !1);
2255
- for (const S of o) {
2256
- const H = f[e.required[S]];
2257
- _(H, a[S]);
2255
+ for (const x of o) {
2256
+ const H = f[e.required[x]];
2257
+ _(H, a[x]);
2258
2258
  }
2259
- for (const S of r)
2260
- if (S in a) {
2261
- const H = f[e.optional[S]];
2262
- _(H, a[S]);
2259
+ for (const x of r)
2260
+ if (x in a) {
2261
+ const H = f[e.optional[x]];
2262
+ _(H, a[x]);
2263
2263
  }
2264
2264
  f.propsReady !== void 0 && _(f.propsReady, !0);
2265
2265
  }
2266
2266
  function d(f) {
2267
- return s.reduce((a, S) => (a[S] = (H) => {
2268
- const y = f[e.methods[S]];
2267
+ return s.reduce((a, x) => (a[x] = (H) => {
2268
+ const y = f[e.methods[x]];
2269
2269
  _(y, H);
2270
2270
  }, a), {});
2271
2271
  }
2272
2272
  function m(f) {
2273
- return i.reduce((a, S) => (a[S] = Io(f[e.events[S]]), a), {});
2273
+ return i.reduce((a, x) => (a[x] = So(f[e.events[x]]), a), {});
2274
2274
  }
2275
- const x = E.forwardRef(function(a, S) {
2276
- const { children: H, ...y } = a, [k] = E.useState(() => ye(So(t), (C) => {
2275
+ const S = E.forwardRef(function(a, x) {
2276
+ const { children: H, ...y } = a, [L] = E.useState(() => we(To(t), (C) => {
2277
2277
  c(C, y);
2278
- })), [u] = E.useState(an(m, k));
2279
- Ie(() => {
2278
+ })), [u] = E.useState(dn(m, L));
2279
+ ge(() => {
2280
2280
  for (const C of i)
2281
2281
  C in y && Y(u[C], y[C]);
2282
2282
  return () => {
2283
2283
  Object.values(u).map(Me);
2284
2284
  };
2285
- }, [y, u, k]), Ie(() => {
2286
- c(k, y);
2287
- }), E.useImperativeHandle(S, un(d(k)));
2285
+ }, [y, u, L]), ge(() => {
2286
+ c(L, y);
2287
+ }), E.useImperativeHandle(x, an(d(L)));
2288
2288
  const g = n;
2289
- return /* @__PURE__ */ G(l.Provider, { value: k, children: n !== void 0 ? /* @__PURE__ */ G(g, { ...tr([...o, ...r, ...i], y), children: H }) : H });
2289
+ return /* @__PURE__ */ G(l.Provider, { value: L, children: n !== void 0 ? /* @__PURE__ */ G(g, { ...er([...o, ...r, ...i], y), children: H }) : H });
2290
2290
  }), p = (f) => {
2291
2291
  const a = E.useContext(l);
2292
2292
  return E.useCallback(
2293
- (S) => {
2294
- _(a[f], S);
2293
+ (x) => {
2294
+ _(a[f], x);
2295
2295
  },
2296
2296
  [a, f]
2297
2297
  );
2298
2298
  }, T = (f) => {
2299
- const S = E.useContext(l)[f], H = E.useCallback(
2300
- (y) => Y(S, y),
2301
- [S]
2299
+ const x = E.useContext(l)[f], H = E.useCallback(
2300
+ (y) => Y(x, y),
2301
+ [x]
2302
2302
  );
2303
2303
  return E.useSyncExternalStore(
2304
2304
  H,
2305
- () => it(S),
2306
- () => it(S)
2305
+ () => it(x),
2306
+ () => it(x)
2307
2307
  );
2308
2308
  }, w = (f) => {
2309
- const S = E.useContext(l)[f], [H, y] = E.useState(an(it, S));
2310
- return Ie(
2311
- () => Y(S, (k) => {
2312
- k !== H && y(un(k));
2309
+ const x = E.useContext(l)[f], [H, y] = E.useState(dn(it, x));
2310
+ return ge(
2311
+ () => Y(x, (L) => {
2312
+ L !== H && y(an(L));
2313
2313
  }),
2314
- [S, H]
2314
+ [x, H]
2315
2315
  ), H;
2316
- }, R = E.version.startsWith("18") ? T : w;
2316
+ }, R = parseInt(E.version) >= 18 ? T : w;
2317
2317
  return {
2318
- Component: x,
2318
+ Component: S,
2319
2319
  useEmitter: (f, a) => {
2320
2320
  const H = E.useContext(l)[f];
2321
- Ie(() => Y(H, a), [a, H]);
2321
+ ge(() => Y(H, a), [a, H]);
2322
2322
  },
2323
2323
  useEmitterValue: R,
2324
2324
  usePublisher: p
2325
2325
  };
2326
2326
  }
2327
- const Re = E.createContext(void 0), Qn = E.createContext(void 0), Oe = "-webkit-sticky", vn = "sticky", Ze = Xn(() => {
2327
+ const be = E.createContext(void 0), to = E.createContext(void 0), Oe = "-webkit-sticky", Cn = "sticky", Ze = Jn(() => {
2328
2328
  if (typeof document > "u")
2329
- return vn;
2329
+ return Cn;
2330
2330
  const t = document.createElement("div");
2331
- return t.style.position = Oe, t.style.position === Oe ? Oe : vn;
2332
- }), to = typeof document < "u" ? E.useLayoutEffect : E.useEffect;
2333
- function ke(t) {
2331
+ return t.style.position = Oe, t.style.position === Oe ? Oe : Cn;
2332
+ }), eo = typeof document < "u" ? E.useLayoutEffect : E.useEffect;
2333
+ function Le(t) {
2334
2334
  return "self" in t;
2335
2335
  }
2336
- function er(t) {
2336
+ function nr(t) {
2337
2337
  return "body" in t;
2338
2338
  }
2339
- function eo(t, e, n, o = Xt, r, s) {
2339
+ function no(t, e, n, o = Xt, r, s) {
2340
2340
  const i = E.useRef(null), l = E.useRef(null), c = E.useRef(null), d = E.useCallback(
2341
2341
  (p) => {
2342
2342
  let T, w, R;
2343
2343
  const h = p.target;
2344
- if (er(h) || ke(h)) {
2345
- const a = ke(h) ? h : h.defaultView;
2344
+ if (nr(h) || Le(h)) {
2345
+ const a = Le(h) ? h : h.defaultView;
2346
2346
  R = s === !0 ? a.scrollX : a.scrollY, T = s === !0 ? a.document.documentElement.scrollWidth : a.document.documentElement.scrollHeight, w = s === !0 ? a.innerWidth : a.innerHeight;
2347
2347
  } else
2348
2348
  R = s === !0 ? h.scrollLeft : h.scrollTop, T = s === !0 ? h.scrollWidth : h.scrollHeight, w = s === !0 ? h.offsetWidth : h.offsetHeight;
@@ -2353,7 +2353,7 @@ function eo(t, e, n, o = Xt, r, s) {
2353
2353
  viewportHeight: w
2354
2354
  });
2355
2355
  };
2356
- p.suppressFlushSync === !0 ? f() : ao.flushSync(f), l.current !== null && (R === l.current || R <= 0 || R === T - w) && (l.current = null, e(!0), c.current && (clearTimeout(c.current), c.current = null));
2356
+ p.suppressFlushSync === !0 ? f() : fo.flushSync(f), l.current !== null && (R === l.current || R <= 0 || R === T - w) && (l.current = null, e(!0), c.current && (clearTimeout(c.current), c.current = null));
2357
2357
  },
2358
2358
  [t, e, s]
2359
2359
  );
@@ -2369,12 +2369,12 @@ function eo(t, e, n, o = Xt, r, s) {
2369
2369
  return;
2370
2370
  const w = p.behavior === "smooth";
2371
2371
  let R, h, f;
2372
- ke(T) ? (h = Math.max(
2372
+ Le(T) ? (h = Math.max(
2373
2373
  Ht(T.document.documentElement, s === !0 ? "width" : "height"),
2374
2374
  s === !0 ? T.document.documentElement.scrollWidth : T.document.documentElement.scrollHeight
2375
2375
  ), R = s === !0 ? T.innerWidth : T.innerHeight, f = s === !0 ? window.scrollX : window.scrollY) : (h = T[s === !0 ? "scrollWidth" : "scrollHeight"], R = Ht(T, s === !0 ? "width" : "height"), f = T[s === !0 ? "scrollLeft" : "scrollTop"]);
2376
2376
  const a = h - R;
2377
- if (p.top = Math.ceil(Math.max(Math.min(a, p.top), 0)), Un(R, h) || p.top === f) {
2377
+ if (p.top = Math.ceil(Math.max(Math.min(a, p.top), 0)), Kn(R, h) || p.top === f) {
2378
2378
  t({ scrollHeight: h, scrollTop: f, viewportHeight: R }), w && e(!0);
2379
2379
  return;
2380
2380
  }
@@ -2382,23 +2382,23 @@ function eo(t, e, n, o = Xt, r, s) {
2382
2382
  c.current = null, l.current = null, e(!0);
2383
2383
  }, 1e3)) : l.current = null, s === !0 && (p = { ...p.behavior !== void 0 ? { behavior: p.behavior } : {}, left: p.top }), T.scrollTo(p);
2384
2384
  }
2385
- function x(p) {
2385
+ function S(p) {
2386
2386
  s === !0 && (p = {
2387
2387
  ...p.behavior !== void 0 ? { behavior: p.behavior } : {},
2388
2388
  ...p.top !== void 0 ? { left: p.top } : {}
2389
2389
  }), i.current.scrollBy(p);
2390
2390
  }
2391
- return { scrollByCallback: x, scrollerRef: i, scrollToCallback: m };
2391
+ return { scrollByCallback: S, scrollerRef: i, scrollToCallback: m };
2392
2392
  }
2393
2393
  function Xe(t) {
2394
2394
  return t;
2395
2395
  }
2396
- const nr = /* @__PURE__ */ j(() => {
2396
+ const or = /* @__PURE__ */ j(() => {
2397
2397
  const t = v((l) => `Item ${l}`), e = v((l) => `Group ${l}`), n = v({}), o = v(Xe), r = v("div"), s = v(Xt), i = (l, c = null) => ht(
2398
2398
  I(
2399
2399
  n,
2400
2400
  B((d) => d[l]),
2401
- et()
2401
+ nt()
2402
2402
  ),
2403
2403
  c
2404
2404
  );
@@ -2419,11 +2419,11 @@ const nr = /* @__PURE__ */ j(() => {
2419
2419
  ScrollSeekPlaceholder: i("ScrollSeekPlaceholder"),
2420
2420
  TopItemListComponent: i("TopItemList")
2421
2421
  };
2422
- }), or = /* @__PURE__ */ j(
2422
+ }), rr = /* @__PURE__ */ j(
2423
2423
  ([t, e]) => ({ ...t, ...e }),
2424
- ot(Jn, nr)
2425
- ), rr = ({ height: t }) => /* @__PURE__ */ G("div", { style: { height: t } }), sr = { overflowAnchor: "none", position: Ze(), zIndex: 1 }, no = { overflowAnchor: "none" }, ir = { ...no, display: "inline-block", height: "100%" }, Cn = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2426
- 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"), x = A("groupContent"), p = A("trackItemSizes"), T = A("itemSize"), w = A("log"), R = Ct("gap"), h = A("horizontalDirection"), { callbackRef: f } = zn(
2424
+ rt(Qn, or)
2425
+ ), sr = ({ height: t }) => /* @__PURE__ */ G("div", { style: { height: t } }), ir = { overflowAnchor: "none", position: Ze(), zIndex: 1 }, oo = { overflowAnchor: "none" }, lr = { ...oo, display: "inline-block", height: "100%" }, wn = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2426
+ 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"), S = A("groupContent"), p = A("trackItemSizes"), T = A("itemSize"), w = A("log"), R = Ct("gap"), h = A("horizontalDirection"), { callbackRef: f } = Fn(
2427
2427
  o,
2428
2428
  T,
2429
2429
  p,
@@ -2433,11 +2433,11 @@ const nr = /* @__PURE__ */ j(() => {
2433
2433
  s,
2434
2434
  h,
2435
2435
  A("skipAnimationFrameInResizeObserver")
2436
- ), [a, S] = E.useState(0);
2437
- tn("deviation", (F) => {
2438
- a !== F && S(F);
2436
+ ), [a, x] = E.useState(0);
2437
+ en("deviation", (F) => {
2438
+ a !== F && x(F);
2439
2439
  });
2440
- const H = A("EmptyPlaceholder"), y = A("ScrollSeekPlaceholder") ?? rr, k = A("ListComponent"), u = A("ItemComponent"), g = A("GroupComponent"), C = A("computeItemKey"), z = A("isSeeking"), O = A("groupIndices").length > 0, V = A("alignToBottom"), N = A("initialItemFinalLocationReached"), Z = e ? {} : {
2440
+ const H = A("EmptyPlaceholder"), y = A("ScrollSeekPlaceholder") ?? sr, L = A("ListComponent"), u = A("ItemComponent"), g = A("GroupComponent"), C = A("computeItemKey"), z = A("isSeeking"), O = A("groupIndices").length > 0, V = A("alignToBottom"), N = A("initialItemFinalLocationReached"), Z = e ? {} : {
2441
2441
  boxSizing: "border-box",
2442
2442
  ...h ? {
2443
2443
  display: "inline-block",
@@ -2453,10 +2453,10 @@ const nr = /* @__PURE__ */ j(() => {
2453
2453
  },
2454
2454
  ...N ? {} : { visibility: "hidden" }
2455
2455
  };
2456
- return !e && n.totalCount === 0 && H !== null && H !== void 0 ? /* @__PURE__ */ G(H, { ...nt(H, m) }) : /* @__PURE__ */ G(
2457
- k,
2456
+ return !e && n.totalCount === 0 && H !== null && H !== void 0 ? /* @__PURE__ */ G(H, { ...ot(H, m) }) : /* @__PURE__ */ G(
2457
+ L,
2458
2458
  {
2459
- ...nt(k, m),
2459
+ ...ot(L, m),
2460
2460
  "data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
2461
2461
  ref: f,
2462
2462
  style: Z,
@@ -2465,7 +2465,7 @@ const nr = /* @__PURE__ */ j(() => {
2465
2465
  return z ? /* @__PURE__ */ Nt(
2466
2466
  y,
2467
2467
  {
2468
- ...nt(y, m),
2468
+ ...ot(y, m),
2469
2469
  height: F.size,
2470
2470
  index: F.index,
2471
2471
  key: q,
@@ -2475,62 +2475,66 @@ const nr = /* @__PURE__ */ j(() => {
2475
2475
  ) : F.type === "group" ? /* @__PURE__ */ Nt(
2476
2476
  g,
2477
2477
  {
2478
- ...nt(g, m),
2478
+ ...ot(g, m),
2479
2479
  "data-index": mt,
2480
2480
  "data-item-index": F.index,
2481
2481
  "data-known-size": F.size,
2482
2482
  key: q,
2483
- style: sr
2483
+ style: ir
2484
2484
  },
2485
- x(F.index, m)
2485
+ S(F.index, m)
2486
2486
  ) : /* @__PURE__ */ Nt(
2487
2487
  u,
2488
2488
  {
2489
- ...nt(u, m),
2490
- ...oo(u, F.data),
2489
+ ...ot(u, m),
2490
+ ...ro(u, F.data),
2491
2491
  "data-index": mt,
2492
2492
  "data-item-group-index": F.groupIndex,
2493
2493
  "data-item-index": F.index,
2494
2494
  "data-known-size": F.size,
2495
2495
  key: q,
2496
- style: h ? ir : no
2496
+ style: h ? lr : oo
2497
2497
  },
2498
2498
  O ? d(F.index, F.groupIndex, F.data, m) : d(F.index, F.data, m)
2499
2499
  );
2500
2500
  })
2501
2501
  }
2502
2502
  );
2503
- }), lr = {
2503
+ }), cr = {
2504
2504
  height: "100%",
2505
2505
  outline: "none",
2506
2506
  overflowY: "auto",
2507
2507
  position: "relative",
2508
2508
  WebkitOverflowScrolling: "touch"
2509
- }, cr = {
2509
+ }, ur = {
2510
2510
  outline: "none",
2511
2511
  overflowX: "auto",
2512
2512
  position: "relative"
2513
- }, Jt = (t) => ({
2513
+ }, Re = (t) => ({
2514
2514
  height: "100%",
2515
2515
  position: "absolute",
2516
2516
  top: 0,
2517
2517
  width: "100%",
2518
2518
  ...t ? { display: "flex", flexDirection: "column" } : void 0
2519
- }), ur = {
2519
+ }), Je = (t, e, n = 0) => ({
2520
+ ...Re(t),
2521
+ position: e ? "relative" : "absolute",
2522
+ top: e ? -n : 0
2523
+ }), ar = {
2520
2524
  position: Ze(),
2521
2525
  top: 0,
2522
2526
  width: "100%",
2523
2527
  zIndex: 1
2524
2528
  };
2525
- function nt(t, e) {
2529
+ function ot(t, e) {
2526
2530
  if (typeof t != "string")
2527
2531
  return { context: e };
2528
2532
  }
2529
- function oo(t, e) {
2533
+ function ro(t, e) {
2530
2534
  return { item: typeof t == "string" ? void 0 : e };
2531
2535
  }
2532
- const ar = /* @__PURE__ */ E.memo(function() {
2533
- const e = A("HeaderComponent"), n = Ct("headerHeight"), o = A("HeaderFooterTag"), r = kt(
2536
+ const dr = /* @__PURE__ */ E.memo(function() {
2537
+ const e = A("HeaderComponent"), n = Ct("headerHeight"), o = A("HeaderFooterTag"), r = Lt(
2534
2538
  E.useMemo(
2535
2539
  () => (i) => {
2536
2540
  n(Ht(i, "height"));
@@ -2540,9 +2544,9 @@ const ar = /* @__PURE__ */ E.memo(function() {
2540
2544
  !0,
2541
2545
  A("skipAnimationFrameInResizeObserver")
2542
2546
  ), s = A("context");
2543
- return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...nt(e, s) }) }) : null;
2544
- }), dr = /* @__PURE__ */ E.memo(function() {
2545
- const e = A("FooterComponent"), n = Ct("footerHeight"), o = A("HeaderFooterTag"), r = kt(
2547
+ return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...ot(e, s) }) }) : null;
2548
+ }), fr = /* @__PURE__ */ E.memo(function() {
2549
+ const e = A("FooterComponent"), n = Ct("footerHeight"), o = A("HeaderFooterTag"), r = Lt(
2546
2550
  E.useMemo(
2547
2551
  () => (i) => {
2548
2552
  n(Ht(i, "height"));
@@ -2552,13 +2556,13 @@ const ar = /* @__PURE__ */ E.memo(function() {
2552
2556
  !0,
2553
2557
  A("skipAnimationFrameInResizeObserver")
2554
2558
  ), s = A("context");
2555
- return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...nt(e, s) }) }) : null;
2559
+ return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...ot(e, s) }) }) : null;
2556
2560
  });
2557
- function Je({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2561
+ function Qe({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2558
2562
  return E.memo(function({ children: s, style: i, context: l, ...c }) {
2559
- const d = n("scrollContainerState"), m = e("ScrollerComponent"), x = n("smoothScrollTargetReached"), p = e("scrollerRef"), T = e("horizontalDirection") || !1, { scrollByCallback: w, scrollerRef: R, scrollToCallback: h } = eo(
2563
+ const d = n("scrollContainerState"), m = e("ScrollerComponent"), S = n("smoothScrollTargetReached"), p = e("scrollerRef"), T = e("horizontalDirection") || !1, { scrollByCallback: w, scrollerRef: R, scrollToCallback: h } = no(
2560
2564
  d,
2561
- x,
2565
+ S,
2562
2566
  m,
2563
2567
  p,
2564
2568
  void 0,
@@ -2570,76 +2574,76 @@ function Je({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2570
2574
  "data-testid": "virtuoso-scroller",
2571
2575
  "data-virtuoso-scroller": !0,
2572
2576
  ref: R,
2573
- style: { ...T ? cr : lr, ...i },
2577
+ style: { ...T ? ur : cr, ...i },
2574
2578
  tabIndex: 0,
2575
2579
  ...c,
2576
- ...nt(m, l),
2580
+ ...ot(m, l),
2577
2581
  children: s
2578
2582
  }
2579
2583
  );
2580
2584
  });
2581
2585
  }
2582
- function Qe({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2586
+ function tn({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2583
2587
  return E.memo(function({ children: s, style: i, context: l, ...c }) {
2584
- const d = n("windowScrollContainerState"), m = e("ScrollerComponent"), x = n("smoothScrollTargetReached"), p = e("totalListHeight"), T = e("deviation"), w = e("customScrollParent"), R = E.useRef(null), h = e("scrollerRef"), { scrollByCallback: f, scrollerRef: a, scrollToCallback: S } = eo(
2588
+ const d = n("windowScrollContainerState"), m = e("ScrollerComponent"), S = n("smoothScrollTargetReached"), p = e("totalListHeight"), T = e("deviation"), w = e("customScrollParent"), R = E.useRef(null), h = e("scrollerRef"), { scrollByCallback: f, scrollerRef: a, scrollToCallback: x } = no(
2585
2589
  d,
2586
- x,
2590
+ S,
2587
2591
  m,
2588
2592
  h,
2589
2593
  w
2590
2594
  );
2591
- return to(() => (a.current = w || R.current?.ownerDocument.defaultView, () => {
2595
+ return eo(() => (a.current = w || R.current?.ownerDocument.defaultView, () => {
2592
2596
  a.current = null;
2593
- }), [a, w]), t("windowScrollTo", S), t("scrollBy", f), /* @__PURE__ */ G(
2597
+ }), [a, w]), t("windowScrollTo", x), t("scrollBy", f), /* @__PURE__ */ G(
2594
2598
  m,
2595
2599
  {
2596
2600
  ref: R,
2597
2601
  "data-virtuoso-scroller": !0,
2598
2602
  style: { position: "relative", ...i, ...p !== 0 ? { height: p + T } : void 0 },
2599
2603
  ...c,
2600
- ...nt(m, l),
2604
+ ...ot(m, l),
2601
2605
  children: s
2602
2606
  }
2603
2607
  );
2604
2608
  });
2605
2609
  }
2606
- const fr = ({ children: t }) => {
2607
- const e = E.useContext(Re), n = Ct("viewportHeight"), o = Ct("fixedItemHeight"), r = A("alignToBottom"), s = A("horizontalDirection"), i = E.useMemo(
2608
- () => re(n, (c) => Ht(c, s ? "width" : "height")),
2610
+ const mr = ({ children: t }) => {
2611
+ const e = E.useContext(be), n = Ct("viewportHeight"), o = Ct("fixedItemHeight"), r = A("alignToBottom"), s = A("horizontalDirection"), i = E.useMemo(
2612
+ () => oe(n, (c) => Ht(c, s ? "width" : "height")),
2609
2613
  [n, s]
2610
- ), l = kt(i, !0, A("skipAnimationFrameInResizeObserver"));
2614
+ ), l = Lt(i, !0, A("skipAnimationFrameInResizeObserver"));
2611
2615
  return E.useEffect(() => {
2612
2616
  e && (n(e.viewportHeight), o(e.itemHeight));
2613
- }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "element", ref: l, style: Jt(r), children: t });
2614
- }, mr = ({ children: t }) => {
2615
- const e = E.useContext(Re), n = Ct("windowViewportRect"), o = Ct("fixedItemHeight"), r = A("customScrollParent"), s = Ne(
2617
+ }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "element", ref: l, style: Re(r), children: t });
2618
+ }, pr = ({ children: t }) => {
2619
+ const e = E.useContext(be), n = Ct("windowViewportRect"), o = Ct("fixedItemHeight"), r = A("customScrollParent"), s = A("useWindowScroll"), i = A("topListHeight"), l = Ne(
2616
2620
  n,
2617
2621
  r,
2618
2622
  A("skipAnimationFrameInResizeObserver")
2619
- ), i = A("alignToBottom");
2623
+ ), c = A("alignToBottom");
2620
2624
  return E.useEffect(() => {
2621
2625
  e && (o(e.itemHeight), n({ listHeight: 0, offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2622
- }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "window", ref: s, style: Jt(i), children: t });
2623
- }, pr = ({ children: t }) => {
2624
- const e = A("TopItemListComponent") ?? "div", n = A("headerHeight"), o = { ...ur, marginTop: `${n}px` }, r = A("context");
2625
- return /* @__PURE__ */ G(e, { style: o, ...nt(e, r), children: t });
2626
- }, hr = /* @__PURE__ */ E.memo(function(e) {
2626
+ }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "window", ref: l, style: Je(c, s, i), children: t });
2627
+ }, hr = ({ children: t }) => {
2628
+ const e = A("TopItemListComponent") ?? "div", n = A("headerHeight"), o = { ...ar, marginTop: `${n}px` }, r = A("context");
2629
+ return /* @__PURE__ */ G(e, { style: o, ...ot(e, r), children: t });
2630
+ }, gr = /* @__PURE__ */ E.memo(function(e) {
2627
2631
  const n = A("useWindowScroll"), o = A("topItemsIndexes").length > 0, r = A("customScrollParent"), s = A("context");
2628
- return /* @__PURE__ */ Dt(r || n ? Ir : gr, { ...e, context: s, children: [
2629
- o && /* @__PURE__ */ G(pr, { children: /* @__PURE__ */ G(Cn, { showTopList: !0 }) }),
2630
- /* @__PURE__ */ Dt(r || n ? mr : fr, { children: [
2631
- /* @__PURE__ */ G(ar, {}),
2632
- /* @__PURE__ */ G(Cn, {}),
2633
- /* @__PURE__ */ G(dr, {})
2632
+ return /* @__PURE__ */ Dt(r || n ? Sr : Ir, { ...e, context: s, children: [
2633
+ o && /* @__PURE__ */ G(hr, { children: /* @__PURE__ */ G(wn, { showTopList: !0 }) }),
2634
+ /* @__PURE__ */ Dt(r || n ? pr : mr, { children: [
2635
+ /* @__PURE__ */ G(dr, {}),
2636
+ /* @__PURE__ */ G(wn, {}),
2637
+ /* @__PURE__ */ G(fr, {})
2634
2638
  ] })
2635
2639
  ] });
2636
2640
  }), {
2637
- Component: ro,
2638
- useEmitter: tn,
2641
+ Component: so,
2642
+ useEmitter: en,
2639
2643
  useEmitterValue: A,
2640
2644
  usePublisher: Ct
2641
2645
  } = /* @__PURE__ */ Ye(
2642
- or,
2646
+ rr,
2643
2647
  {
2644
2648
  optional: {
2645
2649
  restoreStateFrom: "restoreStateFrom",
@@ -2699,8 +2703,8 @@ const fr = ({ children: t }) => {
2699
2703
  groupIndices: "groupIndices"
2700
2704
  }
2701
2705
  },
2702
- hr
2703
- ), gr = /* @__PURE__ */ Je({ useEmitter: tn, useEmitterValue: A, usePublisher: Ct }), Ir = /* @__PURE__ */ Qe({ useEmitter: tn, useEmitterValue: A, usePublisher: Ct }), qr = ro, Yr = ro, xr = /* @__PURE__ */ j(() => {
2706
+ gr
2707
+ ), Ir = /* @__PURE__ */ Qe({ useEmitter: en, useEmitterValue: A, usePublisher: Ct }), Sr = /* @__PURE__ */ tn({ useEmitter: en, useEmitterValue: A, usePublisher: Ct }), Yr = so, Zr = so, xr = /* @__PURE__ */ j(() => {
2704
2708
  const t = v((d) => /* @__PURE__ */ Dt("td", { children: [
2705
2709
  "Item $",
2706
2710
  d
@@ -2710,8 +2714,8 @@ const fr = ({ children: t }) => {
2710
2714
  ] })), o = v(null), r = v(null), s = v({}), i = v(Xe), l = v(Xt), c = (d, m = null) => ht(
2711
2715
  I(
2712
2716
  s,
2713
- B((x) => x[d]),
2714
- et()
2717
+ B((S) => S[d]),
2718
+ nt()
2715
2719
  ),
2716
2720
  m
2717
2721
  );
@@ -2735,17 +2739,17 @@ const fr = ({ children: t }) => {
2735
2739
  TableRowComponent: c("TableRow", "tr"),
2736
2740
  GroupComponent: c("Group", "tr")
2737
2741
  };
2738
- }), Sr = /* @__PURE__ */ j(
2742
+ }), Tr = /* @__PURE__ */ j(
2739
2743
  ([t, e]) => ({ ...t, ...e }),
2740
- ot(Jn, xr)
2741
- ), Tr = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { height: t } }) }), vr = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { border: 0, height: t, padding: 0 } }) }), Cr = { overflowAnchor: "none" }, wn = { position: Ze(), zIndex: 2, overflowAnchor: "none" }, yn = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2742
- 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"), x = M("ScrollSeekPlaceholder") ?? Tr, p = M("GroupComponent"), T = M("TableRowComponent"), w = (e ? n.topItems : []).reduce((h, f, a) => (a === 0 ? h.push(f.size) : h.push(h[a - 1] + f.size), h), []);
2744
+ rt(Qn, xr)
2745
+ ), vr = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { height: t } }) }), Cr = ({ height: t }) => /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", { style: { border: 0, height: t, padding: 0 } }) }), wr = { overflowAnchor: "none" }, yn = { position: Ze(), zIndex: 2, overflowAnchor: "none" }, bn = /* @__PURE__ */ E.memo(function({ showTopList: e = !1 }) {
2746
+ 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"), S = M("ScrollSeekPlaceholder") ?? vr, p = M("GroupComponent"), T = M("TableRowComponent"), w = (e ? n.topItems : []).reduce((h, f, a) => (a === 0 ? h.push(f.size) : h.push(h[a - 1] + f.size), h), []);
2743
2747
  return (e ? n.topItems : n.items).map((h) => {
2744
- const f = h.originalIndex, a = o(f + r, h.data, s), S = e ? f === 0 ? 0 : w[f - 1] : 0;
2748
+ const f = h.originalIndex, a = o(f + r, h.data, s), x = e ? f === 0 ? 0 : w[f - 1] : 0;
2745
2749
  return i ? /* @__PURE__ */ Nt(
2746
- x,
2750
+ S,
2747
2751
  {
2748
- ...nt(x, s),
2752
+ ...ot(S, s),
2749
2753
  height: h.size,
2750
2754
  index: h.index,
2751
2755
  key: a,
@@ -2754,13 +2758,13 @@ const fr = ({ children: t }) => {
2754
2758
  ) : h.type === "group" ? /* @__PURE__ */ Nt(
2755
2759
  p,
2756
2760
  {
2757
- ...nt(p, s),
2761
+ ...ot(p, s),
2758
2762
  "data-index": f,
2759
2763
  "data-item-index": h.index,
2760
2764
  "data-known-size": h.size,
2761
2765
  key: a,
2762
2766
  style: {
2763
- ...wn,
2767
+ ...yn,
2764
2768
  top: l
2765
2769
  }
2766
2770
  },
@@ -2768,76 +2772,76 @@ const fr = ({ children: t }) => {
2768
2772
  ) : /* @__PURE__ */ Nt(
2769
2773
  T,
2770
2774
  {
2771
- ...nt(T, s),
2772
- ...oo(T, h.data),
2775
+ ...ot(T, s),
2776
+ ...ro(T, h.data),
2773
2777
  "data-index": f,
2774
2778
  "data-item-index": h.index,
2775
2779
  "data-known-size": h.size,
2776
2780
  "data-item-group-index": h.groupIndex,
2777
2781
  key: a,
2778
- style: e ? { ...wn, top: l + S } : Cr
2782
+ style: e ? { ...yn, top: l + x } : wr
2779
2783
  },
2780
2784
  c ? d(h.index, h.groupIndex, h.data, s) : d(h.index, h.data, s)
2781
2785
  );
2782
2786
  });
2783
- }), wr = /* @__PURE__ */ E.memo(function() {
2784
- 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"), x = M("log"), { callbackRef: p, ref: T } = zn(
2787
+ }), yr = /* @__PURE__ */ E.memo(function() {
2788
+ 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"), S = M("log"), { callbackRef: p, ref: T } = Fn(
2785
2789
  o,
2786
2790
  m,
2787
2791
  d,
2788
2792
  c,
2789
- x,
2793
+ S,
2790
2794
  void 0,
2791
2795
  s,
2792
2796
  !1,
2793
2797
  M("skipAnimationFrameInResizeObserver")
2794
2798
  ), [w, R] = E.useState(0);
2795
- en("deviation", (O) => {
2799
+ nn("deviation", (O) => {
2796
2800
  w !== O && (T.current.style.marginTop = `${O}px`, R(O));
2797
2801
  });
2798
- const h = M("EmptyPlaceholder"), f = M("FillerRow") ?? vr, a = M("TableBodyComponent"), S = M("paddingTopAddition"), H = M("statefulTotalCount"), y = M("context");
2802
+ const h = M("EmptyPlaceholder"), f = M("FillerRow") ?? Cr, a = M("TableBodyComponent"), x = M("paddingTopAddition"), H = M("statefulTotalCount"), y = M("context");
2799
2803
  if (H === 0 && h !== null && h !== void 0)
2800
- return /* @__PURE__ */ G(h, { ...nt(h, y) });
2801
- const k = (n ? e.topItems : []).reduce((O, V) => O + V.size, 0), u = e.offsetTop + S + w - k, g = e.offsetBottom, C = u > 0 ? /* @__PURE__ */ G(f, { context: y, height: u }, "padding-top") : null, z = g > 0 ? /* @__PURE__ */ G(f, { context: y, height: g }, "padding-bottom") : null;
2802
- return /* @__PURE__ */ Dt(a, { "data-testid": "virtuoso-item-list", ref: p, ...nt(a, y), children: [
2804
+ return /* @__PURE__ */ G(h, { ...ot(h, y) });
2805
+ const L = (n ? e.topItems : []).reduce((O, V) => O + V.size, 0), u = e.offsetTop + x + w - L, g = e.offsetBottom, C = u > 0 ? /* @__PURE__ */ G(f, { context: y, height: u }, "padding-top") : null, z = g > 0 ? /* @__PURE__ */ G(f, { context: y, height: g }, "padding-bottom") : null;
2806
+ return /* @__PURE__ */ Dt(a, { "data-testid": "virtuoso-item-list", ref: p, ...ot(a, y), children: [
2803
2807
  C,
2804
- n && /* @__PURE__ */ G(yn, { showTopList: !0 }),
2805
- /* @__PURE__ */ G(yn, {}),
2808
+ n && /* @__PURE__ */ G(bn, { showTopList: !0 }),
2809
+ /* @__PURE__ */ G(bn, {}),
2806
2810
  z
2807
2811
  ] });
2808
- }), yr = ({ children: t }) => {
2809
- const e = E.useContext(Re), n = bt("viewportHeight"), o = bt("fixedItemHeight"), r = kt(
2810
- E.useMemo(() => re(n, (s) => Ht(s, "height")), [n]),
2812
+ }), br = ({ children: t }) => {
2813
+ const e = E.useContext(be), n = bt("viewportHeight"), o = bt("fixedItemHeight"), r = Lt(
2814
+ E.useMemo(() => oe(n, (s) => Ht(s, "height")), [n]),
2811
2815
  !0,
2812
2816
  M("skipAnimationFrameInResizeObserver")
2813
2817
  );
2814
2818
  return E.useEffect(() => {
2815
2819
  e && (n(e.viewportHeight), o(e.itemHeight));
2816
- }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "element", ref: r, style: Jt(!1), children: t });
2817
- }, br = ({ children: t }) => {
2818
- const e = E.useContext(Re), n = bt("windowViewportRect"), o = bt("fixedItemHeight"), r = M("customScrollParent"), s = Ne(
2820
+ }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "element", ref: r, style: Re(!1), children: t });
2821
+ }, Rr = ({ children: t }) => {
2822
+ const e = E.useContext(be), n = bt("windowViewportRect"), o = bt("fixedItemHeight"), r = M("customScrollParent"), s = M("useWindowScroll"), i = Ne(
2819
2823
  n,
2820
2824
  r,
2821
2825
  M("skipAnimationFrameInResizeObserver")
2822
2826
  );
2823
2827
  return E.useEffect(() => {
2824
2828
  e && (o(e.itemHeight), n({ listHeight: 0, offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2825
- }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "window", ref: s, style: Jt(!1), children: t });
2826
- }, Rr = /* @__PURE__ */ E.memo(function(e) {
2827
- const n = M("useWindowScroll"), o = M("customScrollParent"), r = bt("fixedHeaderHeight"), s = bt("fixedFooterHeight"), i = M("fixedHeaderContent"), l = M("fixedFooterContent"), c = M("context"), d = kt(
2828
- E.useMemo(() => re(r, (a) => Ht(a, "height")), [r]),
2829
+ }, [e, n, o]), /* @__PURE__ */ G("div", { "data-viewport-type": "window", ref: i, style: Je(!1, s), children: t });
2830
+ }, Hr = /* @__PURE__ */ E.memo(function(e) {
2831
+ const n = M("useWindowScroll"), o = M("customScrollParent"), r = bt("fixedHeaderHeight"), s = bt("fixedFooterHeight"), i = M("fixedHeaderContent"), l = M("fixedFooterContent"), c = M("context"), d = Lt(
2832
+ E.useMemo(() => oe(r, (a) => Ht(a, "height")), [r]),
2829
2833
  !0,
2830
2834
  M("skipAnimationFrameInResizeObserver")
2831
- ), m = kt(
2832
- E.useMemo(() => re(s, (a) => Ht(a, "height")), [s]),
2835
+ ), m = Lt(
2836
+ E.useMemo(() => oe(s, (a) => Ht(a, "height")), [s]),
2833
2837
  !0,
2834
2838
  M("skipAnimationFrameInResizeObserver")
2835
- ), x = o || n ? Er : Hr, p = o || n ? br : yr, T = M("TableComponent"), w = M("TableHeadComponent"), R = M("TableFooterComponent"), h = i ? /* @__PURE__ */ G(
2839
+ ), S = o || n ? Br : Er, p = o || n ? Rr : br, T = M("TableComponent"), w = M("TableHeadComponent"), R = M("TableFooterComponent"), h = i ? /* @__PURE__ */ G(
2836
2840
  w,
2837
2841
  {
2838
2842
  ref: d,
2839
2843
  style: { position: "sticky", top: 0, zIndex: 2 },
2840
- ...nt(w, c),
2844
+ ...ot(w, c),
2841
2845
  children: i()
2842
2846
  },
2843
2847
  "TableHead"
@@ -2846,23 +2850,23 @@ const fr = ({ children: t }) => {
2846
2850
  {
2847
2851
  ref: m,
2848
2852
  style: { bottom: 0, position: "sticky", zIndex: 1 },
2849
- ...nt(R, c),
2853
+ ...ot(R, c),
2850
2854
  children: l()
2851
2855
  },
2852
2856
  "TableFoot"
2853
2857
  ) : null;
2854
- return /* @__PURE__ */ G(x, { ...e, ...nt(x, c), children: /* @__PURE__ */ G(p, { children: /* @__PURE__ */ Dt(T, { style: { borderSpacing: 0, overflowAnchor: "none" }, ...nt(T, c), children: [
2858
+ return /* @__PURE__ */ G(S, { ...e, ...ot(S, c), children: /* @__PURE__ */ G(p, { children: /* @__PURE__ */ Dt(T, { style: { borderSpacing: 0, overflowAnchor: "none" }, ...ot(T, c), children: [
2855
2859
  h,
2856
- /* @__PURE__ */ G(wr, {}, "TableBody"),
2860
+ /* @__PURE__ */ G(yr, {}, "TableBody"),
2857
2861
  f
2858
2862
  ] }) }) });
2859
2863
  }), {
2860
- Component: so,
2861
- useEmitter: en,
2864
+ Component: io,
2865
+ useEmitter: nn,
2862
2866
  useEmitterValue: M,
2863
2867
  usePublisher: bt
2864
2868
  } = /* @__PURE__ */ Ye(
2865
- Sr,
2869
+ Tr,
2866
2870
  {
2867
2871
  optional: {
2868
2872
  restoreStateFrom: "restoreStateFrom",
@@ -2918,8 +2922,8 @@ const fr = ({ children: t }) => {
2918
2922
  groupIndices: "groupIndices"
2919
2923
  }
2920
2924
  },
2921
- Rr
2922
- ), Hr = /* @__PURE__ */ Je({ useEmitter: en, useEmitterValue: M, usePublisher: bt }), Er = /* @__PURE__ */ Qe({ useEmitter: en, useEmitterValue: M, usePublisher: bt }), Zr = so, Xr = so, bn = {
2925
+ Hr
2926
+ ), Er = /* @__PURE__ */ Qe({ useEmitter: nn, useEmitterValue: M, usePublisher: bt }), Br = /* @__PURE__ */ tn({ useEmitter: nn, useEmitterValue: M, usePublisher: bt }), Xr = io, Jr = io, Rn = {
2923
2927
  bottom: 0,
2924
2928
  itemHeight: 0,
2925
2929
  items: [],
@@ -2927,7 +2931,7 @@ const fr = ({ children: t }) => {
2927
2931
  offsetBottom: 0,
2928
2932
  offsetTop: 0,
2929
2933
  top: 0
2930
- }, Br = {
2934
+ }, Or = {
2931
2935
  bottom: 0,
2932
2936
  itemHeight: 0,
2933
2937
  items: [{ index: 0 }],
@@ -2935,58 +2939,58 @@ const fr = ({ children: t }) => {
2935
2939
  offsetBottom: 0,
2936
2940
  offsetTop: 0,
2937
2941
  top: 0
2938
- }, { ceil: Rn, floor: Ce, max: oe, min: Le, round: Hn } = Math;
2939
- function En(t, e, n) {
2942
+ }, { ceil: Hn, floor: ve, max: ne, min: ke, round: En } = Math;
2943
+ function Bn(t, e, n) {
2940
2944
  return Array.from({ length: e - t + 1 }).map((o, r) => ({ data: n === null ? null : n[r + t], index: r + t }));
2941
2945
  }
2942
- function Or(t) {
2946
+ function Lr(t) {
2943
2947
  return {
2944
- ...Br,
2948
+ ...Or,
2945
2949
  items: t
2946
2950
  };
2947
2951
  }
2948
- function xe(t, e) {
2952
+ function Ie(t, e) {
2949
2953
  return t !== void 0 && t.width === e.width && t.height === e.height;
2950
2954
  }
2951
2955
  function kr(t, e) {
2952
2956
  return t !== void 0 && t.column === e.column && t.row === e.row;
2953
2957
  }
2954
- const Lr = /* @__PURE__ */ j(
2958
+ const zr = /* @__PURE__ */ j(
2955
2959
  ([
2956
2960
  { increaseViewportBy: t, listBoundary: e, overscan: n, visibleRange: o },
2957
- { footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: d, smoothScrollTargetReached: m, viewportHeight: x },
2961
+ { footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: d, smoothScrollTargetReached: m, viewportHeight: S },
2958
2962
  p,
2959
2963
  T,
2960
2964
  { didMount: w, propsReady: R },
2961
- { customScrollParent: h, useWindowScroll: f, windowScrollContainerState: a, windowScrollTo: S, windowViewportRect: H },
2965
+ { customScrollParent: h, useWindowScroll: f, windowScrollContainerState: a, windowScrollTo: x, windowViewportRect: H },
2962
2966
  y
2963
2967
  ]) => {
2964
- const k = v(0), u = v(0), g = v(bn), C = v({ height: 0, width: 0 }), z = v({ height: 0, width: 0 }), O = U(), V = U(), N = v(0), Z = v(null), F = v({ column: 0, row: 0 }), mt = U(), q = U(), Q = v(!1), gt = v(0), ut = v(!0), xt = v(!1), Ft = v(!1);
2968
+ const L = v(0), u = v(0), g = v(Rn), C = v({ height: 0, width: 0 }), z = v({ height: 0, width: 0 }), O = U(), V = U(), N = v(0), Z = v(null), F = v({ column: 0, row: 0 }), mt = U(), q = U(), Q = v(!1), gt = v(0), ut = v(!0), St = v(!1), Ft = v(!1);
2965
2969
  Y(
2966
2970
  I(
2967
2971
  w,
2968
2972
  $(gt),
2969
- W(([b, D]) => D !== 0)
2973
+ P(([b, D]) => D !== 0)
2970
2974
  ),
2971
2975
  () => {
2972
2976
  _(ut, !1);
2973
2977
  }
2974
2978
  ), Y(
2975
2979
  I(
2976
- at(w, ut, z, C, gt, xt),
2977
- W(([b, D, K, rt, , tt]) => b && !D && K.height !== 0 && rt.height !== 0 && !tt)
2980
+ at(w, ut, z, C, gt, St),
2981
+ P(([b, D, K, st, , tt]) => b && !D && K.height !== 0 && st.height !== 0 && !tt)
2978
2982
  ),
2979
2983
  ([, , , , b]) => {
2980
- _(xt, !0), Ue(1, () => {
2984
+ _(St, !0), Ue(1, () => {
2981
2985
  _(O, b);
2982
2986
  }), yt(I(d), () => {
2983
2987
  _(e, [0, 0]), _(ut, !0);
2984
2988
  });
2985
2989
  }
2986
- ), L(
2990
+ ), k(
2987
2991
  I(
2988
2992
  q,
2989
- W((b) => b != null && b.scrollTop > 0),
2993
+ P((b) => b != null && b.scrollTop > 0),
2990
2994
  Bt(0)
2991
2995
  ),
2992
2996
  u
@@ -2994,100 +2998,100 @@ const Lr = /* @__PURE__ */ j(
2994
2998
  I(
2995
2999
  w,
2996
3000
  $(q),
2997
- W(([, b]) => b != null)
3001
+ P(([, b]) => b != null)
2998
3002
  ),
2999
3003
  ([, b]) => {
3000
3004
  b && (_(C, b.viewport), _(z, b.item), _(F, b.gap), b.scrollTop > 0 && (_(Q, !0), yt(I(d, $t(1)), (D) => {
3001
3005
  _(Q, !1);
3002
3006
  }), _(c, { top: b.scrollTop })));
3003
3007
  }
3004
- ), L(
3008
+ ), k(
3005
3009
  I(
3006
3010
  C,
3007
3011
  B(({ height: b }) => b)
3008
3012
  ),
3009
- x
3010
- ), L(
3013
+ S
3014
+ ), k(
3011
3015
  I(
3012
3016
  at(
3013
- P(C, xe),
3014
- P(z, xe),
3015
- P(F, (b, D) => b !== void 0 && b.column === D.column && b.row === D.row),
3016
- P(d)
3017
+ W(C, Ie),
3018
+ W(z, Ie),
3019
+ W(F, (b, D) => b !== void 0 && b.column === D.column && b.row === D.row),
3020
+ W(d)
3017
3021
  ),
3018
- B(([b, D, K, rt]) => ({
3022
+ B(([b, D, K, st]) => ({
3019
3023
  gap: K,
3020
3024
  item: D,
3021
- scrollTop: rt,
3025
+ scrollTop: st,
3022
3026
  viewport: b
3023
3027
  }))
3024
3028
  ),
3025
3029
  mt
3026
- ), L(
3030
+ ), k(
3027
3031
  I(
3028
3032
  at(
3029
- P(k),
3033
+ W(L),
3030
3034
  o,
3031
- P(F, kr),
3032
- P(z, xe),
3033
- P(C, xe),
3034
- P(Z),
3035
- P(u),
3036
- P(Q),
3037
- P(ut),
3038
- P(gt)
3035
+ W(F, kr),
3036
+ W(z, Ie),
3037
+ W(C, Ie),
3038
+ W(Z),
3039
+ W(u),
3040
+ W(Q),
3041
+ W(ut),
3042
+ W(gt)
3039
3043
  ),
3040
- W(([, , , , , , , b]) => !b),
3044
+ P(([, , , , , , , b]) => !b),
3041
3045
  B(
3042
3046
  ([
3043
3047
  b,
3044
3048
  [D, K],
3045
- rt,
3049
+ st,
3046
3050
  tt,
3047
3051
  X,
3048
3052
  lt,
3049
- St,
3053
+ xt,
3050
3054
  ,
3051
3055
  ct,
3052
3056
  Vt
3053
3057
  ]) => {
3054
- const { column: Pt, row: ee } = rt, { height: he, width: He } = tt, { width: nn } = X;
3055
- if (St === 0 && (b === 0 || nn === 0))
3056
- return bn;
3058
+ const { column: Wt, row: te } = st, { height: pe, width: He } = tt, { width: on } = X;
3059
+ if (xt === 0 && (b === 0 || on === 0))
3060
+ return Rn;
3057
3061
  if (He === 0) {
3058
- const cn = Ke(Vt, b), uo = cn + Math.max(St - 1, 0);
3059
- return Or(En(cn, uo, lt));
3062
+ const un = Ke(Vt, b), ao = un + Math.max(xt - 1, 0);
3063
+ return Lr(Bn(un, ao, lt));
3060
3064
  }
3061
- const ge = io(nn, He, Pt);
3065
+ const he = lo(on, He, Wt);
3062
3066
  let jt, Mt;
3063
- ct ? D === 0 && K === 0 && St > 0 ? (jt = 0, Mt = St - 1) : (jt = ge * Ce((D + ee) / (he + ee)), Mt = ge * Rn((K + ee) / (he + ee)) - 1, Mt = Le(b - 1, oe(Mt, ge - 1)), jt = Le(Mt, oe(0, jt))) : (jt = 0, Mt = -1);
3064
- const on = En(jt, Mt, lt), { bottom: rn, top: sn } = Bn(X, rt, tt, on), ln = Rn(b / ge), co = ln * he + (ln - 1) * ee - rn;
3065
- return { bottom: rn, itemHeight: he, items: on, itemWidth: He, offsetBottom: co, offsetTop: sn, top: sn };
3067
+ ct ? D === 0 && K === 0 && xt > 0 ? (jt = 0, Mt = xt - 1) : (jt = he * ve((D + te) / (pe + te)), Mt = he * Hn((K + te) / (pe + te)) - 1, Mt = ke(b - 1, ne(Mt, he - 1)), jt = ke(Mt, ne(0, jt))) : (jt = 0, Mt = -1);
3068
+ const rn = Bn(jt, Mt, lt), { bottom: sn, top: ln } = On(X, st, tt, rn), cn = Hn(b / he), uo = cn * pe + (cn - 1) * te - sn;
3069
+ return { bottom: sn, itemHeight: pe, items: rn, itemWidth: He, offsetBottom: uo, offsetTop: ln, top: ln };
3066
3070
  }
3067
3071
  )
3068
3072
  ),
3069
3073
  g
3070
- ), L(
3074
+ ), k(
3071
3075
  I(
3072
3076
  Z,
3073
- W((b) => b !== null),
3077
+ P((b) => b !== null),
3074
3078
  B((b) => b.length)
3075
3079
  ),
3076
- k
3077
- ), L(
3080
+ L
3081
+ ), k(
3078
3082
  I(
3079
3083
  at(C, z, g, F),
3080
- W(([b, D, { items: K }]) => K.length > 0 && D.height !== 0 && b.height !== 0),
3081
- B(([b, D, { items: K }, rt]) => {
3082
- const { bottom: tt, top: X } = Bn(b, rt, D, K);
3084
+ P(([b, D, { items: K }]) => K.length > 0 && D.height !== 0 && b.height !== 0),
3085
+ B(([b, D, { items: K }, st]) => {
3086
+ const { bottom: tt, top: X } = On(b, st, D, K);
3083
3087
  return [X, tt];
3084
3088
  }),
3085
- et(le)
3089
+ nt(ie)
3086
3090
  ),
3087
3091
  e
3088
3092
  );
3089
3093
  const pt = v(!1);
3090
- L(
3094
+ k(
3091
3095
  I(
3092
3096
  d,
3093
3097
  $(pt),
@@ -3097,58 +3101,58 @@ const Lr = /* @__PURE__ */ j(
3097
3101
  );
3098
3102
  const Kt = vt(
3099
3103
  I(
3100
- at(g, k),
3101
- W(([{ items: b }]) => b.length > 0),
3104
+ at(g, L),
3105
+ P(([{ items: b }]) => b.length > 0),
3102
3106
  $(pt),
3103
- W(([[b, D], K]) => {
3107
+ P(([[b, D], K]) => {
3104
3108
  const tt = b.items[b.items.length - 1].index === D - 1;
3105
3109
  return (K || b.bottom > 0 && b.itemHeight > 0 && b.offsetBottom === 0 && b.items.length === D) && tt;
3106
3110
  }),
3107
3111
  B(([[, b]]) => b - 1),
3108
- et()
3112
+ nt()
3109
3113
  )
3110
- ), Qt = vt(
3114
+ ), Jt = vt(
3111
3115
  I(
3112
- P(g),
3113
- W(({ items: b }) => b.length > 0 && b[0].index === 0),
3116
+ W(g),
3117
+ P(({ items: b }) => b.length > 0 && b[0].index === 0),
3114
3118
  Bt(0),
3115
- et()
3119
+ nt()
3116
3120
  )
3117
3121
  ), Et = vt(
3118
3122
  I(
3119
- P(g),
3123
+ W(g),
3120
3124
  $(Q),
3121
- W(([{ items: b }, D]) => b.length > 0 && !D),
3125
+ P(([{ items: b }, D]) => b.length > 0 && !D),
3122
3126
  B(([{ items: b }]) => ({
3123
3127
  endIndex: b[b.length - 1].index,
3124
3128
  startIndex: b[0].index
3125
3129
  })),
3126
- et(An),
3130
+ nt(Mn),
3127
3131
  zt(0)
3128
3132
  )
3129
3133
  );
3130
- L(Et, T.scrollSeekRangeChanged), L(
3134
+ k(Et, T.scrollSeekRangeChanged), k(
3131
3135
  I(
3132
3136
  O,
3133
- $(C, z, k, F),
3134
- B(([b, D, K, rt, tt]) => {
3135
- const X = $n(b), { align: lt, behavior: St, offset: ct } = X;
3137
+ $(C, z, L, F),
3138
+ B(([b, D, K, st, tt]) => {
3139
+ const X = Un(b), { align: lt, behavior: xt, offset: ct } = X;
3136
3140
  let Vt = X.index;
3137
- Vt === "LAST" && (Vt = rt - 1), Vt = oe(0, Vt, Le(rt - 1, Vt));
3138
- let Pt = Ge(D, tt, K, Vt);
3139
- return lt === "end" ? Pt = Hn(Pt - D.height + K.height) : lt === "center" && (Pt = Hn(Pt - D.height / 2 + K.height / 2)), ct !== void 0 && ct !== 0 && (Pt += ct), { behavior: St, top: Pt };
3141
+ Vt === "LAST" && (Vt = st - 1), Vt = ne(0, Vt, ke(st - 1, Vt));
3142
+ let Wt = Ge(D, tt, K, Vt);
3143
+ return lt === "end" ? Wt = En(Wt - D.height + K.height) : lt === "center" && (Wt = En(Wt - D.height / 2 + K.height / 2)), ct !== void 0 && ct !== 0 && (Wt += ct), { behavior: xt, top: Wt };
3140
3144
  })
3141
3145
  ),
3142
3146
  c
3143
3147
  );
3144
- const te = ht(
3148
+ const Qt = ht(
3145
3149
  I(
3146
3150
  g,
3147
3151
  B((b) => b.offsetBottom + b.bottom)
3148
3152
  ),
3149
3153
  0
3150
3154
  );
3151
- return L(
3155
+ return k(
3152
3156
  I(
3153
3157
  H,
3154
3158
  B((b) => ({ height: b.visibleHeight, width: b.visibleWidth }))
@@ -3174,34 +3178,34 @@ const Lr = /* @__PURE__ */ j(
3174
3178
  scrollToIndex: O,
3175
3179
  scrollTop: d,
3176
3180
  smoothScrollTargetReached: m,
3177
- totalCount: k,
3181
+ totalCount: L,
3178
3182
  useWindowScroll: f,
3179
3183
  viewportDimensions: C,
3180
3184
  windowScrollContainerState: a,
3181
- windowScrollTo: S,
3185
+ windowScrollTo: x,
3182
3186
  windowViewportRect: H,
3183
3187
  ...T,
3184
3188
  // output
3185
3189
  gridState: g,
3186
3190
  horizontalDirection: Ft,
3187
3191
  initialTopMostItemIndex: gt,
3188
- totalListHeight: te,
3192
+ totalListHeight: Qt,
3189
3193
  ...p,
3190
3194
  endReached: Kt,
3191
3195
  propsReady: R,
3192
3196
  rangeChanged: Et,
3193
- startReached: Qt,
3197
+ startReached: Jt,
3194
3198
  stateChanged: mt,
3195
3199
  stateRestoreInProgress: Q,
3196
3200
  ...y
3197
3201
  };
3198
3202
  },
3199
- ot(je, It, pe, Zn, At, qe, Gt)
3203
+ rt(je, It, me, Xn, At, qe, Gt)
3200
3204
  );
3201
- function io(t, e, n) {
3202
- return oe(1, Ce((t + n) / (Ce(e) + n)));
3205
+ function lo(t, e, n) {
3206
+ return ne(1, ve((t + n) / (ve(e) + n)));
3203
3207
  }
3204
- function Bn(t, e, n, o) {
3208
+ function On(t, e, n, o) {
3205
3209
  const { height: r } = n;
3206
3210
  if (r === void 0 || o.length === 0)
3207
3211
  return { bottom: 0, top: 0 };
@@ -3209,19 +3213,19 @@ function Bn(t, e, n, o) {
3209
3213
  return { bottom: Ge(t, e, n, o[o.length - 1].index) + r, top: s };
3210
3214
  }
3211
3215
  function Ge(t, e, n, o) {
3212
- const r = io(t.width, n.width, e.column), s = Ce(o / r), i = s * n.height + oe(0, s - 1) * e.row;
3216
+ const r = lo(t.width, n.width, e.column), s = ve(o / r), i = s * n.height + ne(0, s - 1) * e.row;
3213
3217
  return i > 0 ? i + e.row : i;
3214
3218
  }
3215
- const zr = /* @__PURE__ */ j(() => {
3216
- const t = v((x) => `Item ${x}`), e = v({}), n = v(null), o = v("virtuoso-grid-item"), r = v("virtuoso-grid-list"), s = v(Xe), i = v("div"), l = v(Xt), c = (x, p = null) => ht(
3219
+ const Fr = /* @__PURE__ */ j(() => {
3220
+ const t = v((S) => `Item ${S}`), e = v({}), n = v(null), o = v("virtuoso-grid-item"), r = v("virtuoso-grid-list"), s = v(Xe), i = v("div"), l = v(Xt), c = (S, p = null) => ht(
3217
3221
  I(
3218
3222
  e,
3219
- B((T) => T[x]),
3220
- et()
3223
+ B((T) => T[S]),
3224
+ nt()
3221
3225
  ),
3222
3226
  p
3223
3227
  ), d = v(!1), m = v(!1);
3224
- return L(P(m), d), {
3228
+ return k(W(m), d), {
3225
3229
  components: e,
3226
3230
  computeItemKey: s,
3227
3231
  context: n,
@@ -3239,23 +3243,23 @@ const zr = /* @__PURE__ */ j(() => {
3239
3243
  scrollerRef: l,
3240
3244
  ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
3241
3245
  };
3242
- }), Fr = /* @__PURE__ */ j(
3246
+ }), Vr = /* @__PURE__ */ j(
3243
3247
  ([t, e]) => ({ ...t, ...e }),
3244
- ot(Lr, zr)
3245
- ), Vr = /* @__PURE__ */ E.memo(function() {
3246
- const e = st("gridState"), n = st("listClassName"), o = st("itemClassName"), r = st("itemContent"), s = st("computeItemKey"), i = st("isSeeking"), l = wt("scrollHeight"), c = st("ItemComponent"), d = st("ListComponent"), m = st("ScrollSeekPlaceholder"), x = st("context"), p = wt("itemDimensions"), T = wt("gap"), w = st("log"), R = st("stateRestoreInProgress"), h = wt("reportReadyState"), f = kt(
3248
+ rt(zr, Fr)
3249
+ ), Wr = /* @__PURE__ */ E.memo(function() {
3250
+ 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"), S = et("context"), p = wt("itemDimensions"), T = wt("gap"), w = et("log"), R = et("stateRestoreInProgress"), h = wt("reportReadyState"), f = Lt(
3247
3251
  E.useMemo(
3248
3252
  () => (a) => {
3249
- const S = a.parentElement.parentElement.scrollHeight;
3250
- l(S);
3253
+ const x = a.parentElement.parentElement.scrollHeight;
3254
+ l(x);
3251
3255
  const H = a.firstChild;
3252
3256
  if (H !== null) {
3253
- const { height: y, width: k } = H.getBoundingClientRect();
3254
- p({ height: y, width: k });
3257
+ const { height: y, width: L } = H.getBoundingClientRect();
3258
+ p({ height: y, width: L });
3255
3259
  }
3256
3260
  T({
3257
- column: On("column-gap", getComputedStyle(a).columnGap, w),
3258
- row: On("row-gap", getComputedStyle(a).rowGap, w)
3261
+ column: Ln("column-gap", getComputedStyle(a).columnGap, w),
3262
+ row: Ln("row-gap", getComputedStyle(a).rowGap, w)
3259
3263
  });
3260
3264
  },
3261
3265
  [l, p, T, w]
@@ -3263,42 +3267,42 @@ const zr = /* @__PURE__ */ j(() => {
3263
3267
  !0,
3264
3268
  !1
3265
3269
  );
3266
- return to(() => {
3270
+ return eo(() => {
3267
3271
  e.itemHeight > 0 && e.itemWidth > 0 && h(!0);
3268
3272
  }, [e]), R ? null : /* @__PURE__ */ G(
3269
3273
  d,
3270
3274
  {
3271
3275
  className: n,
3272
3276
  ref: f,
3273
- ...nt(d, x),
3277
+ ...ot(d, S),
3274
3278
  "data-testid": "virtuoso-item-list",
3275
3279
  style: { paddingBottom: e.offsetBottom, paddingTop: e.offsetTop },
3276
3280
  children: e.items.map((a) => {
3277
- const S = s(a.index, a.data, x);
3281
+ const x = s(a.index, a.data, S);
3278
3282
  return i ? /* @__PURE__ */ G(
3279
3283
  m,
3280
3284
  {
3281
- ...nt(m, x),
3285
+ ...ot(m, S),
3282
3286
  height: e.itemHeight,
3283
3287
  index: a.index,
3284
3288
  width: e.itemWidth
3285
3289
  },
3286
- S
3290
+ x
3287
3291
  ) : /* @__PURE__ */ Nt(
3288
3292
  c,
3289
3293
  {
3290
- ...nt(c, x),
3294
+ ...ot(c, S),
3291
3295
  className: o,
3292
3296
  "data-index": a.index,
3293
- key: S
3297
+ key: x
3294
3298
  },
3295
- r(a.index, a.data, x)
3299
+ r(a.index, a.data, S)
3296
3300
  );
3297
3301
  })
3298
3302
  }
3299
3303
  );
3300
3304
  }), Pr = E.memo(function() {
3301
- const e = st("HeaderComponent"), n = wt("headerHeight"), o = st("headerFooterTag"), r = kt(
3305
+ const e = et("HeaderComponent"), n = wt("headerHeight"), o = et("headerFooterTag"), r = Lt(
3302
3306
  E.useMemo(
3303
3307
  () => (i) => {
3304
3308
  n(Ht(i, "height"));
@@ -3307,10 +3311,10 @@ const zr = /* @__PURE__ */ j(() => {
3307
3311
  ),
3308
3312
  !0,
3309
3313
  !1
3310
- ), s = st("context");
3311
- return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...nt(e, s) }) }) : null;
3312
- }), Wr = E.memo(function() {
3313
- const e = st("FooterComponent"), n = wt("footerHeight"), o = st("headerFooterTag"), r = kt(
3314
+ ), s = et("context");
3315
+ return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...ot(e, s) }) }) : null;
3316
+ }), Gr = E.memo(function() {
3317
+ const e = et("FooterComponent"), n = wt("footerHeight"), o = et("headerFooterTag"), r = Lt(
3314
3318
  E.useMemo(
3315
3319
  () => (i) => {
3316
3320
  n(Ht(i, "height"));
@@ -3319,10 +3323,10 @@ const zr = /* @__PURE__ */ j(() => {
3319
3323
  ),
3320
3324
  !0,
3321
3325
  !1
3322
- ), s = st("context");
3323
- return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...nt(e, s) }) }) : null;
3324
- }), Gr = ({ children: t }) => {
3325
- const e = E.useContext(Qn), n = wt("itemDimensions"), o = wt("viewportDimensions"), r = kt(
3326
+ ), s = et("context");
3327
+ return e != null ? /* @__PURE__ */ G(o, { ref: r, children: /* @__PURE__ */ G(e, { ...ot(e, s) }) }) : null;
3328
+ }), Ar = ({ children: t }) => {
3329
+ const e = E.useContext(to), n = wt("itemDimensions"), o = wt("viewportDimensions"), r = Lt(
3326
3330
  E.useMemo(
3327
3331
  () => (s) => {
3328
3332
  o(s.getBoundingClientRect());
@@ -3334,26 +3338,26 @@ const zr = /* @__PURE__ */ j(() => {
3334
3338
  );
3335
3339
  return E.useEffect(() => {
3336
3340
  e && (o({ height: e.viewportHeight, width: e.viewportWidth }), n({ height: e.itemHeight, width: e.itemWidth }));
3337
- }, [e, o, n]), /* @__PURE__ */ G("div", { ref: r, style: Jt(!1), children: t });
3338
- }, Ar = ({ children: t }) => {
3339
- const e = E.useContext(Qn), n = wt("windowViewportRect"), o = wt("itemDimensions"), r = st("customScrollParent"), s = Ne(n, r, !1);
3341
+ }, [e, o, n]), /* @__PURE__ */ G("div", { ref: r, style: Re(!1), children: t });
3342
+ }, Mr = ({ children: t }) => {
3343
+ const e = E.useContext(to), n = wt("windowViewportRect"), o = wt("itemDimensions"), r = et("customScrollParent"), s = et("useWindowScroll"), i = Ne(n, r, !1);
3340
3344
  return E.useEffect(() => {
3341
3345
  e && (o({ height: e.itemHeight, width: e.itemWidth }), n({ listHeight: 0, offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: e.viewportWidth }));
3342
- }, [e, n, o]), /* @__PURE__ */ G("div", { ref: s, style: Jt(!1), children: t });
3343
- }, Mr = /* @__PURE__ */ E.memo(function({ ...e }) {
3344
- const n = st("useWindowScroll"), o = st("customScrollParent"), r = o || n ? Dr : Nr, s = o || n ? Ar : Gr, i = st("context");
3345
- return /* @__PURE__ */ G(r, { ...e, ...nt(r, i), children: /* @__PURE__ */ Dt(s, { children: [
3346
+ }, [e, n, o]), /* @__PURE__ */ G("div", { ref: i, style: Je(!1, s), children: t });
3347
+ }, _r = /* @__PURE__ */ E.memo(function({ ...e }) {
3348
+ const n = et("useWindowScroll"), o = et("customScrollParent"), r = o || n ? $r : Dr, s = o || n ? Mr : Ar, i = et("context");
3349
+ return /* @__PURE__ */ G(r, { ...e, ...ot(r, i), children: /* @__PURE__ */ Dt(s, { children: [
3346
3350
  /* @__PURE__ */ G(Pr, {}),
3347
- /* @__PURE__ */ G(Vr, {}),
3348
- /* @__PURE__ */ G(Wr, {})
3351
+ /* @__PURE__ */ G(Wr, {}),
3352
+ /* @__PURE__ */ G(Gr, {})
3349
3353
  ] }) });
3350
3354
  }), {
3351
- Component: _r,
3352
- useEmitter: lo,
3353
- useEmitterValue: st,
3355
+ Component: Nr,
3356
+ useEmitter: co,
3357
+ useEmitterValue: et,
3354
3358
  usePublisher: wt
3355
3359
  } = /* @__PURE__ */ Ye(
3356
- Fr,
3360
+ Vr,
3357
3361
  {
3358
3362
  optional: {
3359
3363
  context: "context",
@@ -3392,19 +3396,19 @@ const zr = /* @__PURE__ */ j(() => {
3392
3396
  readyStateChanged: "readyStateChanged"
3393
3397
  }
3394
3398
  },
3395
- Mr
3396
- ), Nr = /* @__PURE__ */ Je({ useEmitter: lo, useEmitterValue: st, usePublisher: wt }), Dr = /* @__PURE__ */ Qe({ useEmitter: lo, useEmitterValue: st, usePublisher: wt });
3397
- function On(t, e, n) {
3399
+ _r
3400
+ ), Dr = /* @__PURE__ */ Qe({ useEmitter: co, useEmitterValue: et, usePublisher: wt }), $r = /* @__PURE__ */ tn({ useEmitter: co, useEmitterValue: et, usePublisher: wt });
3401
+ function Ln(t, e, n) {
3398
3402
  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);
3399
3403
  }
3400
- const Jr = _r;
3404
+ const Qr = Nr;
3401
3405
  export {
3402
- Xr as GroupedTableVirtuoso,
3403
- Yr as GroupedVirtuoso,
3406
+ Jr as GroupedTableVirtuoso,
3407
+ Zr as GroupedVirtuoso,
3404
3408
  ft as LogLevel,
3405
- Zr as TableVirtuoso,
3406
- qr as Virtuoso,
3407
- Jr as VirtuosoGrid,
3408
- Qn as VirtuosoGridMockContext,
3409
- Re as VirtuosoMockContext
3409
+ Xr as TableVirtuoso,
3410
+ Yr as Virtuoso,
3411
+ Qr as VirtuosoGrid,
3412
+ to as VirtuosoGridMockContext,
3413
+ be as VirtuosoMockContext
3410
3414
  };