virtua 0.50.4 → 0.50.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import { Dynamic as e, createComponent as t, effect as r, insert as n, mergeProps as o, setStyleProperty as s, spread as i, template as l, use as c } from "solid-js/web";
2
2
 
3
- import { For as u, createComputed as a, createEffect as f, createMemo as g, createSignal as d, mergeProps as h, on as p, onCleanup as m, onMount as S, splitProps as $, untrack as v } from "solid-js";
3
+ import { For as u, createComputed as a, createEffect as f, createMemo as g, createSignal as d, mergeProps as h, on as p, onCleanup as $, onMount as v, splitProps as m, untrack as S } from "solid-js";
4
4
 
5
- var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y = e => [ ...e ].sort((e, t) => e - t), _ = setTimeout, k = "function" == typeof queueMicrotask ? queueMicrotask : e => {
5
+ var {min: z, max: b, abs: w, floor: I} = Math, y = (e, t, r) => z(r, b(t, e)), x = e => [ ...e ].sort((e, t) => e - t), _ = setTimeout, k = "function" == typeof queueMicrotask ? queueMicrotask : e => {
6
6
  Promise.resolve().then(e);
7
7
  }, O = () => {
8
8
  let e;
@@ -12,13 +12,13 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
12
12
  }, T = e => {
13
13
  let t;
14
14
  return () => (e && (t = e(), e = void 0), t);
15
- }, M = e => e.documentElement, L = e => e.ownerDocument, R = e => e.defaultView, C = /*#__PURE__*/ T(() => !!/iP(hone|od|ad)/.test(navigator.userAgent) || "MacIntel" === navigator.platform && navigator.maxTouchPoints > 0), E = /*#__PURE__*/ T(() => "scrollBehavior" in M(document).style), q = ({o: e, i: t, l: r, u: n, h: o, p: s, m: i, S: l, $: c, v: u}, a = 0) => {
16
- let f = !!u, g = !!a, d = 1, h = 0, p = 0, m = 0, S = 0, $ = 0, v = 0, I = 0, x = 0, y = null, _ = [ 0, g ? b(a - 1, 0) : -1 ], k = 0, O = !1;
17
- const T = /* @__PURE__ */ new Set, M = () => m - p, L = () => M() + $ + S, R = (e, t) => {
18
- const o = r(e) - $;
15
+ }, M = e => e.documentElement, L = e => e.ownerDocument, R = e => e.defaultView, C = /*#__PURE__*/ T(() => !!/iP(hone|od|ad)/.test(navigator.userAgent) || "MacIntel" === navigator.platform && navigator.maxTouchPoints > 0), E = /*#__PURE__*/ T(() => "scrollBehavior" in M(document).style), q = ({o: e, i: t, l: r, u: n, h: o, p: s, $: i, v: l, m: c, S: u}, a = 0) => {
16
+ let f = !!u, g = !!a, d = 1, h = 0, p = 0, $ = 0, v = 0, m = 0, S = 0, I = 0, y = 0, x = null, _ = [ 0, g ? b(a - 1, 0) : -1 ], k = 0, O = !1;
17
+ const T = /* @__PURE__ */ new Set, M = () => $ - p, L = () => M() + m + v, R = (e, t) => {
18
+ const o = r(e) - m;
19
19
  return t ? i() - o - n(e) : o;
20
20
  }, E = e => {
21
- e && (C() && 0 !== I || y && 1 === x ? $ += e : S += e);
21
+ e && (C() && 0 !== I || x && 1 === y ? m += e : v += e);
22
22
  };
23
23
  return {
24
24
  I: () => {
@@ -28,10 +28,10 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
28
28
  o: (t = 200) => {
29
29
  if (!O || g) return _;
30
30
  let r, n;
31
- if (v) [r, n] = _; else {
31
+ if (S) [r, n] = _; else {
32
32
  let o = b(0, L()), s = o + h;
33
33
  f || (t = b(0, t), 1 !== I && (o -= t), 2 !== I && (s += t)), [r, n] = _ = e(b(0, o), b(0, s)),
34
- y && (r = z(r, y[0]), n = b(n, y[1]));
34
+ x && (r = z(r, x[0]), n = b(n, x[1]));
35
35
  }
36
36
  return [ b(r, 0), z(n, l() - 1) ];
37
37
  },
@@ -40,35 +40,35 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
40
40
  l: R,
41
41
  u: n,
42
42
  T: l,
43
- M: () => m,
43
+ M: () => $,
44
44
  L: () => 0 !== I,
45
45
  R: () => h,
46
46
  C: () => p,
47
- m: i,
48
- q: () => (v = S, S = 0, [ v, 2 === x ]),
47
+ $: i,
48
+ q: () => (S = v, v = 0, [ S, 2 === y ]),
49
49
  B: (e, t) => {
50
50
  const r = [ e, t ];
51
51
  return T.add(r), () => {
52
52
  T.delete(r);
53
53
  };
54
54
  },
55
- J: (r, l) => {
55
+ P: (r, l) => {
56
56
  let a, z, b = 0;
57
57
  switch (r) {
58
58
  case 1:
59
59
  {
60
- if (l === m && 0 === x) break;
61
- const e = v;
62
- v = 0;
63
- const t = l - m, r = w(t);
64
- e && r < w(e) + 1 || 0 !== x || (I = t < 0 ? 2 : 1), g && (g = !1), m = l, b = 4;
60
+ if (l === $ && 0 === y) break;
61
+ const e = S;
62
+ S = 0;
63
+ const t = l - $, r = w(t);
64
+ e && r < w(e) + 1 || 0 !== y || (I = t < 0 ? 2 : 1), g && (g = !1), $ = l, b = 4;
65
65
  const n = M();
66
66
  n >= -h && n <= i() && (b += 1, z = r > h);
67
67
  break;
68
68
  }
69
69
 
70
70
  case 2:
71
- b = 8, 0 !== I && (a = !0, b += 1), I = 0, x = 0, y = null;
71
+ b = 8, 0 !== I && (a = !0, b += 1), I = 0, y = 0, x = null;
72
72
  break;
73
73
 
74
74
  case 3:
@@ -77,9 +77,9 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
77
77
  if (!e.length) break;
78
78
  E(e.reduce((e, [t, r]) => {
79
79
  let o;
80
- if (2 === x) o = !0; else if (y && 1 === x) o = t < y[0]; else {
80
+ if (2 === y) o = !0; else if (x && 1 === y) o = t < x[0]; else {
81
81
  const e = M(), r = R(t), s = n(t);
82
- o = 1 !== I && 0 === x ? r + s <= e : r < e && r + s < e + h;
82
+ o = 1 !== I && 0 === y ? r + s <= e : r < e && r + s < e + h;
83
83
  }
84
84
  return o && (e += r - n(t)), e;
85
85
  }, 0));
@@ -96,7 +96,7 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
96
96
  break;
97
97
 
98
98
  case 5:
99
- l[1] ? (E(c(l[0], !0)), x = 2, b = 1) : (c(l[0]), b = 1);
99
+ l[1] ? (E(c(l[0], !0)), y = 2, b = 1) : (c(l[0]), b = 1);
100
100
  break;
101
101
 
102
102
  case 6:
@@ -104,13 +104,13 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
104
104
  break;
105
105
 
106
106
  case 7:
107
- x = 1;
107
+ y = 1;
108
108
  break;
109
109
 
110
110
  case 8:
111
- y = e(l, l + h), b = 1;
111
+ x = e(l, l + h), b = 1;
112
112
  }
113
- b && (d = 1 + (2147483647 & d), a && $ && (S += $, $ = 0), T.forEach(([e, t]) => {
113
+ b && (d = 1 + (2147483647 & d), a && m && (v += m, m = 0), T.forEach(([e, t]) => {
114
114
  b & e && t(z);
115
115
  }));
116
116
  }
@@ -121,14 +121,14 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
121
121
  const t = I((n + o) / 2);
122
122
  e(t) <= r ? (s = t, n = t + 1) : o = t - 1;
123
123
  }
124
- return x(s, 0, t - 1);
125
- }, J = (e, t, r) => {
124
+ return y(s, 0, t - 1);
125
+ }, P = (e, t, r) => {
126
126
  const n = r ? "unshift" : "push";
127
127
  for (let r = 0; r < t; r++) e[n](-1);
128
128
  return e;
129
- }, P = (e, t, r) => {
129
+ }, D = (e, t, r) => {
130
130
  let n = r && r[1] || t || 40, o = -1, s = 0;
131
- const i = r && r[0], l = i ? J(i.slice(0, z(e, i.length)), b(0, e - i.length)) : J([], e), c = J([], e + 1), u = e => {
131
+ const i = r && r[0], l = i ? P(i.slice(0, z(e, i.length)), b(0, e - i.length)) : P([], e), c = P([], e + 1), u = e => {
132
132
  const t = l[e];
133
133
  return -1 === t ? n : t;
134
134
  }, a = t => {
@@ -153,38 +153,38 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
153
153
  return l[e] = t, o = z(e, o), r;
154
154
  },
155
155
  p: (e, t = -1) => l[e] === t,
156
- m: () => a(e),
157
- S: () => e,
158
- $: (t, r) => {
156
+ $: () => a(e),
157
+ v: () => e,
158
+ m: (t, r) => {
159
159
  const s = t - e;
160
- return o = r ? -1 : z(t - 1, o), e = t, s > 0 ? (J(c, s), J(l, s, r), n * s) : (c.splice(s),
160
+ return o = r ? -1 : z(t - 1, o), e = t, s > 0 ? (P(c, s), P(l, s, r), n * s) : (c.splice(s),
161
161
  (r ? l.splice(0, -s) : l.splice(s)).reduce((e, t) => e - (-1 === t ? n : t), 0));
162
162
  },
163
- v: t ? void 0 : e => {
163
+ S: t ? void 0 : e => {
164
164
  let t = 0;
165
165
  const r = [];
166
166
  l.forEach((n, o) => {
167
- -1 !== n && (r.push(n), o < e && t++);
167
+ -1 !== n && (n && r.push(n), o < e && t++);
168
168
  }), o = -1;
169
- const s = y(r), i = s.length, c = i / 2 | 0, u = i % 2 == 0 ? (s[c - 1] + s[c]) / 2 : s[c], a = n;
169
+ const s = x(r), i = s.length, c = i / 2 | 0, u = i % 2 == 0 ? (s[c - 1] + s[c]) / 2 : s[c], a = n;
170
170
  return ((n = u) - a) * b(e - t, 0);
171
171
  },
172
- P: () => [ l.slice(), n ]
172
+ D: () => [ l.slice(), n ]
173
173
  };
174
- }, D = e => {
174
+ }, j = e => {
175
175
  let t;
176
176
  return {
177
- D(r) {
177
+ j(r) {
178
178
  (t || (t = new (R(L(r)).ResizeObserver)(e))).observe(r);
179
179
  },
180
- j(e) {
180
+ H(e) {
181
181
  t.unobserve(e);
182
182
  },
183
- H() {
183
+ J() {
184
184
  t && t.disconnect();
185
185
  }
186
186
  };
187
- }, j = (e, t) => t ? -e : e, H = (e, t, r, n, o, s) => {
187
+ }, H = (e, t) => t ? -e : e, J = (e, t, r, n, o, s) => {
188
188
  const i = Date.now;
189
189
  let l = 0, c = !1, u = !1, a = !1, f = !1;
190
190
  const g = (() => {
@@ -195,36 +195,36 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
195
195
  r(), t = _(() => {
196
196
  t = null, (() => {
197
197
  if (c || u) return c = !1, void g();
198
- a = !1, e.J(2);
198
+ a = !1, e.P(2);
199
199
  })();
200
200
  }, 150);
201
201
  };
202
202
  return n.N = r, n;
203
203
  })(), d = () => {
204
- l = i(), a && (f = !0), s && e.J(6, s()), e.J(1, n()), g();
204
+ l = i(), a && (f = !0), s && e.P(6, s()), e.P(1, n()), g();
205
205
  }, h = t => {
206
206
  if (c || !e.L() || t.ctrlKey) return;
207
207
  const n = i() - l;
208
208
  150 > n && 50 < n && (r ? t.deltaX : t.deltaY) && (c = !0);
209
209
  }, p = () => {
210
210
  u = !0, a = f = !1;
211
- }, m = () => {
211
+ }, $ = () => {
212
212
  u = !1, C() && (a = !0);
213
213
  };
214
214
  return t.addEventListener("scroll", d), t.addEventListener("wheel", h, {
215
215
  passive: !0
216
216
  }), t.addEventListener("touchstart", p, {
217
217
  passive: !0
218
- }), t.addEventListener("touchend", m, {
218
+ }), t.addEventListener("touchend", $, {
219
219
  passive: !0
220
220
  }), {
221
- H: () => {
221
+ J: () => {
222
222
  t.removeEventListener("scroll", d), t.removeEventListener("wheel", h), t.removeEventListener("touchstart", p),
223
- t.removeEventListener("touchend", m), g.N();
223
+ t.removeEventListener("touchend", $), g.N();
224
224
  },
225
225
  V: () => {
226
226
  const [t, r] = e.q();
227
- t && (o(t, r, f), f = !1, r && e.R() > e.m() && e.J(1, n()));
227
+ t && (o(t, r, f), f = !1, r && e.R() > e.$() && e.P(1, n()));
228
228
  }
229
229
  };
230
230
  }, N = (e, t, r) => {
@@ -240,7 +240,7 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
240
240
  r(!0);
241
241
  }) ];
242
242
  };
243
- if (s && E()) e.J(8, o()), k(async () => {
243
+ if (s && E()) e.P(8, o()), k(async () => {
244
244
  for (;;) {
245
245
  let t = !0;
246
246
  for (let [r, n] = e.o(); r <= n; r++) if (e.O(r)) {
@@ -255,11 +255,11 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
255
255
  n();
256
256
  }
257
257
  }
258
- e.J(7), r(o(), s);
258
+ e.P(7), r(o(), s);
259
259
  }); else for (;;) {
260
260
  const [t, n] = i();
261
261
  try {
262
- if (e.J(7), r(o()), !await t) return;
262
+ if (e.P(7), r(o()), !await t) return;
263
263
  } finally {
264
264
  n();
265
265
  }
@@ -270,7 +270,7 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
270
270
  }, V = (e, t) => {
271
271
  e.W(() => t);
272
272
  }, W = (e, t, r, {align: n, smooth: o, offset: s = 0} = {}) => {
273
- if (r = x(r, 0, t.T() - 1), "nearest" === n) {
273
+ if (r = y(r, 0, t.T() - 1), "nearest" === n) {
274
274
  const e = t.l(r), o = t.M();
275
275
  if (e < o) n = "start"; else {
276
276
  if (!(e + t.u(r) > o + t.R())) return;
@@ -283,7 +283,7 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
283
283
  r = h({
284
284
  U: "div"
285
285
  }, r), f(() => {
286
- n && m(r.A(n, r.F));
286
+ n && $(r.A(n, r.F));
287
287
  });
288
288
  const o = g(() => {
289
289
  const e = r.G, t = r.K, n = r.Z, o = {
@@ -319,38 +319,38 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
319
319
  r = h({
320
320
  as: "div"
321
321
  }, r);
322
- const [c, $] = d(!!l), z = P(r.data.length, o, i), w = q(z, l), I = ((e, t) => {
322
+ const [c, m] = d(!!l), z = D(r.data.length, o, i), w = q(z, l), I = ((e, t) => {
323
323
  let r, n, o = O(), s = !1;
324
324
  const i = t ? "scrollLeft" : "scrollTop", l = t ? "overflowX" : "overflowY", [c, u] = N(e, () => o[0], (e, n) => {
325
- e = j(e, s), n ? r.scrollTo({
325
+ e = H(e, s), n ? r.scrollTo({
326
326
  [t ? "left" : "top"]: e,
327
327
  behavior: "smooth"
328
328
  }) : r[i] = e;
329
- }), a = t ? "width" : "height", f = /* @__PURE__ */ new WeakMap, g = D(t => {
329
+ }), a = t ? "width" : "height", f = /* @__PURE__ */ new WeakMap, g = j(t => {
330
330
  const n = [];
331
- for (const {target: o, contentRect: s} of t) if (o.offsetParent) if (o === r) e.J(4, s[a]); else {
331
+ for (const {target: o, contentRect: s} of t) if (o.offsetParent) if (o === r) e.P(4, s[a]); else {
332
332
  const e = f.get(o);
333
333
  null != e && n.push([ e, s[a] ]);
334
334
  }
335
- n.length && e.J(3, n);
335
+ n.length && e.P(3, n);
336
336
  });
337
337
  return {
338
338
  re(c, a = c.parentElement) {
339
- g.D(r = a), t && (s = "rtl" === getComputedStyle(a).direction), n = H(e, a, t, () => j(a[i], s), (t, r, n) => {
339
+ g.j(r = a), t && (s = "rtl" === getComputedStyle(a).direction), n = J(e, a, t, () => H(a[i], s), (t, r, n) => {
340
340
  if (n) {
341
341
  const e = a.style, t = e[l];
342
342
  e[l] = "hidden", _(() => {
343
343
  e[l] = t;
344
344
  });
345
345
  }
346
- a[i] = j(e.M() + t, s), r && u();
346
+ a[i] = H(e.M() + t, s), r && u();
347
347
  }), o[1](!0);
348
348
  },
349
349
  I() {
350
- g.H(), n && n.H(), o[1](!1), o = O();
350
+ g.J(), n && n.J(), o[1](!1), o = O();
351
351
  },
352
- ne: (e, t) => (f.set(e, t), g.D(e), () => {
353
- f.delete(e), g.j(e);
352
+ ne: (e, t) => (f.set(e, t), g.j(e), () => {
353
+ f.delete(e), g.H(e);
354
354
  }),
355
355
  oe: () => s,
356
356
  W: c,
@@ -360,7 +360,7 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
360
360
  X: e.C,
361
361
  Y: () => 0
362
362
  };
363
- })(w, s), [x, k] = d(w._());
363
+ })(w, s), [y, k] = d(w._());
364
364
  w.B(1, () => {
365
365
  k(w._());
366
366
  }), w.B(4, () => {
@@ -369,20 +369,20 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
369
369
  r.onScrollEnd?.();
370
370
  });
371
371
  const T = g(e => {
372
- x();
372
+ y();
373
373
  const t = w.o(r.bufferSize);
374
374
  return e && Y(e, t) ? e : t;
375
- }), M = g(() => x() && w.L()), L = g(() => x() && w.m()), R = g(() => x() && I.oe());
376
- S(() => {
377
- $(!1), r.ref && r.ref({
375
+ }), M = g(() => y() && w.L()), L = g(() => y() && w.$()), R = g(() => y() && I.oe());
376
+ v(() => {
377
+ m(!1), r.ref && r.ref({
378
378
  get cache() {
379
- return z.P();
379
+ return z.D();
380
380
  },
381
381
  get scrollOffset() {
382
382
  return w.M();
383
383
  },
384
384
  get scrollSize() {
385
- return (e => b(e.m(), e.R()))(w);
385
+ return (e => b(e.$(), e.R()))(w);
386
386
  },
387
387
  get viewportSize() {
388
388
  return w.R();
@@ -395,24 +395,24 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
395
395
  scrollBy: e => ((e, t, r) => {
396
396
  V(e, r + t.M());
397
397
  })(I, w, e)
398
- }), I.re(n, r.scrollRef), m(() => {
398
+ }), I.re(n, r.scrollRef), $(() => {
399
399
  r.ref && r.ref(), w.I(), I.I();
400
400
  });
401
401
  }), a(p(() => r.startMargin || 0, e => {
402
- e !== w.C() && w.J(6, e);
403
- })), f(p(x, () => {
402
+ e !== w.C() && w.P(6, e);
403
+ })), f(p(y, () => {
404
404
  I.se();
405
405
  }));
406
406
  const C = g(() => {
407
407
  const e = r.data.length;
408
- v(() => {
409
- e !== w.T() && w.J(5, [ e, r.shift ]);
408
+ S(() => {
409
+ e !== w.T() && w.P(5, [ e, r.shift ]);
410
410
  });
411
411
  const t = [], n = [];
412
412
  if (r.keepMounted) {
413
413
  const e = new Set(r.keepMounted);
414
414
  for (let [t, r] = T(); t <= r; t++) e.add(t);
415
- y([ ...e ]).forEach(e => {
415
+ x([ ...e ]).forEach(e => {
416
416
  t.push(r.data[e]), n.push(e);
417
417
  });
418
418
  } else for (let [e, o] = T(); e <= o; e++) t.push(r.data[e]), n.push(e);
@@ -445,7 +445,7 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
445
445
  return C().ie;
446
446
  },
447
447
  children: (e, n) => ((e, n) => {
448
- const o = g(() => (x(), w.l(n(), R()))), i = g(() => (x(), w.O(n()))), l = g(() => v(() => r.children(e, n)));
448
+ const o = g(() => (y(), w.l(n(), R()))), i = g(() => (y(), w.O(n()))), l = g(() => S(() => r.children(e, n)));
449
449
  return t(X, {
450
450
  get U() {
451
451
  return r.item;
@@ -475,7 +475,7 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
475
475
  }
476
476
  });
477
477
  }, A = /*#__PURE__*/ l("<div>"), F = e => {
478
- const [r, s] = $(e, [ "ref", "data", "children", "bufferSize", "itemSize", "ssrCount", "shift", "horizontal", "keepMounted", "cache", "item", "onScroll", "onScrollEnd", "style" ]);
478
+ const [r, s] = m(e, [ "ref", "data", "children", "bufferSize", "itemSize", "ssrCount", "shift", "horizontal", "keepMounted", "cache", "item", "onScroll", "onScrollEnd", "style" ]);
479
479
  return l = A(), i(l, o(s, {
480
480
  get style() {
481
481
  return {
@@ -532,10 +532,10 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
532
532
  var l;
533
533
  }, G = /*#__PURE__*/ l('<div style="contain:size style;overflow-anchor:none;flex:none;position:relative">'), K = e => {
534
534
  let o;
535
- const {ref: i, data: l, children: a, itemSize: h, ssrCount: $, shift: z, horizontal: b = !1, cache: w, onScrollEnd: I} = e, [x, y] = d(!!$), _ = P(e.data.length, h, w), T = q(_, $), C = ((e, t) => {
535
+ const {ref: i, data: l, children: a, itemSize: h, ssrCount: m, shift: z, horizontal: b = !1, cache: w, onScrollEnd: I} = e, [y, x] = d(!!m), _ = D(e.data.length, h, w), T = q(_, m), C = ((e, t) => {
536
536
  let r, n, o, s = O(), i = !1;
537
537
  const l = t ? "left" : "top", [c] = N(e, () => s[0], (e, t) => {
538
- e = j(e, i);
538
+ e = H(e, i);
539
539
  const n = R(L(r));
540
540
  t ? n.scroll({
541
541
  [l]: e,
@@ -543,14 +543,14 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
543
543
  }) : n.scroll({
544
544
  [l]: e
545
545
  });
546
- }), u = t ? "width" : "height", a = /* @__PURE__ */ new WeakMap, f = D(t => {
546
+ }), u = t ? "width" : "height", a = /* @__PURE__ */ new WeakMap, f = j(t => {
547
547
  const r = [];
548
548
  for (const {target: e, contentRect: n} of t) {
549
549
  if (!e.offsetParent) continue;
550
550
  const t = a.get(e);
551
551
  null != t && r.push([ t, n[u] ]);
552
552
  }
553
- r.length && e.J(3, r);
553
+ r.length && e.P(3, r);
554
554
  }), g = (e, t, r, n, o = 0) => {
555
555
  const s = n ? "offsetLeft" : "offsetTop", l = o + (n && i ? r.innerWidth - e[s] - e.offsetWidth : e[s]), c = e.offsetParent;
556
556
  return e !== t && c ? g(c, t, r, n, l) : l;
@@ -559,23 +559,23 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
559
559
  re(c) {
560
560
  r = c;
561
561
  const u = t ? "scrollX" : "scrollY", a = L(c), f = R(a), d = () => {
562
- e.J(4, f[t ? "innerWidth" : "innerHeight"]);
562
+ e.P(4, f[t ? "innerWidth" : "innerHeight"]);
563
563
  };
564
564
  f.addEventListener("resize", d), k(d), o = () => {
565
565
  f.removeEventListener("resize", d);
566
- }, t && (i = "rtl" === getComputedStyle(M(a)).direction), n = H(e, f, t, () => j(f[u], i), (t, r) => {
566
+ }, t && (i = "rtl" === getComputedStyle(M(a)).direction), n = J(e, f, t, () => H(f[u], i), (t, r) => {
567
567
  r ? f.scroll({
568
- [l]: j(e.M() + t, i)
568
+ [l]: H(e.M() + t, i)
569
569
  }) : f.scrollBy({
570
- [l]: j(t, i)
570
+ [l]: H(t, i)
571
571
  });
572
572
  }, () => g(c, a.body, f, t)), s[1](!0);
573
573
  },
574
574
  I() {
575
- o && o(), f.H(), n && n.H(), r = void 0, s[1](!1), s = O();
575
+ o && o(), f.J(), n && n.J(), r = void 0, s[1](!1), s = O();
576
576
  },
577
- ne: (e, t) => (a.set(e, t), f.D(e), () => {
578
- a.delete(e), f.j(e);
577
+ ne: (e, t) => (a.set(e, t), f.j(e), () => {
578
+ a.delete(e), f.H(e);
579
579
  }),
580
580
  oe: () => i,
581
581
  W: c,
@@ -599,15 +599,15 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
599
599
  }), T.B(8, () => {
600
600
  e.onScrollEnd?.();
601
601
  });
602
- const J = g(t => {
602
+ const P = g(t => {
603
603
  E();
604
604
  const r = T.o(e.bufferSize);
605
605
  return t && Y(t, r) ? t : r;
606
- }), V = g(() => E() && T.L()), U = g(() => E() && T.m()), A = g(() => E() && C.oe());
607
- S(() => {
608
- y(!1), e.ref && e.ref({
606
+ }), V = g(() => E() && T.L()), U = g(() => E() && T.$()), A = g(() => E() && C.oe());
607
+ v(() => {
608
+ x(!1), e.ref && e.ref({
609
609
  get cache() {
610
- return _.P();
610
+ return _.D();
611
611
  },
612
612
  get scrollOffset() {
613
613
  return T.M();
@@ -619,7 +619,7 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
619
619
  getItemOffset: T.l,
620
620
  getItemSize: T.u,
621
621
  scrollToIndex: (e, t) => W(C, T, e, t)
622
- }), C.re(o), m(() => {
622
+ }), C.re(o), $(() => {
623
623
  e.ref && e.ref(), T.I(), C.I();
624
624
  });
625
625
  }), f(p(E, () => {
@@ -627,11 +627,11 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
627
627
  }));
628
628
  const F = g(() => {
629
629
  const t = e.data.length;
630
- v(() => {
631
- t !== T.T() && T.J(5, [ t, e.shift ]);
630
+ S(() => {
631
+ t !== T.T() && T.P(5, [ t, e.shift ]);
632
632
  });
633
633
  const r = [];
634
- for (let [t, n] = J(); t <= n; t++) r.push(e.data[t]);
634
+ for (let [t, n] = P(); t <= n; t++) r.push(e.data[t]);
635
635
  return r;
636
636
  });
637
637
  return K = G(), "function" == typeof o ? c(o, K) : o = K, n(K, t(u, {
@@ -639,8 +639,8 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
639
639
  return F();
640
640
  },
641
641
  children: (r, n) => {
642
- const o = g(() => J()[0] + n()), s = g(() => (E(), T.l(o(), A()))), i = g(() => (E(),
643
- T.O(o()))), l = g(() => v(() => e.children(r, o)));
642
+ const o = g(() => P()[0] + n()), s = g(() => (E(), T.l(o(), A()))), i = g(() => (E(),
643
+ T.O(o()))), l = g(() => S(() => e.children(r, o)));
644
644
  return t(X, {
645
645
  get F() {
646
646
  return o();
@@ -659,7 +659,7 @@ var {min: z, max: b, abs: w, floor: I} = Math, x = (e, t, r) => z(r, b(t, e)), y
659
659
  },
660
660
  G: b,
661
661
  get Z() {
662
- return x();
662
+ return y();
663
663
  }
664
664
  });
665
665
  }