xmirror-components 1.0.11 → 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.
- package/build/dist/index.cjs +9 -9
- package/build/dist/index.mjs +394 -391
- package/build/package.json +1 -1
- package/package.json +1 -1
package/build/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import kr, { forwardRef as qr, useRef as j, useMemo as
|
|
2
|
-
import { message as $r, notification as Fr, Modal as Ir, App as
|
|
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";
|
|
3
3
|
var fe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
|
-
function Tr(
|
|
5
|
-
return
|
|
4
|
+
function Tr(r) {
|
|
5
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
6
6
|
}
|
|
7
7
|
var se = { exports: {} }, te = {};
|
|
8
8
|
/**
|
|
@@ -14,11 +14,11 @@ var se = { exports: {} }, te = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
17
|
+
var er;
|
|
18
18
|
function Gr() {
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var
|
|
19
|
+
if (er) return te;
|
|
20
|
+
er = 1;
|
|
21
|
+
var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
22
22
|
function n(a, i, o) {
|
|
23
23
|
var c = null;
|
|
24
24
|
if (o !== void 0 && (c = "" + o), i.key !== void 0 && (c = "" + i.key), "key" in i) {
|
|
@@ -27,14 +27,14 @@ function Gr() {
|
|
|
27
27
|
f !== "key" && (o[f] = i[f]);
|
|
28
28
|
} else o = i;
|
|
29
29
|
return i = o.ref, {
|
|
30
|
-
$$typeof:
|
|
30
|
+
$$typeof: r,
|
|
31
31
|
type: a,
|
|
32
32
|
key: c,
|
|
33
33
|
ref: i !== void 0 ? i : null,
|
|
34
34
|
props: o
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
return te.Fragment =
|
|
37
|
+
return te.Fragment = e, te.jsx = n, te.jsxs = n, te;
|
|
38
38
|
}
|
|
39
39
|
var ne = {};
|
|
40
40
|
/**
|
|
@@ -46,10 +46,10 @@ var ne = {};
|
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
48
|
*/
|
|
49
|
-
var
|
|
49
|
+
var rr;
|
|
50
50
|
function Ur() {
|
|
51
|
-
return
|
|
52
|
-
function
|
|
51
|
+
return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
52
|
+
function r(t) {
|
|
53
53
|
if (t == null) return null;
|
|
54
54
|
if (typeof t == "function")
|
|
55
55
|
return t.$$typeof === Cr ? null : t.displayName || t.name || null;
|
|
@@ -80,34 +80,34 @@ function Ur() {
|
|
|
80
80
|
var l = t.render;
|
|
81
81
|
return t = t.displayName, t || (t = l.displayName || l.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
82
82
|
case C:
|
|
83
|
-
return l = t.displayName || null, l !== null ? l :
|
|
83
|
+
return l = t.displayName || null, l !== null ? l : r(t.type) || "Memo";
|
|
84
84
|
case $:
|
|
85
85
|
l = t._payload, t = t._init;
|
|
86
86
|
try {
|
|
87
|
-
return
|
|
87
|
+
return r(t(l));
|
|
88
88
|
} catch {
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function e(t) {
|
|
94
94
|
return "" + t;
|
|
95
95
|
}
|
|
96
96
|
function n(t) {
|
|
97
97
|
try {
|
|
98
|
-
|
|
98
|
+
e(t);
|
|
99
99
|
var l = !1;
|
|
100
100
|
} catch {
|
|
101
101
|
l = !0;
|
|
102
102
|
}
|
|
103
103
|
if (l) {
|
|
104
104
|
l = console;
|
|
105
|
-
var d = l.error,
|
|
105
|
+
var d = l.error, p = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
106
106
|
return d.call(
|
|
107
107
|
l,
|
|
108
108
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
109
|
-
|
|
110
|
-
),
|
|
109
|
+
p
|
|
110
|
+
), e(t);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
function a() {
|
|
@@ -163,12 +163,12 @@ function Ur() {
|
|
|
163
163
|
` + he + t + Je;
|
|
164
164
|
}
|
|
165
165
|
function f(t, l) {
|
|
166
|
-
if (!t ||
|
|
167
|
-
var d =
|
|
166
|
+
if (!t || pe) return "";
|
|
167
|
+
var d = ye.get(t);
|
|
168
168
|
if (d !== void 0) return d;
|
|
169
|
-
|
|
170
|
-
var
|
|
171
|
-
|
|
169
|
+
pe = !0, d = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
170
|
+
var p = null;
|
|
171
|
+
p = B.H, B.H = null, i();
|
|
172
172
|
try {
|
|
173
173
|
var _ = {
|
|
174
174
|
DetermineComponentFrameRoot: function() {
|
|
@@ -222,10 +222,10 @@ function Ur() {
|
|
|
222
222
|
"name",
|
|
223
223
|
{ value: "DetermineComponentFrameRoot" }
|
|
224
224
|
);
|
|
225
|
-
var h = _.DetermineComponentFrameRoot(), F = h[0],
|
|
226
|
-
if (F &&
|
|
225
|
+
var h = _.DetermineComponentFrameRoot(), F = h[0], J = h[1];
|
|
226
|
+
if (F && J) {
|
|
227
227
|
var S = F.split(`
|
|
228
|
-
`), z =
|
|
228
|
+
`), z = J.split(`
|
|
229
229
|
`);
|
|
230
230
|
for (h = w = 0; w < S.length && !S[w].includes(
|
|
231
231
|
"DetermineComponentFrameRoot"
|
|
@@ -248,16 +248,16 @@ function Ur() {
|
|
|
248
248
|
" at new ",
|
|
249
249
|
" at "
|
|
250
250
|
);
|
|
251
|
-
return t.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", t.displayName)), typeof t == "function" &&
|
|
251
|
+
return t.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", t.displayName)), typeof t == "function" && ye.set(t, re), re;
|
|
252
252
|
}
|
|
253
253
|
while (1 <= w && 0 <= h);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
|
|
258
|
+
pe = !1, B.H = p, o(), Error.prepareStackTrace = d;
|
|
259
259
|
}
|
|
260
|
-
return S = (S = t ? t.displayName || t.name : "") ? c(S) : "", typeof t == "function" &&
|
|
260
|
+
return S = (S = t ? t.displayName || t.name : "") ? c(S) : "", typeof t == "function" && ye.set(t, S), S;
|
|
261
261
|
}
|
|
262
262
|
function s(t) {
|
|
263
263
|
if (t == null) return "";
|
|
@@ -313,13 +313,13 @@ function Ur() {
|
|
|
313
313
|
configurable: !0
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
var t =
|
|
316
|
+
function y() {
|
|
317
|
+
var t = r(this.type);
|
|
318
318
|
return Ze[t] || (Ze[t] = !0, console.error(
|
|
319
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."
|
|
320
320
|
)), t = this.props.ref, t !== void 0 ? t : null;
|
|
321
321
|
}
|
|
322
|
-
function g(t, l, d,
|
|
322
|
+
function g(t, l, d, p, _, w) {
|
|
323
323
|
return d = w.ref, t = {
|
|
324
324
|
$$typeof: k,
|
|
325
325
|
type: t,
|
|
@@ -328,7 +328,7 @@ function Ur() {
|
|
|
328
328
|
_owner: _
|
|
329
329
|
}, (d !== void 0 ? d : null) !== null ? Object.defineProperty(t, "ref", {
|
|
330
330
|
enumerable: !1,
|
|
331
|
-
get:
|
|
331
|
+
get: y
|
|
332
332
|
}) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
|
|
333
333
|
configurable: !1,
|
|
334
334
|
enumerable: !1,
|
|
@@ -341,14 +341,14 @@ function Ur() {
|
|
|
341
341
|
value: null
|
|
342
342
|
}), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
|
|
343
343
|
}
|
|
344
|
-
function b(t, l, d,
|
|
344
|
+
function b(t, l, d, p, _, w) {
|
|
345
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)) {
|
|
346
346
|
var h = l.children;
|
|
347
347
|
if (h !== void 0)
|
|
348
|
-
if (
|
|
348
|
+
if (p)
|
|
349
349
|
if (ge(h)) {
|
|
350
|
-
for (
|
|
351
|
-
E(h[
|
|
350
|
+
for (p = 0; p < h.length; p++)
|
|
351
|
+
E(h[p], t);
|
|
352
352
|
Object.freeze && Object.freeze(h);
|
|
353
353
|
} else
|
|
354
354
|
console.error(
|
|
@@ -356,33 +356,33 @@ function Ur() {
|
|
|
356
356
|
);
|
|
357
357
|
else E(h, t);
|
|
358
358
|
} else
|
|
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 ?
|
|
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(
|
|
360
360
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
361
|
-
|
|
361
|
+
p,
|
|
362
362
|
h
|
|
363
363
|
);
|
|
364
364
|
if (Ye.call(l, "key")) {
|
|
365
|
-
h =
|
|
365
|
+
h = r(t);
|
|
366
366
|
var F = Object.keys(l).filter(function(S) {
|
|
367
367
|
return S !== "key";
|
|
368
368
|
});
|
|
369
|
-
|
|
369
|
+
p = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", Qe[h + p] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
370
370
|
`A props object containing a "key" prop is being spread into JSX:
|
|
371
371
|
let props = %s;
|
|
372
372
|
<%s {...props} />
|
|
373
373
|
React keys must be passed directly to JSX without using spread:
|
|
374
374
|
let props = %s;
|
|
375
375
|
<%s key={someKey} {...props} />`,
|
|
376
|
-
|
|
376
|
+
p,
|
|
377
377
|
h,
|
|
378
378
|
F,
|
|
379
379
|
h
|
|
380
|
-
), Qe[h +
|
|
380
|
+
), Qe[h + p] = !0);
|
|
381
381
|
}
|
|
382
382
|
if (h = null, d !== void 0 && (n(d), h = "" + d), m(l) && (n(l.key), h = "" + l.key), "key" in l) {
|
|
383
383
|
d = {};
|
|
384
|
-
for (var
|
|
385
|
-
|
|
384
|
+
for (var J in l)
|
|
385
|
+
J !== "key" && (d[J] = l[J]);
|
|
386
386
|
} else d = l;
|
|
387
387
|
return h && v(
|
|
388
388
|
d,
|
|
@@ -393,8 +393,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
393
393
|
if (typeof t == "object" && t && t.$$typeof !== Nr) {
|
|
394
394
|
if (ge(t))
|
|
395
395
|
for (var d = 0; d < t.length; d++) {
|
|
396
|
-
var
|
|
397
|
-
x(
|
|
396
|
+
var p = t[d];
|
|
397
|
+
x(p) && q(p, l);
|
|
398
398
|
}
|
|
399
399
|
else if (x(t))
|
|
400
400
|
t._store && (t._store.validated = 1);
|
|
@@ -410,73 +410,76 @@ React keys must be passed directly to JSX without using spread:
|
|
|
410
410
|
if (t._store && !t._store.validated && t.key == null && (t._store.validated = 1, l = N(l), !Ke[l])) {
|
|
411
411
|
Ke[l] = !0;
|
|
412
412
|
var d = "";
|
|
413
|
-
t && t._owner != null && t._owner !== u() && (d = null, typeof t._owner.tag == "number" ? d =
|
|
414
|
-
var
|
|
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 + ".");
|
|
414
|
+
var p = B.getCurrentStack;
|
|
415
415
|
B.getCurrentStack = function() {
|
|
416
416
|
var _ = s(t.type);
|
|
417
|
-
return
|
|
417
|
+
return p && (_ += p() || ""), _;
|
|
418
418
|
}, console.error(
|
|
419
419
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
420
420
|
l,
|
|
421
421
|
d
|
|
422
|
-
), B.getCurrentStack =
|
|
422
|
+
), B.getCurrentStack = p;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
function N(t) {
|
|
426
426
|
var l = "", d = u();
|
|
427
|
-
return d && (d =
|
|
427
|
+
return d && (d = r(d.type)) && (l = `
|
|
428
428
|
|
|
429
|
-
Check the render method of \`` + d + "`."), l || (t =
|
|
429
|
+
Check the render method of \`` + d + "`."), l || (t = r(t)) && (l = `
|
|
430
430
|
|
|
431
431
|
Check the top-level render call using <` + t + ">."), l;
|
|
432
432
|
}
|
|
433
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;
|
|
434
434
|
a.__reactDisabledLog = !0;
|
|
435
|
-
var he, Je,
|
|
436
|
-
ne.Fragment = L, ne.jsx = function(t, l, d,
|
|
437
|
-
return b(t, l, d, !1,
|
|
438
|
-
}, ne.jsxs = function(t, l, d,
|
|
439
|
-
return b(t, l, d, !0,
|
|
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, _);
|
|
440
440
|
};
|
|
441
441
|
}()), ne;
|
|
442
442
|
}
|
|
443
|
-
var
|
|
443
|
+
var tr;
|
|
444
444
|
function Br() {
|
|
445
|
-
return
|
|
445
|
+
return tr || (tr = 1, process.env.NODE_ENV === "production" ? se.exports = Gr() : se.exports = Ur()), se.exports;
|
|
446
446
|
}
|
|
447
|
-
var
|
|
447
|
+
var V = Br();
|
|
448
448
|
let wr = $r, Hr = Fr, zr = Ir;
|
|
449
|
-
function
|
|
450
|
-
const
|
|
451
|
-
return wr =
|
|
452
|
-
|
|
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,
|
|
453
456
|
{
|
|
454
|
-
...
|
|
455
|
-
children:
|
|
457
|
+
...e,
|
|
458
|
+
children: /* @__PURE__ */ V.jsx(Dr, { children: r })
|
|
456
459
|
}
|
|
457
460
|
);
|
|
458
461
|
}
|
|
459
|
-
const
|
|
460
|
-
({ type:
|
|
462
|
+
const Ft = qr(
|
|
463
|
+
({ type: r = "", className: e = "", symbol: n = !1, ...a }, i) => n ? /* @__PURE__ */ V.jsx(
|
|
461
464
|
"svg",
|
|
462
465
|
{
|
|
463
|
-
className: `iconfont-symbol ${
|
|
466
|
+
className: `iconfont-symbol ${r} ${e}`,
|
|
464
467
|
"aria-hidden": "true",
|
|
465
468
|
ref: i,
|
|
466
469
|
...a,
|
|
467
|
-
children: /* @__PURE__ */
|
|
470
|
+
children: /* @__PURE__ */ V.jsx("use", { xlinkHref: `#${r}` })
|
|
468
471
|
}
|
|
469
|
-
) : /* @__PURE__ */
|
|
472
|
+
) : /* @__PURE__ */ V.jsx(
|
|
470
473
|
"i",
|
|
471
474
|
{
|
|
472
|
-
className: `iconfont ${
|
|
475
|
+
className: `iconfont ${r} ${e}`,
|
|
473
476
|
ref: i,
|
|
474
477
|
...a
|
|
475
478
|
}
|
|
476
479
|
)
|
|
477
|
-
),
|
|
478
|
-
checked:
|
|
479
|
-
onChange:
|
|
480
|
+
), It = ({
|
|
481
|
+
checked: r,
|
|
482
|
+
onChange: e,
|
|
480
483
|
trueValue: n = !0,
|
|
481
484
|
falseValue: a = !1,
|
|
482
485
|
trueLabel: i = "",
|
|
@@ -484,10 +487,10 @@ const $t = qr(
|
|
|
484
487
|
children: c,
|
|
485
488
|
...f
|
|
486
489
|
}) => {
|
|
487
|
-
const s =
|
|
488
|
-
|
|
490
|
+
const s = r === n, u = (m) => {
|
|
491
|
+
e == null || e(m.target.checked ? n : a, m);
|
|
489
492
|
};
|
|
490
|
-
return /* @__PURE__ */
|
|
493
|
+
return /* @__PURE__ */ V.jsx(
|
|
491
494
|
Lr,
|
|
492
495
|
{
|
|
493
496
|
checked: s,
|
|
@@ -496,17 +499,17 @@ const $t = qr(
|
|
|
496
499
|
children: c || (s ? i : o)
|
|
497
500
|
}
|
|
498
501
|
);
|
|
499
|
-
},
|
|
500
|
-
checked:
|
|
501
|
-
onChange:
|
|
502
|
+
}, Lt = ({
|
|
503
|
+
checked: r,
|
|
504
|
+
onChange: e,
|
|
502
505
|
trueValue: n = !0,
|
|
503
506
|
falseValue: a = !1,
|
|
504
507
|
...i
|
|
505
508
|
}) => {
|
|
506
|
-
const o =
|
|
507
|
-
|
|
509
|
+
const o = r === n, c = (f, s) => {
|
|
510
|
+
e == null || e(f ? n : a, s);
|
|
508
511
|
};
|
|
509
|
-
return /* @__PURE__ */
|
|
512
|
+
return /* @__PURE__ */ V.jsx(
|
|
510
513
|
Yr,
|
|
511
514
|
{
|
|
512
515
|
checked: o,
|
|
@@ -515,38 +518,38 @@ const $t = qr(
|
|
|
515
518
|
}
|
|
516
519
|
);
|
|
517
520
|
};
|
|
518
|
-
var
|
|
519
|
-
return function(
|
|
521
|
+
var Vr = function(r) {
|
|
522
|
+
return function(e, n) {
|
|
520
523
|
var a = j(!1);
|
|
521
|
-
|
|
524
|
+
r(function() {
|
|
522
525
|
return function() {
|
|
523
526
|
a.current = !1;
|
|
524
527
|
};
|
|
525
|
-
}, []),
|
|
528
|
+
}, []), r(function() {
|
|
526
529
|
if (!a.current)
|
|
527
530
|
a.current = !0;
|
|
528
531
|
else
|
|
529
|
-
return
|
|
532
|
+
return e();
|
|
530
533
|
}, n);
|
|
531
534
|
};
|
|
532
535
|
}, A = function() {
|
|
533
|
-
return A = Object.assign || function(
|
|
536
|
+
return A = Object.assign || function(e) {
|
|
534
537
|
for (var n, a = 1, i = arguments.length; a < i; a++) {
|
|
535
538
|
n = arguments[a];
|
|
536
|
-
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (
|
|
539
|
+
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
537
540
|
}
|
|
538
|
-
return
|
|
541
|
+
return e;
|
|
539
542
|
}, A.apply(this, arguments);
|
|
540
543
|
};
|
|
541
|
-
function jr(
|
|
544
|
+
function jr(r, e) {
|
|
542
545
|
var n = {};
|
|
543
|
-
for (var a in
|
|
544
|
-
if (
|
|
545
|
-
for (var i = 0, a = Object.getOwnPropertySymbols(
|
|
546
|
-
|
|
546
|
+
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && e.indexOf(a) < 0 && (n[a] = r[a]);
|
|
547
|
+
if (r != null && typeof Object.getOwnPropertySymbols == "function")
|
|
548
|
+
for (var i = 0, a = Object.getOwnPropertySymbols(r); i < a.length; i++)
|
|
549
|
+
e.indexOf(a[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, a[i]) && (n[a[i]] = r[a[i]]);
|
|
547
550
|
return n;
|
|
548
551
|
}
|
|
549
|
-
function
|
|
552
|
+
function Jr(r, e, n, a) {
|
|
550
553
|
function i(o) {
|
|
551
554
|
return o instanceof n ? o : new n(function(c) {
|
|
552
555
|
c(o);
|
|
@@ -570,10 +573,10 @@ function Vr(e, r, n, a) {
|
|
|
570
573
|
function u(m) {
|
|
571
574
|
m.done ? o(m.value) : i(m.value).then(f, s);
|
|
572
575
|
}
|
|
573
|
-
u((a = a.apply(
|
|
576
|
+
u((a = a.apply(r, e || [])).next());
|
|
574
577
|
});
|
|
575
578
|
}
|
|
576
|
-
function
|
|
579
|
+
function Xr(r, e) {
|
|
577
580
|
var n = { label: 0, sent: function() {
|
|
578
581
|
if (o[0] & 1) throw o[1];
|
|
579
582
|
return o[1];
|
|
@@ -623,7 +626,7 @@ function Jr(e, r) {
|
|
|
623
626
|
o[2] && n.ops.pop(), n.trys.pop();
|
|
624
627
|
continue;
|
|
625
628
|
}
|
|
626
|
-
u =
|
|
629
|
+
u = e.call(r, n);
|
|
627
630
|
} catch (m) {
|
|
628
631
|
u = [6, m], i = 0;
|
|
629
632
|
} finally {
|
|
@@ -633,12 +636,12 @@ function Jr(e, r) {
|
|
|
633
636
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
634
637
|
}
|
|
635
638
|
}
|
|
636
|
-
function R(
|
|
637
|
-
var n = typeof Symbol == "function" &&
|
|
638
|
-
if (!n) return
|
|
639
|
-
var a = n.call(
|
|
639
|
+
function R(r, e) {
|
|
640
|
+
var n = typeof Symbol == "function" && r[Symbol.iterator];
|
|
641
|
+
if (!n) return r;
|
|
642
|
+
var a = n.call(r), i, o = [], c;
|
|
640
643
|
try {
|
|
641
|
-
for (; (
|
|
644
|
+
for (; (e === void 0 || e-- > 0) && !(i = a.next()).done; ) o.push(i.value);
|
|
642
645
|
} catch (f) {
|
|
643
646
|
c = { error: f };
|
|
644
647
|
} finally {
|
|
@@ -650,34 +653,34 @@ function R(e, r) {
|
|
|
650
653
|
}
|
|
651
654
|
return o;
|
|
652
655
|
}
|
|
653
|
-
function O(
|
|
654
|
-
if (n || arguments.length === 2) for (var a = 0, i =
|
|
655
|
-
(o || !(a in
|
|
656
|
-
return
|
|
656
|
+
function O(r, e, n) {
|
|
657
|
+
if (n || arguments.length === 2) for (var a = 0, i = e.length, o; a < i; a++)
|
|
658
|
+
(o || !(a in e)) && (o || (o = Array.prototype.slice.call(e, 0, a)), o[a] = e[a]);
|
|
659
|
+
return r.concat(o || Array.prototype.slice.call(e));
|
|
657
660
|
}
|
|
658
|
-
var ve = function(
|
|
659
|
-
return typeof
|
|
661
|
+
var ve = function(r) {
|
|
662
|
+
return typeof r == "function";
|
|
660
663
|
}, me = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
|
|
661
|
-
function
|
|
662
|
-
me && (ve(
|
|
663
|
-
var
|
|
664
|
-
|
|
665
|
-
return
|
|
666
|
-
}, [
|
|
664
|
+
function X(r) {
|
|
665
|
+
me && (ve(r) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof r)));
|
|
666
|
+
var e = j(r);
|
|
667
|
+
e.current = yr(function() {
|
|
668
|
+
return r;
|
|
669
|
+
}, [r]);
|
|
667
670
|
var n = j();
|
|
668
671
|
return n.current || (n.current = function() {
|
|
669
672
|
for (var a = [], i = 0; i < arguments.length; i++)
|
|
670
673
|
a[i] = arguments[i];
|
|
671
|
-
return
|
|
674
|
+
return e.current.apply(this, a);
|
|
672
675
|
}), n.current;
|
|
673
676
|
}
|
|
674
|
-
const We =
|
|
675
|
-
var _r = function(
|
|
676
|
-
var n =
|
|
677
|
+
const We = Vr(Z);
|
|
678
|
+
var _r = function(r, e) {
|
|
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);
|
|
677
680
|
return m.current = !1, We(function() {
|
|
678
|
-
!n && i && (m.current = !0,
|
|
681
|
+
!n && i && (m.current = !0, r.run.apply(r, O([], R(c), !1)));
|
|
679
682
|
}, [i]), We(function() {
|
|
680
|
-
m.current || n || (m.current = !0, u ? u() :
|
|
683
|
+
m.current || n || (m.current = !0, u ? u() : r.refresh());
|
|
681
684
|
}, O([], R(s), !1)), {
|
|
682
685
|
onBefore: function() {
|
|
683
686
|
if (!i)
|
|
@@ -687,77 +690,77 @@ var _r = function(e, r) {
|
|
|
687
690
|
}
|
|
688
691
|
};
|
|
689
692
|
};
|
|
690
|
-
_r.onInit = function(
|
|
691
|
-
var
|
|
693
|
+
_r.onInit = function(r) {
|
|
694
|
+
var e = r.ready, n = e === void 0 ? !0 : e, a = r.manual;
|
|
692
695
|
return {
|
|
693
696
|
loading: !a && n
|
|
694
697
|
};
|
|
695
698
|
};
|
|
696
|
-
function
|
|
697
|
-
if (
|
|
698
|
-
for (var n = 0; n <
|
|
699
|
-
if (!Object.is(
|
|
699
|
+
function Zr(r, e) {
|
|
700
|
+
if (r === e) return !0;
|
|
701
|
+
for (var n = 0; n < r.length; n++)
|
|
702
|
+
if (!Object.is(r[n], e[n])) return !1;
|
|
700
703
|
return !0;
|
|
701
704
|
}
|
|
702
|
-
function Rr(
|
|
705
|
+
function Rr(r, e) {
|
|
703
706
|
var n = j({
|
|
704
|
-
deps:
|
|
707
|
+
deps: e,
|
|
705
708
|
obj: void 0,
|
|
706
709
|
initialized: !1
|
|
707
710
|
}).current;
|
|
708
|
-
return (n.initialized === !1 || !
|
|
711
|
+
return (n.initialized === !1 || !Zr(n.deps, e)) && (n.deps = e, n.obj = r(), n.initialized = !0), n.obj;
|
|
709
712
|
}
|
|
710
|
-
function Or(
|
|
711
|
-
var
|
|
712
|
-
return
|
|
713
|
+
function Or(r) {
|
|
714
|
+
var e = j(r);
|
|
715
|
+
return e.current = r, e;
|
|
713
716
|
}
|
|
714
|
-
var $e = function(
|
|
715
|
-
me && (ve(
|
|
716
|
-
var
|
|
717
|
+
var $e = function(r) {
|
|
718
|
+
me && (ve(r) || console.error("useUnmount expected parameter is a function, got ".concat(typeof r)));
|
|
719
|
+
var e = Or(r);
|
|
717
720
|
Z(function() {
|
|
718
721
|
return function() {
|
|
719
|
-
|
|
722
|
+
e.current();
|
|
720
723
|
};
|
|
721
724
|
}, []);
|
|
722
|
-
}, le = /* @__PURE__ */ new Map(),
|
|
723
|
-
var a = le.get(
|
|
725
|
+
}, le = /* @__PURE__ */ new Map(), Qr = function(r, e, n) {
|
|
726
|
+
var a = le.get(r);
|
|
724
727
|
a != null && a.timer && clearTimeout(a.timer);
|
|
725
728
|
var i = void 0;
|
|
726
|
-
|
|
727
|
-
le.delete(
|
|
728
|
-
},
|
|
729
|
+
e > -1 && (i = setTimeout(function() {
|
|
730
|
+
le.delete(r);
|
|
731
|
+
}, e)), le.set(r, A(A({}, n), {
|
|
729
732
|
timer: i
|
|
730
733
|
}));
|
|
731
|
-
},
|
|
732
|
-
return le.get(
|
|
733
|
-
}, de = /* @__PURE__ */ new Map(),
|
|
734
|
-
return de.get(
|
|
735
|
-
},
|
|
736
|
-
de.set(
|
|
737
|
-
return de.delete(
|
|
734
|
+
}, Kr = function(r) {
|
|
735
|
+
return le.get(r);
|
|
736
|
+
}, de = /* @__PURE__ */ new Map(), et = function(r) {
|
|
737
|
+
return de.get(r);
|
|
738
|
+
}, rt = function(r, e) {
|
|
739
|
+
de.set(r, e), e.then(function(n) {
|
|
740
|
+
return de.delete(r), n;
|
|
738
741
|
}).catch(function() {
|
|
739
|
-
de.delete(
|
|
742
|
+
de.delete(r);
|
|
740
743
|
});
|
|
741
|
-
}, D = {},
|
|
742
|
-
D[
|
|
743
|
-
return n(
|
|
744
|
+
}, D = {}, tt = function(r, e) {
|
|
745
|
+
D[r] && D[r].forEach(function(n) {
|
|
746
|
+
return n(e);
|
|
744
747
|
});
|
|
745
|
-
}, Ee = function(
|
|
746
|
-
return D[
|
|
747
|
-
var a = D[
|
|
748
|
-
D[
|
|
748
|
+
}, Ee = function(r, e) {
|
|
749
|
+
return D[r] || (D[r] = []), D[r].push(e), function() {
|
|
750
|
+
var a = D[r].indexOf(e);
|
|
751
|
+
D[r].splice(a, 1);
|
|
749
752
|
};
|
|
750
|
-
},
|
|
751
|
-
var n =
|
|
752
|
-
f ? f(b) :
|
|
753
|
-
},
|
|
754
|
-
return b === void 0 && (b = []), s ? s(b) :
|
|
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);
|
|
755
758
|
};
|
|
756
759
|
return Rr(function() {
|
|
757
760
|
if (n) {
|
|
758
|
-
var g =
|
|
759
|
-
g && Object.hasOwnProperty.call(g, "data") && (
|
|
760
|
-
|
|
761
|
+
var g = y(n);
|
|
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) {
|
|
763
|
+
r.setState({
|
|
761
764
|
data: b
|
|
762
765
|
});
|
|
763
766
|
});
|
|
@@ -767,7 +770,7 @@ var $e = function(e) {
|
|
|
767
770
|
(g = u.current) === null || g === void 0 || g.call(u);
|
|
768
771
|
}), n ? {
|
|
769
772
|
onBefore: function(g) {
|
|
770
|
-
var b =
|
|
773
|
+
var b = y(n, g);
|
|
771
774
|
return !b || !Object.hasOwnProperty.call(b, "data") ? {} : c === -1 || (/* @__PURE__ */ new Date()).getTime() - b.time <= c ? {
|
|
772
775
|
loading: !1,
|
|
773
776
|
data: b == null ? void 0 : b.data,
|
|
@@ -779,10 +782,10 @@ var $e = function(e) {
|
|
|
779
782
|
};
|
|
780
783
|
},
|
|
781
784
|
onRequest: function(g, b) {
|
|
782
|
-
var E =
|
|
785
|
+
var E = et(n);
|
|
783
786
|
return E && E !== m.current ? {
|
|
784
787
|
servicePromise: E
|
|
785
|
-
} : (E = g.apply(void 0, O([], R(b), !1)), m.current = E,
|
|
788
|
+
} : (E = g.apply(void 0, O([], R(b), !1)), m.current = E, rt(n, E), {
|
|
786
789
|
servicePromise: E
|
|
787
790
|
});
|
|
788
791
|
},
|
|
@@ -793,7 +796,7 @@ var $e = function(e) {
|
|
|
793
796
|
params: b,
|
|
794
797
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
795
798
|
}), u.current = Ee(n, function(x) {
|
|
796
|
-
|
|
799
|
+
r.setState({
|
|
797
800
|
data: x
|
|
798
801
|
});
|
|
799
802
|
}));
|
|
@@ -802,82 +805,82 @@ var $e = function(e) {
|
|
|
802
805
|
var b;
|
|
803
806
|
n && ((b = u.current) === null || b === void 0 || b.call(u), v(n, {
|
|
804
807
|
data: g,
|
|
805
|
-
params:
|
|
808
|
+
params: r.state.params,
|
|
806
809
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
807
810
|
}), u.current = Ee(n, function(E) {
|
|
808
|
-
|
|
811
|
+
r.setState({
|
|
809
812
|
data: E
|
|
810
813
|
});
|
|
811
814
|
}));
|
|
812
815
|
}
|
|
813
816
|
} : {};
|
|
814
|
-
}, Te,
|
|
817
|
+
}, Te, nr;
|
|
815
818
|
function Fe() {
|
|
816
|
-
if (
|
|
817
|
-
|
|
818
|
-
function e
|
|
819
|
-
var n = typeof
|
|
820
|
-
return
|
|
819
|
+
if (nr) return Te;
|
|
820
|
+
nr = 1;
|
|
821
|
+
function r(e) {
|
|
822
|
+
var n = typeof e;
|
|
823
|
+
return e != null && (n == "object" || n == "function");
|
|
821
824
|
}
|
|
822
|
-
return Te =
|
|
825
|
+
return Te = r, Te;
|
|
823
826
|
}
|
|
824
|
-
var we,
|
|
825
|
-
function
|
|
826
|
-
if (
|
|
827
|
-
|
|
828
|
-
var
|
|
829
|
-
return we =
|
|
827
|
+
var we, ar;
|
|
828
|
+
function at() {
|
|
829
|
+
if (ar) return we;
|
|
830
|
+
ar = 1;
|
|
831
|
+
var r = typeof fe == "object" && fe && fe.Object === Object && fe;
|
|
832
|
+
return we = r, we;
|
|
830
833
|
}
|
|
831
|
-
var je,
|
|
834
|
+
var je, ir;
|
|
832
835
|
function Sr() {
|
|
833
|
-
if (
|
|
834
|
-
|
|
835
|
-
var
|
|
836
|
+
if (ir) return je;
|
|
837
|
+
ir = 1;
|
|
838
|
+
var r = at(), e = typeof self == "object" && self && self.Object === Object && self, n = r || e || Function("return this")();
|
|
836
839
|
return je = n, je;
|
|
837
840
|
}
|
|
838
|
-
var _e,
|
|
839
|
-
function
|
|
840
|
-
if (
|
|
841
|
-
|
|
842
|
-
var
|
|
843
|
-
return
|
|
841
|
+
var _e, or;
|
|
842
|
+
function it() {
|
|
843
|
+
if (or) return _e;
|
|
844
|
+
or = 1;
|
|
845
|
+
var r = Sr(), e = function() {
|
|
846
|
+
return r.Date.now();
|
|
844
847
|
};
|
|
845
|
-
return _e =
|
|
848
|
+
return _e = e, _e;
|
|
846
849
|
}
|
|
847
|
-
var Re,
|
|
848
|
-
function
|
|
849
|
-
if (
|
|
850
|
-
|
|
851
|
-
var
|
|
852
|
-
function
|
|
853
|
-
for (var a = n.length; a-- &&
|
|
850
|
+
var Re, ur;
|
|
851
|
+
function ot() {
|
|
852
|
+
if (ur) return Re;
|
|
853
|
+
ur = 1;
|
|
854
|
+
var r = /\s/;
|
|
855
|
+
function e(n) {
|
|
856
|
+
for (var a = n.length; a-- && r.test(n.charAt(a)); )
|
|
854
857
|
;
|
|
855
858
|
return a;
|
|
856
859
|
}
|
|
857
|
-
return Re =
|
|
860
|
+
return Re = e, Re;
|
|
858
861
|
}
|
|
859
|
-
var Oe,
|
|
860
|
-
function
|
|
861
|
-
if (
|
|
862
|
-
|
|
863
|
-
var
|
|
862
|
+
var Oe, cr;
|
|
863
|
+
function ut() {
|
|
864
|
+
if (cr) return Oe;
|
|
865
|
+
cr = 1;
|
|
866
|
+
var r = ot(), e = /^\s+/;
|
|
864
867
|
function n(a) {
|
|
865
|
-
return a && a.slice(0,
|
|
868
|
+
return a && a.slice(0, r(a) + 1).replace(e, "");
|
|
866
869
|
}
|
|
867
870
|
return Oe = n, Oe;
|
|
868
871
|
}
|
|
869
|
-
var Se,
|
|
872
|
+
var Se, fr;
|
|
870
873
|
function xr() {
|
|
871
|
-
if (
|
|
872
|
-
|
|
873
|
-
var
|
|
874
|
-
return Se =
|
|
874
|
+
if (fr) return Se;
|
|
875
|
+
fr = 1;
|
|
876
|
+
var r = Sr(), e = r.Symbol;
|
|
877
|
+
return Se = e, Se;
|
|
875
878
|
}
|
|
876
|
-
var xe,
|
|
877
|
-
function
|
|
878
|
-
if (
|
|
879
|
-
|
|
880
|
-
var
|
|
879
|
+
var xe, sr;
|
|
880
|
+
function ct() {
|
|
881
|
+
if (sr) return xe;
|
|
882
|
+
sr = 1;
|
|
883
|
+
var r = xr(), e = Object.prototype, n = e.hasOwnProperty, a = e.toString, i = r ? r.toStringTag : void 0;
|
|
881
884
|
function o(c) {
|
|
882
885
|
var f = n.call(c, i), s = c[i];
|
|
883
886
|
try {
|
|
@@ -890,77 +893,77 @@ function ut() {
|
|
|
890
893
|
}
|
|
891
894
|
return xe = o, xe;
|
|
892
895
|
}
|
|
893
|
-
var Pe,
|
|
894
|
-
function
|
|
895
|
-
if (
|
|
896
|
-
|
|
897
|
-
var
|
|
896
|
+
var Pe, lr;
|
|
897
|
+
function ft() {
|
|
898
|
+
if (lr) return Pe;
|
|
899
|
+
lr = 1;
|
|
900
|
+
var r = Object.prototype, e = r.toString;
|
|
898
901
|
function n(a) {
|
|
899
|
-
return
|
|
902
|
+
return e.call(a);
|
|
900
903
|
}
|
|
901
904
|
return Pe = n, Pe;
|
|
902
905
|
}
|
|
903
|
-
var Ce,
|
|
904
|
-
function
|
|
905
|
-
if (
|
|
906
|
-
|
|
907
|
-
var
|
|
906
|
+
var Ce, dr;
|
|
907
|
+
function st() {
|
|
908
|
+
if (dr) return Ce;
|
|
909
|
+
dr = 1;
|
|
910
|
+
var r = xr(), e = ct(), n = ft(), a = "[object Null]", i = "[object Undefined]", o = r ? r.toStringTag : void 0;
|
|
908
911
|
function c(f) {
|
|
909
|
-
return f == null ? f === void 0 ? i : a : o && o in Object(f) ?
|
|
912
|
+
return f == null ? f === void 0 ? i : a : o && o in Object(f) ? e(f) : n(f);
|
|
910
913
|
}
|
|
911
914
|
return Ce = c, Ce;
|
|
912
915
|
}
|
|
913
|
-
var Ae,
|
|
914
|
-
function
|
|
915
|
-
if (
|
|
916
|
-
|
|
917
|
-
function e
|
|
918
|
-
return
|
|
916
|
+
var Ae, vr;
|
|
917
|
+
function lt() {
|
|
918
|
+
if (vr) return Ae;
|
|
919
|
+
vr = 1;
|
|
920
|
+
function r(e) {
|
|
921
|
+
return e != null && typeof e == "object";
|
|
919
922
|
}
|
|
920
|
-
return Ae =
|
|
923
|
+
return Ae = r, Ae;
|
|
921
924
|
}
|
|
922
|
-
var Ne,
|
|
923
|
-
function
|
|
924
|
-
if (
|
|
925
|
-
|
|
926
|
-
var
|
|
925
|
+
var Ne, mr;
|
|
926
|
+
function dt() {
|
|
927
|
+
if (mr) return Ne;
|
|
928
|
+
mr = 1;
|
|
929
|
+
var r = st(), e = lt(), n = "[object Symbol]";
|
|
927
930
|
function a(i) {
|
|
928
|
-
return typeof i == "symbol" ||
|
|
931
|
+
return typeof i == "symbol" || e(i) && r(i) == n;
|
|
929
932
|
}
|
|
930
933
|
return Ne = a, Ne;
|
|
931
934
|
}
|
|
932
|
-
var ke,
|
|
933
|
-
function
|
|
934
|
-
if (
|
|
935
|
-
|
|
936
|
-
var
|
|
935
|
+
var ke, br;
|
|
936
|
+
function vt() {
|
|
937
|
+
if (br) return ke;
|
|
938
|
+
br = 1;
|
|
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;
|
|
937
940
|
function s(u) {
|
|
938
941
|
if (typeof u == "number")
|
|
939
942
|
return u;
|
|
940
943
|
if (n(u))
|
|
941
944
|
return a;
|
|
942
|
-
if (
|
|
945
|
+
if (e(u)) {
|
|
943
946
|
var m = typeof u.valueOf == "function" ? u.valueOf() : u;
|
|
944
|
-
u =
|
|
947
|
+
u = e(m) ? m + "" : m;
|
|
945
948
|
}
|
|
946
949
|
if (typeof u != "string")
|
|
947
950
|
return u === 0 ? u : +u;
|
|
948
|
-
u =
|
|
951
|
+
u = r(u);
|
|
949
952
|
var v = o.test(u);
|
|
950
953
|
return v || c.test(u) ? f(u.slice(2), v ? 2 : 8) : i.test(u) ? a : +u;
|
|
951
954
|
}
|
|
952
955
|
return ke = s, ke;
|
|
953
956
|
}
|
|
954
|
-
var qe,
|
|
957
|
+
var qe, gr;
|
|
955
958
|
function Pr() {
|
|
956
|
-
if (
|
|
957
|
-
|
|
958
|
-
var
|
|
959
|
+
if (gr) return qe;
|
|
960
|
+
gr = 1;
|
|
961
|
+
var r = Fe(), e = it(), n = vt(), a = "Expected a function", i = Math.max, o = Math.min;
|
|
959
962
|
function c(f, s, u) {
|
|
960
|
-
var m, v,
|
|
963
|
+
var m, v, y, g, b, E, x = 0, q = !1, N = !1, M = !0;
|
|
961
964
|
if (typeof f != "function")
|
|
962
965
|
throw new TypeError(a);
|
|
963
|
-
s = n(s) || 0,
|
|
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);
|
|
964
967
|
function k(T) {
|
|
965
968
|
var C = m, $ = v;
|
|
966
969
|
return m = v = void 0, x = T, g = f.apply($, C), g;
|
|
@@ -970,14 +973,14 @@ function Pr() {
|
|
|
970
973
|
}
|
|
971
974
|
function L(T) {
|
|
972
975
|
var C = T - E, $ = T - x, ue = s - C;
|
|
973
|
-
return N ? o(ue,
|
|
976
|
+
return N ? o(ue, y - $) : ue;
|
|
974
977
|
}
|
|
975
978
|
function W(T) {
|
|
976
979
|
var C = T - E, $ = T - x;
|
|
977
|
-
return E === void 0 || C >= s || C < 0 || N && $ >=
|
|
980
|
+
return E === void 0 || C >= s || C < 0 || N && $ >= y;
|
|
978
981
|
}
|
|
979
982
|
function P() {
|
|
980
|
-
var T =
|
|
983
|
+
var T = e();
|
|
981
984
|
if (W(T))
|
|
982
985
|
return Q(T);
|
|
983
986
|
b = setTimeout(P, L(T));
|
|
@@ -989,10 +992,10 @@ function Pr() {
|
|
|
989
992
|
b !== void 0 && clearTimeout(b), x = 0, m = E = v = b = void 0;
|
|
990
993
|
}
|
|
991
994
|
function K() {
|
|
992
|
-
return b === void 0 ? g : Q(
|
|
995
|
+
return b === void 0 ? g : Q(e());
|
|
993
996
|
}
|
|
994
997
|
function U() {
|
|
995
|
-
var T =
|
|
998
|
+
var T = e(), C = W(T);
|
|
996
999
|
if (m = arguments, v = this, E = T, C) {
|
|
997
1000
|
if (b === void 0)
|
|
998
1001
|
return G(E);
|
|
@@ -1005,30 +1008,30 @@ function Pr() {
|
|
|
1005
1008
|
}
|
|
1006
1009
|
return qe = c, qe;
|
|
1007
1010
|
}
|
|
1008
|
-
var
|
|
1009
|
-
const
|
|
1010
|
-
var
|
|
1011
|
-
var n =
|
|
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() {
|
|
1012
1015
|
var s = {};
|
|
1013
1016
|
return a !== void 0 && (s.leading = a), i !== void 0 && (s.trailing = i), o !== void 0 && (s.maxWait = o), s;
|
|
1014
1017
|
}, [a, i, o]);
|
|
1015
1018
|
return Z(function() {
|
|
1016
1019
|
if (n) {
|
|
1017
|
-
var s =
|
|
1018
|
-
return c.current =
|
|
1020
|
+
var s = r.runAsync.bind(r);
|
|
1021
|
+
return c.current = bt(function(u) {
|
|
1019
1022
|
u();
|
|
1020
|
-
}, n, f),
|
|
1023
|
+
}, n, f), r.runAsync = function() {
|
|
1021
1024
|
for (var u = [], m = 0; m < arguments.length; m++)
|
|
1022
1025
|
u[m] = arguments[m];
|
|
1023
|
-
return new Promise(function(v,
|
|
1026
|
+
return new Promise(function(v, y) {
|
|
1024
1027
|
var g;
|
|
1025
1028
|
(g = c.current) === null || g === void 0 || g.call(c, function() {
|
|
1026
|
-
s.apply(void 0, O([], R(u), !1)).then(v).catch(
|
|
1029
|
+
s.apply(void 0, O([], R(u), !1)).then(v).catch(y);
|
|
1027
1030
|
});
|
|
1028
1031
|
});
|
|
1029
1032
|
}, function() {
|
|
1030
1033
|
var u;
|
|
1031
|
-
(u = c.current) === null || u === void 0 || u.cancel(),
|
|
1034
|
+
(u = c.current) === null || u === void 0 || u.cancel(), r.runAsync = s;
|
|
1032
1035
|
};
|
|
1033
1036
|
}
|
|
1034
1037
|
}, [n, f]), n ? {
|
|
@@ -1037,8 +1040,8 @@ var bt = function(e, r) {
|
|
|
1037
1040
|
(s = c.current) === null || s === void 0 || s.cancel();
|
|
1038
1041
|
}
|
|
1039
1042
|
} : {};
|
|
1040
|
-
},
|
|
1041
|
-
var n =
|
|
1043
|
+
}, ht = function(r, e) {
|
|
1044
|
+
var n = e.loadingDelay, a = e.ready, i = j();
|
|
1042
1045
|
if (!n)
|
|
1043
1046
|
return {};
|
|
1044
1047
|
var o = function() {
|
|
@@ -1047,7 +1050,7 @@ var bt = function(e, r) {
|
|
|
1047
1050
|
return {
|
|
1048
1051
|
onBefore: function() {
|
|
1049
1052
|
return o(), a !== !1 && (i.current = setTimeout(function() {
|
|
1050
|
-
|
|
1053
|
+
r.setState({
|
|
1051
1054
|
loading: !0
|
|
1052
1055
|
});
|
|
1053
1056
|
}, n)), {
|
|
@@ -1066,24 +1069,24 @@ function Ie() {
|
|
|
1066
1069
|
return be ? document.visibilityState !== "hidden" : !0;
|
|
1067
1070
|
}
|
|
1068
1071
|
var ae = [];
|
|
1069
|
-
function
|
|
1070
|
-
return ae.push(
|
|
1071
|
-
var n = ae.indexOf(
|
|
1072
|
+
function pt(r) {
|
|
1073
|
+
return ae.push(r), function() {
|
|
1074
|
+
var n = ae.indexOf(r);
|
|
1072
1075
|
ae.splice(n, 1);
|
|
1073
1076
|
};
|
|
1074
1077
|
}
|
|
1075
1078
|
if (be) {
|
|
1076
1079
|
var yt = function() {
|
|
1077
1080
|
if (Ie())
|
|
1078
|
-
for (var
|
|
1079
|
-
var
|
|
1080
|
-
|
|
1081
|
+
for (var r = 0; r < ae.length; r++) {
|
|
1082
|
+
var e = ae[r];
|
|
1083
|
+
e();
|
|
1081
1084
|
}
|
|
1082
1085
|
};
|
|
1083
1086
|
window.addEventListener("visibilitychange", yt, !1);
|
|
1084
1087
|
}
|
|
1085
|
-
var
|
|
1086
|
-
var n =
|
|
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() {
|
|
1087
1090
|
var v;
|
|
1088
1091
|
f.current && clearTimeout(f.current), (v = s.current) === null || v === void 0 || v.call(s);
|
|
1089
1092
|
};
|
|
@@ -1102,9 +1105,9 @@ var pt = function(e, r) {
|
|
|
1102
1105
|
onFinally: function() {
|
|
1103
1106
|
c === -1 || // When an error occurs, the request is not repeated after pollingErrorRetryCount retries
|
|
1104
1107
|
c !== -1 && u.current <= c ? f.current = setTimeout(function() {
|
|
1105
|
-
!i && !Ie() ? s.current =
|
|
1106
|
-
|
|
1107
|
-
}) :
|
|
1108
|
+
!i && !Ie() ? s.current = pt(function() {
|
|
1109
|
+
r.refresh();
|
|
1110
|
+
}) : r.refresh();
|
|
1108
1111
|
}, n) : u.current = 0;
|
|
1109
1112
|
},
|
|
1110
1113
|
onCancel: function() {
|
|
@@ -1112,45 +1115,45 @@ var pt = function(e, r) {
|
|
|
1112
1115
|
}
|
|
1113
1116
|
} : {};
|
|
1114
1117
|
};
|
|
1115
|
-
function
|
|
1118
|
+
function Tt(r, e) {
|
|
1116
1119
|
var n = !1;
|
|
1117
1120
|
return function() {
|
|
1118
1121
|
for (var a = [], i = 0; i < arguments.length; i++)
|
|
1119
1122
|
a[i] = arguments[i];
|
|
1120
|
-
n || (n = !0,
|
|
1123
|
+
n || (n = !0, r.apply(void 0, O([], R(a), !1)), setTimeout(function() {
|
|
1121
1124
|
n = !1;
|
|
1122
|
-
},
|
|
1125
|
+
}, e));
|
|
1123
1126
|
};
|
|
1124
1127
|
}
|
|
1125
|
-
function
|
|
1128
|
+
function wt() {
|
|
1126
1129
|
return be && typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
1127
1130
|
}
|
|
1128
1131
|
var ie = [];
|
|
1129
|
-
function
|
|
1130
|
-
return ie.push(
|
|
1131
|
-
var n = ie.indexOf(
|
|
1132
|
+
function jt(r) {
|
|
1133
|
+
return ie.push(r), function() {
|
|
1134
|
+
var n = ie.indexOf(r);
|
|
1132
1135
|
n > -1 && ie.splice(n, 1);
|
|
1133
1136
|
};
|
|
1134
1137
|
}
|
|
1135
1138
|
if (be) {
|
|
1136
|
-
var
|
|
1137
|
-
if (!(!Ie() || !
|
|
1138
|
-
for (var
|
|
1139
|
-
var
|
|
1140
|
-
|
|
1139
|
+
var hr = function() {
|
|
1140
|
+
if (!(!Ie() || !wt()))
|
|
1141
|
+
for (var r = 0; r < ie.length; r++) {
|
|
1142
|
+
var e = ie[r];
|
|
1143
|
+
e();
|
|
1141
1144
|
}
|
|
1142
1145
|
};
|
|
1143
|
-
window.addEventListener("visibilitychange",
|
|
1146
|
+
window.addEventListener("visibilitychange", hr, !1), window.addEventListener("focus", hr, !1);
|
|
1144
1147
|
}
|
|
1145
|
-
var
|
|
1146
|
-
var n =
|
|
1148
|
+
var _t = function(r, e) {
|
|
1149
|
+
var n = e.refreshOnWindowFocus, a = e.focusTimespan, i = a === void 0 ? 5e3 : a, o = j(), c = function() {
|
|
1147
1150
|
var f;
|
|
1148
1151
|
(f = o.current) === null || f === void 0 || f.call(o);
|
|
1149
1152
|
};
|
|
1150
1153
|
return Z(function() {
|
|
1151
1154
|
if (n) {
|
|
1152
|
-
var f =
|
|
1153
|
-
o.current =
|
|
1155
|
+
var f = Tt(r.refresh.bind(r), i);
|
|
1156
|
+
o.current = jt(function() {
|
|
1154
1157
|
f();
|
|
1155
1158
|
});
|
|
1156
1159
|
}
|
|
@@ -1160,8 +1163,8 @@ var jt = function(e, r) {
|
|
|
1160
1163
|
}, [n, i]), $e(function() {
|
|
1161
1164
|
c();
|
|
1162
1165
|
}), {};
|
|
1163
|
-
},
|
|
1164
|
-
var n =
|
|
1166
|
+
}, Rt = function(r, e) {
|
|
1167
|
+
var n = e.retryInterval, a = e.retryCount, i = j(), o = j(0), c = j(!1);
|
|
1165
1168
|
return a ? {
|
|
1166
1169
|
onBefore: function() {
|
|
1167
1170
|
c.current || (o.current = 0), c.current = !1, i.current && clearTimeout(i.current);
|
|
@@ -1173,7 +1176,7 @@ var jt = function(e, r) {
|
|
|
1173
1176
|
if (o.current += 1, a === -1 || o.current <= a) {
|
|
1174
1177
|
var f = n ?? Math.min(1e3 * Math.pow(2, o.current), 3e4);
|
|
1175
1178
|
i.current = setTimeout(function() {
|
|
1176
|
-
c.current = !0,
|
|
1179
|
+
c.current = !0, r.refresh();
|
|
1177
1180
|
}, f);
|
|
1178
1181
|
} else
|
|
1179
1182
|
o.current = 0;
|
|
@@ -1183,15 +1186,15 @@ var jt = function(e, r) {
|
|
|
1183
1186
|
}
|
|
1184
1187
|
} : {};
|
|
1185
1188
|
}, Me, pr;
|
|
1186
|
-
function
|
|
1189
|
+
function Ot() {
|
|
1187
1190
|
if (pr) return Me;
|
|
1188
1191
|
pr = 1;
|
|
1189
|
-
var
|
|
1192
|
+
var r = Pr(), e = Fe(), n = "Expected a function";
|
|
1190
1193
|
function a(i, o, c) {
|
|
1191
1194
|
var f = !0, s = !0;
|
|
1192
1195
|
if (typeof i != "function")
|
|
1193
1196
|
throw new TypeError(n);
|
|
1194
|
-
return
|
|
1197
|
+
return e(c) && (f = "leading" in c ? !!c.leading : f, s = "trailing" in c ? !!c.trailing : s), r(i, o, {
|
|
1195
1198
|
leading: f,
|
|
1196
1199
|
maxWait: o,
|
|
1197
1200
|
trailing: s
|
|
@@ -1199,27 +1202,27 @@ function Rt() {
|
|
|
1199
1202
|
}
|
|
1200
1203
|
return Me = a, Me;
|
|
1201
1204
|
}
|
|
1202
|
-
var
|
|
1203
|
-
const
|
|
1204
|
-
var
|
|
1205
|
-
var n =
|
|
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 = {};
|
|
1206
1209
|
return a !== void 0 && (c.leading = a), i !== void 0 && (c.trailing = i), Z(function() {
|
|
1207
1210
|
if (n) {
|
|
1208
|
-
var f =
|
|
1209
|
-
return o.current =
|
|
1211
|
+
var f = r.runAsync.bind(r);
|
|
1212
|
+
return o.current = xt(function(s) {
|
|
1210
1213
|
s();
|
|
1211
|
-
}, n, c),
|
|
1214
|
+
}, n, c), r.runAsync = function() {
|
|
1212
1215
|
for (var s = [], u = 0; u < arguments.length; u++)
|
|
1213
1216
|
s[u] = arguments[u];
|
|
1214
1217
|
return new Promise(function(m, v) {
|
|
1215
|
-
var
|
|
1216
|
-
(
|
|
1218
|
+
var y;
|
|
1219
|
+
(y = o.current) === null || y === void 0 || y.call(o, function() {
|
|
1217
1220
|
f.apply(void 0, O([], R(s), !1)).then(m).catch(v);
|
|
1218
1221
|
});
|
|
1219
1222
|
});
|
|
1220
1223
|
}, function() {
|
|
1221
1224
|
var s;
|
|
1222
|
-
|
|
1225
|
+
r.runAsync = f, (s = o.current) === null || s === void 0 || s.cancel();
|
|
1223
1226
|
};
|
|
1224
1227
|
}
|
|
1225
1228
|
}, [n, a, i]), n ? {
|
|
@@ -1228,20 +1231,20 @@ var xt = function(e, r) {
|
|
|
1228
1231
|
(f = o.current) === null || f === void 0 || f.cancel();
|
|
1229
1232
|
}
|
|
1230
1233
|
} : {};
|
|
1231
|
-
},
|
|
1232
|
-
me && (ve(
|
|
1233
|
-
|
|
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() {
|
|
1236
|
+
r == null || r();
|
|
1234
1237
|
}, []);
|
|
1235
|
-
},
|
|
1236
|
-
var
|
|
1238
|
+
}, At = function() {
|
|
1239
|
+
var r = R(Mr({}), 2), e = r[1];
|
|
1237
1240
|
return Wr(function() {
|
|
1238
|
-
return
|
|
1241
|
+
return e({});
|
|
1239
1242
|
}, []);
|
|
1240
|
-
},
|
|
1243
|
+
}, Nt = (
|
|
1241
1244
|
/** @class */
|
|
1242
1245
|
function() {
|
|
1243
|
-
function e
|
|
1244
|
-
i === void 0 && (i = {}), this.serviceRef =
|
|
1246
|
+
function r(e, n, a, i) {
|
|
1247
|
+
i === void 0 && (i = {}), this.serviceRef = e, this.options = n, this.subscribe = a, this.initState = i, this.count = 0, this.state = {
|
|
1245
1248
|
loading: !1,
|
|
1246
1249
|
params: void 0,
|
|
1247
1250
|
data: void 0,
|
|
@@ -1250,50 +1253,50 @@ var xt = function(e, r) {
|
|
|
1250
1253
|
loading: !n.manual
|
|
1251
1254
|
}), i);
|
|
1252
1255
|
}
|
|
1253
|
-
return
|
|
1254
|
-
|
|
1255
|
-
},
|
|
1256
|
+
return r.prototype.setState = function(e) {
|
|
1257
|
+
e === void 0 && (e = {}), this.state = A(A({}, this.state), e), this.subscribe();
|
|
1258
|
+
}, r.prototype.runPluginHandler = function(e) {
|
|
1256
1259
|
for (var n = [], a = 1; a < arguments.length; a++)
|
|
1257
1260
|
n[a - 1] = arguments[a];
|
|
1258
1261
|
var i = this.pluginImpls.map(function(o) {
|
|
1259
1262
|
var c;
|
|
1260
|
-
return (c = o[
|
|
1263
|
+
return (c = o[e]) === null || c === void 0 ? void 0 : c.call.apply(c, O([o], R(n), !1));
|
|
1261
1264
|
}).filter(Boolean);
|
|
1262
1265
|
return Object.assign.apply(Object, O([{}], R(i), !1));
|
|
1263
|
-
},
|
|
1264
|
-
for (var
|
|
1265
|
-
|
|
1266
|
-
return
|
|
1267
|
-
var a, i, o, c, f, s, u, m, v,
|
|
1268
|
-
return
|
|
1266
|
+
}, r.prototype.runAsync = function() {
|
|
1267
|
+
for (var e = [], n = 0; n < arguments.length; n++)
|
|
1268
|
+
e[n] = arguments[n];
|
|
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) {
|
|
1269
1272
|
switch (P.label) {
|
|
1270
1273
|
case 0:
|
|
1271
|
-
if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore",
|
|
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)
|
|
1272
1275
|
return [2, new Promise(function() {
|
|
1273
1276
|
})];
|
|
1274
1277
|
if (this.setState(A({
|
|
1275
1278
|
loading: !0,
|
|
1276
|
-
params:
|
|
1279
|
+
params: e
|
|
1277
1280
|
}, u)), s)
|
|
1278
1281
|
return [2, Promise.resolve(u.data)];
|
|
1279
|
-
(E = (b = this.options).onBefore) === null || E === void 0 || E.call(b,
|
|
1282
|
+
(E = (b = this.options).onBefore) === null || E === void 0 || E.call(b, e), P.label = 1;
|
|
1280
1283
|
case 1:
|
|
1281
|
-
return P.trys.push([1, 3, , 4]), m = this.runPluginHandler("onRequest", this.serviceRef.current,
|
|
1284
|
+
return P.trys.push([1, 3, , 4]), m = this.runPluginHandler("onRequest", this.serviceRef.current, e).servicePromise, m || (m = (g = this.serviceRef).current.apply(g, O([], R(e), !1))), [4, m];
|
|
1282
1285
|
case 2:
|
|
1283
1286
|
return v = P.sent(), a !== this.count ? [2, new Promise(function() {
|
|
1284
1287
|
})] : (this.setState({
|
|
1285
1288
|
data: v,
|
|
1286
1289
|
error: void 0,
|
|
1287
1290
|
loading: !1
|
|
1288
|
-
}), (q = (x = this.options).onSuccess) === null || q === void 0 || q.call(x, v,
|
|
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]);
|
|
1289
1292
|
case 3:
|
|
1290
|
-
if (
|
|
1293
|
+
if (y = P.sent(), a !== this.count)
|
|
1291
1294
|
return [2, new Promise(function() {
|
|
1292
1295
|
})];
|
|
1293
1296
|
throw this.setState({
|
|
1294
|
-
error:
|
|
1297
|
+
error: y,
|
|
1295
1298
|
loading: !1
|
|
1296
|
-
}), (G = (k = this.options).onError) === null || G === void 0 || G.call(k,
|
|
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;
|
|
1297
1300
|
case 4:
|
|
1298
1301
|
return [
|
|
1299
1302
|
2
|
|
@@ -1302,48 +1305,48 @@ var xt = function(e, r) {
|
|
|
1302
1305
|
}
|
|
1303
1306
|
});
|
|
1304
1307
|
});
|
|
1305
|
-
},
|
|
1306
|
-
for (var
|
|
1308
|
+
}, r.prototype.run = function() {
|
|
1309
|
+
for (var e = this, n = [], a = 0; a < arguments.length; a++)
|
|
1307
1310
|
n[a] = arguments[a];
|
|
1308
1311
|
this.runAsync.apply(this, O([], R(n), !1)).catch(function(i) {
|
|
1309
|
-
|
|
1312
|
+
e.options.onError || console.error(i);
|
|
1310
1313
|
});
|
|
1311
|
-
},
|
|
1314
|
+
}, r.prototype.cancel = function() {
|
|
1312
1315
|
this.count += 1, this.setState({
|
|
1313
1316
|
loading: !1
|
|
1314
1317
|
}), this.runPluginHandler("onCancel");
|
|
1315
|
-
},
|
|
1318
|
+
}, r.prototype.refresh = function() {
|
|
1316
1319
|
this.run.apply(this, O([], R(this.state.params || []), !1));
|
|
1317
|
-
},
|
|
1320
|
+
}, r.prototype.refreshAsync = function() {
|
|
1318
1321
|
return this.runAsync.apply(this, O([], R(this.state.params || []), !1));
|
|
1319
|
-
},
|
|
1320
|
-
var n = ve(
|
|
1322
|
+
}, r.prototype.mutate = function(e) {
|
|
1323
|
+
var n = ve(e) ? e(this.state.data) : e;
|
|
1321
1324
|
this.runPluginHandler("onMutate", n), this.setState({
|
|
1322
1325
|
data: n
|
|
1323
1326
|
});
|
|
1324
|
-
},
|
|
1327
|
+
}, r;
|
|
1325
1328
|
}()
|
|
1326
1329
|
);
|
|
1327
|
-
function
|
|
1328
|
-
|
|
1329
|
-
var a =
|
|
1330
|
-
me &&
|
|
1330
|
+
function kt(r, e, n) {
|
|
1331
|
+
e === void 0 && (e = {}), n === void 0 && (n = []);
|
|
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"]);
|
|
1333
|
+
me && e.defaultParams && !Array.isArray(e.defaultParams) && console.warn("expected defaultParams is array, got ".concat(typeof e.defaultParams));
|
|
1331
1334
|
var s = A({
|
|
1332
1335
|
manual: i,
|
|
1333
1336
|
ready: c
|
|
1334
|
-
}, f), u = Or(
|
|
1335
|
-
var
|
|
1337
|
+
}, f), u = Or(r), m = At(), v = Rr(function() {
|
|
1338
|
+
var y = n.map(function(g) {
|
|
1336
1339
|
var b;
|
|
1337
1340
|
return (b = g == null ? void 0 : g.onInit) === null || b === void 0 ? void 0 : b.call(g, s);
|
|
1338
1341
|
}).filter(Boolean);
|
|
1339
|
-
return new
|
|
1342
|
+
return new Nt(u, s, m, Object.assign.apply(Object, O([{}], R(y), !1)));
|
|
1340
1343
|
}, []);
|
|
1341
|
-
return v.options = s, v.pluginImpls = n.map(function(
|
|
1342
|
-
return
|
|
1343
|
-
}),
|
|
1344
|
+
return v.options = s, v.pluginImpls = n.map(function(y) {
|
|
1345
|
+
return y(v, s);
|
|
1346
|
+
}), Ct(function() {
|
|
1344
1347
|
if (!i && c) {
|
|
1345
|
-
var
|
|
1346
|
-
v.run.apply(v, O([], R(
|
|
1348
|
+
var y = v.state.params || e.defaultParams || [];
|
|
1349
|
+
v.run.apply(v, O([], R(y), !1));
|
|
1347
1350
|
}
|
|
1348
1351
|
}), $e(function() {
|
|
1349
1352
|
v.cancel();
|
|
@@ -1352,23 +1355,23 @@ function Nt(e, r, n) {
|
|
|
1352
1355
|
data: v.state.data,
|
|
1353
1356
|
error: v.state.error,
|
|
1354
1357
|
params: v.state.params || [],
|
|
1355
|
-
cancel:
|
|
1356
|
-
refresh:
|
|
1357
|
-
refreshAsync:
|
|
1358
|
-
run:
|
|
1359
|
-
runAsync:
|
|
1360
|
-
mutate:
|
|
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))
|
|
1361
1364
|
};
|
|
1362
1365
|
}
|
|
1363
|
-
function
|
|
1364
|
-
return
|
|
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));
|
|
1365
1368
|
}
|
|
1366
|
-
function
|
|
1367
|
-
const a =
|
|
1368
|
-
...
|
|
1369
|
+
function Yt(r, e, n) {
|
|
1370
|
+
const a = qt(r, {
|
|
1371
|
+
...e,
|
|
1369
1372
|
onError(o, c) {
|
|
1370
1373
|
var f;
|
|
1371
|
-
((
|
|
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);
|
|
1372
1375
|
}
|
|
1373
1376
|
}, n), i = a.data && typeof a.data == "object" && "data" in a.data ? a.data.data : a.data;
|
|
1374
1377
|
return {
|
|
@@ -1377,12 +1380,12 @@ function Lt(e, r, n) {
|
|
|
1377
1380
|
};
|
|
1378
1381
|
}
|
|
1379
1382
|
export {
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1383
|
+
$t as App,
|
|
1384
|
+
It as CheckboxValue,
|
|
1385
|
+
Ft as IconFont,
|
|
1386
|
+
Lt as SwitchValue,
|
|
1384
1387
|
wr as message,
|
|
1385
1388
|
zr as modal,
|
|
1386
1389
|
Hr as notification,
|
|
1387
|
-
|
|
1390
|
+
Yt as useRequest
|
|
1388
1391
|
};
|