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