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