@yester/virtual-table 1.2.3 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -0
- package/dist/components/Icons/DownCircleOutlined.d.ts +0 -0
- package/dist/components/Icons/UpCircleOutlined.d.ts +0 -0
- package/dist/components/VirtualTable/Cell.d.ts +0 -0
- package/dist/components/VirtualTable/Renderer.d.ts +0 -0
- package/dist/components/VirtualTable/TableHeader.d.ts +0 -0
- package/dist/components/VirtualTable/index.d.ts +2 -1
- package/dist/index.d.ts +0 -0
- package/dist/style.css +0 -0
- package/dist/test/setup.d.ts +0 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/utils/cloneDeep.d.ts +0 -0
- package/dist/utils/dataHandler.d.ts +1 -19
- package/dist/utils/pivotHandler.d.ts +0 -0
- package/dist/utils/vars.d.ts +0 -0
- package/dist/virtual-table.es.js +1614 -1550
- package/dist/virtual-table.es.js.map +1 -1
- package/dist/virtual-table.umd.js +14 -14
- package/dist/virtual-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/virtual-table.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import * as ne from "react";
|
|
2
|
+
import Ke, { version as Pr, isValidElement as jr, forwardRef as Ar, useMemo as ye, memo as Xt, useState as $e, useImperativeHandle as Mr, useEffect as tt, createElement as $t, useLayoutEffect as xt, useRef as Le, useCallback as ge } from "react";
|
|
3
|
+
import kt from "react-dom";
|
|
4
4
|
function zr(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var vt = { exports: {} }, He = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,23 +14,23 @@ var pt = { exports: {} }, He = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
17
|
+
var Dt;
|
|
18
18
|
function Ir() {
|
|
19
|
-
if (
|
|
19
|
+
if (Dt)
|
|
20
20
|
return He;
|
|
21
|
-
|
|
22
|
-
var e =
|
|
23
|
-
function
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
for (
|
|
27
|
-
|
|
21
|
+
Dt = 1;
|
|
22
|
+
var e = Ke, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
+
function l(d, a, h) {
|
|
24
|
+
var u, w = {}, m = null, A = null;
|
|
25
|
+
h !== void 0 && (m = "" + h), a.key !== void 0 && (m = "" + a.key), a.ref !== void 0 && (A = a.ref);
|
|
26
|
+
for (u in a)
|
|
27
|
+
r.call(a, u) && !s.hasOwnProperty(u) && (w[u] = a[u]);
|
|
28
28
|
if (d && d.defaultProps)
|
|
29
|
-
for (
|
|
30
|
-
|
|
31
|
-
return { $$typeof: t, type: d, key:
|
|
29
|
+
for (u in a = d.defaultProps, a)
|
|
30
|
+
w[u] === void 0 && (w[u] = a[u]);
|
|
31
|
+
return { $$typeof: t, type: d, key: m, ref: A, props: w, _owner: i.current };
|
|
32
32
|
}
|
|
33
|
-
return He.Fragment =
|
|
33
|
+
return He.Fragment = n, He.jsx = l, He.jsxs = l, He;
|
|
34
34
|
}
|
|
35
35
|
var Be = {};
|
|
36
36
|
/**
|
|
@@ -42,91 +42,91 @@ var Be = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
45
|
+
var Ft;
|
|
46
46
|
function Lr() {
|
|
47
|
-
return
|
|
48
|
-
var e =
|
|
49
|
-
function
|
|
47
|
+
return Ft || (Ft = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
var e = Ke, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), M = Symbol.iterator, R = "@@iterator";
|
|
49
|
+
function c(o) {
|
|
50
50
|
if (o === null || typeof o != "object")
|
|
51
51
|
return null;
|
|
52
|
-
var f =
|
|
52
|
+
var f = M && o[M] || o[R];
|
|
53
53
|
return typeof f == "function" ? f : null;
|
|
54
54
|
}
|
|
55
|
-
var
|
|
56
|
-
function
|
|
55
|
+
var P = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56
|
+
function S(o) {
|
|
57
57
|
{
|
|
58
|
-
for (var f = arguments.length,
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
for (var f = arguments.length, _ = new Array(f > 1 ? f - 1 : 0), D = 1; D < f; D++)
|
|
59
|
+
_[D - 1] = arguments[D];
|
|
60
|
+
Z("error", o, _);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Z(o, f, _) {
|
|
64
64
|
{
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
var
|
|
68
|
-
return String(
|
|
65
|
+
var D = P.ReactDebugCurrentFrame, U = D.getStackAddendum();
|
|
66
|
+
U !== "" && (f += "%s", _ = _.concat([U]));
|
|
67
|
+
var Q = _.map(function(K) {
|
|
68
|
+
return String(K);
|
|
69
69
|
});
|
|
70
|
-
|
|
70
|
+
Q.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, Q);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var I = !1,
|
|
74
|
-
|
|
75
|
-
function
|
|
76
|
-
return !!(typeof o == "string" || typeof o == "function" || o ===
|
|
73
|
+
var I = !1, G = !1, L = !1, $ = !1, j = !1, T;
|
|
74
|
+
T = Symbol.for("react.module.reference");
|
|
75
|
+
function F(o) {
|
|
76
|
+
return !!(typeof o == "string" || typeof o == "function" || o === r || o === s || j || o === i || o === h || o === u || $ || o === A || I || G || L || typeof o == "object" && o !== null && (o.$$typeof === m || o.$$typeof === w || o.$$typeof === l || o.$$typeof === d || o.$$typeof === a || // This needs to include all possible module reference object
|
|
77
77
|
// types supported by any Flight configuration anywhere since
|
|
78
78
|
// we don't know which Flight build this will end up being used
|
|
79
79
|
// with.
|
|
80
|
-
o.$$typeof ===
|
|
80
|
+
o.$$typeof === T || o.getModuleId !== void 0));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
var
|
|
84
|
-
if (
|
|
85
|
-
return
|
|
86
|
-
var
|
|
87
|
-
return
|
|
82
|
+
function N(o, f, _) {
|
|
83
|
+
var D = o.displayName;
|
|
84
|
+
if (D)
|
|
85
|
+
return D;
|
|
86
|
+
var U = f.displayName || f.name || "";
|
|
87
|
+
return U !== "" ? _ + "(" + U + ")" : _;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function H(o) {
|
|
90
90
|
return o.displayName || "Context";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function W(o) {
|
|
93
93
|
if (o == null)
|
|
94
94
|
return null;
|
|
95
|
-
if (typeof o.tag == "number" &&
|
|
95
|
+
if (typeof o.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
|
|
96
96
|
return o.displayName || o.name || null;
|
|
97
97
|
if (typeof o == "string")
|
|
98
98
|
return o;
|
|
99
99
|
switch (o) {
|
|
100
|
-
case n:
|
|
101
|
-
return "Fragment";
|
|
102
100
|
case r:
|
|
101
|
+
return "Fragment";
|
|
102
|
+
case n:
|
|
103
103
|
return "Portal";
|
|
104
104
|
case s:
|
|
105
105
|
return "Profiler";
|
|
106
106
|
case i:
|
|
107
107
|
return "StrictMode";
|
|
108
|
-
case c:
|
|
109
|
-
return "Suspense";
|
|
110
108
|
case h:
|
|
109
|
+
return "Suspense";
|
|
110
|
+
case u:
|
|
111
111
|
return "SuspenseList";
|
|
112
112
|
}
|
|
113
113
|
if (typeof o == "object")
|
|
114
114
|
switch (o.$$typeof) {
|
|
115
115
|
case d:
|
|
116
116
|
var f = o;
|
|
117
|
-
return
|
|
118
|
-
case a:
|
|
119
|
-
var b = o;
|
|
120
|
-
return Y(b._context) + ".Provider";
|
|
117
|
+
return H(f) + ".Consumer";
|
|
121
118
|
case l:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
return
|
|
126
|
-
case
|
|
127
|
-
var
|
|
119
|
+
var _ = o;
|
|
120
|
+
return H(_._context) + ".Provider";
|
|
121
|
+
case a:
|
|
122
|
+
return N(o, o.render, "ForwardRef");
|
|
123
|
+
case w:
|
|
124
|
+
var D = o.displayName || null;
|
|
125
|
+
return D !== null ? D : W(o.type) || "Memo";
|
|
126
|
+
case m: {
|
|
127
|
+
var U = o, Q = U._payload, K = U._init;
|
|
128
128
|
try {
|
|
129
|
-
return
|
|
129
|
+
return W(K(Q));
|
|
130
130
|
} catch {
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
@@ -134,18 +134,18 @@ function Lr() {
|
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var
|
|
138
|
-
function
|
|
137
|
+
var te = Object.assign, de = 0, be, Se, Re, ue, Te, Pe, y;
|
|
138
|
+
function g() {
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
function
|
|
140
|
+
g.__reactDisabledLog = !0;
|
|
141
|
+
function v() {
|
|
142
142
|
{
|
|
143
143
|
if (de === 0) {
|
|
144
|
-
be = console.log, Se = console.info,
|
|
144
|
+
be = console.log, Se = console.info, Re = console.warn, ue = console.error, Te = console.group, Pe = console.groupCollapsed, y = console.groupEnd;
|
|
145
145
|
var o = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
148
|
-
value:
|
|
148
|
+
value: g,
|
|
149
149
|
writable: !0
|
|
150
150
|
};
|
|
151
151
|
Object.defineProperties(console, {
|
|
@@ -161,7 +161,7 @@ function Lr() {
|
|
|
161
161
|
de++;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function C() {
|
|
165
165
|
{
|
|
166
166
|
if (de--, de === 0) {
|
|
167
167
|
var o = {
|
|
@@ -170,193 +170,193 @@ function Lr() {
|
|
|
170
170
|
writable: !0
|
|
171
171
|
};
|
|
172
172
|
Object.defineProperties(console, {
|
|
173
|
-
log:
|
|
173
|
+
log: te({}, o, {
|
|
174
174
|
value: be
|
|
175
175
|
}),
|
|
176
|
-
info:
|
|
176
|
+
info: te({}, o, {
|
|
177
177
|
value: Se
|
|
178
178
|
}),
|
|
179
|
-
warn:
|
|
180
|
-
value:
|
|
179
|
+
warn: te({}, o, {
|
|
180
|
+
value: Re
|
|
181
181
|
}),
|
|
182
|
-
error:
|
|
183
|
-
value:
|
|
182
|
+
error: te({}, o, {
|
|
183
|
+
value: ue
|
|
184
184
|
}),
|
|
185
|
-
group:
|
|
186
|
-
value: Oe
|
|
187
|
-
}),
|
|
188
|
-
groupCollapsed: ee({}, o, {
|
|
185
|
+
group: te({}, o, {
|
|
189
186
|
value: Te
|
|
190
187
|
}),
|
|
191
|
-
|
|
192
|
-
value:
|
|
188
|
+
groupCollapsed: te({}, o, {
|
|
189
|
+
value: Pe
|
|
190
|
+
}),
|
|
191
|
+
groupEnd: te({}, o, {
|
|
192
|
+
value: y
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
de < 0 &&
|
|
196
|
+
de < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
var
|
|
200
|
-
function
|
|
199
|
+
var p = P.ReactCurrentDispatcher, x;
|
|
200
|
+
function b(o, f, _) {
|
|
201
201
|
{
|
|
202
|
-
if (
|
|
202
|
+
if (x === void 0)
|
|
203
203
|
try {
|
|
204
204
|
throw Error();
|
|
205
|
-
} catch (
|
|
206
|
-
var
|
|
207
|
-
|
|
205
|
+
} catch (U) {
|
|
206
|
+
var D = U.stack.trim().match(/\n( *(at )?)/);
|
|
207
|
+
x = D && D[1] || "";
|
|
208
208
|
}
|
|
209
209
|
return `
|
|
210
|
-
` +
|
|
210
|
+
` + x + o;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
var
|
|
213
|
+
var O = !1, z;
|
|
214
214
|
{
|
|
215
|
-
var
|
|
216
|
-
|
|
215
|
+
var V = typeof WeakMap == "function" ? WeakMap : Map;
|
|
216
|
+
z = new V();
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
if (!o ||
|
|
218
|
+
function k(o, f) {
|
|
219
|
+
if (!o || O)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
222
|
-
var
|
|
223
|
-
if (
|
|
224
|
-
return
|
|
222
|
+
var _ = z.get(o);
|
|
223
|
+
if (_ !== void 0)
|
|
224
|
+
return _;
|
|
225
225
|
}
|
|
226
|
-
var
|
|
227
|
-
|
|
228
|
-
var
|
|
226
|
+
var D;
|
|
227
|
+
O = !0;
|
|
228
|
+
var U = Error.prepareStackTrace;
|
|
229
229
|
Error.prepareStackTrace = void 0;
|
|
230
|
-
var
|
|
231
|
-
|
|
230
|
+
var Q;
|
|
231
|
+
Q = p.current, p.current = null, v();
|
|
232
232
|
try {
|
|
233
233
|
if (f) {
|
|
234
|
-
var
|
|
234
|
+
var K = function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
};
|
|
237
|
-
if (Object.defineProperty(
|
|
237
|
+
if (Object.defineProperty(K.prototype, "props", {
|
|
238
238
|
set: function() {
|
|
239
239
|
throw Error();
|
|
240
240
|
}
|
|
241
241
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
242
242
|
try {
|
|
243
|
-
Reflect.construct(
|
|
244
|
-
} catch (
|
|
245
|
-
|
|
243
|
+
Reflect.construct(K, []);
|
|
244
|
+
} catch (pe) {
|
|
245
|
+
D = pe;
|
|
246
246
|
}
|
|
247
|
-
Reflect.construct(o, [],
|
|
247
|
+
Reflect.construct(o, [], K);
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
|
-
|
|
251
|
-
} catch (
|
|
252
|
-
|
|
250
|
+
K.call();
|
|
251
|
+
} catch (pe) {
|
|
252
|
+
D = pe;
|
|
253
253
|
}
|
|
254
|
-
o.call(
|
|
254
|
+
o.call(K.prototype);
|
|
255
255
|
}
|
|
256
256
|
} else {
|
|
257
257
|
try {
|
|
258
258
|
throw Error();
|
|
259
|
-
} catch (
|
|
260
|
-
|
|
259
|
+
} catch (pe) {
|
|
260
|
+
D = pe;
|
|
261
261
|
}
|
|
262
262
|
o();
|
|
263
263
|
}
|
|
264
|
-
} catch (
|
|
265
|
-
if (
|
|
266
|
-
for (var
|
|
267
|
-
`),
|
|
268
|
-
`),
|
|
269
|
-
|
|
270
|
-
for (;
|
|
271
|
-
if (
|
|
272
|
-
if (
|
|
264
|
+
} catch (pe) {
|
|
265
|
+
if (pe && D && typeof pe.stack == "string") {
|
|
266
|
+
for (var Y = pe.stack.split(`
|
|
267
|
+
`), he = D.stack.split(`
|
|
268
|
+
`), ie = Y.length - 1, ae = he.length - 1; ie >= 1 && ae >= 0 && Y[ie] !== he[ae]; )
|
|
269
|
+
ae--;
|
|
270
|
+
for (; ie >= 1 && ae >= 0; ie--, ae--)
|
|
271
|
+
if (Y[ie] !== he[ae]) {
|
|
272
|
+
if (ie !== 1 || ae !== 1)
|
|
273
273
|
do
|
|
274
|
-
if (
|
|
274
|
+
if (ie--, ae--, ae < 0 || Y[ie] !== he[ae]) {
|
|
275
275
|
var Ee = `
|
|
276
|
-
` +
|
|
277
|
-
return o.displayName && Ee.includes("<anonymous>") && (Ee = Ee.replace("<anonymous>", o.displayName)), typeof o == "function" &&
|
|
276
|
+
` + Y[ie].replace(" at new ", " at ");
|
|
277
|
+
return o.displayName && Ee.includes("<anonymous>") && (Ee = Ee.replace("<anonymous>", o.displayName)), typeof o == "function" && z.set(o, Ee), Ee;
|
|
278
278
|
}
|
|
279
|
-
while (
|
|
279
|
+
while (ie >= 1 && ae >= 0);
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
} finally {
|
|
284
|
-
|
|
284
|
+
O = !1, p.current = Q, C(), Error.prepareStackTrace = U;
|
|
285
285
|
}
|
|
286
|
-
var De = o ? o.displayName || o.name : "", Ie = De ?
|
|
287
|
-
return typeof o == "function" &&
|
|
286
|
+
var De = o ? o.displayName || o.name : "", Ie = De ? b(De) : "";
|
|
287
|
+
return typeof o == "function" && z.set(o, Ie), Ie;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
return
|
|
289
|
+
function B(o, f, _) {
|
|
290
|
+
return k(o, !1);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function E(o) {
|
|
293
293
|
var f = o.prototype;
|
|
294
294
|
return !!(f && f.isReactComponent);
|
|
295
295
|
}
|
|
296
|
-
function le(o, f,
|
|
296
|
+
function le(o, f, _) {
|
|
297
297
|
if (o == null)
|
|
298
298
|
return "";
|
|
299
299
|
if (typeof o == "function")
|
|
300
|
-
return
|
|
300
|
+
return k(o, E(o));
|
|
301
301
|
if (typeof o == "string")
|
|
302
|
-
return
|
|
302
|
+
return b(o);
|
|
303
303
|
switch (o) {
|
|
304
|
-
case c:
|
|
305
|
-
return x("Suspense");
|
|
306
304
|
case h:
|
|
307
|
-
return
|
|
305
|
+
return b("Suspense");
|
|
306
|
+
case u:
|
|
307
|
+
return b("SuspenseList");
|
|
308
308
|
}
|
|
309
309
|
if (typeof o == "object")
|
|
310
310
|
switch (o.$$typeof) {
|
|
311
|
-
case
|
|
312
|
-
return
|
|
313
|
-
case
|
|
314
|
-
return le(o.type, f,
|
|
315
|
-
case
|
|
316
|
-
var
|
|
311
|
+
case a:
|
|
312
|
+
return B(o.render);
|
|
313
|
+
case w:
|
|
314
|
+
return le(o.type, f, _);
|
|
315
|
+
case m: {
|
|
316
|
+
var D = o, U = D._payload, Q = D._init;
|
|
317
317
|
try {
|
|
318
|
-
return le(
|
|
318
|
+
return le(Q(U), f, _);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
|
-
var
|
|
326
|
-
function
|
|
325
|
+
var q = Object.prototype.hasOwnProperty, oe = {}, xe = P.ReactDebugCurrentFrame;
|
|
326
|
+
function we(o) {
|
|
327
327
|
if (o) {
|
|
328
|
-
var f = o._owner,
|
|
329
|
-
|
|
328
|
+
var f = o._owner, _ = le(o.type, o._source, f ? f.type : null);
|
|
329
|
+
xe.setExtraStackFrame(_);
|
|
330
330
|
} else
|
|
331
|
-
|
|
331
|
+
xe.setExtraStackFrame(null);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function _e(o, f, _, D, U) {
|
|
334
334
|
{
|
|
335
|
-
var
|
|
336
|
-
for (var
|
|
337
|
-
if (
|
|
338
|
-
var
|
|
335
|
+
var Q = Function.call.bind(q);
|
|
336
|
+
for (var K in o)
|
|
337
|
+
if (Q(o, K)) {
|
|
338
|
+
var Y = void 0;
|
|
339
339
|
try {
|
|
340
|
-
if (typeof o[
|
|
341
|
-
var
|
|
342
|
-
throw
|
|
340
|
+
if (typeof o[K] != "function") {
|
|
341
|
+
var he = Error((D || "React class") + ": " + _ + " type `" + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[K] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
342
|
+
throw he.name = "Invariant Violation", he;
|
|
343
343
|
}
|
|
344
|
-
|
|
345
|
-
} catch (
|
|
346
|
-
|
|
344
|
+
Y = o[K](f, K, D, _, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
345
|
+
} catch (ie) {
|
|
346
|
+
Y = ie;
|
|
347
347
|
}
|
|
348
|
-
|
|
348
|
+
Y && !(Y instanceof Error) && (we(U), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", D || "React class", _, K, typeof Y), we(null)), Y instanceof Error && !(Y.message in oe) && (oe[Y.message] = !0, we(U), S("Failed %s type: %s", _, Y.message), we(null));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
var
|
|
353
|
-
function
|
|
354
|
-
return
|
|
352
|
+
var se = Array.isArray;
|
|
353
|
+
function re(o) {
|
|
354
|
+
return se(o);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function fe(o) {
|
|
357
357
|
{
|
|
358
|
-
var f = typeof Symbol == "function" && Symbol.toStringTag,
|
|
359
|
-
return
|
|
358
|
+
var f = typeof Symbol == "function" && Symbol.toStringTag, _ = f && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
359
|
+
return _;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
function Me(o) {
|
|
@@ -371,17 +371,17 @@ function Lr() {
|
|
|
371
371
|
}
|
|
372
372
|
function ze(o) {
|
|
373
373
|
if (Me(o))
|
|
374
|
-
return
|
|
374
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fe(o)), We(o);
|
|
375
375
|
}
|
|
376
|
-
var je =
|
|
376
|
+
var je = P.ReactCurrentOwner, Ve = {
|
|
377
377
|
key: !0,
|
|
378
378
|
ref: !0,
|
|
379
379
|
__self: !0,
|
|
380
380
|
__source: !0
|
|
381
|
-
},
|
|
382
|
-
|
|
381
|
+
}, Ot, Tt, nt;
|
|
382
|
+
nt = {};
|
|
383
383
|
function dr(o) {
|
|
384
|
-
if (
|
|
384
|
+
if (q.call(o, "ref")) {
|
|
385
385
|
var f = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
386
386
|
if (f && f.isReactWarning)
|
|
387
387
|
return !1;
|
|
@@ -389,7 +389,7 @@ function Lr() {
|
|
|
389
389
|
return o.ref !== void 0;
|
|
390
390
|
}
|
|
391
391
|
function hr(o) {
|
|
392
|
-
if (
|
|
392
|
+
if (q.call(o, "key")) {
|
|
393
393
|
var f = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
394
394
|
if (f && f.isReactWarning)
|
|
395
395
|
return !1;
|
|
@@ -398,96 +398,96 @@ function Lr() {
|
|
|
398
398
|
}
|
|
399
399
|
function pr(o, f) {
|
|
400
400
|
if (typeof o.ref == "string" && je.current && f && je.current.stateNode !== f) {
|
|
401
|
-
var
|
|
402
|
-
|
|
401
|
+
var _ = W(je.current.type);
|
|
402
|
+
nt[_] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', W(je.current.type), o.ref), nt[_] = !0);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
function vr(o, f) {
|
|
406
406
|
{
|
|
407
|
-
var
|
|
408
|
-
|
|
407
|
+
var _ = function() {
|
|
408
|
+
Ot || (Ot = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
409
409
|
};
|
|
410
|
-
|
|
411
|
-
get:
|
|
410
|
+
_.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
411
|
+
get: _,
|
|
412
412
|
configurable: !0
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
function mr(o, f) {
|
|
417
417
|
{
|
|
418
|
-
var
|
|
419
|
-
|
|
418
|
+
var _ = function() {
|
|
419
|
+
Tt || (Tt = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
420
420
|
};
|
|
421
|
-
|
|
422
|
-
get:
|
|
421
|
+
_.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
422
|
+
get: _,
|
|
423
423
|
configurable: !0
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
var gr = function(o, f,
|
|
428
|
-
var
|
|
427
|
+
var gr = function(o, f, _, D, U, Q, K) {
|
|
428
|
+
var Y = {
|
|
429
429
|
// This tag allows us to uniquely identify this as a React Element
|
|
430
430
|
$$typeof: t,
|
|
431
431
|
// Built-in properties that belong on the element
|
|
432
432
|
type: o,
|
|
433
433
|
key: f,
|
|
434
|
-
ref:
|
|
435
|
-
props:
|
|
434
|
+
ref: _,
|
|
435
|
+
props: K,
|
|
436
436
|
// Record the component responsible for creating this element.
|
|
437
|
-
_owner:
|
|
437
|
+
_owner: Q
|
|
438
438
|
};
|
|
439
|
-
return
|
|
439
|
+
return Y._store = {}, Object.defineProperty(Y._store, "validated", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !0,
|
|
443
443
|
value: !1
|
|
444
|
-
}), Object.defineProperty(
|
|
444
|
+
}), Object.defineProperty(Y, "_self", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
449
|
-
}), Object.defineProperty(
|
|
448
|
+
value: D
|
|
449
|
+
}), Object.defineProperty(Y, "_source", {
|
|
450
450
|
configurable: !1,
|
|
451
451
|
enumerable: !1,
|
|
452
452
|
writable: !1,
|
|
453
|
-
value:
|
|
454
|
-
}), Object.freeze && (Object.freeze(
|
|
453
|
+
value: U
|
|
454
|
+
}), Object.freeze && (Object.freeze(Y.props), Object.freeze(Y)), Y;
|
|
455
455
|
};
|
|
456
|
-
function yr(o, f,
|
|
456
|
+
function yr(o, f, _, D, U) {
|
|
457
457
|
{
|
|
458
|
-
var
|
|
459
|
-
|
|
460
|
-
for (
|
|
461
|
-
|
|
458
|
+
var Q, K = {}, Y = null, he = null;
|
|
459
|
+
_ !== void 0 && (ze(_), Y = "" + _), hr(f) && (ze(f.key), Y = "" + f.key), dr(f) && (he = f.ref, pr(f, U));
|
|
460
|
+
for (Q in f)
|
|
461
|
+
q.call(f, Q) && !Ve.hasOwnProperty(Q) && (K[Q] = f[Q]);
|
|
462
462
|
if (o && o.defaultProps) {
|
|
463
|
-
var
|
|
464
|
-
for (
|
|
465
|
-
|
|
463
|
+
var ie = o.defaultProps;
|
|
464
|
+
for (Q in ie)
|
|
465
|
+
K[Q] === void 0 && (K[Q] = ie[Q]);
|
|
466
466
|
}
|
|
467
|
-
if (
|
|
468
|
-
var
|
|
469
|
-
|
|
467
|
+
if (Y || he) {
|
|
468
|
+
var ae = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
469
|
+
Y && vr(K, ae), he && mr(K, ae);
|
|
470
470
|
}
|
|
471
|
-
return gr(o,
|
|
471
|
+
return gr(o, Y, he, U, D, je.current, K);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
var
|
|
474
|
+
var ot = P.ReactCurrentOwner, Pt = P.ReactDebugCurrentFrame;
|
|
475
475
|
function ke(o) {
|
|
476
476
|
if (o) {
|
|
477
|
-
var f = o._owner,
|
|
478
|
-
|
|
477
|
+
var f = o._owner, _ = le(o.type, o._source, f ? f.type : null);
|
|
478
|
+
Pt.setExtraStackFrame(_);
|
|
479
479
|
} else
|
|
480
|
-
|
|
480
|
+
Pt.setExtraStackFrame(null);
|
|
481
481
|
}
|
|
482
|
-
var
|
|
483
|
-
|
|
484
|
-
function
|
|
482
|
+
var it;
|
|
483
|
+
it = !1;
|
|
484
|
+
function st(o) {
|
|
485
485
|
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function jt() {
|
|
488
488
|
{
|
|
489
|
-
if (
|
|
490
|
-
var o =
|
|
489
|
+
if (ot.current) {
|
|
490
|
+
var o = W(ot.current.type);
|
|
491
491
|
if (o)
|
|
492
492
|
return `
|
|
493
493
|
|
|
@@ -499,255 +499,257 @@ Check the render method of \`` + o + "`.";
|
|
|
499
499
|
function br(o) {
|
|
500
500
|
{
|
|
501
501
|
if (o !== void 0) {
|
|
502
|
-
var f = o.fileName.replace(/^.*[\\\/]/, ""),
|
|
502
|
+
var f = o.fileName.replace(/^.*[\\\/]/, ""), _ = o.lineNumber;
|
|
503
503
|
return `
|
|
504
504
|
|
|
505
|
-
Check your code at ` + f + ":" +
|
|
505
|
+
Check your code at ` + f + ":" + _ + ".";
|
|
506
506
|
}
|
|
507
507
|
return "";
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
function
|
|
510
|
+
var At = {};
|
|
511
|
+
function wr(o) {
|
|
512
512
|
{
|
|
513
|
-
var f =
|
|
513
|
+
var f = jt();
|
|
514
514
|
if (!f) {
|
|
515
|
-
var
|
|
516
|
-
|
|
515
|
+
var _ = typeof o == "string" ? o : o.displayName || o.name;
|
|
516
|
+
_ && (f = `
|
|
517
517
|
|
|
518
|
-
Check the top-level render call using <` +
|
|
518
|
+
Check the top-level render call using <` + _ + ">.");
|
|
519
519
|
}
|
|
520
520
|
return f;
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Mt(o, f) {
|
|
524
524
|
{
|
|
525
525
|
if (!o._store || o._store.validated || o.key != null)
|
|
526
526
|
return;
|
|
527
527
|
o._store.validated = !0;
|
|
528
|
-
var
|
|
529
|
-
if (
|
|
528
|
+
var _ = wr(f);
|
|
529
|
+
if (At[_])
|
|
530
530
|
return;
|
|
531
|
-
|
|
532
|
-
var
|
|
533
|
-
o && o._owner && o._owner !==
|
|
531
|
+
At[_] = !0;
|
|
532
|
+
var D = "";
|
|
533
|
+
o && o._owner && o._owner !== ot.current && (D = " It was passed a child from " + W(o._owner.type) + "."), ke(o), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _, D), ke(null);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function zt(o, f) {
|
|
537
537
|
{
|
|
538
538
|
if (typeof o != "object")
|
|
539
539
|
return;
|
|
540
|
-
if (
|
|
541
|
-
for (var
|
|
542
|
-
var
|
|
543
|
-
|
|
540
|
+
if (re(o))
|
|
541
|
+
for (var _ = 0; _ < o.length; _++) {
|
|
542
|
+
var D = o[_];
|
|
543
|
+
st(D) && Mt(D, f);
|
|
544
544
|
}
|
|
545
|
-
else if (
|
|
545
|
+
else if (st(o))
|
|
546
546
|
o._store && (o._store.validated = !0);
|
|
547
547
|
else if (o) {
|
|
548
|
-
var
|
|
549
|
-
if (typeof
|
|
550
|
-
for (var
|
|
551
|
-
|
|
548
|
+
var U = c(o);
|
|
549
|
+
if (typeof U == "function" && U !== o.entries)
|
|
550
|
+
for (var Q = U.call(o), K; !(K = Q.next()).done; )
|
|
551
|
+
st(K.value) && Mt(K.value, f);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function Er(o) {
|
|
556
556
|
{
|
|
557
557
|
var f = o.type;
|
|
558
558
|
if (f == null || typeof f == "string")
|
|
559
559
|
return;
|
|
560
|
-
var
|
|
560
|
+
var _;
|
|
561
561
|
if (typeof f == "function")
|
|
562
|
-
|
|
563
|
-
else if (typeof f == "object" && (f.$$typeof ===
|
|
562
|
+
_ = f.propTypes;
|
|
563
|
+
else if (typeof f == "object" && (f.$$typeof === a || // Note: Memo only checks outer props here.
|
|
564
564
|
// Inner props are checked in the reconciler.
|
|
565
|
-
f.$$typeof ===
|
|
566
|
-
|
|
565
|
+
f.$$typeof === w))
|
|
566
|
+
_ = f.propTypes;
|
|
567
567
|
else
|
|
568
568
|
return;
|
|
569
|
-
if (
|
|
570
|
-
var
|
|
571
|
-
|
|
572
|
-
} else if (f.PropTypes !== void 0 && !
|
|
573
|
-
|
|
574
|
-
var
|
|
575
|
-
|
|
569
|
+
if (_) {
|
|
570
|
+
var D = W(f);
|
|
571
|
+
_e(_, o.props, "prop", D, o);
|
|
572
|
+
} else if (f.PropTypes !== void 0 && !it) {
|
|
573
|
+
it = !0;
|
|
574
|
+
var U = W(f);
|
|
575
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
|
|
576
576
|
}
|
|
577
|
-
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved &&
|
|
577
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
function _r(o) {
|
|
581
581
|
{
|
|
582
|
-
for (var f = Object.keys(o.props),
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
ke(o),
|
|
582
|
+
for (var f = Object.keys(o.props), _ = 0; _ < f.length; _++) {
|
|
583
|
+
var D = f[_];
|
|
584
|
+
if (D !== "children" && D !== "key") {
|
|
585
|
+
ke(o), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", D), ke(null);
|
|
586
586
|
break;
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
o.ref !== null && (ke(o),
|
|
589
|
+
o.ref !== null && (ke(o), S("Invalid attribute `ref` supplied to `React.Fragment`."), ke(null));
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
var
|
|
593
|
-
function
|
|
592
|
+
var It = {};
|
|
593
|
+
function Lt(o, f, _, D, U, Q) {
|
|
594
594
|
{
|
|
595
|
-
var
|
|
596
|
-
if (!
|
|
597
|
-
var
|
|
598
|
-
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (
|
|
599
|
-
var
|
|
600
|
-
|
|
601
|
-
var
|
|
602
|
-
o === null ?
|
|
595
|
+
var K = F(o);
|
|
596
|
+
if (!K) {
|
|
597
|
+
var Y = "";
|
|
598
|
+
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (Y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
599
|
+
var he = br(U);
|
|
600
|
+
he ? Y += he : Y += jt();
|
|
601
|
+
var ie;
|
|
602
|
+
o === null ? ie = "null" : re(o) ? ie = "array" : o !== void 0 && o.$$typeof === t ? (ie = "<" + (W(o.type) || "Unknown") + " />", Y = " Did you accidentally export a JSX literal instead of a component?") : ie = typeof o, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ie, Y);
|
|
603
603
|
}
|
|
604
|
-
var
|
|
605
|
-
if (
|
|
606
|
-
return
|
|
607
|
-
if (
|
|
604
|
+
var ae = yr(o, f, _, U, Q);
|
|
605
|
+
if (ae == null)
|
|
606
|
+
return ae;
|
|
607
|
+
if (K) {
|
|
608
608
|
var Ee = f.children;
|
|
609
609
|
if (Ee !== void 0)
|
|
610
|
-
if (
|
|
611
|
-
if (
|
|
610
|
+
if (D)
|
|
611
|
+
if (re(Ee)) {
|
|
612
612
|
for (var De = 0; De < Ee.length; De++)
|
|
613
|
-
|
|
613
|
+
zt(Ee[De], o);
|
|
614
614
|
Object.freeze && Object.freeze(Ee);
|
|
615
615
|
} else
|
|
616
|
-
|
|
616
|
+
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
617
617
|
else
|
|
618
|
-
|
|
618
|
+
zt(Ee, o);
|
|
619
619
|
}
|
|
620
|
-
if (
|
|
621
|
-
var Ie =
|
|
620
|
+
if (q.call(f, "key")) {
|
|
621
|
+
var Ie = W(o), pe = Object.keys(f).filter(function(Tr) {
|
|
622
622
|
return Tr !== "key";
|
|
623
|
-
}),
|
|
624
|
-
if (!
|
|
625
|
-
var Or =
|
|
626
|
-
|
|
623
|
+
}), at = pe.length > 0 ? "{key: someKey, " + pe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
624
|
+
if (!It[Ie + at]) {
|
|
625
|
+
var Or = pe.length > 0 ? "{" + pe.join(": ..., ") + ": ...}" : "{}";
|
|
626
|
+
S(`A props object containing a "key" prop is being spread into JSX:
|
|
627
627
|
let props = %s;
|
|
628
628
|
<%s {...props} />
|
|
629
629
|
React keys must be passed directly to JSX without using spread:
|
|
630
630
|
let props = %s;
|
|
631
|
-
<%s key={someKey} {...props} />`,
|
|
631
|
+
<%s key={someKey} {...props} />`, at, Ie, Or, Ie), It[Ie + at] = !0;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
return o ===
|
|
634
|
+
return o === r ? _r(ae) : Er(ae), ae;
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
function Rr(o, f,
|
|
638
|
-
return
|
|
637
|
+
function Rr(o, f, _) {
|
|
638
|
+
return Lt(o, f, _, !0);
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
return
|
|
640
|
+
function xr(o, f, _) {
|
|
641
|
+
return Lt(o, f, _, !1);
|
|
642
642
|
}
|
|
643
|
-
var Cr =
|
|
644
|
-
Be.Fragment =
|
|
643
|
+
var Cr = xr, Sr = Rr;
|
|
644
|
+
Be.Fragment = r, Be.jsx = Cr, Be.jsxs = Sr;
|
|
645
645
|
}()), Be;
|
|
646
646
|
}
|
|
647
|
-
process.env.NODE_ENV === "production" ?
|
|
648
|
-
var
|
|
649
|
-
function
|
|
650
|
-
return
|
|
647
|
+
process.env.NODE_ENV === "production" ? vt.exports = Ir() : vt.exports = Lr();
|
|
648
|
+
var ee = vt.exports;
|
|
649
|
+
function mt() {
|
|
650
|
+
return mt = Object.assign ? Object.assign.bind() : function(e) {
|
|
651
651
|
for (var t = 1; t < arguments.length; t++) {
|
|
652
|
-
var
|
|
653
|
-
for (var
|
|
654
|
-
({}).hasOwnProperty.call(
|
|
652
|
+
var n = arguments[t];
|
|
653
|
+
for (var r in n)
|
|
654
|
+
({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
655
655
|
}
|
|
656
656
|
return e;
|
|
657
|
-
},
|
|
657
|
+
}, mt.apply(null, arguments);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function Ce(e) {
|
|
660
660
|
"@babel/helpers - typeof";
|
|
661
|
-
return
|
|
661
|
+
return Ce = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
662
662
|
return typeof t;
|
|
663
663
|
} : function(t) {
|
|
664
664
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
665
|
-
},
|
|
665
|
+
}, Ce(e);
|
|
666
666
|
}
|
|
667
667
|
var $r = Symbol.for("react.element"), kr = Symbol.for("react.transitional.element"), Dr = Symbol.for("react.fragment");
|
|
668
668
|
function Zt(e) {
|
|
669
669
|
return (
|
|
670
670
|
// Base object type
|
|
671
|
-
e &&
|
|
671
|
+
e && Ce(e) === "object" && // React Element type
|
|
672
672
|
(e.$$typeof === $r || e.$$typeof === kr) && // React Fragment type
|
|
673
673
|
e.type === Dr
|
|
674
674
|
);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
678
|
-
return
|
|
679
|
-
|
|
680
|
-
}),
|
|
676
|
+
function gt(e) {
|
|
677
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [];
|
|
678
|
+
return Ke.Children.forEach(e, function(r) {
|
|
679
|
+
r == null && !t.keepEmpty || (Array.isArray(r) ? n = n.concat(gt(r)) : Zt(r) && r.props ? n = n.concat(gt(r.props.children, t)) : n.push(r));
|
|
680
|
+
}), n;
|
|
681
681
|
}
|
|
682
682
|
var Fr = [];
|
|
683
|
-
function
|
|
684
|
-
if (process.env.NODE_ENV !== "production" && !e && console !== void 0)
|
|
685
|
-
var
|
|
686
|
-
return i(
|
|
683
|
+
function Nt(e, t) {
|
|
684
|
+
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
685
|
+
var n = Fr.reduce(function(r, i) {
|
|
686
|
+
return i(r ?? "", "warning");
|
|
687
687
|
}, t);
|
|
688
|
+
n && console.error("Warning: ".concat(n));
|
|
689
|
+
}
|
|
688
690
|
}
|
|
689
691
|
function Nr(e, t) {
|
|
690
|
-
if (
|
|
692
|
+
if (Ce(e) != "object" || !e)
|
|
691
693
|
return e;
|
|
692
|
-
var
|
|
693
|
-
if (
|
|
694
|
-
var
|
|
695
|
-
if (
|
|
696
|
-
return
|
|
694
|
+
var n = e[Symbol.toPrimitive];
|
|
695
|
+
if (n !== void 0) {
|
|
696
|
+
var r = n.call(e, t || "default");
|
|
697
|
+
if (Ce(r) != "object")
|
|
698
|
+
return r;
|
|
697
699
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
698
700
|
}
|
|
699
701
|
return (t === "string" ? String : Number)(e);
|
|
700
702
|
}
|
|
701
703
|
function Qt(e) {
|
|
702
704
|
var t = Nr(e, "string");
|
|
703
|
-
return
|
|
705
|
+
return Ce(t) == "symbol" ? t : t + "";
|
|
704
706
|
}
|
|
705
|
-
function Wr(e, t,
|
|
707
|
+
function Wr(e, t, n) {
|
|
706
708
|
return (t = Qt(t)) in e ? Object.defineProperty(e, t, {
|
|
707
|
-
value:
|
|
709
|
+
value: n,
|
|
708
710
|
enumerable: !0,
|
|
709
711
|
configurable: !0,
|
|
710
712
|
writable: !0
|
|
711
|
-
}) : e[t] =
|
|
713
|
+
}) : e[t] = n, e;
|
|
712
714
|
}
|
|
713
|
-
function
|
|
714
|
-
var
|
|
715
|
+
function Wt(e, t) {
|
|
716
|
+
var n = Object.keys(e);
|
|
715
717
|
if (Object.getOwnPropertySymbols) {
|
|
716
|
-
var
|
|
717
|
-
t && (
|
|
718
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
719
|
+
t && (r = r.filter(function(i) {
|
|
718
720
|
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
719
|
-
})),
|
|
721
|
+
})), n.push.apply(n, r);
|
|
720
722
|
}
|
|
721
|
-
return
|
|
723
|
+
return n;
|
|
722
724
|
}
|
|
723
|
-
function
|
|
725
|
+
function Vt(e) {
|
|
724
726
|
for (var t = 1; t < arguments.length; t++) {
|
|
725
|
-
var
|
|
726
|
-
t % 2 ?
|
|
727
|
-
Wr(e,
|
|
728
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
|
729
|
-
Object.defineProperty(e,
|
|
727
|
+
var n = arguments[t] != null ? arguments[t] : {};
|
|
728
|
+
t % 2 ? Wt(Object(n), !0).forEach(function(r) {
|
|
729
|
+
Wr(e, r, n[r]);
|
|
730
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Wt(Object(n)).forEach(function(r) {
|
|
731
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
730
732
|
});
|
|
731
733
|
}
|
|
732
734
|
return e;
|
|
733
735
|
}
|
|
734
|
-
function
|
|
736
|
+
function Ht(e) {
|
|
735
737
|
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
736
738
|
}
|
|
737
739
|
function Vr(e) {
|
|
738
|
-
return e &&
|
|
740
|
+
return e && Ce(e) === "object" && Ht(e.nativeElement) ? e.nativeElement : Ht(e) ? e : null;
|
|
739
741
|
}
|
|
740
|
-
function
|
|
742
|
+
function lt(e) {
|
|
741
743
|
var t = Vr(e);
|
|
742
744
|
if (t)
|
|
743
745
|
return t;
|
|
744
|
-
if (e instanceof
|
|
745
|
-
var
|
|
746
|
-
return (
|
|
746
|
+
if (e instanceof Ke.Component) {
|
|
747
|
+
var n;
|
|
748
|
+
return (n = kt.findDOMNode) === null || n === void 0 ? void 0 : n.call(kt, e);
|
|
747
749
|
}
|
|
748
750
|
return null;
|
|
749
751
|
}
|
|
750
|
-
var
|
|
752
|
+
var yt = { exports: {} }, J = {};
|
|
751
753
|
/**
|
|
752
754
|
* @license React
|
|
753
755
|
* react-is.production.min.js
|
|
@@ -757,76 +759,76 @@ var gt = { exports: {} }, U = {};
|
|
|
757
759
|
* This source code is licensed under the MIT license found in the
|
|
758
760
|
* LICENSE file in the root directory of this source tree.
|
|
759
761
|
*/
|
|
760
|
-
var
|
|
762
|
+
var Bt;
|
|
761
763
|
function Hr() {
|
|
762
|
-
if (
|
|
763
|
-
return
|
|
764
|
-
|
|
765
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"),
|
|
766
|
-
|
|
767
|
-
function
|
|
768
|
-
if (typeof
|
|
769
|
-
var
|
|
770
|
-
switch (
|
|
764
|
+
if (Bt)
|
|
765
|
+
return J;
|
|
766
|
+
Bt = 1;
|
|
767
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.server_context"), a = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), M;
|
|
768
|
+
M = Symbol.for("react.module.reference");
|
|
769
|
+
function R(c) {
|
|
770
|
+
if (typeof c == "object" && c !== null) {
|
|
771
|
+
var P = c.$$typeof;
|
|
772
|
+
switch (P) {
|
|
771
773
|
case e:
|
|
772
|
-
switch (
|
|
773
|
-
case r:
|
|
774
|
-
case i:
|
|
774
|
+
switch (c = c.type, c) {
|
|
775
775
|
case n:
|
|
776
|
-
case
|
|
776
|
+
case i:
|
|
777
|
+
case r:
|
|
777
778
|
case h:
|
|
778
|
-
|
|
779
|
+
case u:
|
|
780
|
+
return c;
|
|
779
781
|
default:
|
|
780
|
-
switch (
|
|
782
|
+
switch (c = c && c.$$typeof, c) {
|
|
781
783
|
case d:
|
|
782
|
-
case a:
|
|
783
784
|
case l:
|
|
784
|
-
case
|
|
785
|
-
case
|
|
785
|
+
case a:
|
|
786
|
+
case m:
|
|
787
|
+
case w:
|
|
786
788
|
case s:
|
|
787
|
-
return
|
|
789
|
+
return c;
|
|
788
790
|
default:
|
|
789
|
-
return
|
|
791
|
+
return P;
|
|
790
792
|
}
|
|
791
793
|
}
|
|
792
794
|
case t:
|
|
793
|
-
return
|
|
795
|
+
return P;
|
|
794
796
|
}
|
|
795
797
|
}
|
|
796
798
|
}
|
|
797
|
-
return
|
|
799
|
+
return J.ContextConsumer = l, J.ContextProvider = s, J.Element = e, J.ForwardRef = a, J.Fragment = n, J.Lazy = m, J.Memo = w, J.Portal = t, J.Profiler = i, J.StrictMode = r, J.Suspense = h, J.SuspenseList = u, J.isAsyncMode = function() {
|
|
798
800
|
return !1;
|
|
799
|
-
},
|
|
801
|
+
}, J.isConcurrentMode = function() {
|
|
800
802
|
return !1;
|
|
801
|
-
},
|
|
802
|
-
return
|
|
803
|
-
},
|
|
804
|
-
return
|
|
805
|
-
},
|
|
806
|
-
return typeof
|
|
807
|
-
},
|
|
808
|
-
return
|
|
809
|
-
},
|
|
810
|
-
return
|
|
811
|
-
},
|
|
812
|
-
return
|
|
813
|
-
},
|
|
814
|
-
return
|
|
815
|
-
},
|
|
816
|
-
return
|
|
817
|
-
},
|
|
818
|
-
return
|
|
819
|
-
},
|
|
820
|
-
return
|
|
821
|
-
},
|
|
822
|
-
return
|
|
823
|
-
},
|
|
824
|
-
return
|
|
825
|
-
},
|
|
826
|
-
return typeof
|
|
827
|
-
},
|
|
828
|
-
}
|
|
829
|
-
var
|
|
803
|
+
}, J.isContextConsumer = function(c) {
|
|
804
|
+
return R(c) === l;
|
|
805
|
+
}, J.isContextProvider = function(c) {
|
|
806
|
+
return R(c) === s;
|
|
807
|
+
}, J.isElement = function(c) {
|
|
808
|
+
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
809
|
+
}, J.isForwardRef = function(c) {
|
|
810
|
+
return R(c) === a;
|
|
811
|
+
}, J.isFragment = function(c) {
|
|
812
|
+
return R(c) === n;
|
|
813
|
+
}, J.isLazy = function(c) {
|
|
814
|
+
return R(c) === m;
|
|
815
|
+
}, J.isMemo = function(c) {
|
|
816
|
+
return R(c) === w;
|
|
817
|
+
}, J.isPortal = function(c) {
|
|
818
|
+
return R(c) === t;
|
|
819
|
+
}, J.isProfiler = function(c) {
|
|
820
|
+
return R(c) === i;
|
|
821
|
+
}, J.isStrictMode = function(c) {
|
|
822
|
+
return R(c) === r;
|
|
823
|
+
}, J.isSuspense = function(c) {
|
|
824
|
+
return R(c) === h;
|
|
825
|
+
}, J.isSuspenseList = function(c) {
|
|
826
|
+
return R(c) === u;
|
|
827
|
+
}, J.isValidElementType = function(c) {
|
|
828
|
+
return typeof c == "string" || typeof c == "function" || c === n || c === i || c === r || c === h || c === u || c === A || typeof c == "object" && c !== null && (c.$$typeof === m || c.$$typeof === w || c.$$typeof === s || c.$$typeof === l || c.$$typeof === a || c.$$typeof === M || c.getModuleId !== void 0);
|
|
829
|
+
}, J.typeOf = R, J;
|
|
830
|
+
}
|
|
831
|
+
var X = {};
|
|
830
832
|
/**
|
|
831
833
|
* @license React
|
|
832
834
|
* react-is.development.js
|
|
@@ -836,41 +838,41 @@ var q = {};
|
|
|
836
838
|
* This source code is licensed under the MIT license found in the
|
|
837
839
|
* LICENSE file in the root directory of this source tree.
|
|
838
840
|
*/
|
|
839
|
-
var
|
|
841
|
+
var Yt;
|
|
840
842
|
function Br() {
|
|
841
|
-
return
|
|
842
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"),
|
|
843
|
-
|
|
844
|
-
function I(
|
|
845
|
-
return !!(typeof
|
|
843
|
+
return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
844
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.server_context"), a = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), M = !1, R = !1, c = !1, P = !1, S = !1, Z;
|
|
845
|
+
Z = Symbol.for("react.module.reference");
|
|
846
|
+
function I(E) {
|
|
847
|
+
return !!(typeof E == "string" || typeof E == "function" || E === n || E === i || S || E === r || E === h || E === u || P || E === A || M || R || c || typeof E == "object" && E !== null && (E.$$typeof === m || E.$$typeof === w || E.$$typeof === s || E.$$typeof === l || E.$$typeof === a || // This needs to include all possible module reference object
|
|
846
848
|
// types supported by any Flight configuration anywhere since
|
|
847
849
|
// we don't know which Flight build this will end up being used
|
|
848
850
|
// with.
|
|
849
|
-
|
|
851
|
+
E.$$typeof === Z || E.getModuleId !== void 0));
|
|
850
852
|
}
|
|
851
|
-
function
|
|
852
|
-
if (typeof
|
|
853
|
-
var le =
|
|
853
|
+
function G(E) {
|
|
854
|
+
if (typeof E == "object" && E !== null) {
|
|
855
|
+
var le = E.$$typeof;
|
|
854
856
|
switch (le) {
|
|
855
857
|
case e:
|
|
856
|
-
var
|
|
857
|
-
switch (
|
|
858
|
-
case r:
|
|
859
|
-
case i:
|
|
858
|
+
var q = E.type;
|
|
859
|
+
switch (q) {
|
|
860
860
|
case n:
|
|
861
|
-
case
|
|
861
|
+
case i:
|
|
862
|
+
case r:
|
|
862
863
|
case h:
|
|
863
|
-
|
|
864
|
+
case u:
|
|
865
|
+
return q;
|
|
864
866
|
default:
|
|
865
|
-
var
|
|
866
|
-
switch (
|
|
867
|
+
var oe = q && q.$$typeof;
|
|
868
|
+
switch (oe) {
|
|
867
869
|
case d:
|
|
868
|
-
case a:
|
|
869
870
|
case l:
|
|
870
|
-
case
|
|
871
|
-
case
|
|
871
|
+
case a:
|
|
872
|
+
case m:
|
|
873
|
+
case w:
|
|
872
874
|
case s:
|
|
873
|
-
return
|
|
875
|
+
return oe;
|
|
874
876
|
default:
|
|
875
877
|
return le;
|
|
876
878
|
}
|
|
@@ -880,122 +882,122 @@ function Br() {
|
|
|
880
882
|
}
|
|
881
883
|
}
|
|
882
884
|
}
|
|
883
|
-
var
|
|
884
|
-
function
|
|
885
|
-
return
|
|
885
|
+
var L = l, $ = s, j = e, T = a, F = n, N = m, H = w, W = t, te = i, de = r, be = h, Se = u, Re = !1, ue = !1;
|
|
886
|
+
function Te(E) {
|
|
887
|
+
return Re || (Re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
886
888
|
}
|
|
887
|
-
function
|
|
888
|
-
return
|
|
889
|
+
function Pe(E) {
|
|
890
|
+
return ue || (ue = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
889
891
|
}
|
|
890
|
-
function
|
|
891
|
-
return
|
|
892
|
+
function y(E) {
|
|
893
|
+
return G(E) === l;
|
|
892
894
|
}
|
|
893
|
-
function
|
|
894
|
-
return
|
|
895
|
+
function g(E) {
|
|
896
|
+
return G(E) === s;
|
|
895
897
|
}
|
|
896
|
-
function
|
|
897
|
-
return typeof
|
|
898
|
+
function v(E) {
|
|
899
|
+
return typeof E == "object" && E !== null && E.$$typeof === e;
|
|
898
900
|
}
|
|
899
|
-
function
|
|
900
|
-
return
|
|
901
|
+
function C(E) {
|
|
902
|
+
return G(E) === a;
|
|
901
903
|
}
|
|
902
|
-
function
|
|
903
|
-
return
|
|
904
|
+
function p(E) {
|
|
905
|
+
return G(E) === n;
|
|
904
906
|
}
|
|
905
|
-
function
|
|
906
|
-
return
|
|
907
|
+
function x(E) {
|
|
908
|
+
return G(E) === m;
|
|
907
909
|
}
|
|
908
|
-
function
|
|
909
|
-
return
|
|
910
|
+
function b(E) {
|
|
911
|
+
return G(E) === w;
|
|
910
912
|
}
|
|
911
|
-
function
|
|
912
|
-
return
|
|
913
|
+
function O(E) {
|
|
914
|
+
return G(E) === t;
|
|
913
915
|
}
|
|
914
|
-
function
|
|
915
|
-
return
|
|
916
|
+
function z(E) {
|
|
917
|
+
return G(E) === i;
|
|
916
918
|
}
|
|
917
|
-
function
|
|
918
|
-
return
|
|
919
|
+
function V(E) {
|
|
920
|
+
return G(E) === r;
|
|
919
921
|
}
|
|
920
|
-
function
|
|
921
|
-
return
|
|
922
|
+
function k(E) {
|
|
923
|
+
return G(E) === h;
|
|
922
924
|
}
|
|
923
|
-
function
|
|
924
|
-
return
|
|
925
|
+
function B(E) {
|
|
926
|
+
return G(E) === u;
|
|
925
927
|
}
|
|
926
|
-
|
|
927
|
-
}()),
|
|
928
|
+
X.ContextConsumer = L, X.ContextProvider = $, X.Element = j, X.ForwardRef = T, X.Fragment = F, X.Lazy = N, X.Memo = H, X.Portal = W, X.Profiler = te, X.StrictMode = de, X.Suspense = be, X.SuspenseList = Se, X.isAsyncMode = Te, X.isConcurrentMode = Pe, X.isContextConsumer = y, X.isContextProvider = g, X.isElement = v, X.isForwardRef = C, X.isFragment = p, X.isLazy = x, X.isMemo = b, X.isPortal = O, X.isProfiler = z, X.isStrictMode = V, X.isSuspense = k, X.isSuspenseList = B, X.isValidElementType = I, X.typeOf = G;
|
|
929
|
+
}()), X;
|
|
928
930
|
}
|
|
929
|
-
process.env.NODE_ENV === "production" ?
|
|
930
|
-
var
|
|
931
|
-
function Yr(e, t,
|
|
932
|
-
var
|
|
933
|
-
return (!("value" in
|
|
931
|
+
process.env.NODE_ENV === "production" ? yt.exports = Hr() : yt.exports = Br();
|
|
932
|
+
var ct = yt.exports;
|
|
933
|
+
function Yr(e, t, n) {
|
|
934
|
+
var r = ne.useRef({});
|
|
935
|
+
return (!("value" in r.current) || n(r.current.condition, t)) && (r.current.value = e(), r.current.condition = t), r.current.value;
|
|
934
936
|
}
|
|
935
|
-
var Kr = Number(Pr.split(".")[0]), Gr = function(t,
|
|
936
|
-
typeof t == "function" ? t(
|
|
937
|
+
var Kr = Number(Pr.split(".")[0]), Gr = function(t, n) {
|
|
938
|
+
typeof t == "function" ? t(n) : Ce(t) === "object" && t && "current" in t && (t.current = n);
|
|
937
939
|
}, Ur = function() {
|
|
938
|
-
for (var t = arguments.length,
|
|
939
|
-
r
|
|
940
|
-
var i =
|
|
940
|
+
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
941
|
+
n[r] = arguments[r];
|
|
942
|
+
var i = n.filter(Boolean);
|
|
941
943
|
return i.length <= 1 ? i[0] : function(s) {
|
|
942
|
-
|
|
943
|
-
Gr(
|
|
944
|
+
n.forEach(function(l) {
|
|
945
|
+
Gr(l, s);
|
|
944
946
|
});
|
|
945
947
|
};
|
|
946
948
|
}, qr = function() {
|
|
947
|
-
for (var t = arguments.length,
|
|
948
|
-
r
|
|
949
|
+
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
950
|
+
n[r] = arguments[r];
|
|
949
951
|
return Yr(function() {
|
|
950
|
-
return Ur.apply(void 0,
|
|
951
|
-
},
|
|
952
|
-
return i.length !== s.length || i.every(function(
|
|
953
|
-
return
|
|
952
|
+
return Ur.apply(void 0, n);
|
|
953
|
+
}, n, function(i, s) {
|
|
954
|
+
return i.length !== s.length || i.every(function(l, d) {
|
|
955
|
+
return l !== s[d];
|
|
954
956
|
});
|
|
955
957
|
});
|
|
956
958
|
}, Jr = function(t) {
|
|
957
|
-
var
|
|
959
|
+
var n, r;
|
|
958
960
|
if (!t)
|
|
959
961
|
return !1;
|
|
960
962
|
if (er(t) && Kr >= 19)
|
|
961
963
|
return !0;
|
|
962
|
-
var i =
|
|
963
|
-
return !(typeof i == "function" && !((
|
|
964
|
+
var i = ct.isMemo(t) ? t.type.type : t.type;
|
|
965
|
+
return !(typeof i == "function" && !((n = i.prototype) !== null && n !== void 0 && n.render) && i.$$typeof !== ct.ForwardRef || typeof t == "function" && !((r = t.prototype) !== null && r !== void 0 && r.render) && t.$$typeof !== ct.ForwardRef);
|
|
964
966
|
};
|
|
965
967
|
function er(e) {
|
|
966
968
|
return /* @__PURE__ */ jr(e) && !Zt(e);
|
|
967
969
|
}
|
|
968
970
|
var Xr = function(t) {
|
|
969
971
|
if (t && er(t)) {
|
|
970
|
-
var
|
|
971
|
-
return
|
|
972
|
+
var n = t;
|
|
973
|
+
return n.props.propertyIsEnumerable("ref") ? n.props.ref : n.ref;
|
|
972
974
|
}
|
|
973
975
|
return null;
|
|
974
|
-
},
|
|
976
|
+
}, bt = /* @__PURE__ */ ne.createContext(null);
|
|
975
977
|
function Zr(e) {
|
|
976
|
-
var t = e.children,
|
|
977
|
-
|
|
978
|
-
var
|
|
978
|
+
var t = e.children, n = e.onBatchResize, r = ne.useRef(0), i = ne.useRef([]), s = ne.useContext(bt), l = ne.useCallback(function(d, a, h) {
|
|
979
|
+
r.current += 1;
|
|
980
|
+
var u = r.current;
|
|
979
981
|
i.current.push({
|
|
980
982
|
size: d,
|
|
981
|
-
element:
|
|
982
|
-
data:
|
|
983
|
+
element: a,
|
|
984
|
+
data: h
|
|
983
985
|
}), Promise.resolve().then(function() {
|
|
984
|
-
|
|
985
|
-
}), s == null || s(d,
|
|
986
|
-
}, [
|
|
987
|
-
return /* @__PURE__ */
|
|
988
|
-
value:
|
|
986
|
+
u === r.current && (n == null || n(i.current), i.current = []);
|
|
987
|
+
}), s == null || s(d, a, h);
|
|
988
|
+
}, [n, s]);
|
|
989
|
+
return /* @__PURE__ */ ne.createElement(bt.Provider, {
|
|
990
|
+
value: l
|
|
989
991
|
}, t);
|
|
990
992
|
}
|
|
991
993
|
var tr = function() {
|
|
992
994
|
if (typeof Map < "u")
|
|
993
995
|
return Map;
|
|
994
|
-
function e(t,
|
|
995
|
-
var
|
|
996
|
+
function e(t, n) {
|
|
997
|
+
var r = -1;
|
|
996
998
|
return t.some(function(i, s) {
|
|
997
|
-
return i[0] ===
|
|
998
|
-
}),
|
|
999
|
+
return i[0] === n ? (r = s, !0) : !1;
|
|
1000
|
+
}), r;
|
|
999
1001
|
}
|
|
1000
1002
|
return (
|
|
1001
1003
|
/** @class */
|
|
@@ -1012,54 +1014,54 @@ var tr = function() {
|
|
|
1012
1014
|
},
|
|
1013
1015
|
enumerable: !0,
|
|
1014
1016
|
configurable: !0
|
|
1015
|
-
}), t.prototype.get = function(
|
|
1016
|
-
var
|
|
1017
|
+
}), t.prototype.get = function(n) {
|
|
1018
|
+
var r = e(this.__entries__, n), i = this.__entries__[r];
|
|
1017
1019
|
return i && i[1];
|
|
1018
|
-
}, t.prototype.set = function(
|
|
1019
|
-
var i = e(this.__entries__,
|
|
1020
|
-
~i ? this.__entries__[i][1] =
|
|
1021
|
-
}, t.prototype.delete = function(
|
|
1022
|
-
var
|
|
1023
|
-
~i &&
|
|
1024
|
-
}, t.prototype.has = function(
|
|
1025
|
-
return !!~e(this.__entries__,
|
|
1020
|
+
}, t.prototype.set = function(n, r) {
|
|
1021
|
+
var i = e(this.__entries__, n);
|
|
1022
|
+
~i ? this.__entries__[i][1] = r : this.__entries__.push([n, r]);
|
|
1023
|
+
}, t.prototype.delete = function(n) {
|
|
1024
|
+
var r = this.__entries__, i = e(r, n);
|
|
1025
|
+
~i && r.splice(i, 1);
|
|
1026
|
+
}, t.prototype.has = function(n) {
|
|
1027
|
+
return !!~e(this.__entries__, n);
|
|
1026
1028
|
}, t.prototype.clear = function() {
|
|
1027
1029
|
this.__entries__.splice(0);
|
|
1028
|
-
}, t.prototype.forEach = function(
|
|
1029
|
-
|
|
1030
|
+
}, t.prototype.forEach = function(n, r) {
|
|
1031
|
+
r === void 0 && (r = null);
|
|
1030
1032
|
for (var i = 0, s = this.__entries__; i < s.length; i++) {
|
|
1031
|
-
var
|
|
1032
|
-
|
|
1033
|
+
var l = s[i];
|
|
1034
|
+
n.call(r, l[1], l[0]);
|
|
1033
1035
|
}
|
|
1034
1036
|
}, t;
|
|
1035
1037
|
}()
|
|
1036
1038
|
);
|
|
1037
|
-
}(),
|
|
1039
|
+
}(), wt = typeof window < "u" && typeof document < "u" && window.document === document, Je = function() {
|
|
1038
1040
|
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
1039
1041
|
}(), Qr = function() {
|
|
1040
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
1042
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Je) : function(e) {
|
|
1041
1043
|
return setTimeout(function() {
|
|
1042
1044
|
return e(Date.now());
|
|
1043
1045
|
}, 1e3 / 60);
|
|
1044
1046
|
};
|
|
1045
1047
|
}(), en = 2;
|
|
1046
1048
|
function tn(e, t) {
|
|
1047
|
-
var
|
|
1049
|
+
var n = !1, r = !1, i = 0;
|
|
1048
1050
|
function s() {
|
|
1049
|
-
|
|
1051
|
+
n && (n = !1, e()), r && d();
|
|
1050
1052
|
}
|
|
1051
|
-
function
|
|
1053
|
+
function l() {
|
|
1052
1054
|
Qr(s);
|
|
1053
1055
|
}
|
|
1054
1056
|
function d() {
|
|
1055
|
-
var
|
|
1056
|
-
if (
|
|
1057
|
-
if (
|
|
1057
|
+
var a = Date.now();
|
|
1058
|
+
if (n) {
|
|
1059
|
+
if (a - i < en)
|
|
1058
1060
|
return;
|
|
1059
|
-
|
|
1061
|
+
r = !0;
|
|
1060
1062
|
} else
|
|
1061
|
-
|
|
1062
|
-
i =
|
|
1063
|
+
n = !0, r = !1, setTimeout(l, t);
|
|
1064
|
+
i = a;
|
|
1063
1065
|
}
|
|
1064
1066
|
return d;
|
|
1065
1067
|
}
|
|
@@ -1072,30 +1074,30 @@ var rn = 20, nn = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1072
1074
|
return e.prototype.addObserver = function(t) {
|
|
1073
1075
|
~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
|
|
1074
1076
|
}, e.prototype.removeObserver = function(t) {
|
|
1075
|
-
var
|
|
1076
|
-
~
|
|
1077
|
+
var n = this.observers_, r = n.indexOf(t);
|
|
1078
|
+
~r && n.splice(r, 1), !n.length && this.connected_ && this.disconnect_();
|
|
1077
1079
|
}, e.prototype.refresh = function() {
|
|
1078
1080
|
var t = this.updateObservers_();
|
|
1079
1081
|
t && this.refresh();
|
|
1080
1082
|
}, e.prototype.updateObservers_ = function() {
|
|
1081
|
-
var t = this.observers_.filter(function(
|
|
1082
|
-
return
|
|
1083
|
+
var t = this.observers_.filter(function(n) {
|
|
1084
|
+
return n.gatherActive(), n.hasActive();
|
|
1083
1085
|
});
|
|
1084
|
-
return t.forEach(function(
|
|
1085
|
-
return
|
|
1086
|
+
return t.forEach(function(n) {
|
|
1087
|
+
return n.broadcastActive();
|
|
1086
1088
|
}), t.length > 0;
|
|
1087
1089
|
}, e.prototype.connect_ = function() {
|
|
1088
|
-
!
|
|
1090
|
+
!wt || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), on ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
1089
1091
|
attributes: !0,
|
|
1090
1092
|
childList: !0,
|
|
1091
1093
|
characterData: !0,
|
|
1092
1094
|
subtree: !0
|
|
1093
1095
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
1094
1096
|
}, e.prototype.disconnect_ = function() {
|
|
1095
|
-
!
|
|
1097
|
+
!wt || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
1096
1098
|
}, e.prototype.onTransitionEnd_ = function(t) {
|
|
1097
|
-
var
|
|
1098
|
-
return !!~
|
|
1099
|
+
var n = t.propertyName, r = n === void 0 ? "" : n, i = nn.some(function(s) {
|
|
1100
|
+
return !!~r.indexOf(s);
|
|
1099
1101
|
});
|
|
1100
1102
|
i && this.refresh();
|
|
1101
1103
|
}, e.getInstance = function() {
|
|
@@ -1103,8 +1105,8 @@ var rn = 20, nn = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1103
1105
|
}, e.instance_ = null, e;
|
|
1104
1106
|
}()
|
|
1105
1107
|
), rr = function(e, t) {
|
|
1106
|
-
for (var
|
|
1107
|
-
var i = n
|
|
1108
|
+
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
1109
|
+
var i = r[n];
|
|
1108
1110
|
Object.defineProperty(e, i, {
|
|
1109
1111
|
value: t[i],
|
|
1110
1112
|
enumerable: !1,
|
|
@@ -1115,40 +1117,40 @@ var rn = 20, nn = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1115
1117
|
return e;
|
|
1116
1118
|
}, Ne = function(e) {
|
|
1117
1119
|
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
|
|
1118
|
-
return t ||
|
|
1119
|
-
}, nr =
|
|
1120
|
-
function
|
|
1120
|
+
return t || Je;
|
|
1121
|
+
}, nr = rt(0, 0, 0, 0);
|
|
1122
|
+
function Xe(e) {
|
|
1121
1123
|
return parseFloat(e) || 0;
|
|
1122
1124
|
}
|
|
1123
|
-
function
|
|
1124
|
-
for (var t = [],
|
|
1125
|
-
t[
|
|
1126
|
-
return t.reduce(function(
|
|
1125
|
+
function Kt(e) {
|
|
1126
|
+
for (var t = [], n = 1; n < arguments.length; n++)
|
|
1127
|
+
t[n - 1] = arguments[n];
|
|
1128
|
+
return t.reduce(function(r, i) {
|
|
1127
1129
|
var s = e["border-" + i + "-width"];
|
|
1128
|
-
return
|
|
1130
|
+
return r + Xe(s);
|
|
1129
1131
|
}, 0);
|
|
1130
1132
|
}
|
|
1131
1133
|
function an(e) {
|
|
1132
|
-
for (var t = ["top", "right", "bottom", "left"],
|
|
1133
|
-
var s = i[
|
|
1134
|
-
|
|
1134
|
+
for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
1135
|
+
var s = i[r], l = e["padding-" + s];
|
|
1136
|
+
n[s] = Xe(l);
|
|
1135
1137
|
}
|
|
1136
|
-
return
|
|
1138
|
+
return n;
|
|
1137
1139
|
}
|
|
1138
1140
|
function ln(e) {
|
|
1139
1141
|
var t = e.getBBox();
|
|
1140
|
-
return
|
|
1142
|
+
return rt(0, 0, t.width, t.height);
|
|
1141
1143
|
}
|
|
1142
1144
|
function cn(e) {
|
|
1143
|
-
var t = e.clientWidth,
|
|
1144
|
-
if (!t && !
|
|
1145
|
+
var t = e.clientWidth, n = e.clientHeight;
|
|
1146
|
+
if (!t && !n)
|
|
1145
1147
|
return nr;
|
|
1146
|
-
var
|
|
1147
|
-
if (
|
|
1148
|
-
var
|
|
1149
|
-
Math.abs(
|
|
1148
|
+
var r = Ne(e).getComputedStyle(e), i = an(r), s = i.left + i.right, l = i.top + i.bottom, d = Xe(r.width), a = Xe(r.height);
|
|
1149
|
+
if (r.boxSizing === "border-box" && (Math.round(d + s) !== t && (d -= Kt(r, "left", "right") + s), Math.round(a + l) !== n && (a -= Kt(r, "top", "bottom") + l)), !fn(e)) {
|
|
1150
|
+
var h = Math.round(d + s) - t, u = Math.round(a + l) - n;
|
|
1151
|
+
Math.abs(h) !== 1 && (d -= h), Math.abs(u) !== 1 && (a -= u);
|
|
1150
1152
|
}
|
|
1151
|
-
return
|
|
1153
|
+
return rt(i.left, i.top, d, a);
|
|
1152
1154
|
}
|
|
1153
1155
|
var un = function() {
|
|
1154
1156
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
@@ -1161,29 +1163,29 @@ function fn(e) {
|
|
|
1161
1163
|
return e === Ne(e).document.documentElement;
|
|
1162
1164
|
}
|
|
1163
1165
|
function dn(e) {
|
|
1164
|
-
return
|
|
1166
|
+
return wt ? un(e) ? ln(e) : cn(e) : nr;
|
|
1165
1167
|
}
|
|
1166
1168
|
function hn(e) {
|
|
1167
|
-
var t = e.x,
|
|
1168
|
-
return rr(
|
|
1169
|
+
var t = e.x, n = e.y, r = e.width, i = e.height, s = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, l = Object.create(s.prototype);
|
|
1170
|
+
return rr(l, {
|
|
1169
1171
|
x: t,
|
|
1170
|
-
y:
|
|
1171
|
-
width:
|
|
1172
|
+
y: n,
|
|
1173
|
+
width: r,
|
|
1172
1174
|
height: i,
|
|
1173
|
-
top:
|
|
1174
|
-
right: t +
|
|
1175
|
-
bottom: i +
|
|
1175
|
+
top: n,
|
|
1176
|
+
right: t + r,
|
|
1177
|
+
bottom: i + n,
|
|
1176
1178
|
left: t
|
|
1177
|
-
}),
|
|
1179
|
+
}), l;
|
|
1178
1180
|
}
|
|
1179
|
-
function
|
|
1180
|
-
return { x: e, y: t, width:
|
|
1181
|
+
function rt(e, t, n, r) {
|
|
1182
|
+
return { x: e, y: t, width: n, height: r };
|
|
1181
1183
|
}
|
|
1182
1184
|
var pn = (
|
|
1183
1185
|
/** @class */
|
|
1184
1186
|
function() {
|
|
1185
1187
|
function e(t) {
|
|
1186
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
1188
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = rt(0, 0, 0, 0), this.target = t;
|
|
1187
1189
|
}
|
|
1188
1190
|
return e.prototype.isActive = function() {
|
|
1189
1191
|
var t = dn(this.target);
|
|
@@ -1196,19 +1198,19 @@ var pn = (
|
|
|
1196
1198
|
), vn = (
|
|
1197
1199
|
/** @class */
|
|
1198
1200
|
function() {
|
|
1199
|
-
function e(t,
|
|
1200
|
-
var
|
|
1201
|
-
rr(this, { target: t, contentRect:
|
|
1201
|
+
function e(t, n) {
|
|
1202
|
+
var r = hn(n);
|
|
1203
|
+
rr(this, { target: t, contentRect: r });
|
|
1202
1204
|
}
|
|
1203
1205
|
return e;
|
|
1204
1206
|
}()
|
|
1205
1207
|
), mn = (
|
|
1206
1208
|
/** @class */
|
|
1207
1209
|
function() {
|
|
1208
|
-
function e(t,
|
|
1210
|
+
function e(t, n, r) {
|
|
1209
1211
|
if (this.activeObservations_ = [], this.observations_ = new tr(), typeof t != "function")
|
|
1210
1212
|
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
1211
|
-
this.callback_ = t, this.controller_ =
|
|
1213
|
+
this.callback_ = t, this.controller_ = n, this.callbackCtx_ = r;
|
|
1212
1214
|
}
|
|
1213
1215
|
return e.prototype.observe = function(t) {
|
|
1214
1216
|
if (!arguments.length)
|
|
@@ -1216,8 +1218,8 @@ var pn = (
|
|
|
1216
1218
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
1217
1219
|
if (!(t instanceof Ne(t).Element))
|
|
1218
1220
|
throw new TypeError('parameter 1 is not of type "Element".');
|
|
1219
|
-
var
|
|
1220
|
-
|
|
1221
|
+
var n = this.observations_;
|
|
1222
|
+
n.has(t) || (n.set(t, new pn(t)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
1221
1223
|
}
|
|
1222
1224
|
}, e.prototype.unobserve = function(t) {
|
|
1223
1225
|
if (!arguments.length)
|
|
@@ -1225,22 +1227,22 @@ var pn = (
|
|
|
1225
1227
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
1226
1228
|
if (!(t instanceof Ne(t).Element))
|
|
1227
1229
|
throw new TypeError('parameter 1 is not of type "Element".');
|
|
1228
|
-
var
|
|
1229
|
-
|
|
1230
|
+
var n = this.observations_;
|
|
1231
|
+
n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
|
|
1230
1232
|
}
|
|
1231
1233
|
}, e.prototype.disconnect = function() {
|
|
1232
1234
|
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
|
|
1233
1235
|
}, e.prototype.gatherActive = function() {
|
|
1234
1236
|
var t = this;
|
|
1235
|
-
this.clearActive(), this.observations_.forEach(function(
|
|
1236
|
-
|
|
1237
|
+
this.clearActive(), this.observations_.forEach(function(n) {
|
|
1238
|
+
n.isActive() && t.activeObservations_.push(n);
|
|
1237
1239
|
});
|
|
1238
1240
|
}, e.prototype.broadcastActive = function() {
|
|
1239
1241
|
if (this.hasActive()) {
|
|
1240
|
-
var t = this.callbackCtx_,
|
|
1241
|
-
return new vn(
|
|
1242
|
+
var t = this.callbackCtx_, n = this.activeObservations_.map(function(r) {
|
|
1243
|
+
return new vn(r.target, r.broadcastRect());
|
|
1242
1244
|
});
|
|
1243
|
-
this.callback_.call(t,
|
|
1245
|
+
this.callback_.call(t, n, t), this.clearActive();
|
|
1244
1246
|
}
|
|
1245
1247
|
}, e.prototype.clearActive = function() {
|
|
1246
1248
|
this.activeObservations_.splice(0);
|
|
@@ -1256,8 +1258,8 @@ var pn = (
|
|
|
1256
1258
|
throw new TypeError("Cannot call a class as a function.");
|
|
1257
1259
|
if (!arguments.length)
|
|
1258
1260
|
throw new TypeError("1 argument required, but only 0 present.");
|
|
1259
|
-
var
|
|
1260
|
-
or.set(this,
|
|
1261
|
+
var n = sn.getInstance(), r = new mn(t, n, this);
|
|
1262
|
+
or.set(this, r);
|
|
1261
1263
|
}
|
|
1262
1264
|
return e;
|
|
1263
1265
|
}()
|
|
@@ -1273,13 +1275,13 @@ var pn = (
|
|
|
1273
1275
|
};
|
|
1274
1276
|
});
|
|
1275
1277
|
var gn = function() {
|
|
1276
|
-
return typeof
|
|
1277
|
-
}(),
|
|
1278
|
+
return typeof Je.ResizeObserver < "u" ? Je.ResizeObserver : ir;
|
|
1279
|
+
}(), Oe = /* @__PURE__ */ new Map();
|
|
1278
1280
|
function sr(e) {
|
|
1279
1281
|
e.forEach(function(t) {
|
|
1280
|
-
var
|
|
1281
|
-
(
|
|
1282
|
-
return i(
|
|
1282
|
+
var n, r = t.target;
|
|
1283
|
+
(n = Oe.get(r)) === null || n === void 0 || n.forEach(function(i) {
|
|
1284
|
+
return i(r);
|
|
1283
1285
|
});
|
|
1284
1286
|
});
|
|
1285
1287
|
}
|
|
@@ -1287,29 +1289,29 @@ var ar = new gn(sr);
|
|
|
1287
1289
|
process.env.NODE_ENV;
|
|
1288
1290
|
process.env.NODE_ENV;
|
|
1289
1291
|
function yn(e, t) {
|
|
1290
|
-
|
|
1292
|
+
Oe.has(e) || (Oe.set(e, /* @__PURE__ */ new Set()), ar.observe(e)), Oe.get(e).add(t);
|
|
1291
1293
|
}
|
|
1292
1294
|
function bn(e, t) {
|
|
1293
|
-
|
|
1295
|
+
Oe.has(e) && (Oe.get(e).delete(t), Oe.get(e).size || (ar.unobserve(e), Oe.delete(e)));
|
|
1294
1296
|
}
|
|
1295
|
-
function
|
|
1297
|
+
function wn(e, t) {
|
|
1296
1298
|
if (!(e instanceof t))
|
|
1297
1299
|
throw new TypeError("Cannot call a class as a function");
|
|
1298
1300
|
}
|
|
1299
|
-
function
|
|
1300
|
-
for (var
|
|
1301
|
-
var
|
|
1302
|
-
|
|
1301
|
+
function Gt(e, t) {
|
|
1302
|
+
for (var n = 0; n < t.length; n++) {
|
|
1303
|
+
var r = t[n];
|
|
1304
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Qt(r.key), r);
|
|
1303
1305
|
}
|
|
1304
1306
|
}
|
|
1305
|
-
function
|
|
1306
|
-
return t &&
|
|
1307
|
+
function En(e, t, n) {
|
|
1308
|
+
return t && Gt(e.prototype, t), n && Gt(e, n), Object.defineProperty(e, "prototype", {
|
|
1307
1309
|
writable: !1
|
|
1308
1310
|
}), e;
|
|
1309
1311
|
}
|
|
1310
1312
|
function Et(e, t) {
|
|
1311
|
-
return Et = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(
|
|
1312
|
-
return
|
|
1313
|
+
return Et = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
1314
|
+
return n.__proto__ = r, n;
|
|
1313
1315
|
}, Et(e, t);
|
|
1314
1316
|
}
|
|
1315
1317
|
function _n(e, t) {
|
|
@@ -1325,10 +1327,10 @@ function _n(e, t) {
|
|
|
1325
1327
|
writable: !1
|
|
1326
1328
|
}), t && Et(e, t);
|
|
1327
1329
|
}
|
|
1328
|
-
function
|
|
1329
|
-
return
|
|
1330
|
+
function Ze(e) {
|
|
1331
|
+
return Ze = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
1330
1332
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1331
|
-
},
|
|
1333
|
+
}, Ze(e);
|
|
1332
1334
|
}
|
|
1333
1335
|
function lr() {
|
|
1334
1336
|
try {
|
|
@@ -1345,8 +1347,8 @@ function Rn(e) {
|
|
|
1345
1347
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1346
1348
|
return e;
|
|
1347
1349
|
}
|
|
1348
|
-
function
|
|
1349
|
-
if (t && (
|
|
1350
|
+
function xn(e, t) {
|
|
1351
|
+
if (t && (Ce(t) == "object" || typeof t == "function"))
|
|
1350
1352
|
return t;
|
|
1351
1353
|
if (t !== void 0)
|
|
1352
1354
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -1355,90 +1357,90 @@ function Sn(e, t) {
|
|
|
1355
1357
|
function Cn(e) {
|
|
1356
1358
|
var t = lr();
|
|
1357
1359
|
return function() {
|
|
1358
|
-
var
|
|
1360
|
+
var n, r = Ze(e);
|
|
1359
1361
|
if (t) {
|
|
1360
|
-
var i =
|
|
1361
|
-
|
|
1362
|
+
var i = Ze(this).constructor;
|
|
1363
|
+
n = Reflect.construct(r, arguments, i);
|
|
1362
1364
|
} else
|
|
1363
|
-
|
|
1364
|
-
return
|
|
1365
|
+
n = r.apply(this, arguments);
|
|
1366
|
+
return xn(this, n);
|
|
1365
1367
|
};
|
|
1366
1368
|
}
|
|
1367
|
-
var
|
|
1368
|
-
_n(
|
|
1369
|
-
var t = Cn(
|
|
1370
|
-
function
|
|
1371
|
-
return
|
|
1369
|
+
var Sn = /* @__PURE__ */ function(e) {
|
|
1370
|
+
_n(n, e);
|
|
1371
|
+
var t = Cn(n);
|
|
1372
|
+
function n() {
|
|
1373
|
+
return wn(this, n), t.apply(this, arguments);
|
|
1372
1374
|
}
|
|
1373
|
-
return
|
|
1375
|
+
return En(n, [{
|
|
1374
1376
|
key: "render",
|
|
1375
1377
|
value: function() {
|
|
1376
1378
|
return this.props.children;
|
|
1377
1379
|
}
|
|
1378
|
-
}]),
|
|
1379
|
-
}(
|
|
1380
|
+
}]), n;
|
|
1381
|
+
}(ne.Component);
|
|
1380
1382
|
function On(e, t) {
|
|
1381
|
-
var
|
|
1383
|
+
var n = e.children, r = e.disabled, i = ne.useRef(null), s = ne.useRef(null), l = ne.useContext(bt), d = typeof n == "function", a = d ? n(i) : n, h = ne.useRef({
|
|
1382
1384
|
width: -1,
|
|
1383
1385
|
height: -1,
|
|
1384
1386
|
offsetWidth: -1,
|
|
1385
1387
|
offsetHeight: -1
|
|
1386
|
-
}),
|
|
1387
|
-
var
|
|
1388
|
-
return
|
|
1389
|
-
(i.current &&
|
|
1388
|
+
}), u = !d && /* @__PURE__ */ ne.isValidElement(a) && Jr(a), w = u ? Xr(a) : null, m = qr(w, i), A = function() {
|
|
1389
|
+
var P;
|
|
1390
|
+
return lt(i.current) || // Support `nativeElement` format
|
|
1391
|
+
(i.current && Ce(i.current) === "object" ? lt((P = i.current) === null || P === void 0 ? void 0 : P.nativeElement) : null) || lt(s.current);
|
|
1390
1392
|
};
|
|
1391
|
-
|
|
1392
|
-
return
|
|
1393
|
+
ne.useImperativeHandle(t, function() {
|
|
1394
|
+
return A();
|
|
1393
1395
|
});
|
|
1394
|
-
var
|
|
1395
|
-
|
|
1396
|
-
var
|
|
1397
|
-
var
|
|
1398
|
-
if (
|
|
1399
|
-
var
|
|
1400
|
-
width:
|
|
1401
|
-
height:
|
|
1402
|
-
offsetWidth:
|
|
1403
|
-
offsetHeight:
|
|
1396
|
+
var M = ne.useRef(e);
|
|
1397
|
+
M.current = e;
|
|
1398
|
+
var R = ne.useCallback(function(c) {
|
|
1399
|
+
var P = M.current, S = P.onResize, Z = P.data, I = c.getBoundingClientRect(), G = I.width, L = I.height, $ = c.offsetWidth, j = c.offsetHeight, T = Math.floor(G), F = Math.floor(L);
|
|
1400
|
+
if (h.current.width !== T || h.current.height !== F || h.current.offsetWidth !== $ || h.current.offsetHeight !== j) {
|
|
1401
|
+
var N = {
|
|
1402
|
+
width: T,
|
|
1403
|
+
height: F,
|
|
1404
|
+
offsetWidth: $,
|
|
1405
|
+
offsetHeight: j
|
|
1404
1406
|
};
|
|
1405
|
-
|
|
1406
|
-
var
|
|
1407
|
-
offsetWidth:
|
|
1408
|
-
offsetHeight:
|
|
1407
|
+
h.current = N;
|
|
1408
|
+
var H = $ === Math.round(G) ? G : $, W = j === Math.round(L) ? L : j, te = Vt(Vt({}, N), {}, {
|
|
1409
|
+
offsetWidth: H,
|
|
1410
|
+
offsetHeight: W
|
|
1409
1411
|
});
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
+
l == null || l(te, c, Z), S && Promise.resolve().then(function() {
|
|
1413
|
+
S(te, c);
|
|
1412
1414
|
});
|
|
1413
1415
|
}
|
|
1414
1416
|
}, []);
|
|
1415
|
-
return
|
|
1416
|
-
var
|
|
1417
|
-
return
|
|
1418
|
-
return bn(
|
|
1417
|
+
return ne.useEffect(function() {
|
|
1418
|
+
var c = A();
|
|
1419
|
+
return c && !r && yn(c, R), function() {
|
|
1420
|
+
return bn(c, R);
|
|
1419
1421
|
};
|
|
1420
|
-
}, [i.current,
|
|
1422
|
+
}, [i.current, r]), /* @__PURE__ */ ne.createElement(Sn, {
|
|
1421
1423
|
ref: s
|
|
1422
|
-
},
|
|
1423
|
-
ref:
|
|
1424
|
-
}) :
|
|
1424
|
+
}, u ? /* @__PURE__ */ ne.cloneElement(a, {
|
|
1425
|
+
ref: m
|
|
1426
|
+
}) : a);
|
|
1425
1427
|
}
|
|
1426
|
-
var cr = /* @__PURE__ */
|
|
1428
|
+
var cr = /* @__PURE__ */ ne.forwardRef(On);
|
|
1427
1429
|
process.env.NODE_ENV !== "production" && (cr.displayName = "SingleObserver");
|
|
1428
1430
|
var Tn = "rc-observer-key";
|
|
1429
1431
|
function Pn(e, t) {
|
|
1430
|
-
var
|
|
1431
|
-
return process.env.NODE_ENV !== "production" && (
|
|
1432
|
-
var
|
|
1433
|
-
return /* @__PURE__ */
|
|
1434
|
-
key:
|
|
1432
|
+
var n = e.children, r = typeof n == "function" ? [n] : gt(n);
|
|
1433
|
+
return process.env.NODE_ENV !== "production" && (r.length > 1 ? Nt(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : r.length === 0 && Nt(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), r.map(function(i, s) {
|
|
1434
|
+
var l = (i == null ? void 0 : i.key) || "".concat(Tn, "-").concat(s);
|
|
1435
|
+
return /* @__PURE__ */ ne.createElement(cr, mt({}, e, {
|
|
1436
|
+
key: l,
|
|
1435
1437
|
ref: s === 0 ? t : void 0
|
|
1436
1438
|
}), i);
|
|
1437
1439
|
});
|
|
1438
1440
|
}
|
|
1439
|
-
var
|
|
1440
|
-
process.env.NODE_ENV !== "production" && (
|
|
1441
|
-
|
|
1441
|
+
var Ct = /* @__PURE__ */ ne.forwardRef(Pn);
|
|
1442
|
+
process.env.NODE_ENV !== "production" && (Ct.displayName = "ResizeObserver");
|
|
1443
|
+
Ct.Collection = Zr;
|
|
1442
1444
|
var ur = { exports: {} };
|
|
1443
1445
|
/*!
|
|
1444
1446
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -1448,118 +1450,118 @@ var ur = { exports: {} };
|
|
|
1448
1450
|
(function(e) {
|
|
1449
1451
|
(function() {
|
|
1450
1452
|
var t = {}.hasOwnProperty;
|
|
1451
|
-
function
|
|
1452
|
-
for (var s = "",
|
|
1453
|
-
var d = arguments[
|
|
1454
|
-
d && (s = i(s,
|
|
1453
|
+
function n() {
|
|
1454
|
+
for (var s = "", l = 0; l < arguments.length; l++) {
|
|
1455
|
+
var d = arguments[l];
|
|
1456
|
+
d && (s = i(s, r(d)));
|
|
1455
1457
|
}
|
|
1456
1458
|
return s;
|
|
1457
1459
|
}
|
|
1458
|
-
function
|
|
1460
|
+
function r(s) {
|
|
1459
1461
|
if (typeof s == "string" || typeof s == "number")
|
|
1460
1462
|
return s;
|
|
1461
1463
|
if (typeof s != "object")
|
|
1462
1464
|
return "";
|
|
1463
1465
|
if (Array.isArray(s))
|
|
1464
|
-
return
|
|
1466
|
+
return n.apply(null, s);
|
|
1465
1467
|
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
1466
1468
|
return s.toString();
|
|
1467
|
-
var
|
|
1469
|
+
var l = "";
|
|
1468
1470
|
for (var d in s)
|
|
1469
|
-
t.call(s, d) && s[d] && (
|
|
1470
|
-
return
|
|
1471
|
+
t.call(s, d) && s[d] && (l = i(l, d));
|
|
1472
|
+
return l;
|
|
1471
1473
|
}
|
|
1472
|
-
function i(s,
|
|
1473
|
-
return
|
|
1474
|
+
function i(s, l) {
|
|
1475
|
+
return l ? s ? s + " " + l : s + l : s;
|
|
1474
1476
|
}
|
|
1475
|
-
e.exports ? (
|
|
1477
|
+
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
1476
1478
|
})();
|
|
1477
1479
|
})(ur);
|
|
1478
1480
|
var jn = ur.exports;
|
|
1479
|
-
const
|
|
1480
|
-
const An = Ar(({ columns: e, width: t, onScroll:
|
|
1481
|
+
const St = /* @__PURE__ */ zr(jn);
|
|
1482
|
+
const An = Ar(({ columns: e, width: t, onScroll: n, meta: r }, i) => {
|
|
1481
1483
|
const s = ye(() => {
|
|
1482
|
-
const
|
|
1483
|
-
let
|
|
1484
|
-
return
|
|
1485
|
-
if (
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1484
|
+
const l = [], d = (u) => {
|
|
1485
|
+
let w = 0;
|
|
1486
|
+
return u.forEach((m) => {
|
|
1487
|
+
if (m.children && m.children.length > 0) {
|
|
1488
|
+
const A = d(m.children);
|
|
1489
|
+
A > w && (w = A);
|
|
1488
1490
|
}
|
|
1489
|
-
}),
|
|
1490
|
-
},
|
|
1491
|
-
|
|
1492
|
-
var
|
|
1493
|
-
let
|
|
1494
|
-
(
|
|
1495
|
-
let
|
|
1496
|
-
if (!
|
|
1497
|
-
const
|
|
1498
|
-
if (
|
|
1499
|
-
const
|
|
1500
|
-
|
|
1491
|
+
}), w + 1;
|
|
1492
|
+
}, a = d(e), h = (u, w) => {
|
|
1493
|
+
l[w] || (l[w] = []), u.forEach((m) => {
|
|
1494
|
+
var c, P;
|
|
1495
|
+
let A = "left";
|
|
1496
|
+
(c = m.style) != null && c.textAlign && (A = m.style.textAlign);
|
|
1497
|
+
let M = r == null ? void 0 : r.find((S) => S.field === m.field);
|
|
1498
|
+
if (!M) {
|
|
1499
|
+
const S = m.field.split("||");
|
|
1500
|
+
if (S.length > 1) {
|
|
1501
|
+
const Z = S[S.length - 1];
|
|
1502
|
+
M = r == null ? void 0 : r.find((I) => I.field === Z);
|
|
1501
1503
|
} else
|
|
1502
|
-
|
|
1504
|
+
m.field.includes("__") && (M = r == null ? void 0 : r.find((Z) => m.field.startsWith(`${Z.field}_`)));
|
|
1503
1505
|
}
|
|
1504
|
-
(
|
|
1505
|
-
const
|
|
1506
|
-
key:
|
|
1507
|
-
title:
|
|
1508
|
-
width:
|
|
1509
|
-
align:
|
|
1510
|
-
className:
|
|
1506
|
+
(P = M == null ? void 0 : M.style) != null && P.textAlign && (A = M.style.textAlign);
|
|
1507
|
+
const R = {
|
|
1508
|
+
key: m.field || m.dataIndex || m.title || String(Math.random()),
|
|
1509
|
+
title: m.title,
|
|
1510
|
+
width: m.width,
|
|
1511
|
+
align: A,
|
|
1512
|
+
className: m.field,
|
|
1511
1513
|
// col.className not in type, ignore
|
|
1512
1514
|
colSpan: 1,
|
|
1513
1515
|
rowSpan: 1
|
|
1514
1516
|
};
|
|
1515
|
-
if (
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1517
|
+
if (m.children && m.children.length > 0) {
|
|
1518
|
+
const S = (Z) => Z.children && Z.children.length > 0 ? Z.children.reduce((I, G) => I + S(G), 0) : 1;
|
|
1519
|
+
R.colSpan = S(m), l[w].push(R), h(m.children, w + 1);
|
|
1518
1520
|
} else
|
|
1519
|
-
|
|
1521
|
+
R.rowSpan = a - w, l[w].push(R);
|
|
1520
1522
|
});
|
|
1521
1523
|
};
|
|
1522
|
-
return
|
|
1523
|
-
}, [e,
|
|
1524
|
-
return /* @__PURE__ */
|
|
1524
|
+
return h(e, 0), l;
|
|
1525
|
+
}, [e, r]);
|
|
1526
|
+
return /* @__PURE__ */ ee.jsx(
|
|
1525
1527
|
"div",
|
|
1526
1528
|
{
|
|
1527
1529
|
ref: i,
|
|
1528
1530
|
className: "virtual-table-header hide-scrollbar",
|
|
1529
1531
|
style: { overflow: "auto", width: t },
|
|
1530
|
-
onScroll:
|
|
1531
|
-
children: /* @__PURE__ */
|
|
1532
|
-
/* @__PURE__ */
|
|
1533
|
-
const
|
|
1534
|
-
return l
|
|
1532
|
+
onScroll: n,
|
|
1533
|
+
children: /* @__PURE__ */ ee.jsxs("table", { style: { tableLayout: "fixed", width: "100%" }, children: [
|
|
1534
|
+
/* @__PURE__ */ ee.jsx("colgroup", { children: e.map((l, d) => {
|
|
1535
|
+
const a = (h) => h.children && h.children.length > 0 ? h.children.flatMap(a) : [h.width];
|
|
1536
|
+
return a(l).map((h, u) => /* @__PURE__ */ ee.jsx("col", { style: { width: h, minWidth: h } }, `${d}-${u}`));
|
|
1535
1537
|
}).flat() }),
|
|
1536
|
-
/* @__PURE__ */
|
|
1538
|
+
/* @__PURE__ */ ee.jsx("thead", { className: "virtual-table-thead", children: s.map((l, d) => /* @__PURE__ */ ee.jsx("tr", { className: "virtual-table-row", children: l.map((a, h) => /* @__PURE__ */ ee.jsx(
|
|
1537
1539
|
"th",
|
|
1538
1540
|
{
|
|
1539
|
-
className:
|
|
1540
|
-
colSpan:
|
|
1541
|
-
rowSpan:
|
|
1542
|
-
title:
|
|
1541
|
+
className: St("virtual-table-cell", a.className),
|
|
1542
|
+
colSpan: a.colSpan,
|
|
1543
|
+
rowSpan: a.rowSpan,
|
|
1544
|
+
title: a.title,
|
|
1543
1545
|
style: {
|
|
1544
|
-
textAlign:
|
|
1546
|
+
textAlign: a.align
|
|
1545
1547
|
},
|
|
1546
|
-
children:
|
|
1548
|
+
children: a.title
|
|
1547
1549
|
},
|
|
1548
|
-
|
|
1550
|
+
h
|
|
1549
1551
|
)) }, d)) })
|
|
1550
1552
|
] })
|
|
1551
1553
|
}
|
|
1552
1554
|
);
|
|
1553
|
-
}),
|
|
1555
|
+
}), _t = (e) => {
|
|
1554
1556
|
if (e === null || typeof e != "object")
|
|
1555
1557
|
return e;
|
|
1556
1558
|
if (Array.isArray(e))
|
|
1557
|
-
return e.map((
|
|
1559
|
+
return e.map((n) => _t(n));
|
|
1558
1560
|
const t = {};
|
|
1559
|
-
for (const
|
|
1560
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
1561
|
+
for (const n in e)
|
|
1562
|
+
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = _t(e[n]));
|
|
1561
1563
|
return t;
|
|
1562
|
-
},
|
|
1564
|
+
}, Rt = 43, Mn = 100, me = "-", Ge = "合计", Qe = 20;
|
|
1563
1565
|
function zn(e) {
|
|
1564
1566
|
let t = e;
|
|
1565
1567
|
for (; t; ) {
|
|
@@ -1570,12 +1572,12 @@ function zn(e) {
|
|
|
1570
1572
|
return !1;
|
|
1571
1573
|
}
|
|
1572
1574
|
function In(e, t) {
|
|
1573
|
-
const [
|
|
1574
|
-
return
|
|
1575
|
-
e && (t ||
|
|
1576
|
-
}, [t, e]),
|
|
1575
|
+
const [n, r] = $e(t === "rtl");
|
|
1576
|
+
return xt(() => {
|
|
1577
|
+
e && (t || r(zn(e)));
|
|
1578
|
+
}, [t, e]), n;
|
|
1577
1579
|
}
|
|
1578
|
-
const
|
|
1580
|
+
const et = typeof window < "u" ? xt : tt;
|
|
1579
1581
|
function Ut(e) {
|
|
1580
1582
|
if (e !== void 0)
|
|
1581
1583
|
switch (typeof e) {
|
|
@@ -1591,252 +1593,252 @@ function Ut(e) {
|
|
|
1591
1593
|
function Ln({
|
|
1592
1594
|
box: e,
|
|
1593
1595
|
defaultHeight: t,
|
|
1594
|
-
defaultWidth:
|
|
1595
|
-
disabled:
|
|
1596
|
+
defaultWidth: n,
|
|
1597
|
+
disabled: r,
|
|
1596
1598
|
element: i,
|
|
1597
1599
|
mode: s,
|
|
1598
|
-
style:
|
|
1600
|
+
style: l
|
|
1599
1601
|
}) {
|
|
1600
|
-
const { styleHeight: d, styleWidth:
|
|
1602
|
+
const { styleHeight: d, styleWidth: a } = ye(
|
|
1601
1603
|
() => ({
|
|
1602
|
-
styleHeight: Ut(
|
|
1603
|
-
styleWidth: Ut(
|
|
1604
|
+
styleHeight: Ut(l == null ? void 0 : l.height),
|
|
1605
|
+
styleWidth: Ut(l == null ? void 0 : l.width)
|
|
1604
1606
|
}),
|
|
1605
|
-
[
|
|
1606
|
-
), [
|
|
1607
|
+
[l == null ? void 0 : l.height, l == null ? void 0 : l.width]
|
|
1608
|
+
), [h, u] = $e({
|
|
1607
1609
|
height: t,
|
|
1608
|
-
width:
|
|
1609
|
-
}),
|
|
1610
|
-
return
|
|
1611
|
-
if (i === null ||
|
|
1610
|
+
width: n
|
|
1611
|
+
}), w = r || s === "only-height" && d !== void 0 || s === "only-width" && a !== void 0 || d !== void 0 && a !== void 0;
|
|
1612
|
+
return et(() => {
|
|
1613
|
+
if (i === null || w)
|
|
1612
1614
|
return;
|
|
1613
|
-
const
|
|
1614
|
-
for (const
|
|
1615
|
-
const { contentRect:
|
|
1616
|
-
i ===
|
|
1617
|
-
height:
|
|
1618
|
-
width:
|
|
1615
|
+
const m = new ResizeObserver((A) => {
|
|
1616
|
+
for (const M of A) {
|
|
1617
|
+
const { contentRect: R, target: c } = M;
|
|
1618
|
+
i === c && u((P) => P.height === R.height && P.width === R.width ? P : {
|
|
1619
|
+
height: R.height,
|
|
1620
|
+
width: R.width
|
|
1619
1621
|
});
|
|
1620
1622
|
}
|
|
1621
1623
|
});
|
|
1622
|
-
return
|
|
1623
|
-
|
|
1624
|
+
return m.observe(i, { box: e }), () => {
|
|
1625
|
+
m == null || m.unobserve(i);
|
|
1624
1626
|
};
|
|
1625
|
-
}, [e,
|
|
1627
|
+
}, [e, w, i, d, a]), ye(
|
|
1626
1628
|
() => ({
|
|
1627
|
-
height: d ??
|
|
1628
|
-
width:
|
|
1629
|
+
height: d ?? h.height,
|
|
1630
|
+
width: a ?? h.width
|
|
1629
1631
|
}),
|
|
1630
|
-
[
|
|
1632
|
+
[h, d, a]
|
|
1631
1633
|
);
|
|
1632
1634
|
}
|
|
1633
1635
|
function $n(e) {
|
|
1634
1636
|
const t = Le(() => {
|
|
1635
1637
|
throw new Error("Cannot call during render.");
|
|
1636
1638
|
});
|
|
1637
|
-
return
|
|
1639
|
+
return et(() => {
|
|
1638
1640
|
t.current = e;
|
|
1639
|
-
}, [e]), ge((
|
|
1640
|
-
var
|
|
1641
|
-
return (
|
|
1641
|
+
}, [e]), ge((n) => {
|
|
1642
|
+
var r;
|
|
1643
|
+
return (r = t.current) == null ? void 0 : r.call(t, n);
|
|
1642
1644
|
}, [t]);
|
|
1643
1645
|
}
|
|
1644
1646
|
let Fe = null;
|
|
1645
1647
|
function kn(e = !1) {
|
|
1646
1648
|
if (Fe === null || e) {
|
|
1647
|
-
const t = document.createElement("div"),
|
|
1648
|
-
|
|
1649
|
-
const
|
|
1650
|
-
return i.width = "100px", i.height = "100px", t.appendChild(
|
|
1649
|
+
const t = document.createElement("div"), n = t.style;
|
|
1650
|
+
n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
|
|
1651
|
+
const r = document.createElement("div"), i = r.style;
|
|
1652
|
+
return i.width = "100px", i.height = "100px", t.appendChild(r), document.body.appendChild(t), t.scrollLeft > 0 ? Fe = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? Fe = "negative" : Fe = "positive-ascending"), document.body.removeChild(t), Fe;
|
|
1651
1653
|
}
|
|
1652
1654
|
return Fe;
|
|
1653
1655
|
}
|
|
1654
|
-
function
|
|
1656
|
+
function ut({
|
|
1655
1657
|
containerElement: e,
|
|
1656
1658
|
direction: t,
|
|
1657
|
-
isRtl:
|
|
1658
|
-
scrollOffset:
|
|
1659
|
+
isRtl: n,
|
|
1660
|
+
scrollOffset: r
|
|
1659
1661
|
}) {
|
|
1660
|
-
if (t === "horizontal" &&
|
|
1662
|
+
if (t === "horizontal" && n)
|
|
1661
1663
|
switch (kn()) {
|
|
1662
1664
|
case "negative":
|
|
1663
|
-
return -
|
|
1665
|
+
return -r;
|
|
1664
1666
|
case "positive-descending": {
|
|
1665
1667
|
if (e) {
|
|
1666
|
-
const { clientWidth: i, scrollLeft: s, scrollWidth:
|
|
1667
|
-
return
|
|
1668
|
+
const { clientWidth: i, scrollLeft: s, scrollWidth: l } = e;
|
|
1669
|
+
return l - i - s;
|
|
1668
1670
|
}
|
|
1669
1671
|
break;
|
|
1670
1672
|
}
|
|
1671
1673
|
}
|
|
1672
|
-
return
|
|
1674
|
+
return r;
|
|
1673
1675
|
}
|
|
1674
1676
|
function Ae(e, t = "Assertion error") {
|
|
1675
1677
|
if (!e)
|
|
1676
|
-
throw Error(t);
|
|
1678
|
+
throw console.error(t), Error(t);
|
|
1677
1679
|
}
|
|
1678
|
-
function
|
|
1680
|
+
function Ye(e, t) {
|
|
1679
1681
|
if (e === t)
|
|
1680
1682
|
return !0;
|
|
1681
1683
|
if (!!e != !!t || (Ae(e !== void 0), Ae(t !== void 0), Object.keys(e).length !== Object.keys(t).length))
|
|
1682
1684
|
return !1;
|
|
1683
|
-
for (const
|
|
1684
|
-
if (!Object.is(t[
|
|
1685
|
+
for (const n in e)
|
|
1686
|
+
if (!Object.is(t[n], e[n]))
|
|
1685
1687
|
return !1;
|
|
1686
1688
|
return !0;
|
|
1687
1689
|
}
|
|
1688
1690
|
function fr({
|
|
1689
1691
|
cachedBounds: e,
|
|
1690
1692
|
itemCount: t,
|
|
1691
|
-
itemSize:
|
|
1693
|
+
itemSize: n
|
|
1692
1694
|
}) {
|
|
1693
1695
|
if (t === 0)
|
|
1694
1696
|
return 0;
|
|
1695
|
-
if (typeof
|
|
1696
|
-
return t *
|
|
1697
|
+
if (typeof n == "number")
|
|
1698
|
+
return t * n;
|
|
1697
1699
|
{
|
|
1698
|
-
const
|
|
1700
|
+
const r = e.get(
|
|
1699
1701
|
e.size === 0 ? 0 : e.size - 1
|
|
1700
1702
|
);
|
|
1701
|
-
Ae(
|
|
1702
|
-
const i = (
|
|
1703
|
+
Ae(r !== void 0, "Unexpected bounds cache miss");
|
|
1704
|
+
const i = (r.scrollOffset + r.size) / e.size;
|
|
1703
1705
|
return t * i;
|
|
1704
1706
|
}
|
|
1705
1707
|
}
|
|
1706
1708
|
function Dn({
|
|
1707
1709
|
align: e,
|
|
1708
1710
|
cachedBounds: t,
|
|
1709
|
-
index:
|
|
1710
|
-
itemCount:
|
|
1711
|
+
index: n,
|
|
1712
|
+
itemCount: r,
|
|
1711
1713
|
itemSize: i,
|
|
1712
1714
|
containerScrollOffset: s,
|
|
1713
|
-
containerSize:
|
|
1715
|
+
containerSize: l
|
|
1714
1716
|
}) {
|
|
1715
|
-
if (
|
|
1716
|
-
throw RangeError(`Invalid index specified: ${
|
|
1717
|
-
cause: `Index ${
|
|
1717
|
+
if (n < 0 || n >= r)
|
|
1718
|
+
throw RangeError(`Invalid index specified: ${n}`, {
|
|
1719
|
+
cause: `Index ${n} is not within the range of 0 - ${r - 1}`
|
|
1718
1720
|
});
|
|
1719
1721
|
const d = fr({
|
|
1720
1722
|
cachedBounds: t,
|
|
1721
|
-
itemCount:
|
|
1723
|
+
itemCount: r,
|
|
1722
1724
|
itemSize: i
|
|
1723
|
-
}),
|
|
1725
|
+
}), a = t.get(n), h = Math.max(
|
|
1724
1726
|
0,
|
|
1725
|
-
Math.min(d -
|
|
1726
|
-
),
|
|
1727
|
+
Math.min(d - l, a.scrollOffset)
|
|
1728
|
+
), u = Math.max(
|
|
1727
1729
|
0,
|
|
1728
|
-
|
|
1730
|
+
a.scrollOffset - l + a.size
|
|
1729
1731
|
);
|
|
1730
|
-
switch (e === "smart" && (s >=
|
|
1732
|
+
switch (e === "smart" && (s >= u && s <= h ? e = "auto" : e = "center"), e) {
|
|
1731
1733
|
case "start":
|
|
1732
|
-
return c;
|
|
1733
|
-
case "end":
|
|
1734
1734
|
return h;
|
|
1735
|
+
case "end":
|
|
1736
|
+
return u;
|
|
1735
1737
|
case "center":
|
|
1736
|
-
return
|
|
1738
|
+
return a.scrollOffset <= l / 2 ? 0 : a.scrollOffset + a.size / 2 >= d - l / 2 ? d - l : a.scrollOffset + a.size / 2 - l / 2;
|
|
1737
1739
|
case "auto":
|
|
1738
1740
|
default:
|
|
1739
|
-
return s >=
|
|
1741
|
+
return s >= u && s <= h ? s : s < u ? u : h;
|
|
1740
1742
|
}
|
|
1741
1743
|
}
|
|
1742
|
-
function
|
|
1744
|
+
function ft({
|
|
1743
1745
|
cachedBounds: e,
|
|
1744
1746
|
containerScrollOffset: t,
|
|
1745
|
-
containerSize:
|
|
1746
|
-
itemCount:
|
|
1747
|
+
containerSize: n,
|
|
1748
|
+
itemCount: r,
|
|
1747
1749
|
overscanCount: i
|
|
1748
1750
|
}) {
|
|
1749
|
-
const s =
|
|
1750
|
-
let
|
|
1751
|
-
for (;
|
|
1752
|
-
const
|
|
1753
|
-
if (
|
|
1751
|
+
const s = r - 1;
|
|
1752
|
+
let l = 0, d = -1, a = 0, h = -1, u = 0;
|
|
1753
|
+
for (; u < s; ) {
|
|
1754
|
+
const w = e.get(u);
|
|
1755
|
+
if (w.scrollOffset + w.size > t)
|
|
1754
1756
|
break;
|
|
1755
|
-
|
|
1757
|
+
u++;
|
|
1756
1758
|
}
|
|
1757
|
-
for (
|
|
1758
|
-
const
|
|
1759
|
-
if (
|
|
1759
|
+
for (l = u, a = Math.max(0, l - i); u < s; ) {
|
|
1760
|
+
const w = e.get(u);
|
|
1761
|
+
if (w.scrollOffset + w.size >= t + n)
|
|
1760
1762
|
break;
|
|
1761
|
-
|
|
1763
|
+
u++;
|
|
1762
1764
|
}
|
|
1763
|
-
return d = Math.min(s,
|
|
1764
|
-
startIndexVisible:
|
|
1765
|
+
return d = Math.min(s, u), h = Math.min(r - 1, d + i), l < 0 && (l = 0, d = -1, a = 0, h = -1), {
|
|
1766
|
+
startIndexVisible: l,
|
|
1765
1767
|
stopIndexVisible: d,
|
|
1766
|
-
startIndexOverscan:
|
|
1767
|
-
stopIndexOverscan:
|
|
1768
|
+
startIndexOverscan: a,
|
|
1769
|
+
stopIndexOverscan: h
|
|
1768
1770
|
};
|
|
1769
1771
|
}
|
|
1770
1772
|
function Fn({
|
|
1771
1773
|
itemCount: e,
|
|
1772
1774
|
itemProps: t,
|
|
1773
|
-
itemSize:
|
|
1775
|
+
itemSize: n
|
|
1774
1776
|
}) {
|
|
1775
|
-
const
|
|
1777
|
+
const r = /* @__PURE__ */ new Map();
|
|
1776
1778
|
return {
|
|
1777
1779
|
get(i) {
|
|
1778
|
-
for (Ae(i < e, `Invalid index ${i}`);
|
|
1779
|
-
const
|
|
1780
|
+
for (Ae(i < e, `Invalid index ${i}`); r.size - 1 < i; ) {
|
|
1781
|
+
const l = r.size;
|
|
1780
1782
|
let d;
|
|
1781
|
-
switch (typeof
|
|
1783
|
+
switch (typeof n) {
|
|
1782
1784
|
case "function": {
|
|
1783
|
-
d =
|
|
1785
|
+
d = n(l, t);
|
|
1784
1786
|
break;
|
|
1785
1787
|
}
|
|
1786
1788
|
case "number": {
|
|
1787
|
-
d =
|
|
1789
|
+
d = n;
|
|
1788
1790
|
break;
|
|
1789
1791
|
}
|
|
1790
1792
|
}
|
|
1791
|
-
if (
|
|
1792
|
-
|
|
1793
|
+
if (l === 0)
|
|
1794
|
+
r.set(l, {
|
|
1793
1795
|
size: d,
|
|
1794
1796
|
scrollOffset: 0
|
|
1795
1797
|
});
|
|
1796
1798
|
else {
|
|
1797
|
-
const
|
|
1799
|
+
const a = r.get(l - 1);
|
|
1798
1800
|
Ae(
|
|
1799
|
-
|
|
1801
|
+
a !== void 0,
|
|
1800
1802
|
`Unexpected bounds cache miss for index ${i}`
|
|
1801
|
-
),
|
|
1802
|
-
scrollOffset:
|
|
1803
|
+
), r.set(l, {
|
|
1804
|
+
scrollOffset: a.scrollOffset + a.size,
|
|
1803
1805
|
size: d
|
|
1804
1806
|
});
|
|
1805
1807
|
}
|
|
1806
1808
|
}
|
|
1807
|
-
const s =
|
|
1809
|
+
const s = r.get(i);
|
|
1808
1810
|
return Ae(
|
|
1809
1811
|
s !== void 0,
|
|
1810
1812
|
`Unexpected bounds cache miss for index ${i}`
|
|
1811
1813
|
), s;
|
|
1812
1814
|
},
|
|
1813
1815
|
set(i, s) {
|
|
1814
|
-
|
|
1816
|
+
r.set(i, s);
|
|
1815
1817
|
},
|
|
1816
1818
|
get size() {
|
|
1817
|
-
return
|
|
1819
|
+
return r.size;
|
|
1818
1820
|
}
|
|
1819
1821
|
};
|
|
1820
1822
|
}
|
|
1821
1823
|
function Nn({
|
|
1822
1824
|
itemCount: e,
|
|
1823
1825
|
itemProps: t,
|
|
1824
|
-
itemSize:
|
|
1826
|
+
itemSize: n
|
|
1825
1827
|
}) {
|
|
1826
1828
|
return ye(
|
|
1827
1829
|
() => Fn({
|
|
1828
1830
|
itemCount: e,
|
|
1829
1831
|
itemProps: t,
|
|
1830
|
-
itemSize:
|
|
1832
|
+
itemSize: n
|
|
1831
1833
|
}),
|
|
1832
|
-
[e, t,
|
|
1834
|
+
[e, t, n]
|
|
1833
1835
|
);
|
|
1834
1836
|
}
|
|
1835
1837
|
function Wn({
|
|
1836
1838
|
containerSize: e,
|
|
1837
1839
|
itemSize: t
|
|
1838
1840
|
}) {
|
|
1839
|
-
let
|
|
1841
|
+
let n;
|
|
1840
1842
|
switch (typeof t) {
|
|
1841
1843
|
case "string": {
|
|
1842
1844
|
Ae(
|
|
@@ -1845,174 +1847,174 @@ function Wn({
|
|
|
1845
1847
|
), Ae(
|
|
1846
1848
|
e !== void 0,
|
|
1847
1849
|
"Container size must be defined if a percentage item size is specified"
|
|
1848
|
-
),
|
|
1850
|
+
), n = e * parseInt(t) / 100;
|
|
1849
1851
|
break;
|
|
1850
1852
|
}
|
|
1851
1853
|
default: {
|
|
1852
|
-
|
|
1854
|
+
n = t;
|
|
1853
1855
|
break;
|
|
1854
1856
|
}
|
|
1855
1857
|
}
|
|
1856
|
-
return
|
|
1858
|
+
return n;
|
|
1857
1859
|
}
|
|
1858
1860
|
function qt({
|
|
1859
1861
|
containerElement: e,
|
|
1860
1862
|
containerStyle: t,
|
|
1861
|
-
defaultContainerSize:
|
|
1862
|
-
direction:
|
|
1863
|
+
defaultContainerSize: n = 0,
|
|
1864
|
+
direction: r,
|
|
1863
1865
|
isRtl: i = !1,
|
|
1864
1866
|
itemCount: s,
|
|
1865
|
-
itemProps:
|
|
1867
|
+
itemProps: l,
|
|
1866
1868
|
itemSize: d,
|
|
1867
|
-
onResize:
|
|
1868
|
-
overscanCount:
|
|
1869
|
+
onResize: a,
|
|
1870
|
+
overscanCount: h
|
|
1869
1871
|
}) {
|
|
1870
|
-
const { height:
|
|
1871
|
-
defaultHeight:
|
|
1872
|
-
defaultWidth:
|
|
1872
|
+
const { height: u = n, width: w = n } = Ln({
|
|
1873
|
+
defaultHeight: r === "vertical" ? n : void 0,
|
|
1874
|
+
defaultWidth: r === "horizontal" ? n : void 0,
|
|
1873
1875
|
element: e,
|
|
1874
|
-
mode:
|
|
1876
|
+
mode: r === "vertical" ? "only-height" : "only-width",
|
|
1875
1877
|
style: t
|
|
1876
|
-
}),
|
|
1878
|
+
}), m = Le({
|
|
1877
1879
|
height: 0,
|
|
1878
1880
|
width: 0
|
|
1879
|
-
}),
|
|
1880
|
-
|
|
1881
|
-
if (typeof
|
|
1882
|
-
const
|
|
1883
|
-
(
|
|
1884
|
-
}
|
|
1885
|
-
}, [
|
|
1886
|
-
const
|
|
1881
|
+
}), A = r === "vertical" ? u : w, M = Wn({ containerSize: A, itemSize: d });
|
|
1882
|
+
xt(() => {
|
|
1883
|
+
if (typeof a == "function") {
|
|
1884
|
+
const F = m.current;
|
|
1885
|
+
(F.height !== u || F.width !== w) && (a({ height: u, width: w }, { ...F }), F.height = u, F.width = w);
|
|
1886
|
+
}
|
|
1887
|
+
}, [u, a, w]);
|
|
1888
|
+
const R = Nn({
|
|
1887
1889
|
itemCount: s,
|
|
1888
|
-
itemProps:
|
|
1889
|
-
itemSize:
|
|
1890
|
-
}),
|
|
1891
|
-
(
|
|
1892
|
-
[
|
|
1893
|
-
), [
|
|
1894
|
-
() =>
|
|
1895
|
-
cachedBounds:
|
|
1890
|
+
itemProps: l,
|
|
1891
|
+
itemSize: M
|
|
1892
|
+
}), c = ge(
|
|
1893
|
+
(F) => R.get(F),
|
|
1894
|
+
[R]
|
|
1895
|
+
), [P, S] = $e(
|
|
1896
|
+
() => ft({
|
|
1897
|
+
cachedBounds: R,
|
|
1896
1898
|
// TODO Potentially support a defaultScrollOffset prop?
|
|
1897
1899
|
containerScrollOffset: 0,
|
|
1898
|
-
containerSize:
|
|
1900
|
+
containerSize: A,
|
|
1899
1901
|
itemCount: s,
|
|
1900
|
-
overscanCount:
|
|
1902
|
+
overscanCount: h
|
|
1901
1903
|
})
|
|
1902
1904
|
), {
|
|
1903
|
-
startIndexVisible:
|
|
1905
|
+
startIndexVisible: Z,
|
|
1904
1906
|
startIndexOverscan: I,
|
|
1905
|
-
stopIndexVisible:
|
|
1906
|
-
stopIndexOverscan:
|
|
1907
|
+
stopIndexVisible: G,
|
|
1908
|
+
stopIndexOverscan: L
|
|
1907
1909
|
} = {
|
|
1908
|
-
startIndexVisible: Math.min(s - 1,
|
|
1909
|
-
startIndexOverscan: Math.min(s - 1,
|
|
1910
|
-
stopIndexVisible: Math.min(s - 1,
|
|
1911
|
-
stopIndexOverscan: Math.min(s - 1,
|
|
1912
|
-
},
|
|
1910
|
+
startIndexVisible: Math.min(s - 1, P.startIndexVisible),
|
|
1911
|
+
startIndexOverscan: Math.min(s - 1, P.startIndexOverscan),
|
|
1912
|
+
stopIndexVisible: Math.min(s - 1, P.stopIndexVisible),
|
|
1913
|
+
stopIndexOverscan: Math.min(s - 1, P.stopIndexOverscan)
|
|
1914
|
+
}, $ = ge(
|
|
1913
1915
|
() => fr({
|
|
1914
|
-
cachedBounds:
|
|
1916
|
+
cachedBounds: R,
|
|
1915
1917
|
itemCount: s,
|
|
1916
|
-
itemSize:
|
|
1918
|
+
itemSize: M
|
|
1917
1919
|
}),
|
|
1918
|
-
[
|
|
1919
|
-
),
|
|
1920
|
-
(
|
|
1921
|
-
const
|
|
1920
|
+
[R, s, M]
|
|
1921
|
+
), j = ge(
|
|
1922
|
+
(F) => {
|
|
1923
|
+
const N = ut({
|
|
1922
1924
|
containerElement: e,
|
|
1923
|
-
direction:
|
|
1925
|
+
direction: r,
|
|
1924
1926
|
isRtl: i,
|
|
1925
|
-
scrollOffset:
|
|
1927
|
+
scrollOffset: F
|
|
1926
1928
|
});
|
|
1927
|
-
return
|
|
1928
|
-
cachedBounds:
|
|
1929
|
-
containerScrollOffset:
|
|
1930
|
-
containerSize:
|
|
1929
|
+
return ft({
|
|
1930
|
+
cachedBounds: R,
|
|
1931
|
+
containerScrollOffset: N,
|
|
1932
|
+
containerSize: A,
|
|
1931
1933
|
itemCount: s,
|
|
1932
|
-
overscanCount:
|
|
1934
|
+
overscanCount: h
|
|
1933
1935
|
});
|
|
1934
1936
|
},
|
|
1935
1937
|
[
|
|
1936
|
-
|
|
1938
|
+
R,
|
|
1937
1939
|
e,
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
+
A,
|
|
1941
|
+
r,
|
|
1940
1942
|
i,
|
|
1941
1943
|
s,
|
|
1942
|
-
|
|
1944
|
+
h
|
|
1943
1945
|
]
|
|
1944
1946
|
);
|
|
1945
|
-
|
|
1946
|
-
const
|
|
1947
|
-
|
|
1948
|
-
}, [e,
|
|
1947
|
+
et(() => {
|
|
1948
|
+
const F = (r === "vertical" ? e == null ? void 0 : e.scrollTop : e == null ? void 0 : e.scrollLeft) ?? 0;
|
|
1949
|
+
S(j(F));
|
|
1950
|
+
}, [e, r, j]), et(() => {
|
|
1949
1951
|
if (!e)
|
|
1950
1952
|
return;
|
|
1951
|
-
const
|
|
1952
|
-
|
|
1953
|
-
const { scrollLeft:
|
|
1953
|
+
const F = () => {
|
|
1954
|
+
S((N) => {
|
|
1955
|
+
const { scrollLeft: H, scrollTop: W } = e, te = ut({
|
|
1954
1956
|
containerElement: e,
|
|
1955
|
-
direction:
|
|
1957
|
+
direction: r,
|
|
1956
1958
|
isRtl: i,
|
|
1957
|
-
scrollOffset:
|
|
1958
|
-
}), de =
|
|
1959
|
-
cachedBounds:
|
|
1960
|
-
containerScrollOffset:
|
|
1961
|
-
containerSize:
|
|
1959
|
+
scrollOffset: r === "vertical" ? W : H
|
|
1960
|
+
}), de = ft({
|
|
1961
|
+
cachedBounds: R,
|
|
1962
|
+
containerScrollOffset: te,
|
|
1963
|
+
containerSize: A,
|
|
1962
1964
|
itemCount: s,
|
|
1963
|
-
overscanCount:
|
|
1965
|
+
overscanCount: h
|
|
1964
1966
|
});
|
|
1965
|
-
return
|
|
1967
|
+
return Ye(de, N) ? N : de;
|
|
1966
1968
|
});
|
|
1967
1969
|
};
|
|
1968
|
-
return e.addEventListener("scroll",
|
|
1969
|
-
e.removeEventListener("scroll",
|
|
1970
|
+
return e.addEventListener("scroll", F), () => {
|
|
1971
|
+
e.removeEventListener("scroll", F);
|
|
1970
1972
|
};
|
|
1971
1973
|
}, [
|
|
1972
|
-
|
|
1974
|
+
R,
|
|
1973
1975
|
e,
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
+
A,
|
|
1977
|
+
r,
|
|
1976
1978
|
s,
|
|
1977
|
-
|
|
1979
|
+
h
|
|
1978
1980
|
]);
|
|
1979
|
-
const
|
|
1981
|
+
const T = $n(
|
|
1980
1982
|
({
|
|
1981
|
-
align:
|
|
1982
|
-
containerScrollOffset:
|
|
1983
|
-
index:
|
|
1983
|
+
align: F = "auto",
|
|
1984
|
+
containerScrollOffset: N,
|
|
1985
|
+
index: H
|
|
1984
1986
|
}) => {
|
|
1985
|
-
let
|
|
1986
|
-
align:
|
|
1987
|
-
cachedBounds:
|
|
1988
|
-
containerScrollOffset:
|
|
1989
|
-
containerSize:
|
|
1990
|
-
index:
|
|
1987
|
+
let W = Dn({
|
|
1988
|
+
align: F,
|
|
1989
|
+
cachedBounds: R,
|
|
1990
|
+
containerScrollOffset: N,
|
|
1991
|
+
containerSize: A,
|
|
1992
|
+
index: H,
|
|
1991
1993
|
itemCount: s,
|
|
1992
|
-
itemSize:
|
|
1994
|
+
itemSize: M
|
|
1993
1995
|
});
|
|
1994
1996
|
if (e) {
|
|
1995
|
-
if (
|
|
1997
|
+
if (W = ut({
|
|
1996
1998
|
containerElement: e,
|
|
1997
|
-
direction:
|
|
1999
|
+
direction: r,
|
|
1998
2000
|
isRtl: i,
|
|
1999
|
-
scrollOffset:
|
|
2001
|
+
scrollOffset: W
|
|
2000
2002
|
}), typeof e.scrollTo != "function") {
|
|
2001
|
-
const
|
|
2002
|
-
|
|
2003
|
+
const te = j(W);
|
|
2004
|
+
Ye(P, te) || S(te);
|
|
2003
2005
|
}
|
|
2004
|
-
return
|
|
2006
|
+
return W;
|
|
2005
2007
|
}
|
|
2006
2008
|
}
|
|
2007
2009
|
);
|
|
2008
2010
|
return {
|
|
2009
|
-
getCellBounds:
|
|
2010
|
-
getEstimatedSize:
|
|
2011
|
-
scrollToIndex:
|
|
2011
|
+
getCellBounds: c,
|
|
2012
|
+
getEstimatedSize: $,
|
|
2013
|
+
scrollToIndex: T,
|
|
2012
2014
|
startIndexOverscan: I,
|
|
2013
|
-
startIndexVisible:
|
|
2014
|
-
stopIndexOverscan:
|
|
2015
|
-
stopIndexVisible:
|
|
2015
|
+
startIndexVisible: Z,
|
|
2016
|
+
stopIndexOverscan: L,
|
|
2017
|
+
stopIndexVisible: G
|
|
2016
2018
|
};
|
|
2017
2019
|
}
|
|
2018
2020
|
function Vn(e) {
|
|
@@ -2020,461 +2022,466 @@ function Vn(e) {
|
|
|
2020
2022
|
}
|
|
2021
2023
|
function Hn(e, t) {
|
|
2022
2024
|
const {
|
|
2023
|
-
ariaAttributes:
|
|
2024
|
-
style:
|
|
2025
|
+
ariaAttributes: n,
|
|
2026
|
+
style: r,
|
|
2025
2027
|
...i
|
|
2026
2028
|
} = e, {
|
|
2027
2029
|
ariaAttributes: s,
|
|
2028
|
-
style:
|
|
2030
|
+
style: l,
|
|
2029
2031
|
...d
|
|
2030
2032
|
} = t;
|
|
2031
|
-
return
|
|
2033
|
+
return Ye(n, s) && Ye(r, l) && Ye(i, d);
|
|
2032
2034
|
}
|
|
2033
2035
|
function Bn({
|
|
2034
2036
|
cellComponent: e,
|
|
2035
2037
|
cellProps: t,
|
|
2036
|
-
children:
|
|
2037
|
-
className:
|
|
2038
|
+
children: n,
|
|
2039
|
+
className: r,
|
|
2038
2040
|
columnCount: i,
|
|
2039
2041
|
columnWidth: s,
|
|
2040
|
-
defaultHeight:
|
|
2042
|
+
defaultHeight: l = 0,
|
|
2041
2043
|
defaultWidth: d = 0,
|
|
2042
|
-
dir:
|
|
2043
|
-
gridRef:
|
|
2044
|
-
onCellsRendered:
|
|
2045
|
-
onResize:
|
|
2046
|
-
overscanCount:
|
|
2047
|
-
rowCount:
|
|
2048
|
-
rowHeight:
|
|
2049
|
-
style:
|
|
2050
|
-
tagName:
|
|
2051
|
-
...
|
|
2044
|
+
dir: a,
|
|
2045
|
+
gridRef: h,
|
|
2046
|
+
onCellsRendered: u,
|
|
2047
|
+
onResize: w,
|
|
2048
|
+
overscanCount: m = 3,
|
|
2049
|
+
rowCount: A,
|
|
2050
|
+
rowHeight: M,
|
|
2051
|
+
style: R,
|
|
2052
|
+
tagName: c = "div",
|
|
2053
|
+
...P
|
|
2052
2054
|
}) {
|
|
2053
|
-
const
|
|
2055
|
+
const S = Vn(t), Z = ye(
|
|
2054
2056
|
() => Xt(e, Hn),
|
|
2055
2057
|
[e]
|
|
2056
|
-
), [I,
|
|
2057
|
-
getCellBounds:
|
|
2058
|
-
getEstimatedSize:
|
|
2059
|
-
startIndexOverscan:
|
|
2060
|
-
startIndexVisible:
|
|
2061
|
-
scrollToIndex:
|
|
2062
|
-
stopIndexOverscan:
|
|
2063
|
-
stopIndexVisible:
|
|
2058
|
+
), [I, G] = $e(null), L = In(I, a), {
|
|
2059
|
+
getCellBounds: $,
|
|
2060
|
+
getEstimatedSize: j,
|
|
2061
|
+
startIndexOverscan: T,
|
|
2062
|
+
startIndexVisible: F,
|
|
2063
|
+
scrollToIndex: N,
|
|
2064
|
+
stopIndexOverscan: H,
|
|
2065
|
+
stopIndexVisible: W
|
|
2064
2066
|
} = qt({
|
|
2065
2067
|
containerElement: I,
|
|
2066
|
-
containerStyle:
|
|
2068
|
+
containerStyle: R,
|
|
2067
2069
|
defaultContainerSize: d,
|
|
2068
2070
|
direction: "horizontal",
|
|
2069
|
-
isRtl:
|
|
2071
|
+
isRtl: L,
|
|
2070
2072
|
itemCount: i,
|
|
2071
|
-
itemProps:
|
|
2073
|
+
itemProps: S,
|
|
2072
2074
|
itemSize: s,
|
|
2073
|
-
onResize:
|
|
2074
|
-
overscanCount:
|
|
2075
|
+
onResize: w,
|
|
2076
|
+
overscanCount: m
|
|
2075
2077
|
}), {
|
|
2076
|
-
getCellBounds:
|
|
2078
|
+
getCellBounds: te,
|
|
2077
2079
|
getEstimatedSize: de,
|
|
2078
2080
|
startIndexOverscan: be,
|
|
2079
2081
|
startIndexVisible: Se,
|
|
2080
|
-
scrollToIndex:
|
|
2081
|
-
stopIndexOverscan:
|
|
2082
|
-
stopIndexVisible:
|
|
2082
|
+
scrollToIndex: Re,
|
|
2083
|
+
stopIndexOverscan: ue,
|
|
2084
|
+
stopIndexVisible: Te
|
|
2083
2085
|
} = qt({
|
|
2084
2086
|
containerElement: I,
|
|
2085
|
-
containerStyle:
|
|
2086
|
-
defaultContainerSize:
|
|
2087
|
+
containerStyle: R,
|
|
2088
|
+
defaultContainerSize: l,
|
|
2087
2089
|
direction: "vertical",
|
|
2088
|
-
itemCount:
|
|
2089
|
-
itemProps:
|
|
2090
|
-
itemSize:
|
|
2091
|
-
onResize:
|
|
2092
|
-
overscanCount:
|
|
2090
|
+
itemCount: A,
|
|
2091
|
+
itemProps: S,
|
|
2092
|
+
itemSize: M,
|
|
2093
|
+
onResize: w,
|
|
2094
|
+
overscanCount: m
|
|
2093
2095
|
});
|
|
2094
2096
|
Mr(
|
|
2095
|
-
|
|
2097
|
+
h,
|
|
2096
2098
|
() => ({
|
|
2097
2099
|
get element() {
|
|
2098
2100
|
return I;
|
|
2099
2101
|
},
|
|
2100
2102
|
scrollToCell({
|
|
2101
|
-
behavior:
|
|
2102
|
-
columnAlign:
|
|
2103
|
-
columnIndex:
|
|
2104
|
-
rowAlign:
|
|
2105
|
-
rowIndex:
|
|
2103
|
+
behavior: g = "auto",
|
|
2104
|
+
columnAlign: v = "auto",
|
|
2105
|
+
columnIndex: C,
|
|
2106
|
+
rowAlign: p = "auto",
|
|
2107
|
+
rowIndex: x
|
|
2106
2108
|
}) {
|
|
2107
|
-
const
|
|
2108
|
-
align:
|
|
2109
|
+
const b = N({
|
|
2110
|
+
align: v,
|
|
2109
2111
|
containerScrollOffset: (I == null ? void 0 : I.scrollLeft) ?? 0,
|
|
2110
|
-
index:
|
|
2111
|
-
}),
|
|
2112
|
-
align:
|
|
2112
|
+
index: C
|
|
2113
|
+
}), O = Re({
|
|
2114
|
+
align: p,
|
|
2113
2115
|
containerScrollOffset: (I == null ? void 0 : I.scrollTop) ?? 0,
|
|
2114
|
-
index:
|
|
2116
|
+
index: x
|
|
2115
2117
|
});
|
|
2116
2118
|
typeof (I == null ? void 0 : I.scrollTo) == "function" && I.scrollTo({
|
|
2117
|
-
behavior:
|
|
2118
|
-
left:
|
|
2119
|
-
top:
|
|
2119
|
+
behavior: g,
|
|
2120
|
+
left: b,
|
|
2121
|
+
top: O
|
|
2120
2122
|
});
|
|
2121
2123
|
},
|
|
2122
2124
|
scrollToColumn({
|
|
2123
|
-
align:
|
|
2124
|
-
behavior:
|
|
2125
|
-
index:
|
|
2125
|
+
align: g = "auto",
|
|
2126
|
+
behavior: v = "auto",
|
|
2127
|
+
index: C
|
|
2126
2128
|
}) {
|
|
2127
|
-
const
|
|
2128
|
-
align:
|
|
2129
|
+
const p = N({
|
|
2130
|
+
align: g,
|
|
2129
2131
|
containerScrollOffset: (I == null ? void 0 : I.scrollLeft) ?? 0,
|
|
2130
|
-
index:
|
|
2132
|
+
index: C
|
|
2131
2133
|
});
|
|
2132
2134
|
typeof (I == null ? void 0 : I.scrollTo) == "function" && I.scrollTo({
|
|
2133
|
-
behavior:
|
|
2134
|
-
left:
|
|
2135
|
+
behavior: v,
|
|
2136
|
+
left: p
|
|
2135
2137
|
});
|
|
2136
2138
|
},
|
|
2137
2139
|
scrollToRow({
|
|
2138
|
-
align:
|
|
2139
|
-
behavior:
|
|
2140
|
-
index:
|
|
2140
|
+
align: g = "auto",
|
|
2141
|
+
behavior: v = "auto",
|
|
2142
|
+
index: C
|
|
2141
2143
|
}) {
|
|
2142
|
-
const
|
|
2143
|
-
align:
|
|
2144
|
+
const p = Re({
|
|
2145
|
+
align: g,
|
|
2144
2146
|
containerScrollOffset: (I == null ? void 0 : I.scrollTop) ?? 0,
|
|
2145
|
-
index:
|
|
2147
|
+
index: C
|
|
2146
2148
|
});
|
|
2147
2149
|
typeof (I == null ? void 0 : I.scrollTo) == "function" && I.scrollTo({
|
|
2148
|
-
behavior:
|
|
2149
|
-
top:
|
|
2150
|
+
behavior: v,
|
|
2151
|
+
top: p
|
|
2150
2152
|
});
|
|
2151
2153
|
}
|
|
2152
2154
|
}),
|
|
2153
|
-
[I,
|
|
2154
|
-
),
|
|
2155
|
-
|
|
2155
|
+
[I, N, Re]
|
|
2156
|
+
), tt(() => {
|
|
2157
|
+
T >= 0 && H >= 0 && be >= 0 && ue >= 0 && u && u(
|
|
2156
2158
|
{
|
|
2157
|
-
columnStartIndex:
|
|
2158
|
-
columnStopIndex:
|
|
2159
|
+
columnStartIndex: F,
|
|
2160
|
+
columnStopIndex: W,
|
|
2159
2161
|
rowStartIndex: Se,
|
|
2160
|
-
rowStopIndex:
|
|
2162
|
+
rowStopIndex: Te
|
|
2161
2163
|
},
|
|
2162
2164
|
{
|
|
2163
|
-
columnStartIndex:
|
|
2164
|
-
columnStopIndex:
|
|
2165
|
+
columnStartIndex: T,
|
|
2166
|
+
columnStopIndex: H,
|
|
2165
2167
|
rowStartIndex: be,
|
|
2166
|
-
rowStopIndex:
|
|
2168
|
+
rowStopIndex: ue
|
|
2167
2169
|
}
|
|
2168
2170
|
);
|
|
2169
2171
|
}, [
|
|
2170
|
-
|
|
2172
|
+
u,
|
|
2173
|
+
T,
|
|
2171
2174
|
F,
|
|
2172
|
-
M,
|
|
2173
|
-
Y,
|
|
2174
2175
|
H,
|
|
2176
|
+
W,
|
|
2175
2177
|
be,
|
|
2176
2178
|
Se,
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
+
ue,
|
|
2180
|
+
Te
|
|
2179
2181
|
]);
|
|
2180
|
-
const
|
|
2181
|
-
const
|
|
2182
|
-
if (i > 0 &&
|
|
2183
|
-
for (let
|
|
2184
|
-
const
|
|
2185
|
-
for (let
|
|
2186
|
-
const
|
|
2187
|
-
|
|
2188
|
-
/* @__PURE__ */
|
|
2189
|
-
|
|
2182
|
+
const Pe = ye(() => {
|
|
2183
|
+
const g = [];
|
|
2184
|
+
if (i > 0 && A > 0)
|
|
2185
|
+
for (let v = be; v <= ue; v++) {
|
|
2186
|
+
const C = te(v), p = [];
|
|
2187
|
+
for (let x = T; x <= H; x++) {
|
|
2188
|
+
const b = $(x);
|
|
2189
|
+
p.push(
|
|
2190
|
+
/* @__PURE__ */ $t(
|
|
2191
|
+
Z,
|
|
2190
2192
|
{
|
|
2191
|
-
...
|
|
2193
|
+
...S,
|
|
2192
2194
|
ariaAttributes: {
|
|
2193
|
-
"aria-colindex":
|
|
2195
|
+
"aria-colindex": x + 1,
|
|
2194
2196
|
role: "gridcell"
|
|
2195
2197
|
},
|
|
2196
|
-
columnIndex:
|
|
2197
|
-
key:
|
|
2198
|
-
rowIndex:
|
|
2198
|
+
columnIndex: x,
|
|
2199
|
+
key: x,
|
|
2200
|
+
rowIndex: v,
|
|
2199
2201
|
style: {
|
|
2200
2202
|
position: "absolute",
|
|
2201
|
-
left:
|
|
2202
|
-
right:
|
|
2203
|
-
transform: `translate(${
|
|
2204
|
-
height:
|
|
2205
|
-
width:
|
|
2203
|
+
left: L ? void 0 : 0,
|
|
2204
|
+
right: L ? 0 : void 0,
|
|
2205
|
+
transform: `translate(${L ? -b.scrollOffset : b.scrollOffset}px, ${C.scrollOffset}px)`,
|
|
2206
|
+
height: C.size,
|
|
2207
|
+
width: b.size
|
|
2206
2208
|
}
|
|
2207
2209
|
}
|
|
2208
2210
|
)
|
|
2209
2211
|
);
|
|
2210
2212
|
}
|
|
2211
|
-
|
|
2212
|
-
/* @__PURE__ */
|
|
2213
|
+
g.push(
|
|
2214
|
+
/* @__PURE__ */ ee.jsx("div", { role: "row", "aria-rowindex": v + 1, children: p }, v)
|
|
2213
2215
|
);
|
|
2214
2216
|
}
|
|
2215
|
-
return
|
|
2217
|
+
return g;
|
|
2216
2218
|
}, [
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
+
Z,
|
|
2220
|
+
S,
|
|
2219
2221
|
i,
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
k,
|
|
2223
|
-
ee,
|
|
2222
|
+
T,
|
|
2223
|
+
H,
|
|
2224
2224
|
$,
|
|
2225
|
-
|
|
2225
|
+
te,
|
|
2226
|
+
L,
|
|
2227
|
+
A,
|
|
2226
2228
|
be,
|
|
2227
|
-
|
|
2228
|
-
]),
|
|
2229
|
+
ue
|
|
2230
|
+
]), y = /* @__PURE__ */ ee.jsx(
|
|
2229
2231
|
"div",
|
|
2230
2232
|
{
|
|
2231
2233
|
"aria-hidden": !0,
|
|
2232
2234
|
style: {
|
|
2233
2235
|
height: de(),
|
|
2234
|
-
width:
|
|
2236
|
+
width: j(),
|
|
2235
2237
|
zIndex: -1
|
|
2236
2238
|
}
|
|
2237
2239
|
}
|
|
2238
2240
|
);
|
|
2239
|
-
return
|
|
2240
|
-
|
|
2241
|
+
return $t(
|
|
2242
|
+
c,
|
|
2241
2243
|
{
|
|
2242
2244
|
"aria-colcount": i,
|
|
2243
|
-
"aria-rowcount":
|
|
2245
|
+
"aria-rowcount": A,
|
|
2244
2246
|
role: "grid",
|
|
2245
|
-
...
|
|
2246
|
-
className:
|
|
2247
|
-
dir:
|
|
2248
|
-
ref:
|
|
2247
|
+
...P,
|
|
2248
|
+
className: r,
|
|
2249
|
+
dir: a,
|
|
2250
|
+
ref: G,
|
|
2249
2251
|
style: {
|
|
2250
2252
|
position: "relative",
|
|
2251
2253
|
maxHeight: "100%",
|
|
2252
2254
|
maxWidth: "100%",
|
|
2253
2255
|
flexGrow: 1,
|
|
2254
2256
|
overflow: "auto",
|
|
2255
|
-
...
|
|
2257
|
+
...R
|
|
2256
2258
|
}
|
|
2257
2259
|
},
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2260
|
+
Pe,
|
|
2261
|
+
n,
|
|
2262
|
+
y
|
|
2261
2263
|
);
|
|
2262
2264
|
}
|
|
2263
|
-
const Yn = (e) => /* @__PURE__ */
|
|
2264
|
-
/* @__PURE__ */
|
|
2265
|
-
/* @__PURE__ */
|
|
2266
|
-
] }), Kn = (e) => /* @__PURE__ */
|
|
2267
|
-
/* @__PURE__ */
|
|
2268
|
-
/* @__PURE__ */
|
|
2269
|
-
] }), Gn = (e, t,
|
|
2265
|
+
const Yn = (e) => /* @__PURE__ */ ee.jsxs("svg", { viewBox: "64 64 896 896", focusable: "false", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", ...e, children: [
|
|
2266
|
+
/* @__PURE__ */ ee.jsx("path", { d: "M518.5 360.3a7.95 7.95 0 00-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7H381c10.2 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246z" }),
|
|
2267
|
+
/* @__PURE__ */ ee.jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" })
|
|
2268
|
+
] }), Kn = (e) => /* @__PURE__ */ ee.jsxs("svg", { viewBox: "64 64 896 896", focusable: "false", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", ...e, children: [
|
|
2269
|
+
/* @__PURE__ */ ee.jsx("path", { d: "M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z" }),
|
|
2270
|
+
/* @__PURE__ */ ee.jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" })
|
|
2271
|
+
] }), Gn = (e, t, n) => {
|
|
2270
2272
|
var i;
|
|
2271
|
-
const
|
|
2272
|
-
return
|
|
2273
|
-
}, Un = (e, t,
|
|
2274
|
-
var
|
|
2275
|
-
const d = (
|
|
2276
|
-
if (!
|
|
2273
|
+
const r = (i = n[e]) == null ? void 0 : i[t];
|
|
2274
|
+
return r ? r.rowspan === 0 || r.colspan === 0 : !1;
|
|
2275
|
+
}, Un = (e, t, n, r, i, s, l) => {
|
|
2276
|
+
var R, c;
|
|
2277
|
+
const d = (R = r[e]) == null ? void 0 : R[t], a = l || d;
|
|
2278
|
+
if (!a)
|
|
2277
2279
|
return;
|
|
2278
|
-
const
|
|
2279
|
-
let
|
|
2280
|
-
const
|
|
2281
|
-
if (
|
|
2282
|
-
let
|
|
2283
|
-
for (let
|
|
2284
|
-
|
|
2285
|
-
|
|
2280
|
+
const h = { ...n };
|
|
2281
|
+
let u = i[t];
|
|
2282
|
+
const w = u.field.split("||"), m = w[w.length - 1], A = s == null ? void 0 : s.find((P) => P.field === m || P.field === u.field), M = (A == null ? void 0 : A.style) || (u == null ? void 0 : u.style);
|
|
2283
|
+
if (a.colspan > 1) {
|
|
2284
|
+
let P = 0;
|
|
2285
|
+
for (let S = t; S < t + a.colspan; S++)
|
|
2286
|
+
P += Number((c = i[S]) == null ? void 0 : c.width) || 100;
|
|
2287
|
+
h.width = P;
|
|
2286
2288
|
}
|
|
2287
|
-
return
|
|
2289
|
+
return a.rowspan > 1 && (h.height = a.rowspan * Rt), h.height || (h.height = Rt), M != null && M.textAlign && (h.textAlign = M.textAlign, M.textAlign === "right" && (h.justifyContent = "flex-end"), M.textAlign === "center" && (h.justifyContent = "center")), h.border = "1px solid #f0f0f0", h.padding = "8px 16px", h.display = "flex", h.alignItems = "center", h.backgroundColor = "#fff", a.rowspan > Qe && (h.zIndex = 1e4 - e, h.position = "absolute"), h;
|
|
2288
2290
|
}, qn = ({
|
|
2289
2291
|
columnIndex: e,
|
|
2290
2292
|
rowIndex: t,
|
|
2291
|
-
style:
|
|
2292
|
-
mergedData:
|
|
2293
|
+
style: n,
|
|
2294
|
+
mergedData: r,
|
|
2293
2295
|
columns: i,
|
|
2294
2296
|
handleExpand: s,
|
|
2295
|
-
meta:
|
|
2297
|
+
meta: l,
|
|
2296
2298
|
mergedCellsMap: d
|
|
2297
2299
|
}) => {
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2300
|
+
if (!r[t])
|
|
2301
|
+
return null;
|
|
2302
|
+
let a = r[t][e];
|
|
2303
|
+
if (!a || !i[e])
|
|
2304
|
+
return null;
|
|
2305
|
+
let h = !1;
|
|
2306
|
+
if (a.rowspan === 0 && d) {
|
|
2307
|
+
const P = `${t}-${e}`, S = d.get(P);
|
|
2308
|
+
if (S && S.rowspan > Qe && S.startIndex < t) {
|
|
2309
|
+
const Z = S.rowspan - (t - S.startIndex);
|
|
2310
|
+
a = {
|
|
2311
|
+
...a,
|
|
2312
|
+
...S,
|
|
2313
|
+
rowspan: Z
|
|
2307
2314
|
// We might need to adjust content if it relies on being at the top, but usually content is same.
|
|
2308
2315
|
// onClick and others are copied from mergeInfo
|
|
2309
|
-
},
|
|
2316
|
+
}, h = !0;
|
|
2310
2317
|
}
|
|
2311
2318
|
}
|
|
2312
|
-
if (!
|
|
2319
|
+
if (!h && Gn(t, e, r))
|
|
2313
2320
|
return null;
|
|
2314
|
-
const
|
|
2315
|
-
let
|
|
2316
|
-
if (
|
|
2317
|
-
const
|
|
2318
|
-
|
|
2321
|
+
const u = Un(t, e, n, r, i, l, a), w = i[e], m = w.field.split("||"), A = m[m.length - 1], M = l == null ? void 0 : l.find((P) => P.field === A || P.field === w.field), R = Ke.isValidElement(a.content);
|
|
2322
|
+
let c;
|
|
2323
|
+
if (c = a.content, "formatter" in w && w.formatter && !R && (c = w.formatter(c, a.data)), M != null && M.clickHandler && !R && c !== null && c !== void 0) {
|
|
2324
|
+
const P = a.data;
|
|
2325
|
+
c = /* @__PURE__ */ ee.jsx(
|
|
2319
2326
|
"a",
|
|
2320
2327
|
{
|
|
2321
2328
|
href: "javascript:void(0)",
|
|
2322
|
-
onClick: (
|
|
2323
|
-
|
|
2329
|
+
onClick: (S) => {
|
|
2330
|
+
S.preventDefault(), S.stopPropagation(), M.clickHandler(P);
|
|
2324
2331
|
},
|
|
2325
2332
|
className: "virtual-table-cell-link",
|
|
2326
|
-
children:
|
|
2333
|
+
children: c
|
|
2327
2334
|
}
|
|
2328
2335
|
);
|
|
2329
2336
|
}
|
|
2330
|
-
return /* @__PURE__ */
|
|
2337
|
+
return /* @__PURE__ */ ee.jsxs(
|
|
2331
2338
|
"div",
|
|
2332
2339
|
{
|
|
2333
|
-
style:
|
|
2334
|
-
className:
|
|
2340
|
+
style: u,
|
|
2341
|
+
className: St("table-cell", "virtual-table-cell", {
|
|
2335
2342
|
"virtual-table-cell-last": e === i.length - 1
|
|
2336
2343
|
}),
|
|
2337
|
-
title: typeof
|
|
2344
|
+
title: typeof c == "string" ? c : void 0,
|
|
2338
2345
|
children: [
|
|
2339
|
-
/* @__PURE__ */
|
|
2340
|
-
|
|
2341
|
-
} }) : /* @__PURE__ */
|
|
2342
|
-
|
|
2346
|
+
/* @__PURE__ */ ee.jsx("span", { className: "expand-icon", children: a.expandable ? a.expanded ? /* @__PURE__ */ ee.jsx(Yn, { onClick: () => {
|
|
2347
|
+
a.onClick && a.onClick(a), s(a);
|
|
2348
|
+
} }) : /* @__PURE__ */ ee.jsx(Kn, { onClick: () => {
|
|
2349
|
+
a.onClick && a.onClick(a), s(a);
|
|
2343
2350
|
} }) : null }),
|
|
2344
|
-
|
|
2351
|
+
c
|
|
2345
2352
|
]
|
|
2346
2353
|
}
|
|
2347
2354
|
);
|
|
2348
2355
|
}, Jn = (e) => {
|
|
2349
|
-
const { data: t, info:
|
|
2350
|
-
const
|
|
2351
|
-
return Object.defineProperty(
|
|
2356
|
+
const { data: t, info: n, scroll: r, columns: i, tableWidth: s } = e, { ref: l, onScroll: d } = n, a = Le(), h = ye(() => {
|
|
2357
|
+
const L = {};
|
|
2358
|
+
return Object.defineProperty(L, "scrollLeft", {
|
|
2352
2359
|
get: () => {
|
|
2353
|
-
var
|
|
2354
|
-
return ((
|
|
2360
|
+
var $, j;
|
|
2361
|
+
return ((j = ($ = a.current) == null ? void 0 : $.element) == null ? void 0 : j.scrollLeft) || 0;
|
|
2355
2362
|
},
|
|
2356
|
-
set: (
|
|
2357
|
-
var
|
|
2358
|
-
(
|
|
2363
|
+
set: ($) => {
|
|
2364
|
+
var j;
|
|
2365
|
+
(j = a.current) != null && j.element && (a.current.element.scrollLeft = $);
|
|
2359
2366
|
}
|
|
2360
|
-
}), Object.defineProperty(
|
|
2367
|
+
}), Object.defineProperty(L, "scrollTop", {
|
|
2361
2368
|
get: () => {
|
|
2362
|
-
var
|
|
2363
|
-
return ((
|
|
2369
|
+
var $, j;
|
|
2370
|
+
return ((j = ($ = a.current) == null ? void 0 : $.element) == null ? void 0 : j.scrollTop) || 0;
|
|
2364
2371
|
},
|
|
2365
|
-
set: (
|
|
2366
|
-
var
|
|
2367
|
-
(
|
|
2372
|
+
set: ($) => {
|
|
2373
|
+
var j;
|
|
2374
|
+
(j = a.current) != null && j.element && (a.current.element.scrollTop = $);
|
|
2368
2375
|
}
|
|
2369
|
-
}),
|
|
2376
|
+
}), L;
|
|
2370
2377
|
}, []);
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
}, [
|
|
2374
|
-
const
|
|
2375
|
-
let
|
|
2376
|
-
return
|
|
2377
|
-
|
|
2378
|
-
}),
|
|
2379
|
-
}, []),
|
|
2380
|
-
let
|
|
2381
|
-
return
|
|
2382
|
-
|
|
2383
|
-
}),
|
|
2384
|
-
}, []),
|
|
2385
|
-
const
|
|
2386
|
-
let
|
|
2387
|
-
return typeof
|
|
2388
|
-
}, [
|
|
2389
|
-
if (
|
|
2390
|
-
d && d(
|
|
2378
|
+
tt(() => {
|
|
2379
|
+
l && (l.current = h);
|
|
2380
|
+
}, [l, h]);
|
|
2381
|
+
const u = t, w = u.length, m = ge((L) => {
|
|
2382
|
+
let $ = 0;
|
|
2383
|
+
return L.forEach((j) => {
|
|
2384
|
+
j != null && j.children && j.children.length > 0 ? $ += m(j.children) : $ += 1;
|
|
2385
|
+
}), $;
|
|
2386
|
+
}, []), A = m(i), M = ge((L) => {
|
|
2387
|
+
let $ = [];
|
|
2388
|
+
return L.forEach((j) => {
|
|
2389
|
+
j != null && j.children && j.children.length > 0 ? $ = [...$, ...M(j.children)] : $.push(j);
|
|
2390
|
+
}), $;
|
|
2391
|
+
}, []), R = M(i), c = ge((L) => {
|
|
2392
|
+
const $ = R[L];
|
|
2393
|
+
let j = ($ == null ? void 0 : $.width) || 100;
|
|
2394
|
+
return typeof j == "string" && (j = parseInt(j.replace("px", "")) || 100), j;
|
|
2395
|
+
}, [R]), P = ge((L) => Rt, []), S = ye(() => u.map((L) => L.cells), [u]), Z = ge((L) => {
|
|
2396
|
+
if (L && typeof L.scrollLeft == "number") {
|
|
2397
|
+
d && d(L);
|
|
2391
2398
|
return;
|
|
2392
2399
|
}
|
|
2393
|
-
if (
|
|
2394
|
-
const { scrollLeft:
|
|
2395
|
-
d && d({ scrollLeft:
|
|
2400
|
+
if (L && L.target) {
|
|
2401
|
+
const { scrollLeft: $, scrollTop: j } = L.target;
|
|
2402
|
+
d && d({ scrollLeft: $, scrollTop: j });
|
|
2396
2403
|
}
|
|
2397
2404
|
}, [d]), I = ye(() => {
|
|
2398
|
-
const
|
|
2399
|
-
return
|
|
2400
|
-
|
|
2401
|
-
if (
|
|
2402
|
-
const
|
|
2403
|
-
startIndex:
|
|
2404
|
-
rowspan:
|
|
2405
|
-
content:
|
|
2406
|
-
data:
|
|
2407
|
-
expandable:
|
|
2408
|
-
expanded:
|
|
2409
|
-
level:
|
|
2410
|
-
rowKey:
|
|
2411
|
-
onClick:
|
|
2405
|
+
const L = /* @__PURE__ */ new Map();
|
|
2406
|
+
return u.forEach(($, j) => {
|
|
2407
|
+
$.cells.forEach((T, F) => {
|
|
2408
|
+
if (T.rowspan > Qe) {
|
|
2409
|
+
const N = {
|
|
2410
|
+
startIndex: j,
|
|
2411
|
+
rowspan: T.rowspan,
|
|
2412
|
+
content: T.content,
|
|
2413
|
+
data: T.data,
|
|
2414
|
+
expandable: T.expandable,
|
|
2415
|
+
expanded: T.expanded,
|
|
2416
|
+
level: T.level,
|
|
2417
|
+
rowKey: T.rowKey,
|
|
2418
|
+
onClick: T.onClick
|
|
2412
2419
|
};
|
|
2413
|
-
for (let
|
|
2414
|
-
const
|
|
2415
|
-
|
|
2420
|
+
for (let H = 0; H < T.rowspan; H++) {
|
|
2421
|
+
const W = `${j + H}-${F}`;
|
|
2422
|
+
L.set(W, N);
|
|
2416
2423
|
}
|
|
2417
2424
|
}
|
|
2418
2425
|
});
|
|
2419
|
-
}),
|
|
2420
|
-
}, [
|
|
2421
|
-
return /* @__PURE__ */
|
|
2426
|
+
}), L;
|
|
2427
|
+
}, [u]), G = (typeof (r == null ? void 0 : r.y) == "number" ? r.y : parseInt((r == null ? void 0 : r.y) || "400")) || 400;
|
|
2428
|
+
return /* @__PURE__ */ ee.jsx(
|
|
2422
2429
|
Bn,
|
|
2423
2430
|
{
|
|
2424
|
-
gridRef:
|
|
2425
|
-
columnCount:
|
|
2426
|
-
columnWidth:
|
|
2427
|
-
rowCount:
|
|
2428
|
-
rowHeight:
|
|
2429
|
-
style: { height:
|
|
2430
|
-
onScroll:
|
|
2431
|
+
gridRef: a,
|
|
2432
|
+
columnCount: A,
|
|
2433
|
+
columnWidth: c,
|
|
2434
|
+
rowCount: w,
|
|
2435
|
+
rowHeight: P,
|
|
2436
|
+
style: { height: G - 40, width: s, overflowY: "auto" },
|
|
2437
|
+
onScroll: Z,
|
|
2431
2438
|
className: "virtual-grid",
|
|
2432
|
-
overscanCount:
|
|
2439
|
+
overscanCount: Qe,
|
|
2433
2440
|
cellComponent: qn,
|
|
2434
2441
|
cellProps: {
|
|
2435
|
-
mergedData:
|
|
2436
|
-
columns:
|
|
2437
|
-
data:
|
|
2442
|
+
mergedData: S,
|
|
2443
|
+
columns: R,
|
|
2444
|
+
data: u,
|
|
2438
2445
|
handleExpand: e.handleExpand,
|
|
2439
2446
|
meta: e.meta,
|
|
2440
2447
|
mergedCellsMap: I
|
|
2441
2448
|
}
|
|
2442
2449
|
}
|
|
2443
2450
|
);
|
|
2444
|
-
},
|
|
2445
|
-
const t = [],
|
|
2446
|
-
|
|
2451
|
+
}, Ue = (e) => {
|
|
2452
|
+
const t = [], n = (r) => {
|
|
2453
|
+
r.children && r.children.length > 0 ? r.children.forEach((i) => n(i)) : t.push(r);
|
|
2447
2454
|
};
|
|
2448
|
-
return e.forEach((
|
|
2449
|
-
},
|
|
2450
|
-
const
|
|
2451
|
-
let
|
|
2452
|
-
for (const i of
|
|
2453
|
-
if (
|
|
2454
|
-
return
|
|
2455
|
-
|
|
2455
|
+
return e.forEach((r) => n(r)), t;
|
|
2456
|
+
}, ve = (e, t) => {
|
|
2457
|
+
const n = t.split(".");
|
|
2458
|
+
let r = e;
|
|
2459
|
+
for (const i of n) {
|
|
2460
|
+
if (r == null)
|
|
2461
|
+
return r;
|
|
2462
|
+
r = r[i];
|
|
2456
2463
|
}
|
|
2457
|
-
return
|
|
2458
|
-
},
|
|
2464
|
+
return (r == null || r === "") && (r = me), r;
|
|
2465
|
+
}, dt = (e, t) => "|" + t.map((r) => ve(e, r)).join("|"), Jt = (e, t) => {
|
|
2459
2466
|
if (!e)
|
|
2460
2467
|
return null;
|
|
2461
2468
|
try {
|
|
2462
|
-
const
|
|
2463
|
-
const
|
|
2464
|
-
return
|
|
2469
|
+
const n = e.replace(/\{(\w+)\}/g, (i, s) => {
|
|
2470
|
+
const l = t[s];
|
|
2471
|
+
return l != null && !isNaN(l) ? String(l) : "0";
|
|
2465
2472
|
});
|
|
2466
|
-
if (!/^[\d\.\+\-\*\/\(\)\s]+$/.test(
|
|
2467
|
-
return null;
|
|
2468
|
-
const
|
|
2469
|
-
return typeof
|
|
2470
|
-
} catch {
|
|
2471
|
-
return null;
|
|
2473
|
+
if (!/^[\d\.\+\-\*\/\(\)\s]+$/.test(n))
|
|
2474
|
+
return console.warn("Invalid characters in expression:", e), null;
|
|
2475
|
+
const r = new Function(`return ${n}`)();
|
|
2476
|
+
return typeof r != "number" || !isFinite(r) || isNaN(r) ? null : r;
|
|
2477
|
+
} catch (n) {
|
|
2478
|
+
return console.error("Expression evaluation error:", e, n), null;
|
|
2472
2479
|
}
|
|
2473
|
-
},
|
|
2474
|
-
sum: (e) => e.reduce((t,
|
|
2480
|
+
}, qe = {
|
|
2481
|
+
sum: (e) => e.reduce((t, n) => t + (Number(n) || 0), 0),
|
|
2475
2482
|
avg: (e) => {
|
|
2476
2483
|
const t = e;
|
|
2477
|
-
return t.length > 0 ? t.reduce((
|
|
2484
|
+
return t.length > 0 ? t.reduce((n, r) => n + (isNaN(Number(r)) ? 0 : Number(r)), 0) / t.length : 0;
|
|
2478
2485
|
},
|
|
2479
2486
|
count: (e) => e.length,
|
|
2480
2487
|
min: (e) => Math.min(...e.map((t) => Number(t) || 1 / 0)),
|
|
@@ -2484,490 +2491,547 @@ const Yn = (e) => /* @__PURE__ */ Q.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2484
2491
|
const t = e.map((i) => Number(i)).filter((i) => !isNaN(i));
|
|
2485
2492
|
if (t.length === 0)
|
|
2486
2493
|
return 0;
|
|
2487
|
-
const
|
|
2488
|
-
return t.map((i) => Math.pow(i -
|
|
2494
|
+
const n = t.reduce((i, s) => i + s, 0) / t.length;
|
|
2495
|
+
return t.map((i) => Math.pow(i - n, 2)).reduce((i, s) => i + s, 0) / t.length;
|
|
2489
2496
|
},
|
|
2490
2497
|
stddev: (e) => {
|
|
2491
2498
|
const t = e.map((s) => Number(s)).filter((s) => !isNaN(s));
|
|
2492
2499
|
if (t.length === 0)
|
|
2493
2500
|
return 0;
|
|
2494
|
-
const
|
|
2501
|
+
const n = t.reduce((s, l) => s + l, 0) / t.length, i = t.map((s) => Math.pow(s - n, 2)).reduce((s, l) => s + l, 0) / t.length;
|
|
2495
2502
|
return Math.sqrt(i);
|
|
2496
2503
|
}
|
|
2497
|
-
}, ce = /* @__PURE__ */ new Map(),
|
|
2498
|
-
const { data: t, sortParams:
|
|
2499
|
-
if (!t || t.length === 0 || !
|
|
2504
|
+
}, ce = /* @__PURE__ */ new Map(), ht = /* @__PURE__ */ new Map(), pt = /* @__PURE__ */ new Map(), Xn = (e) => {
|
|
2505
|
+
const { data: t, sortParams: n, fields: r, config: i } = e, { rows: s, columns: l, values: d } = r;
|
|
2506
|
+
if (!t || t.length === 0 || !s.length && !l.length && !d.length)
|
|
2500
2507
|
return {
|
|
2501
2508
|
list: [],
|
|
2502
|
-
dataExpandFilter: (
|
|
2509
|
+
dataExpandFilter: (y) => y
|
|
2503
2510
|
};
|
|
2504
|
-
const
|
|
2505
|
-
t.forEach((
|
|
2506
|
-
const
|
|
2507
|
-
|
|
2508
|
-
const
|
|
2509
|
-
|
|
2510
|
-
const
|
|
2511
|
-
|
|
2511
|
+
const a = Ue(s), h = Ue(l), u = Ue(d), w = u.filter((y) => !y.hidden), m = a.map((y) => y.field), A = h.map((y) => y.field), M = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
|
|
2512
|
+
t.forEach((y) => {
|
|
2513
|
+
const g = dt(y, m);
|
|
2514
|
+
M.has(g) || M.set(g, []), M.get(g).push(y);
|
|
2515
|
+
const v = dt(y, A);
|
|
2516
|
+
R.has(v) || R.set(v, []), R.get(v).push(y);
|
|
2517
|
+
const C = `${g}||${v}`;
|
|
2518
|
+
c.has(C) || c.set(C, []), c.get(C).push(y);
|
|
2512
2519
|
});
|
|
2513
|
-
const
|
|
2514
|
-
if (
|
|
2515
|
-
for (const
|
|
2516
|
-
const { field:
|
|
2517
|
-
if (
|
|
2518
|
-
return
|
|
2519
|
-
if (
|
|
2520
|
-
return
|
|
2520
|
+
const P = () => Array.from(M.entries()).sort(([y, g], [v, C]) => {
|
|
2521
|
+
if (n && n.length > 0)
|
|
2522
|
+
for (const p of n) {
|
|
2523
|
+
const { field: x, sortType: b } = p, O = b === "asc", z = ve(g[0], x), V = ve(C[0], x);
|
|
2524
|
+
if (z < V)
|
|
2525
|
+
return O ? -1 : 1;
|
|
2526
|
+
if (z > V)
|
|
2527
|
+
return O ? 1 : -1;
|
|
2521
2528
|
}
|
|
2522
|
-
for (let
|
|
2523
|
-
const
|
|
2524
|
-
if (
|
|
2525
|
-
if (
|
|
2526
|
-
const
|
|
2527
|
-
if (
|
|
2528
|
-
return
|
|
2529
|
-
if (
|
|
2530
|
-
return
|
|
2529
|
+
for (let p = 0; p < m.length; p++) {
|
|
2530
|
+
const x = m[p], b = a[p], O = ve(g[0], x), z = ve(C[0], x);
|
|
2531
|
+
if (O !== z)
|
|
2532
|
+
if (b.sort && b.sort.enabled) {
|
|
2533
|
+
const V = b.sort.type === "asc";
|
|
2534
|
+
if (O < z)
|
|
2535
|
+
return V ? -1 : 1;
|
|
2536
|
+
if (O > z)
|
|
2537
|
+
return V ? 1 : -1;
|
|
2531
2538
|
} else {
|
|
2532
|
-
if (
|
|
2539
|
+
if (O < z)
|
|
2533
2540
|
return -1;
|
|
2534
|
-
if (
|
|
2541
|
+
if (O > z)
|
|
2535
2542
|
return 1;
|
|
2536
2543
|
}
|
|
2537
2544
|
}
|
|
2538
2545
|
return 0;
|
|
2539
|
-
}),
|
|
2540
|
-
for (let
|
|
2541
|
-
const
|
|
2542
|
-
if (
|
|
2543
|
-
if (
|
|
2544
|
-
const
|
|
2545
|
-
if (
|
|
2546
|
-
return
|
|
2547
|
-
if (
|
|
2548
|
-
return
|
|
2546
|
+
}), S = () => Array.from(R.entries()).sort(([y, g], [v, C]) => {
|
|
2547
|
+
for (let p = 0; p < A.length; p++) {
|
|
2548
|
+
const x = A[p], b = h[p], O = ve(g[0], x), z = ve(C[0], x);
|
|
2549
|
+
if (O !== z)
|
|
2550
|
+
if (b.sort && b.sort.enabled) {
|
|
2551
|
+
const V = b.sort.type === "asc";
|
|
2552
|
+
if (O < z)
|
|
2553
|
+
return V ? -1 : 1;
|
|
2554
|
+
if (O > z)
|
|
2555
|
+
return V ? 1 : -1;
|
|
2549
2556
|
} else {
|
|
2550
|
-
if (
|
|
2557
|
+
if (O < z)
|
|
2551
2558
|
return -1;
|
|
2552
|
-
if (
|
|
2559
|
+
if (O > z)
|
|
2553
2560
|
return 1;
|
|
2554
2561
|
}
|
|
2555
2562
|
}
|
|
2556
2563
|
return 0;
|
|
2557
|
-
}),
|
|
2558
|
-
const
|
|
2559
|
-
for (let
|
|
2560
|
-
|
|
2561
|
-
return
|
|
2562
|
-
}, J = () => {
|
|
2563
|
-
const g = T(), w = /* @__PURE__ */ new Set();
|
|
2564
|
-
return g.forEach((_, R) => {
|
|
2565
|
-
const m = _[_.length - 1];
|
|
2566
|
-
m.total && m.total.enabled && w.add(R);
|
|
2567
|
-
}), w;
|
|
2564
|
+
}), Z = () => {
|
|
2565
|
+
const y = [], g = Ue(s);
|
|
2566
|
+
for (let v = 1; v <= g.length; v++)
|
|
2567
|
+
y.push(g.slice(0, v));
|
|
2568
|
+
return y;
|
|
2568
2569
|
}, I = () => {
|
|
2569
|
-
const
|
|
2570
|
-
return
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2570
|
+
const y = Z(), g = /* @__PURE__ */ new Set();
|
|
2571
|
+
return y.forEach((v, C) => {
|
|
2572
|
+
const p = v[v.length - 1];
|
|
2573
|
+
p.total && p.total.enabled && g.add(C);
|
|
2574
|
+
}), g;
|
|
2575
|
+
}, G = () => {
|
|
2576
|
+
const y = Z(), g = [], v = I();
|
|
2577
|
+
return v.size === 0 || v.forEach((C) => {
|
|
2578
|
+
let p = [];
|
|
2579
|
+
C > 0 && (p = y[C - 1]);
|
|
2580
|
+
const x = {};
|
|
2581
|
+
t.forEach((b) => {
|
|
2582
|
+
let O = "";
|
|
2583
|
+
if (C > 0 ? O = p.map((z) => ve(b, z.field)).join("|") : O = "__GLOBAL__", !x[O]) {
|
|
2584
|
+
const V = y[C][C].total;
|
|
2585
|
+
x[O] = {
|
|
2579
2586
|
records: [],
|
|
2580
|
-
config:
|
|
2587
|
+
config: V
|
|
2581
2588
|
};
|
|
2582
2589
|
}
|
|
2583
|
-
O
|
|
2584
|
-
}),
|
|
2585
|
-
}),
|
|
2586
|
-
},
|
|
2587
|
-
if (ce.has(
|
|
2588
|
-
const
|
|
2589
|
-
|
|
2590
|
-
const
|
|
2591
|
-
if (
|
|
2592
|
-
const
|
|
2593
|
-
if (ce.has(
|
|
2594
|
-
const
|
|
2595
|
-
|
|
2596
|
-
|
|
2590
|
+
x[O].records.push(b);
|
|
2591
|
+
}), g.push({ level: C, data: x });
|
|
2592
|
+
}), g;
|
|
2593
|
+
}, L = S(), $ = /* @__PURE__ */ new Map(), j = (y, g) => {
|
|
2594
|
+
if (ce.has(y)) {
|
|
2595
|
+
const v = ce.get(y), p = !v.get(g);
|
|
2596
|
+
v.set(g, p), ht.set("rowKey", g), ht.set("level", y), ht.set("expanded", p);
|
|
2597
|
+
const x = y - 1;
|
|
2598
|
+
if (x >= 0 && x < a.length && a[x].clickExpandChildren && p === !0) {
|
|
2599
|
+
const O = y + 1;
|
|
2600
|
+
if (ce.has(O)) {
|
|
2601
|
+
const z = ce.get(O), V = g + "|";
|
|
2602
|
+
z.forEach((k, B) => {
|
|
2603
|
+
B.startsWith(V) && (z.set(B, !0), T(O, B));
|
|
2597
2604
|
});
|
|
2598
2605
|
}
|
|
2599
2606
|
}
|
|
2600
2607
|
}
|
|
2601
|
-
},
|
|
2602
|
-
const
|
|
2603
|
-
if (ce.has(
|
|
2604
|
-
const
|
|
2605
|
-
|
|
2606
|
-
|
|
2608
|
+
}, T = (y, g) => {
|
|
2609
|
+
const v = y + 1;
|
|
2610
|
+
if (ce.has(v)) {
|
|
2611
|
+
const C = ce.get(v), p = g + "|";
|
|
2612
|
+
C.forEach((x, b) => {
|
|
2613
|
+
b.startsWith(p) && (C.set(b, !0), T(v, b));
|
|
2607
2614
|
});
|
|
2608
2615
|
}
|
|
2609
|
-
}, F = (
|
|
2610
|
-
const
|
|
2611
|
-
if (
|
|
2612
|
-
return
|
|
2613
|
-
for (let
|
|
2614
|
-
const { level:
|
|
2615
|
-
Object.keys(
|
|
2616
|
-
const { records:
|
|
2617
|
-
let
|
|
2618
|
-
if (
|
|
2619
|
-
|
|
2616
|
+
}, F = (y) => {
|
|
2617
|
+
const g = G(), v = [...y];
|
|
2618
|
+
if (g.length === 0)
|
|
2619
|
+
return v;
|
|
2620
|
+
for (let C = 0; C < g.length; C++) {
|
|
2621
|
+
const { level: p, data: x } = g[C];
|
|
2622
|
+
Object.keys(x).forEach((b) => {
|
|
2623
|
+
const { records: O, config: z } = x[b], { label: V = Ge, position: k = "bottom" } = z || {}, B = b.split("|");
|
|
2624
|
+
let E = -1, le = -1;
|
|
2625
|
+
if (p === 0)
|
|
2626
|
+
E = 0, le = v.length - 1;
|
|
2620
2627
|
else
|
|
2621
|
-
for (let
|
|
2622
|
-
const
|
|
2623
|
-
|
|
2624
|
-
var
|
|
2625
|
-
return ((
|
|
2626
|
-
}) && (
|
|
2628
|
+
for (let q = 0; q < v.length; q++) {
|
|
2629
|
+
const oe = v[q];
|
|
2630
|
+
m.slice(0, p).every((we, _e) => {
|
|
2631
|
+
var se;
|
|
2632
|
+
return ((se = oe[_e]) == null ? void 0 : se.content) === B[_e];
|
|
2633
|
+
}) && (E === -1 && (E = q), le = q);
|
|
2627
2634
|
}
|
|
2628
|
-
if (
|
|
2629
|
-
const
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2635
|
+
if (E !== -1) {
|
|
2636
|
+
const q = [];
|
|
2637
|
+
i != null && i.showLine && q.unshift({
|
|
2638
|
+
content: me,
|
|
2639
|
+
rowspan: 1,
|
|
2640
|
+
colspan: 1,
|
|
2641
|
+
data: null
|
|
2642
|
+
});
|
|
2643
|
+
let oe = "";
|
|
2644
|
+
m.forEach((we, _e) => {
|
|
2645
|
+
let se = me;
|
|
2646
|
+
const re = _e + 1, fe = re < m.length, Me = a[_e];
|
|
2647
|
+
_e <= p && (_e === p ? se = V : se = B[_e], oe += `|${se}`);
|
|
2648
|
+
const We = ce.has(re) && ce.get(re).get(oe) || !0;
|
|
2649
|
+
(se === me || se === null || se === void 0) && Me.emptyReplace && (se = Me.emptyReplace), q.push({
|
|
2650
|
+
content: se,
|
|
2638
2651
|
rowspan: 1,
|
|
2639
2652
|
colspan: 1,
|
|
2640
2653
|
data: null,
|
|
2641
|
-
rowKey:
|
|
2642
|
-
expandable:
|
|
2643
|
-
expanded:
|
|
2644
|
-
level:
|
|
2645
|
-
onClick:
|
|
2654
|
+
rowKey: oe,
|
|
2655
|
+
expandable: k === "top" && fe && se !== me && se !== Ge,
|
|
2656
|
+
expanded: k === "top" ? We : !1,
|
|
2657
|
+
level: re,
|
|
2658
|
+
onClick: k === "top" && fe ? (ze) => j(ze.level, ze.rowKey) : void 0
|
|
2646
2659
|
});
|
|
2647
|
-
}),
|
|
2648
|
-
const
|
|
2649
|
-
|
|
2650
|
-
if (
|
|
2660
|
+
}), L.forEach(([we, _e]) => {
|
|
2661
|
+
const se = {};
|
|
2662
|
+
u.forEach((re) => {
|
|
2663
|
+
if (re.calculateType === "expr")
|
|
2651
2664
|
return;
|
|
2652
|
-
const
|
|
2665
|
+
const fe = re.field, Me = re.calculateType || "sum", ze = O.filter((Ve) => dt(Ve, A) === we).map((Ve) => ve(Ve, fe));
|
|
2653
2666
|
let je = 0;
|
|
2654
|
-
|
|
2655
|
-
}),
|
|
2656
|
-
if (
|
|
2657
|
-
const
|
|
2658
|
-
|
|
2667
|
+
qe[Me] && (je = qe[Me](ze)), se[re.field] = je;
|
|
2668
|
+
}), u.forEach((re) => {
|
|
2669
|
+
if (re.calculateType === "expr" && re.expression) {
|
|
2670
|
+
const fe = Jt(re.expression, se);
|
|
2671
|
+
se[re.field] = fe !== null ? fe : 0;
|
|
2659
2672
|
}
|
|
2660
|
-
}),
|
|
2661
|
-
let
|
|
2662
|
-
(
|
|
2663
|
-
content:
|
|
2673
|
+
}), w.forEach((re) => {
|
|
2674
|
+
let fe = se[re.field];
|
|
2675
|
+
(fe === me || fe === null || fe === void 0 || typeof fe == "number" && isNaN(fe)) && re.emptyReplace && (fe = re.emptyReplace), q.push({
|
|
2676
|
+
content: fe,
|
|
2664
2677
|
rowspan: 1,
|
|
2665
2678
|
colspan: 1,
|
|
2666
2679
|
data: null
|
|
2667
2680
|
});
|
|
2668
2681
|
});
|
|
2669
2682
|
});
|
|
2670
|
-
const
|
|
2671
|
-
|
|
2683
|
+
const xe = k === "top" ? E : le + 1;
|
|
2684
|
+
if (!pt.has(oe) && (v.splice(xe, 0, q), pt.set(oe, 1), k === "top" && p > 0)) {
|
|
2685
|
+
const we = "|" + b;
|
|
2686
|
+
$.set(we, oe);
|
|
2687
|
+
}
|
|
2672
2688
|
}
|
|
2673
2689
|
});
|
|
2674
2690
|
}
|
|
2675
|
-
return
|
|
2676
|
-
}
|
|
2677
|
-
ce.clear(), t.forEach((
|
|
2678
|
-
let
|
|
2679
|
-
|
|
2680
|
-
const
|
|
2681
|
-
|
|
2682
|
-
const
|
|
2683
|
-
ce.get(
|
|
2691
|
+
return v;
|
|
2692
|
+
};
|
|
2693
|
+
ce.clear(), t.forEach((y) => {
|
|
2694
|
+
let g = "";
|
|
2695
|
+
m.forEach((v, C) => {
|
|
2696
|
+
const p = C + 1, x = ve(y, v);
|
|
2697
|
+
g += `|${x}`, ce.has(p) || ce.set(p, /* @__PURE__ */ new Map());
|
|
2698
|
+
const b = a[C].collapsed;
|
|
2699
|
+
ce.get(p).set(g, !b);
|
|
2684
2700
|
});
|
|
2685
2701
|
});
|
|
2686
|
-
const
|
|
2687
|
-
let
|
|
2688
|
-
const
|
|
2689
|
-
|
|
2690
|
-
const
|
|
2691
|
-
let
|
|
2692
|
-
|
|
2693
|
-
const
|
|
2694
|
-
|
|
2695
|
-
const
|
|
2696
|
-
|
|
2702
|
+
const N = P();
|
|
2703
|
+
let H = [];
|
|
2704
|
+
const W = /* @__PURE__ */ new Map();
|
|
2705
|
+
N.forEach(([y, g]) => {
|
|
2706
|
+
const v = g[0];
|
|
2707
|
+
let C = "";
|
|
2708
|
+
m.forEach((p, x) => {
|
|
2709
|
+
const b = ve(v, p), O = x + 1;
|
|
2710
|
+
C += `|${b}`, W.has(O) || W.set(O, /* @__PURE__ */ new Map());
|
|
2711
|
+
const z = W.get(O);
|
|
2712
|
+
z.set(C, (z.get(C) || 0) + 1);
|
|
2697
2713
|
});
|
|
2698
|
-
}),
|
|
2699
|
-
const
|
|
2700
|
-
let
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
m
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
if ((ae = y == null ? void 0 : y.total) != null && ae.enabled && y.total.label && (ne = `${m}|${y.total.label}`), D) {
|
|
2709
|
-
const ve = m;
|
|
2710
|
-
$.has(ve) || $.set(ve, ne);
|
|
2711
|
-
}
|
|
2712
|
-
const le = ce.has(C) && ce.get(C).get(m) || !0, X = C < v.length ? (H.get(C).get(m) || 0) > 1 : !1;
|
|
2713
|
-
(P === Ce || P === null || P === void 0) && K.emptyReplace && (P = K.emptyReplace), R.push({
|
|
2714
|
-
content: P,
|
|
2714
|
+
}), N.forEach(([y, g]) => {
|
|
2715
|
+
const v = g[0], C = [];
|
|
2716
|
+
let p = "";
|
|
2717
|
+
m.forEach((O, z) => {
|
|
2718
|
+
let V = ve(v, O);
|
|
2719
|
+
const k = z + 1, B = k < m.length, E = a[z];
|
|
2720
|
+
p += `|${V}`;
|
|
2721
|
+
const le = ce.has(k) && ce.get(k).get(p) || !0, q = k < m.length ? (W.get(k).get(p) || 0) > 1 : !1;
|
|
2722
|
+
(V === me || V === null || V === void 0) && E.emptyReplace && (V = E.emptyReplace), C.push({
|
|
2723
|
+
content: V,
|
|
2715
2724
|
rowspan: 1,
|
|
2716
2725
|
colspan: 1,
|
|
2717
|
-
data:
|
|
2718
|
-
expandable:
|
|
2726
|
+
data: v,
|
|
2727
|
+
expandable: B && q,
|
|
2719
2728
|
expanded: le,
|
|
2720
|
-
level:
|
|
2721
|
-
rowKey:
|
|
2722
|
-
onClick:
|
|
2729
|
+
level: k,
|
|
2730
|
+
rowKey: p,
|
|
2731
|
+
onClick: B && q ? (oe) => j(oe.level, oe.rowKey) : void 0
|
|
2723
2732
|
});
|
|
2724
|
-
})
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2733
|
+
});
|
|
2734
|
+
const x = p;
|
|
2735
|
+
let b = "";
|
|
2736
|
+
m.forEach((O, z) => {
|
|
2737
|
+
const V = ve(v, O), B = z + 1 < m.length;
|
|
2738
|
+
b += `|${V}`, B && !$.has(b) && $.set(b, x);
|
|
2739
|
+
}), L.forEach(([O, z]) => {
|
|
2740
|
+
const V = {};
|
|
2741
|
+
u.forEach((k) => {
|
|
2742
|
+
if (k.calculateType === "expr")
|
|
2728
2743
|
return;
|
|
2729
|
-
const
|
|
2730
|
-
let
|
|
2731
|
-
|
|
2732
|
-
}),
|
|
2733
|
-
if (
|
|
2734
|
-
const
|
|
2735
|
-
|
|
2744
|
+
const B = k.field, E = k.calculateType || "sum", le = `${y}||${O}`, oe = (c.get(le) || []).map((we) => ve(we, B));
|
|
2745
|
+
let xe = 0;
|
|
2746
|
+
qe[E] && (xe = qe[E](oe)), V[k.field] = xe;
|
|
2747
|
+
}), u.forEach((k) => {
|
|
2748
|
+
if (k.calculateType === "expr" && k.expression) {
|
|
2749
|
+
const B = Jt(k.expression, V);
|
|
2750
|
+
V[k.field] = B !== null ? B : 0;
|
|
2736
2751
|
}
|
|
2737
|
-
}),
|
|
2738
|
-
let
|
|
2739
|
-
(
|
|
2740
|
-
content:
|
|
2752
|
+
}), w.forEach((k) => {
|
|
2753
|
+
let B = V[k.field];
|
|
2754
|
+
(B === me || B === null || B === void 0 || typeof B == "number" && isNaN(B)) && k.emptyReplace && (B = k.emptyReplace), C.push({
|
|
2755
|
+
content: B,
|
|
2741
2756
|
rowspan: 1,
|
|
2742
2757
|
colspan: 1,
|
|
2743
|
-
data:
|
|
2758
|
+
data: v
|
|
2744
2759
|
});
|
|
2745
2760
|
});
|
|
2746
|
-
}),
|
|
2761
|
+
}), i != null && i.showLine && C.unshift({
|
|
2762
|
+
content: 1,
|
|
2763
|
+
// Temporary value, will be updated
|
|
2764
|
+
rowspan: 1,
|
|
2765
|
+
// Will be updated based on first dimension
|
|
2766
|
+
colspan: 1,
|
|
2767
|
+
data: v
|
|
2768
|
+
}), H.push({ cells: C, rowKey: x });
|
|
2747
2769
|
});
|
|
2748
|
-
const
|
|
2749
|
-
const
|
|
2750
|
-
for (let
|
|
2751
|
-
if (ce.has(
|
|
2752
|
-
const
|
|
2753
|
-
if (
|
|
2754
|
-
const
|
|
2755
|
-
if (
|
|
2770
|
+
const te = (y) => {
|
|
2771
|
+
const v = y.split("|").filter(Boolean).length, C = y.replace(/\|+$/, "");
|
|
2772
|
+
for (let p = 1; p < v; p++)
|
|
2773
|
+
if (ce.has(p)) {
|
|
2774
|
+
const x = ce.get(p), b = y.split("|").slice(0, p + 1).join("|");
|
|
2775
|
+
if (x.has(b) && !x.get(b)) {
|
|
2776
|
+
const z = b, V = $.get(z), k = V == null ? void 0 : V.replace(/\|+$/, "");
|
|
2777
|
+
if (C !== k)
|
|
2756
2778
|
return !1;
|
|
2757
2779
|
}
|
|
2758
2780
|
}
|
|
2759
2781
|
return !0;
|
|
2760
|
-
}, de = (
|
|
2761
|
-
var
|
|
2762
|
-
if (!
|
|
2763
|
-
return
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2782
|
+
}, de = (y) => {
|
|
2783
|
+
var v, C;
|
|
2784
|
+
if (!y || y.length === 0)
|
|
2785
|
+
return y;
|
|
2786
|
+
const g = i != null && i.showLine ? 1 : 0;
|
|
2787
|
+
for (let p = 0; p < a.length; p++) {
|
|
2788
|
+
const x = p + g;
|
|
2789
|
+
let b = y[0][x].content, O = 0, z = a[p], V = (v = z.total) == null ? void 0 : v.enabled, k = ((C = z.total) == null ? void 0 : C.label) || "";
|
|
2790
|
+
for (let B = 1; B < y.length; B++) {
|
|
2791
|
+
const E = y[B][x];
|
|
2792
|
+
let le = !0;
|
|
2793
|
+
if (p > 0)
|
|
2794
|
+
for (let q = 0; q < p; q++) {
|
|
2795
|
+
const oe = y[O][q + g], xe = y[B][q + g];
|
|
2796
|
+
if (oe.content !== xe.content) {
|
|
2797
|
+
le = !1;
|
|
2774
2798
|
break;
|
|
2775
2799
|
}
|
|
2776
2800
|
}
|
|
2777
|
-
|
|
2801
|
+
E.content !== me && (!V || E.content !== k) && E.content === b && le ? (E.rowspan = 0, y[O][x].rowspan++) : (b = E.content, O = B);
|
|
2778
2802
|
}
|
|
2779
2803
|
}
|
|
2780
|
-
return
|
|
2781
|
-
}, be = (
|
|
2782
|
-
const
|
|
2783
|
-
const
|
|
2784
|
-
if (
|
|
2785
|
-
const
|
|
2786
|
-
|
|
2804
|
+
return y;
|
|
2805
|
+
}, be = (y) => {
|
|
2806
|
+
const g = y.filter((p) => te(p.rowKey)), v = g.map((p) => p.cells.map((x) => {
|
|
2807
|
+
const b = { ...x };
|
|
2808
|
+
if (b.expandable && b.level && b.rowKey && ce.has(b.level)) {
|
|
2809
|
+
const O = ce.get(b.level);
|
|
2810
|
+
O.has(b.rowKey) && (b.expanded = O.get(b.rowKey));
|
|
2787
2811
|
}
|
|
2788
|
-
return
|
|
2812
|
+
return b;
|
|
2789
2813
|
}));
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2814
|
+
if (de(v), i != null && i.showLine && a.length > 0) {
|
|
2815
|
+
let p = 1;
|
|
2816
|
+
for (let x = 0; x < v.length; x++) {
|
|
2817
|
+
const b = v[x][0], O = v[x][1];
|
|
2818
|
+
O.rowspan > 0 ? O.content === Ge ? (b.rowspan = O.rowspan, b.content = me) : (b.rowspan = O.rowspan, b.content = p++) : (b.rowspan = 0, b.content = me);
|
|
2819
|
+
}
|
|
2820
|
+
}
|
|
2821
|
+
return g.map((p, x) => ({
|
|
2822
|
+
rowKey: p.rowKey,
|
|
2823
|
+
cells: v[x]
|
|
2793
2824
|
}));
|
|
2794
2825
|
};
|
|
2795
|
-
|
|
2796
|
-
const Se =
|
|
2797
|
-
let
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2826
|
+
pt.clear();
|
|
2827
|
+
const Se = H.map((y) => y.cells), ue = F(Se).map((y, g) => {
|
|
2828
|
+
let v = "";
|
|
2829
|
+
const C = i != null && i.showLine ? 1 : 0;
|
|
2830
|
+
return y.forEach((p, x) => {
|
|
2831
|
+
const b = x - C;
|
|
2832
|
+
b >= 0 && b < m.length && p.rowKey && (v = p.rowKey);
|
|
2833
|
+
}), { cells: y, rowKey: v };
|
|
2834
|
+
});
|
|
2835
|
+
if (i != null && i.showLine && a.length > 0) {
|
|
2836
|
+
de(ue.map((g) => g.cells));
|
|
2837
|
+
let y = 1;
|
|
2838
|
+
for (let g = 0; g < ue.length; g++) {
|
|
2839
|
+
const v = ue[g].cells[0], C = ue[g].cells[1];
|
|
2840
|
+
C.rowspan > 0 ? C.content === Ge ? (v.rowspan = C.rowspan, v.content = me) : (v.rowspan = C.rowspan, v.content = y++) : (v.rowspan = 0, v.content = me);
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
const Pe = (() => {
|
|
2844
|
+
const y = [];
|
|
2845
|
+
if (i != null && i.showLine && y.unshift({
|
|
2846
|
+
field: "__row_index__",
|
|
2847
|
+
title: i.showLineTitle || "序号",
|
|
2848
|
+
width: i.lineWidth || "70px",
|
|
2849
|
+
key: "__row_index__",
|
|
2850
|
+
type: "index"
|
|
2851
|
+
}), a.forEach((g) => {
|
|
2852
|
+
y.push({
|
|
2853
|
+
...g,
|
|
2854
|
+
width: g.width || 100,
|
|
2807
2855
|
fixed: "left",
|
|
2808
|
-
key:
|
|
2856
|
+
key: g.field
|
|
2809
2857
|
});
|
|
2810
|
-
}),
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
...
|
|
2814
|
-
width:
|
|
2815
|
-
key:
|
|
2858
|
+
}), h.length === 0)
|
|
2859
|
+
w.forEach((g) => {
|
|
2860
|
+
y.push({
|
|
2861
|
+
...g,
|
|
2862
|
+
width: g.width || 100,
|
|
2863
|
+
key: g.field
|
|
2816
2864
|
});
|
|
2817
2865
|
});
|
|
2818
2866
|
else {
|
|
2819
|
-
const
|
|
2820
|
-
|
|
2821
|
-
const
|
|
2822
|
-
let
|
|
2823
|
-
|
|
2824
|
-
var
|
|
2825
|
-
let
|
|
2826
|
-
if (!
|
|
2827
|
-
const
|
|
2828
|
-
field:
|
|
2829
|
-
title:
|
|
2867
|
+
const g = [];
|
|
2868
|
+
L.forEach(([v, C]) => {
|
|
2869
|
+
const p = v.split("|").filter((b) => b !== "");
|
|
2870
|
+
let x = g;
|
|
2871
|
+
p.forEach((b, O) => {
|
|
2872
|
+
var V;
|
|
2873
|
+
let z = x.find((k) => k.title === b);
|
|
2874
|
+
if (!z) {
|
|
2875
|
+
const B = `${((V = h[O]) == null ? void 0 : V.field) || "unknown"}__${b}`, E = {
|
|
2876
|
+
field: B,
|
|
2877
|
+
title: b,
|
|
2830
2878
|
children: [],
|
|
2831
|
-
key:
|
|
2879
|
+
key: B
|
|
2832
2880
|
};
|
|
2833
|
-
|
|
2881
|
+
x.push(E), z = E;
|
|
2834
2882
|
}
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
...
|
|
2838
|
-
field: `${
|
|
2839
|
-
title:
|
|
2840
|
-
width:
|
|
2841
|
-
key: `${
|
|
2883
|
+
O === p.length - 1 ? w.forEach((k) => {
|
|
2884
|
+
z.children || (z.children = []), z.children.push({
|
|
2885
|
+
...k,
|
|
2886
|
+
field: `${v}||${k.field}`,
|
|
2887
|
+
title: k.title || k.field,
|
|
2888
|
+
width: k.width || 100,
|
|
2889
|
+
key: `${v}||${k.field}`
|
|
2842
2890
|
});
|
|
2843
|
-
}) : (
|
|
2891
|
+
}) : (z.children || (z.children = []), x = z.children);
|
|
2844
2892
|
});
|
|
2845
|
-
}),
|
|
2893
|
+
}), y.push(...g);
|
|
2846
2894
|
}
|
|
2847
|
-
return
|
|
2895
|
+
return y;
|
|
2848
2896
|
})();
|
|
2849
2897
|
return {
|
|
2850
|
-
list:
|
|
2898
|
+
list: ue,
|
|
2851
2899
|
dataExpandFilter: be,
|
|
2852
|
-
tableColumns:
|
|
2900
|
+
tableColumns: Pe
|
|
2853
2901
|
};
|
|
2854
2902
|
}, Zn = (e) => {
|
|
2855
|
-
const { data: t, fields: r } = e, { rows:
|
|
2856
|
-
if (!
|
|
2857
|
-
return { list: [], dataExpandFilter: (
|
|
2903
|
+
const { data: t, fields: n, config: r } = e, { rows: i, columns: s, values: l } = n;
|
|
2904
|
+
if (!l || l.length === 0)
|
|
2905
|
+
return { list: [], dataExpandFilter: (d) => d };
|
|
2858
2906
|
if (!t || t.length === 0)
|
|
2859
|
-
return { list: [], dataExpandFilter: (
|
|
2860
|
-
if (
|
|
2861
|
-
const
|
|
2862
|
-
...
|
|
2863
|
-
width:
|
|
2864
|
-
key:
|
|
2907
|
+
return { list: [], dataExpandFilter: (d) => d };
|
|
2908
|
+
if (i.length === 0 && s.length === 0) {
|
|
2909
|
+
const d = l.filter((u) => !u.hidden), a = d.map((u) => ({
|
|
2910
|
+
...u,
|
|
2911
|
+
width: u.width || 100,
|
|
2912
|
+
key: u.field
|
|
2865
2913
|
}));
|
|
2866
|
-
return {
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2914
|
+
return r != null && r.showLine && a.unshift({
|
|
2915
|
+
field: "__row_index__",
|
|
2916
|
+
title: r.showLineTitle || "序号",
|
|
2917
|
+
width: r.lineWidth || "70px",
|
|
2918
|
+
key: "__row_index__"
|
|
2919
|
+
}), {
|
|
2920
|
+
list: t.map((u, w) => {
|
|
2921
|
+
const m = [];
|
|
2922
|
+
return r != null && r.showLine && m.push({
|
|
2923
|
+
content: w + 1,
|
|
2924
|
+
rowspan: 1,
|
|
2925
|
+
colspan: 1
|
|
2926
|
+
}), d.forEach((A) => {
|
|
2927
|
+
const M = u[A.field] ?? me;
|
|
2928
|
+
m.push({
|
|
2929
|
+
content: M,
|
|
2930
|
+
rowspan: 1,
|
|
2931
|
+
colspan: 1,
|
|
2932
|
+
style: A.style,
|
|
2933
|
+
data: u
|
|
2934
|
+
// Pass original record for detail view cells
|
|
2935
|
+
});
|
|
2936
|
+
}), { cells: m, rowKey: w.toString() };
|
|
2937
|
+
}),
|
|
2938
|
+
dataExpandFilter: (u) => u,
|
|
2939
|
+
tableColumns: a
|
|
2877
2940
|
};
|
|
2878
2941
|
}
|
|
2879
2942
|
return Xn(e);
|
|
2880
2943
|
}, to = Xt((e) => {
|
|
2881
|
-
const { scroll: t, data:
|
|
2882
|
-
if (
|
|
2883
|
-
let
|
|
2884
|
-
if (!
|
|
2944
|
+
const { scroll: t, data: n, meta: r, sortParams: i, fields: s, config: l } = e, [d, a] = $e(0), [h, u] = $e([]), [w, m] = $e([]), A = Le(null), M = ge(() => {
|
|
2945
|
+
if (A.current) {
|
|
2946
|
+
let T = A.current;
|
|
2947
|
+
if (!T || !T.list || !T.dataExpandFilter)
|
|
2885
2948
|
return;
|
|
2886
|
-
|
|
2949
|
+
u(T.dataExpandFilter(T.list));
|
|
2887
2950
|
}
|
|
2888
2951
|
}, []);
|
|
2889
|
-
|
|
2952
|
+
tt(() => {
|
|
2890
2953
|
let F = Zn({
|
|
2891
|
-
data:
|
|
2892
|
-
meta:
|
|
2954
|
+
data: n,
|
|
2955
|
+
meta: r,
|
|
2893
2956
|
sortParams: i,
|
|
2894
|
-
fields: s
|
|
2957
|
+
fields: s,
|
|
2958
|
+
config: l
|
|
2895
2959
|
});
|
|
2896
|
-
|
|
2897
|
-
}, [
|
|
2898
|
-
const
|
|
2899
|
-
let
|
|
2900
|
-
const
|
|
2901
|
-
|
|
2902
|
-
(!("type" in
|
|
2960
|
+
A.current = F, F.tableColumns && m(F.tableColumns), M();
|
|
2961
|
+
}, [n, r, i, s, M, l]);
|
|
2962
|
+
const R = ge((T) => T ? typeof T == "string" ? parseInt(T.replace("px", "")) || 0 : typeof T == "number" ? T : 0 : 0, []), { baseWidth: c, colCount: P } = ye(() => {
|
|
2963
|
+
let T = 0, F = 0;
|
|
2964
|
+
const N = (H) => {
|
|
2965
|
+
H.forEach((W) => {
|
|
2966
|
+
(!("type" in W) || W.type !== "group") && (T += R(W.width), F += 1), W != null && W.children && W.children.length > 0 && N(W.children);
|
|
2903
2967
|
});
|
|
2904
2968
|
};
|
|
2905
|
-
return
|
|
2906
|
-
}, [
|
|
2907
|
-
const
|
|
2908
|
-
let
|
|
2909
|
-
|
|
2910
|
-
const
|
|
2911
|
-
return
|
|
2969
|
+
return N(w), { baseWidth: T, colCount: F };
|
|
2970
|
+
}, [w, R]), S = ye(() => {
|
|
2971
|
+
const T = (F) => F.map((N) => {
|
|
2972
|
+
let H = 0;
|
|
2973
|
+
c < d && P > 0 && (H = Math.floor((d - c) / P));
|
|
2974
|
+
const te = (N.width ? R(N.width) : Mn) + H;
|
|
2975
|
+
return N.colSpan && N.colSpan > 1 ? N.width = te * N.colSpan : N.width = te, N.fixed && (N.fixed = !1), N != null && N.children && N.children.length > 0 && (N.children = T(N.children)), N;
|
|
2912
2976
|
});
|
|
2913
|
-
return
|
|
2914
|
-
}, [
|
|
2915
|
-
let
|
|
2916
|
-
const F = (
|
|
2917
|
-
|
|
2918
|
-
(!("type" in
|
|
2977
|
+
return T(_t(w));
|
|
2978
|
+
}, [w, c, d, P, R]), Z = ye(() => {
|
|
2979
|
+
let T = 0;
|
|
2980
|
+
const F = (N) => {
|
|
2981
|
+
N.forEach((H) => {
|
|
2982
|
+
(!("type" in H) || H.type !== "group") && (T += R(H.width)), H != null && H.children && H.children.length > 0 && F(H.children);
|
|
2919
2983
|
});
|
|
2920
2984
|
};
|
|
2921
|
-
return F(
|
|
2922
|
-
}, [
|
|
2923
|
-
|
|
2924
|
-
|
|
2985
|
+
return F(S), T;
|
|
2986
|
+
}, [S, R]), I = Le(null), G = Le(null), L = Le(!1), $ = ge(({ scrollLeft: T }) => {
|
|
2987
|
+
L.current || (L.current = !0, I.current && (I.current.scrollLeft = T), requestAnimationFrame(() => {
|
|
2988
|
+
L.current = !1;
|
|
2925
2989
|
}));
|
|
2926
|
-
}, []),
|
|
2927
|
-
if (
|
|
2990
|
+
}, []), j = ge((T) => {
|
|
2991
|
+
if (L.current)
|
|
2928
2992
|
return;
|
|
2929
|
-
|
|
2930
|
-
const F =
|
|
2931
|
-
|
|
2932
|
-
|
|
2993
|
+
L.current = !0;
|
|
2994
|
+
const F = T.currentTarget.scrollLeft;
|
|
2995
|
+
G.current && (G.current.scrollLeft = F), requestAnimationFrame(() => {
|
|
2996
|
+
L.current = !1;
|
|
2933
2997
|
});
|
|
2934
2998
|
}, []);
|
|
2935
|
-
return /* @__PURE__ */
|
|
2936
|
-
|
|
2999
|
+
return /* @__PURE__ */ ee.jsx(
|
|
3000
|
+
Ct,
|
|
2937
3001
|
{
|
|
2938
|
-
onResize: ({ width:
|
|
2939
|
-
|
|
3002
|
+
onResize: ({ width: T }) => {
|
|
3003
|
+
T && T !== d && a(T);
|
|
2940
3004
|
},
|
|
2941
|
-
children: /* @__PURE__ */
|
|
3005
|
+
children: /* @__PURE__ */ ee.jsxs(
|
|
2942
3006
|
"div",
|
|
2943
3007
|
{
|
|
2944
|
-
className:
|
|
3008
|
+
className: St("virtual-table", e.className),
|
|
2945
3009
|
style: { width: "100%", ...e.style },
|
|
2946
3010
|
children: [
|
|
2947
|
-
/* @__PURE__ */
|
|
3011
|
+
/* @__PURE__ */ ee.jsx(
|
|
2948
3012
|
An,
|
|
2949
3013
|
{
|
|
2950
|
-
ref:
|
|
2951
|
-
columns:
|
|
2952
|
-
width:
|
|
2953
|
-
onScroll:
|
|
2954
|
-
meta:
|
|
3014
|
+
ref: I,
|
|
3015
|
+
columns: S,
|
|
3016
|
+
width: d - 8,
|
|
3017
|
+
onScroll: j,
|
|
3018
|
+
meta: r
|
|
2955
3019
|
}
|
|
2956
3020
|
),
|
|
2957
|
-
/* @__PURE__ */
|
|
3021
|
+
/* @__PURE__ */ ee.jsx("div", { className: "virtual-table-body", style: { width: "100%" }, children: /* @__PURE__ */ ee.jsx(
|
|
2958
3022
|
Jn,
|
|
2959
3023
|
{
|
|
2960
|
-
data:
|
|
3024
|
+
data: h,
|
|
2961
3025
|
info: {
|
|
2962
|
-
ref:
|
|
3026
|
+
ref: G,
|
|
2963
3027
|
onScroll: $
|
|
2964
3028
|
},
|
|
2965
3029
|
scroll: t,
|
|
2966
|
-
columns:
|
|
2967
|
-
tableWidth:
|
|
2968
|
-
gridWidth:
|
|
2969
|
-
handleExpand:
|
|
2970
|
-
meta:
|
|
3030
|
+
columns: S,
|
|
3031
|
+
tableWidth: d,
|
|
3032
|
+
gridWidth: Z,
|
|
3033
|
+
handleExpand: M,
|
|
3034
|
+
meta: r
|
|
2971
3035
|
}
|
|
2972
3036
|
) })
|
|
2973
3037
|
]
|