xmirror-components 1.0.17 → 1.0.18
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 +13 -13
- package/build/dist/index.mjs +207 -199
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/lib/index.d.ts +4 -0
- package/build/lib/index.js +4 -1
- package/build/package.json +1 -1
- package/build/types/index.d.ts +1 -0
- package/package.json +1 -1
package/build/dist/index.mjs
CHANGED
|
@@ -116,7 +116,7 @@ function Ut() {
|
|
|
116
116
|
}
|
|
117
117
|
function i() {
|
|
118
118
|
if (S === 0) {
|
|
119
|
-
P = console.log, _ = console.info,
|
|
119
|
+
P = console.log, _ = console.info, C = console.warn, A = console.error, k = console.group, N = console.groupCollapsed, V = console.groupEnd;
|
|
120
120
|
var s = {
|
|
121
121
|
configurable: !0,
|
|
122
122
|
enumerable: !0,
|
|
@@ -141,7 +141,7 @@ function Ut() {
|
|
|
141
141
|
Object.defineProperties(console, {
|
|
142
142
|
log: g({}, s, { value: P }),
|
|
143
143
|
info: g({}, s, { value: _ }),
|
|
144
|
-
warn: g({}, s, { value:
|
|
144
|
+
warn: g({}, s, { value: C }),
|
|
145
145
|
error: g({}, s, { value: A }),
|
|
146
146
|
group: g({}, s, { value: k }),
|
|
147
147
|
groupCollapsed: g({}, s, { value: N }),
|
|
@@ -224,35 +224,35 @@ function Ut() {
|
|
|
224
224
|
"name",
|
|
225
225
|
{ value: "DetermineComponentFrameRoot" }
|
|
226
226
|
);
|
|
227
|
-
var
|
|
227
|
+
var w = Z.DetermineComponentFrameRoot(), le = w[0], Oe = w[1];
|
|
228
228
|
if (le && Oe) {
|
|
229
229
|
var ee = le.split(`
|
|
230
230
|
`), be = Oe.split(`
|
|
231
231
|
`);
|
|
232
|
-
for (
|
|
232
|
+
for (w = U = 0; U < ee.length && !ee[U].includes(
|
|
233
233
|
"DetermineComponentFrameRoot"
|
|
234
234
|
); )
|
|
235
235
|
U++;
|
|
236
|
-
for (;
|
|
236
|
+
for (; w < be.length && !be[w].includes(
|
|
237
237
|
"DetermineComponentFrameRoot"
|
|
238
238
|
); )
|
|
239
|
-
|
|
240
|
-
if (U === ee.length ||
|
|
241
|
-
for (U = ee.length - 1,
|
|
242
|
-
|
|
243
|
-
for (; 1 <= U && 0 <=
|
|
244
|
-
if (ee[U] !== be[
|
|
245
|
-
if (U !== 1 ||
|
|
239
|
+
w++;
|
|
240
|
+
if (U === ee.length || w === be.length)
|
|
241
|
+
for (U = ee.length - 1, w = be.length - 1; 1 <= U && 0 <= w && ee[U] !== be[w]; )
|
|
242
|
+
w--;
|
|
243
|
+
for (; 1 <= U && 0 <= w; U--, w--)
|
|
244
|
+
if (ee[U] !== be[w]) {
|
|
245
|
+
if (U !== 1 || w !== 1)
|
|
246
246
|
do
|
|
247
|
-
if (U--,
|
|
248
|
-
var
|
|
247
|
+
if (U--, w--, 0 > w || ee[U] !== be[w]) {
|
|
248
|
+
var Ce = `
|
|
249
249
|
` + ee[U].replace(
|
|
250
250
|
" at new ",
|
|
251
251
|
" at "
|
|
252
252
|
);
|
|
253
|
-
return s.displayName &&
|
|
253
|
+
return s.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", s.displayName)), typeof s == "function" && Se.set(s, Ce), Ce;
|
|
254
254
|
}
|
|
255
|
-
while (1 <= U && 0 <=
|
|
255
|
+
while (1 <= U && 0 <= w);
|
|
256
256
|
break;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
@@ -345,30 +345,30 @@ function Ut() {
|
|
|
345
345
|
}
|
|
346
346
|
function h(s, E, T, M, Z, U) {
|
|
347
347
|
if (typeof s == "string" || typeof s == "function" || s === J || s === H || s === re || s === oe || s === W || s === Q || typeof s == "object" && s !== null && (s.$$typeof === te || s.$$typeof === B || s.$$typeof === pe || s.$$typeof === fe || s.$$typeof === se || s.$$typeof === j || s.getModuleId !== void 0)) {
|
|
348
|
-
var
|
|
349
|
-
if (
|
|
348
|
+
var w = E.children;
|
|
349
|
+
if (w !== void 0)
|
|
350
350
|
if (M)
|
|
351
|
-
if (R(
|
|
352
|
-
for (M = 0; M <
|
|
353
|
-
x(
|
|
354
|
-
Object.freeze && Object.freeze(
|
|
351
|
+
if (R(w)) {
|
|
352
|
+
for (M = 0; M < w.length; M++)
|
|
353
|
+
x(w[M], s);
|
|
354
|
+
Object.freeze && Object.freeze(w);
|
|
355
355
|
} else
|
|
356
356
|
console.error(
|
|
357
357
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
358
358
|
);
|
|
359
|
-
else x(
|
|
359
|
+
else x(w, s);
|
|
360
360
|
} else
|
|
361
|
-
|
|
361
|
+
w = "", (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), s === null ? M = "null" : R(s) ? M = "array" : s !== void 0 && s.$$typeof === L ? (M = "<" + (e(s.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : M = typeof s, console.error(
|
|
362
362
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
363
363
|
M,
|
|
364
|
-
|
|
364
|
+
w
|
|
365
365
|
);
|
|
366
366
|
if (v.call(E, "key")) {
|
|
367
|
-
|
|
367
|
+
w = e(s);
|
|
368
368
|
var le = Object.keys(E).filter(function(ee) {
|
|
369
369
|
return ee !== "key";
|
|
370
370
|
});
|
|
371
|
-
M = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", kr[
|
|
371
|
+
M = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", kr[w + M] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
372
372
|
`A props object containing a "key" prop is being spread into JSX:
|
|
373
373
|
let props = %s;
|
|
374
374
|
<%s {...props} />
|
|
@@ -376,20 +376,20 @@ React keys must be passed directly to JSX without using spread:
|
|
|
376
376
|
let props = %s;
|
|
377
377
|
<%s key={someKey} {...props} />`,
|
|
378
378
|
M,
|
|
379
|
-
|
|
379
|
+
w,
|
|
380
380
|
le,
|
|
381
|
-
|
|
382
|
-
), kr[
|
|
381
|
+
w
|
|
382
|
+
), kr[w + M] = !0);
|
|
383
383
|
}
|
|
384
|
-
if (
|
|
384
|
+
if (w = null, T !== void 0 && (n(T), w = "" + T), l(E) && (n(E.key), w = "" + E.key), "key" in E) {
|
|
385
385
|
T = {};
|
|
386
386
|
for (var Oe in E)
|
|
387
387
|
Oe !== "key" && (T[Oe] = E[Oe]);
|
|
388
388
|
} else T = E;
|
|
389
|
-
return
|
|
389
|
+
return w && d(
|
|
390
390
|
T,
|
|
391
391
|
typeof s == "function" ? s.displayName || s.name || "Unknown" : s
|
|
392
|
-
), b(s,
|
|
392
|
+
), b(s, w, U, Z, u(), T);
|
|
393
393
|
}
|
|
394
394
|
function x(s, E) {
|
|
395
395
|
if (typeof s == "object" && s && s.$$typeof !== At) {
|
|
@@ -432,7 +432,7 @@ Check the render method of \`` + T + "`."), E || (s = e(s)) && (E = `
|
|
|
432
432
|
|
|
433
433
|
Check the top-level render call using <` + s + ">."), E;
|
|
434
434
|
}
|
|
435
|
-
var D = ve, L = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), J = Symbol.for("react.fragment"), re = Symbol.for("react.strict_mode"), H = Symbol.for("react.profiler"), fe = Symbol.for("react.consumer"), pe = Symbol.for("react.context"), se = Symbol.for("react.forward_ref"), oe = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), te = Symbol.for("react.lazy"), Q = Symbol.for("react.offscreen"), ue = Symbol.iterator, xe = Symbol.for("react.client.reference"), ie = D.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, v = Object.prototype.hasOwnProperty, g = Object.assign, j = Symbol.for("react.client.reference"), R = Array.isArray, S = 0, P, _,
|
|
435
|
+
var D = ve, L = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), J = Symbol.for("react.fragment"), re = Symbol.for("react.strict_mode"), H = Symbol.for("react.profiler"), fe = Symbol.for("react.consumer"), pe = Symbol.for("react.context"), se = Symbol.for("react.forward_ref"), oe = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), te = Symbol.for("react.lazy"), Q = Symbol.for("react.offscreen"), ue = Symbol.iterator, xe = Symbol.for("react.client.reference"), ie = D.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, v = Object.prototype.hasOwnProperty, g = Object.assign, j = Symbol.for("react.client.reference"), R = Array.isArray, S = 0, P, _, C, A, k, N, V;
|
|
436
436
|
r.__reactDisabledLog = !0;
|
|
437
437
|
var m, ne, me = !1, Se = new (typeof WeakMap == "function" ? WeakMap : Map)(), At = Symbol.for("react.client.reference"), Ar, Nr = {}, kr = {}, $r = {};
|
|
438
438
|
Pe.Fragment = J, Pe.jsx = function(s, E, T, M, Z) {
|
|
@@ -622,7 +622,7 @@ function zt() {
|
|
|
622
622
|
function _(m) {
|
|
623
623
|
return L(m) === h;
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function C(m) {
|
|
626
626
|
return L(m) === b;
|
|
627
627
|
}
|
|
628
628
|
function A(m) {
|
|
@@ -637,7 +637,7 @@ function zt() {
|
|
|
637
637
|
function V(m) {
|
|
638
638
|
return L(m) === d;
|
|
639
639
|
}
|
|
640
|
-
q.AsyncMode = p, q.ConcurrentMode = J, q.ContextConsumer = re, q.ContextProvider = H, q.Element = fe, q.ForwardRef = pe, q.Fragment = se, q.Lazy = oe, q.Memo = W, q.Portal = B, q.Profiler = te, q.StrictMode = Q, q.Suspense = ue, q.isAsyncMode = ie, q.isConcurrentMode = v, q.isContextConsumer = g, q.isContextProvider = j, q.isElement = R, q.isForwardRef = S, q.isFragment = P, q.isLazy = _, q.isMemo =
|
|
640
|
+
q.AsyncMode = p, q.ConcurrentMode = J, q.ContextConsumer = re, q.ContextProvider = H, q.Element = fe, q.ForwardRef = pe, q.Fragment = se, q.Lazy = oe, q.Memo = W, q.Portal = B, q.Profiler = te, q.StrictMode = Q, q.Suspense = ue, q.isAsyncMode = ie, q.isConcurrentMode = v, q.isContextConsumer = g, q.isContextProvider = j, q.isElement = R, q.isForwardRef = S, q.isFragment = P, q.isLazy = _, q.isMemo = C, q.isPortal = A, q.isProfiler = k, q.isStrictMode = N, q.isSuspense = V, q.isValidElementType = D, q.typeOf = L;
|
|
641
641
|
}()), q;
|
|
642
642
|
}
|
|
643
643
|
var Wr;
|
|
@@ -810,28 +810,28 @@ function Xt() {
|
|
|
810
810
|
function $(v) {
|
|
811
811
|
if (process.env.NODE_ENV !== "production")
|
|
812
812
|
var g = {}, j = 0;
|
|
813
|
-
function R(P, _,
|
|
814
|
-
if (A = A || y, N = N ||
|
|
813
|
+
function R(P, _, C, A, k, N, V) {
|
|
814
|
+
if (A = A || y, N = N || C, V !== n) {
|
|
815
815
|
if (f) {
|
|
816
816
|
var m = new Error(
|
|
817
817
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
818
818
|
);
|
|
819
819
|
throw m.name = "Invariant Violation", m;
|
|
820
820
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
821
|
-
var ne = A + ":" +
|
|
821
|
+
var ne = A + ":" + C;
|
|
822
822
|
!g[ne] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
823
823
|
j < 3 && (o(
|
|
824
824
|
"You are manually calling a React.PropTypes validation function for the `" + N + "` prop on `" + A + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
825
825
|
), g[ne] = !0, j++);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
return _[
|
|
828
|
+
return _[C] == null ? P ? _[C] === null ? new x("The " + k + " `" + N + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new x("The " + k + " `" + N + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : v(_, C, A, k, N);
|
|
829
829
|
}
|
|
830
830
|
var S = R.bind(null, !1);
|
|
831
831
|
return S.isRequired = R.bind(null, !0), S;
|
|
832
832
|
}
|
|
833
833
|
function G(v) {
|
|
834
|
-
function g(j, R, S, P, _,
|
|
834
|
+
function g(j, R, S, P, _, C) {
|
|
835
835
|
var A = j[R], k = Q(A);
|
|
836
836
|
if (k !== v) {
|
|
837
837
|
var N = ue(A);
|
|
@@ -851,13 +851,13 @@ function Xt() {
|
|
|
851
851
|
function g(j, R, S, P, _) {
|
|
852
852
|
if (typeof v != "function")
|
|
853
853
|
return new x("Property `" + _ + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
|
|
854
|
-
var
|
|
855
|
-
if (!Array.isArray(
|
|
856
|
-
var A = Q(
|
|
854
|
+
var C = j[R];
|
|
855
|
+
if (!Array.isArray(C)) {
|
|
856
|
+
var A = Q(C);
|
|
857
857
|
return new x("Invalid " + P + " `" + _ + "` of type " + ("`" + A + "` supplied to `" + S + "`, expected an array."));
|
|
858
858
|
}
|
|
859
|
-
for (var k = 0; k <
|
|
860
|
-
var N = v(
|
|
859
|
+
for (var k = 0; k < C.length; k++) {
|
|
860
|
+
var N = v(C, k, S, P, _ + "[" + k + "]", n);
|
|
861
861
|
if (N instanceof Error)
|
|
862
862
|
return N;
|
|
863
863
|
}
|
|
@@ -869,8 +869,8 @@ function Xt() {
|
|
|
869
869
|
function v(g, j, R, S, P) {
|
|
870
870
|
var _ = g[j];
|
|
871
871
|
if (!c(_)) {
|
|
872
|
-
var
|
|
873
|
-
return new x("Invalid " + S + " `" + P + "` of type " + ("`" +
|
|
872
|
+
var C = Q(_);
|
|
873
|
+
return new x("Invalid " + S + " `" + P + "` of type " + ("`" + C + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
874
874
|
}
|
|
875
875
|
return null;
|
|
876
876
|
}
|
|
@@ -880,8 +880,8 @@ function Xt() {
|
|
|
880
880
|
function v(g, j, R, S, P) {
|
|
881
881
|
var _ = g[j];
|
|
882
882
|
if (!e.isValidElementType(_)) {
|
|
883
|
-
var
|
|
884
|
-
return new x("Invalid " + S + " `" + P + "` of type " + ("`" +
|
|
883
|
+
var C = Q(_);
|
|
884
|
+
return new x("Invalid " + S + " `" + P + "` of type " + ("`" + C + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
|
885
885
|
}
|
|
886
886
|
return null;
|
|
887
887
|
}
|
|
@@ -890,8 +890,8 @@ function Xt() {
|
|
|
890
890
|
function J(v) {
|
|
891
891
|
function g(j, R, S, P, _) {
|
|
892
892
|
if (!(j[R] instanceof v)) {
|
|
893
|
-
var
|
|
894
|
-
return new x("Invalid " + P + " `" + _ + "` of type " + ("`" + A + "` supplied to `" + S + "`, expected ") + ("instance of `" +
|
|
893
|
+
var C = v.name || y, A = ie(j[R]);
|
|
894
|
+
return new x("Invalid " + P + " `" + _ + "` of type " + ("`" + A + "` supplied to `" + S + "`, expected ") + ("instance of `" + C + "`."));
|
|
895
895
|
}
|
|
896
896
|
return null;
|
|
897
897
|
}
|
|
@@ -903,14 +903,14 @@ function Xt() {
|
|
|
903
903
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
904
904
|
) : o("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
905
905
|
function g(j, R, S, P, _) {
|
|
906
|
-
for (var
|
|
907
|
-
if (h(
|
|
906
|
+
for (var C = j[R], A = 0; A < v.length; A++)
|
|
907
|
+
if (h(C, v[A]))
|
|
908
908
|
return null;
|
|
909
909
|
var k = JSON.stringify(v, function(V, m) {
|
|
910
910
|
var ne = ue(m);
|
|
911
911
|
return ne === "symbol" ? String(m) : m;
|
|
912
912
|
});
|
|
913
|
-
return new x("Invalid " + P + " `" + _ + "` of value `" + String(
|
|
913
|
+
return new x("Invalid " + P + " `" + _ + "` of value `" + String(C) + "` " + ("supplied to `" + S + "`, expected one of " + k + "."));
|
|
914
914
|
}
|
|
915
915
|
return $(g);
|
|
916
916
|
}
|
|
@@ -918,12 +918,12 @@ function Xt() {
|
|
|
918
918
|
function g(j, R, S, P, _) {
|
|
919
919
|
if (typeof v != "function")
|
|
920
920
|
return new x("Property `" + _ + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
|
|
921
|
-
var
|
|
921
|
+
var C = j[R], A = Q(C);
|
|
922
922
|
if (A !== "object")
|
|
923
923
|
return new x("Invalid " + P + " `" + _ + "` of type " + ("`" + A + "` supplied to `" + S + "`, expected an object."));
|
|
924
|
-
for (var k in
|
|
925
|
-
if (r(
|
|
926
|
-
var N = v(
|
|
924
|
+
for (var k in C)
|
|
925
|
+
if (r(C, k)) {
|
|
926
|
+
var N = v(C, k, S, P, _ + "." + k, n);
|
|
927
927
|
if (N instanceof Error)
|
|
928
928
|
return N;
|
|
929
929
|
}
|
|
@@ -941,15 +941,15 @@ function Xt() {
|
|
|
941
941
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + xe(j) + " at index " + g + "."
|
|
942
942
|
), a;
|
|
943
943
|
}
|
|
944
|
-
function R(S, P, _,
|
|
944
|
+
function R(S, P, _, C, A) {
|
|
945
945
|
for (var k = [], N = 0; N < v.length; N++) {
|
|
946
|
-
var V = v[N], m = V(S, P, _,
|
|
946
|
+
var V = v[N], m = V(S, P, _, C, A, n);
|
|
947
947
|
if (m == null)
|
|
948
948
|
return null;
|
|
949
949
|
m.data && r(m.data, "expectedType") && k.push(m.data.expectedType);
|
|
950
950
|
}
|
|
951
951
|
var ne = k.length > 0 ? ", expected one of type [" + k.join(", ") + "]" : "";
|
|
952
|
-
return new x("Invalid " +
|
|
952
|
+
return new x("Invalid " + C + " `" + A + "` supplied to " + ("`" + _ + "`" + ne + "."));
|
|
953
953
|
}
|
|
954
954
|
return $(R);
|
|
955
955
|
}
|
|
@@ -966,14 +966,14 @@ function Xt() {
|
|
|
966
966
|
}
|
|
967
967
|
function oe(v) {
|
|
968
968
|
function g(j, R, S, P, _) {
|
|
969
|
-
var
|
|
969
|
+
var C = j[R], A = Q(C);
|
|
970
970
|
if (A !== "object")
|
|
971
971
|
return new x("Invalid " + P + " `" + _ + "` of type `" + A + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
972
972
|
for (var k in v) {
|
|
973
973
|
var N = v[k];
|
|
974
974
|
if (typeof N != "function")
|
|
975
975
|
return se(S, P, _, k, ue(N));
|
|
976
|
-
var V = N(
|
|
976
|
+
var V = N(C, k, S, P, _ + "." + k, n);
|
|
977
977
|
if (V)
|
|
978
978
|
return V;
|
|
979
979
|
}
|
|
@@ -983,7 +983,7 @@ function Xt() {
|
|
|
983
983
|
}
|
|
984
984
|
function W(v) {
|
|
985
985
|
function g(j, R, S, P, _) {
|
|
986
|
-
var
|
|
986
|
+
var C = j[R], A = Q(C);
|
|
987
987
|
if (A !== "object")
|
|
988
988
|
return new x("Invalid " + P + " `" + _ + "` of type `" + A + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
989
989
|
var k = t({}, j[R], v);
|
|
@@ -996,7 +996,7 @@ function Xt() {
|
|
|
996
996
|
"Invalid " + P + " `" + _ + "` key `" + N + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(j[R], null, " ") + `
|
|
997
997
|
Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
|
|
998
998
|
);
|
|
999
|
-
var m = V(
|
|
999
|
+
var m = V(C, N, S, P, _ + "." + N, n);
|
|
1000
1000
|
if (m)
|
|
1001
1001
|
return m;
|
|
1002
1002
|
}
|
|
@@ -1170,13 +1170,13 @@ var tn = process.env.NODE_ENV !== "production" ? O.oneOfType([O.number, O.shape(
|
|
|
1170
1170
|
const Et = ve.createContext(null);
|
|
1171
1171
|
var Tt = function(t) {
|
|
1172
1172
|
return t.scrollTop;
|
|
1173
|
-
}, Ne = "unmounted", ye = "exited", Ee = "entering",
|
|
1173
|
+
}, Ne = "unmounted", ye = "exited", Ee = "entering", we = "entered", xr = "exiting", ce = /* @__PURE__ */ function(e) {
|
|
1174
1174
|
ht(t, e);
|
|
1175
1175
|
function t(r, i) {
|
|
1176
1176
|
var o;
|
|
1177
1177
|
o = e.call(this, r, i) || this;
|
|
1178
1178
|
var a = i, c = a && !a.isMounting ? r.enter : r.appear, f;
|
|
1179
|
-
return o.appearStatus = null, r.in ? c ? (f = ye, o.appearStatus = Ee) : f =
|
|
1179
|
+
return o.appearStatus = null, r.in ? c ? (f = ye, o.appearStatus = Ee) : f = we : r.unmountOnExit || r.mountOnEnter ? f = Ne : f = ye, o.state = {
|
|
1180
1180
|
status: f
|
|
1181
1181
|
}, o.nextCallback = null, o;
|
|
1182
1182
|
}
|
|
@@ -1193,7 +1193,7 @@ var Tt = function(t) {
|
|
|
1193
1193
|
var o = null;
|
|
1194
1194
|
if (i !== this.props) {
|
|
1195
1195
|
var a = this.state.status;
|
|
1196
|
-
this.props.in ? a !== Ee && a !==
|
|
1196
|
+
this.props.in ? a !== Ee && a !== we && (o = Ee) : (a === Ee || a === we) && (o = xr);
|
|
1197
1197
|
}
|
|
1198
1198
|
this.updateStatus(!1, o);
|
|
1199
1199
|
}, n.componentWillUnmount = function() {
|
|
@@ -1222,7 +1222,7 @@ var Tt = function(t) {
|
|
|
1222
1222
|
var o = this, a = this.props.enter, c = this.context ? this.context.isMounting : i, f = this.props.nodeRef ? [c] : [Le.findDOMNode(this), c], u = f[0], l = f[1], d = this.getTimeouts(), y = c ? d.appear : d.enter;
|
|
1223
1223
|
if (!i && !a || Xr.disabled) {
|
|
1224
1224
|
this.safeSetState({
|
|
1225
|
-
status:
|
|
1225
|
+
status: we
|
|
1226
1226
|
}, function() {
|
|
1227
1227
|
o.props.onEntered(u);
|
|
1228
1228
|
});
|
|
@@ -1233,7 +1233,7 @@ var Tt = function(t) {
|
|
|
1233
1233
|
}, function() {
|
|
1234
1234
|
o.props.onEntering(u, l), o.onTransitionEnd(y, function() {
|
|
1235
1235
|
o.safeSetState({
|
|
1236
|
-
status:
|
|
1236
|
+
status: we
|
|
1237
1237
|
}, function() {
|
|
1238
1238
|
o.props.onEntered(u, l);
|
|
1239
1239
|
});
|
|
@@ -1487,7 +1487,7 @@ ce.defaultProps = {
|
|
|
1487
1487
|
ce.UNMOUNTED = Ne;
|
|
1488
1488
|
ce.EXITED = ye;
|
|
1489
1489
|
ce.ENTERING = Ee;
|
|
1490
|
-
ce.ENTERED =
|
|
1490
|
+
ce.ENTERED = we;
|
|
1491
1491
|
ce.EXITING = xr;
|
|
1492
1492
|
var on = function(t, n) {
|
|
1493
1493
|
return t && n && n.split(" ").forEach(function(r) {
|
|
@@ -1497,7 +1497,7 @@ var on = function(t, n) {
|
|
|
1497
1497
|
return t && n && n.split(" ").forEach(function(r) {
|
|
1498
1498
|
return rn(t, r);
|
|
1499
1499
|
});
|
|
1500
|
-
},
|
|
1500
|
+
}, wr = /* @__PURE__ */ function(e) {
|
|
1501
1501
|
ht(t, e);
|
|
1502
1502
|
function t() {
|
|
1503
1503
|
for (var r, i = arguments.length, o = new Array(i), a = 0; a < i; a++)
|
|
@@ -1556,10 +1556,10 @@ var on = function(t, n) {
|
|
|
1556
1556
|
}));
|
|
1557
1557
|
}, t;
|
|
1558
1558
|
}(ve.Component);
|
|
1559
|
-
|
|
1559
|
+
wr.defaultProps = {
|
|
1560
1560
|
classNames: ""
|
|
1561
1561
|
};
|
|
1562
|
-
|
|
1562
|
+
wr.propTypes = process.env.NODE_ENV !== "production" ? Be({}, ce.propTypes, {
|
|
1563
1563
|
/**
|
|
1564
1564
|
* The animation classNames applied to the component as it appears, enters,
|
|
1565
1565
|
* exits or has finished the transition. A single name can be provided, which
|
|
@@ -1683,11 +1683,17 @@ Cr.propTypes = process.env.NODE_ENV !== "production" ? Be({}, ce.propTypes, {
|
|
|
1683
1683
|
*/
|
|
1684
1684
|
onExited: O.func
|
|
1685
1685
|
}) : {};
|
|
1686
|
-
|
|
1686
|
+
let an = (e) => {
|
|
1687
|
+
console.warn("GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!");
|
|
1688
|
+
};
|
|
1689
|
+
function sn() {
|
|
1687
1690
|
const e = F(null), [t, n] = Rr(!1);
|
|
1688
1691
|
return he(() => {
|
|
1692
|
+
an = (r) => {
|
|
1693
|
+
n(r);
|
|
1694
|
+
};
|
|
1689
1695
|
}, []), /* @__PURE__ */ Y.jsx(
|
|
1690
|
-
|
|
1696
|
+
wr,
|
|
1691
1697
|
{
|
|
1692
1698
|
in: t,
|
|
1693
1699
|
nodeRef: e,
|
|
@@ -1745,24 +1751,24 @@ function an() {
|
|
|
1745
1751
|
}
|
|
1746
1752
|
);
|
|
1747
1753
|
}
|
|
1748
|
-
let xt = Mt,
|
|
1749
|
-
function
|
|
1754
|
+
let xt = Mt, un = It, cn = qt;
|
|
1755
|
+
function fn({ children: e }) {
|
|
1750
1756
|
const t = mt.useApp();
|
|
1751
|
-
return xt = t.message,
|
|
1757
|
+
return xt = t.message, cn = t.modal, un = t.notification, e || "";
|
|
1752
1758
|
}
|
|
1753
|
-
function
|
|
1759
|
+
function jo({ children: e, ...t }) {
|
|
1754
1760
|
return /* @__PURE__ */ Y.jsxs(
|
|
1755
1761
|
mt,
|
|
1756
1762
|
{
|
|
1757
1763
|
...t,
|
|
1758
1764
|
children: [
|
|
1759
|
-
/* @__PURE__ */ Y.jsx(
|
|
1760
|
-
/* @__PURE__ */ Y.jsx(
|
|
1765
|
+
/* @__PURE__ */ Y.jsx(sn, {}),
|
|
1766
|
+
/* @__PURE__ */ Y.jsx(fn, { children: e })
|
|
1761
1767
|
]
|
|
1762
1768
|
}
|
|
1763
1769
|
);
|
|
1764
1770
|
}
|
|
1765
|
-
const
|
|
1771
|
+
const ln = Nt(
|
|
1766
1772
|
({ type: e = "", className: t = "", symbol: n = !1, ...r }, i) => n ? /* @__PURE__ */ Y.jsx(
|
|
1767
1773
|
"svg",
|
|
1768
1774
|
{
|
|
@@ -1780,7 +1786,7 @@ const fn = Nt(
|
|
|
1780
1786
|
...r
|
|
1781
1787
|
}
|
|
1782
1788
|
)
|
|
1783
|
-
),
|
|
1789
|
+
), Po = ({
|
|
1784
1790
|
checked: e,
|
|
1785
1791
|
onChange: t,
|
|
1786
1792
|
trueValue: n = !0,
|
|
@@ -1802,7 +1808,7 @@ const fn = Nt(
|
|
|
1802
1808
|
children: a || (f ? i : o)
|
|
1803
1809
|
}
|
|
1804
1810
|
);
|
|
1805
|
-
},
|
|
1811
|
+
}, Ao = ({
|
|
1806
1812
|
checked: e,
|
|
1807
1813
|
onChange: t,
|
|
1808
1814
|
trueValue: n = !0,
|
|
@@ -1821,34 +1827,34 @@ const fn = Nt(
|
|
|
1821
1827
|
}
|
|
1822
1828
|
);
|
|
1823
1829
|
};
|
|
1824
|
-
var
|
|
1825
|
-
function
|
|
1826
|
-
var t =
|
|
1830
|
+
var dn = typeof global == "object" && global && global.Object === Object && global, vn = typeof self == "object" && self && self.Object === Object && self, pn = dn || vn || Function("return this")(), ze = pn.Symbol, St = Object.prototype, mn = St.hasOwnProperty, gn = St.toString, Ae = ze ? ze.toStringTag : void 0;
|
|
1831
|
+
function hn(e) {
|
|
1832
|
+
var t = mn.call(e, Ae), n = e[Ae];
|
|
1827
1833
|
try {
|
|
1828
1834
|
e[Ae] = void 0;
|
|
1829
1835
|
var r = !0;
|
|
1830
1836
|
} catch {
|
|
1831
1837
|
}
|
|
1832
|
-
var i =
|
|
1838
|
+
var i = gn.call(e);
|
|
1833
1839
|
return r && (t ? e[Ae] = n : delete e[Ae]), i;
|
|
1834
1840
|
}
|
|
1835
|
-
var
|
|
1836
|
-
function
|
|
1837
|
-
return
|
|
1838
|
-
}
|
|
1839
|
-
var En = "[object Null]", Tn = "[object Undefined]", Jr = ze ? ze.toStringTag : void 0;
|
|
1840
|
-
function xn(e) {
|
|
1841
|
-
return e == null ? e === void 0 ? Tn : En : Jr && Jr in Object(e) ? gn(e) : yn(e);
|
|
1841
|
+
var bn = Object.prototype, yn = bn.toString;
|
|
1842
|
+
function En(e) {
|
|
1843
|
+
return yn.call(e);
|
|
1842
1844
|
}
|
|
1845
|
+
var Tn = "[object Null]", xn = "[object Undefined]", Jr = ze ? ze.toStringTag : void 0;
|
|
1843
1846
|
function Sn(e) {
|
|
1847
|
+
return e == null ? e === void 0 ? xn : Tn : Jr && Jr in Object(e) ? hn(e) : En(e);
|
|
1848
|
+
}
|
|
1849
|
+
function On(e) {
|
|
1844
1850
|
return e != null && typeof e == "object";
|
|
1845
1851
|
}
|
|
1846
|
-
var
|
|
1847
|
-
function
|
|
1852
|
+
var Rn = Array.isArray;
|
|
1853
|
+
function _n() {
|
|
1848
1854
|
}
|
|
1849
|
-
var
|
|
1855
|
+
var wn = "[object String]";
|
|
1850
1856
|
function Cn(e) {
|
|
1851
|
-
return typeof e == "string" || !
|
|
1857
|
+
return typeof e == "string" || !Rn(e) && On(e) && Sn(e) == wn;
|
|
1852
1858
|
}
|
|
1853
1859
|
var or = { exports: {} };
|
|
1854
1860
|
/*!
|
|
@@ -1857,7 +1863,7 @@ var or = { exports: {} };
|
|
|
1857
1863
|
http://jedwatson.github.io/classnames
|
|
1858
1864
|
*/
|
|
1859
1865
|
var Zr;
|
|
1860
|
-
function
|
|
1866
|
+
function jn() {
|
|
1861
1867
|
return Zr || (Zr = 1, function(e) {
|
|
1862
1868
|
(function() {
|
|
1863
1869
|
var t = {}.hasOwnProperty;
|
|
@@ -1889,9 +1895,9 @@ function wn() {
|
|
|
1889
1895
|
})();
|
|
1890
1896
|
}(or)), or.exports;
|
|
1891
1897
|
}
|
|
1892
|
-
var
|
|
1893
|
-
const
|
|
1894
|
-
var
|
|
1898
|
+
var Pn = jn();
|
|
1899
|
+
const An = /* @__PURE__ */ Ve(Pn);
|
|
1900
|
+
var Nn = function(e) {
|
|
1895
1901
|
return function(t, n) {
|
|
1896
1902
|
var r = F(!1);
|
|
1897
1903
|
e(function() {
|
|
@@ -1922,7 +1928,7 @@ function Ot(e, t) {
|
|
|
1922
1928
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
1923
1929
|
return n;
|
|
1924
1930
|
}
|
|
1925
|
-
function
|
|
1931
|
+
function kn(e, t, n, r) {
|
|
1926
1932
|
function i(o) {
|
|
1927
1933
|
return o instanceof n ? o : new n(function(a) {
|
|
1928
1934
|
a(o);
|
|
@@ -1949,7 +1955,7 @@ function Nn(e, t, n, r) {
|
|
|
1949
1955
|
u((r = r.apply(e, t || [])).next());
|
|
1950
1956
|
});
|
|
1951
1957
|
}
|
|
1952
|
-
function
|
|
1958
|
+
function $n(e, t) {
|
|
1953
1959
|
var n = { label: 0, sent: function() {
|
|
1954
1960
|
if (o[0] & 1) throw o[1];
|
|
1955
1961
|
return o[1];
|
|
@@ -2047,7 +2053,7 @@ function _e(e) {
|
|
|
2047
2053
|
return t.current.apply(this, r);
|
|
2048
2054
|
}), n.current;
|
|
2049
2055
|
}
|
|
2050
|
-
const Sr =
|
|
2056
|
+
const Sr = Nn(he);
|
|
2051
2057
|
var Rt = function(e, t) {
|
|
2052
2058
|
var n = t.manual, r = t.ready, i = r === void 0 ? !0 : r, o = t.defaultParams, a = o === void 0 ? [] : o, c = t.refreshDeps, f = c === void 0 ? [] : c, u = t.refreshDepsAction, l = F(!1);
|
|
2053
2059
|
return l.current = !1, Sr(function() {
|
|
@@ -2083,19 +2089,19 @@ function _t(e, t) {
|
|
|
2083
2089
|
}).current;
|
|
2084
2090
|
return (n.initialized === !1 || !Or(n.deps, t)) && (n.deps = t, n.obj = e(), n.initialized = !0), n.obj;
|
|
2085
2091
|
}
|
|
2086
|
-
function
|
|
2092
|
+
function Cr(e) {
|
|
2087
2093
|
var t = F(e);
|
|
2088
2094
|
return t.current = e, t;
|
|
2089
2095
|
}
|
|
2090
2096
|
var Je = function(e) {
|
|
2091
2097
|
Xe && (Me(e) || console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));
|
|
2092
|
-
var t =
|
|
2098
|
+
var t = Cr(e);
|
|
2093
2099
|
he(function() {
|
|
2094
2100
|
return function() {
|
|
2095
2101
|
t.current();
|
|
2096
2102
|
};
|
|
2097
2103
|
}, []);
|
|
2098
|
-
}, Ue = /* @__PURE__ */ new Map(),
|
|
2104
|
+
}, Ue = /* @__PURE__ */ new Map(), Mn = function(e, t, n) {
|
|
2099
2105
|
var r = Ue.get(e);
|
|
2100
2106
|
r != null && r.timer && clearTimeout(r.timer);
|
|
2101
2107
|
var i = void 0;
|
|
@@ -2104,17 +2110,17 @@ var Je = function(e) {
|
|
|
2104
2110
|
}, t)), Ue.set(e, ae(ae({}, n), {
|
|
2105
2111
|
timer: i
|
|
2106
2112
|
}));
|
|
2107
|
-
},
|
|
2113
|
+
}, In = function(e) {
|
|
2108
2114
|
return Ue.get(e);
|
|
2109
|
-
}, Ge = /* @__PURE__ */ new Map(),
|
|
2115
|
+
}, Ge = /* @__PURE__ */ new Map(), qn = function(e) {
|
|
2110
2116
|
return Ge.get(e);
|
|
2111
|
-
},
|
|
2117
|
+
}, Ln = function(e, t) {
|
|
2112
2118
|
Ge.set(e, t), t.then(function(n) {
|
|
2113
2119
|
return Ge.delete(e), n;
|
|
2114
2120
|
}).catch(function() {
|
|
2115
2121
|
Ge.delete(e);
|
|
2116
2122
|
});
|
|
2117
|
-
}, Te = {},
|
|
2123
|
+
}, Te = {}, Dn = function(e, t) {
|
|
2118
2124
|
Te[e] && Te[e].forEach(function(n) {
|
|
2119
2125
|
return n(t);
|
|
2120
2126
|
});
|
|
@@ -2123,11 +2129,11 @@ var Je = function(e) {
|
|
|
2123
2129
|
var r = Te[e].indexOf(t);
|
|
2124
2130
|
Te[e].splice(r, 1);
|
|
2125
2131
|
};
|
|
2126
|
-
},
|
|
2132
|
+
}, Wn = function(e, t) {
|
|
2127
2133
|
var n = t.cacheKey, r = t.cacheTime, i = r === void 0 ? 5 * 60 * 1e3 : r, o = t.staleTime, a = o === void 0 ? 0 : o, c = t.setCache, f = t.getCache, u = F(), l = F(), d = function(b, h) {
|
|
2128
|
-
c ? c(h) :
|
|
2134
|
+
c ? c(h) : Mn(b, i, h), Dn(b, h.data);
|
|
2129
2135
|
}, y = function(b, h) {
|
|
2130
|
-
return h === void 0 && (h = []), f ? f(h) :
|
|
2136
|
+
return h === void 0 && (h = []), f ? f(h) : In(b);
|
|
2131
2137
|
};
|
|
2132
2138
|
return _t(function() {
|
|
2133
2139
|
if (n) {
|
|
@@ -2155,10 +2161,10 @@ var Je = function(e) {
|
|
|
2155
2161
|
};
|
|
2156
2162
|
},
|
|
2157
2163
|
onRequest: function(b, h) {
|
|
2158
|
-
var x =
|
|
2164
|
+
var x = qn(n);
|
|
2159
2165
|
return x && x !== l.current ? {
|
|
2160
2166
|
servicePromise: x
|
|
2161
|
-
} : (x = b.apply(void 0, K([], z(h), !1)), l.current = x,
|
|
2167
|
+
} : (x = b.apply(void 0, K([], z(h), !1)), l.current = x, Ln(n, x), {
|
|
2162
2168
|
servicePromise: x
|
|
2163
2169
|
});
|
|
2164
2170
|
},
|
|
@@ -2198,30 +2204,30 @@ function jr() {
|
|
|
2198
2204
|
return ar = e, ar;
|
|
2199
2205
|
}
|
|
2200
2206
|
var sr, Qr;
|
|
2201
|
-
function
|
|
2207
|
+
function Yn() {
|
|
2202
2208
|
if (Qr) return sr;
|
|
2203
2209
|
Qr = 1;
|
|
2204
2210
|
var e = typeof De == "object" && De && De.Object === Object && De;
|
|
2205
2211
|
return sr = e, sr;
|
|
2206
2212
|
}
|
|
2207
2213
|
var ur, et;
|
|
2208
|
-
function
|
|
2214
|
+
function wt() {
|
|
2209
2215
|
if (et) return ur;
|
|
2210
2216
|
et = 1;
|
|
2211
|
-
var e =
|
|
2217
|
+
var e = Yn(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
|
|
2212
2218
|
return ur = n, ur;
|
|
2213
2219
|
}
|
|
2214
2220
|
var cr, rt;
|
|
2215
|
-
function
|
|
2221
|
+
function Fn() {
|
|
2216
2222
|
if (rt) return cr;
|
|
2217
2223
|
rt = 1;
|
|
2218
|
-
var e =
|
|
2224
|
+
var e = wt(), t = function() {
|
|
2219
2225
|
return e.Date.now();
|
|
2220
2226
|
};
|
|
2221
2227
|
return cr = t, cr;
|
|
2222
2228
|
}
|
|
2223
2229
|
var fr, tt;
|
|
2224
|
-
function
|
|
2230
|
+
function Un() {
|
|
2225
2231
|
if (tt) return fr;
|
|
2226
2232
|
tt = 1;
|
|
2227
2233
|
var e = /\s/;
|
|
@@ -2233,27 +2239,27 @@ function Fn() {
|
|
|
2233
2239
|
return fr = t, fr;
|
|
2234
2240
|
}
|
|
2235
2241
|
var lr, nt;
|
|
2236
|
-
function
|
|
2242
|
+
function Gn() {
|
|
2237
2243
|
if (nt) return lr;
|
|
2238
2244
|
nt = 1;
|
|
2239
|
-
var e =
|
|
2245
|
+
var e = Un(), t = /^\s+/;
|
|
2240
2246
|
function n(r) {
|
|
2241
2247
|
return r && r.slice(0, e(r) + 1).replace(t, "");
|
|
2242
2248
|
}
|
|
2243
2249
|
return lr = n, lr;
|
|
2244
2250
|
}
|
|
2245
2251
|
var dr, ot;
|
|
2246
|
-
function
|
|
2252
|
+
function Ct() {
|
|
2247
2253
|
if (ot) return dr;
|
|
2248
2254
|
ot = 1;
|
|
2249
|
-
var e =
|
|
2255
|
+
var e = wt(), t = e.Symbol;
|
|
2250
2256
|
return dr = t, dr;
|
|
2251
2257
|
}
|
|
2252
2258
|
var vr, it;
|
|
2253
|
-
function
|
|
2259
|
+
function Bn() {
|
|
2254
2260
|
if (it) return vr;
|
|
2255
2261
|
it = 1;
|
|
2256
|
-
var e =
|
|
2262
|
+
var e = Ct(), t = Object.prototype, n = t.hasOwnProperty, r = t.toString, i = e ? e.toStringTag : void 0;
|
|
2257
2263
|
function o(a) {
|
|
2258
2264
|
var c = n.call(a, i), f = a[i];
|
|
2259
2265
|
try {
|
|
@@ -2267,7 +2273,7 @@ function Gn() {
|
|
|
2267
2273
|
return vr = o, vr;
|
|
2268
2274
|
}
|
|
2269
2275
|
var pr, at;
|
|
2270
|
-
function
|
|
2276
|
+
function zn() {
|
|
2271
2277
|
if (at) return pr;
|
|
2272
2278
|
at = 1;
|
|
2273
2279
|
var e = Object.prototype, t = e.toString;
|
|
@@ -2277,17 +2283,17 @@ function Bn() {
|
|
|
2277
2283
|
return pr = n, pr;
|
|
2278
2284
|
}
|
|
2279
2285
|
var mr, st;
|
|
2280
|
-
function
|
|
2286
|
+
function Hn() {
|
|
2281
2287
|
if (st) return mr;
|
|
2282
2288
|
st = 1;
|
|
2283
|
-
var e =
|
|
2289
|
+
var e = Ct(), t = Bn(), n = zn(), r = "[object Null]", i = "[object Undefined]", o = e ? e.toStringTag : void 0;
|
|
2284
2290
|
function a(c) {
|
|
2285
2291
|
return c == null ? c === void 0 ? i : r : o && o in Object(c) ? t(c) : n(c);
|
|
2286
2292
|
}
|
|
2287
2293
|
return mr = a, mr;
|
|
2288
2294
|
}
|
|
2289
2295
|
var gr, ut;
|
|
2290
|
-
function
|
|
2296
|
+
function Vn() {
|
|
2291
2297
|
if (ut) return gr;
|
|
2292
2298
|
ut = 1;
|
|
2293
2299
|
function e(t) {
|
|
@@ -2296,20 +2302,20 @@ function Hn() {
|
|
|
2296
2302
|
return gr = e, gr;
|
|
2297
2303
|
}
|
|
2298
2304
|
var hr, ct;
|
|
2299
|
-
function
|
|
2305
|
+
function Xn() {
|
|
2300
2306
|
if (ct) return hr;
|
|
2301
2307
|
ct = 1;
|
|
2302
|
-
var e =
|
|
2308
|
+
var e = Hn(), t = Vn(), n = "[object Symbol]";
|
|
2303
2309
|
function r(i) {
|
|
2304
2310
|
return typeof i == "symbol" || t(i) && e(i) == n;
|
|
2305
2311
|
}
|
|
2306
2312
|
return hr = r, hr;
|
|
2307
2313
|
}
|
|
2308
2314
|
var br, ft;
|
|
2309
|
-
function
|
|
2315
|
+
function Jn() {
|
|
2310
2316
|
if (ft) return br;
|
|
2311
2317
|
ft = 1;
|
|
2312
|
-
var e =
|
|
2318
|
+
var e = Gn(), t = jr(), n = Xn(), r = NaN, i = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, a = /^0o[0-7]+$/i, c = parseInt;
|
|
2313
2319
|
function f(u) {
|
|
2314
2320
|
if (typeof u == "number")
|
|
2315
2321
|
return u;
|
|
@@ -2331,7 +2337,7 @@ var yr, lt;
|
|
|
2331
2337
|
function jt() {
|
|
2332
2338
|
if (lt) return yr;
|
|
2333
2339
|
lt = 1;
|
|
2334
|
-
var e = jr(), t =
|
|
2340
|
+
var e = jr(), t = Fn(), n = Jn(), r = "Expected a function", i = Math.max, o = Math.min;
|
|
2335
2341
|
function a(c, f, u) {
|
|
2336
2342
|
var l, d, y, b, h, x, $ = 0, G = !1, X = !1, D = !0;
|
|
2337
2343
|
if (typeof c != "function")
|
|
@@ -2381,9 +2387,9 @@ function jt() {
|
|
|
2381
2387
|
}
|
|
2382
2388
|
return yr = a, yr;
|
|
2383
2389
|
}
|
|
2384
|
-
var
|
|
2385
|
-
const
|
|
2386
|
-
var
|
|
2390
|
+
var Zn = jt();
|
|
2391
|
+
const Kn = /* @__PURE__ */ Ve(Zn);
|
|
2392
|
+
var Qn = function(e, t) {
|
|
2387
2393
|
var n = t.debounceWait, r = t.debounceLeading, i = t.debounceTrailing, o = t.debounceMaxWait, a = F(), c = He(function() {
|
|
2388
2394
|
var f = {};
|
|
2389
2395
|
return r !== void 0 && (f.leading = r), i !== void 0 && (f.trailing = i), o !== void 0 && (f.maxWait = o), f;
|
|
@@ -2391,7 +2397,7 @@ var Kn = function(e, t) {
|
|
|
2391
2397
|
return he(function() {
|
|
2392
2398
|
if (n) {
|
|
2393
2399
|
var f = e.runAsync.bind(e);
|
|
2394
|
-
return a.current =
|
|
2400
|
+
return a.current = Kn(function(u) {
|
|
2395
2401
|
u();
|
|
2396
2402
|
}, n, c), e.runAsync = function() {
|
|
2397
2403
|
for (var u = [], l = 0; l < arguments.length; l++)
|
|
@@ -2413,7 +2419,7 @@ var Kn = function(e, t) {
|
|
|
2413
2419
|
(f = a.current) === null || f === void 0 || f.cancel();
|
|
2414
2420
|
}
|
|
2415
2421
|
} : {};
|
|
2416
|
-
},
|
|
2422
|
+
}, eo = function(e, t) {
|
|
2417
2423
|
var n = t.loadingDelay, r = t.ready, i = F();
|
|
2418
2424
|
if (!n)
|
|
2419
2425
|
return {};
|
|
@@ -2442,23 +2448,23 @@ function Pr() {
|
|
|
2442
2448
|
return Ie ? document.visibilityState !== "hidden" : !0;
|
|
2443
2449
|
}
|
|
2444
2450
|
var ke = [];
|
|
2445
|
-
function
|
|
2451
|
+
function ro(e) {
|
|
2446
2452
|
return ke.push(e), function() {
|
|
2447
2453
|
var n = ke.indexOf(e);
|
|
2448
2454
|
ke.splice(n, 1);
|
|
2449
2455
|
};
|
|
2450
2456
|
}
|
|
2451
2457
|
if (Ie) {
|
|
2452
|
-
var
|
|
2458
|
+
var to = function() {
|
|
2453
2459
|
if (Pr())
|
|
2454
2460
|
for (var e = 0; e < ke.length; e++) {
|
|
2455
2461
|
var t = ke[e];
|
|
2456
2462
|
t();
|
|
2457
2463
|
}
|
|
2458
2464
|
};
|
|
2459
|
-
window.addEventListener("visibilitychange",
|
|
2465
|
+
window.addEventListener("visibilitychange", to, !1);
|
|
2460
2466
|
}
|
|
2461
|
-
var
|
|
2467
|
+
var no = function(e, t) {
|
|
2462
2468
|
var n = t.pollingInterval, r = t.pollingWhenHidden, i = r === void 0 ? !0 : r, o = t.pollingErrorRetryCount, a = o === void 0 ? -1 : o, c = F(), f = F(), u = F(0), l = function() {
|
|
2463
2469
|
var d;
|
|
2464
2470
|
c.current && clearTimeout(c.current), (d = f.current) === null || d === void 0 || d.call(f);
|
|
@@ -2478,7 +2484,7 @@ var to = function(e, t) {
|
|
|
2478
2484
|
onFinally: function() {
|
|
2479
2485
|
a === -1 || // When an error occurs, the request is not repeated after pollingErrorRetryCount retries
|
|
2480
2486
|
a !== -1 && u.current <= a ? c.current = setTimeout(function() {
|
|
2481
|
-
!i && !Pr() ? f.current =
|
|
2487
|
+
!i && !Pr() ? f.current = ro(function() {
|
|
2482
2488
|
e.refresh();
|
|
2483
2489
|
}) : e.refresh();
|
|
2484
2490
|
}, n) : u.current = 0;
|
|
@@ -2488,7 +2494,7 @@ var to = function(e, t) {
|
|
|
2488
2494
|
}
|
|
2489
2495
|
} : {};
|
|
2490
2496
|
};
|
|
2491
|
-
function
|
|
2497
|
+
function oo(e, t) {
|
|
2492
2498
|
var n = !1;
|
|
2493
2499
|
return function() {
|
|
2494
2500
|
for (var r = [], i = 0; i < arguments.length; i++)
|
|
@@ -2498,11 +2504,11 @@ function no(e, t) {
|
|
|
2498
2504
|
}, t));
|
|
2499
2505
|
};
|
|
2500
2506
|
}
|
|
2501
|
-
function
|
|
2507
|
+
function io() {
|
|
2502
2508
|
return Ie && typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
2503
2509
|
}
|
|
2504
2510
|
var $e = [];
|
|
2505
|
-
function
|
|
2511
|
+
function ao(e) {
|
|
2506
2512
|
return $e.push(e), function() {
|
|
2507
2513
|
var n = $e.indexOf(e);
|
|
2508
2514
|
n > -1 && $e.splice(n, 1);
|
|
@@ -2510,7 +2516,7 @@ function io(e) {
|
|
|
2510
2516
|
}
|
|
2511
2517
|
if (Ie) {
|
|
2512
2518
|
var dt = function() {
|
|
2513
|
-
if (!(!Pr() || !
|
|
2519
|
+
if (!(!Pr() || !io()))
|
|
2514
2520
|
for (var e = 0; e < $e.length; e++) {
|
|
2515
2521
|
var t = $e[e];
|
|
2516
2522
|
t();
|
|
@@ -2518,15 +2524,15 @@ if (Ie) {
|
|
|
2518
2524
|
};
|
|
2519
2525
|
window.addEventListener("visibilitychange", dt, !1), window.addEventListener("focus", dt, !1);
|
|
2520
2526
|
}
|
|
2521
|
-
var
|
|
2527
|
+
var so = function(e, t) {
|
|
2522
2528
|
var n = t.refreshOnWindowFocus, r = t.focusTimespan, i = r === void 0 ? 5e3 : r, o = F(), a = function() {
|
|
2523
2529
|
var c;
|
|
2524
2530
|
(c = o.current) === null || c === void 0 || c.call(o);
|
|
2525
2531
|
};
|
|
2526
2532
|
return he(function() {
|
|
2527
2533
|
if (n) {
|
|
2528
|
-
var c =
|
|
2529
|
-
o.current =
|
|
2534
|
+
var c = oo(e.refresh.bind(e), i);
|
|
2535
|
+
o.current = ao(function() {
|
|
2530
2536
|
c();
|
|
2531
2537
|
});
|
|
2532
2538
|
}
|
|
@@ -2536,7 +2542,7 @@ var ao = function(e, t) {
|
|
|
2536
2542
|
}, [n, i]), Je(function() {
|
|
2537
2543
|
a();
|
|
2538
2544
|
}), {};
|
|
2539
|
-
},
|
|
2545
|
+
}, uo = function(e, t) {
|
|
2540
2546
|
var n = t.retryInterval, r = t.retryCount, i = F(), o = F(0), a = F(!1);
|
|
2541
2547
|
return r ? {
|
|
2542
2548
|
onBefore: function() {
|
|
@@ -2559,7 +2565,7 @@ var ao = function(e, t) {
|
|
|
2559
2565
|
}
|
|
2560
2566
|
} : {};
|
|
2561
2567
|
}, Er, vt;
|
|
2562
|
-
function
|
|
2568
|
+
function co() {
|
|
2563
2569
|
if (vt) return Er;
|
|
2564
2570
|
vt = 1;
|
|
2565
2571
|
var e = jt(), t = jr(), n = "Expected a function";
|
|
@@ -2575,14 +2581,14 @@ function uo() {
|
|
|
2575
2581
|
}
|
|
2576
2582
|
return Er = r, Er;
|
|
2577
2583
|
}
|
|
2578
|
-
var
|
|
2579
|
-
const
|
|
2580
|
-
var
|
|
2584
|
+
var fo = co();
|
|
2585
|
+
const lo = /* @__PURE__ */ Ve(fo);
|
|
2586
|
+
var vo = function(e, t) {
|
|
2581
2587
|
var n = t.throttleWait, r = t.throttleLeading, i = t.throttleTrailing, o = F(), a = {};
|
|
2582
2588
|
return r !== void 0 && (a.leading = r), i !== void 0 && (a.trailing = i), he(function() {
|
|
2583
2589
|
if (n) {
|
|
2584
2590
|
var c = e.runAsync.bind(e);
|
|
2585
|
-
return o.current =
|
|
2591
|
+
return o.current = lo(function(f) {
|
|
2586
2592
|
f();
|
|
2587
2593
|
}, n, a), e.runAsync = function() {
|
|
2588
2594
|
for (var f = [], u = 0; u < arguments.length; u++)
|
|
@@ -2604,16 +2610,16 @@ var lo = function(e, t) {
|
|
|
2604
2610
|
(c = o.current) === null || c === void 0 || c.cancel();
|
|
2605
2611
|
}
|
|
2606
2612
|
} : {};
|
|
2607
|
-
},
|
|
2613
|
+
}, po = function(e) {
|
|
2608
2614
|
Xe && (Me(e) || console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e, '".'))), he(function() {
|
|
2609
2615
|
e == null || e();
|
|
2610
2616
|
}, []);
|
|
2611
|
-
},
|
|
2617
|
+
}, mo = function() {
|
|
2612
2618
|
var e = z(Rr({}), 2), t = e[1];
|
|
2613
2619
|
return kt(function() {
|
|
2614
2620
|
return t({});
|
|
2615
2621
|
}, []);
|
|
2616
|
-
},
|
|
2622
|
+
}, go = (
|
|
2617
2623
|
/** @class */
|
|
2618
2624
|
function() {
|
|
2619
2625
|
function e(t, n, r, i) {
|
|
@@ -2639,9 +2645,9 @@ var lo = function(e, t) {
|
|
|
2639
2645
|
}, e.prototype.runAsync = function() {
|
|
2640
2646
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2641
2647
|
t[n] = arguments[n];
|
|
2642
|
-
return
|
|
2648
|
+
return kn(this, void 0, void 0, function() {
|
|
2643
2649
|
var r, i, o, a, c, f, u, l, d, y, b, h, x, $, G, X, D, L, p, J, re;
|
|
2644
|
-
return
|
|
2650
|
+
return $n(this, function(H) {
|
|
2645
2651
|
switch (H.label) {
|
|
2646
2652
|
case 0:
|
|
2647
2653
|
if (this.count += 1, r = this.count, i = this.runPluginHandler("onBefore", t), o = i.stopNow, a = o === void 0 ? !1 : o, c = i.returnNow, f = c === void 0 ? !1 : c, u = Ot(i, ["stopNow", "returnNow"]), a)
|
|
@@ -2700,23 +2706,23 @@ var lo = function(e, t) {
|
|
|
2700
2706
|
}, e;
|
|
2701
2707
|
}()
|
|
2702
2708
|
);
|
|
2703
|
-
function
|
|
2709
|
+
function ho(e, t, n) {
|
|
2704
2710
|
t === void 0 && (t = {}), n === void 0 && (n = []);
|
|
2705
2711
|
var r = t.manual, i = r === void 0 ? !1 : r, o = t.ready, a = o === void 0 ? !0 : o, c = Ot(t, ["manual", "ready"]);
|
|
2706
2712
|
Xe && t.defaultParams && !Array.isArray(t.defaultParams) && console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));
|
|
2707
2713
|
var f = ae({
|
|
2708
2714
|
manual: i,
|
|
2709
2715
|
ready: a
|
|
2710
|
-
}, c), u =
|
|
2716
|
+
}, c), u = Cr(e), l = mo(), d = _t(function() {
|
|
2711
2717
|
var y = n.map(function(b) {
|
|
2712
2718
|
var h;
|
|
2713
2719
|
return (h = b == null ? void 0 : b.onInit) === null || h === void 0 ? void 0 : h.call(b, f);
|
|
2714
2720
|
}).filter(Boolean);
|
|
2715
|
-
return new
|
|
2721
|
+
return new go(u, f, l, Object.assign.apply(Object, K([{}], z(y), !1)));
|
|
2716
2722
|
}, []);
|
|
2717
2723
|
return d.options = f, d.pluginImpls = n.map(function(y) {
|
|
2718
2724
|
return y(d, f);
|
|
2719
|
-
}),
|
|
2725
|
+
}), po(function() {
|
|
2720
2726
|
if (!i && a) {
|
|
2721
2727
|
var y = d.state.params || t.defaultParams || [];
|
|
2722
2728
|
d.run.apply(d, K([], z(y), !1));
|
|
@@ -2736,10 +2742,10 @@ function go(e, t, n) {
|
|
|
2736
2742
|
mutate: _e(d.mutate.bind(d))
|
|
2737
2743
|
};
|
|
2738
2744
|
}
|
|
2739
|
-
function
|
|
2740
|
-
return
|
|
2745
|
+
function bo(e, t, n) {
|
|
2746
|
+
return ho(e, t, K(K([], z(n || []), !1), [Qn, eo, no, so, vo, Rt, Wn, uo], !1));
|
|
2741
2747
|
}
|
|
2742
|
-
function
|
|
2748
|
+
function yo(e, t) {
|
|
2743
2749
|
var n = z(Rr(e), 2), r = n[0], i = n[1], o = He(function() {
|
|
2744
2750
|
var a = !0, c = function() {
|
|
2745
2751
|
return i(function(d) {
|
|
@@ -2761,8 +2767,8 @@ function bo(e, t) {
|
|
|
2761
2767
|
}, []);
|
|
2762
2768
|
return [r, o];
|
|
2763
2769
|
}
|
|
2764
|
-
function
|
|
2765
|
-
var t = z(
|
|
2770
|
+
function Eo(e) {
|
|
2771
|
+
var t = z(yo(!1), 2), n = t[0], r = t[1], i = r.toggle, o = r.set, a = He(function() {
|
|
2766
2772
|
var c = function() {
|
|
2767
2773
|
return o(!0);
|
|
2768
2774
|
}, f = function() {
|
|
@@ -2787,7 +2793,7 @@ function Pt(e, t) {
|
|
|
2787
2793
|
return Me(e) ? n = e() : "current" in e ? n = e.current : n = e, n;
|
|
2788
2794
|
}
|
|
2789
2795
|
}
|
|
2790
|
-
var
|
|
2796
|
+
var To = function(e) {
|
|
2791
2797
|
var t = function(n, r, i) {
|
|
2792
2798
|
var o = F(!1), a = F([]), c = F([]), f = F();
|
|
2793
2799
|
e(function() {
|
|
@@ -2805,11 +2811,11 @@ var Eo = function(e) {
|
|
|
2805
2811
|
});
|
|
2806
2812
|
};
|
|
2807
2813
|
return t;
|
|
2808
|
-
},
|
|
2814
|
+
}, xo = To(he);
|
|
2809
2815
|
function pt(e, t, n) {
|
|
2810
2816
|
n === void 0 && (n = {});
|
|
2811
|
-
var r = n.enable, i = r === void 0 ? !0 : r, o =
|
|
2812
|
-
|
|
2817
|
+
var r = n.enable, i = r === void 0 ? !0 : r, o = Cr(t);
|
|
2818
|
+
xo(function() {
|
|
2813
2819
|
if (i) {
|
|
2814
2820
|
var a = Pt(n.target, window);
|
|
2815
2821
|
if (a != null && a.addEventListener) {
|
|
@@ -2833,8 +2839,8 @@ function pt(e, t, n) {
|
|
|
2833
2839
|
}
|
|
2834
2840
|
}, [e, n.capture, n.once, n.passive, i], n.target);
|
|
2835
2841
|
}
|
|
2836
|
-
const
|
|
2837
|
-
var n = {}, r = n.onEnter, i = n.onLeave, o = n.onChange, a = z(
|
|
2842
|
+
const So = function(e, t) {
|
|
2843
|
+
var n = {}, r = n.onEnter, i = n.onLeave, o = n.onChange, a = z(Eo(), 2), c = a[0], f = a[1], u = f.setTrue, l = f.setFalse;
|
|
2838
2844
|
return pt("mouseenter", function() {
|
|
2839
2845
|
r == null || r(), u(), o == null || o(!0);
|
|
2840
2846
|
}, {
|
|
@@ -2844,18 +2850,18 @@ const xo = function(e, t) {
|
|
|
2844
2850
|
}, {
|
|
2845
2851
|
target: e
|
|
2846
2852
|
}), c;
|
|
2847
|
-
},
|
|
2853
|
+
}, Oo = {}, Ro = (e, t) => {
|
|
2848
2854
|
const n = F(null), {
|
|
2849
2855
|
icon: r,
|
|
2850
2856
|
tooltipDisabled: i = !1,
|
|
2851
|
-
onClick: o =
|
|
2857
|
+
onClick: o = _n,
|
|
2852
2858
|
disabled: a,
|
|
2853
2859
|
size: c = "middle",
|
|
2854
2860
|
style: f = {},
|
|
2855
2861
|
className: u,
|
|
2856
2862
|
loading: l = !1,
|
|
2857
2863
|
...d
|
|
2858
|
-
} = e, y =
|
|
2864
|
+
} = e, y = So(n), b = () => Cn(r) && r.includes("icon-") ? /* @__PURE__ */ Y.jsx(ln, { type: r }) : r, h = /* @__PURE__ */ Y.jsx(
|
|
2859
2865
|
Wt,
|
|
2860
2866
|
{
|
|
2861
2867
|
onClick: o,
|
|
@@ -2864,7 +2870,7 @@ const xo = function(e, t) {
|
|
|
2864
2870
|
style: f,
|
|
2865
2871
|
ref: t,
|
|
2866
2872
|
loading: l,
|
|
2867
|
-
className:
|
|
2873
|
+
className: An([u, Oo.btn_icon__warp]),
|
|
2868
2874
|
icon: b()
|
|
2869
2875
|
}
|
|
2870
2876
|
);
|
|
@@ -2891,9 +2897,9 @@ const xo = function(e, t) {
|
|
|
2891
2897
|
}
|
|
2892
2898
|
)
|
|
2893
2899
|
] });
|
|
2894
|
-
},
|
|
2895
|
-
function
|
|
2896
|
-
const r =
|
|
2900
|
+
}, No = ve.forwardRef(Ro);
|
|
2901
|
+
function ko(e, t, n) {
|
|
2902
|
+
const r = bo(e, {
|
|
2897
2903
|
...t,
|
|
2898
2904
|
onError(o, a) {
|
|
2899
2905
|
var c;
|
|
@@ -2906,13 +2912,15 @@ function No(e, t, n) {
|
|
|
2906
2912
|
};
|
|
2907
2913
|
}
|
|
2908
2914
|
export {
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2915
|
+
jo as App,
|
|
2916
|
+
Po as CheckboxValue,
|
|
2917
|
+
sn as GlobalLoading,
|
|
2918
|
+
No as IconButton,
|
|
2919
|
+
ln as IconFont,
|
|
2920
|
+
Ao as SwitchValue,
|
|
2914
2921
|
xt as message,
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2922
|
+
cn as modal,
|
|
2923
|
+
un as notification,
|
|
2924
|
+
an as setGlobalLoading,
|
|
2925
|
+
ko as useRequest
|
|
2918
2926
|
};
|