virtua 0.52.7 → 0.52.8

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/lib/vue/index.cjs CHANGED
@@ -12,92 +12,85 @@ var t, o = [], {min: r, max: n, abs: s, floor: l} = Math, i = (e, t, o) => r(o,
12
12
  e = t;
13
13
  }), e ];
14
14
  }, p = e => e.ownerDocument, m = e => e.defaultView, _ = () => (null == t && (t = /iP(hone|od|ad)/.test(navigator.userAgent) || "MacIntel" === navigator.platform && navigator.maxTouchPoints > 0),
15
- t), g = e => n(e.t(), e.o()), $ = ({l: e, i: t, u: o, p: l, m: i, h: c, t: a, S: u, v: f, I: d}, p = 0) => {
16
- let m = !!d, g = !!p, $ = 1, h = 0, w = 0, S = 0, y = 0, b = 0, z = 0, x = 0, v = 0, I = null, k = [ 0, g ? n(p - 1, 0) : -1 ], O = 0, T = !1;
17
- const R = /* @__PURE__ */ new Set, M = () => S - w, N = () => M() + b + y, A = e => o(e) - b, C = e => {
18
- e && (_() && 0 !== x || I && 1 === v ? b += e : y += e);
15
+ t), g = e => n(e.t(), e.o()), $ = ({l: e, i: t, u: o, p: l, m: i, t: c, h: a, S: u, v: f, I: d, k: p}, m = 0) => {
16
+ let g = !!m, $ = 1, h = 0, w = 0, y = 0, S = 0, b = 0, x = 0, z = 0, v = 0, I = null, k = [ 0, g ? n(m - 1, 0) : -1 ], O = !1;
17
+ const T = /* @__PURE__ */ new Set, R = () => y - w, M = () => R() + b + S, N = e => o(e) - b, E = e => {
18
+ if (2 === v) return !0;
19
+ if (I && 1 === v) return e < I[0];
20
+ const t = R(), o = N(e), r = l(e);
21
+ return 1 !== z && 0 === v ? o + r <= t : o < t && o + r < t + h;
22
+ }, A = e => {
23
+ e && (_() && 0 !== z || I && 1 === v ? b += e : S += e);
19
24
  };
20
25
  return {
21
- k: () => {
22
- R.clear();
26
+ O: () => {
27
+ T.clear();
23
28
  },
24
- O: () => $,
29
+ T: () => $,
25
30
  l: (t = 200) => {
26
- if (!T || g) return k;
31
+ if (!O || g) return k;
27
32
  let o, s;
28
- if (z) [o, s] = k; else {
29
- let l = n(0, N()), i = l + h;
30
- m || (t = n(0, t), 1 !== x && (l -= t), 2 !== x && (i += t)), [o, s] = k = e(n(0, l), n(0, i)),
33
+ if (x) [o, s] = k; else {
34
+ let l = n(0, M()), i = l + h;
35
+ f() || (t = n(0, t), 1 !== z && (l -= t), 2 !== z && (i += t)), [o, s] = k = e(n(0, l), n(0, i)),
31
36
  I && (o = r(o, I[0]), s = n(s, I[1]));
32
37
  }
33
- return [ n(o, 0), r(s, u() - 1) ];
38
+ return [ n(o, 0), r(s, a() - 1) ];
34
39
  },
35
- T: e => t(e - w),
36
- R: c,
37
- u: A,
40
+ R: e => t(e - w),
41
+ M: i,
42
+ u: N,
38
43
  p: l,
39
- M: u,
40
- N: () => S,
41
- A: () => 0 !== x,
44
+ N: a,
45
+ A: () => y,
46
+ C: () => 0 !== z,
42
47
  o: () => h,
43
- C: () => w,
44
- t: a,
45
- j: () => (z = y, y = 0, [ z, 2 === v ]),
46
- q: (e, t) => {
48
+ j: () => w,
49
+ t: c,
50
+ q: () => (x = S, S = 0, [ x, 2 === v ]),
51
+ P: (e, t) => {
47
52
  const o = [ e, t ];
48
- return R.add(o), () => {
49
- R.delete(o);
53
+ return T.add(o), () => {
54
+ T.delete(o);
50
55
  };
51
56
  },
52
- P: (o, r) => {
53
- let n, u, p = 0;
54
- switch (o) {
57
+ B: (t, o) => {
58
+ let r, n, l = 0;
59
+ switch (t) {
55
60
  case 1:
56
61
  {
57
- if (r === S && 0 === v) break;
58
- const e = z;
59
- z = 0;
60
- const t = r - S, o = s(t);
61
- e && o < s(e) + 1 || 0 !== v || (x = t < 0 ? 2 : 1), g && (g = !1), S = r, p = 4;
62
- const n = M();
63
- n >= -h && n <= a() && (p += 1, u = o > h);
62
+ if (o === y && 0 === v) break;
63
+ const e = x;
64
+ x = 0;
65
+ const t = o - y, r = s(t);
66
+ e && r < s(e) + 1 || 0 !== v || (z = t < 0 ? 2 : 1), g && (g = !1), y = o, l = 4;
67
+ const i = R();
68
+ i >= -h && i <= c() && (l += 1, n = r > h);
64
69
  break;
65
70
  }
66
71
 
67
72
  case 2:
68
- p = 8, 0 !== x && (n = !0, p += 1), x = 0, v = 0, I = null;
73
+ l = 8, 0 !== z && (r = !0, l += 1), z = 0, v = 0, I = null;
69
74
  break;
70
75
 
71
76
  case 3:
72
77
  {
73
- const e = r.filter(([e, t]) => !c(e, t));
78
+ const e = o.filter(([e, t]) => !i(e, t));
74
79
  if (!e.length) break;
75
- C(e.reduce((e, [t, o]) => {
76
- let r;
77
- if (2 === v) r = !0; else if (I && 1 === v) r = t < I[0]; else {
78
- const e = M(), o = A(t), n = l(t);
79
- r = 1 !== x && 0 === v ? o + n <= e : o < e && o + n < e + h;
80
- }
81
- return r && (e += o - l(t)), e;
82
- }, 0));
83
- for (const [t, o] of e) {
84
- const e = l(t), r = i(t, o);
85
- m && (O += r ? o : o - e);
86
- }
87
- m && h && O > h && (C(d(t(N()))), m = !1), p = 3, u = !0;
80
+ A(d(e, E, M(), h)), l = 3, n = !0;
88
81
  break;
89
82
  }
90
83
 
91
84
  case 4:
92
- h !== r && (h || (T = u = !0), h = r, p = 3);
85
+ h !== o && (h || (O = n = !0), h = o, l = 3);
93
86
  break;
94
87
 
95
88
  case 5:
96
- r[1] ? (C(f(r[0], !0)), v = 2, p = 1) : (f(r[0]), p = 1);
89
+ o[1] ? (A(u(o[0], !0)), v = 2, l = 1) : (u(o[0]), l = 1);
97
90
  break;
98
91
 
99
92
  case 6:
100
- w = r;
93
+ w = o;
101
94
  break;
102
95
 
103
96
  case 7:
@@ -105,14 +98,17 @@ t), g = e => n(e.t(), e.o()), $ = ({l: e, i: t, u: o, p: l, m: i, h: c, t: a, S:
105
98
  break;
106
99
 
107
100
  case 9:
108
- C(r), p = 3;
109
- break;
101
+ {
102
+ const e = p(o, M());
103
+ null != e && (A(e), l = 3);
104
+ break;
105
+ }
110
106
 
111
107
  case 8:
112
- I = e(r, r + h), p = 1;
108
+ I = e(o, o + h), l = 1;
113
109
  }
114
- p && ($ = 1 + (2147483647 & $), n && b && (y += b, b = 0), R.forEach(([e, t]) => {
115
- p & e && t(u);
110
+ l && ($ = 1 + (2147483647 & $), r && b && (S += b, b = 0), T.forEach(([e, t]) => {
111
+ l & e && t(n);
116
112
  }));
117
113
  }
118
114
  };
@@ -127,141 +123,141 @@ t), g = e => n(e.t(), e.o()), $ = ({l: e, i: t, u: o, p: l, m: i, h: c, t: a, S:
127
123
  e(t) <= o ? (s = t, r = t + 1) : n = t - 1;
128
124
  }
129
125
  return i(s, 0, t - 1);
130
- }, S = (e, t, o) => {
131
- let s = o && o[1] || t || 40, l = -1, i = 0;
132
- const a = o && o[0], u = a ? h(a.slice(0, r(e, a.length)), n(0, e - a.length)) : h([], e), f = h([], e + 1), d = e => {
133
- const t = u[e];
126
+ }, y = (e, t, o) => {
127
+ let s = o && o[1] || t || 40, l = -1, i = 0, a = !t, u = 0;
128
+ const f = o && o[0], d = f ? h(f.slice(0, r(e, f.length)), n(0, e - f.length)) : h([], e), p = h([], e + 1), m = e => {
129
+ const t = d[e];
134
130
  return -1 === t ? s : t;
135
- }, p = t => {
131
+ }, _ = t => {
136
132
  if (!e) return 0;
137
- if (l >= t) return f[t];
138
- l < 0 && (f[0] = 0, l = 0);
139
- let o = l, r = f[o];
140
- for (;o < t; ) r += d(o), f[++o] = r;
133
+ if (l >= t) return p[t];
134
+ l < 0 && (p[0] = 0, l = 0);
135
+ let o = l, r = p[o];
136
+ for (;o < t; ) r += m(o), p[++o] = r;
141
137
  return l = t, r;
142
138
  };
143
139
  return {
144
140
  l: (t, o) => {
145
141
  let n, s;
146
- return i = r(i, e - 1), p(i) <= t ? (s = w(p, e, o, i), n = w(p, e, t, i, s)) : (n = w(p, e, t, void 0, i),
147
- s = w(p, e, o, n)), i = n, [ n, s ];
142
+ return u = r(u, e - 1), _(u) <= t ? (s = w(_, e, o, u), n = w(_, e, t, u, s)) : (n = w(_, e, t, void 0, u),
143
+ s = w(_, e, o, n)), u = n, [ n, s ];
148
144
  },
149
- i: t => w(p, e, t),
150
- u: p,
151
- p: d,
152
- m: (e, t) => {
153
- const o = -1 === u[e];
154
- return u[e] = t, l = r(e, l), o;
145
+ i: t => w(_, e, t),
146
+ u: _,
147
+ p: m,
148
+ m: (e, t = -1) => d[e] === t,
149
+ I: (t, o, u, f) => {
150
+ let p = t.reduce((e, [t, r]) => o(t) ? e + (r - m(t)) : e, 0);
151
+ for (const [e, o] of t) i += -1 === d[e] ? o : o - m(e), d[e] = o, l = r(e, l);
152
+ if (a && f && i > f) {
153
+ let t = 0;
154
+ const o = w(_, e, u + p), r = [];
155
+ d.forEach((e, n) => {
156
+ -1 !== e && (e && r.push(e), n < o && t++);
157
+ }), l = -1, c(r);
158
+ const i = r.length, f = i / 2 | 0, m = i % 2 == 0 ? (r[f - 1] + r[f]) / 2 : r[f], g = s;
159
+ p += ((s = m) - g) * n(o - t, 0), a = !1;
160
+ }
161
+ return p;
155
162
  },
156
- h: (e, t = -1) => u[e] === t,
157
- t: () => p(e),
158
- S: () => e,
159
- v: (t, o) => {
163
+ t: () => _(e),
164
+ h: () => e,
165
+ S: (t, o) => {
160
166
  const n = t - e;
161
- return l = o ? -1 : r(t - 1, l), e = t, n > 0 ? (h(f, n), h(u, n, o), s * n) : (f.splice(n),
162
- (o ? u.splice(0, -n) : u.splice(n)).reduce((e, t) => e - (-1 === t ? s : t), 0));
167
+ return l = o ? -1 : r(t - 1, l), e = t, n > 0 ? (h(p, n), h(d, n, o), s * n) : (p.splice(n),
168
+ (o ? d.splice(0, -n) : d.splice(n)).reduce((e, t) => e - (-1 === t ? s : t), 0));
163
169
  },
164
- I: t ? void 0 : e => {
165
- let t = 0;
166
- const o = [];
167
- u.forEach((r, n) => {
168
- -1 !== r && (r && o.push(r), n < e && t++);
169
- }), l = -1, c(o);
170
- const r = o.length, i = r / 2 | 0, a = r % 2 == 0 ? (o[i - 1] + o[i]) / 2 : o[i], f = s;
171
- return ((s = a) - f) * n(e - t, 0);
172
- },
173
- B: () => [ u.slice(), s ]
170
+ v: () => a,
171
+ H: () => [ d.slice(), s ]
174
172
  };
175
- }, y = e => "number" == typeof e ? e : e.length, b = (e, t) => "number" == typeof e ? t : e[t], z = (e, t, o = 0) => {
176
- let s = y(e);
173
+ }, S = e => "number" == typeof e ? e : e.length, b = (e, t) => "number" == typeof e ? t : e[t], x = (e, t, o = 0) => {
174
+ let s = S(e);
177
175
  const a = "number" == typeof t, u = "auto" === t;
178
- let f = (a ? t : 40) + o, d = -1, p = 0, m = 0, _ = null;
179
- const g = [], $ = [], S = [], b = e => u || !!S[e], z = () => {
180
- g.length || h(g, s);
181
- }, x = e => {
182
- const t = g[e];
176
+ let f = (a ? t : 40) + o, d = -1, p = 0, m = u, _ = 0, g = 0, $ = null;
177
+ const y = [], b = [], x = [], z = e => u || !!x[e], v = () => {
178
+ y.length || h(y, s);
179
+ }, I = e => {
180
+ const t = y[e];
183
181
  return -1 === t ? f : t;
184
- }, v = e => {
182
+ }, k = e => {
185
183
  if (!s) return 0;
186
- if (!g.length) return e * f;
187
- if (d >= e) return $[e];
188
- d < 0 && ($[0] = 0, d = 0);
189
- let t = d, o = $[t];
190
- for (;t < e; ) o += x(t), $[++t] = o;
184
+ if (!y.length) return e * f;
185
+ if (d >= e) return b[e];
186
+ d < 0 && (b[0] = 0, d = 0);
187
+ let t = d, o = b[t];
188
+ for (;t < e; ) o += I(t), b[++t] = o;
191
189
  return d = e, o;
192
- }, I = (e, t) => {
193
- g[e] = t, d = r(e, d);
194
- }, k = e => g.length ? w(v, s, e) : f ? i(l(e / f), 0, s - 1) : 0, O = () => r(p, s), T = () => n(s - m, O());
190
+ }, O = (e, t) => {
191
+ y[e] = t, d = r(e, d);
192
+ }, T = e => y.length ? w(k, s, e) : f ? i(l(e / f), 0, s - 1) : 0, R = () => r(_, s), M = () => n(s - g, R()), N = e => (y.length ? I(e) : f) - o;
195
193
  return {
196
194
  l: (e, t) => {
197
- const r = v(O()), l = v(s) - v(T()), i = e + (r ? r - o : 0);
198
- return [ k(i), k(n(i, t - (l ? l - o : 0))) ];
195
+ const r = k(R()), l = k(s) - k(M()), i = e + (r ? r - o : 0);
196
+ return [ T(i), T(n(i, t - (l ? l - o : 0))) ];
197
+ },
198
+ i: T,
199
+ u: k,
200
+ p: N,
201
+ I: (e, t, r, s) => {
202
+ let l = e.reduce((e, [o, r]) => z(o) && t(o) ? e + (r - N(o)) : e, 0);
203
+ for (const [t, r] of e) z(t) && (v(), p += -1 === y[t] ? r : r - N(t), O(t, r + o));
204
+ if (m && s && p > s) {
205
+ let e = 0;
206
+ const t = T(r + l), o = [];
207
+ y.forEach((r, n) => {
208
+ -1 !== r && (r && o.push(r), n < t && e++);
209
+ }), d = -1, c(o);
210
+ const s = o.length, i = s / 2 | 0, a = s % 2 == 0 ? (o[i - 1] + o[i]) / 2 : o[i], u = f;
211
+ l += ((f = a) - u) * n(t - e, 0), m = !1;
212
+ }
213
+ return l;
199
214
  },
200
- i: k,
201
- u: v,
202
- p: e => (g.length ? x(e) : f) - o,
203
- m: (e, t) => {
204
- if (!b(e)) return !1;
205
- z();
206
- const r = -1 === g[e];
207
- return I(e, t + o), r;
215
+ m: (e, t = -1) => {
216
+ const r = y.length ? y[e] : -1;
217
+ return -1 === t ? z(e) && -1 === r : r === t + o;
208
218
  },
209
- h: (e, t) => (g.length ? g[e] : -1) === t + o,
210
- t: () => s ? v(s) - o : 0,
211
- S: () => s,
212
- v: e => {
219
+ t: () => s ? k(s) - o : 0,
220
+ h: () => s,
221
+ S: e => {
213
222
  const t = e - s;
214
- return d = r(e - 1, d), s = e, g.length && (t > 0 ? h(g, t) : g.splice(t)), 0;
223
+ return d = r(e - 1, d), s = e, y.length && (t > 0 ? h(y, t) : y.splice(t)), 0;
215
224
  },
216
- I: u ? e => {
217
- let t = 0;
218
- const o = [];
219
- g.forEach((r, n) => {
220
- -1 !== r && (r && o.push(r), n < e && t++);
221
- }), d = -1, c(o);
222
- const r = o.length, s = r / 2 | 0, l = r % 2 == 0 ? (o[s - 1] + o[s]) / 2 : o[s], i = f;
223
- return ((f = l) - i) * n(e - t, 0);
224
- } : void 0,
225
- H: b,
226
- L: (e = 0, t = 0) => {
227
- p = e, m = t;
225
+ v: () => m,
226
+ L: z,
227
+ W: (e = 0, t = 0) => {
228
+ _ = e, g = t;
228
229
  },
229
- W: O,
230
- V: T,
231
- D: (e, t) => "number" == typeof t ? a ? t : null : a || u || "auto" === t ? null : e.map(e => null != e ? e[t] : null),
232
- F: (e, t) => {
230
+ V: R,
231
+ F: M,
232
+ X: (e, t) => "number" == typeof t ? a ? t : null : a || u || "auto" === t ? null : e.map(e => null != e ? e[t] : null),
233
+ k: (e, t) => {
233
234
  if (null == e) return;
234
235
  if ("number" == typeof e) {
235
236
  const r = e + o;
236
237
  if (r === f) return;
237
- const n = k(t) * (r - f);
238
+ const n = T(t) * (r - f);
238
239
  return f = r, n;
239
240
  }
240
- if (e === _ && s === S.length) return;
241
- _ = e, S.length = s, z();
242
- const r = k(t), n = v(r);
241
+ if (e === $ && s === x.length) return;
242
+ $ = e, x.length = s, v();
243
+ const r = T(t), n = k(r);
243
244
  let l;
244
245
  for (let t = 0; t < s; t++) {
245
246
  const r = e[t], n = "number" != typeof r;
246
- if (!n || !S[t]) {
247
- S[t] = n;
247
+ if (!n || !x[t]) {
248
+ x[t] = n;
248
249
  const e = n ? -1 : r + o;
249
- g[t] !== e && (I(t, e), l = !0);
250
+ y[t] !== e && (O(t, e), l = !0);
250
251
  }
251
252
  }
252
- return l ? v(r) - n : void 0;
253
+ return l ? k(r) - n : void 0;
253
254
  }
254
255
  };
255
- }, x = (e, t, o, r, n, s) => {
256
- const l = y(o);
257
- t.L(n, s), l !== e.M() && e.P(5, [ l ]);
258
- const i = t.F(r, e.N() - e.u(0));
259
- null != i && e.P(9, i);
260
- }, v = /*#__PURE__*/ new WeakMap, I = (e, t, o) => {
256
+ }, z = /*#__PURE__*/ new WeakMap, v = (e, t, o) => {
261
257
  const r = [];
262
258
  for (const n of e) n >= t && n < o && r.push(n);
263
259
  return c(r);
264
- }, k = (e, t, o) => {
260
+ }, I = (e, t, o) => {
265
261
  if (t >= o) return -1;
266
262
  let r = 0, n = e.length;
267
263
  for (;r < n; ) {
@@ -269,22 +265,22 @@ t), g = e => n(e.t(), e.o()), $ = ({l: e, i: t, u: o, p: l, m: i, h: c, t: a, S:
269
265
  e[o] <= t ? r = o + 1 : n = o;
270
266
  }
271
267
  return r - 1;
272
- }, O = (e, t, o, r, n) => {
268
+ }, k = (e, t, o, r, n) => {
273
269
  const s = t.length;
274
270
  for (;o < s && t[o] < r; o++) {
275
271
  const r = t[o];
276
272
  r > n && (e.push(r), n = r);
277
273
  }
278
274
  return o;
279
- }, T = (e, t, o, r, n, s) => {
275
+ }, O = (e, t, o, r, n, s) => {
280
276
  const l = [];
281
277
  for (let e = 0; e < o; e++) l.push(e);
282
- const i = O(l, e, 0, r, o - 1);
278
+ const i = k(l, e, 0, r, o - 1);
283
279
  for (let e = r; e <= n; e++) l.push(e);
284
- O(l, e, i, s, n);
280
+ k(l, e, i, s, n);
285
281
  for (let e = s; e < t; e++) l.push(e);
286
282
  return l;
287
- }, R = (e, t) => r(e.rowIndex + (e.rowSpan || 1), t), M = (e, t) => r(e.colIndex + (e.colSpan || 1), t), N = (e, t, o, n, s, l) => {
283
+ }, T = (e, t) => r(e.rowIndex + (e.rowSpan || 1), t), R = (e, t) => r(e.colIndex + (e.colSpan || 1), t), M = (e, t, o, n, s, l) => {
288
284
  const i = t.length, c = n.length;
289
285
  let a = "[l0]", u = 0, f = 0, d = 0;
290
286
  for (;u < l; ) {
@@ -299,7 +295,7 @@ t), g = e => n(e.t(), e.o()), $ = ({l: e, i: t, u: o, p: l, m: i, h: c, t: a, S:
299
295
  a += " " + _ + " [l" + m + "]", u = m;
300
296
  }
301
297
  return a;
302
- }, A = (e, t, o, r, n) => {
298
+ }, N = (e, t, o, r, n) => {
303
299
  const s = {
304
300
  display: "grid",
305
301
  gridTemplateRows: "subgrid",
@@ -308,35 +304,35 @@ t), g = e => n(e.t(), e.o()), $ = ({l: e, i: t, u: o, p: l, m: i, h: c, t: a, S:
308
304
  gridRow: "l" + e + "/l" + t
309
305
  };
310
306
  return null != o && (s.position = "sticky", s[r] = o + "px", s.zIndex = n), s;
311
- }, C = e => {
307
+ }, E = e => {
312
308
  let t;
313
309
  return {
314
- X(o) {
310
+ Y(o) {
315
311
  (t || (t = new (m(p(o)).ResizeObserver)(e))).observe(o);
316
312
  },
317
- Y(e) {
313
+ J(e) {
318
314
  t.unobserve(e);
319
315
  },
320
- J() {
316
+ D() {
321
317
  t && t.disconnect();
322
318
  }
323
319
  };
324
- }, E = (e, t, o, r, n, s, l) => {
320
+ }, A = (e, t, o, r, n, s, l) => {
325
321
  let i, c, d = 0, p = !1, m = !1, g = !1, $ = !1;
326
- const h = Date.now, w = r ? "scrollLeft" : "scrollTop", S = r ? "left" : "top", y = e => n ? -e : e, b = () => y(o[w]), z = (e, t) => {
322
+ const h = Date.now, w = r ? "scrollLeft" : "scrollTop", y = r ? "left" : "top", S = e => n ? -e : e, b = () => S(o[w]), x = (e, t) => {
327
323
  o.scrollTo({
328
- [S]: y(e),
324
+ [y]: S(e),
329
325
  behavior: t ? "smooth" : "instant"
330
326
  });
331
- }, x = () => {
327
+ }, z = () => {
332
328
  if (p || m) return p = !1, void v();
333
- g = !1, e.P(2);
329
+ g = !1, e.B(2);
334
330
  }, v = () => {
335
- u(c), c = a(x, 150);
331
+ u(c), c = a(z, 150);
336
332
  }, I = () => {
337
- d = h(), g && ($ = !0), l && e.P(6, l()), e.P(1, b()), v();
333
+ d = h(), g && ($ = !0), l && e.B(6, l()), e.B(1, b()), v();
338
334
  }, k = t => {
339
- if (p || !e.A() || t.ctrlKey) return;
335
+ if (p || !e.C() || t.ctrlKey) return;
340
336
  const o = h() - d;
341
337
  150 > o && 50 < o && (r ? t.deltaX : t.deltaY) && (p = !0);
342
338
  }, O = () => {
@@ -351,19 +347,19 @@ t), g = e => n(e.t(), e.o()), $ = ({l: e, i: t, u: o, p: l, m: i, h: c, t: a, S:
351
347
  }), t.addEventListener("touchend", T, {
352
348
  passive: !0
353
349
  }), {
354
- J: () => {
350
+ D: () => {
355
351
  t.removeEventListener("scroll", I), t.removeEventListener("wheel", k), t.removeEventListener("touchstart", O),
356
352
  t.removeEventListener("touchend", T), u(c);
357
353
  },
358
354
  U: () => {
359
- const [t, r] = e.j();
355
+ const [t, r] = e.q();
360
356
  if (!t) return;
361
357
  $ && s && s(), $ = !1;
362
- const n = e.N() + t;
363
- n <= 0 || n >= e.C() + e.t() - e.o() ? z(n) : o.scrollBy({
364
- [S]: y(t),
358
+ const n = e.A(), l = n + t, c = e.j() + e.t() - e.o();
359
+ l <= 0 || l >= c || n >= c ? x(l) : o.scrollBy({
360
+ [y]: S(t),
365
361
  behavior: "instant"
366
- }), r && (i && i(), e.o() > e.t() && e.P(1, b()));
362
+ }), r && (i && i(), e.o() > e.t() && e.B(1, b()));
367
363
  },
368
364
  G: (t, o) => {
369
365
  let r, n, s;
@@ -373,41 +369,41 @@ t), g = e => n(e.t(), e.o()), $ = ({l: e, i: t, u: o, p: l, m: i, h: c, t: a, S:
373
369
  }, c = () => {
374
370
  if (!r) {
375
371
  if (e.o() && (u(n), n = a(l, 150)), o) {
376
- for (let [t, o] = e.l(0); t <= o; t++) if (e.R(t)) return;
372
+ for (let [t, o] = e.l(0); t <= o; t++) if (e.M(t)) return;
377
373
  l();
378
374
  }
379
- e.P(7), z(t(), o);
375
+ e.B(7), x(t(), o);
380
376
  }
381
377
  }, d = () => {
382
378
  if (r) return;
383
379
  let t;
384
- s = e.q(2, () => {
380
+ s = e.P(2, () => {
385
381
  t || (t = !0, f(() => {
386
382
  t = !1, c();
387
383
  }));
388
384
  }), c();
389
385
  };
390
- o ? (e.P(8, t()), f(d)) : d();
386
+ o ? (e.B(8, t()), f(d)) : d();
391
387
  }
392
388
  };
393
- }, j = (e, t) => {
389
+ }, C = (e, t) => {
394
390
  e.K(() => t);
395
- }, q = (e, t, o, {align: r, smooth: n, offset: s = 0} = {}) => {
396
- if (o = i(o, 0, t.M() - 1), "nearest" === r) {
397
- const e = t.u(o), n = t.N();
391
+ }, j = (e, t, o, {align: r, smooth: n, offset: s = 0} = {}) => {
392
+ if (o = i(o, 0, t.N() - 1), "nearest" === r) {
393
+ const e = t.u(o), n = t.A();
398
394
  if (e < n) r = "start"; else {
399
395
  if (!(e + t.p(o) > n + t.o())) return;
400
396
  r = "end";
401
397
  }
402
398
  }
403
399
  e.K(() => s + e.Z() + t.u(o) + ("end" === r ? t.p(o) - t.o() : "center" === r ? (t.p(o) - t.o()) / 2 : 0), n);
404
- }, P = (e, t, o, s, l, c, a) => {
405
- const u = t.M(), f = o.W(), d = o.V();
400
+ }, q = (e, t, o, s, l, c, a) => {
401
+ const u = t.N(), f = o.V(), d = o.F();
406
402
  l = i(l, 0, u - 1);
407
- const p = I(s, f, d), m = k(p, l, d), _ = m < 0 ? -1 : p[m], g = () => o.u(f) + (_ < 0 || _ === l ? 0 : o.u(_ + 1) - o.u(_)), $ = () => o.u(u) - o.u(d);
403
+ const p = v(s, f, d), m = I(p, l, d), _ = m < 0 ? -1 : p[m], g = () => o.u(f) + (_ < 0 || _ === l ? 0 : o.u(_ + 1) - o.u(_)), $ = () => o.u(u) - o.u(d);
408
404
  if ("nearest" === c) {
409
405
  if (l < f || l >= d) return;
410
- const e = g(), o = t.N() + e, s = t.o() - e - $(), i = t.p(l);
406
+ const e = g(), o = t.A() + e, s = t.o() - e - $(), i = t.p(l);
411
407
  let a = t.u(l);
412
408
  if (_ === l) {
413
409
  const e = (m + 1 < p.length ? p[m + 1] : d) - 1;
@@ -422,9 +418,9 @@ t), g = e => n(e.t(), e.o()), $ = ({l: e, i: t, u: o, p: l, m: i, h: c, t: a, S:
422
418
  const e = g(), o = t.p(l) - (t.o() - e - $());
423
419
  return t.u(l) - e + ("end" === c ? o : "center" === c ? o / 2 : 0);
424
420
  });
425
- }, B = /* @__PURE__ */ /* @__PURE__ */ (0, e.defineComponent)(t => {
421
+ }, P = /* @__PURE__ */ /* @__PURE__ */ (0, e.defineComponent)(t => {
426
422
  const o = (0, e.ref)(), r = (0, e.computed)(() => t.ee.value && t.te.u(t.oe)), n = (0,
427
- e.computed)(() => t.ee.value && t.te.R(t.oe)), s = (0, e.computed)(() => t.re({
423
+ e.computed)(() => t.ee.value && t.te.M(t.oe)), s = (0, e.computed)(() => t.re({
428
424
  item: t.ne,
429
425
  index: t.oe
430
426
  }));
@@ -465,13 +461,13 @@ t), g = e => n(e.t(), e.o()), $ = ({l: e, i: t, u: o, p: l, m: i, h: c, t: a, S:
465
461
  ce: null,
466
462
  ae: null
467
463
  }
468
- }), H = (e, t) => {
464
+ }), B = (e, t) => {
469
465
  if (1 === e.length) {
470
466
  const t = e[0].key;
471
467
  if (null != t) return t;
472
468
  }
473
469
  return "_" + t;
474
- }, L = (e, t) => e[0] === t[0] && e[1] === t[1], W = /* @__PURE__ */ /* @__PURE__ */ (0,
470
+ }, H = (e, t) => e[0] === t[0] && e[1] === t[1], L = /* @__PURE__ */ /* @__PURE__ */ (0,
475
471
  e.defineComponent)({
476
472
  props: {
477
473
  data: {
@@ -503,30 +499,30 @@ e.defineComponent)({
503
499
  emits: [ "scroll", "scrollEnd" ],
504
500
  setup(t, {emit: o, expose: r, slots: n}) {
505
501
  let s = !!t.ssrCount;
506
- const l = t.horizontal, i = (0, e.ref)(), u = S(t.data.length, t.itemSize, t.cache), f = $(u, t.ssrCount), p = ((e, t) => {
502
+ const l = t.horizontal, i = (0, e.ref)(), u = y(t.data.length, t.itemSize, t.cache), f = $(u, t.ssrCount), p = ((e, t) => {
507
503
  let o, r, n = d();
508
- const s = /* @__PURE__ */ new WeakMap, l = C(r => {
504
+ const s = /* @__PURE__ */ new WeakMap, l = E(r => {
509
505
  const n = [];
510
- for (const {target: l, contentRect: {width: i, height: c}} of r) if (l === o) (i || c) && e.P(4, t ? i : c); else if (l.offsetParent) {
506
+ for (const {target: l, contentRect: {width: i, height: c}} of r) if (l === o) (i || c) && e.B(4, t ? i : c); else if (l.offsetParent) {
511
507
  const e = s.get(l);
512
508
  null != e && n.push([ e, t ? i : c ]);
513
509
  }
514
- n.length && e.P(3, n);
510
+ n.length && e.B(3, n);
515
511
  });
516
512
  return {
517
513
  ue(s, i = s.parentElement) {
518
- l.X(o = i), r = E(e, i, i, t, t && "rtl" === getComputedStyle(i).direction, () => {
514
+ l.Y(o = i), r = A(e, i, i, t, t && "rtl" === getComputedStyle(i).direction, () => {
519
515
  const e = t ? "overflowX" : "overflowY", o = i.style, r = o[e];
520
516
  o[e] = "hidden", a(() => {
521
517
  o[e] = r;
522
518
  });
523
519
  }), n[1](!0);
524
520
  },
525
- k() {
526
- l.J(), r && r.J(), n[1](!1), n = d();
521
+ O() {
522
+ l.D(), r && r.D(), n[1](!1), n = d();
527
523
  },
528
- fe: (e, t) => (s.set(e, t), l.X(e), () => {
529
- s.delete(e), l.Y(e);
524
+ fe: (e, t) => (s.set(e, t), l.Y(e), () => {
525
+ s.delete(e), l.J(e);
530
526
  }),
531
527
  async K(e, t) {
532
528
  await n[0] && r.G(e, t);
@@ -534,21 +530,21 @@ e.defineComponent)({
534
530
  de() {
535
531
  r && r.U();
536
532
  },
537
- Z: e.C
533
+ Z: e.j
538
534
  };
539
- })(f, l), m = (0, e.ref)(f.O());
540
- f.q(1, () => {
541
- m.value = f.O();
542
- }), f.q(4, () => {
543
- o("scroll", f.N());
544
- }), f.q(8, () => {
535
+ })(f, l), m = (0, e.ref)(f.T());
536
+ f.P(1, () => {
537
+ m.value = f.T();
538
+ }), f.P(4, () => {
539
+ o("scroll", f.A());
540
+ }), f.P(8, () => {
545
541
  o("scrollEnd");
546
542
  });
547
543
  const _ = (0, e.computed)(e => {
548
544
  m.value;
549
545
  const o = f.l(t.bufferSize);
550
- return e && L(e, o) ? e : o;
551
- }), h = (0, e.computed)(() => m.value && f.A()), w = (0, e.computed)(() => m.value && f.t());
546
+ return e && H(e, o) ? e : o;
547
+ }), h = (0, e.computed)(() => m.value && f.C()), w = (0, e.computed)(() => m.value && f.t());
552
548
  return (0, e.onMounted)(() => {
553
549
  s = !1;
554
550
  const o = i.value, r = requestAnimationFrame(() => {
@@ -558,11 +554,11 @@ e.defineComponent)({
558
554
  cancelAnimationFrame(r);
559
555
  });
560
556
  }), (0, e.onUnmounted)(() => {
561
- f.k(), p.k();
557
+ f.O(), p.O();
562
558
  }), (0, e.watch)(() => t.data.length, e => {
563
- f.P(5, [ e, t.shift ]);
559
+ f.B(5, [ e, t.shift ]);
564
560
  }), (0, e.watch)(() => t.startMargin, e => {
565
- f.P(6, e);
561
+ f.B(6, e);
566
562
  }, {
567
563
  immediate: !0
568
564
  }), (0, e.watch)([ m ], () => {
@@ -571,10 +567,10 @@ e.defineComponent)({
571
567
  flush: "post"
572
568
  }), r({
573
569
  get cache() {
574
- return u.B();
570
+ return u.H();
575
571
  },
576
572
  get scrollOffset() {
577
- return f.N();
573
+ return f.A();
578
574
  },
579
575
  get scrollSize() {
580
576
  return g(f);
@@ -582,13 +578,13 @@ e.defineComponent)({
582
578
  get viewportSize() {
583
579
  return f.o();
584
580
  },
585
- findItemIndex: f.T,
581
+ findItemIndex: f.R,
586
582
  getItemOffset: f.u,
587
583
  getItemSize: f.p,
588
- scrollToIndex: (e, t) => q(p, f, e, t),
589
- scrollTo: e => j(p, e),
584
+ scrollToIndex: (e, t) => j(p, f, e, t),
585
+ scrollTo: e => C(p, e),
590
586
  scrollBy: e => ((e, t, o) => {
591
- j(e, o + t.N());
587
+ C(e, o + t.A());
592
588
  })(p, f, e)
593
589
  }), () => {
594
590
  const o = t.as, r = t.item, a = w.value, u = [], d = o => {
@@ -596,8 +592,8 @@ e.defineComponent)({
596
592
  item: t.data[o],
597
593
  index: o
598
594
  });
599
- return (0, e.createVNode)(B, {
600
- key: H(i, o),
595
+ return (0, e.createVNode)(P, {
596
+ key: B(i, o),
601
597
  ee: m,
602
598
  te: f,
603
599
  se: p.fe,
@@ -636,7 +632,7 @@ e.defineComponent)({
636
632
  var g;
637
633
  };
638
634
  }
639
- }), V = /* @__PURE__ */ /* @__PURE__ */ (0, e.defineComponent)({
635
+ }), W = /* @__PURE__ */ /* @__PURE__ */ (0, e.defineComponent)({
640
636
  props: {
641
637
  data: {
642
638
  type: Array,
@@ -686,7 +682,7 @@ e.defineComponent)({
686
682
  width: "100%",
687
683
  height: "100%"
688
684
  }
689
- }, [ (0, e.createVNode)(W, {
685
+ }, [ (0, e.createVNode)(L, {
690
686
  ref: c,
691
687
  data: t.data,
692
688
  bufferSize: t.bufferSize,
@@ -707,7 +703,7 @@ e.defineComponent)({
707
703
  var o;
708
704
  };
709
705
  }
710
- }), D = /* @__PURE__ */ /* @__PURE__ */ (0, e.defineComponent)({
706
+ }), V = /* @__PURE__ */ /* @__PURE__ */ (0, e.defineComponent)({
711
707
  props: {
712
708
  data: {
713
709
  type: Array,
@@ -731,15 +727,15 @@ e.defineComponent)({
731
727
  emits: [ "scroll", "scrollEnd" ],
732
728
  setup(t, {emit: o, slots: r, expose: n}) {
733
729
  let s = !!t.ssrCount;
734
- const l = t.horizontal, i = (0, e.ref)(), c = S(t.data.length, t.itemSize, t.cache), a = $(c, t.ssrCount), u = ((e, t) => {
730
+ const l = t.horizontal, i = (0, e.ref)(), c = y(t.data.length, t.itemSize, t.cache), a = $(c, t.ssrCount), u = ((e, t) => {
735
731
  let o, r, n, s, l, i = d();
736
- const c = /* @__PURE__ */ new WeakMap, a = C(r => {
732
+ const c = /* @__PURE__ */ new WeakMap, a = E(r => {
737
733
  const n = [];
738
734
  for (const {target: e, contentRect: {width: s, height: i}} of r) if (e === o) l && l(); else if (e.offsetParent) {
739
735
  const o = c.get(e);
740
736
  null != o && n.push([ o, t ? s : i ]);
741
737
  }
742
- n.length && e.P(3, n);
738
+ n.length && e.B(3, n);
743
739
  });
744
740
  return {
745
741
  ue(c) {
@@ -747,17 +743,17 @@ e.defineComponent)({
747
743
  const s = r ? "offsetLeft" : "offsetTop", l = n + (_ ? t.clientWidth - e[s] - e.offsetWidth : e[s]), i = e.offsetParent;
748
744
  return e !== o && i ? g(i, t, o, r, l) : l;
749
745
  }, $ = s = () => g(c, d, u.body, t), h = l = () => {
750
- e.P(4, d[t ? "clientWidth" : "clientHeight"]);
746
+ e.B(4, d[t ? "clientWidth" : "clientHeight"]);
751
747
  };
752
- f.addEventListener("resize", h), a.X(d), n = () => {
748
+ f.addEventListener("resize", h), a.Y(d), n = () => {
753
749
  f.removeEventListener("resize", h);
754
- }, r = E(e, f, d, t, _, null, $), i[1](!0);
750
+ }, r = A(e, f, d, t, _, null, $), i[1](!0);
755
751
  },
756
- k() {
757
- n && n(), a.J(), r && r.J(), i[1](!1), i = d();
752
+ O() {
753
+ n && n(), a.D(), r && r.D(), i[1](!1), i = d();
758
754
  },
759
- fe: (e, t) => (c.set(e, t), a.X(e), () => {
760
- c.delete(e), a.Y(e);
755
+ fe: (e, t) => (c.set(e, t), a.Y(e), () => {
756
+ c.delete(e), a.J(e);
761
757
  }),
762
758
  async K(e, t) {
763
759
  await i[0] && r.G(e, t);
@@ -767,45 +763,45 @@ e.defineComponent)({
767
763
  },
768
764
  Z: () => s()
769
765
  };
770
- })(a, l), f = (0, e.ref)(a.O());
771
- a.q(1, () => {
772
- f.value = a.O();
773
- }), a.q(4, () => {
766
+ })(a, l), f = (0, e.ref)(a.T());
767
+ a.P(1, () => {
768
+ f.value = a.T();
769
+ }), a.P(4, () => {
774
770
  o("scroll");
775
- }), a.q(8, () => {
771
+ }), a.P(8, () => {
776
772
  o("scrollEnd");
777
773
  });
778
774
  const _ = (0, e.computed)(e => {
779
775
  f.value;
780
776
  const o = a.l(t.bufferSize);
781
- return e && L(e, o) ? e : o;
782
- }), g = (0, e.computed)(() => f.value && a.A()), h = (0, e.computed)(() => f.value && a.t());
777
+ return e && H(e, o) ? e : o;
778
+ }), g = (0, e.computed)(() => f.value && a.C()), h = (0, e.computed)(() => f.value && a.t());
783
779
  return (0, e.onMounted)(() => {
784
780
  s = !1;
785
781
  const e = i.value;
786
782
  e && u.ue(e);
787
783
  }), (0, e.onUnmounted)(() => {
788
- a.k(), u.k();
784
+ a.O(), u.O();
789
785
  }), (0, e.watch)(() => t.data.length, e => {
790
- a.P(5, [ e, t.shift ]);
786
+ a.B(5, [ e, t.shift ]);
791
787
  }), (0, e.watch)([ f ], () => {
792
788
  u.de();
793
789
  }, {
794
790
  flush: "post"
795
791
  }), n({
796
792
  get cache() {
797
- return c.B();
793
+ return c.H();
798
794
  },
799
795
  get scrollOffset() {
800
- return a.N();
796
+ return a.A();
801
797
  },
802
798
  get viewportSize() {
803
799
  return a.o();
804
800
  },
805
- findItemIndex: a.T,
801
+ findItemIndex: a.R,
806
802
  getItemOffset: a.u,
807
803
  getItemSize: a.p,
808
- scrollToIndex: (e, t) => q(u, a, e, t)
804
+ scrollToIndex: (e, t) => j(u, a, e, t)
809
805
  }), () => {
810
806
  const o = t.as, n = t.item, c = h.value, d = [];
811
807
  for (let [o, i] = _.value; o <= i; o++) {
@@ -813,8 +809,8 @@ e.defineComponent)({
813
809
  item: t.data[o],
814
810
  index: o
815
811
  });
816
- d.push((0, e.createVNode)(B, {
817
- key: H(i, o),
812
+ d.push((0, e.createVNode)(P, {
813
+ key: B(i, o),
818
814
  ee: f,
819
815
  te: a,
820
816
  se: u.fe,
@@ -852,7 +848,7 @@ e.defineComponent)({
852
848
  }, {
853
849
  flush: "post"
854
850
  }), () => {
855
- const {ge: r, $e: n, he: s, we: l, Se: i, ye: c} = t.me;
851
+ const {ge: r, $e: n, he: s, we: l, ye: i, Se: c} = t.me;
856
852
  return (0, e.createVNode)("div", {
857
853
  ref: o,
858
854
  role: l,
@@ -863,9 +859,9 @@ e.defineComponent)({
863
859
  style: c
864
860
  }, [ t.re({
865
861
  row: t.be,
866
- col: t.ze,
862
+ col: t.xe,
867
863
  cell: {
868
- rowIndex: t.xe,
864
+ rowIndex: t.ze,
869
865
  colIndex: r
870
866
  }
871
867
  }) ], 12, [ "role", "aria-colindex", "aria-rowspan", "aria-colspan", "aria-sort" ]);
@@ -875,12 +871,12 @@ e.defineComponent)({
875
871
  me: null,
876
872
  re: null,
877
873
  be: null,
878
- ze: null,
879
874
  xe: null,
875
+ ze: null,
880
876
  se: null
881
877
  }
882
878
  }), X = /* @__PURE__ */ /* @__PURE__ */ (0, e.defineComponent)(t => () => {
883
- const {ve: o, Ie: r, ye: n} = t.me;
879
+ const {ve: o, Ie: r, Se: n} = t.me;
884
880
  return (0, e.createVNode)("div", {
885
881
  role: "row",
886
882
  "aria-rowindex": o + 1,
@@ -890,10 +886,10 @@ e.defineComponent)({
890
886
  me: r,
891
887
  re: t.re,
892
888
  be: t.be,
893
- ze: b(t.ke, r.ge),
894
- xe: o,
889
+ xe: b(t.ke, r.ge),
890
+ ze: o,
895
891
  se: t.se
896
- }, null, 8, [ "me", "re", "be", "ze", "xe", "se" ])) ], 12, [ "aria-rowindex" ]);
892
+ }, null, 8, [ "me", "re", "be", "xe", "ze", "se" ])) ], 12, [ "aria-rowindex" ]);
897
893
  }, {
898
894
  props: {
899
895
  me: null,
@@ -903,7 +899,7 @@ e.defineComponent)({
903
899
  se: null
904
900
  }
905
901
  }), Y = /* @__PURE__ */ /* @__PURE__ */ (0, e.defineComponent)(t => () => {
906
- const {Oe: o, ye: r} = t.me;
902
+ const {Oe: o, Se: r} = t.me;
907
903
  return (0, e.createVNode)("div", {
908
904
  role: "rowgroup",
909
905
  style: r
@@ -957,8 +953,8 @@ e.defineComponent)({
957
953
  },
958
954
  emits: [ "verticalScroll", "horizontalScroll", "scrollEnd" ],
959
955
  setup(t, {emit: s, expose: l, slots: u}) {
960
- const f = (0, e.ref)(), p = z(t.rows, t.rowHeight, t.gap), m = z(t.cols, t.colWidth, t.gap), _ = (0,
961
- e.computed)(() => p.D(t.rows, t.rowHeight)), h = (0, e.computed)(() => m.D(t.cols, t.colWidth)), w = (0,
956
+ const f = (0, e.ref)(), p = x(t.rows, t.rowHeight, t.gap), m = x(t.cols, t.colWidth, t.gap), _ = (0,
957
+ e.computed)(() => p.X(t.rows, t.rowHeight)), h = (0, e.computed)(() => m.X(t.cols, t.colWidth)), w = (0,
962
958
  e.computed)(() => ((e = o) => {
963
959
  const t = /* @__PURE__ */ new Map;
964
960
  for (const o of e) {
@@ -969,16 +965,16 @@ e.defineComponent)({
969
965
  }
970
966
  }
971
967
  return t;
972
- })(t.spans)), S = $(p), y = $(m), O = ((e, t) => {
968
+ })(t.spans)), y = $(p), k = $(m), C = ((e, t) => {
973
969
  let o, r, n, s = d();
974
- const l = /* @__PURE__ */ new WeakMap, i = /* @__PURE__ */ new WeakMap, c = C(r => {
970
+ const l = /* @__PURE__ */ new WeakMap, i = /* @__PURE__ */ new WeakMap, c = E(r => {
975
971
  const n = [], s = [];
976
- for (const {target: c, contentRect: {width: a, height: u}} of r) if (c === o) (a || u) && (e.P(4, u),
977
- t.P(4, a)); else if (c.offsetParent) {
972
+ for (const {target: c, contentRect: {width: a, height: u}} of r) if (c === o) (a || u) && (e.B(4, u),
973
+ t.B(4, a)); else if (c.offsetParent) {
978
974
  const e = l.get(c), t = i.get(c);
979
975
  null != e && n.push([ e, u ]), null != t && s.push([ t, a ]);
980
976
  }
981
- n.length && e.P(3, n), s.length && t.P(3, s);
977
+ n.length && e.B(3, n), s.length && t.B(3, s);
982
978
  });
983
979
  return {
984
980
  async K(e, t) {
@@ -986,8 +982,8 @@ e.defineComponent)({
986
982
  },
987
983
  ue(l) {
988
984
  const i = o = l.parentElement;
989
- c.X(i);
990
- const u = (e, t) => E(e, i, i, t, t && "rtl" === getComputedStyle(i).direction, () => {
985
+ c.Y(i);
986
+ const u = (e, t) => A(e, i, i, t, t && "rtl" === getComputedStyle(i).direction, () => {
991
987
  const e = t ? "overflowX" : "overflowY", o = i.style, r = o[e];
992
988
  o[e] = "hidden", a(() => {
993
989
  o[e] = r;
@@ -995,104 +991,104 @@ e.defineComponent)({
995
991
  });
996
992
  r = u(e, !1), n = u(t, !0), s[1](!0);
997
993
  },
998
- k() {
999
- c.J(), r && r.J(), n && n.J(), s[1](!1), s = d();
994
+ O() {
995
+ c.D(), r && r.D(), n && n.D(), s[1](!1), s = d();
1000
996
  },
1001
- fe: (e, t, o) => (null != t && l.set(e, t), null != o && i.set(e, o), c.X(e), () => {
1002
- l.delete(e), i.delete(e), c.Y(e);
997
+ fe: (e, t, o) => (null != t && l.set(e, t), null != o && i.set(e, o), c.Y(e), () => {
998
+ l.delete(e), i.delete(e), c.J(e);
1003
999
  }),
1004
1000
  de() {
1005
1001
  r && r.U(), n && n.U();
1006
1002
  }
1007
1003
  };
1008
- })(S, y), j = (0, e.ref)(S.O() + y.O()), q = () => {
1009
- j.value = S.O() + y.O();
1004
+ })(y, k), j = (0, e.ref)(y.T() + k.T()), P = () => {
1005
+ j.value = y.T() + k.T();
1010
1006
  };
1011
- S.q(1, q), y.q(1, q);
1007
+ y.P(1, P), k.P(1, P);
1012
1008
  let B = !1;
1013
- S.q(4, () => {
1014
- B = !0, s("verticalScroll", S.N());
1015
- }), y.q(4, () => {
1016
- B = !0, s("horizontalScroll", y.N());
1009
+ y.P(4, () => {
1010
+ B = !0, s("verticalScroll", y.A());
1011
+ }), k.P(4, () => {
1012
+ B = !0, s("horizontalScroll", k.A());
1017
1013
  });
1018
1014
  const H = () => {
1019
- !B || S.A() || y.A() || (B = !1, s("scrollEnd"));
1015
+ !B || y.C() || k.C() || (B = !1, s("scrollEnd"));
1020
1016
  };
1021
- S.q(8, H), y.q(8, H), (0, e.watchEffect)(() => {
1022
- x(S, p, t.rows, _.value, t.headerRows, t.footerRows);
1023
- }), (0, e.watchEffect)(() => {
1024
- x(y, m, t.cols, h.value, t.headerCols, t.footerCols);
1017
+ y.P(8, H), k.P(8, H), (0, e.watchEffect)(() => {
1018
+ p.W(t.headerRows, t.footerRows), m.W(t.headerCols, t.footerCols);
1019
+ const e = S(t.rows), o = S(t.cols);
1020
+ e !== y.N() && y.B(5, [ e ]), o !== k.N() && k.B(5, [ o ]), y.B(9, _.value), k.B(9, h.value);
1025
1021
  });
1026
- const L = (0, e.computed)(() => j.value && S.M()), W = (0, e.computed)(() => j.value && y.M()), V = (0,
1022
+ const L = (0, e.computed)(() => j.value && y.N()), W = (0, e.computed)(() => j.value && k.N()), V = (0,
1027
1023
  e.computed)(() => (j.value, ((e, t, [s, l], [a, u], f, d = o, p = o, m) => {
1028
- const _ = e.S(), g = t.S(), $ = e.W(), h = e.V(), w = t.W(), S = t.V();
1029
- s = i(s, $, h), l = r(l, h - 1), a = i(a, w, S), u = r(u, S - 1);
1030
- const y = I(d, $, h), b = n(w - 1, 0), z = [], x = [], O = [];
1031
- for (const e of p) e.rowIndex < _ && e.colIndex < g && (O.push(e), z.push(e.rowIndex));
1032
- const C = O.length, E = k(y, s, h), j = E < 0 ? -1 : y[E];
1033
- j >= 0 && z.push(j);
1034
- const q = T(c(z), _, $, s, l, h);
1024
+ const _ = e.h(), g = t.h(), $ = e.V(), h = e.F(), w = t.V(), y = t.F();
1025
+ s = i(s, $, h), l = r(l, h - 1), a = i(a, w, y), u = r(u, y - 1);
1026
+ const S = v(d, $, h), b = n(w - 1, 0), x = [], k = [], E = [];
1027
+ for (const e of p) e.rowIndex < _ && e.colIndex < g && (E.push(e), x.push(e.rowIndex));
1028
+ const A = E.length, C = I(S, s, h), j = C < 0 ? -1 : S[C];
1029
+ j >= 0 && x.push(j);
1030
+ const q = O(c(x), _, $, s, l, h);
1035
1031
  for (let e = 0; e < q.length; e++) for (const t of f.get(q[e]) || o) {
1036
- const {rowIndex: o, colIndex: i} = t, c = R(t, _), f = M(t, g);
1032
+ const {rowIndex: o, colIndex: i} = t, c = T(t, _), f = R(t, g);
1037
1033
  if ((e < 1 || q[e - 1] < o) && i < g && (c - o > 1 || f - i > 1)) {
1038
- let e = (o < $ || n(o, s) < r(c, l + 1) || h < c || j >= o && j < c) && (i < w || n(i, a) < r(f, u + 1) || S < f);
1039
- for (let t = 0; !e && t < C; t++) {
1040
- const r = O[t];
1034
+ let e = (o < $ || n(o, s) < r(c, l + 1) || h < c || j >= o && j < c) && (i < w || n(i, a) < r(f, u + 1) || y < f);
1035
+ for (let t = 0; !e && t < A; t++) {
1036
+ const r = E[t];
1041
1037
  e = r.rowIndex >= o && r.rowIndex < c && r.colIndex >= i && r.colIndex < f;
1042
1038
  }
1043
- e && O.push(t);
1039
+ e && E.push(t);
1044
1040
  }
1045
1041
  }
1046
- for (const {rowIndex: e, colIndex: t} of O) {
1047
- const o = k(y, e, h);
1048
- z.push(e), o >= 0 && z.push(y[o]), x.push(t);
1042
+ for (const {rowIndex: e, colIndex: t} of E) {
1043
+ const o = I(S, e, h);
1044
+ x.push(e), o >= 0 && x.push(S[o]), k.push(t);
1049
1045
  }
1050
- c(z), c(x);
1051
- const P = T(z, _, $, s, l, h), B = T(x, g, w, a, u, S), H = P.length, L = B.length, W = /* @__PURE__ */ new Map, V = [], D = [];
1052
- for (const e of O) {
1053
- const t = R(e, _), o = M(e, g);
1054
- V.push(t), D.push(o);
1046
+ c(x), c(k);
1047
+ const P = O(x, _, $, s, l, h), B = O(k, g, w, a, u, y), H = P.length, L = B.length, W = /* @__PURE__ */ new Map, V = [], F = [];
1048
+ for (const e of E) {
1049
+ const t = T(e, _), o = R(e, g);
1050
+ V.push(t), F.push(o);
1055
1051
  const r = B.indexOf(e.colIndex);
1056
1052
  for (let n = P.indexOf(e.rowIndex); n < H && P[n] < t; n++) {
1057
1053
  const t = P[n] * g;
1058
1054
  for (let n = r; n < L && B[n] < o; n++) W.set(t + B[n], e);
1059
1055
  }
1060
1056
  }
1061
- const F = [];
1062
- for (const e of B) F.push(!t.H(e) && null);
1063
- const X = [], Y = e.u($), J = [];
1064
- let U = J;
1065
- const G = v.get(e), K = /* @__PURE__ */ new Map;
1057
+ const X = [];
1058
+ for (const e of B) X.push(!t.L(e) && null);
1059
+ const Y = [], J = e.u($), D = [];
1060
+ let U = D;
1061
+ const G = z.get(e), K = /* @__PURE__ */ new Map;
1066
1062
  for (const o of P) {
1067
- const r = o < $, i = o >= h, c = k(y, o, h), f = r ? 0 : i ? h : c < 0 ? -1 : y[c];
1063
+ const r = o < $, i = o >= h, c = I(S, o, h), f = r ? 0 : i ? h : c < 0 ? -1 : S[c];
1068
1064
  if (o === f) {
1069
- const e = r ? $ : i ? _ : c + 1 < y.length ? y[c + 1] : h;
1065
+ const e = r ? $ : i ? _ : c + 1 < S.length ? S[c + 1] : h;
1070
1066
  V.push(e);
1071
1067
  const t = [];
1072
- J.push({
1068
+ D.push({
1073
1069
  Re: r ? -1 : i ? -2 : -3 - f,
1074
1070
  Oe: t,
1075
- ye: A(f, e, r || i ? 0 : null, i ? "bottom" : "top", 4)
1071
+ Se: N(f, e, r || i ? 0 : null, i ? "bottom" : "top", 4)
1076
1072
  }), U = t;
1077
- } else f < 0 && (U = J);
1078
- const d = c >= 0 && o === f, p = r || i || o === j || o >= s && o <= l, z = d ? Y : null, x = o * g, v = G && G.get(o), I = v && v.Ie, O = [];
1079
- let T = 0, N = !e.H(o) && null, C = o + 1, E = !1;
1073
+ } else f < 0 && (U = D);
1074
+ const d = c >= 0 && o === f, p = r || i || o === j || o >= s && o <= l, x = d ? J : null, z = o * g, v = G && G.get(o), k = v && v.Ie, O = [];
1075
+ let M = 0, E = !e.L(o) && null, A = o + 1, C = !1;
1080
1076
  for (let e = 0; e < L; e++) {
1081
- const s = B[e], l = s < w, i = s >= S, c = l || i || s >= a && s <= u, f = W.get(x + s);
1077
+ const s = B[e], l = s < w, i = s >= y, c = l || i || s >= a && s <= u, f = W.get(z + s);
1082
1078
  if (f ? f.rowIndex === o && f.colIndex === s : p && c) {
1083
- const c = f ? R(f, _) : o + 1, a = f ? M(f, g) : s + 1, u = c - o, p = a - s, $ = u > 1, h = p > 1, w = $ || h;
1084
- let S, y;
1085
- C = n(C, c);
1086
- const z = l ? t.u(s) : null, x = i ? t.u(g) - t.u(a) : null;
1087
- !1 !== N || $ || (S = o, N = !0), !1 !== F[e] || h || (y = s, F[e] = !0);
1088
- const v = r ? "columnheader" : s === b && (l || d) ? "rowheader" : "cell", k = w ? u : void 0, A = w ? p : void 0, j = "cell" !== v && m && m.rowIndex === o && m.colIndex === s ? m.order : void 0;
1079
+ const c = f ? T(f, _) : o + 1, a = f ? R(f, g) : s + 1, u = c - o, p = a - s, $ = u > 1, h = p > 1, w = $ || h;
1080
+ let y, S;
1081
+ A = n(A, c);
1082
+ const x = l ? t.u(s) : null, z = i ? t.u(g) - t.u(a) : null;
1083
+ !1 !== E || $ || (y = o, E = !0), !1 !== X[e] || h || (S = s, X[e] = !0);
1084
+ const v = r ? "columnheader" : s === b && (l || d) ? "rowheader" : "cell", I = w ? u : void 0, N = w ? p : void 0, j = "cell" !== v && m && m.rowIndex === o && m.colIndex === s ? m.order : void 0;
1089
1085
  let q;
1090
- if (I) {
1091
- const e = I.length;
1092
- for (;T < e && I[T].ge < s; ) T++;
1093
- T < e && I[T].ge === s && (q = I[T]);
1086
+ if (k) {
1087
+ const e = k.length;
1088
+ for (;M < e && k[M].ge < s; ) M++;
1089
+ M < e && k[M].ge === s && (q = k[M]);
1094
1090
  }
1095
- if (!q || q.$e !== k || q.he !== A || q.Me !== z || q.Ne !== x || q.pe !== S || q._e !== y || q.we !== v || q.Se !== j) {
1091
+ if (!q || q.$e !== I || q.he !== N || q.Me !== x || q.Ne !== z || q.pe !== y || q._e !== S || q.we !== v || q.ye !== j) {
1096
1092
  let e = "1/l" + s;
1097
1093
  w && (e += "/l" + c + "/l" + a);
1098
1094
  const t = {
@@ -1101,91 +1097,91 @@ e.defineComponent)({
1101
1097
  gridArea: e
1102
1098
  };
1103
1099
  $ && (t.height = "0px", t.minHeight = "100%", t.zIndex = 1), h && (t.width = "0px",
1104
- t.minWidth = "100%"), (l || i) && (t[l ? "insetInlineStart" : "insetInlineEnd"] = (l ? z : x) + "px",
1100
+ t.minWidth = "100%"), (l || i) && (t[l ? "insetInlineStart" : "insetInlineEnd"] = (l ? x : z) + "px",
1105
1101
  t.position = "sticky", t.zIndex = 2), q = {
1106
1102
  ge: s,
1107
- $e: k,
1108
- he: A,
1109
- pe: S,
1110
- _e: y,
1103
+ $e: I,
1104
+ he: N,
1105
+ pe: y,
1106
+ _e: S,
1111
1107
  we: v,
1112
- Se: j,
1113
- ye: t,
1114
- Me: z,
1115
- Ne: x
1116
- }, E = !0;
1108
+ ye: j,
1109
+ Se: t,
1110
+ Me: x,
1111
+ Ne: z
1112
+ }, C = !0;
1117
1113
  }
1118
1114
  O.push(q);
1119
1115
  }
1120
1116
  }
1121
- if (X.push(N), O.length) {
1122
- const e = v && !E && v.Ie.length === O.length && v.Ae === z ? v : {
1117
+ if (Y.push(E), O.length) {
1118
+ const e = v && !C && v.Ie.length === O.length && v.Ee === x ? v : {
1123
1119
  ve: o,
1124
1120
  Ie: O,
1125
- ye: A(o, C, z, "top", 3),
1126
- Ae: z
1121
+ Se: N(o, A, x, "top", 3),
1122
+ Ee: x
1127
1123
  };
1128
1124
  K.set(o, e), U.push(e);
1129
1125
  }
1130
1126
  }
1131
- return v.set(e, K), {
1132
- Ce: N(e, P, X, c(V), "max-content", _),
1133
- Ee: N(t, B, F, c(D), "minmax(max-content,auto)", g),
1134
- je: J
1127
+ return z.set(e, K), {
1128
+ Ae: M(e, P, Y, c(V), "max-content", _),
1129
+ Ce: M(t, B, X, c(F), "minmax(max-content,auto)", g),
1130
+ je: D
1135
1131
  };
1136
- })(p, m, S.l(t.bufferSize), y.l(t.bufferSize), w.value, t.sectionRows, t.keepMounted, t.ariaSort))), D = (0,
1137
- e.computed)(() => j.value && (S.A() || y.A()));
1132
+ })(p, m, y.l(t.bufferSize), k.l(t.bufferSize), w.value, t.sectionRows, t.keepMounted, t.ariaSort))), F = (0,
1133
+ e.computed)(() => j.value && (y.C() || k.C()));
1138
1134
  return (0, e.onMounted)(() => {
1139
- O.ue(f.value);
1135
+ C.ue(f.value);
1140
1136
  }), (0, e.onUnmounted)(() => {
1141
- S.k(), y.k(), O.k();
1137
+ y.O(), k.O(), C.O();
1142
1138
  }), (0, e.watch)([ j ], () => {
1143
- O.de();
1139
+ C.de();
1144
1140
  }, {
1145
1141
  flush: "post"
1146
1142
  }), l({
1147
1143
  get verticalScrollOffset() {
1148
- return S.N();
1144
+ return y.A();
1149
1145
  },
1150
1146
  get horizontalScrollOffset() {
1151
- return y.N();
1147
+ return k.A();
1152
1148
  },
1153
1149
  get scrollHeight() {
1154
- return g(S);
1150
+ return g(y);
1155
1151
  },
1156
1152
  get scrollWidth() {
1157
- return g(y);
1153
+ return g(k);
1158
1154
  },
1159
1155
  get viewportHeight() {
1160
- return S.o();
1156
+ return y.o();
1161
1157
  },
1162
1158
  get viewportWidth() {
1163
- return y.o();
1159
+ return k.o();
1164
1160
  },
1165
- findRowIndex: S.T,
1166
- findColIndex: y.T,
1167
- getRowOffset: S.u,
1168
- getColOffset: y.u,
1169
- getRowSize: S.p,
1170
- getColSize: y.p,
1161
+ findRowIndex: y.R,
1162
+ findColIndex: k.R,
1163
+ getRowOffset: y.u,
1164
+ getColOffset: k.u,
1165
+ getRowSize: y.p,
1166
+ getColSize: k.p,
1171
1167
  scrollToIndex: e => ((e, t, r, n, s, l = o, {rowIndex: i, colIndex: c, rowAlign: a, colAlign: u}) => {
1172
- null != i && P(e, t, n, l, i, a, !1), null != c && P(e, r, s, o, c, u, !0);
1173
- })(O, S, y, p, m, t.sectionRows, e),
1168
+ null != i && q(e, t, n, l, i, a, !1), null != c && q(e, r, s, o, c, u, !0);
1169
+ })(C, y, k, p, m, t.sectionRows, e),
1174
1170
  scrollTo: ({vertical: e, horizontal: t}) => ((e, t, o) => {
1175
1171
  null != t && e.K(!1, () => t), null != o && e.K(!0, () => o);
1176
- })(O, e, t),
1172
+ })(C, e, t),
1177
1173
  scrollBy: ({vertical: e, horizontal: t}) => ((e, t, o, r, n) => {
1178
1174
  if (null != r) {
1179
- const o = r + t.N();
1175
+ const o = r + t.A();
1180
1176
  e.K(!1, () => o);
1181
1177
  }
1182
1178
  if (null != n) {
1183
- const t = n + o.N();
1179
+ const t = n + o.A();
1184
1180
  e.K(!0, () => t);
1185
1181
  }
1186
- })(O, S, y, e, t)
1182
+ })(C, y, k, e, t)
1187
1183
  }), () => {
1188
- const {Ce: o, Ee: r, je: n} = V.value, s = S.u(0), l = y.u(0), i = {
1184
+ const {Ae: o, Ce: r, je: n} = V.value, s = y.u(0), l = k.u(0), i = {
1189
1185
  contain: "size style",
1190
1186
  overflowAnchor: "none",
1191
1187
  flex: "none",
@@ -1195,8 +1191,8 @@ e.defineComponent)({
1195
1191
  gap: t.gap + "px",
1196
1192
  marginTop: s + "px",
1197
1193
  marginInlineStart: l + "px",
1198
- height: g(S) - s + "px",
1199
- pointerEvents: D.value ? "none" : void 0
1194
+ height: g(y) - s + "px",
1195
+ pointerEvents: F.value ? "none" : void 0
1200
1196
  };
1201
1197
  return (0, e.createVNode)("div", {
1202
1198
  role: "table",
@@ -1217,18 +1213,18 @@ e.defineComponent)({
1217
1213
  re: u.default,
1218
1214
  Te: t.rows,
1219
1215
  ke: t.cols,
1220
- se: O.fe
1216
+ se: C.fe
1221
1217
  }, null, 8, [ "me", "re", "Te", "ke", "se" ]) : (0, e.createVNode)(X, {
1222
1218
  key: o.ve,
1223
1219
  me: o,
1224
1220
  re: u.default,
1225
1221
  be: b(t.rows, o.ve),
1226
1222
  ke: t.cols,
1227
- se: O.fe
1223
+ se: C.fe
1228
1224
  }, null, 8, [ "me", "re", "be", "ke", "se" ])) ], 4) ], 8, [ "aria-rowcount", "aria-colcount" ]);
1229
1225
  };
1230
1226
  }
1231
1227
  });
1232
1228
 
1233
- exports.VGrid = J, exports.VList = V, exports.Virtualizer = W, exports.WindowVirtualizer = D;
1229
+ exports.VGrid = J, exports.VList = W, exports.Virtualizer = L, exports.WindowVirtualizer = V;
1234
1230
  //# sourceMappingURL=index.cjs.map