xmirror-components 1.0.10 → 1.0.12

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,15 +1,10 @@
1
- import { message as Nr, notification as kr, Modal as qr, App as Mr, Checkbox as Wr, Switch as $r } from "antd";
2
- import Fr, { forwardRef as Ir, useRef as _, useMemo as pr, useEffect as X, useState as Lr, useCallback as Yr } from "react";
3
- let Er = Nr, Gr = kr, Ur = qr;
4
- function Wt({ children: r }) {
5
- const e = Mr.useApp();
6
- return Er = e.message, Ur = e.modal, Gr = e.notification, r;
7
- }
1
+ import kr, { forwardRef as qr, useRef as j, useMemo as yr, useEffect as Z, useState as Mr, useCallback as Wr } from "react";
2
+ import { message as $r, notification as Fr, Modal as Ir, App as Er, Checkbox as Lr, Switch as Yr } from "antd";
8
3
  var fe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
4
  function Tr(r) {
10
5
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
11
6
  }
12
- var se = { exports: {} }, re = {};
7
+ var se = { exports: {} }, te = {};
13
8
  /**
14
9
  * @license React
15
10
  * react-jsx-runtime.production.js
@@ -20,8 +15,8 @@ var se = { exports: {} }, re = {};
20
15
  * LICENSE file in the root directory of this source tree.
21
16
  */
22
17
  var er;
23
- function Br() {
24
- if (er) return re;
18
+ function Gr() {
19
+ if (er) return te;
25
20
  er = 1;
26
21
  var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
27
22
  function n(a, i, o) {
@@ -39,9 +34,9 @@ function Br() {
39
34
  props: o
40
35
  };
41
36
  }
42
- return re.Fragment = e, re.jsx = n, re.jsxs = n, re;
37
+ return te.Fragment = e, te.jsx = n, te.jsxs = n, te;
43
38
  }
44
- var te = {};
39
+ var ne = {};
45
40
  /**
46
41
  * @license React
47
42
  * react-jsx-runtime.development.js
@@ -52,12 +47,12 @@ var te = {};
52
47
  * LICENSE file in the root directory of this source tree.
53
48
  */
54
49
  var rr;
55
- function Hr() {
50
+ function Ur() {
56
51
  return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
57
52
  function r(t) {
58
53
  if (t == null) return null;
59
54
  if (typeof t == "function")
60
- return t.$$typeof === Pr ? null : t.displayName || t.name || null;
55
+ return t.$$typeof === Cr ? null : t.displayName || t.name || null;
61
56
  if (typeof t == "string") return t;
62
57
  switch (t) {
63
58
  case L:
@@ -79,9 +74,9 @@ function Hr() {
79
74
  ), t.$$typeof) {
80
75
  case oe:
81
76
  return (t.displayName || "Context") + ".Provider";
82
- case Z:
83
- return (t._context.displayName || "Context") + ".Consumer";
84
77
  case Q:
78
+ return (t._context.displayName || "Context") + ".Consumer";
79
+ case K:
85
80
  var l = t.render;
86
81
  return t = t.displayName, t || (t = l.displayName || l.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
87
82
  case C:
@@ -107,18 +102,18 @@ function Hr() {
107
102
  }
108
103
  if (l) {
109
104
  l = console;
110
- var d = l.error, y = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
105
+ var d = l.error, p = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
111
106
  return d.call(
112
107
  l,
113
108
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
114
- y
109
+ p
115
110
  ), e(t);
116
111
  }
117
112
  }
118
113
  function a() {
119
114
  }
120
115
  function i() {
121
- if (K === 0) {
116
+ if (ee === 0) {
122
117
  Ge = console.log, Ue = console.info, Be = console.warn, He = console.error, ze = console.group, De = console.groupCollapsed, Ve = console.groupEnd;
123
118
  var t = {
124
119
  configurable: !0,
@@ -136,10 +131,10 @@ function Hr() {
136
131
  groupEnd: t
137
132
  });
138
133
  }
139
- K++;
134
+ ee++;
140
135
  }
141
136
  function o() {
142
- if (K--, K === 0) {
137
+ if (ee--, ee === 0) {
143
138
  var t = { configurable: !0, enumerable: !0, writable: !0 };
144
139
  Object.defineProperties(console, {
145
140
  log: H({}, t, { value: Ge }),
@@ -151,7 +146,7 @@ function Hr() {
151
146
  groupEnd: H({}, t, { value: Ve })
152
147
  });
153
148
  }
154
- 0 > K && console.error(
149
+ 0 > ee && console.error(
155
150
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
156
151
  );
157
152
  }
@@ -168,14 +163,14 @@ function Hr() {
168
163
  ` + he + t + Je;
169
164
  }
170
165
  function f(t, l) {
171
- if (!t || ye) return "";
172
- var d = pe.get(t);
166
+ if (!t || pe) return "";
167
+ var d = ye.get(t);
173
168
  if (d !== void 0) return d;
174
- ye = !0, d = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
175
- var y = null;
176
- y = B.H, B.H = null, i();
169
+ pe = !0, d = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
170
+ var p = null;
171
+ p = B.H, B.H = null, i();
177
172
  try {
178
- var j = {
173
+ var _ = {
179
174
  DetermineComponentFrameRoot: function() {
180
175
  try {
181
176
  if (l) {
@@ -217,20 +212,20 @@ function Hr() {
217
212
  return [null, null];
218
213
  }
219
214
  };
220
- j.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
215
+ _.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
221
216
  var w = Object.getOwnPropertyDescriptor(
222
- j.DetermineComponentFrameRoot,
217
+ _.DetermineComponentFrameRoot,
223
218
  "name"
224
219
  );
225
220
  w && w.configurable && Object.defineProperty(
226
- j.DetermineComponentFrameRoot,
221
+ _.DetermineComponentFrameRoot,
227
222
  "name",
228
223
  { value: "DetermineComponentFrameRoot" }
229
224
  );
230
- var h = j.DetermineComponentFrameRoot(), F = h[0], V = h[1];
231
- if (F && V) {
225
+ var h = _.DetermineComponentFrameRoot(), F = h[0], J = h[1];
226
+ if (F && J) {
232
227
  var S = F.split(`
233
- `), z = V.split(`
228
+ `), z = J.split(`
234
229
  `);
235
230
  for (h = w = 0; w < S.length && !S[w].includes(
236
231
  "DetermineComponentFrameRoot"
@@ -248,21 +243,21 @@ function Hr() {
248
243
  if (w !== 1 || h !== 1)
249
244
  do
250
245
  if (w--, h--, 0 > h || S[w] !== z[h]) {
251
- var ee = `
246
+ var re = `
252
247
  ` + S[w].replace(
253
248
  " at new ",
254
249
  " at "
255
250
  );
256
- return t.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", t.displayName)), typeof t == "function" && pe.set(t, ee), ee;
251
+ return t.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", t.displayName)), typeof t == "function" && ye.set(t, re), re;
257
252
  }
258
253
  while (1 <= w && 0 <= h);
259
254
  break;
260
255
  }
261
256
  }
262
257
  } finally {
263
- ye = !1, B.H = y, o(), Error.prepareStackTrace = d;
258
+ pe = !1, B.H = p, o(), Error.prepareStackTrace = d;
264
259
  }
265
- return S = (S = t ? t.displayName || t.name : "") ? c(S) : "", typeof t == "function" && pe.set(t, S), S;
260
+ return S = (S = t ? t.displayName || t.name : "") ? c(S) : "", typeof t == "function" && ye.set(t, S), S;
266
261
  }
267
262
  function s(t) {
268
263
  if (t == null) return "";
@@ -282,7 +277,7 @@ function Hr() {
282
277
  }
283
278
  if (typeof t == "object")
284
279
  switch (t.$$typeof) {
285
- case Q:
280
+ case K:
286
281
  return t = f(t.render, !1), t;
287
282
  case C:
288
283
  return s(t.type);
@@ -318,22 +313,22 @@ function Hr() {
318
313
  configurable: !0
319
314
  });
320
315
  }
321
- function p() {
316
+ function y() {
322
317
  var t = r(this.type);
323
318
  return Ze[t] || (Ze[t] = !0, console.error(
324
319
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
325
320
  )), t = this.props.ref, t !== void 0 ? t : null;
326
321
  }
327
- function g(t, l, d, y, j, w) {
322
+ function g(t, l, d, p, _, w) {
328
323
  return d = w.ref, t = {
329
324
  $$typeof: k,
330
325
  type: t,
331
326
  key: l,
332
327
  props: w,
333
- _owner: j
328
+ _owner: _
334
329
  }, (d !== void 0 ? d : null) !== null ? Object.defineProperty(t, "ref", {
335
330
  enumerable: !1,
336
- get: p
331
+ get: y
337
332
  }) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
338
333
  configurable: !1,
339
334
  enumerable: !1,
@@ -346,14 +341,14 @@ function Hr() {
346
341
  value: null
347
342
  }), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
348
343
  }
349
- function b(t, l, d, y, j, w) {
350
- if (typeof t == "string" || typeof t == "function" || t === L || t === P || t === W || t === U || t === T || t === ue || typeof t == "object" && t !== null && (t.$$typeof === $ || t.$$typeof === C || t.$$typeof === oe || t.$$typeof === Z || t.$$typeof === Q || t.$$typeof === Cr || t.getModuleId !== void 0)) {
344
+ function b(t, l, d, p, _, w) {
345
+ if (typeof t == "string" || typeof t == "function" || t === L || t === P || t === W || t === U || t === T || t === ue || typeof t == "object" && t !== null && (t.$$typeof === $ || t.$$typeof === C || t.$$typeof === oe || t.$$typeof === Q || t.$$typeof === K || t.$$typeof === Ar || t.getModuleId !== void 0)) {
351
346
  var h = l.children;
352
347
  if (h !== void 0)
353
- if (y)
348
+ if (p)
354
349
  if (ge(h)) {
355
- for (y = 0; y < h.length; y++)
356
- E(h[y], t);
350
+ for (p = 0; p < h.length; p++)
351
+ E(h[p], t);
357
352
  Object.freeze && Object.freeze(h);
358
353
  } else
359
354
  console.error(
@@ -361,9 +356,9 @@ function Hr() {
361
356
  );
362
357
  else E(h, t);
363
358
  } else
364
- h = "", (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), t === null ? y = "null" : ge(t) ? y = "array" : t !== void 0 && t.$$typeof === k ? (y = "<" + (r(t.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : y = typeof t, console.error(
359
+ h = "", (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), t === null ? p = "null" : ge(t) ? p = "array" : t !== void 0 && t.$$typeof === k ? (p = "<" + (r(t.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : p = typeof t, console.error(
365
360
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
366
- y,
361
+ p,
367
362
  h
368
363
  );
369
364
  if (Ye.call(l, "key")) {
@@ -371,35 +366,35 @@ function Hr() {
371
366
  var F = Object.keys(l).filter(function(S) {
372
367
  return S !== "key";
373
368
  });
374
- y = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", Qe[h + y] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
369
+ p = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", Qe[h + p] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
375
370
  `A props object containing a "key" prop is being spread into JSX:
376
371
  let props = %s;
377
372
  <%s {...props} />
378
373
  React keys must be passed directly to JSX without using spread:
379
374
  let props = %s;
380
375
  <%s key={someKey} {...props} />`,
381
- y,
376
+ p,
382
377
  h,
383
378
  F,
384
379
  h
385
- ), Qe[h + y] = !0);
380
+ ), Qe[h + p] = !0);
386
381
  }
387
382
  if (h = null, d !== void 0 && (n(d), h = "" + d), m(l) && (n(l.key), h = "" + l.key), "key" in l) {
388
383
  d = {};
389
- for (var V in l)
390
- V !== "key" && (d[V] = l[V]);
384
+ for (var J in l)
385
+ J !== "key" && (d[J] = l[J]);
391
386
  } else d = l;
392
387
  return h && v(
393
388
  d,
394
389
  typeof t == "function" ? t.displayName || t.name || "Unknown" : t
395
- ), g(t, h, w, j, u(), d);
390
+ ), g(t, h, w, _, u(), d);
396
391
  }
397
392
  function E(t, l) {
398
- if (typeof t == "object" && t && t.$$typeof !== Ar) {
393
+ if (typeof t == "object" && t && t.$$typeof !== Nr) {
399
394
  if (ge(t))
400
395
  for (var d = 0; d < t.length; d++) {
401
- var y = t[d];
402
- x(y) && q(y, l);
396
+ var p = t[d];
397
+ x(p) && q(p, l);
403
398
  }
404
399
  else if (x(t))
405
400
  t._store && (t._store.validated = 1);
@@ -416,15 +411,15 @@ React keys must be passed directly to JSX without using spread:
416
411
  Ke[l] = !0;
417
412
  var d = "";
418
413
  t && t._owner != null && t._owner !== u() && (d = null, typeof t._owner.tag == "number" ? d = r(t._owner.type) : typeof t._owner.name == "string" && (d = t._owner.name), d = " It was passed a child from " + d + ".");
419
- var y = B.getCurrentStack;
414
+ var p = B.getCurrentStack;
420
415
  B.getCurrentStack = function() {
421
- var j = s(t.type);
422
- return y && (j += y() || ""), j;
416
+ var _ = s(t.type);
417
+ return p && (_ += p() || ""), _;
423
418
  }, console.error(
424
419
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
425
420
  l,
426
421
  d
427
- ), B.getCurrentStack = y;
422
+ ), B.getCurrentStack = p;
428
423
  }
429
424
  }
430
425
  function N(t) {
@@ -435,32 +430,46 @@ Check the render method of \`` + d + "`."), l || (t = r(t)) && (l = `
435
430
 
436
431
  Check the top-level render call using <` + t + ">."), l;
437
432
  }
438
- var M = Fr, k = Symbol.for("react.transitional.element"), G = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), Z = Symbol.for("react.consumer"), oe = Symbol.for("react.context"), Q = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), ue = Symbol.for("react.offscreen"), Le = Symbol.iterator, Pr = Symbol.for("react.client.reference"), B = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ye = Object.prototype.hasOwnProperty, H = Object.assign, Cr = Symbol.for("react.client.reference"), ge = Array.isArray, K = 0, Ge, Ue, Be, He, ze, De, Ve;
433
+ var M = kr, k = Symbol.for("react.transitional.element"), G = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), oe = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), ue = Symbol.for("react.offscreen"), Le = Symbol.iterator, Cr = Symbol.for("react.client.reference"), B = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ye = Object.prototype.hasOwnProperty, H = Object.assign, Ar = Symbol.for("react.client.reference"), ge = Array.isArray, ee = 0, Ge, Ue, Be, He, ze, De, Ve;
439
434
  a.__reactDisabledLog = !0;
440
- var he, Je, ye = !1, pe = new (typeof WeakMap == "function" ? WeakMap : Map)(), Ar = Symbol.for("react.client.reference"), Xe, Ze = {}, Qe = {}, Ke = {};
441
- te.Fragment = L, te.jsx = function(t, l, d, y, j) {
442
- return b(t, l, d, !1, y, j);
443
- }, te.jsxs = function(t, l, d, y, j) {
444
- return b(t, l, d, !0, y, j);
435
+ var he, Je, pe = !1, ye = new (typeof WeakMap == "function" ? WeakMap : Map)(), Nr = Symbol.for("react.client.reference"), Xe, Ze = {}, Qe = {}, Ke = {};
436
+ ne.Fragment = L, ne.jsx = function(t, l, d, p, _) {
437
+ return b(t, l, d, !1, p, _);
438
+ }, ne.jsxs = function(t, l, d, p, _) {
439
+ return b(t, l, d, !0, p, _);
445
440
  };
446
- }()), te;
441
+ }()), ne;
447
442
  }
448
443
  var tr;
449
- function zr() {
450
- return tr || (tr = 1, process.env.NODE_ENV === "production" ? se.exports = Br() : se.exports = Hr()), se.exports;
444
+ function Br() {
445
+ return tr || (tr = 1, process.env.NODE_ENV === "production" ? se.exports = Gr() : se.exports = Ur()), se.exports;
446
+ }
447
+ var V = Br();
448
+ let wr = $r, Hr = Fr, zr = Ir;
449
+ function Dr({ children: r }) {
450
+ const e = Er.useApp();
451
+ return wr = e.message, zr = e.modal, Hr = e.notification, r || "";
452
+ }
453
+ function $t({ children: r, ...e }) {
454
+ return /* @__PURE__ */ V.jsx(
455
+ Er,
456
+ {
457
+ ...e,
458
+ children: /* @__PURE__ */ V.jsx(Dr, { children: r })
459
+ }
460
+ );
451
461
  }
452
- var ne = zr();
453
- const $t = Ir(
454
- ({ type: r = "", className: e = "", symbol: n = !1, ...a }, i) => n ? /* @__PURE__ */ ne.jsx(
462
+ const Ft = qr(
463
+ ({ type: r = "", className: e = "", symbol: n = !1, ...a }, i) => n ? /* @__PURE__ */ V.jsx(
455
464
  "svg",
456
465
  {
457
466
  className: `iconfont-symbol ${r} ${e}`,
458
467
  "aria-hidden": "true",
459
468
  ref: i,
460
469
  ...a,
461
- children: /* @__PURE__ */ ne.jsx("use", { xlinkHref: `#${r}` })
470
+ children: /* @__PURE__ */ V.jsx("use", { xlinkHref: `#${r}` })
462
471
  }
463
- ) : /* @__PURE__ */ ne.jsx(
472
+ ) : /* @__PURE__ */ V.jsx(
464
473
  "i",
465
474
  {
466
475
  className: `iconfont ${r} ${e}`,
@@ -468,7 +477,7 @@ const $t = Ir(
468
477
  ...a
469
478
  }
470
479
  )
471
- ), Ft = ({
480
+ ), It = ({
472
481
  checked: r,
473
482
  onChange: e,
474
483
  trueValue: n = !0,
@@ -481,8 +490,8 @@ const $t = Ir(
481
490
  const s = r === n, u = (m) => {
482
491
  e == null || e(m.target.checked ? n : a, m);
483
492
  };
484
- return /* @__PURE__ */ ne.jsx(
485
- Wr,
493
+ return /* @__PURE__ */ V.jsx(
494
+ Lr,
486
495
  {
487
496
  checked: s,
488
497
  onChange: u,
@@ -490,7 +499,7 @@ const $t = Ir(
490
499
  children: c || (s ? i : o)
491
500
  }
492
501
  );
493
- }, It = ({
502
+ }, Lt = ({
494
503
  checked: r,
495
504
  onChange: e,
496
505
  trueValue: n = !0,
@@ -500,8 +509,8 @@ const $t = Ir(
500
509
  const o = r === n, c = (f, s) => {
501
510
  e == null || e(f ? n : a, s);
502
511
  };
503
- return /* @__PURE__ */ ne.jsx(
504
- $r,
512
+ return /* @__PURE__ */ V.jsx(
513
+ Yr,
505
514
  {
506
515
  checked: o,
507
516
  onChange: c,
@@ -509,9 +518,9 @@ const $t = Ir(
509
518
  }
510
519
  );
511
520
  };
512
- var Dr = function(r) {
521
+ var Vr = function(r) {
513
522
  return function(e, n) {
514
- var a = _(!1);
523
+ var a = j(!1);
515
524
  r(function() {
516
525
  return function() {
517
526
  a.current = !1;
@@ -532,7 +541,7 @@ var Dr = function(r) {
532
541
  return e;
533
542
  }, A.apply(this, arguments);
534
543
  };
535
- function wr(r, e) {
544
+ function jr(r, e) {
536
545
  var n = {};
537
546
  for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && e.indexOf(a) < 0 && (n[a] = r[a]);
538
547
  if (r != null && typeof Object.getOwnPropertySymbols == "function")
@@ -540,7 +549,7 @@ function wr(r, e) {
540
549
  e.indexOf(a[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, a[i]) && (n[a[i]] = r[a[i]]);
541
550
  return n;
542
551
  }
543
- function Vr(r, e, n, a) {
552
+ function Jr(r, e, n, a) {
544
553
  function i(o) {
545
554
  return o instanceof n ? o : new n(function(c) {
546
555
  c(o);
@@ -567,7 +576,7 @@ function Vr(r, e, n, a) {
567
576
  u((a = a.apply(r, e || [])).next());
568
577
  });
569
578
  }
570
- function Jr(r, e) {
579
+ function Xr(r, e) {
571
580
  var n = { label: 0, sent: function() {
572
581
  if (o[0] & 1) throw o[1];
573
582
  return o[1];
@@ -652,22 +661,22 @@ function O(r, e, n) {
652
661
  var ve = function(r) {
653
662
  return typeof r == "function";
654
663
  }, me = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
655
- function J(r) {
664
+ function X(r) {
656
665
  me && (ve(r) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof r)));
657
- var e = _(r);
658
- e.current = pr(function() {
666
+ var e = j(r);
667
+ e.current = yr(function() {
659
668
  return r;
660
669
  }, [r]);
661
- var n = _();
670
+ var n = j();
662
671
  return n.current || (n.current = function() {
663
672
  for (var a = [], i = 0; i < arguments.length; i++)
664
673
  a[i] = arguments[i];
665
674
  return e.current.apply(this, a);
666
675
  }), n.current;
667
676
  }
668
- const We = Dr(X);
677
+ const We = Vr(Z);
669
678
  var _r = function(r, e) {
670
- var n = e.manual, a = e.ready, i = a === void 0 ? !0 : a, o = e.defaultParams, c = o === void 0 ? [] : o, f = e.refreshDeps, s = f === void 0 ? [] : f, u = e.refreshDepsAction, m = _(!1);
679
+ var n = e.manual, a = e.ready, i = a === void 0 ? !0 : a, o = e.defaultParams, c = o === void 0 ? [] : o, f = e.refreshDeps, s = f === void 0 ? [] : f, u = e.refreshDepsAction, m = j(!1);
671
680
  return m.current = !1, We(function() {
672
681
  !n && i && (m.current = !0, r.run.apply(r, O([], R(c), !1)));
673
682
  }, [i]), We(function() {
@@ -687,33 +696,33 @@ _r.onInit = function(r) {
687
696
  loading: !a && n
688
697
  };
689
698
  };
690
- function Xr(r, e) {
699
+ function Zr(r, e) {
691
700
  if (r === e) return !0;
692
701
  for (var n = 0; n < r.length; n++)
693
702
  if (!Object.is(r[n], e[n])) return !1;
694
703
  return !0;
695
704
  }
696
- function jr(r, e) {
697
- var n = _({
705
+ function Rr(r, e) {
706
+ var n = j({
698
707
  deps: e,
699
708
  obj: void 0,
700
709
  initialized: !1
701
710
  }).current;
702
- return (n.initialized === !1 || !Xr(n.deps, e)) && (n.deps = e, n.obj = r(), n.initialized = !0), n.obj;
711
+ return (n.initialized === !1 || !Zr(n.deps, e)) && (n.deps = e, n.obj = r(), n.initialized = !0), n.obj;
703
712
  }
704
- function Rr(r) {
705
- var e = _(r);
713
+ function Or(r) {
714
+ var e = j(r);
706
715
  return e.current = r, e;
707
716
  }
708
717
  var $e = function(r) {
709
718
  me && (ve(r) || console.error("useUnmount expected parameter is a function, got ".concat(typeof r)));
710
- var e = Rr(r);
711
- X(function() {
719
+ var e = Or(r);
720
+ Z(function() {
712
721
  return function() {
713
722
  e.current();
714
723
  };
715
724
  }, []);
716
- }, le = /* @__PURE__ */ new Map(), Zr = function(r, e, n) {
725
+ }, le = /* @__PURE__ */ new Map(), Qr = function(r, e, n) {
717
726
  var a = le.get(r);
718
727
  a != null && a.timer && clearTimeout(a.timer);
719
728
  var i = void 0;
@@ -722,17 +731,17 @@ var $e = function(r) {
722
731
  }, e)), le.set(r, A(A({}, n), {
723
732
  timer: i
724
733
  }));
725
- }, Qr = function(r) {
734
+ }, Kr = function(r) {
726
735
  return le.get(r);
727
- }, de = /* @__PURE__ */ new Map(), Kr = function(r) {
736
+ }, de = /* @__PURE__ */ new Map(), et = function(r) {
728
737
  return de.get(r);
729
- }, et = function(r, e) {
738
+ }, rt = function(r, e) {
730
739
  de.set(r, e), e.then(function(n) {
731
740
  return de.delete(r), n;
732
741
  }).catch(function() {
733
742
  de.delete(r);
734
743
  });
735
- }, D = {}, rt = function(r, e) {
744
+ }, D = {}, tt = function(r, e) {
736
745
  D[r] && D[r].forEach(function(n) {
737
746
  return n(e);
738
747
  });
@@ -741,15 +750,15 @@ var $e = function(r) {
741
750
  var a = D[r].indexOf(e);
742
751
  D[r].splice(a, 1);
743
752
  };
744
- }, tt = function(r, e) {
745
- var n = e.cacheKey, a = e.cacheTime, i = a === void 0 ? 5 * 60 * 1e3 : a, o = e.staleTime, c = o === void 0 ? 0 : o, f = e.setCache, s = e.getCache, u = _(), m = _(), v = function(g, b) {
746
- f ? f(b) : Zr(g, i, b), rt(g, b.data);
747
- }, p = function(g, b) {
748
- return b === void 0 && (b = []), s ? s(b) : Qr(g);
753
+ }, nt = function(r, e) {
754
+ var n = e.cacheKey, a = e.cacheTime, i = a === void 0 ? 5 * 60 * 1e3 : a, o = e.staleTime, c = o === void 0 ? 0 : o, f = e.setCache, s = e.getCache, u = j(), m = j(), v = function(g, b) {
755
+ f ? f(b) : Qr(g, i, b), tt(g, b.data);
756
+ }, y = function(g, b) {
757
+ return b === void 0 && (b = []), s ? s(b) : Kr(g);
749
758
  };
750
- return jr(function() {
759
+ return Rr(function() {
751
760
  if (n) {
752
- var g = p(n);
761
+ var g = y(n);
753
762
  g && Object.hasOwnProperty.call(g, "data") && (r.state.data = g.data, r.state.params = g.params, (c === -1 || (/* @__PURE__ */ new Date()).getTime() - g.time <= c) && (r.state.loading = !1)), u.current = Ee(n, function(b) {
754
763
  r.setState({
755
764
  data: b
@@ -761,7 +770,7 @@ var $e = function(r) {
761
770
  (g = u.current) === null || g === void 0 || g.call(u);
762
771
  }), n ? {
763
772
  onBefore: function(g) {
764
- var b = p(n, g);
773
+ var b = y(n, g);
765
774
  return !b || !Object.hasOwnProperty.call(b, "data") ? {} : c === -1 || (/* @__PURE__ */ new Date()).getTime() - b.time <= c ? {
766
775
  loading: !1,
767
776
  data: b == null ? void 0 : b.data,
@@ -773,10 +782,10 @@ var $e = function(r) {
773
782
  };
774
783
  },
775
784
  onRequest: function(g, b) {
776
- var E = Kr(n);
785
+ var E = et(n);
777
786
  return E && E !== m.current ? {
778
787
  servicePromise: E
779
- } : (E = g.apply(void 0, O([], R(b), !1)), m.current = E, et(n, E), {
788
+ } : (E = g.apply(void 0, O([], R(b), !1)), m.current = E, rt(n, E), {
780
789
  servicePromise: E
781
790
  });
782
791
  },
@@ -816,30 +825,30 @@ function Fe() {
816
825
  return Te = r, Te;
817
826
  }
818
827
  var we, ar;
819
- function nt() {
828
+ function at() {
820
829
  if (ar) return we;
821
830
  ar = 1;
822
831
  var r = typeof fe == "object" && fe && fe.Object === Object && fe;
823
832
  return we = r, we;
824
833
  }
825
- var _e, ir;
826
- function Or() {
827
- if (ir) return _e;
834
+ var je, ir;
835
+ function Sr() {
836
+ if (ir) return je;
828
837
  ir = 1;
829
- var r = nt(), e = typeof self == "object" && self && self.Object === Object && self, n = r || e || Function("return this")();
830
- return _e = n, _e;
838
+ var r = at(), e = typeof self == "object" && self && self.Object === Object && self, n = r || e || Function("return this")();
839
+ return je = n, je;
831
840
  }
832
- var je, or;
833
- function at() {
834
- if (or) return je;
841
+ var _e, or;
842
+ function it() {
843
+ if (or) return _e;
835
844
  or = 1;
836
- var r = Or(), e = function() {
845
+ var r = Sr(), e = function() {
837
846
  return r.Date.now();
838
847
  };
839
- return je = e, je;
848
+ return _e = e, _e;
840
849
  }
841
850
  var Re, ur;
842
- function it() {
851
+ function ot() {
843
852
  if (ur) return Re;
844
853
  ur = 1;
845
854
  var r = /\s/;
@@ -851,27 +860,27 @@ function it() {
851
860
  return Re = e, Re;
852
861
  }
853
862
  var Oe, cr;
854
- function ot() {
863
+ function ut() {
855
864
  if (cr) return Oe;
856
865
  cr = 1;
857
- var r = it(), e = /^\s+/;
866
+ var r = ot(), e = /^\s+/;
858
867
  function n(a) {
859
868
  return a && a.slice(0, r(a) + 1).replace(e, "");
860
869
  }
861
870
  return Oe = n, Oe;
862
871
  }
863
872
  var Se, fr;
864
- function Sr() {
873
+ function xr() {
865
874
  if (fr) return Se;
866
875
  fr = 1;
867
- var r = Or(), e = r.Symbol;
876
+ var r = Sr(), e = r.Symbol;
868
877
  return Se = e, Se;
869
878
  }
870
879
  var xe, sr;
871
- function ut() {
880
+ function ct() {
872
881
  if (sr) return xe;
873
882
  sr = 1;
874
- var r = Sr(), e = Object.prototype, n = e.hasOwnProperty, a = e.toString, i = r ? r.toStringTag : void 0;
883
+ var r = xr(), e = Object.prototype, n = e.hasOwnProperty, a = e.toString, i = r ? r.toStringTag : void 0;
875
884
  function o(c) {
876
885
  var f = n.call(c, i), s = c[i];
877
886
  try {
@@ -885,7 +894,7 @@ function ut() {
885
894
  return xe = o, xe;
886
895
  }
887
896
  var Pe, lr;
888
- function ct() {
897
+ function ft() {
889
898
  if (lr) return Pe;
890
899
  lr = 1;
891
900
  var r = Object.prototype, e = r.toString;
@@ -895,17 +904,17 @@ function ct() {
895
904
  return Pe = n, Pe;
896
905
  }
897
906
  var Ce, dr;
898
- function ft() {
907
+ function st() {
899
908
  if (dr) return Ce;
900
909
  dr = 1;
901
- var r = Sr(), e = ut(), n = ct(), a = "[object Null]", i = "[object Undefined]", o = r ? r.toStringTag : void 0;
910
+ var r = xr(), e = ct(), n = ft(), a = "[object Null]", i = "[object Undefined]", o = r ? r.toStringTag : void 0;
902
911
  function c(f) {
903
912
  return f == null ? f === void 0 ? i : a : o && o in Object(f) ? e(f) : n(f);
904
913
  }
905
914
  return Ce = c, Ce;
906
915
  }
907
916
  var Ae, vr;
908
- function st() {
917
+ function lt() {
909
918
  if (vr) return Ae;
910
919
  vr = 1;
911
920
  function r(e) {
@@ -914,20 +923,20 @@ function st() {
914
923
  return Ae = r, Ae;
915
924
  }
916
925
  var Ne, mr;
917
- function lt() {
926
+ function dt() {
918
927
  if (mr) return Ne;
919
928
  mr = 1;
920
- var r = ft(), e = st(), n = "[object Symbol]";
929
+ var r = st(), e = lt(), n = "[object Symbol]";
921
930
  function a(i) {
922
931
  return typeof i == "symbol" || e(i) && r(i) == n;
923
932
  }
924
933
  return Ne = a, Ne;
925
934
  }
926
935
  var ke, br;
927
- function dt() {
936
+ function vt() {
928
937
  if (br) return ke;
929
938
  br = 1;
930
- var r = ot(), e = Fe(), n = lt(), a = NaN, i = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, c = /^0o[0-7]+$/i, f = parseInt;
939
+ var r = ut(), e = Fe(), n = dt(), a = NaN, i = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, c = /^0o[0-7]+$/i, f = parseInt;
931
940
  function s(u) {
932
941
  if (typeof u == "number")
933
942
  return u;
@@ -946,15 +955,15 @@ function dt() {
946
955
  return ke = s, ke;
947
956
  }
948
957
  var qe, gr;
949
- function xr() {
958
+ function Pr() {
950
959
  if (gr) return qe;
951
960
  gr = 1;
952
- var r = Fe(), e = at(), n = dt(), a = "Expected a function", i = Math.max, o = Math.min;
961
+ var r = Fe(), e = it(), n = vt(), a = "Expected a function", i = Math.max, o = Math.min;
953
962
  function c(f, s, u) {
954
- var m, v, p, g, b, E, x = 0, q = !1, N = !1, M = !0;
963
+ var m, v, y, g, b, E, x = 0, q = !1, N = !1, M = !0;
955
964
  if (typeof f != "function")
956
965
  throw new TypeError(a);
957
- s = n(s) || 0, r(u) && (q = !!u.leading, N = "maxWait" in u, p = N ? i(n(u.maxWait) || 0, s) : p, M = "trailing" in u ? !!u.trailing : M);
966
+ s = n(s) || 0, r(u) && (q = !!u.leading, N = "maxWait" in u, y = N ? i(n(u.maxWait) || 0, s) : y, M = "trailing" in u ? !!u.trailing : M);
958
967
  function k(T) {
959
968
  var C = m, $ = v;
960
969
  return m = v = void 0, x = T, g = f.apply($, C), g;
@@ -964,26 +973,26 @@ function xr() {
964
973
  }
965
974
  function L(T) {
966
975
  var C = T - E, $ = T - x, ue = s - C;
967
- return N ? o(ue, p - $) : ue;
976
+ return N ? o(ue, y - $) : ue;
968
977
  }
969
978
  function W(T) {
970
979
  var C = T - E, $ = T - x;
971
- return E === void 0 || C >= s || C < 0 || N && $ >= p;
980
+ return E === void 0 || C >= s || C < 0 || N && $ >= y;
972
981
  }
973
982
  function P() {
974
983
  var T = e();
975
984
  if (W(T))
976
- return Z(T);
985
+ return Q(T);
977
986
  b = setTimeout(P, L(T));
978
987
  }
979
- function Z(T) {
988
+ function Q(T) {
980
989
  return b = void 0, M && m ? k(T) : (m = v = void 0, g);
981
990
  }
982
991
  function oe() {
983
992
  b !== void 0 && clearTimeout(b), x = 0, m = E = v = b = void 0;
984
993
  }
985
- function Q() {
986
- return b === void 0 ? g : Z(e());
994
+ function K() {
995
+ return b === void 0 ? g : Q(e());
987
996
  }
988
997
  function U() {
989
998
  var T = e(), C = W(T);
@@ -995,29 +1004,29 @@ function xr() {
995
1004
  }
996
1005
  return b === void 0 && (b = setTimeout(P, s)), g;
997
1006
  }
998
- return U.cancel = oe, U.flush = Q, U;
1007
+ return U.cancel = oe, U.flush = K, U;
999
1008
  }
1000
1009
  return qe = c, qe;
1001
1010
  }
1002
- var vt = xr();
1003
- const mt = /* @__PURE__ */ Tr(vt);
1004
- var bt = function(r, e) {
1005
- var n = e.debounceWait, a = e.debounceLeading, i = e.debounceTrailing, o = e.debounceMaxWait, c = _(), f = pr(function() {
1011
+ var mt = Pr();
1012
+ const bt = /* @__PURE__ */ Tr(mt);
1013
+ var gt = function(r, e) {
1014
+ var n = e.debounceWait, a = e.debounceLeading, i = e.debounceTrailing, o = e.debounceMaxWait, c = j(), f = yr(function() {
1006
1015
  var s = {};
1007
1016
  return a !== void 0 && (s.leading = a), i !== void 0 && (s.trailing = i), o !== void 0 && (s.maxWait = o), s;
1008
1017
  }, [a, i, o]);
1009
- return X(function() {
1018
+ return Z(function() {
1010
1019
  if (n) {
1011
1020
  var s = r.runAsync.bind(r);
1012
- return c.current = mt(function(u) {
1021
+ return c.current = bt(function(u) {
1013
1022
  u();
1014
1023
  }, n, f), r.runAsync = function() {
1015
1024
  for (var u = [], m = 0; m < arguments.length; m++)
1016
1025
  u[m] = arguments[m];
1017
- return new Promise(function(v, p) {
1026
+ return new Promise(function(v, y) {
1018
1027
  var g;
1019
1028
  (g = c.current) === null || g === void 0 || g.call(c, function() {
1020
- s.apply(void 0, O([], R(u), !1)).then(v).catch(p);
1029
+ s.apply(void 0, O([], R(u), !1)).then(v).catch(y);
1021
1030
  });
1022
1031
  });
1023
1032
  }, function() {
@@ -1031,8 +1040,8 @@ var bt = function(r, e) {
1031
1040
  (s = c.current) === null || s === void 0 || s.cancel();
1032
1041
  }
1033
1042
  } : {};
1034
- }, gt = function(r, e) {
1035
- var n = e.loadingDelay, a = e.ready, i = _();
1043
+ }, ht = function(r, e) {
1044
+ var n = e.loadingDelay, a = e.ready, i = j();
1036
1045
  if (!n)
1037
1046
  return {};
1038
1047
  var o = function() {
@@ -1060,7 +1069,7 @@ function Ie() {
1060
1069
  return be ? document.visibilityState !== "hidden" : !0;
1061
1070
  }
1062
1071
  var ae = [];
1063
- function ht(r) {
1072
+ function pt(r) {
1064
1073
  return ae.push(r), function() {
1065
1074
  var n = ae.indexOf(r);
1066
1075
  ae.splice(n, 1);
@@ -1076,8 +1085,8 @@ if (be) {
1076
1085
  };
1077
1086
  window.addEventListener("visibilitychange", yt, !1);
1078
1087
  }
1079
- var pt = function(r, e) {
1080
- var n = e.pollingInterval, a = e.pollingWhenHidden, i = a === void 0 ? !0 : a, o = e.pollingErrorRetryCount, c = o === void 0 ? -1 : o, f = _(), s = _(), u = _(0), m = function() {
1088
+ var Et = function(r, e) {
1089
+ var n = e.pollingInterval, a = e.pollingWhenHidden, i = a === void 0 ? !0 : a, o = e.pollingErrorRetryCount, c = o === void 0 ? -1 : o, f = j(), s = j(), u = j(0), m = function() {
1081
1090
  var v;
1082
1091
  f.current && clearTimeout(f.current), (v = s.current) === null || v === void 0 || v.call(s);
1083
1092
  };
@@ -1096,7 +1105,7 @@ var pt = function(r, e) {
1096
1105
  onFinally: function() {
1097
1106
  c === -1 || // When an error occurs, the request is not repeated after pollingErrorRetryCount retries
1098
1107
  c !== -1 && u.current <= c ? f.current = setTimeout(function() {
1099
- !i && !Ie() ? s.current = ht(function() {
1108
+ !i && !Ie() ? s.current = pt(function() {
1100
1109
  r.refresh();
1101
1110
  }) : r.refresh();
1102
1111
  }, n) : u.current = 0;
@@ -1106,7 +1115,7 @@ var pt = function(r, e) {
1106
1115
  }
1107
1116
  } : {};
1108
1117
  };
1109
- function Et(r, e) {
1118
+ function Tt(r, e) {
1110
1119
  var n = !1;
1111
1120
  return function() {
1112
1121
  for (var a = [], i = 0; i < arguments.length; i++)
@@ -1116,11 +1125,11 @@ function Et(r, e) {
1116
1125
  }, e));
1117
1126
  };
1118
1127
  }
1119
- function Tt() {
1128
+ function wt() {
1120
1129
  return be && typeof navigator.onLine < "u" ? navigator.onLine : !0;
1121
1130
  }
1122
1131
  var ie = [];
1123
- function wt(r) {
1132
+ function jt(r) {
1124
1133
  return ie.push(r), function() {
1125
1134
  var n = ie.indexOf(r);
1126
1135
  n > -1 && ie.splice(n, 1);
@@ -1128,7 +1137,7 @@ function wt(r) {
1128
1137
  }
1129
1138
  if (be) {
1130
1139
  var hr = function() {
1131
- if (!(!Ie() || !Tt()))
1140
+ if (!(!Ie() || !wt()))
1132
1141
  for (var r = 0; r < ie.length; r++) {
1133
1142
  var e = ie[r];
1134
1143
  e();
@@ -1137,14 +1146,14 @@ if (be) {
1137
1146
  window.addEventListener("visibilitychange", hr, !1), window.addEventListener("focus", hr, !1);
1138
1147
  }
1139
1148
  var _t = function(r, e) {
1140
- var n = e.refreshOnWindowFocus, a = e.focusTimespan, i = a === void 0 ? 5e3 : a, o = _(), c = function() {
1149
+ var n = e.refreshOnWindowFocus, a = e.focusTimespan, i = a === void 0 ? 5e3 : a, o = j(), c = function() {
1141
1150
  var f;
1142
1151
  (f = o.current) === null || f === void 0 || f.call(o);
1143
1152
  };
1144
- return X(function() {
1153
+ return Z(function() {
1145
1154
  if (n) {
1146
- var f = Et(r.refresh.bind(r), i);
1147
- o.current = wt(function() {
1155
+ var f = Tt(r.refresh.bind(r), i);
1156
+ o.current = jt(function() {
1148
1157
  f();
1149
1158
  });
1150
1159
  }
@@ -1154,8 +1163,8 @@ var _t = function(r, e) {
1154
1163
  }, [n, i]), $e(function() {
1155
1164
  c();
1156
1165
  }), {};
1157
- }, jt = function(r, e) {
1158
- var n = e.retryInterval, a = e.retryCount, i = _(), o = _(0), c = _(!1);
1166
+ }, Rt = function(r, e) {
1167
+ var n = e.retryInterval, a = e.retryCount, i = j(), o = j(0), c = j(!1);
1159
1168
  return a ? {
1160
1169
  onBefore: function() {
1161
1170
  c.current || (o.current = 0), c.current = !1, i.current && clearTimeout(i.current);
@@ -1176,11 +1185,11 @@ var _t = function(r, e) {
1176
1185
  o.current = 0, i.current && clearTimeout(i.current);
1177
1186
  }
1178
1187
  } : {};
1179
- }, Me, yr;
1180
- function Rt() {
1181
- if (yr) return Me;
1182
- yr = 1;
1183
- var r = xr(), e = Fe(), n = "Expected a function";
1188
+ }, Me, pr;
1189
+ function Ot() {
1190
+ if (pr) return Me;
1191
+ pr = 1;
1192
+ var r = Pr(), e = Fe(), n = "Expected a function";
1184
1193
  function a(i, o, c) {
1185
1194
  var f = !0, s = !0;
1186
1195
  if (typeof i != "function")
@@ -1193,21 +1202,21 @@ function Rt() {
1193
1202
  }
1194
1203
  return Me = a, Me;
1195
1204
  }
1196
- var Ot = Rt();
1197
- const St = /* @__PURE__ */ Tr(Ot);
1198
- var xt = function(r, e) {
1199
- var n = e.throttleWait, a = e.throttleLeading, i = e.throttleTrailing, o = _(), c = {};
1200
- return a !== void 0 && (c.leading = a), i !== void 0 && (c.trailing = i), X(function() {
1205
+ var St = Ot();
1206
+ const xt = /* @__PURE__ */ Tr(St);
1207
+ var Pt = function(r, e) {
1208
+ var n = e.throttleWait, a = e.throttleLeading, i = e.throttleTrailing, o = j(), c = {};
1209
+ return a !== void 0 && (c.leading = a), i !== void 0 && (c.trailing = i), Z(function() {
1201
1210
  if (n) {
1202
1211
  var f = r.runAsync.bind(r);
1203
- return o.current = St(function(s) {
1212
+ return o.current = xt(function(s) {
1204
1213
  s();
1205
1214
  }, n, c), r.runAsync = function() {
1206
1215
  for (var s = [], u = 0; u < arguments.length; u++)
1207
1216
  s[u] = arguments[u];
1208
1217
  return new Promise(function(m, v) {
1209
- var p;
1210
- (p = o.current) === null || p === void 0 || p.call(o, function() {
1218
+ var y;
1219
+ (y = o.current) === null || y === void 0 || y.call(o, function() {
1211
1220
  f.apply(void 0, O([], R(s), !1)).then(m).catch(v);
1212
1221
  });
1213
1222
  });
@@ -1222,16 +1231,16 @@ var xt = function(r, e) {
1222
1231
  (f = o.current) === null || f === void 0 || f.cancel();
1223
1232
  }
1224
1233
  } : {};
1225
- }, Pt = function(r) {
1226
- me && (ve(r) || console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof r, '".'))), X(function() {
1234
+ }, Ct = function(r) {
1235
+ me && (ve(r) || console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof r, '".'))), Z(function() {
1227
1236
  r == null || r();
1228
1237
  }, []);
1229
- }, Ct = function() {
1230
- var r = R(Lr({}), 2), e = r[1];
1231
- return Yr(function() {
1238
+ }, At = function() {
1239
+ var r = R(Mr({}), 2), e = r[1];
1240
+ return Wr(function() {
1232
1241
  return e({});
1233
1242
  }, []);
1234
- }, At = (
1243
+ }, Nt = (
1235
1244
  /** @class */
1236
1245
  function() {
1237
1246
  function r(e, n, a, i) {
@@ -1257,12 +1266,12 @@ var xt = function(r, e) {
1257
1266
  }, r.prototype.runAsync = function() {
1258
1267
  for (var e = [], n = 0; n < arguments.length; n++)
1259
1268
  e[n] = arguments[n];
1260
- return Vr(this, void 0, void 0, function() {
1261
- var a, i, o, c, f, s, u, m, v, p, g, b, E, x, q, N, M, k, G, L, W;
1262
- return Jr(this, function(P) {
1269
+ return Jr(this, void 0, void 0, function() {
1270
+ var a, i, o, c, f, s, u, m, v, y, g, b, E, x, q, N, M, k, G, L, W;
1271
+ return Xr(this, function(P) {
1263
1272
  switch (P.label) {
1264
1273
  case 0:
1265
- if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore", e), o = i.stopNow, c = o === void 0 ? !1 : o, f = i.returnNow, s = f === void 0 ? !1 : f, u = wr(i, ["stopNow", "returnNow"]), c)
1274
+ if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore", e), o = i.stopNow, c = o === void 0 ? !1 : o, f = i.returnNow, s = f === void 0 ? !1 : f, u = jr(i, ["stopNow", "returnNow"]), c)
1266
1275
  return [2, new Promise(function() {
1267
1276
  })];
1268
1277
  if (this.setState(A({
@@ -1281,13 +1290,13 @@ var xt = function(r, e) {
1281
1290
  loading: !1
1282
1291
  }), (q = (x = this.options).onSuccess) === null || q === void 0 || q.call(x, v, e), this.runPluginHandler("onSuccess", v, e), (M = (N = this.options).onFinally) === null || M === void 0 || M.call(N, e, v, void 0), a === this.count && this.runPluginHandler("onFinally", e, v, void 0), [2, v]);
1283
1292
  case 3:
1284
- if (p = P.sent(), a !== this.count)
1293
+ if (y = P.sent(), a !== this.count)
1285
1294
  return [2, new Promise(function() {
1286
1295
  })];
1287
1296
  throw this.setState({
1288
- error: p,
1297
+ error: y,
1289
1298
  loading: !1
1290
- }), (G = (k = this.options).onError) === null || G === void 0 || G.call(k, p, e), this.runPluginHandler("onError", p, e), (W = (L = this.options).onFinally) === null || W === void 0 || W.call(L, e, void 0, p), a === this.count && this.runPluginHandler("onFinally", e, void 0, p), p;
1299
+ }), (G = (k = this.options).onError) === null || G === void 0 || G.call(k, y, e), this.runPluginHandler("onError", y, e), (W = (L = this.options).onFinally) === null || W === void 0 || W.call(L, e, void 0, y), a === this.count && this.runPluginHandler("onFinally", e, void 0, y), y;
1291
1300
  case 4:
1292
1301
  return [
1293
1302
  2
@@ -1318,26 +1327,26 @@ var xt = function(r, e) {
1318
1327
  }, r;
1319
1328
  }()
1320
1329
  );
1321
- function Nt(r, e, n) {
1330
+ function kt(r, e, n) {
1322
1331
  e === void 0 && (e = {}), n === void 0 && (n = []);
1323
- var a = e.manual, i = a === void 0 ? !1 : a, o = e.ready, c = o === void 0 ? !0 : o, f = wr(e, ["manual", "ready"]);
1332
+ var a = e.manual, i = a === void 0 ? !1 : a, o = e.ready, c = o === void 0 ? !0 : o, f = jr(e, ["manual", "ready"]);
1324
1333
  me && e.defaultParams && !Array.isArray(e.defaultParams) && console.warn("expected defaultParams is array, got ".concat(typeof e.defaultParams));
1325
1334
  var s = A({
1326
1335
  manual: i,
1327
1336
  ready: c
1328
- }, f), u = Rr(r), m = Ct(), v = jr(function() {
1329
- var p = n.map(function(g) {
1337
+ }, f), u = Or(r), m = At(), v = Rr(function() {
1338
+ var y = n.map(function(g) {
1330
1339
  var b;
1331
1340
  return (b = g == null ? void 0 : g.onInit) === null || b === void 0 ? void 0 : b.call(g, s);
1332
1341
  }).filter(Boolean);
1333
- return new At(u, s, m, Object.assign.apply(Object, O([{}], R(p), !1)));
1342
+ return new Nt(u, s, m, Object.assign.apply(Object, O([{}], R(y), !1)));
1334
1343
  }, []);
1335
- return v.options = s, v.pluginImpls = n.map(function(p) {
1336
- return p(v, s);
1337
- }), Pt(function() {
1344
+ return v.options = s, v.pluginImpls = n.map(function(y) {
1345
+ return y(v, s);
1346
+ }), Ct(function() {
1338
1347
  if (!i && c) {
1339
- var p = v.state.params || e.defaultParams || [];
1340
- v.run.apply(v, O([], R(p), !1));
1348
+ var y = v.state.params || e.defaultParams || [];
1349
+ v.run.apply(v, O([], R(y), !1));
1341
1350
  }
1342
1351
  }), $e(function() {
1343
1352
  v.cancel();
@@ -1346,23 +1355,23 @@ function Nt(r, e, n) {
1346
1355
  data: v.state.data,
1347
1356
  error: v.state.error,
1348
1357
  params: v.state.params || [],
1349
- cancel: J(v.cancel.bind(v)),
1350
- refresh: J(v.refresh.bind(v)),
1351
- refreshAsync: J(v.refreshAsync.bind(v)),
1352
- run: J(v.run.bind(v)),
1353
- runAsync: J(v.runAsync.bind(v)),
1354
- mutate: J(v.mutate.bind(v))
1358
+ cancel: X(v.cancel.bind(v)),
1359
+ refresh: X(v.refresh.bind(v)),
1360
+ refreshAsync: X(v.refreshAsync.bind(v)),
1361
+ run: X(v.run.bind(v)),
1362
+ runAsync: X(v.runAsync.bind(v)),
1363
+ mutate: X(v.mutate.bind(v))
1355
1364
  };
1356
1365
  }
1357
- function kt(r, e, n) {
1358
- return Nt(r, e, O(O([], R(n || []), !1), [bt, gt, pt, _t, xt, _r, tt, jt], !1));
1366
+ function qt(r, e, n) {
1367
+ return kt(r, e, O(O([], R(n || []), !1), [gt, ht, Et, _t, Pt, _r, nt, Rt], !1));
1359
1368
  }
1360
- function Lt(r, e, n) {
1361
- const a = kt(r, {
1369
+ function Yt(r, e, n) {
1370
+ const a = qt(r, {
1362
1371
  ...e,
1363
1372
  onError(o, c) {
1364
1373
  var f;
1365
- ((e == null ? void 0 : e.errorMessage) ?? !0) && Er.error(o.message), (f = e == null ? void 0 : e.onError) == null || f.call(e, o, c);
1374
+ ((e == null ? void 0 : e.errorMessage) ?? !0) && wr.error(o.message), (f = e == null ? void 0 : e.onError) == null || f.call(e, o, c);
1366
1375
  }
1367
1376
  }, n), i = a.data && typeof a.data == "object" && "data" in a.data ? a.data.data : a.data;
1368
1377
  return {
@@ -1371,12 +1380,12 @@ function Lt(r, e, n) {
1371
1380
  };
1372
1381
  }
1373
1382
  export {
1374
- Wt as App,
1375
- Ft as CheckboxValue,
1376
- $t as IconFont,
1377
- It as SwitchValue,
1378
- Er as message,
1379
- Ur as modal,
1380
- Gr as notification,
1381
- Lt as useRequest
1383
+ $t as App,
1384
+ It as CheckboxValue,
1385
+ Ft as IconFont,
1386
+ Lt as SwitchValue,
1387
+ wr as message,
1388
+ zr as modal,
1389
+ Hr as notification,
1390
+ Yt as useRequest
1382
1391
  };