@yester/virtual-table 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as re from "react";
2
- import Ye, { version as Tr, isValidElement as Pr, forwardRef as jr, useMemo as we, memo as Ut, useState as Ie, useImperativeHandle as Ar, useEffect as Ze, createElement as Mt, useLayoutEffect as Et, useRef as ze, useCallback as ge } from "react";
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;
@@ -21,14 +21,14 @@ function zr() {
21
21
  It = 1;
22
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, b = {}, p = null, j = null;
25
- f !== void 0 && (p = "" + f), c.key !== void 0 && (p = "" + c.key), c.ref !== void 0 && (j = c.ref);
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) && (b[h] = c[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
- b[h] === void 0 && (b[h] = c[h]);
31
- return { $$typeof: t, type: l, key: p, ref: j, props: b, _owner: i.current };
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,46 +45,46 @@ 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"), 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"), b = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), T = Symbol.iterator, w = "@@iterator";
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
49
  function d(o) {
50
50
  if (o === null || typeof o != "object")
51
51
  return null;
52
- var u = T && o[T] || o[w];
52
+ var u = P && o[P] || o[_];
53
53
  return typeof u == "function" ? u : null;
54
54
  }
55
- var F = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
- function k(o) {
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, m = new Array(u > 1 ? u - 1 : 0), $ = 1; $ < u; $++)
59
- m[$ - 1] = arguments[$];
60
- J("error", o, m);
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(o, u, m) {
63
+ function J(o, u, g) {
64
64
  {
65
- var $ = F.ReactDebugCurrentFrame, K = $.getStackAddendum();
66
- K !== "" && (u += "%s", m = m.concat([K]));
67
- var X = m.map(function(V) {
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
70
  X.unshift("Warning: " + u), Function.prototype.apply.call(console[o], console, X);
71
71
  }
72
72
  }
73
- var A = !1, P = !1, D = !1, z = !1, I = !1, B;
73
+ var j = !1, F = !1, D = !1, z = !1, p = !1, B;
74
74
  B = Symbol.for("react.module.reference");
75
75
  function M(o) {
76
- return !!(typeof o == "string" || typeof o == "function" || o === n || o === s || I || o === i || o === f || o === h || z || o === j || A || P || D || typeof o == "object" && o !== null && (o.$$typeof === p || o.$$typeof === b || o.$$typeof === a || o.$$typeof === l || o.$$typeof === c || // This needs to include all possible module reference object
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(o, u, m) {
83
- var $ = o.displayName;
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 !== "" ? m + "(" + K + ")" : m;
87
+ return K !== "" ? g + "(" + K + ")" : g;
88
88
  }
89
89
  function Y(o) {
90
90
  return o.displayName || "Context";
@@ -92,7 +92,7 @@ function Ir() {
92
92
  function q(o) {
93
93
  if (o == null)
94
94
  return null;
95
- if (typeof o.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
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
96
  return o.displayName || o.name || null;
97
97
  if (typeof o == "string")
98
98
  return o;
@@ -116,14 +116,14 @@ function Ir() {
116
116
  var u = o;
117
117
  return Y(u) + ".Consumer";
118
118
  case a:
119
- var m = o;
120
- return Y(m._context) + ".Provider";
119
+ var g = o;
120
+ return Y(g._context) + ".Provider";
121
121
  case c:
122
122
  return W(o, o.render, "ForwardRef");
123
- case b:
124
- var $ = o.displayName || null;
125
- return $ !== null ? $ : q(o.type) || "Memo";
126
- case p: {
123
+ case E:
124
+ var L = o.displayName || null;
125
+ return L !== null ? L : q(o.type) || "Memo";
126
+ case v: {
127
127
  var K = o, X = K._payload, V = K._init;
128
128
  try {
129
129
  return q(V(X));
@@ -134,18 +134,18 @@ function Ir() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var te = Object.assign, he = 0, ye, Te, _e, be, Se, g, C;
138
- function E() {
137
+ var te = Object.assign, he = 0, be, Te, _e, Ee, Se, y, C;
138
+ function w() {
139
139
  }
140
- E.__reactDisabledLog = !0;
141
- function y() {
140
+ w.__reactDisabledLog = !0;
141
+ function b() {
142
142
  {
143
143
  if (he === 0) {
144
- ye = console.log, Te = console.info, _e = console.warn, be = console.error, Se = console.group, g = console.groupCollapsed, C = console.groupEnd;
144
+ be = console.log, Te = console.info, _e = console.warn, Ee = console.error, Se = console.group, y = console.groupCollapsed, C = console.groupEnd;
145
145
  var o = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
148
- value: E,
148
+ value: w,
149
149
  writable: !0
150
150
  };
151
151
  Object.defineProperties(console, {
@@ -161,7 +161,7 @@ function Ir() {
161
161
  he++;
162
162
  }
163
163
  }
164
- function v() {
164
+ function m() {
165
165
  {
166
166
  if (he--, he === 0) {
167
167
  var o = {
@@ -171,7 +171,7 @@ function Ir() {
171
171
  };
172
172
  Object.defineProperties(console, {
173
173
  log: te({}, o, {
174
- value: ye
174
+ value: be
175
175
  }),
176
176
  info: te({}, o, {
177
177
  value: Te
@@ -180,55 +180,55 @@ function Ir() {
180
180
  value: _e
181
181
  }),
182
182
  error: te({}, o, {
183
- value: be
183
+ value: Ee
184
184
  }),
185
185
  group: te({}, o, {
186
186
  value: Se
187
187
  }),
188
188
  groupCollapsed: te({}, o, {
189
- value: g
189
+ value: y
190
190
  }),
191
191
  groupEnd: te({}, o, {
192
192
  value: C
193
193
  })
194
194
  });
195
195
  }
196
- he < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
+ he < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
197
  }
198
198
  }
199
- var x = F.ReactCurrentDispatcher, _;
200
- function R(o, u, m) {
199
+ var O = k.ReactCurrentDispatcher, R;
200
+ function S(o, u, g) {
201
201
  {
202
- if (_ === void 0)
202
+ if (R === void 0)
203
203
  try {
204
204
  throw Error();
205
205
  } catch (K) {
206
- var $ = K.stack.trim().match(/\n( *(at )?)/);
207
- _ = $ && $[1] || "";
206
+ var L = K.stack.trim().match(/\n( *(at )?)/);
207
+ R = L && L[1] || "";
208
208
  }
209
209
  return `
210
- ` + _ + o;
210
+ ` + R + o;
211
211
  }
212
212
  }
213
- var S = !1, L;
213
+ var x = !1, I;
214
214
  {
215
215
  var H = typeof WeakMap == "function" ? WeakMap : Map;
216
- L = new H();
216
+ I = new H();
217
217
  }
218
218
  function ae(o, u) {
219
- if (!o || S)
219
+ if (!o || x)
220
220
  return "";
221
221
  {
222
- var m = L.get(o);
223
- if (m !== void 0)
224
- return m;
222
+ var g = I.get(o);
223
+ if (g !== void 0)
224
+ return g;
225
225
  }
226
- var $;
227
- S = !0;
226
+ var L;
227
+ x = !0;
228
228
  var K = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
230
  var X;
231
- X = x.current, x.current = null, y();
231
+ X = O.current, O.current = null, b();
232
232
  try {
233
233
  if (u) {
234
234
  var V = function() {
@@ -242,14 +242,14 @@ function Ir() {
242
242
  try {
243
243
  Reflect.construct(V, []);
244
244
  } catch (ve) {
245
- $ = ve;
245
+ L = ve;
246
246
  }
247
247
  Reflect.construct(o, [], V);
248
248
  } else {
249
249
  try {
250
250
  V.call();
251
251
  } catch (ve) {
252
- $ = ve;
252
+ L = ve;
253
253
  }
254
254
  o.call(V.prototype);
255
255
  }
@@ -257,14 +257,14 @@ function Ir() {
257
257
  try {
258
258
  throw Error();
259
259
  } catch (ve) {
260
- $ = ve;
260
+ L = ve;
261
261
  }
262
262
  o();
263
263
  }
264
264
  } catch (ve) {
265
- if (ve && $ && typeof ve.stack == "string") {
265
+ if (ve && L && typeof ve.stack == "string") {
266
266
  for (var N = ve.stack.split(`
267
- `), de = $.stack.split(`
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,65 +272,65 @@ 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 Ee = `
275
+ var we = `
276
276
  ` + N[ne].replace(" at new ", " at ");
277
- return o.displayName && Ee.includes("<anonymous>") && (Ee = Ee.replace("<anonymous>", o.displayName)), typeof o == "function" && L.set(o, Ee), Ee;
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
- S = !1, x.current = X, v(), Error.prepareStackTrace = K;
284
+ x = !1, O.current = X, m(), Error.prepareStackTrace = K;
285
285
  }
286
- var ke = o ? o.displayName || o.name : "", Me = ke ? R(ke) : "";
287
- return typeof o == "function" && L.set(o, Me), Me;
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(o, u, m) {
289
+ function le(o, u, g) {
290
290
  return ae(o, !1);
291
291
  }
292
- function O(o) {
292
+ function T(o) {
293
293
  var u = o.prototype;
294
294
  return !!(u && u.isReactComponent);
295
295
  }
296
- function Q(o, u, m) {
296
+ function Q(o, u, g) {
297
297
  if (o == null)
298
298
  return "";
299
299
  if (typeof o == "function")
300
- return ae(o, O(o));
300
+ return ae(o, T(o));
301
301
  if (typeof o == "string")
302
- return R(o);
302
+ return S(o);
303
303
  switch (o) {
304
304
  case f:
305
- return R("Suspense");
305
+ return S("Suspense");
306
306
  case h:
307
- return R("SuspenseList");
307
+ return S("SuspenseList");
308
308
  }
309
309
  if (typeof o == "object")
310
310
  switch (o.$$typeof) {
311
311
  case c:
312
312
  return le(o.render);
313
- case b:
314
- return Q(o.type, u, m);
315
- case p: {
316
- var $ = o, K = $._payload, X = $._init;
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, m);
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 = F.ReactDebugCurrentFrame;
325
+ var ee = Object.prototype.hasOwnProperty, fe = {}, Le = k.ReactDebugCurrentFrame;
326
326
  function pe(o) {
327
327
  if (o) {
328
- var u = o._owner, m = Q(o.type, o._source, u ? u.type : null);
329
- Le.setExtraStackFrame(m);
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 oe(o, u, m, $, K) {
333
+ function oe(o, u, g, L, K) {
334
334
  {
335
335
  var X = Function.call.bind(ee);
336
336
  for (var V in o)
@@ -338,14 +338,14 @@ function Ir() {
338
338
  var N = void 0;
339
339
  try {
340
340
  if (typeof o[V] != "function") {
341
- var de = Error(($ || "React class") + ": " + m + " type `" + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[V] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
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 = o[V](u, V, $, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
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), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", m, V, typeof N), pe(null)), N instanceof Error && !(N.message in fe) && (fe[N.message] = !0, pe(K), k("Failed %s type: %s", m, N.message), pe(null));
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
  }
@@ -355,8 +355,8 @@ function Ir() {
355
355
  }
356
356
  function je(o) {
357
357
  {
358
- var u = typeof Symbol == "function" && Symbol.toStringTag, m = u && o[Symbol.toStringTag] || o.constructor.name || "Object";
359
- return m;
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
362
  function Ke(o) {
@@ -371,9 +371,9 @@ function Ir() {
371
371
  }
372
372
  function Ne(o) {
373
373
  if (Ke(o))
374
- return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", je(o)), Ae(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 Ce = F.ReactCurrentOwner, ur = {
376
+ var xe = k.ReactCurrentOwner, ur = {
377
377
  key: !0,
378
378
  ref: !0,
379
379
  __self: !0,
@@ -397,41 +397,41 @@ function Ir() {
397
397
  return o.key !== void 0;
398
398
  }
399
399
  function hr(o, u) {
400
- if (typeof o.ref == "string" && Ce.current && u && Ce.current.stateNode !== u) {
401
- var m = q(Ce.current.type);
402
- et[m] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', q(Ce.current.type), o.ref), et[m] = !0);
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
405
  function pr(o, u) {
406
406
  {
407
- var m = function() {
408
- Rt || (Rt = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
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
- m.isReactWarning = !0, Object.defineProperty(o, "key", {
411
- get: m,
410
+ g.isReactWarning = !0, Object.defineProperty(o, "key", {
411
+ get: g,
412
412
  configurable: !0
413
413
  });
414
414
  }
415
415
  }
416
416
  function vr(o, u) {
417
417
  {
418
- var m = function() {
419
- St || (St = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
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
- m.isReactWarning = !0, Object.defineProperty(o, "ref", {
422
- get: m,
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(o, u, m, $, K, X, V) {
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
432
  type: o,
433
433
  key: u,
434
- ref: m,
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,10 +453,10 @@ function Ir() {
453
453
  value: K
454
454
  }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
455
455
  };
456
- function gr(o, u, m, $, K) {
456
+ function gr(o, u, g, L, K) {
457
457
  {
458
458
  var X, V = {}, N = null, de = null;
459
- m !== void 0 && (Ne(m), N = "" + m), dr(u) && (Ne(u.key), N = "" + u.key), fr(u) && (de = u.ref, hr(u, K));
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
462
  if (o && o.defaultProps) {
@@ -468,23 +468,23 @@ function Ir() {
468
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(o, N, de, K, $, Ce.current, V);
471
+ return mr(o, N, de, K, L, xe.current, V);
472
472
  }
473
473
  }
474
- var tt = F.ReactCurrentOwner, Ct = F.ReactDebugCurrentFrame;
474
+ var tt = k.ReactCurrentOwner, xt = k.ReactDebugCurrentFrame;
475
475
  function $e(o) {
476
476
  if (o) {
477
- var u = o._owner, m = Q(o.type, o._source, u ? u.type : null);
478
- Ct.setExtraStackFrame(m);
477
+ var u = o._owner, g = Q(o.type, o._source, u ? u.type : null);
478
+ xt.setExtraStackFrame(g);
479
479
  } else
480
- Ct.setExtraStackFrame(null);
480
+ xt.setExtraStackFrame(null);
481
481
  }
482
482
  var rt;
483
483
  rt = !1;
484
484
  function nt(o) {
485
485
  return typeof o == "object" && o !== null && o.$$typeof === t;
486
486
  }
487
- function xt() {
487
+ function Ct() {
488
488
  {
489
489
  if (tt.current) {
490
490
  var o = q(tt.current.type);
@@ -499,10 +499,10 @@ Check the render method of \`` + o + "`.";
499
499
  function yr(o) {
500
500
  {
501
501
  if (o !== void 0) {
502
- var u = o.fileName.replace(/^.*[\\\/]/, ""), m = o.lineNumber;
502
+ var u = o.fileName.replace(/^.*[\\\/]/, ""), g = o.lineNumber;
503
503
  return `
504
504
 
505
- Check your code at ` + u + ":" + m + ".";
505
+ Check your code at ` + u + ":" + g + ".";
506
506
  }
507
507
  return "";
508
508
  }
@@ -510,12 +510,12 @@ Check your code at ` + u + ":" + m + ".";
510
510
  var Ot = {};
511
511
  function br(o) {
512
512
  {
513
- var u = xt();
513
+ var u = Ct();
514
514
  if (!u) {
515
- var m = typeof o == "string" ? o : o.displayName || o.name;
516
- m && (u = `
515
+ var g = typeof o == "string" ? o : o.displayName || o.name;
516
+ g && (u = `
517
517
 
518
- Check the top-level render call using <` + m + ">.");
518
+ Check the top-level render call using <` + g + ">.");
519
519
  }
520
520
  return u;
521
521
  }
@@ -525,12 +525,12 @@ Check the top-level render call using <` + m + ">.");
525
525
  if (!o._store || o._store.validated || o.key != null)
526
526
  return;
527
527
  o._store.validated = !0;
528
- var m = br(u);
529
- if (Ot[m])
528
+ var g = br(u);
529
+ if (Ot[g])
530
530
  return;
531
- Ot[m] = !0;
532
- var $ = "";
533
- o && o._owner && o._owner !== tt.current && ($ = " It was passed a child from " + q(o._owner.type) + "."), $e(o), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, $), $e(null);
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
536
  function Pt(o, u) {
@@ -538,9 +538,9 @@ Check the top-level render call using <` + m + ">.");
538
538
  if (typeof o != "object")
539
539
  return;
540
540
  if (ce(o))
541
- for (var m = 0; m < o.length; m++) {
542
- var $ = o[m];
543
- nt($) && Tt($, u);
541
+ for (var g = 0; g < o.length; g++) {
542
+ var L = o[g];
543
+ nt(L) && Tt(L, u);
544
544
  }
545
545
  else if (nt(o))
546
546
  o._store && (o._store.validated = !0);
@@ -557,91 +557,91 @@ Check the top-level render call using <` + m + ">.");
557
557
  var u = o.type;
558
558
  if (u == null || typeof u == "string")
559
559
  return;
560
- var m;
560
+ var g;
561
561
  if (typeof u == "function")
562
- m = u.propTypes;
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 === b))
566
- m = u.propTypes;
565
+ u.$$typeof === E))
566
+ g = u.propTypes;
567
567
  else
568
568
  return;
569
- if (m) {
570
- var $ = q(u);
571
- oe(m, o.props, "prop", $, o);
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
- k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", K || "Unknown");
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 && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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
580
  function wr(o) {
581
581
  {
582
- for (var u = Object.keys(o.props), m = 0; m < u.length; m++) {
583
- var $ = u[m];
584
- if ($ !== "children" && $ !== "key") {
585
- $e(o), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), $e(null);
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
- o.ref !== null && ($e(o), k("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
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(o, u, m, $, K, X) {
593
+ function At(o, u, g, L, K, X) {
594
594
  {
595
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 += xt();
600
+ de ? N += de : N += Ct();
601
601
  var ne;
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, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, N);
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(o, u, m, K, X);
604
+ var se = gr(o, u, g, K, X);
605
605
  if (se == null)
606
606
  return se;
607
607
  if (V) {
608
- var Ee = u.children;
609
- if (Ee !== void 0)
610
- if ($)
611
- if (ce(Ee)) {
612
- for (var ke = 0; ke < Ee.length; ke++)
613
- Pt(Ee[ke], o);
614
- Object.freeze && Object.freeze(Ee);
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
- k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
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(Ee, o);
618
+ Pt(we, o);
619
619
  }
620
620
  if (ee.call(u, "key")) {
621
621
  var Me = q(o), ve = Object.keys(u).filter(function(Or) {
622
622
  return Or !== "key";
623
623
  }), ot = ve.length > 0 ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}";
624
624
  if (!jt[Me + ot]) {
625
- var xr = ve.length > 0 ? "{" + ve.join(": ..., ") + ": ...}" : "{}";
626
- k(`A props object containing a "key" prop is being spread into JSX:
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} />`, ot, Me, xr, Me), jt[Me + ot] = !0;
631
+ <%s key={someKey} {...props} />`, ot, Me, Cr, Me), jt[Me + ot] = !0;
632
632
  }
633
633
  }
634
634
  return o === n ? wr(se) : Er(se), se;
635
635
  }
636
636
  }
637
- function _r(o, u, m) {
638
- return At(o, u, m, !0);
637
+ function _r(o, u, g) {
638
+ return At(o, u, g, !0);
639
639
  }
640
- function Rr(o, u, m) {
641
- return At(o, u, m, !1);
640
+ function Rr(o, u, g) {
641
+ return At(o, u, g, !1);
642
642
  }
643
- var Sr = Rr, Cr = _r;
644
- Ve.Fragment = n, Ve.jsx = Sr, Ve.jsxs = Cr;
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();
@@ -762,12 +762,12 @@ 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"), 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"), b = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), T;
766
- T = Symbol.for("react.module.reference");
767
- function w(d) {
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 F = d.$$typeof;
770
- switch (F) {
769
+ var k = d.$$typeof;
770
+ switch (k) {
771
771
  case e:
772
772
  switch (d = d.type, d) {
773
773
  case r:
@@ -781,50 +781,50 @@ function Vr() {
781
781
  case l:
782
782
  case a:
783
783
  case c:
784
- case p:
785
- case b:
784
+ case v:
785
+ case E:
786
786
  case s:
787
787
  return d;
788
788
  default:
789
- return F;
789
+ return k;
790
790
  }
791
791
  }
792
792
  case t:
793
- return F;
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 = p, G.Memo = b, G.Portal = t, G.Profiler = i, G.StrictMode = n, G.Suspense = f, G.SuspenseList = h, G.isAsyncMode = function() {
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 w(d) === a;
802
+ return _(d) === a;
803
803
  }, G.isContextProvider = function(d) {
804
- return w(d) === s;
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 w(d) === c;
808
+ return _(d) === c;
809
809
  }, G.isFragment = function(d) {
810
- return w(d) === r;
810
+ return _(d) === r;
811
811
  }, G.isLazy = function(d) {
812
- return w(d) === p;
812
+ return _(d) === v;
813
813
  }, G.isMemo = function(d) {
814
- return w(d) === b;
814
+ return _(d) === E;
815
815
  }, G.isPortal = function(d) {
816
- return w(d) === t;
816
+ return _(d) === t;
817
817
  }, G.isProfiler = function(d) {
818
- return w(d) === i;
818
+ return _(d) === i;
819
819
  }, G.isStrictMode = function(d) {
820
- return w(d) === n;
820
+ return _(d) === n;
821
821
  }, G.isSuspense = function(d) {
822
- return w(d) === f;
822
+ return _(d) === f;
823
823
  }, G.isSuspenseList = function(d) {
824
- return w(d) === h;
824
+ return _(d) === h;
825
825
  }, G.isValidElementType = function(d) {
826
- return typeof d == "string" || typeof d == "function" || d === r || d === i || d === n || d === f || d === h || d === j || typeof d == "object" && d !== null && (d.$$typeof === p || d.$$typeof === b || d.$$typeof === s || d.$$typeof === a || d.$$typeof === c || d.$$typeof === T || d.getModuleId !== void 0);
827
- }, G.typeOf = w, G;
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,21 +839,21 @@ 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"), 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"), b = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), T = !1, w = !1, d = !1, F = !1, k = !1, J;
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 A(O) {
845
- return !!(typeof O == "string" || typeof O == "function" || O === r || O === i || k || O === n || O === f || O === h || F || O === j || T || w || d || typeof O == "object" && O !== null && (O.$$typeof === p || O.$$typeof === b || O.$$typeof === s || O.$$typeof === a || O.$$typeof === c || // This needs to include all possible module reference object
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
- O.$$typeof === J || O.getModuleId !== void 0));
849
+ T.$$typeof === J || T.getModuleId !== void 0));
850
850
  }
851
- function P(O) {
852
- if (typeof O == "object" && O !== null) {
853
- var Q = O.$$typeof;
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 = O.type;
856
+ var ee = T.type;
857
857
  switch (ee) {
858
858
  case r:
859
859
  case i:
@@ -867,8 +867,8 @@ function Hr() {
867
867
  case l:
868
868
  case a:
869
869
  case c:
870
- case p:
871
- case b:
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, I = e, B = c, M = r, W = p, Y = b, q = t, te = i, he = n, ye = f, Te = h, _e = !1, be = !1;
884
- function Se(O) {
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 g(O) {
888
- return be || (be = !0), !1;
887
+ function y(T) {
888
+ return Ee || (Ee = !0), !1;
889
889
  }
890
- function C(O) {
891
- return P(O) === a;
890
+ function C(T) {
891
+ return F(T) === a;
892
892
  }
893
- function E(O) {
894
- return P(O) === s;
893
+ function w(T) {
894
+ return F(T) === s;
895
895
  }
896
- function y(O) {
897
- return typeof O == "object" && O !== null && O.$$typeof === e;
896
+ function b(T) {
897
+ return typeof T == "object" && T !== null && T.$$typeof === e;
898
898
  }
899
- function v(O) {
900
- return P(O) === c;
899
+ function m(T) {
900
+ return F(T) === c;
901
901
  }
902
- function x(O) {
903
- return P(O) === r;
902
+ function O(T) {
903
+ return F(T) === r;
904
904
  }
905
- function _(O) {
906
- return P(O) === p;
905
+ function R(T) {
906
+ return F(T) === v;
907
907
  }
908
- function R(O) {
909
- return P(O) === b;
908
+ function S(T) {
909
+ return F(T) === E;
910
910
  }
911
- function S(O) {
912
- return P(O) === t;
911
+ function x(T) {
912
+ return F(T) === t;
913
913
  }
914
- function L(O) {
915
- return P(O) === i;
914
+ function I(T) {
915
+ return F(T) === i;
916
916
  }
917
- function H(O) {
918
- return P(O) === n;
917
+ function H(T) {
918
+ return F(T) === n;
919
919
  }
920
- function ae(O) {
921
- return P(O) === f;
920
+ function ae(T) {
921
+ return F(T) === f;
922
922
  }
923
- function le(O) {
924
- return P(O) === h;
923
+ function le(T) {
924
+ return F(T) === h;
925
925
  }
926
- U.ContextConsumer = D, U.ContextProvider = z, U.Element = I, U.ForwardRef = B, U.Fragment = M, U.Lazy = W, U.Memo = Y, U.Portal = q, U.Profiler = te, U.StrictMode = he, U.Suspense = ye, U.SuspenseList = Te, U.isAsyncMode = Se, U.isConcurrentMode = g, U.isContextConsumer = C, U.isContextProvider = E, U.isElement = y, U.isForwardRef = v, U.isFragment = x, U.isLazy = _, U.isMemo = R, U.isPortal = S, U.isProfiler = L, U.isStrictMode = H, U.isSuspense = ae, U.isSuspenseList = le, U.isValidElementType = A, U.typeOf = P;
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();
@@ -1364,7 +1364,7 @@ function Sn(e) {
1364
1364
  return Rn(this, r);
1365
1365
  };
1366
1366
  }
1367
- var Cn = /* @__PURE__ */ function(e) {
1367
+ var xn = /* @__PURE__ */ function(e) {
1368
1368
  wn(r, e);
1369
1369
  var t = Sn(r);
1370
1370
  function r() {
@@ -1377,53 +1377,53 @@ var Cn = /* @__PURE__ */ function(e) {
1377
1377
  }
1378
1378
  }]), r;
1379
1379
  }(re.Component);
1380
- function xn(e, t) {
1380
+ function Cn(e, t) {
1381
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), b = h ? Jr(c) : null, p = Ur(b, i), j = function() {
1387
- var F;
1386
+ }), h = !l && /* @__PURE__ */ re.isValidElement(c) && qr(c), E = h ? Jr(c) : null, v = Ur(E, i), A = function() {
1387
+ var k;
1388
1388
  return it(i.current) || // Support `nativeElement` format
1389
- (i.current && Re(i.current) === "object" ? it((F = i.current) === null || F === void 0 ? void 0 : F.nativeElement) : null) || it(s.current);
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 j();
1392
+ return A();
1393
1393
  });
1394
- var T = re.useRef(e);
1395
- T.current = e;
1396
- var w = re.useCallback(function(d) {
1397
- var F = T.current, k = F.onResize, J = F.data, A = d.getBoundingClientRect(), P = A.width, D = A.height, z = d.offsetWidth, I = d.offsetHeight, B = Math.floor(P), M = Math.floor(D);
1398
- if (f.current.width !== B || f.current.height !== M || f.current.offsetWidth !== z || f.current.offsetHeight !== I) {
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: I
1403
+ offsetHeight: p
1404
1404
  };
1405
1405
  f.current = W;
1406
- var Y = z === Math.round(P) ? P : z, q = I === Math.round(D) ? D : I, te = Dt(Dt({}, W), {}, {
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), k && Promise.resolve().then(function() {
1411
- k(te, d);
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 = j();
1417
- return d && !n && gn(d, w), function() {
1418
- return yn(d, w);
1416
+ var d = A();
1417
+ return d && !n && gn(d, _), function() {
1418
+ return yn(d, _);
1419
1419
  };
1420
- }, [i.current, n]), /* @__PURE__ */ re.createElement(Cn, {
1420
+ }, [i.current, n]), /* @__PURE__ */ re.createElement(xn, {
1421
1421
  ref: s
1422
1422
  }, h ? /* @__PURE__ */ re.cloneElement(c, {
1423
- ref: p
1423
+ ref: v
1424
1424
  }) : c);
1425
1425
  }
1426
- var sr = /* @__PURE__ */ re.forwardRef(xn);
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) {
@@ -1478,45 +1478,45 @@ var ar = { exports: {} };
1478
1478
  var Pn = ar.exports;
1479
1479
  const _t = /* @__PURE__ */ Mr(Pn);
1480
1480
  const jn = jr(({ columns: e, width: t, onScroll: r, meta: n }, i) => {
1481
- const s = we(() => {
1481
+ const s = ye(() => {
1482
1482
  const a = [], l = (h) => {
1483
- let b = 0;
1484
- return h.forEach((p) => {
1485
- if (p.children && p.children.length > 0) {
1486
- const j = l(p.children);
1487
- j > b && (b = j);
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
- }), b + 1;
1490
- }, c = l(e), f = (h, b) => {
1491
- a[b] || (a[b] = []), h.forEach((p) => {
1492
- var d, F;
1493
- let j = "left";
1494
- (d = p.style) != null && d.textAlign && (j = p.style.textAlign);
1495
- let T = n == null ? void 0 : n.find((k) => k.field === p.field);
1496
- if (!T) {
1497
- const k = p.field.split("||");
1498
- if (k.length > 1) {
1499
- const J = k[k.length - 1];
1500
- T = n == null ? void 0 : n.find((A) => A.field === J);
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
- p.field.includes("__") && (T = n == null ? void 0 : n.find((J) => p.field.startsWith(`${J.field}_`)));
1502
+ v.field.includes("__") && (P = n == null ? void 0 : n.find((J) => v.field.startsWith(`${J.field}_`)));
1503
1503
  }
1504
- (F = T == null ? void 0 : T.style) != null && F.textAlign && (j = T.style.textAlign);
1505
- const w = {
1506
- key: p.field || p.dataIndex || p.title || String(Math.random()),
1507
- title: p.title,
1508
- width: p.width,
1509
- align: j,
1510
- className: p.field,
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 (p.children && p.children.length > 0) {
1516
- const k = (J) => J.children && J.children.length > 0 ? J.children.reduce((A, P) => A + k(P), 0) : 1;
1517
- w.colSpan = k(p), a[b].push(w), f(p.children, b + 1);
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
- w.rowSpan = c - b, a[b].push(w);
1519
+ _.rowSpan = c - E, a[E].push(_);
1520
1520
  });
1521
1521
  };
1522
1522
  return f(e, 0), a;
@@ -1559,7 +1559,7 @@ const jn = jr(({ columns: e, width: t, onScroll: r, meta: n }, i) => {
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, xe = "-", Bt = "合计";
1562
+ }, lr = 43, An = 100, Ce = "-", Bt = "合计";
1563
1563
  function Mn(e) {
1564
1564
  let t = e;
1565
1565
  for (; t; ) {
@@ -1597,7 +1597,7 @@ function In({
1597
1597
  mode: s,
1598
1598
  style: a
1599
1599
  }) {
1600
- const { styleHeight: l, styleWidth: c } = we(
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
- }), b = n || s === "only-height" && l !== void 0 || s === "only-width" && c !== void 0 || l !== void 0 && c !== void 0;
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 (i === null || b)
1611
+ if (i === null || E)
1612
1612
  return;
1613
- const p = new ResizeObserver((j) => {
1614
- for (const T of j) {
1615
- const { contentRect: w, target: d } = T;
1616
- i === d && h((F) => F.height === w.height && F.width === w.width ? F : {
1617
- height: w.height,
1618
- width: w.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 p.observe(i, { box: e }), () => {
1623
- p == null || p.unobserve(i);
1622
+ return v.observe(i, { box: e }), () => {
1623
+ v == null || v.unobserve(i);
1624
1624
  };
1625
- }, [e, b, i, l, c]), we(
1625
+ }, [e, E, i, l, c]), ye(
1626
1626
  () => ({
1627
1627
  height: l ?? f.height,
1628
1628
  width: c ?? f.width
@@ -1749,14 +1749,14 @@ function lt({
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 b = e.get(h);
1753
- if (b.scrollOffset + b.size > t)
1752
+ const E = e.get(h);
1753
+ if (E.scrollOffset + E.size > t)
1754
1754
  break;
1755
1755
  h++;
1756
1756
  }
1757
1757
  for (a = h, c = Math.max(0, a - i); h < s; ) {
1758
- const b = e.get(h);
1759
- if (b.scrollOffset + b.size >= t + r)
1758
+ const E = e.get(h);
1759
+ if (E.scrollOffset + E.size >= t + r)
1760
1760
  break;
1761
1761
  h++;
1762
1762
  }
@@ -1823,7 +1823,7 @@ function Fn({
1823
1823
  itemProps: t,
1824
1824
  itemSize: r
1825
1825
  }) {
1826
- return we(
1826
+ return ye(
1827
1827
  () => Dn({
1828
1828
  itemCount: e,
1829
1829
  itemProps: t,
@@ -1867,56 +1867,56 @@ function Kt({
1867
1867
  onResize: c,
1868
1868
  overscanCount: f
1869
1869
  }) {
1870
- const { height: h = r, width: b = r } = In({
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
- }), p = ze({
1876
+ }), v = ze({
1877
1877
  height: 0,
1878
1878
  width: 0
1879
- }), j = n === "vertical" ? h : b, T = Nn({ containerSize: j, itemSize: l });
1879
+ }), A = n === "vertical" ? h : E, P = Nn({ containerSize: A, itemSize: l });
1880
1880
  Et(() => {
1881
1881
  if (typeof c == "function") {
1882
- const M = p.current;
1883
- (M.height !== h || M.width !== b) && (c({ height: h, width: b }, { ...M }), M.height = h, M.width = b);
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, b]);
1886
- const w = Fn({
1885
+ }, [h, c, E]);
1886
+ const _ = Fn({
1887
1887
  itemCount: s,
1888
1888
  itemProps: a,
1889
- itemSize: T
1889
+ itemSize: P
1890
1890
  }), d = ge(
1891
- (M) => w.get(M),
1892
- [w]
1893
- ), [F, k] = Ie(
1891
+ (M) => _.get(M),
1892
+ [_]
1893
+ ), [k, $] = Ie(
1894
1894
  () => lt({
1895
- cachedBounds: w,
1895
+ cachedBounds: _,
1896
1896
  // TODO Potentially support a defaultScrollOffset prop?
1897
1897
  containerScrollOffset: 0,
1898
- containerSize: j,
1898
+ containerSize: A,
1899
1899
  itemCount: s,
1900
1900
  overscanCount: f
1901
1901
  })
1902
1902
  ), {
1903
1903
  startIndexVisible: J,
1904
- startIndexOverscan: A,
1905
- stopIndexVisible: P,
1904
+ startIndexOverscan: j,
1905
+ stopIndexVisible: F,
1906
1906
  stopIndexOverscan: D
1907
1907
  } = {
1908
- startIndexVisible: Math.min(s - 1, F.startIndexVisible),
1909
- startIndexOverscan: Math.min(s - 1, F.startIndexOverscan),
1910
- stopIndexVisible: Math.min(s - 1, F.stopIndexVisible),
1911
- stopIndexOverscan: Math.min(s - 1, F.stopIndexOverscan)
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: w,
1914
+ cachedBounds: _,
1915
1915
  itemCount: s,
1916
- itemSize: T
1916
+ itemSize: P
1917
1917
  }),
1918
- [w, s, T]
1919
- ), I = ge(
1918
+ [_, s, P]
1919
+ ), p = ge(
1920
1920
  (M) => {
1921
1921
  const W = at({
1922
1922
  containerElement: e,
@@ -1925,17 +1925,17 @@ function Kt({
1925
1925
  scrollOffset: M
1926
1926
  });
1927
1927
  return lt({
1928
- cachedBounds: w,
1928
+ cachedBounds: _,
1929
1929
  containerScrollOffset: W,
1930
- containerSize: j,
1930
+ containerSize: A,
1931
1931
  itemCount: s,
1932
1932
  overscanCount: f
1933
1933
  });
1934
1934
  },
1935
1935
  [
1936
- w,
1936
+ _,
1937
1937
  e,
1938
- j,
1938
+ A,
1939
1939
  n,
1940
1940
  i,
1941
1941
  s,
@@ -1944,21 +1944,21 @@ function Kt({
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
- k(I(M));
1948
- }, [e, n, I]), Xe(() => {
1947
+ $(p(M));
1948
+ }, [e, n, p]), Xe(() => {
1949
1949
  if (!e)
1950
1950
  return;
1951
1951
  const M = () => {
1952
- k((W) => {
1952
+ $((W) => {
1953
1953
  const { scrollLeft: Y, scrollTop: q } = e, te = at({
1954
1954
  containerElement: e,
1955
1955
  direction: n,
1956
1956
  isRtl: i,
1957
1957
  scrollOffset: n === "vertical" ? q : Y
1958
1958
  }), he = lt({
1959
- cachedBounds: w,
1959
+ cachedBounds: _,
1960
1960
  containerScrollOffset: te,
1961
- containerSize: j,
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
- w,
1972
+ _,
1973
1973
  e,
1974
- j,
1974
+ A,
1975
1975
  n,
1976
1976
  s,
1977
1977
  f
@@ -1984,12 +1984,12 @@ function Kt({
1984
1984
  }) => {
1985
1985
  let q = kn({
1986
1986
  align: M,
1987
- cachedBounds: w,
1987
+ cachedBounds: _,
1988
1988
  containerScrollOffset: W,
1989
- containerSize: j,
1989
+ containerSize: A,
1990
1990
  index: Y,
1991
1991
  itemCount: s,
1992
- itemSize: T
1992
+ itemSize: P
1993
1993
  });
1994
1994
  if (e) {
1995
1995
  if (q = at({
@@ -1998,8 +1998,8 @@ function Kt({
1998
1998
  isRtl: i,
1999
1999
  scrollOffset: q
2000
2000
  }), typeof e.scrollTo != "function") {
2001
- const te = I(q);
2002
- Be(F, te) || k(te);
2001
+ const te = p(q);
2002
+ Be(k, te) || $(te);
2003
2003
  }
2004
2004
  return q;
2005
2005
  }
@@ -2009,14 +2009,14 @@ function Kt({
2009
2009
  getCellBounds: d,
2010
2010
  getEstimatedSize: z,
2011
2011
  scrollToIndex: B,
2012
- startIndexOverscan: A,
2012
+ startIndexOverscan: j,
2013
2013
  startIndexVisible: J,
2014
2014
  stopIndexOverscan: D,
2015
- stopIndexVisible: P
2015
+ stopIndexVisible: F
2016
2016
  };
2017
2017
  }
2018
2018
  function Wn(e) {
2019
- return we(() => e, Object.values(e));
2019
+ return ye(() => e, Object.values(e));
2020
2020
  }
2021
2021
  function Vn(e, t) {
2022
2022
  const {
@@ -2042,117 +2042,117 @@ function Hn({
2042
2042
  dir: c,
2043
2043
  gridRef: f,
2044
2044
  onCellsRendered: h,
2045
- onResize: b,
2046
- overscanCount: p = 3,
2047
- rowCount: j,
2048
- rowHeight: T,
2049
- style: w,
2045
+ onResize: E,
2046
+ overscanCount: v = 3,
2047
+ rowCount: A,
2048
+ rowHeight: P,
2049
+ style: _,
2050
2050
  tagName: d = "div",
2051
- ...F
2051
+ ...k
2052
2052
  }) {
2053
- const k = Wn(t), J = we(
2053
+ const $ = Wn(t), J = ye(
2054
2054
  () => Ut(e, Vn),
2055
2055
  [e]
2056
- ), [A, P] = Ie(null), D = zn(A, c), {
2056
+ ), [j, F] = Ie(null), D = zn(j, c), {
2057
2057
  getCellBounds: z,
2058
- getEstimatedSize: I,
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: A,
2066
- containerStyle: w,
2065
+ containerElement: j,
2066
+ containerStyle: _,
2067
2067
  defaultContainerSize: l,
2068
2068
  direction: "horizontal",
2069
2069
  isRtl: D,
2070
2070
  itemCount: i,
2071
- itemProps: k,
2071
+ itemProps: $,
2072
2072
  itemSize: s,
2073
- onResize: b,
2074
- overscanCount: p
2073
+ onResize: E,
2074
+ overscanCount: v
2075
2075
  }), {
2076
2076
  getCellBounds: te,
2077
2077
  getEstimatedSize: he,
2078
- startIndexOverscan: ye,
2078
+ startIndexOverscan: be,
2079
2079
  startIndexVisible: Te,
2080
2080
  scrollToIndex: _e,
2081
- stopIndexOverscan: be,
2081
+ stopIndexOverscan: Ee,
2082
2082
  stopIndexVisible: Se
2083
2083
  } = Kt({
2084
- containerElement: A,
2085
- containerStyle: w,
2084
+ containerElement: j,
2085
+ containerStyle: _,
2086
2086
  defaultContainerSize: a,
2087
2087
  direction: "vertical",
2088
- itemCount: j,
2089
- itemProps: k,
2090
- itemSize: T,
2091
- onResize: b,
2092
- overscanCount: p
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 A;
2098
+ return j;
2099
2099
  },
2100
2100
  scrollToCell({
2101
- behavior: E = "auto",
2102
- columnAlign: y = "auto",
2103
- columnIndex: v,
2104
- rowAlign: x = "auto",
2105
- rowIndex: _
2101
+ behavior: w = "auto",
2102
+ columnAlign: b = "auto",
2103
+ columnIndex: m,
2104
+ rowAlign: O = "auto",
2105
+ rowIndex: R
2106
2106
  }) {
2107
- const R = W({
2108
- align: y,
2109
- containerScrollOffset: (A == null ? void 0 : A.scrollLeft) ?? 0,
2110
- index: v
2111
- }), S = _e({
2112
- align: x,
2113
- containerScrollOffset: (A == null ? void 0 : A.scrollTop) ?? 0,
2114
- index: _
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 (A == null ? void 0 : A.scrollTo) == "function" && A.scrollTo({
2117
- behavior: E,
2118
- left: R,
2119
- top: S
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: E = "auto",
2124
- behavior: y = "auto",
2125
- index: v
2123
+ align: w = "auto",
2124
+ behavior: b = "auto",
2125
+ index: m
2126
2126
  }) {
2127
- const x = W({
2128
- align: E,
2129
- containerScrollOffset: (A == null ? void 0 : A.scrollLeft) ?? 0,
2130
- index: v
2127
+ const O = W({
2128
+ align: w,
2129
+ containerScrollOffset: (j == null ? void 0 : j.scrollLeft) ?? 0,
2130
+ index: m
2131
2131
  });
2132
- typeof (A == null ? void 0 : A.scrollTo) == "function" && A.scrollTo({
2133
- behavior: y,
2134
- left: x
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: E = "auto",
2139
- behavior: y = "auto",
2140
- index: v
2138
+ align: w = "auto",
2139
+ behavior: b = "auto",
2140
+ index: m
2141
2141
  }) {
2142
- const x = _e({
2143
- align: E,
2144
- containerScrollOffset: (A == null ? void 0 : A.scrollTop) ?? 0,
2145
- index: v
2142
+ const O = _e({
2143
+ align: w,
2144
+ containerScrollOffset: (j == null ? void 0 : j.scrollTop) ?? 0,
2145
+ index: m
2146
2146
  });
2147
- typeof (A == null ? void 0 : A.scrollTo) == "function" && A.scrollTo({
2148
- behavior: y,
2149
- top: x
2147
+ typeof (j == null ? void 0 : j.scrollTo) == "function" && j.scrollTo({
2148
+ behavior: b,
2149
+ top: O
2150
2150
  });
2151
2151
  }
2152
2152
  }),
2153
- [A, W, _e]
2153
+ [j, W, _e]
2154
2154
  ), Ze(() => {
2155
- B >= 0 && Y >= 0 && ye >= 0 && be >= 0 && h && h(
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: ye,
2166
- rowStopIndex: be
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 g = we(() => {
2181
- const E = [];
2182
- if (i > 0 && j > 0)
2183
- for (let y = ye; y <= be; y++) {
2184
- const v = te(y), x = [];
2185
- for (let _ = B; _ <= Y; _++) {
2186
- const R = z(_);
2187
- x.push(
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
- ...k,
2191
+ ...$,
2192
2192
  ariaAttributes: {
2193
- "aria-colindex": _ + 1,
2193
+ "aria-colindex": R + 1,
2194
2194
  role: "gridcell"
2195
2195
  },
2196
- columnIndex: _,
2197
- key: _,
2198
- rowIndex: y,
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 ? -R.scrollOffset : R.scrollOffset}px, ${v.scrollOffset}px)`,
2204
- height: v.size,
2205
- width: R.size
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
- E.push(
2212
- /* @__PURE__ */ Z.jsx("div", { role: "row", "aria-rowindex": y + 1, children: x }, y)
2211
+ w.push(
2212
+ /* @__PURE__ */ Z.jsx("div", { role: "row", "aria-rowindex": b + 1, children: O }, b)
2213
2213
  );
2214
2214
  }
2215
- return E;
2215
+ return w;
2216
2216
  }, [
2217
2217
  J,
2218
- k,
2218
+ $,
2219
2219
  i,
2220
2220
  B,
2221
2221
  Y,
2222
2222
  z,
2223
2223
  te,
2224
2224
  D,
2225
- j,
2226
- ye,
2227
- be
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: I(),
2234
+ width: p(),
2235
2235
  zIndex: -1
2236
2236
  }
2237
2237
  }
@@ -2240,22 +2240,22 @@ function Hn({
2240
2240
  d,
2241
2241
  {
2242
2242
  "aria-colcount": i,
2243
- "aria-rowcount": j,
2243
+ "aria-rowcount": A,
2244
2244
  role: "grid",
2245
- ...F,
2245
+ ...k,
2246
2246
  className: n,
2247
2247
  dir: c,
2248
- ref: P,
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
- ...w
2255
+ ..._
2256
2256
  }
2257
2257
  },
2258
- g,
2258
+ y,
2259
2259
  r,
2260
2260
  C
2261
2261
  );
@@ -2271,38 +2271,38 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2271
2271
  const n = (i = r[e]) == null ? void 0 : i[t];
2272
2272
  return !n || n.rowspan === 0 || n.colspan === 0;
2273
2273
  }, Gn = (e, t, r, n, i, s) => {
2274
- var j, T;
2275
- const a = (j = n[e]) == null ? void 0 : j[t];
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
2279
  let c = i[t];
2280
- const f = c.field.split("||"), h = f[f.length - 1], b = s == null ? void 0 : s.find((w) => w.field === h || w.field === c.field);
2281
- b && b.style;
2282
- const p = (b == null ? void 0 : b.style) || (c == null ? void 0 : c.style);
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 w = 0;
2284
+ let _ = 0;
2285
2285
  for (let d = t; d < t + a.colspan; d++)
2286
- w += Number((T = i[d]) == null ? void 0 : T.width) || 100;
2287
- l.width = w;
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), p != null && p.textAlign && (l.textAlign = p.textAlign, p.textAlign === "right" && (l.justifyContent = "flex-end"), p.textAlign === "center" && (l.justifyContent = "center")), l.border = "1px solid #f0f0f0", l.padding = "8px 16px", l.display = "flex", l.alignItems = "center", l.backgroundColor = "#fff", l;
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
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, i, a), f = i[e], h = f.field.split("||"), b = h[h.length - 1], p = a == null ? void 0 : a.find((w) => w.field === b || w.field === f.field), j = Ye.isValidElement(l.content);
2294
- let T;
2295
- if (T = l.content, "formatter" in f && f.formatter && !j && (T = f.formatter(T, l.data)), p != null && p.clickHandler && !j && T !== null && T !== void 0) {
2296
- const w = l.data;
2297
- T = /* @__PURE__ */ Z.jsx(
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(), p.clickHandler(w);
2302
+ d.preventDefault(), d.stopPropagation(), v.clickHandler(_);
2303
2303
  },
2304
2304
  className: "virtual-table-cell-link",
2305
- children: T
2305
+ children: P
2306
2306
  }
2307
2307
  );
2308
2308
  }
@@ -2313,83 +2313,90 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2313
2313
  className: _t("table-cell", "virtual-table-cell", {
2314
2314
  "virtual-table-cell-last": e === i.length - 1
2315
2315
  }),
2316
- title: typeof T == "string" ? T : void 0,
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
- T
2323
+ P
2324
2324
  ]
2325
2325
  }
2326
2326
  );
2327
2327
  }, qn = (e) => {
2328
- const { data: t, info: r, scroll: n, columns: i, tableWidth: s } = e, { ref: a, onScroll: l } = r, c = ze(), f = we(() => {
2329
- const P = {};
2330
- return Object.defineProperty(P, "scrollLeft", {
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 D, z;
2333
- return ((z = (D = c.current) == null ? void 0 : D.element) == null ? void 0 : z.scrollLeft) || 0;
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: (D) => {
2336
- var z;
2337
- (z = c.current) != null && z.element && (c.current.element.scrollLeft = D);
2335
+ set: (z) => {
2336
+ var p;
2337
+ (p = c.current) != null && p.element && (c.current.element.scrollLeft = z);
2338
2338
  }
2339
- }), Object.defineProperty(P, "scrollTop", {
2339
+ }), Object.defineProperty(D, "scrollTop", {
2340
2340
  get: () => {
2341
- var D, z;
2342
- return ((z = (D = c.current) == null ? void 0 : D.element) == null ? void 0 : z.scrollTop) || 0;
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: (D) => {
2345
- var z;
2346
- (z = c.current) != null && z.element && (c.current.element.scrollTop = D);
2344
+ set: (z) => {
2345
+ var p;
2346
+ (p = c.current) != null && p.element && (c.current.element.scrollTop = z);
2347
2347
  }
2348
- }), P;
2348
+ }), D;
2349
2349
  }, []);
2350
2350
  Ze(() => {
2351
2351
  a && (a.current = f);
2352
2352
  }, [a, f]);
2353
- const h = t, b = h.length, p = ge((P) => {
2354
- let D = 0;
2355
- return P.forEach((z) => {
2356
- z != null && z.children && z.children.length > 0 ? D += p(z.children) : D += 1;
2357
- }), D;
2358
- }, []), j = p(i), T = ge((P) => {
2359
- let D = [];
2360
- return P.forEach((z) => {
2361
- z != null && z.children && z.children.length > 0 ? D = [...D, ...T(z.children)] : D.push(z);
2362
- }), D;
2363
- }, []), w = T(i), d = ge((P) => {
2364
- const D = w[P];
2365
- let z = (D == null ? void 0 : D.width) || 100;
2366
- return typeof z == "string" && (z = parseInt(z.replace("px", "")) || 100), z;
2367
- }, [w]), F = ge((P) => lr, []), k = we(() => h.map((P) => P.cells), [h]), J = ge((P) => {
2368
- if (P && typeof P.scrollLeft == "number") {
2369
- l && l(P);
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 (P && P.target) {
2373
- const { scrollLeft: D, scrollTop: z } = P.target;
2374
- l && l({ scrollLeft: D, scrollTop: z });
2372
+ if (D && D.target) {
2373
+ const { scrollLeft: z, scrollTop: p } = D.target;
2374
+ l && l({ scrollLeft: z, scrollTop: p });
2375
2375
  }
2376
- }, [l]), A = (typeof (n == null ? void 0 : n.y) == "number" ? n.y : parseInt((n == null ? void 0 : n.y) || "400")) || 400;
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: j,
2388
+ columnCount: A,
2382
2389
  columnWidth: d,
2383
- rowCount: b,
2384
- rowHeight: F,
2385
- style: { height: A - 40, width: s, overflowY: "auto" },
2390
+ rowCount: E,
2391
+ rowHeight: k,
2392
+ style: { height: F - 40, width: s, overflowY: "auto" },
2386
2393
  onScroll: J,
2387
- className: "virtual-grid",
2388
- overscanCount: 20,
2394
+ className: `virtual-grid row-${j}`,
2395
+ overscanCount: j + 3,
2389
2396
  cellComponent: Un,
2390
2397
  cellProps: {
2391
- mergedData: k,
2392
- columns: w,
2398
+ mergedData: $,
2399
+ columns: _,
2393
2400
  data: h,
2394
2401
  handleExpand: e.handleExpand,
2395
2402
  meta: e.meta
@@ -2409,7 +2416,7 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2409
2416
  return n;
2410
2417
  n = n[i];
2411
2418
  }
2412
- return n == null && (n = xe), 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;
@@ -2451,157 +2458,157 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2451
2458
  if (!t || t.length === 0 || !i.length && !s.length && !a.length)
2452
2459
  return {
2453
2460
  list: [],
2454
- dataExpandFilter: (g) => g
2461
+ dataExpandFilter: (y) => y
2455
2462
  };
2456
- const l = He(i), c = He(s), f = He(a).filter((g) => !g.hidden), h = l.map((g) => g.field), b = c.map((g) => g.field), p = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map();
2457
- t.forEach((g) => {
2458
- const C = ct(g, h);
2459
- p.has(C) || p.set(C, []), p.get(C).push(g);
2460
- const E = ct(g, b);
2461
- j.has(E) || j.set(E, []), j.get(E).push(g);
2462
- const y = `${C}||${E}`;
2463
- T.has(y) || T.set(y, []), T.get(y).push(g);
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 w = () => Array.from(p.entries()).sort(([g, C], [E, y]) => {
2472
+ const _ = () => Array.from(v.entries()).sort(([y, C], [w, b]) => {
2466
2473
  if (r && r.length > 0)
2467
- for (const v of r) {
2468
- const { field: x, sortType: _ } = v, R = _ === "asc", S = me(C[0], x), L = me(y[0], x);
2469
- if (S < L)
2470
- return R ? -1 : 1;
2471
- if (S > L)
2472
- return R ? 1 : -1;
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 v = 0; v < h.length; v++) {
2475
- const x = h[v], _ = l[v], R = me(C[0], x), S = me(y[0], x);
2476
- if (R !== S)
2477
- if (_.sort && _.sort.enabled) {
2478
- const L = _.sort.type === "asc";
2479
- if (R < S)
2480
- return L ? -1 : 1;
2481
- if (R > S)
2482
- return L ? 1 : -1;
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 (R < S)
2491
+ if (S < x)
2485
2492
  return -1;
2486
- if (R > S)
2493
+ if (S > x)
2487
2494
  return 1;
2488
2495
  }
2489
2496
  }
2490
2497
  return 0;
2491
- }), d = () => Array.from(j.entries()).sort(([g, C], [E, y]) => {
2492
- for (let v = 0; v < b.length; v++) {
2493
- const x = b[v], _ = c[v], R = me(C[0], x), S = me(y[0], x);
2494
- if (R !== S)
2495
- if (_.sort && _.sort.enabled) {
2496
- const L = _.sort.type === "asc";
2497
- if (R < S)
2498
- return L ? -1 : 1;
2499
- if (R > S)
2500
- return L ? 1 : -1;
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 (R < S)
2509
+ if (S < x)
2503
2510
  return -1;
2504
- if (R > S)
2511
+ if (S > x)
2505
2512
  return 1;
2506
2513
  }
2507
2514
  }
2508
2515
  return 0;
2509
- }), F = () => {
2510
- const g = [], C = He(i);
2511
- for (let E = 1; E <= C.length; E++)
2512
- g.push(C.slice(0, E));
2513
- return g;
2514
- }, k = () => {
2515
- const g = F(), C = /* @__PURE__ */ new Set();
2516
- return g.forEach((E, y) => {
2517
- const v = E[E.length - 1];
2518
- v.total && v.total.enabled && C.add(y);
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 g = F(), C = [], E = k();
2522
- return E.size === 0 || E.forEach((y) => {
2523
- let v = [];
2524
- y > 0 && (v = g[y - 1]);
2525
- const x = {};
2526
- t.forEach((_) => {
2527
- let R = "";
2528
- if (y > 0 ? R = v.map((S) => me(_, S.field)).join("|") : R = "__GLOBAL__", !x[R]) {
2529
- const L = g[y][y].total;
2530
- x[R] = {
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: L
2539
+ config: I
2533
2540
  };
2534
2541
  }
2535
- x[R].records.push(_);
2536
- }), C.push({ level: y, data: x });
2542
+ O[S].records.push(R);
2543
+ }), C.push({ level: b, data: O });
2537
2544
  }), C;
2538
- }, A = d(), P = /* @__PURE__ */ new Map(), D = (g, C) => {
2539
- if (ue.has(g)) {
2540
- const E = ue.get(g), v = !E.get(C);
2541
- E.set(C, v), ut.set("rowKey", C), ut.set("level", g), ut.set("expanded", v);
2542
- const x = g - 1;
2543
- if (x >= 0 && x < l.length && l[x].clickExpandChildren && v === !0) {
2544
- const R = g + 1;
2545
- if (ue.has(R)) {
2546
- const S = ue.get(R), L = C + "|";
2547
- S.forEach((H, ae) => {
2548
- ae.startsWith(L) && (S.set(ae, !0), z(R, ae));
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 = (g, C) => {
2554
- const E = g + 1;
2555
- if (ue.has(E)) {
2556
- const y = ue.get(E), v = C + "|";
2557
- y.forEach((x, _) => {
2558
- _.startsWith(v) && (y.set(_, !0), z(E, _));
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
- }, I = (g) => {
2562
- const C = J(), E = [...g];
2568
+ }, p = (y) => {
2569
+ const C = J(), w = [...y];
2563
2570
  if (C.length === 0)
2564
- return E;
2565
- for (let y = 0; y < C.length; y++) {
2566
- const { level: v, data: x } = C[y];
2567
- Object.keys(x).forEach((_) => {
2568
- const { records: R, config: S } = x[_], { label: L = Bt, position: H = "bottom" } = S || {}, ae = _.split("|");
2569
- let le = -1, O = -1;
2570
- if (v === 0)
2571
- le = 0, O = E.length - 1;
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 < E.length; Q++) {
2574
- const ee = E[Q];
2575
- h.slice(0, v).every((Le, pe) => {
2580
+ for (let Q = 0; Q < w.length; Q++) {
2581
+ const ee = w[Q];
2582
+ h.slice(0, m).every((Le, pe) => {
2576
2583
  var oe;
2577
2584
  return ((oe = ee[pe]) == null ? void 0 : oe.content) === ae[pe];
2578
- }) && (le === -1 && (le = Q), O = Q);
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 oe = xe;
2591
+ let oe = Ce;
2585
2592
  const ie = pe + 1, ce = ie < h.length, je = l[pe];
2586
- pe <= v && (pe === v ? oe = L : oe = ae[pe], ee += `|${oe}`);
2593
+ pe <= m && (pe === m ? oe = I : oe = ae[pe], ee += `|${oe}`);
2587
2594
  const Ke = ue.has(ie) && ue.get(ie).get(ee) || !0;
2588
- (oe === xe || oe === null || oe === void 0) && je.emptyReplace && (oe = je.emptyReplace), Q.push({
2595
+ (oe === Ce || oe === null || oe === void 0) && je.emptyReplace && (oe = je.emptyReplace), Q.push({
2589
2596
  content: oe,
2590
2597
  rowspan: 1,
2591
2598
  colspan: 1,
2592
2599
  data: null,
2593
2600
  rowKey: ee,
2594
- expandable: H === "top" && ce && oe !== xe && oe !== Bt,
2601
+ expandable: H === "top" && ce && oe !== Ce && oe !== Bt,
2595
2602
  expanded: H === "top" ? Ke : !1,
2596
2603
  level: ie,
2597
2604
  onClick: H === "top" && ce ? (Ae) => D(Ae.level, Ae.rowKey) : void 0
2598
2605
  });
2599
- }), A.forEach(([Le, pe]) => {
2606
+ }), j.forEach(([Le, pe]) => {
2600
2607
  const oe = {};
2601
2608
  f.forEach((ie) => {
2602
2609
  if (ie.calculateType === "expr")
2603
2610
  return;
2604
- const ce = ie.field, je = ie.calculateType || "sum", Ae = R.filter((Ce) => ct(Ce, b) === Le).map((Ce) => me(Ce, 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
2613
  Ge[je] && (Ne = Ge[je](Ae)), oe[ie.field] = Ne;
2607
2614
  }), f.forEach((ie) => {
@@ -2611,7 +2618,7 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2611
2618
  }
2612
2619
  }), f.forEach((ie) => {
2613
2620
  let ce = oe[ie.field];
2614
- (ce === xe || ce === null || ce === void 0 || typeof ce == "number" && isNaN(ce)) && ie.emptyReplace && (ce = ie.emptyReplace), Q.push({
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 : O + 1;
2623
- ft.has(ee) || (E.splice(fe, 0, Q), ft.set(ee, 1), H === "top" && v > 0 && P.set(_, 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 E;
2634
+ return w;
2628
2635
  }, B = He(i);
2629
- ue.clear(), t.forEach((g) => {
2636
+ ue.clear(), t.forEach((y) => {
2630
2637
  let C = "";
2631
- h.forEach((E, y) => {
2632
- const v = y + 1, x = me(g, E);
2633
- C += `|${x}`, ue.has(v) || ue.set(v, /* @__PURE__ */ new Map());
2634
- const _ = l[y].collapsed;
2635
- ue.get(v).set(C, !_);
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 = w();
2645
+ const M = _();
2639
2646
  let W = [];
2640
2647
  const Y = /* @__PURE__ */ new Map();
2641
- M.forEach(([g, C]) => {
2642
- const E = C[0];
2643
- let y = "";
2644
- h.forEach((v, x) => {
2645
- const _ = me(E, v), R = x + 1;
2646
- y += `|${_}`, Y.has(R) || Y.set(R, /* @__PURE__ */ new Map());
2647
- const S = Y.get(R);
2648
- S.set(y, (S.get(y) || 0) + 1);
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(([g, C]) => {
2651
- const E = C[0], y = [];
2652
- let v = "";
2653
- h.forEach((x, _) => {
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 R = me(E, x);
2656
- const S = _ + 1, L = S < h.length, H = l[_];
2657
- v += `|${R}`;
2658
- let ae = g;
2659
- const le = B.find((fe) => fe.field === x);
2660
- if ((ee = le == null ? void 0 : le.total) != null && ee.enabled && le.total.label && (ae = `${v}|${le.total.label}`), L) {
2661
- const fe = v;
2662
- P.has(fe) || P.set(fe, ae);
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 O = ue.has(S) && ue.get(S).get(v) || !0, Q = S < h.length ? (Y.get(S).get(v) || 0) > 1 : !1;
2665
- (R === xe || R === null || R === void 0) && H.emptyReplace && (R = H.emptyReplace), y.push({
2666
- content: R,
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: E,
2670
- expandable: L && Q,
2671
- expanded: O,
2672
- level: S,
2673
- rowKey: v,
2674
- onClick: L && Q ? (fe) => D(fe.level, fe.rowKey) : void 0
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
- }), A.forEach(([x, _]) => {
2677
- const R = {};
2678
- f.forEach((S) => {
2679
- if (S.calculateType === "expr")
2683
+ }), j.forEach(([O, R]) => {
2684
+ const S = {};
2685
+ f.forEach((x) => {
2686
+ if (x.calculateType === "expr")
2680
2687
  return;
2681
- const L = S.field, H = S.calculateType || "sum", ae = `${g}||${x}`, O = (T.get(ae) || []).map((ee) => me(ee, L));
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](O)), R[S.field] = Q;
2684
- }), f.forEach((S) => {
2685
- if (S.calculateType === "expr" && S.expression) {
2686
- const L = Gt(S.expression, R);
2687
- R[S.field] = L !== null ? L : 0;
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((S) => {
2690
- let L = R[S.field];
2691
- (L === xe || L === null || L === void 0 || typeof L == "number" && isNaN(L)) && S.emptyReplace && (L = S.emptyReplace), y.push({
2692
- content: L,
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: E
2702
+ data: w
2696
2703
  });
2697
2704
  });
2698
- }), W.push({ cells: y, rowKey: v });
2705
+ }), W.push({ cells: b, rowKey: m });
2699
2706
  });
2700
- const q = (g) => {
2701
- const E = g.split("|").filter(Boolean).length;
2702
- for (let y = 1; y < E; y++)
2703
- if (ue.has(y)) {
2704
- const v = ue.get(y), x = g.split("|").slice(0, y + 1).join("|");
2705
- if (v.has(x) && !v.get(x)) {
2706
- const _ = x, R = P.get(_);
2707
- if (g !== R)
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 = (g) => {
2713
- var C, E;
2714
- if (!g || g.length === 0)
2715
- return g;
2716
- for (let y = 0; y < l.length; y++) {
2717
- let v = g[0][y].content, x = 0, _ = l[y], R = (C = _.total) == null ? void 0 : C.enabled, S = ((E = _.total) == null ? void 0 : E.label) || "";
2718
- for (let L = 1; L < g.length; L++) {
2719
- const H = g[L][y];
2720
- H.content !== xe && (!R || H.content !== S) && H.content === v ? (H.rowspan = 0, g[x][y].rowspan++) : (v = H.content, x = L);
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 g;
2724
- }, he = (g) => {
2725
- const C = g.filter((v) => q(v.rowKey)), E = C.map((v) => v.cells.map((x) => {
2726
- const _ = { ...x };
2727
- if (_.expandable && _.level && _.rowKey && ue.has(_.level)) {
2728
- const R = ue.get(_.level);
2729
- R.has(_.rowKey) && (_.expanded = R.get(_.rowKey));
2730
+ 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(E), C.map((v, x) => ({
2734
- rowKey: v.rowKey,
2735
- cells: E[x]
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 ye = W.map((g) => g.cells), _e = I(ye).map((g, C) => {
2740
- let E = "";
2741
- return g.forEach((y, v) => {
2742
- v < h.length && y.rowKey && (E = y.rowKey);
2743
- }), { cells: g, rowKey: E };
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 g = [];
2752
+ const y = [];
2746
2753
  if (l.forEach((C) => {
2747
- g.push({
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
- g.push({
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
- A.forEach(([E, y]) => {
2764
- const v = E.split("|").filter((_) => _ !== "");
2765
- let x = C;
2766
- v.forEach((_, R) => {
2767
- var L;
2768
- let S = x.find((H) => H.title === _);
2769
- if (!S) {
2770
- const ae = `${((L = c[R]) == null ? void 0 : L.field) || "unknown"}_${_}`, le = {
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
- x.push(le), S = le;
2783
+ O.push(le), x = le;
2777
2784
  }
2778
- R === v.length - 1 ? f.forEach((H) => {
2779
- S.children || (S.children = []), S.children.push({
2785
+ S === m.length - 1 ? f.forEach((H) => {
2786
+ x.children || (x.children = []), x.children.push({
2780
2787
  ...H,
2781
- field: `${E}||${H.field}`,
2788
+ field: `${w}||${H.field}`,
2782
2789
  title: H.title || H.field,
2783
2790
  width: H.width || 100,
2784
- key: `${E}||${H.field}`
2791
+ key: `${w}||${H.field}`
2785
2792
  });
2786
- }) : (S.children || (S.children = []), x = S.children);
2793
+ }) : (x.children || (x.children = []), O = x.children);
2787
2794
  });
2788
- }), g.push(...C);
2795
+ }), y.push(...C);
2789
2796
  }
2790
- return g;
2797
+ return y;
2791
2798
  })();
2792
2799
  return {
2793
2800
  list: _e,
@@ -2807,11 +2814,11 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2807
2814
  key: f.field
2808
2815
  }));
2809
2816
  return {
2810
- list: t.map((f, h) => ({ cells: a.map((p) => ({
2811
- content: f[p.field] ?? xe,
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: p.style,
2821
+ style: v.style,
2815
2822
  data: f
2816
2823
  // Pass original record for detail view cells
2817
2824
  })), rowKey: h.toString() })),
@@ -2821,12 +2828,12 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2821
2828
  }
2822
2829
  return Jn(e);
2823
2830
  }, eo = Ut((e) => {
2824
- const { scroll: t, data: r, meta: n, sortParams: i, fields: s } = e, [a, l] = Ie(0), [c, f] = Ie([]), [h, b] = Ie([]), p = ze(null), j = ge(() => {
2825
- if (p.current) {
2826
- let I = p.current;
2827
- if (!I || !I.list || !I.dataExpandFilter)
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(I.dataExpandFilter(I.list));
2836
+ f(p.dataExpandFilter(p.list));
2830
2837
  }
2831
2838
  }, []);
2832
2839
  Ze(() => {
@@ -2836,50 +2843,50 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2836
2843
  sortParams: i,
2837
2844
  fields: s
2838
2845
  });
2839
- p.current = B, B.tableColumns && b(B.tableColumns), j();
2840
- }, [r, n, i, s, j]);
2841
- const T = ge((I) => I ? typeof I == "string" ? parseInt(I.replace("px", "")) || 0 : typeof I == "number" ? I : 0 : 0, []), { baseWidth: w, colCount: d } = we(() => {
2842
- let I = 0, B = 0;
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") && (I += T(Y.width), B += 1), Y != null && Y.children && Y.children.length > 0 && M(Y.children);
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: I, colCount: B };
2849
- }, [h, T]), F = we(() => {
2850
- const I = (B) => B.map((M) => {
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
- w < a && d > 0 && (W = Math.floor((a - w) / d));
2853
- const q = (M.width ? T(M.width) : An) + W;
2854
- return M.colSpan && M.colSpan > 1 ? M.width = q * M.colSpan : M.width = q, M.fixed && (M.fixed = !1), M != null && M.children && M.children.length > 0 && (M.children = I(M.children)), M;
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 I(bt(h));
2857
- }, [h, w, a, d, T]), k = we(() => {
2858
- let I = 0;
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") && (I += T(W.width)), W != null && W.children && W.children.length > 0 && B(W.children);
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(F), I;
2865
- }, [F, T]), J = ze(null), A = ze(null), P = ze(!1), D = ge(({ scrollLeft: I }) => {
2866
- P.current || (P.current = !0, J.current && (J.current.scrollLeft = I), requestAnimationFrame(() => {
2867
- P.current = !1;
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((I) => {
2870
- if (P.current)
2876
+ }, []), z = ge((p) => {
2877
+ if (F.current)
2871
2878
  return;
2872
- P.current = !0;
2873
- const B = I.currentTarget.scrollLeft;
2874
- A.current && (A.current.scrollLeft = B), requestAnimationFrame(() => {
2875
- P.current = !1;
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: I }) => {
2882
- I && I !== a && l(I);
2888
+ onResize: ({ width: p }) => {
2889
+ p && p !== a && l(p);
2883
2890
  },
2884
2891
  children: /* @__PURE__ */ Z.jsxs(
2885
2892
  "div",
@@ -2891,7 +2898,7 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2891
2898
  jn,
2892
2899
  {
2893
2900
  ref: J,
2894
- columns: F,
2901
+ columns: k,
2895
2902
  width: a - 8,
2896
2903
  onScroll: z,
2897
2904
  meta: n
@@ -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: A,
2912
+ ref: j,
2906
2913
  onScroll: D
2907
2914
  },
2908
2915
  scroll: t,
2909
- columns: F,
2916
+ columns: k,
2910
2917
  tableWidth: a,
2911
- gridWidth: k,
2912
- handleExpand: j,
2918
+ gridWidth: $,
2919
+ handleExpand: A,
2913
2920
  meta: n
2914
2921
  }
2915
2922
  ) })