@mi-avalon/libs 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/MSearch/index.d.ts +26 -0
- package/dist/components/MSearch/index.js +68 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -1
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +7 -0
- package/dist/hooks/useFuncRequest.d.ts +16 -0
- package/dist/hooks/useFuncRequest.js +67 -0
- package/dist/hooks/useInterval.d.ts +8 -0
- package/dist/hooks/useInterval.js +30 -0
- package/dist/hooks/usePagination.d.ts +42 -0
- package/dist/hooks/usePagination.js +124 -0
- package/dist/hooks/useQuery.d.ts +3 -0
- package/dist/hooks/useQuery.js +6 -0
- package/dist/hooks/useReactive.d.ts +2 -0
- package/dist/hooks/useReactive.js +20 -0
- package/dist/hooks/useTimeout.d.ts +8 -0
- package/dist/hooks/useTimeout.js +30 -0
- package/dist/hooks/useVirtualList.d.ts +75 -0
- package/dist/hooks/useVirtualList.js +121 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1233 -932
- package/dist/index.js +1 -1
- package/dist/index.umd.js +15 -15
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { theme as
|
|
7
|
-
function
|
|
1
|
+
var Mr = Object.defineProperty;
|
|
2
|
+
var Ir = (r, e, t) => e in r ? Mr(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var v = (r, e, t) => (Ir(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import * as U from "react";
|
|
5
|
+
import $e, { createContext as zt, useContext as Lt, useEffect as se, useState as H, useRef as K, useCallback as ae } from "react";
|
|
6
|
+
import { theme as Hr, ConfigProvider as Yr, Button as Re, Affix as zr, Card as Vt, Breadcrumb as Rt, Descriptions as _t, Input as qe, InputNumber as Lr, DatePicker as Ft, Select as Vr, Radio as Fr, Checkbox as Ur, Upload as Wr, Mentions as Br, Cascader as Zr, TreeSelect as qr, Form as Je, Row as Kr, Col as Gr, Table as Jr } from "antd";
|
|
7
|
+
function Xr(r) {
|
|
8
8
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
9
9
|
}
|
|
10
|
-
var
|
|
10
|
+
var Xe = { exports: {} }, xe = {};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react-jsx-runtime.production.min.js
|
|
@@ -17,25 +17,25 @@ var Te = { exports: {} }, X = {};
|
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
if (
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
var r =
|
|
26
|
-
function o(
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
for (
|
|
30
|
-
n.call(u,
|
|
31
|
-
if (
|
|
32
|
-
for (
|
|
33
|
-
|
|
34
|
-
return { $$typeof: e, type:
|
|
35
|
-
}
|
|
36
|
-
return
|
|
37
|
-
}
|
|
38
|
-
var
|
|
20
|
+
var Et;
|
|
21
|
+
function Qr() {
|
|
22
|
+
if (Et)
|
|
23
|
+
return xe;
|
|
24
|
+
Et = 1;
|
|
25
|
+
var r = $e, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
26
|
+
function o(c, u, l) {
|
|
27
|
+
var g, d = {}, b = null, j = null;
|
|
28
|
+
l !== void 0 && (b = "" + l), u.key !== void 0 && (b = "" + u.key), u.ref !== void 0 && (j = u.ref);
|
|
29
|
+
for (g in u)
|
|
30
|
+
n.call(u, g) && !i.hasOwnProperty(g) && (d[g] = u[g]);
|
|
31
|
+
if (c && c.defaultProps)
|
|
32
|
+
for (g in u = c.defaultProps, u)
|
|
33
|
+
d[g] === void 0 && (d[g] = u[g]);
|
|
34
|
+
return { $$typeof: e, type: c, key: b, ref: j, props: d, _owner: s.current };
|
|
35
|
+
}
|
|
36
|
+
return xe.Fragment = t, xe.jsx = o, xe.jsxs = o, xe;
|
|
37
|
+
}
|
|
38
|
+
var we = {};
|
|
39
39
|
/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.development.js
|
|
@@ -45,57 +45,57 @@ var Q = {};
|
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
47
|
*/
|
|
48
|
-
var
|
|
49
|
-
function
|
|
50
|
-
return
|
|
51
|
-
var r =
|
|
52
|
-
function
|
|
48
|
+
var jt;
|
|
49
|
+
function en() {
|
|
50
|
+
return jt || (jt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
|
+
var r = $e, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), T = Symbol.iterator, N = "@@iterator";
|
|
52
|
+
function Y(a) {
|
|
53
53
|
if (a === null || typeof a != "object")
|
|
54
54
|
return null;
|
|
55
|
-
var
|
|
56
|
-
return typeof
|
|
55
|
+
var f = T && a[T] || a[N];
|
|
56
|
+
return typeof f == "function" ? f : null;
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
function
|
|
58
|
+
var O = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
59
|
+
function y(a) {
|
|
60
60
|
{
|
|
61
|
-
for (var
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
for (var f = arguments.length, h = new Array(f > 1 ? f - 1 : 0), m = 1; m < f; m++)
|
|
62
|
+
h[m - 1] = arguments[m];
|
|
63
|
+
E("error", a, h);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function E(a, f, h) {
|
|
67
67
|
{
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
var
|
|
71
|
-
return String(
|
|
68
|
+
var m = O.ReactDebugCurrentFrame, S = m.getStackAddendum();
|
|
69
|
+
S !== "" && (f += "%s", h = h.concat([S]));
|
|
70
|
+
var _ = h.map(function(w) {
|
|
71
|
+
return String(w);
|
|
72
72
|
});
|
|
73
|
-
|
|
73
|
+
_.unshift("Warning: " + f), Function.prototype.apply.call(console[a], console, _);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
var
|
|
77
|
-
|
|
78
|
-
function
|
|
79
|
-
return !!(typeof a == "string" || typeof a == "function" || a === n || a ===
|
|
76
|
+
var M = !1, W = !1, re = !1, G = !1, ve = !1, J;
|
|
77
|
+
J = Symbol.for("react.module.reference");
|
|
78
|
+
function ie(a) {
|
|
79
|
+
return !!(typeof a == "string" || typeof a == "function" || a === n || a === i || ve || a === s || a === l || a === g || G || a === j || M || W || re || typeof a == "object" && a !== null && (a.$$typeof === b || a.$$typeof === d || a.$$typeof === o || a.$$typeof === c || a.$$typeof === u || // This needs to include all possible module reference object
|
|
80
80
|
// types supported by any Flight configuration anywhere since
|
|
81
81
|
// we don't know which Flight build this will end up being used
|
|
82
82
|
// with.
|
|
83
|
-
a.$$typeof ===
|
|
83
|
+
a.$$typeof === J || a.getModuleId !== void 0));
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
var
|
|
87
|
-
if (
|
|
88
|
-
return
|
|
89
|
-
var
|
|
90
|
-
return
|
|
85
|
+
function me(a, f, h) {
|
|
86
|
+
var m = a.displayName;
|
|
87
|
+
if (m)
|
|
88
|
+
return m;
|
|
89
|
+
var S = f.displayName || f.name || "";
|
|
90
|
+
return S !== "" ? h + "(" + S + ")" : h;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function z(a) {
|
|
93
93
|
return a.displayName || "Context";
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function k(a) {
|
|
96
96
|
if (a == null)
|
|
97
97
|
return null;
|
|
98
|
-
if (typeof a.tag == "number" &&
|
|
98
|
+
if (typeof a.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
99
99
|
return a.displayName || a.name || null;
|
|
100
100
|
if (typeof a == "string")
|
|
101
101
|
return a;
|
|
@@ -104,32 +104,32 @@ function Fr() {
|
|
|
104
104
|
return "Fragment";
|
|
105
105
|
case t:
|
|
106
106
|
return "Portal";
|
|
107
|
-
case s:
|
|
108
|
-
return "Profiler";
|
|
109
107
|
case i:
|
|
108
|
+
return "Profiler";
|
|
109
|
+
case s:
|
|
110
110
|
return "StrictMode";
|
|
111
|
-
case
|
|
111
|
+
case l:
|
|
112
112
|
return "Suspense";
|
|
113
|
-
case
|
|
113
|
+
case g:
|
|
114
114
|
return "SuspenseList";
|
|
115
115
|
}
|
|
116
116
|
if (typeof a == "object")
|
|
117
117
|
switch (a.$$typeof) {
|
|
118
|
-
case
|
|
119
|
-
var
|
|
120
|
-
return
|
|
118
|
+
case c:
|
|
119
|
+
var f = a;
|
|
120
|
+
return z(f) + ".Consumer";
|
|
121
121
|
case o:
|
|
122
|
-
var
|
|
123
|
-
return
|
|
122
|
+
var h = a;
|
|
123
|
+
return z(h._context) + ".Provider";
|
|
124
124
|
case u:
|
|
125
|
-
return
|
|
126
|
-
case
|
|
127
|
-
var
|
|
128
|
-
return
|
|
129
|
-
case
|
|
130
|
-
var
|
|
125
|
+
return me(a, a.render, "ForwardRef");
|
|
126
|
+
case d:
|
|
127
|
+
var m = a.displayName || null;
|
|
128
|
+
return m !== null ? m : k(a.type) || "Memo";
|
|
129
|
+
case b: {
|
|
130
|
+
var S = a, _ = S._payload, w = S._init;
|
|
131
131
|
try {
|
|
132
|
-
return
|
|
132
|
+
return k(w(_));
|
|
133
133
|
} catch {
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
@@ -137,18 +137,18 @@ function Fr() {
|
|
|
137
137
|
}
|
|
138
138
|
return null;
|
|
139
139
|
}
|
|
140
|
-
var
|
|
141
|
-
function
|
|
140
|
+
var L = Object.assign, C = 0, D, Q, B, oe, ee, je, ct;
|
|
141
|
+
function lt() {
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
function
|
|
143
|
+
lt.__reactDisabledLog = !0;
|
|
144
|
+
function lr() {
|
|
145
145
|
{
|
|
146
|
-
if (
|
|
147
|
-
|
|
146
|
+
if (C === 0) {
|
|
147
|
+
D = console.log, Q = console.info, B = console.warn, oe = console.error, ee = console.group, je = console.groupCollapsed, ct = console.groupEnd;
|
|
148
148
|
var a = {
|
|
149
149
|
configurable: !0,
|
|
150
150
|
enumerable: !0,
|
|
151
|
-
value:
|
|
151
|
+
value: lt,
|
|
152
152
|
writable: !0
|
|
153
153
|
};
|
|
154
154
|
Object.defineProperties(console, {
|
|
@@ -161,336 +161,336 @@ function Fr() {
|
|
|
161
161
|
groupEnd: a
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
C++;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function ur() {
|
|
168
168
|
{
|
|
169
|
-
if (
|
|
169
|
+
if (C--, C === 0) {
|
|
170
170
|
var a = {
|
|
171
171
|
configurable: !0,
|
|
172
172
|
enumerable: !0,
|
|
173
173
|
writable: !0
|
|
174
174
|
};
|
|
175
175
|
Object.defineProperties(console, {
|
|
176
|
-
log:
|
|
177
|
-
value:
|
|
176
|
+
log: L({}, a, {
|
|
177
|
+
value: D
|
|
178
178
|
}),
|
|
179
|
-
info:
|
|
180
|
-
value:
|
|
179
|
+
info: L({}, a, {
|
|
180
|
+
value: Q
|
|
181
181
|
}),
|
|
182
|
-
warn:
|
|
183
|
-
value:
|
|
182
|
+
warn: L({}, a, {
|
|
183
|
+
value: B
|
|
184
184
|
}),
|
|
185
|
-
error:
|
|
186
|
-
value:
|
|
185
|
+
error: L({}, a, {
|
|
186
|
+
value: oe
|
|
187
187
|
}),
|
|
188
|
-
group:
|
|
189
|
-
value:
|
|
188
|
+
group: L({}, a, {
|
|
189
|
+
value: ee
|
|
190
190
|
}),
|
|
191
|
-
groupCollapsed:
|
|
192
|
-
value:
|
|
191
|
+
groupCollapsed: L({}, a, {
|
|
192
|
+
value: je
|
|
193
193
|
}),
|
|
194
|
-
groupEnd:
|
|
195
|
-
value:
|
|
194
|
+
groupEnd: L({}, a, {
|
|
195
|
+
value: ct
|
|
196
196
|
})
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
-
|
|
199
|
+
C < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
var
|
|
203
|
-
function
|
|
202
|
+
var Ye = O.ReactCurrentDispatcher, ze;
|
|
203
|
+
function Oe(a, f, h) {
|
|
204
204
|
{
|
|
205
|
-
if (
|
|
205
|
+
if (ze === void 0)
|
|
206
206
|
try {
|
|
207
207
|
throw Error();
|
|
208
|
-
} catch (
|
|
209
|
-
var
|
|
210
|
-
|
|
208
|
+
} catch (S) {
|
|
209
|
+
var m = S.stack.trim().match(/\n( *(at )?)/);
|
|
210
|
+
ze = m && m[1] || "";
|
|
211
211
|
}
|
|
212
212
|
return `
|
|
213
|
-
` +
|
|
213
|
+
` + ze + a;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
var
|
|
216
|
+
var Le = !1, Pe;
|
|
217
217
|
{
|
|
218
|
-
var
|
|
219
|
-
|
|
218
|
+
var fr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
219
|
+
Pe = new fr();
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
if (!a ||
|
|
221
|
+
function ut(a, f) {
|
|
222
|
+
if (!a || Le)
|
|
223
223
|
return "";
|
|
224
224
|
{
|
|
225
|
-
var
|
|
226
|
-
if (
|
|
227
|
-
return
|
|
225
|
+
var h = Pe.get(a);
|
|
226
|
+
if (h !== void 0)
|
|
227
|
+
return h;
|
|
228
228
|
}
|
|
229
|
-
var
|
|
230
|
-
|
|
231
|
-
var
|
|
229
|
+
var m;
|
|
230
|
+
Le = !0;
|
|
231
|
+
var S = Error.prepareStackTrace;
|
|
232
232
|
Error.prepareStackTrace = void 0;
|
|
233
|
-
var
|
|
234
|
-
|
|
233
|
+
var _;
|
|
234
|
+
_ = Ye.current, Ye.current = null, lr();
|
|
235
235
|
try {
|
|
236
|
-
if (
|
|
237
|
-
var
|
|
236
|
+
if (f) {
|
|
237
|
+
var w = function() {
|
|
238
238
|
throw Error();
|
|
239
239
|
};
|
|
240
|
-
if (Object.defineProperty(
|
|
240
|
+
if (Object.defineProperty(w.prototype, "props", {
|
|
241
241
|
set: function() {
|
|
242
242
|
throw Error();
|
|
243
243
|
}
|
|
244
244
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
245
245
|
try {
|
|
246
|
-
Reflect.construct(
|
|
247
|
-
} catch (
|
|
248
|
-
|
|
246
|
+
Reflect.construct(w, []);
|
|
247
|
+
} catch (Z) {
|
|
248
|
+
m = Z;
|
|
249
249
|
}
|
|
250
|
-
Reflect.construct(a, [],
|
|
250
|
+
Reflect.construct(a, [], w);
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
|
-
|
|
254
|
-
} catch (
|
|
255
|
-
|
|
253
|
+
w.call();
|
|
254
|
+
} catch (Z) {
|
|
255
|
+
m = Z;
|
|
256
256
|
}
|
|
257
|
-
a.call(
|
|
257
|
+
a.call(w.prototype);
|
|
258
258
|
}
|
|
259
259
|
} else {
|
|
260
260
|
try {
|
|
261
261
|
throw Error();
|
|
262
|
-
} catch (
|
|
263
|
-
|
|
262
|
+
} catch (Z) {
|
|
263
|
+
m = Z;
|
|
264
264
|
}
|
|
265
265
|
a();
|
|
266
266
|
}
|
|
267
|
-
} catch (
|
|
268
|
-
if (
|
|
269
|
-
for (var
|
|
270
|
-
`),
|
|
271
|
-
`),
|
|
272
|
-
|
|
273
|
-
for (;
|
|
274
|
-
if (
|
|
275
|
-
if (
|
|
267
|
+
} catch (Z) {
|
|
268
|
+
if (Z && m && typeof Z.stack == "string") {
|
|
269
|
+
for (var x = Z.stack.split(`
|
|
270
|
+
`), V = m.stack.split(`
|
|
271
|
+
`), $ = x.length - 1, A = V.length - 1; $ >= 1 && A >= 0 && x[$] !== V[A]; )
|
|
272
|
+
A--;
|
|
273
|
+
for (; $ >= 1 && A >= 0; $--, A--)
|
|
274
|
+
if (x[$] !== V[A]) {
|
|
275
|
+
if ($ !== 1 || A !== 1)
|
|
276
276
|
do
|
|
277
|
-
if (
|
|
278
|
-
var
|
|
279
|
-
` +
|
|
280
|
-
return a.displayName &&
|
|
277
|
+
if ($--, A--, A < 0 || x[$] !== V[A]) {
|
|
278
|
+
var X = `
|
|
279
|
+
` + x[$].replace(" at new ", " at ");
|
|
280
|
+
return a.displayName && X.includes("<anonymous>") && (X = X.replace("<anonymous>", a.displayName)), typeof a == "function" && Pe.set(a, X), X;
|
|
281
281
|
}
|
|
282
|
-
while (
|
|
282
|
+
while ($ >= 1 && A >= 0);
|
|
283
283
|
break;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
} finally {
|
|
287
|
-
|
|
287
|
+
Le = !1, Ye.current = _, ur(), Error.prepareStackTrace = S;
|
|
288
288
|
}
|
|
289
|
-
var
|
|
290
|
-
return typeof a == "function" &&
|
|
289
|
+
var fe = a ? a.displayName || a.name : "", ce = fe ? Oe(fe) : "";
|
|
290
|
+
return typeof a == "function" && Pe.set(a, ce), ce;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
return
|
|
292
|
+
function dr(a, f, h) {
|
|
293
|
+
return ut(a, !1);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
var
|
|
297
|
-
return !!(
|
|
295
|
+
function hr(a) {
|
|
296
|
+
var f = a.prototype;
|
|
297
|
+
return !!(f && f.isReactComponent);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Te(a, f, h) {
|
|
300
300
|
if (a == null)
|
|
301
301
|
return "";
|
|
302
302
|
if (typeof a == "function")
|
|
303
|
-
return
|
|
303
|
+
return ut(a, hr(a));
|
|
304
304
|
if (typeof a == "string")
|
|
305
|
-
return
|
|
305
|
+
return Oe(a);
|
|
306
306
|
switch (a) {
|
|
307
|
-
case
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
return
|
|
307
|
+
case l:
|
|
308
|
+
return Oe("Suspense");
|
|
309
|
+
case g:
|
|
310
|
+
return Oe("SuspenseList");
|
|
311
311
|
}
|
|
312
312
|
if (typeof a == "object")
|
|
313
313
|
switch (a.$$typeof) {
|
|
314
314
|
case u:
|
|
315
|
-
return
|
|
316
|
-
case
|
|
317
|
-
return
|
|
318
|
-
case
|
|
319
|
-
var
|
|
315
|
+
return dr(a.render);
|
|
316
|
+
case d:
|
|
317
|
+
return Te(a.type, f, h);
|
|
318
|
+
case b: {
|
|
319
|
+
var m = a, S = m._payload, _ = m._init;
|
|
320
320
|
try {
|
|
321
|
-
return
|
|
321
|
+
return Te(_(S), f, h);
|
|
322
322
|
} catch {
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
return "";
|
|
327
327
|
}
|
|
328
|
-
var
|
|
329
|
-
function
|
|
328
|
+
var be = Object.prototype.hasOwnProperty, ft = {}, dt = O.ReactDebugCurrentFrame;
|
|
329
|
+
function Ne(a) {
|
|
330
330
|
if (a) {
|
|
331
|
-
var
|
|
332
|
-
|
|
331
|
+
var f = a._owner, h = Te(a.type, a._source, f ? f.type : null);
|
|
332
|
+
dt.setExtraStackFrame(h);
|
|
333
333
|
} else
|
|
334
|
-
|
|
334
|
+
dt.setExtraStackFrame(null);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function gr(a, f, h, m, S) {
|
|
337
337
|
{
|
|
338
|
-
var
|
|
339
|
-
for (var
|
|
340
|
-
if (
|
|
341
|
-
var
|
|
338
|
+
var _ = Function.call.bind(be);
|
|
339
|
+
for (var w in a)
|
|
340
|
+
if (_(a, w)) {
|
|
341
|
+
var x = void 0;
|
|
342
342
|
try {
|
|
343
|
-
if (typeof a[
|
|
344
|
-
var
|
|
345
|
-
throw
|
|
343
|
+
if (typeof a[w] != "function") {
|
|
344
|
+
var V = Error((m || "React class") + ": " + h + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
345
|
+
throw V.name = "Invariant Violation", V;
|
|
346
346
|
}
|
|
347
|
-
|
|
348
|
-
} catch (
|
|
349
|
-
|
|
347
|
+
x = a[w](f, w, m, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
348
|
+
} catch ($) {
|
|
349
|
+
x = $;
|
|
350
350
|
}
|
|
351
|
-
|
|
351
|
+
x && !(x instanceof Error) && (Ne(S), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", h, w, typeof x), Ne(null)), x instanceof Error && !(x.message in ft) && (ft[x.message] = !0, Ne(S), y("Failed %s type: %s", h, x.message), Ne(null));
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
var
|
|
356
|
-
function
|
|
357
|
-
return
|
|
355
|
+
var pr = Array.isArray;
|
|
356
|
+
function Ve(a) {
|
|
357
|
+
return pr(a);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function vr(a) {
|
|
360
360
|
{
|
|
361
|
-
var
|
|
362
|
-
return
|
|
361
|
+
var f = typeof Symbol == "function" && Symbol.toStringTag, h = f && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
362
|
+
return h;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function mr(a) {
|
|
366
366
|
try {
|
|
367
|
-
return
|
|
367
|
+
return ht(a), !1;
|
|
368
368
|
} catch {
|
|
369
369
|
return !0;
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function ht(a) {
|
|
373
373
|
return "" + a;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
if (
|
|
377
|
-
return
|
|
375
|
+
function gt(a) {
|
|
376
|
+
if (mr(a))
|
|
377
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", vr(a)), ht(a);
|
|
378
378
|
}
|
|
379
|
-
var
|
|
379
|
+
var ye = O.ReactCurrentOwner, br = {
|
|
380
380
|
key: !0,
|
|
381
381
|
ref: !0,
|
|
382
382
|
__self: !0,
|
|
383
383
|
__source: !0
|
|
384
|
-
},
|
|
385
|
-
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
384
|
+
}, pt, vt, Fe;
|
|
385
|
+
Fe = {};
|
|
386
|
+
function yr(a) {
|
|
387
|
+
if (be.call(a, "ref")) {
|
|
388
|
+
var f = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
389
|
+
if (f && f.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
392
|
return a.ref !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
if (
|
|
396
|
-
var
|
|
397
|
-
if (
|
|
394
|
+
function xr(a) {
|
|
395
|
+
if (be.call(a, "key")) {
|
|
396
|
+
var f = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
397
|
+
if (f && f.isReactWarning)
|
|
398
398
|
return !1;
|
|
399
399
|
}
|
|
400
400
|
return a.key !== void 0;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
if (typeof a.ref == "string" &&
|
|
404
|
-
var
|
|
405
|
-
|
|
402
|
+
function wr(a, f) {
|
|
403
|
+
if (typeof a.ref == "string" && ye.current && f && ye.current.stateNode !== f) {
|
|
404
|
+
var h = k(ye.current.type);
|
|
405
|
+
Fe[h] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(ye.current.type), a.ref), Fe[h] = !0);
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Sr(a, f) {
|
|
409
409
|
{
|
|
410
|
-
var
|
|
411
|
-
|
|
410
|
+
var h = function() {
|
|
411
|
+
pt || (pt = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
412
412
|
};
|
|
413
|
-
|
|
414
|
-
get:
|
|
413
|
+
h.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
414
|
+
get: h,
|
|
415
415
|
configurable: !0
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Cr(a, f) {
|
|
420
420
|
{
|
|
421
|
-
var
|
|
422
|
-
|
|
421
|
+
var h = function() {
|
|
422
|
+
vt || (vt = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
423
423
|
};
|
|
424
|
-
|
|
425
|
-
get:
|
|
424
|
+
h.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
425
|
+
get: h,
|
|
426
426
|
configurable: !0
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
var
|
|
431
|
-
var
|
|
430
|
+
var Rr = function(a, f, h, m, S, _, w) {
|
|
431
|
+
var x = {
|
|
432
432
|
// This tag allows us to uniquely identify this as a React Element
|
|
433
433
|
$$typeof: e,
|
|
434
434
|
// Built-in properties that belong on the element
|
|
435
435
|
type: a,
|
|
436
|
-
key:
|
|
437
|
-
ref:
|
|
438
|
-
props:
|
|
436
|
+
key: f,
|
|
437
|
+
ref: h,
|
|
438
|
+
props: w,
|
|
439
439
|
// Record the component responsible for creating this element.
|
|
440
|
-
_owner:
|
|
440
|
+
_owner: _
|
|
441
441
|
};
|
|
442
|
-
return
|
|
442
|
+
return x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !0,
|
|
446
446
|
value: !1
|
|
447
|
-
}), Object.defineProperty(
|
|
447
|
+
}), Object.defineProperty(x, "_self", {
|
|
448
448
|
configurable: !1,
|
|
449
449
|
enumerable: !1,
|
|
450
450
|
writable: !1,
|
|
451
|
-
value:
|
|
452
|
-
}), Object.defineProperty(
|
|
451
|
+
value: m
|
|
452
|
+
}), Object.defineProperty(x, "_source", {
|
|
453
453
|
configurable: !1,
|
|
454
454
|
enumerable: !1,
|
|
455
455
|
writable: !1,
|
|
456
|
-
value:
|
|
457
|
-
}), Object.freeze && (Object.freeze(
|
|
456
|
+
value: S
|
|
457
|
+
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
458
458
|
};
|
|
459
|
-
function
|
|
459
|
+
function _r(a, f, h, m, S) {
|
|
460
460
|
{
|
|
461
|
-
var
|
|
462
|
-
|
|
463
|
-
for (
|
|
464
|
-
|
|
461
|
+
var _, w = {}, x = null, V = null;
|
|
462
|
+
h !== void 0 && (gt(h), x = "" + h), xr(f) && (gt(f.key), x = "" + f.key), yr(f) && (V = f.ref, wr(f, S));
|
|
463
|
+
for (_ in f)
|
|
464
|
+
be.call(f, _) && !br.hasOwnProperty(_) && (w[_] = f[_]);
|
|
465
465
|
if (a && a.defaultProps) {
|
|
466
|
-
var
|
|
467
|
-
for (
|
|
468
|
-
|
|
466
|
+
var $ = a.defaultProps;
|
|
467
|
+
for (_ in $)
|
|
468
|
+
w[_] === void 0 && (w[_] = $[_]);
|
|
469
469
|
}
|
|
470
|
-
if (
|
|
471
|
-
var
|
|
472
|
-
|
|
470
|
+
if (x || V) {
|
|
471
|
+
var A = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
472
|
+
x && Sr(w, A), V && Cr(w, A);
|
|
473
473
|
}
|
|
474
|
-
return
|
|
474
|
+
return Rr(a, x, V, S, m, ye.current, w);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
function
|
|
477
|
+
var Ue = O.ReactCurrentOwner, mt = O.ReactDebugCurrentFrame;
|
|
478
|
+
function ue(a) {
|
|
479
479
|
if (a) {
|
|
480
|
-
var
|
|
481
|
-
|
|
480
|
+
var f = a._owner, h = Te(a.type, a._source, f ? f.type : null);
|
|
481
|
+
mt.setExtraStackFrame(h);
|
|
482
482
|
} else
|
|
483
|
-
|
|
483
|
+
mt.setExtraStackFrame(null);
|
|
484
484
|
}
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
function
|
|
485
|
+
var We;
|
|
486
|
+
We = !1;
|
|
487
|
+
function Be(a) {
|
|
488
488
|
return typeof a == "object" && a !== null && a.$$typeof === e;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function bt() {
|
|
491
491
|
{
|
|
492
|
-
if (
|
|
493
|
-
var a =
|
|
492
|
+
if (Ue.current) {
|
|
493
|
+
var a = k(Ue.current.type);
|
|
494
494
|
if (a)
|
|
495
495
|
return `
|
|
496
496
|
|
|
@@ -499,234 +499,234 @@ Check the render method of \`` + a + "`.";
|
|
|
499
499
|
return "";
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Er(a) {
|
|
503
503
|
{
|
|
504
504
|
if (a !== void 0) {
|
|
505
|
-
var
|
|
505
|
+
var f = a.fileName.replace(/^.*[\\\/]/, ""), h = a.lineNumber;
|
|
506
506
|
return `
|
|
507
507
|
|
|
508
|
-
Check your code at ` +
|
|
508
|
+
Check your code at ` + f + ":" + h + ".";
|
|
509
509
|
}
|
|
510
510
|
return "";
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
var
|
|
514
|
-
function
|
|
513
|
+
var yt = {};
|
|
514
|
+
function jr(a) {
|
|
515
515
|
{
|
|
516
|
-
var
|
|
517
|
-
if (!
|
|
518
|
-
var
|
|
519
|
-
|
|
516
|
+
var f = bt();
|
|
517
|
+
if (!f) {
|
|
518
|
+
var h = typeof a == "string" ? a : a.displayName || a.name;
|
|
519
|
+
h && (f = `
|
|
520
520
|
|
|
521
|
-
Check the top-level render call using <` +
|
|
521
|
+
Check the top-level render call using <` + h + ">.");
|
|
522
522
|
}
|
|
523
|
-
return
|
|
523
|
+
return f;
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function xt(a, f) {
|
|
527
527
|
{
|
|
528
528
|
if (!a._store || a._store.validated || a.key != null)
|
|
529
529
|
return;
|
|
530
530
|
a._store.validated = !0;
|
|
531
|
-
var
|
|
532
|
-
if (
|
|
531
|
+
var h = jr(f);
|
|
532
|
+
if (yt[h])
|
|
533
533
|
return;
|
|
534
|
-
|
|
535
|
-
var
|
|
536
|
-
a && a._owner && a._owner !==
|
|
534
|
+
yt[h] = !0;
|
|
535
|
+
var m = "";
|
|
536
|
+
a && a._owner && a._owner !== Ue.current && (m = " It was passed a child from " + k(a._owner.type) + "."), ue(a), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, m), ue(null);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function wt(a, f) {
|
|
540
540
|
{
|
|
541
541
|
if (typeof a != "object")
|
|
542
542
|
return;
|
|
543
|
-
if (
|
|
544
|
-
for (var
|
|
545
|
-
var
|
|
546
|
-
|
|
543
|
+
if (Ve(a))
|
|
544
|
+
for (var h = 0; h < a.length; h++) {
|
|
545
|
+
var m = a[h];
|
|
546
|
+
Be(m) && xt(m, f);
|
|
547
547
|
}
|
|
548
|
-
else if (
|
|
548
|
+
else if (Be(a))
|
|
549
549
|
a._store && (a._store.validated = !0);
|
|
550
550
|
else if (a) {
|
|
551
|
-
var
|
|
552
|
-
if (typeof
|
|
553
|
-
for (var
|
|
554
|
-
|
|
551
|
+
var S = Y(a);
|
|
552
|
+
if (typeof S == "function" && S !== a.entries)
|
|
553
|
+
for (var _ = S.call(a), w; !(w = _.next()).done; )
|
|
554
|
+
Be(w.value) && xt(w.value, f);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function Or(a) {
|
|
559
559
|
{
|
|
560
|
-
var
|
|
561
|
-
if (
|
|
560
|
+
var f = a.type;
|
|
561
|
+
if (f == null || typeof f == "string")
|
|
562
562
|
return;
|
|
563
|
-
var
|
|
564
|
-
if (typeof
|
|
565
|
-
|
|
566
|
-
else if (typeof
|
|
563
|
+
var h;
|
|
564
|
+
if (typeof f == "function")
|
|
565
|
+
h = f.propTypes;
|
|
566
|
+
else if (typeof f == "object" && (f.$$typeof === u || // Note: Memo only checks outer props here.
|
|
567
567
|
// Inner props are checked in the reconciler.
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
f.$$typeof === d))
|
|
569
|
+
h = f.propTypes;
|
|
570
570
|
else
|
|
571
571
|
return;
|
|
572
|
-
if (
|
|
573
|
-
var
|
|
574
|
-
|
|
575
|
-
} else if (
|
|
576
|
-
|
|
577
|
-
var
|
|
578
|
-
|
|
572
|
+
if (h) {
|
|
573
|
+
var m = k(f);
|
|
574
|
+
gr(h, a.props, "prop", m, a);
|
|
575
|
+
} else if (f.PropTypes !== void 0 && !We) {
|
|
576
|
+
We = !0;
|
|
577
|
+
var S = k(f);
|
|
578
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
|
|
579
579
|
}
|
|
580
|
-
typeof
|
|
580
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function Pr(a) {
|
|
584
584
|
{
|
|
585
|
-
for (var
|
|
586
|
-
var
|
|
587
|
-
if (
|
|
588
|
-
|
|
585
|
+
for (var f = Object.keys(a.props), h = 0; h < f.length; h++) {
|
|
586
|
+
var m = f[h];
|
|
587
|
+
if (m !== "children" && m !== "key") {
|
|
588
|
+
ue(a), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), ue(null);
|
|
589
589
|
break;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
a.ref !== null && (
|
|
592
|
+
a.ref !== null && (ue(a), y("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
var
|
|
596
|
-
function
|
|
595
|
+
var St = {};
|
|
596
|
+
function Ct(a, f, h, m, S, _) {
|
|
597
597
|
{
|
|
598
|
-
var
|
|
599
|
-
if (!
|
|
600
|
-
var
|
|
601
|
-
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (
|
|
602
|
-
var
|
|
603
|
-
|
|
604
|
-
var
|
|
605
|
-
a === null ?
|
|
598
|
+
var w = ie(a);
|
|
599
|
+
if (!w) {
|
|
600
|
+
var x = "";
|
|
601
|
+
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
602
|
+
var V = Er(S);
|
|
603
|
+
V ? x += V : x += bt();
|
|
604
|
+
var $;
|
|
605
|
+
a === null ? $ = "null" : Ve(a) ? $ = "array" : a !== void 0 && a.$$typeof === e ? ($ = "<" + (k(a.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof a, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, x);
|
|
606
606
|
}
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
609
|
-
return
|
|
610
|
-
if (
|
|
611
|
-
var
|
|
612
|
-
if (
|
|
613
|
-
if (
|
|
614
|
-
if (
|
|
615
|
-
for (var
|
|
616
|
-
|
|
617
|
-
Object.freeze && Object.freeze(
|
|
607
|
+
var A = _r(a, f, h, S, _);
|
|
608
|
+
if (A == null)
|
|
609
|
+
return A;
|
|
610
|
+
if (w) {
|
|
611
|
+
var X = f.children;
|
|
612
|
+
if (X !== void 0)
|
|
613
|
+
if (m)
|
|
614
|
+
if (Ve(X)) {
|
|
615
|
+
for (var fe = 0; fe < X.length; fe++)
|
|
616
|
+
wt(X[fe], a);
|
|
617
|
+
Object.freeze && Object.freeze(X);
|
|
618
618
|
} else
|
|
619
|
-
|
|
619
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
620
620
|
else
|
|
621
|
-
|
|
621
|
+
wt(X, a);
|
|
622
622
|
}
|
|
623
|
-
if (
|
|
624
|
-
var
|
|
625
|
-
return
|
|
626
|
-
}),
|
|
627
|
-
if (!
|
|
628
|
-
var
|
|
629
|
-
|
|
623
|
+
if (be.call(f, "key")) {
|
|
624
|
+
var ce = k(a), Z = Object.keys(f).filter(function(Dr) {
|
|
625
|
+
return Dr !== "key";
|
|
626
|
+
}), Ze = Z.length > 0 ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
627
|
+
if (!St[ce + Ze]) {
|
|
628
|
+
var Ar = Z.length > 0 ? "{" + Z.join(": ..., ") + ": ...}" : "{}";
|
|
629
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
630
630
|
let props = %s;
|
|
631
631
|
<%s {...props} />
|
|
632
632
|
React keys must be passed directly to JSX without using spread:
|
|
633
633
|
let props = %s;
|
|
634
|
-
<%s key={someKey} {...props} />`,
|
|
634
|
+
<%s key={someKey} {...props} />`, Ze, ce, Ar, ce), St[ce + Ze] = !0;
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
return a === n ?
|
|
637
|
+
return a === n ? Pr(A) : Or(A), A;
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
return
|
|
640
|
+
function Tr(a, f, h) {
|
|
641
|
+
return Ct(a, f, h, !0);
|
|
642
642
|
}
|
|
643
|
-
function
|
|
644
|
-
return
|
|
643
|
+
function Nr(a, f, h) {
|
|
644
|
+
return Ct(a, f, h, !1);
|
|
645
645
|
}
|
|
646
|
-
var
|
|
647
|
-
|
|
648
|
-
}()),
|
|
646
|
+
var kr = Nr, $r = Tr;
|
|
647
|
+
we.Fragment = n, we.jsx = kr, we.jsxs = $r;
|
|
648
|
+
}()), we;
|
|
649
649
|
}
|
|
650
|
-
process.env.NODE_ENV === "production" ?
|
|
651
|
-
var
|
|
652
|
-
class
|
|
650
|
+
process.env.NODE_ENV === "production" ? Xe.exports = Qr() : Xe.exports = en();
|
|
651
|
+
var p = Xe.exports;
|
|
652
|
+
class tn {
|
|
653
653
|
constructor() {
|
|
654
654
|
/**
|
|
655
655
|
** 加
|
|
656
656
|
**/
|
|
657
|
-
|
|
658
|
-
let n,
|
|
657
|
+
v(this, "add", function(e, t) {
|
|
658
|
+
let n, s, i, o;
|
|
659
659
|
try {
|
|
660
660
|
n = e.toString().split(".")[1].length;
|
|
661
661
|
} catch {
|
|
662
662
|
n = 0;
|
|
663
663
|
}
|
|
664
664
|
try {
|
|
665
|
-
|
|
665
|
+
s = t.toString().split(".")[1].length;
|
|
666
666
|
} catch {
|
|
667
|
-
|
|
667
|
+
s = 0;
|
|
668
668
|
}
|
|
669
|
-
if (o = Math.abs(n -
|
|
670
|
-
let
|
|
671
|
-
n >
|
|
669
|
+
if (o = Math.abs(n - s), i = Math.pow(10, Math.max(n, s)), o > 0) {
|
|
670
|
+
let c = Math.pow(10, o);
|
|
671
|
+
n > s ? (e = Number(e.toString().replace(".", "")), t = Number(t.toString().replace(".", "")) * c) : (e = Number(e.toString().replace(".", "")) * c, t = Number(t.toString().replace(".", "")));
|
|
672
672
|
} else
|
|
673
673
|
e = Number(e == null ? void 0 : e.toString().replace(".", "")), t = Number(t == null ? void 0 : t.toString().replace(".", ""));
|
|
674
|
-
return (e + t) /
|
|
674
|
+
return (e + t) / i;
|
|
675
675
|
});
|
|
676
676
|
/**
|
|
677
677
|
** 减
|
|
678
678
|
**/
|
|
679
|
-
|
|
680
|
-
let n,
|
|
679
|
+
v(this, "sub", function(e, t) {
|
|
680
|
+
let n, s, i, o;
|
|
681
681
|
try {
|
|
682
682
|
n = e.toString().split(".")[1].length;
|
|
683
683
|
} catch {
|
|
684
684
|
n = 0;
|
|
685
685
|
}
|
|
686
686
|
try {
|
|
687
|
-
|
|
687
|
+
s = t.toString().split(".")[1].length;
|
|
688
688
|
} catch {
|
|
689
|
-
|
|
689
|
+
s = 0;
|
|
690
690
|
}
|
|
691
|
-
return
|
|
691
|
+
return i = Math.pow(10, Math.max(n, s)), o = n >= s ? n : s, Number(((e * i - t * i) / i).toFixed(o));
|
|
692
692
|
});
|
|
693
693
|
/**
|
|
694
694
|
** 乘
|
|
695
695
|
**/
|
|
696
|
-
|
|
697
|
-
let n = 0,
|
|
696
|
+
v(this, "mul", function(e, t) {
|
|
697
|
+
let n = 0, s = e.toString(), i = t.toString();
|
|
698
698
|
try {
|
|
699
|
-
n +=
|
|
699
|
+
n += s.split(".")[1].length;
|
|
700
700
|
} catch {
|
|
701
701
|
}
|
|
702
702
|
try {
|
|
703
|
-
n +=
|
|
703
|
+
n += i.split(".")[1].length;
|
|
704
704
|
} catch {
|
|
705
705
|
}
|
|
706
|
-
return Number(
|
|
706
|
+
return Number(s.replace(".", "")) * Number(i.replace(".", "")) / Math.pow(10, n);
|
|
707
707
|
});
|
|
708
708
|
/**
|
|
709
709
|
** 除
|
|
710
710
|
**/
|
|
711
|
-
|
|
712
|
-
let n = 0,
|
|
711
|
+
v(this, "div", function(e, t) {
|
|
712
|
+
let n = 0, s = 0, i, o;
|
|
713
713
|
try {
|
|
714
714
|
n = e.toString().split(".")[1].length;
|
|
715
715
|
} catch {
|
|
716
716
|
}
|
|
717
717
|
try {
|
|
718
|
-
|
|
718
|
+
s = t.toString().split(".")[1].length;
|
|
719
719
|
} catch {
|
|
720
720
|
}
|
|
721
|
-
return
|
|
721
|
+
return i = Number(e.toString().replace(".", "")), o = Number(t.toString().replace(".", "")), i / o * Math.pow(10, s - n);
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
const
|
|
725
|
+
const la = new tn(), Ee = class Ee {
|
|
726
726
|
constructor() {
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
727
|
+
v(this, "callbacks", []);
|
|
728
|
+
v(this, "pending", !1);
|
|
729
|
+
v(this, "timerFunc");
|
|
730
730
|
this.timerFunc = this.determineTimerFunc();
|
|
731
731
|
}
|
|
732
732
|
determineTimerFunc() {
|
|
@@ -756,64 +756,64 @@ const Fn = new Zr(), ne = class ne {
|
|
|
756
756
|
if (e)
|
|
757
757
|
try {
|
|
758
758
|
e.call(t);
|
|
759
|
-
} catch (
|
|
760
|
-
console.error("Error in nextTick:",
|
|
759
|
+
} catch (s) {
|
|
760
|
+
console.error("Error in nextTick:", s);
|
|
761
761
|
}
|
|
762
762
|
else
|
|
763
763
|
n && n();
|
|
764
764
|
}), this.pending || (this.pending = !0, this.timerFunc()), !e && typeof Promise < "u")
|
|
765
|
-
return new Promise((
|
|
766
|
-
n =
|
|
765
|
+
return new Promise((s) => {
|
|
766
|
+
n = s;
|
|
767
767
|
});
|
|
768
768
|
}
|
|
769
769
|
static nextTick(e, t) {
|
|
770
|
-
return
|
|
770
|
+
return Ee.instance.nextTick(e, t);
|
|
771
771
|
}
|
|
772
772
|
static get instance() {
|
|
773
|
-
return this._instance || (this._instance = new
|
|
773
|
+
return this._instance || (this._instance = new Ee()), this._instance;
|
|
774
774
|
}
|
|
775
775
|
};
|
|
776
|
-
|
|
777
|
-
let
|
|
778
|
-
const
|
|
776
|
+
v(Ee, "_instance");
|
|
777
|
+
let Ae = Ee;
|
|
778
|
+
const ua = Ae.instance.nextTick.bind(Ae.instance), fa = () => {
|
|
779
779
|
}, De = (r, e) => {
|
|
780
780
|
const t = r;
|
|
781
781
|
let n = r;
|
|
782
782
|
if (e.includes(" ")) {
|
|
783
783
|
n = "";
|
|
784
|
-
const
|
|
785
|
-
for (const
|
|
786
|
-
n += ` ${t}-${
|
|
784
|
+
const s = e == null ? void 0 : e.split(" ");
|
|
785
|
+
for (const i of s)
|
|
786
|
+
n += ` ${t}-${i}`;
|
|
787
787
|
} else
|
|
788
788
|
e && (n = `${r}-${e}`);
|
|
789
789
|
return n;
|
|
790
|
-
},
|
|
790
|
+
}, da = (r, e) => {
|
|
791
791
|
const t = e == null ? void 0 : e.split(".");
|
|
792
792
|
let n = r;
|
|
793
|
-
for (const
|
|
794
|
-
n = n[
|
|
793
|
+
for (const s of t)
|
|
794
|
+
n = n[s];
|
|
795
795
|
return n;
|
|
796
|
-
},
|
|
796
|
+
}, rn = (r) => {
|
|
797
797
|
for (const e in r)
|
|
798
798
|
r[e] === null && delete r[e];
|
|
799
799
|
return r;
|
|
800
|
-
},
|
|
800
|
+
}, Ut = (r, e) => {
|
|
801
801
|
let t = null;
|
|
802
802
|
return (...n) => {
|
|
803
803
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
804
804
|
r(...n);
|
|
805
805
|
}, e);
|
|
806
806
|
};
|
|
807
|
-
},
|
|
807
|
+
}, ha = (r, e) => {
|
|
808
808
|
let t = null, n = 0;
|
|
809
|
-
return (...
|
|
810
|
-
const
|
|
811
|
-
t ?
|
|
809
|
+
return (...s) => {
|
|
810
|
+
const i = Date.now();
|
|
811
|
+
t ? i - n >= e && (r(...s), n = i) : (r(...s), n = i, t = setTimeout(() => {
|
|
812
812
|
t = null;
|
|
813
813
|
}, e));
|
|
814
814
|
};
|
|
815
815
|
};
|
|
816
|
-
class
|
|
816
|
+
class ga {
|
|
817
817
|
/**
|
|
818
818
|
* 验证版本号格式是否有效
|
|
819
819
|
* @param version 版本号字符串
|
|
@@ -831,16 +831,16 @@ class Xn {
|
|
|
831
831
|
static compare(e, t) {
|
|
832
832
|
if (!this.isValid(e) || !this.isValid(t))
|
|
833
833
|
throw new Error("Invalid version format");
|
|
834
|
-
const n = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."),
|
|
834
|
+
const n = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."), s = n(e), i = n(t);
|
|
835
835
|
for (let u = 0; u < 3; u++) {
|
|
836
|
-
const
|
|
837
|
-
if (
|
|
836
|
+
const l = parseInt(s[u] || "0", 10), g = parseInt(i[u] || "0", 10);
|
|
837
|
+
if (l > g)
|
|
838
838
|
return 1;
|
|
839
|
-
if (
|
|
839
|
+
if (l < g)
|
|
840
840
|
return -1;
|
|
841
841
|
}
|
|
842
|
-
const o = e.match(/-(.+)/),
|
|
843
|
-
return o && !
|
|
842
|
+
const o = e.match(/-(.+)/), c = t.match(/-(.+)/);
|
|
843
|
+
return o && !c ? -1 : !o && c ? 1 : o && c ? o[1].localeCompare(c[1]) : 0;
|
|
844
844
|
}
|
|
845
845
|
/**
|
|
846
846
|
* 检查版本号是否满足范围要求
|
|
@@ -851,24 +851,24 @@ class Xn {
|
|
|
851
851
|
static satisfies(e, t) {
|
|
852
852
|
if (!this.isValid(e))
|
|
853
853
|
return !1;
|
|
854
|
-
const n = /([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g,
|
|
855
|
-
return !
|
|
856
|
-
const o =
|
|
854
|
+
const n = /([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g, s = t.match(n);
|
|
855
|
+
return !s || s.length === 0 ? !1 : s.every((i) => {
|
|
856
|
+
const o = i.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);
|
|
857
857
|
if (!o)
|
|
858
858
|
return !1;
|
|
859
|
-
const
|
|
859
|
+
const c = o[1] || "==", u = o[2];
|
|
860
860
|
if (!this.isValid(u))
|
|
861
861
|
return !1;
|
|
862
|
-
const
|
|
863
|
-
switch (
|
|
862
|
+
const l = this.compare(e, u);
|
|
863
|
+
switch (c) {
|
|
864
864
|
case ">":
|
|
865
|
-
return
|
|
865
|
+
return l > 0;
|
|
866
866
|
case ">=":
|
|
867
|
-
return
|
|
867
|
+
return l >= 0;
|
|
868
868
|
case "<":
|
|
869
|
-
return
|
|
869
|
+
return l < 0;
|
|
870
870
|
case "<=":
|
|
871
|
-
return
|
|
871
|
+
return l <= 0;
|
|
872
872
|
case "^":
|
|
873
873
|
return this.caretRange(e, u);
|
|
874
874
|
case "~":
|
|
@@ -876,7 +876,7 @@ class Xn {
|
|
|
876
876
|
case "=":
|
|
877
877
|
case "==":
|
|
878
878
|
default:
|
|
879
|
-
return
|
|
879
|
+
return l === 0;
|
|
880
880
|
}
|
|
881
881
|
});
|
|
882
882
|
}
|
|
@@ -887,16 +887,16 @@ class Xn {
|
|
|
887
887
|
* @returns 是否匹配
|
|
888
888
|
*/
|
|
889
889
|
static caretRange(e, t) {
|
|
890
|
-
const n = (
|
|
890
|
+
const n = (c) => c.replace(/^v/, "").split(/[-+]/)[0].split("."), s = n(e), i = n(t);
|
|
891
891
|
let o = 0;
|
|
892
|
-
for (let
|
|
893
|
-
if (parseInt(
|
|
894
|
-
o =
|
|
892
|
+
for (let c = 0; c < i.length; c++)
|
|
893
|
+
if (parseInt(i[c], 10) !== 0) {
|
|
894
|
+
o = c;
|
|
895
895
|
break;
|
|
896
896
|
}
|
|
897
|
-
for (let
|
|
898
|
-
const u = parseInt(
|
|
899
|
-
if (u !==
|
|
897
|
+
for (let c = 0; c <= o; c++) {
|
|
898
|
+
const u = parseInt(s[c] || "0", 10), l = parseInt(i[c] || "0", 10);
|
|
899
|
+
if (u !== l)
|
|
900
900
|
return !1;
|
|
901
901
|
}
|
|
902
902
|
return this.compare(e, t) >= 0;
|
|
@@ -908,14 +908,14 @@ class Xn {
|
|
|
908
908
|
* @returns 是否匹配
|
|
909
909
|
*/
|
|
910
910
|
static tildeRange(e, t) {
|
|
911
|
-
const n = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."),
|
|
912
|
-
for (let u = 0; u <
|
|
913
|
-
const
|
|
914
|
-
if (
|
|
911
|
+
const n = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."), s = n(e), i = n(t);
|
|
912
|
+
for (let u = 0; u < i.length - 1; u++) {
|
|
913
|
+
const l = parseInt(s[u] || "0", 10), g = parseInt(i[u] || "0", 10);
|
|
914
|
+
if (l !== g)
|
|
915
915
|
return !1;
|
|
916
916
|
}
|
|
917
|
-
const o = parseInt(i
|
|
918
|
-
return o >=
|
|
917
|
+
const o = parseInt(s[i.length - 1] || "0", 10), c = parseInt(i[i.length - 1] || "0", 10);
|
|
918
|
+
return o >= c;
|
|
919
919
|
}
|
|
920
920
|
/**
|
|
921
921
|
* 获取主版本号 (major)
|
|
@@ -973,23 +973,23 @@ class Xn {
|
|
|
973
973
|
return t ? t[1] : null;
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
|
-
const
|
|
976
|
+
const Wt = zt({
|
|
977
977
|
theme: {
|
|
978
978
|
cssVar: !0,
|
|
979
|
-
algorithm: [
|
|
979
|
+
algorithm: [Hr.defaultAlgorithm]
|
|
980
980
|
}
|
|
981
|
-
}),
|
|
982
|
-
function
|
|
983
|
-
return
|
|
981
|
+
}), pa = Wt.Provider;
|
|
982
|
+
function nn() {
|
|
983
|
+
return Lt(Wt);
|
|
984
984
|
}
|
|
985
|
-
function
|
|
986
|
-
const { theme: e } =
|
|
987
|
-
return /* @__PURE__ */
|
|
985
|
+
function pe(r) {
|
|
986
|
+
const { theme: e } = nn();
|
|
987
|
+
return /* @__PURE__ */ p.jsx(Yr, { theme: e, children: r.children });
|
|
988
988
|
}
|
|
989
|
-
const
|
|
990
|
-
const n = `${
|
|
991
|
-
return e.render ? /* @__PURE__ */
|
|
992
|
-
|
|
989
|
+
const Ot = (r = "") => De("items-row", r), an = (r) => r.items ? /* @__PURE__ */ p.jsx(pe, { children: /* @__PURE__ */ p.jsx("div", { className: `${Ot()} ${r.className || ""}`, style: r.style, children: (r.items || []).map((e, t) => {
|
|
990
|
+
const n = `${Ot("item")} ${e.className}`;
|
|
991
|
+
return e.render ? /* @__PURE__ */ p.jsx("span", { className: n, children: e.render() }, t) : /* @__PURE__ */ p.jsx(
|
|
992
|
+
Re,
|
|
993
993
|
{
|
|
994
994
|
className: n,
|
|
995
995
|
...e.btnProps,
|
|
@@ -1000,192 +1000,192 @@ const gt = (r = "") => De("items-row", r), qr = (r) => r.items ? /* @__PURE__ */
|
|
|
1000
1000
|
e.label
|
|
1001
1001
|
);
|
|
1002
1002
|
}) }) }) : null;
|
|
1003
|
-
const
|
|
1003
|
+
const Se = (r = "") => De("m-breadcrumb", r), va = (r) => {
|
|
1004
1004
|
const {
|
|
1005
1005
|
routes: e,
|
|
1006
1006
|
customItems: t,
|
|
1007
1007
|
style: n,
|
|
1008
|
-
className:
|
|
1009
|
-
offsetTop:
|
|
1008
|
+
className: s,
|
|
1009
|
+
offsetTop: i = 64,
|
|
1010
1010
|
mainAppBaseUrl: o,
|
|
1011
|
-
microAppName:
|
|
1012
|
-
} = r, u =
|
|
1013
|
-
var
|
|
1014
|
-
(
|
|
1011
|
+
microAppName: c
|
|
1012
|
+
} = r, u = U.useRef(null), l = U.useCallback(() => {
|
|
1013
|
+
var d, b;
|
|
1014
|
+
(b = (d = u.current) == null ? void 0 : d.updatePosition) == null || b.call(d);
|
|
1015
1015
|
}, []);
|
|
1016
|
-
|
|
1017
|
-
const
|
|
1018
|
-
(
|
|
1019
|
-
if (!
|
|
1016
|
+
U.useEffect(() => (window.addEventListener("scroll", l, !0), () => window.removeEventListener("scroll", l)), [l]);
|
|
1017
|
+
const g = U.useCallback(
|
|
1018
|
+
(d) => {
|
|
1019
|
+
if (!d)
|
|
1020
1020
|
return "";
|
|
1021
|
-
const
|
|
1021
|
+
const b = d.replace(/^\/+/, "");
|
|
1022
1022
|
return `/${[
|
|
1023
1023
|
o == null ? void 0 : o.replace(/\/+$/, ""),
|
|
1024
|
-
|
|
1025
|
-
|
|
1024
|
+
c == null ? void 0 : c.replace(/\/+$/, ""),
|
|
1025
|
+
b
|
|
1026
1026
|
].filter(Boolean).join("/")}`;
|
|
1027
1027
|
},
|
|
1028
|
-
[o,
|
|
1028
|
+
[o, c]
|
|
1029
1029
|
);
|
|
1030
|
-
return /* @__PURE__ */
|
|
1031
|
-
|
|
1030
|
+
return /* @__PURE__ */ p.jsx(pe, { children: /* @__PURE__ */ p.jsx("div", { className: `${Se()} ${s || ""}`, style: n, children: /* @__PURE__ */ p.jsx(zr, { ref: u, offsetTop: i, children: /* @__PURE__ */ p.jsxs(
|
|
1031
|
+
Vt,
|
|
1032
1032
|
{
|
|
1033
|
-
className:
|
|
1034
|
-
rootClassName:
|
|
1033
|
+
className: Se("container"),
|
|
1034
|
+
rootClassName: Se("body"),
|
|
1035
1035
|
variant: "borderless",
|
|
1036
1036
|
children: [
|
|
1037
|
-
/* @__PURE__ */
|
|
1038
|
-
/* @__PURE__ */
|
|
1037
|
+
/* @__PURE__ */ p.jsx(Rt, { className: Se("inner-breadcrumb"), style: { fontSize: "18px" }, children: e == null ? void 0 : e.map((d) => /* @__PURE__ */ p.jsx(Rt.Item, { children: d.url ? /* @__PURE__ */ p.jsx("a", { href: `#${g(d.url)}`, children: d.name }) : d.name }, d.url || d.name)) }),
|
|
1038
|
+
/* @__PURE__ */ p.jsx("div", { className: Se("custom-item-wrapper"), children: /* @__PURE__ */ p.jsx(an, { items: t }) })
|
|
1039
1039
|
]
|
|
1040
1040
|
}
|
|
1041
1041
|
) }) }) });
|
|
1042
|
-
},
|
|
1042
|
+
}, sn = (r) => {
|
|
1043
1043
|
const {
|
|
1044
1044
|
data: e,
|
|
1045
1045
|
title: t,
|
|
1046
1046
|
column: n = 3,
|
|
1047
|
-
lineHeight:
|
|
1048
|
-
align:
|
|
1047
|
+
lineHeight: s,
|
|
1048
|
+
align: i = "left",
|
|
1049
1049
|
itemLayout: o,
|
|
1050
|
-
colon:
|
|
1050
|
+
colon: c = !0,
|
|
1051
1051
|
bordered: u = !1,
|
|
1052
|
-
style:
|
|
1053
|
-
className:
|
|
1054
|
-
labelStyle:
|
|
1055
|
-
contentStyle:
|
|
1056
|
-
} = r,
|
|
1057
|
-
...
|
|
1058
|
-
textAlign:
|
|
1052
|
+
style: l,
|
|
1053
|
+
className: g,
|
|
1054
|
+
labelStyle: d,
|
|
1055
|
+
contentStyle: b
|
|
1056
|
+
} = r, j = {
|
|
1057
|
+
...s ? { lineHeight: `${s}px` } : {},
|
|
1058
|
+
textAlign: i,
|
|
1059
1059
|
...o != null && o.label ? { width: `${o.label}px` } : {},
|
|
1060
|
-
...
|
|
1061
|
-
},
|
|
1062
|
-
...
|
|
1060
|
+
...d
|
|
1061
|
+
}, T = {
|
|
1062
|
+
...s ? { lineHeight: `${s}px` } : {},
|
|
1063
1063
|
...o != null && o.value ? { width: `${o.value}px` } : {},
|
|
1064
|
-
...
|
|
1064
|
+
...b
|
|
1065
1065
|
};
|
|
1066
|
-
return /* @__PURE__ */
|
|
1067
|
-
|
|
1066
|
+
return /* @__PURE__ */ p.jsx(pe, { children: /* @__PURE__ */ p.jsx(
|
|
1067
|
+
_t,
|
|
1068
1068
|
{
|
|
1069
1069
|
title: t,
|
|
1070
1070
|
column: n,
|
|
1071
|
-
colon:
|
|
1071
|
+
colon: c,
|
|
1072
1072
|
bordered: u,
|
|
1073
|
-
style:
|
|
1074
|
-
className:
|
|
1075
|
-
labelStyle:
|
|
1076
|
-
contentStyle:
|
|
1077
|
-
children: e.map((
|
|
1078
|
-
var
|
|
1079
|
-
return /* @__PURE__ */
|
|
1080
|
-
|
|
1073
|
+
style: l,
|
|
1074
|
+
className: g,
|
|
1075
|
+
labelStyle: j,
|
|
1076
|
+
contentStyle: T,
|
|
1077
|
+
children: e.map((N, Y) => {
|
|
1078
|
+
var O;
|
|
1079
|
+
return /* @__PURE__ */ p.jsx(
|
|
1080
|
+
_t.Item,
|
|
1081
1081
|
{
|
|
1082
|
-
label:
|
|
1083
|
-
span:
|
|
1084
|
-
children:
|
|
1082
|
+
label: N.label,
|
|
1083
|
+
span: N.span,
|
|
1084
|
+
children: N.value || "-"
|
|
1085
1085
|
},
|
|
1086
|
-
((
|
|
1086
|
+
((O = N.label) == null ? void 0 : O.toString()) || Y
|
|
1087
1087
|
);
|
|
1088
1088
|
})
|
|
1089
1089
|
}
|
|
1090
1090
|
) });
|
|
1091
1091
|
};
|
|
1092
|
-
|
|
1093
|
-
var
|
|
1094
|
-
const
|
|
1095
|
-
function
|
|
1096
|
-
return
|
|
1092
|
+
sn.displayName = "MDescriptions";
|
|
1093
|
+
var on = /* @__PURE__ */ zt({});
|
|
1094
|
+
const Bt = on;
|
|
1095
|
+
function ge() {
|
|
1096
|
+
return ge = Object.assign ? Object.assign.bind() : function(r) {
|
|
1097
1097
|
for (var e = 1; e < arguments.length; e++) {
|
|
1098
1098
|
var t = arguments[e];
|
|
1099
1099
|
for (var n in t)
|
|
1100
1100
|
({}).hasOwnProperty.call(t, n) && (r[n] = t[n]);
|
|
1101
1101
|
}
|
|
1102
1102
|
return r;
|
|
1103
|
-
},
|
|
1103
|
+
}, ge.apply(null, arguments);
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function cn(r) {
|
|
1106
1106
|
if (Array.isArray(r))
|
|
1107
1107
|
return r;
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function ln(r, e) {
|
|
1110
1110
|
var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
1111
1111
|
if (t != null) {
|
|
1112
|
-
var n,
|
|
1112
|
+
var n, s, i, o, c = [], u = !0, l = !1;
|
|
1113
1113
|
try {
|
|
1114
|
-
if (
|
|
1114
|
+
if (i = (t = t.call(r)).next, e === 0) {
|
|
1115
1115
|
if (Object(t) !== t)
|
|
1116
1116
|
return;
|
|
1117
1117
|
u = !1;
|
|
1118
1118
|
} else
|
|
1119
|
-
for (; !(u = (n =
|
|
1119
|
+
for (; !(u = (n = i.call(t)).done) && (c.push(n.value), c.length !== e); u = !0)
|
|
1120
1120
|
;
|
|
1121
|
-
} catch (
|
|
1122
|
-
|
|
1121
|
+
} catch (g) {
|
|
1122
|
+
l = !0, s = g;
|
|
1123
1123
|
} finally {
|
|
1124
1124
|
try {
|
|
1125
1125
|
if (!u && t.return != null && (o = t.return(), Object(o) !== o))
|
|
1126
1126
|
return;
|
|
1127
1127
|
} finally {
|
|
1128
|
-
if (
|
|
1129
|
-
throw
|
|
1128
|
+
if (l)
|
|
1129
|
+
throw s;
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
|
-
return
|
|
1132
|
+
return c;
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function Pt(r, e) {
|
|
1136
1136
|
(e == null || e > r.length) && (e = r.length);
|
|
1137
1137
|
for (var t = 0, n = Array(e); t < e; t++)
|
|
1138
1138
|
n[t] = r[t];
|
|
1139
1139
|
return n;
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function un(r, e) {
|
|
1142
1142
|
if (r) {
|
|
1143
1143
|
if (typeof r == "string")
|
|
1144
|
-
return
|
|
1144
|
+
return Pt(r, e);
|
|
1145
1145
|
var t = {}.toString.call(r).slice(8, -1);
|
|
1146
|
-
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ?
|
|
1146
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Pt(r, e) : void 0;
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1149
|
+
function fn() {
|
|
1150
1150
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1151
1151
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return
|
|
1153
|
+
function Zt(r, e) {
|
|
1154
|
+
return cn(r) || ln(r, e) || un(r, e) || fn();
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function le(r) {
|
|
1157
1157
|
"@babel/helpers - typeof";
|
|
1158
|
-
return
|
|
1158
|
+
return le = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1159
1159
|
return typeof e;
|
|
1160
1160
|
} : function(e) {
|
|
1161
1161
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1162
|
-
},
|
|
1162
|
+
}, le(r);
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1165
|
-
if (
|
|
1164
|
+
function dn(r, e) {
|
|
1165
|
+
if (le(r) != "object" || !r)
|
|
1166
1166
|
return r;
|
|
1167
1167
|
var t = r[Symbol.toPrimitive];
|
|
1168
1168
|
if (t !== void 0) {
|
|
1169
1169
|
var n = t.call(r, e || "default");
|
|
1170
|
-
if (
|
|
1170
|
+
if (le(n) != "object")
|
|
1171
1171
|
return n;
|
|
1172
1172
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1173
1173
|
}
|
|
1174
1174
|
return (e === "string" ? String : Number)(r);
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1177
|
-
var e =
|
|
1178
|
-
return
|
|
1176
|
+
function hn(r) {
|
|
1177
|
+
var e = dn(r, "string");
|
|
1178
|
+
return le(e) == "symbol" ? e : e + "";
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return (e =
|
|
1180
|
+
function F(r, e, t) {
|
|
1181
|
+
return (e = hn(e)) in r ? Object.defineProperty(r, e, {
|
|
1182
1182
|
value: t,
|
|
1183
1183
|
enumerable: !0,
|
|
1184
1184
|
configurable: !0,
|
|
1185
1185
|
writable: !0
|
|
1186
1186
|
}) : r[e] = t, r;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function gn(r, e) {
|
|
1189
1189
|
if (r == null)
|
|
1190
1190
|
return {};
|
|
1191
1191
|
var t = {};
|
|
@@ -1197,18 +1197,18 @@ function nn(r, e) {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
return t;
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function qt(r, e) {
|
|
1201
1201
|
if (r == null)
|
|
1202
1202
|
return {};
|
|
1203
|
-
var t, n,
|
|
1203
|
+
var t, n, s = gn(r, e);
|
|
1204
1204
|
if (Object.getOwnPropertySymbols) {
|
|
1205
|
-
var
|
|
1206
|
-
for (n = 0; n <
|
|
1207
|
-
t =
|
|
1205
|
+
var i = Object.getOwnPropertySymbols(r);
|
|
1206
|
+
for (n = 0; n < i.length; n++)
|
|
1207
|
+
t = i[n], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(r, t) && (s[t] = r[t]);
|
|
1208
1208
|
}
|
|
1209
|
-
return
|
|
1209
|
+
return s;
|
|
1210
1210
|
}
|
|
1211
|
-
var
|
|
1211
|
+
var Kt = { exports: {} };
|
|
1212
1212
|
/*!
|
|
1213
1213
|
Copyright (c) 2018 Jed Watson.
|
|
1214
1214
|
Licensed under the MIT License (MIT), see
|
|
@@ -1218,62 +1218,62 @@ var Dt = { exports: {} };
|
|
|
1218
1218
|
(function() {
|
|
1219
1219
|
var e = {}.hasOwnProperty;
|
|
1220
1220
|
function t() {
|
|
1221
|
-
for (var
|
|
1222
|
-
var
|
|
1223
|
-
|
|
1221
|
+
for (var i = "", o = 0; o < arguments.length; o++) {
|
|
1222
|
+
var c = arguments[o];
|
|
1223
|
+
c && (i = s(i, n(c)));
|
|
1224
1224
|
}
|
|
1225
|
-
return
|
|
1225
|
+
return i;
|
|
1226
1226
|
}
|
|
1227
|
-
function n(
|
|
1228
|
-
if (typeof
|
|
1229
|
-
return
|
|
1230
|
-
if (typeof
|
|
1227
|
+
function n(i) {
|
|
1228
|
+
if (typeof i == "string" || typeof i == "number")
|
|
1229
|
+
return i;
|
|
1230
|
+
if (typeof i != "object")
|
|
1231
1231
|
return "";
|
|
1232
|
-
if (Array.isArray(
|
|
1233
|
-
return t.apply(null,
|
|
1234
|
-
if (
|
|
1235
|
-
return
|
|
1232
|
+
if (Array.isArray(i))
|
|
1233
|
+
return t.apply(null, i);
|
|
1234
|
+
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
|
|
1235
|
+
return i.toString();
|
|
1236
1236
|
var o = "";
|
|
1237
|
-
for (var
|
|
1238
|
-
e.call(
|
|
1237
|
+
for (var c in i)
|
|
1238
|
+
e.call(i, c) && i[c] && (o = s(o, c));
|
|
1239
1239
|
return o;
|
|
1240
1240
|
}
|
|
1241
|
-
function i
|
|
1242
|
-
return o ?
|
|
1241
|
+
function s(i, o) {
|
|
1242
|
+
return o ? i ? i + " " + o : i + o : i;
|
|
1243
1243
|
}
|
|
1244
1244
|
r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
|
|
1245
1245
|
})();
|
|
1246
|
-
})(
|
|
1247
|
-
var
|
|
1248
|
-
const
|
|
1249
|
-
function
|
|
1250
|
-
const t = r.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], n = t.map((
|
|
1251
|
-
for (let
|
|
1252
|
-
n[
|
|
1246
|
+
})(Kt);
|
|
1247
|
+
var pn = Kt.exports;
|
|
1248
|
+
const vn = /* @__PURE__ */ Xr(pn), I = Math.round;
|
|
1249
|
+
function Ke(r, e) {
|
|
1250
|
+
const t = r.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], n = t.map((s) => parseFloat(s));
|
|
1251
|
+
for (let s = 0; s < 3; s += 1)
|
|
1252
|
+
n[s] = e(n[s] || 0, t[s] || "", s);
|
|
1253
1253
|
return t[3] ? n[3] = t[3].includes("%") ? n[3] / 100 : n[3] : n[3] = 1, n;
|
|
1254
1254
|
}
|
|
1255
|
-
const
|
|
1256
|
-
function
|
|
1255
|
+
const Tt = (r, e, t) => t === 0 ? r : r / 100;
|
|
1256
|
+
function Ce(r, e) {
|
|
1257
1257
|
const t = e || 255;
|
|
1258
1258
|
return r > t ? t : r < 0 ? 0 : r;
|
|
1259
1259
|
}
|
|
1260
|
-
class
|
|
1260
|
+
class de {
|
|
1261
1261
|
constructor(e) {
|
|
1262
|
-
|
|
1262
|
+
F(this, "isValid", !0), F(this, "r", 0), F(this, "g", 0), F(this, "b", 0), F(this, "a", 1), F(this, "_h", void 0), F(this, "_s", void 0), F(this, "_l", void 0), F(this, "_v", void 0), F(this, "_max", void 0), F(this, "_min", void 0), F(this, "_brightness", void 0);
|
|
1263
1263
|
function t(n) {
|
|
1264
1264
|
return n[0] in e && n[1] in e && n[2] in e;
|
|
1265
1265
|
}
|
|
1266
1266
|
if (e)
|
|
1267
1267
|
if (typeof e == "string") {
|
|
1268
|
-
let
|
|
1269
|
-
return n.startsWith(
|
|
1268
|
+
let s = function(i) {
|
|
1269
|
+
return n.startsWith(i);
|
|
1270
1270
|
};
|
|
1271
1271
|
const n = e.trim();
|
|
1272
|
-
/^#?[A-F\d]{3,8}$/i.test(n) ? this.fromHexString(n) :
|
|
1273
|
-
} else if (e instanceof
|
|
1272
|
+
/^#?[A-F\d]{3,8}$/i.test(n) ? this.fromHexString(n) : s("rgb") ? this.fromRgbString(n) : s("hsl") ? this.fromHslString(n) : (s("hsv") || s("hsb")) && this.fromHsvString(n);
|
|
1273
|
+
} else if (e instanceof de)
|
|
1274
1274
|
this.r = e.r, this.g = e.g, this.b = e.b, this.a = e.a, this._h = e._h, this._s = e._s, this._l = e._l, this._v = e._v;
|
|
1275
1275
|
else if (t("rgb"))
|
|
1276
|
-
this.r =
|
|
1276
|
+
this.r = Ce(e.r), this.g = Ce(e.g), this.b = Ce(e.b), this.a = typeof e.a == "number" ? Ce(e.a, 1) : 1;
|
|
1277
1277
|
else if (t("hsl"))
|
|
1278
1278
|
this.fromHsl(e);
|
|
1279
1279
|
else if (t("hsv"))
|
|
@@ -1304,17 +1304,17 @@ class Z {
|
|
|
1304
1304
|
* @see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
|
|
1305
1305
|
*/
|
|
1306
1306
|
getLuminance() {
|
|
1307
|
-
function e(
|
|
1308
|
-
const o =
|
|
1307
|
+
function e(i) {
|
|
1308
|
+
const o = i / 255;
|
|
1309
1309
|
return o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4);
|
|
1310
1310
|
}
|
|
1311
|
-
const t = e(this.r), n = e(this.g),
|
|
1312
|
-
return 0.2126 * t + 0.7152 * n + 0.0722 *
|
|
1311
|
+
const t = e(this.r), n = e(this.g), s = e(this.b);
|
|
1312
|
+
return 0.2126 * t + 0.7152 * n + 0.0722 * s;
|
|
1313
1313
|
}
|
|
1314
1314
|
getHue() {
|
|
1315
1315
|
if (typeof this._h > "u") {
|
|
1316
1316
|
const e = this.getMax() - this.getMin();
|
|
1317
|
-
e === 0 ? this._h = 0 : this._h =
|
|
1317
|
+
e === 0 ? this._h = 0 : this._h = I(60 * (this.r === this.getMax() ? (this.g - this.b) / e + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / e + 2 : (this.r - this.g) / e + 4));
|
|
1318
1318
|
}
|
|
1319
1319
|
return this._h;
|
|
1320
1320
|
}
|
|
@@ -1342,21 +1342,21 @@ class Z {
|
|
|
1342
1342
|
// ======================== Func ========================
|
|
1343
1343
|
darken(e = 10) {
|
|
1344
1344
|
const t = this.getHue(), n = this.getSaturation();
|
|
1345
|
-
let
|
|
1346
|
-
return
|
|
1345
|
+
let s = this.getLightness() - e / 100;
|
|
1346
|
+
return s < 0 && (s = 0), this._c({
|
|
1347
1347
|
h: t,
|
|
1348
1348
|
s: n,
|
|
1349
|
-
l:
|
|
1349
|
+
l: s,
|
|
1350
1350
|
a: this.a
|
|
1351
1351
|
});
|
|
1352
1352
|
}
|
|
1353
1353
|
lighten(e = 10) {
|
|
1354
1354
|
const t = this.getHue(), n = this.getSaturation();
|
|
1355
|
-
let
|
|
1356
|
-
return
|
|
1355
|
+
let s = this.getLightness() + e / 100;
|
|
1356
|
+
return s > 1 && (s = 1), this._c({
|
|
1357
1357
|
h: t,
|
|
1358
1358
|
s: n,
|
|
1359
|
-
l:
|
|
1359
|
+
l: s,
|
|
1360
1360
|
a: this.a
|
|
1361
1361
|
});
|
|
1362
1362
|
}
|
|
@@ -1365,11 +1365,11 @@ class Z {
|
|
|
1365
1365
|
* 0 means no mixing (return current color).
|
|
1366
1366
|
*/
|
|
1367
1367
|
mix(e, t = 50) {
|
|
1368
|
-
const n = this._c(e),
|
|
1369
|
-
r:
|
|
1370
|
-
g:
|
|
1371
|
-
b:
|
|
1372
|
-
a:
|
|
1368
|
+
const n = this._c(e), s = t / 100, i = (c) => (n[c] - this[c]) * s + this[c], o = {
|
|
1369
|
+
r: I(i("r")),
|
|
1370
|
+
g: I(i("g")),
|
|
1371
|
+
b: I(i("b")),
|
|
1372
|
+
a: I(i("a") * 100) / 100
|
|
1373
1373
|
};
|
|
1374
1374
|
return this._c(o);
|
|
1375
1375
|
}
|
|
@@ -1398,11 +1398,11 @@ class Z {
|
|
|
1398
1398
|
}, e);
|
|
1399
1399
|
}
|
|
1400
1400
|
onBackground(e) {
|
|
1401
|
-
const t = this._c(e), n = this.a + t.a * (1 - this.a),
|
|
1401
|
+
const t = this._c(e), n = this.a + t.a * (1 - this.a), s = (i) => I((this[i] * this.a + t[i] * t.a * (1 - this.a)) / n);
|
|
1402
1402
|
return this._c({
|
|
1403
|
-
r:
|
|
1404
|
-
g:
|
|
1405
|
-
b:
|
|
1403
|
+
r: s("r"),
|
|
1404
|
+
g: s("g"),
|
|
1405
|
+
b: s("b"),
|
|
1406
1406
|
a: n
|
|
1407
1407
|
});
|
|
1408
1408
|
}
|
|
@@ -1427,10 +1427,10 @@ class Z {
|
|
|
1427
1427
|
e += t.length === 2 ? t : "0" + t;
|
|
1428
1428
|
const n = (this.g || 0).toString(16);
|
|
1429
1429
|
e += n.length === 2 ? n : "0" + n;
|
|
1430
|
-
const
|
|
1431
|
-
if (e +=
|
|
1432
|
-
const
|
|
1433
|
-
e +=
|
|
1430
|
+
const s = (this.b || 0).toString(16);
|
|
1431
|
+
if (e += s.length === 2 ? s : "0" + s, typeof this.a == "number" && this.a >= 0 && this.a < 1) {
|
|
1432
|
+
const i = I(this.a * 255).toString(16);
|
|
1433
|
+
e += i.length === 2 ? i : "0" + i;
|
|
1434
1434
|
}
|
|
1435
1435
|
return e;
|
|
1436
1436
|
}
|
|
@@ -1445,7 +1445,7 @@ class Z {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
/** CSS support color pattern */
|
|
1447
1447
|
toHslString() {
|
|
1448
|
-
const e = this.getHue(), t =
|
|
1448
|
+
const e = this.getHue(), t = I(this.getSaturation() * 100), n = I(this.getLightness() * 100);
|
|
1449
1449
|
return this.a !== 1 ? `hsla(${e},${t}%,${n}%,${this.a})` : `hsl(${e},${t}%,${n}%)`;
|
|
1450
1450
|
}
|
|
1451
1451
|
/** Same as toHsb */
|
|
@@ -1474,8 +1474,8 @@ class Z {
|
|
|
1474
1474
|
// ====================== Privates ======================
|
|
1475
1475
|
/** Return a new FastColor object with one channel changed */
|
|
1476
1476
|
_sc(e, t, n) {
|
|
1477
|
-
const
|
|
1478
|
-
return
|
|
1477
|
+
const s = this.clone();
|
|
1478
|
+
return s[e] = Ce(t, n), s;
|
|
1479
1479
|
}
|
|
1480
1480
|
_c(e) {
|
|
1481
1481
|
return new this.constructor(e);
|
|
@@ -1488,8 +1488,8 @@ class Z {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
fromHexString(e) {
|
|
1490
1490
|
const t = e.replace("#", "");
|
|
1491
|
-
function n(
|
|
1492
|
-
return parseInt(t[
|
|
1491
|
+
function n(s, i) {
|
|
1492
|
+
return parseInt(t[s] + t[i || s], 16);
|
|
1493
1493
|
}
|
|
1494
1494
|
t.length < 6 ? (this.r = n(0), this.g = n(1), this.b = n(2), this.a = t[3] ? n(3) / 255 : 1) : (this.r = n(0, 1), this.g = n(2, 3), this.b = n(4, 5), this.a = t[6] ? n(6, 7) / 255 : 1);
|
|
1495
1495
|
}
|
|
@@ -1497,53 +1497,53 @@ class Z {
|
|
|
1497
1497
|
h: e,
|
|
1498
1498
|
s: t,
|
|
1499
1499
|
l: n,
|
|
1500
|
-
a:
|
|
1500
|
+
a: s
|
|
1501
1501
|
}) {
|
|
1502
|
-
if (this._h = e % 360, this._s = t, this._l = n, this.a = typeof
|
|
1503
|
-
const
|
|
1504
|
-
this.r =
|
|
1502
|
+
if (this._h = e % 360, this._s = t, this._l = n, this.a = typeof s == "number" ? s : 1, t <= 0) {
|
|
1503
|
+
const b = I(n * 255);
|
|
1504
|
+
this.r = b, this.g = b, this.b = b;
|
|
1505
1505
|
}
|
|
1506
|
-
let
|
|
1507
|
-
const u = e / 60,
|
|
1508
|
-
u >= 0 && u < 1 ? (
|
|
1509
|
-
const
|
|
1510
|
-
this.r =
|
|
1506
|
+
let i = 0, o = 0, c = 0;
|
|
1507
|
+
const u = e / 60, l = (1 - Math.abs(2 * n - 1)) * t, g = l * (1 - Math.abs(u % 2 - 1));
|
|
1508
|
+
u >= 0 && u < 1 ? (i = l, o = g) : u >= 1 && u < 2 ? (i = g, o = l) : u >= 2 && u < 3 ? (o = l, c = g) : u >= 3 && u < 4 ? (o = g, c = l) : u >= 4 && u < 5 ? (i = g, c = l) : u >= 5 && u < 6 && (i = l, c = g);
|
|
1509
|
+
const d = n - l / 2;
|
|
1510
|
+
this.r = I((i + d) * 255), this.g = I((o + d) * 255), this.b = I((c + d) * 255);
|
|
1511
1511
|
}
|
|
1512
1512
|
fromHsv({
|
|
1513
1513
|
h: e,
|
|
1514
1514
|
s: t,
|
|
1515
1515
|
v: n,
|
|
1516
|
-
a:
|
|
1516
|
+
a: s
|
|
1517
1517
|
}) {
|
|
1518
|
-
this._h = e % 360, this._s = t, this._v = n, this.a = typeof
|
|
1519
|
-
const
|
|
1520
|
-
if (this.r =
|
|
1518
|
+
this._h = e % 360, this._s = t, this._v = n, this.a = typeof s == "number" ? s : 1;
|
|
1519
|
+
const i = I(n * 255);
|
|
1520
|
+
if (this.r = i, this.g = i, this.b = i, t <= 0)
|
|
1521
1521
|
return;
|
|
1522
|
-
const o = e / 60,
|
|
1523
|
-
switch (
|
|
1522
|
+
const o = e / 60, c = Math.floor(o), u = o - c, l = I(n * (1 - t) * 255), g = I(n * (1 - t * u) * 255), d = I(n * (1 - t * (1 - u)) * 255);
|
|
1523
|
+
switch (c) {
|
|
1524
1524
|
case 0:
|
|
1525
|
-
this.g =
|
|
1525
|
+
this.g = d, this.b = l;
|
|
1526
1526
|
break;
|
|
1527
1527
|
case 1:
|
|
1528
|
-
this.r =
|
|
1528
|
+
this.r = g, this.b = l;
|
|
1529
1529
|
break;
|
|
1530
1530
|
case 2:
|
|
1531
|
-
this.r =
|
|
1531
|
+
this.r = l, this.b = d;
|
|
1532
1532
|
break;
|
|
1533
1533
|
case 3:
|
|
1534
|
-
this.r =
|
|
1534
|
+
this.r = l, this.g = g;
|
|
1535
1535
|
break;
|
|
1536
1536
|
case 4:
|
|
1537
|
-
this.r =
|
|
1537
|
+
this.r = d, this.g = l;
|
|
1538
1538
|
break;
|
|
1539
1539
|
case 5:
|
|
1540
1540
|
default:
|
|
1541
|
-
this.g =
|
|
1541
|
+
this.g = l, this.b = g;
|
|
1542
1542
|
break;
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
1545
|
fromHsvString(e) {
|
|
1546
|
-
const t =
|
|
1546
|
+
const t = Ke(e, Tt);
|
|
1547
1547
|
this.fromHsv({
|
|
1548
1548
|
h: t[0],
|
|
1549
1549
|
s: t[1],
|
|
@@ -1552,7 +1552,7 @@ class Z {
|
|
|
1552
1552
|
});
|
|
1553
1553
|
}
|
|
1554
1554
|
fromHslString(e) {
|
|
1555
|
-
const t =
|
|
1555
|
+
const t = Ke(e, Tt);
|
|
1556
1556
|
this.fromHsl({
|
|
1557
1557
|
h: t[0],
|
|
1558
1558
|
s: t[1],
|
|
@@ -1561,14 +1561,14 @@ class Z {
|
|
|
1561
1561
|
});
|
|
1562
1562
|
}
|
|
1563
1563
|
fromRgbString(e) {
|
|
1564
|
-
const t =
|
|
1564
|
+
const t = Ke(e, (n, s) => (
|
|
1565
1565
|
// Convert percentage to number. e.g. 50% -> 128
|
|
1566
|
-
|
|
1566
|
+
s.includes("%") ? I(n / 100 * 255) : n
|
|
1567
1567
|
));
|
|
1568
1568
|
this.r = t[0], this.g = t[1], this.b = t[2], this.a = t[3];
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
|
-
var
|
|
1571
|
+
var ke = 2, Nt = 0.16, mn = 0.05, bn = 0.05, yn = 0.15, Gt = 5, Jt = 4, xn = [{
|
|
1572
1572
|
index: 7,
|
|
1573
1573
|
amount: 15
|
|
1574
1574
|
}, {
|
|
@@ -1599,72 +1599,72 @@ var le = 2, bt = 0.16, on = 0.05, cn = 0.05, ln = 0.15, Mt = 5, It = 4, un = [{
|
|
|
1599
1599
|
index: 1,
|
|
1600
1600
|
amount: 98
|
|
1601
1601
|
}];
|
|
1602
|
-
function
|
|
1602
|
+
function kt(r, e, t) {
|
|
1603
1603
|
var n;
|
|
1604
|
-
return Math.round(r.h) >= 60 && Math.round(r.h) <= 240 ? n = t ? Math.round(r.h) -
|
|
1604
|
+
return Math.round(r.h) >= 60 && Math.round(r.h) <= 240 ? n = t ? Math.round(r.h) - ke * e : Math.round(r.h) + ke * e : n = t ? Math.round(r.h) + ke * e : Math.round(r.h) - ke * e, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function $t(r, e, t) {
|
|
1607
1607
|
if (r.h === 0 && r.s === 0)
|
|
1608
1608
|
return r.s;
|
|
1609
1609
|
var n;
|
|
1610
|
-
return t ? n = r.s -
|
|
1610
|
+
return t ? n = r.s - Nt * e : e === Jt ? n = r.s + Nt : n = r.s + mn * e, n > 1 && (n = 1), t && e === Gt && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Math.round(n * 100) / 100;
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1612
|
+
function At(r, e, t) {
|
|
1613
1613
|
var n;
|
|
1614
|
-
return t ? n = r.v +
|
|
1615
|
-
}
|
|
1616
|
-
function
|
|
1617
|
-
for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = new
|
|
1618
|
-
var o = new
|
|
1619
|
-
h:
|
|
1620
|
-
s:
|
|
1621
|
-
v:
|
|
1614
|
+
return t ? n = r.v + bn * e : n = r.v - yn * e, n = Math.max(0, Math.min(1, n)), Math.round(n * 100) / 100;
|
|
1615
|
+
}
|
|
1616
|
+
function wn(r) {
|
|
1617
|
+
for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = new de(r), s = n.toHsv(), i = Gt; i > 0; i -= 1) {
|
|
1618
|
+
var o = new de({
|
|
1619
|
+
h: kt(s, i, !0),
|
|
1620
|
+
s: $t(s, i, !0),
|
|
1621
|
+
v: At(s, i, !0)
|
|
1622
1622
|
});
|
|
1623
1623
|
t.push(o);
|
|
1624
1624
|
}
|
|
1625
1625
|
t.push(n);
|
|
1626
|
-
for (var
|
|
1627
|
-
var u = new
|
|
1628
|
-
h:
|
|
1629
|
-
s:
|
|
1630
|
-
v:
|
|
1626
|
+
for (var c = 1; c <= Jt; c += 1) {
|
|
1627
|
+
var u = new de({
|
|
1628
|
+
h: kt(s, c),
|
|
1629
|
+
s: $t(s, c),
|
|
1630
|
+
v: At(s, c)
|
|
1631
1631
|
});
|
|
1632
1632
|
t.push(u);
|
|
1633
1633
|
}
|
|
1634
|
-
return e.theme === "dark" ?
|
|
1635
|
-
var
|
|
1636
|
-
return new
|
|
1637
|
-
}) : t.map(function(
|
|
1638
|
-
return
|
|
1634
|
+
return e.theme === "dark" ? xn.map(function(l) {
|
|
1635
|
+
var g = l.index, d = l.amount;
|
|
1636
|
+
return new de(e.backgroundColor || "#141414").mix(t[g], d).toHexString();
|
|
1637
|
+
}) : t.map(function(l) {
|
|
1638
|
+
return l.toHexString();
|
|
1639
1639
|
});
|
|
1640
1640
|
}
|
|
1641
|
-
var
|
|
1642
|
-
|
|
1643
|
-
function
|
|
1641
|
+
var Qe = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
|
|
1642
|
+
Qe.primary = Qe[5];
|
|
1643
|
+
function Dt(r, e) {
|
|
1644
1644
|
var t = Object.keys(r);
|
|
1645
1645
|
if (Object.getOwnPropertySymbols) {
|
|
1646
1646
|
var n = Object.getOwnPropertySymbols(r);
|
|
1647
|
-
e && (n = n.filter(function(
|
|
1648
|
-
return Object.getOwnPropertyDescriptor(r,
|
|
1647
|
+
e && (n = n.filter(function(s) {
|
|
1648
|
+
return Object.getOwnPropertyDescriptor(r, s).enumerable;
|
|
1649
1649
|
})), t.push.apply(t, n);
|
|
1650
1650
|
}
|
|
1651
1651
|
return t;
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1653
|
+
function te(r) {
|
|
1654
1654
|
for (var e = 1; e < arguments.length; e++) {
|
|
1655
1655
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1656
|
-
e % 2 ?
|
|
1657
|
-
|
|
1658
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) :
|
|
1656
|
+
e % 2 ? Dt(Object(t), !0).forEach(function(n) {
|
|
1657
|
+
F(r, n, t[n]);
|
|
1658
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Dt(Object(t)).forEach(function(n) {
|
|
1659
1659
|
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1660
1660
|
});
|
|
1661
1661
|
}
|
|
1662
1662
|
return r;
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function Sn() {
|
|
1665
1665
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function Cn(r, e) {
|
|
1668
1668
|
if (!r)
|
|
1669
1669
|
return !1;
|
|
1670
1670
|
if (r.contains)
|
|
@@ -1676,134 +1676,134 @@ function hn(r, e) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
return !1;
|
|
1678
1678
|
}
|
|
1679
|
-
var
|
|
1680
|
-
function
|
|
1679
|
+
var Mt = "data-rc-order", It = "data-rc-priority", Rn = "rc-util-key", et = /* @__PURE__ */ new Map();
|
|
1680
|
+
function Xt() {
|
|
1681
1681
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = r.mark;
|
|
1682
|
-
return e ? e.startsWith("data-") ? e : "data-".concat(e) :
|
|
1682
|
+
return e ? e.startsWith("data-") ? e : "data-".concat(e) : Rn;
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function nt(r) {
|
|
1685
1685
|
if (r.attachTo)
|
|
1686
1686
|
return r.attachTo;
|
|
1687
1687
|
var e = document.querySelector("head");
|
|
1688
1688
|
return e || document.body;
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1690
|
+
function _n(r) {
|
|
1691
1691
|
return r === "queue" ? "prependQueue" : r ? "prepend" : "append";
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1694
|
-
return Array.from((
|
|
1693
|
+
function at(r) {
|
|
1694
|
+
return Array.from((et.get(r) || r).children).filter(function(e) {
|
|
1695
1695
|
return e.tagName === "STYLE";
|
|
1696
1696
|
});
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function Qt(r) {
|
|
1699
1699
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1700
|
-
if (!
|
|
1700
|
+
if (!Sn())
|
|
1701
1701
|
return null;
|
|
1702
|
-
var t = e.csp, n = e.prepend,
|
|
1703
|
-
u.setAttribute(
|
|
1704
|
-
var
|
|
1702
|
+
var t = e.csp, n = e.prepend, s = e.priority, i = s === void 0 ? 0 : s, o = _n(n), c = o === "prependQueue", u = document.createElement("style");
|
|
1703
|
+
u.setAttribute(Mt, o), c && i && u.setAttribute(It, "".concat(i)), t != null && t.nonce && (u.nonce = t == null ? void 0 : t.nonce), u.innerHTML = r;
|
|
1704
|
+
var l = nt(e), g = l.firstChild;
|
|
1705
1705
|
if (n) {
|
|
1706
|
-
if (
|
|
1707
|
-
var
|
|
1708
|
-
if (!["prepend", "prependQueue"].includes(
|
|
1706
|
+
if (c) {
|
|
1707
|
+
var d = (e.styles || at(l)).filter(function(b) {
|
|
1708
|
+
if (!["prepend", "prependQueue"].includes(b.getAttribute(Mt)))
|
|
1709
1709
|
return !1;
|
|
1710
|
-
var
|
|
1711
|
-
return
|
|
1710
|
+
var j = Number(b.getAttribute(It) || 0);
|
|
1711
|
+
return i >= j;
|
|
1712
1712
|
});
|
|
1713
|
-
if (
|
|
1714
|
-
return
|
|
1713
|
+
if (d.length)
|
|
1714
|
+
return l.insertBefore(u, d[d.length - 1].nextSibling), u;
|
|
1715
1715
|
}
|
|
1716
|
-
|
|
1716
|
+
l.insertBefore(u, g);
|
|
1717
1717
|
} else
|
|
1718
|
-
|
|
1718
|
+
l.appendChild(u);
|
|
1719
1719
|
return u;
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1722
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t =
|
|
1723
|
-
return (e.styles ||
|
|
1724
|
-
return n.getAttribute(
|
|
1721
|
+
function En(r) {
|
|
1722
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = nt(e);
|
|
1723
|
+
return (e.styles || at(t)).find(function(n) {
|
|
1724
|
+
return n.getAttribute(Xt(e)) === r;
|
|
1725
1725
|
});
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1728
|
-
var t =
|
|
1729
|
-
if (!t || !
|
|
1730
|
-
var n =
|
|
1731
|
-
|
|
1727
|
+
function jn(r, e) {
|
|
1728
|
+
var t = et.get(r);
|
|
1729
|
+
if (!t || !Cn(document, t)) {
|
|
1730
|
+
var n = Qt("", e), s = n.parentNode;
|
|
1731
|
+
et.set(r, s), r.removeChild(n);
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1735
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n =
|
|
1736
|
-
styles:
|
|
1734
|
+
function On(r, e) {
|
|
1735
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = nt(t), s = at(n), i = te(te({}, t), {}, {
|
|
1736
|
+
styles: s
|
|
1737
1737
|
});
|
|
1738
|
-
|
|
1739
|
-
var o =
|
|
1738
|
+
jn(n, i);
|
|
1739
|
+
var o = En(e, i);
|
|
1740
1740
|
if (o) {
|
|
1741
|
-
var
|
|
1742
|
-
if ((
|
|
1743
|
-
var
|
|
1744
|
-
o.nonce = (
|
|
1741
|
+
var c, u;
|
|
1742
|
+
if ((c = i.csp) !== null && c !== void 0 && c.nonce && o.nonce !== ((u = i.csp) === null || u === void 0 ? void 0 : u.nonce)) {
|
|
1743
|
+
var l;
|
|
1744
|
+
o.nonce = (l = i.csp) === null || l === void 0 ? void 0 : l.nonce;
|
|
1745
1745
|
}
|
|
1746
1746
|
return o.innerHTML !== r && (o.innerHTML = r), o;
|
|
1747
1747
|
}
|
|
1748
|
-
var
|
|
1749
|
-
return
|
|
1748
|
+
var g = Qt(r, i);
|
|
1749
|
+
return g.setAttribute(Xt(i), e), g;
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1751
|
+
function er(r) {
|
|
1752
1752
|
var e;
|
|
1753
1753
|
return r == null || (e = r.getRootNode) === null || e === void 0 ? void 0 : e.call(r);
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1756
|
-
return
|
|
1755
|
+
function Pn(r) {
|
|
1756
|
+
return er(r) instanceof ShadowRoot;
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1759
|
-
return
|
|
1758
|
+
function Tn(r) {
|
|
1759
|
+
return Pn(r) ? er(r) : null;
|
|
1760
1760
|
}
|
|
1761
|
-
var
|
|
1762
|
-
|
|
1761
|
+
var tt = {}, st = [], Nn = function(e) {
|
|
1762
|
+
st.push(e);
|
|
1763
1763
|
};
|
|
1764
|
-
function
|
|
1764
|
+
function kn(r, e) {
|
|
1765
1765
|
if (process.env.NODE_ENV !== "production" && !r && console !== void 0) {
|
|
1766
|
-
var t =
|
|
1767
|
-
return
|
|
1766
|
+
var t = st.reduce(function(n, s) {
|
|
1767
|
+
return s(n ?? "", "warning");
|
|
1768
1768
|
}, e);
|
|
1769
1769
|
t && console.error("Warning: ".concat(t));
|
|
1770
1770
|
}
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function $n(r, e) {
|
|
1773
1773
|
if (process.env.NODE_ENV !== "production" && !r && console !== void 0) {
|
|
1774
|
-
var t =
|
|
1775
|
-
return
|
|
1774
|
+
var t = st.reduce(function(n, s) {
|
|
1775
|
+
return s(n ?? "", "note");
|
|
1776
1776
|
}, e);
|
|
1777
1777
|
t && console.warn("Note: ".concat(t));
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1781
|
-
|
|
1780
|
+
function An() {
|
|
1781
|
+
tt = {};
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1784
|
-
!e &&
|
|
1783
|
+
function tr(r, e, t) {
|
|
1784
|
+
!e && !tt[t] && (r(!1, t), tt[t] = !0);
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1787
|
-
|
|
1786
|
+
function Me(r, e) {
|
|
1787
|
+
tr(kn, r, e);
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1790
|
-
|
|
1789
|
+
function Dn(r, e) {
|
|
1790
|
+
tr($n, r, e);
|
|
1791
1791
|
}
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
function
|
|
1792
|
+
Me.preMessage = Nn;
|
|
1793
|
+
Me.resetWarned = An;
|
|
1794
|
+
Me.noteOnce = Dn;
|
|
1795
|
+
function Mn(r) {
|
|
1796
1796
|
return r.replace(/-(.)/g, function(e, t) {
|
|
1797
1797
|
return t.toUpperCase();
|
|
1798
1798
|
});
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1801
|
-
|
|
1800
|
+
function In(r, e) {
|
|
1801
|
+
Me(r, "[@ant-design/icons] ".concat(e));
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1804
|
-
return
|
|
1803
|
+
function Ht(r) {
|
|
1804
|
+
return le(r) === "object" && typeof r.name == "string" && typeof r.theme == "string" && (le(r.icon) === "object" || typeof r.icon == "function");
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function Yt() {
|
|
1807
1807
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1808
1808
|
return Object.keys(r).reduce(function(e, t) {
|
|
1809
1809
|
var n = r[t];
|
|
@@ -1812,29 +1812,29 @@ function Et() {
|
|
|
1812
1812
|
e.className = n, delete e.class;
|
|
1813
1813
|
break;
|
|
1814
1814
|
default:
|
|
1815
|
-
delete e[t], e[
|
|
1815
|
+
delete e[t], e[Mn(t)] = n;
|
|
1816
1816
|
}
|
|
1817
1817
|
return e;
|
|
1818
1818
|
}, {});
|
|
1819
1819
|
}
|
|
1820
|
-
function
|
|
1821
|
-
return t ? /* @__PURE__ */
|
|
1820
|
+
function rt(r, e, t) {
|
|
1821
|
+
return t ? /* @__PURE__ */ $e.createElement(r.tag, te(te({
|
|
1822
1822
|
key: e
|
|
1823
|
-
},
|
|
1824
|
-
return
|
|
1825
|
-
})) : /* @__PURE__ */
|
|
1823
|
+
}, Yt(r.attrs)), t), (r.children || []).map(function(n, s) {
|
|
1824
|
+
return rt(n, "".concat(e, "-").concat(r.tag, "-").concat(s));
|
|
1825
|
+
})) : /* @__PURE__ */ $e.createElement(r.tag, te({
|
|
1826
1826
|
key: e
|
|
1827
|
-
},
|
|
1828
|
-
return
|
|
1827
|
+
}, Yt(r.attrs)), (r.children || []).map(function(n, s) {
|
|
1828
|
+
return rt(n, "".concat(e, "-").concat(r.tag, "-").concat(s));
|
|
1829
1829
|
}));
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1832
|
-
return
|
|
1831
|
+
function rr(r) {
|
|
1832
|
+
return wn(r)[0];
|
|
1833
1833
|
}
|
|
1834
|
-
function
|
|
1834
|
+
function nr(r) {
|
|
1835
1835
|
return r ? Array.isArray(r) ? r : [r] : [];
|
|
1836
1836
|
}
|
|
1837
|
-
var
|
|
1837
|
+
var Hn = `
|
|
1838
1838
|
.anticon {
|
|
1839
1839
|
display: inline-flex;
|
|
1840
1840
|
align-items: center;
|
|
@@ -1889,108 +1889,128 @@ var On = `
|
|
|
1889
1889
|
transform: rotate(360deg);
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
|
-
`,
|
|
1893
|
-
var t =
|
|
1894
|
-
|
|
1892
|
+
`, Yn = function(e) {
|
|
1893
|
+
var t = Lt(Bt), n = t.csp, s = t.prefixCls, i = t.layer, o = Hn;
|
|
1894
|
+
s && (o = o.replace(/anticon/g, s)), i && (o = "@layer ".concat(i, ` {
|
|
1895
1895
|
`).concat(o, `
|
|
1896
|
-
}`)),
|
|
1897
|
-
var
|
|
1898
|
-
|
|
1899
|
-
prepend: !
|
|
1896
|
+
}`)), se(function() {
|
|
1897
|
+
var c = e.current, u = Tn(c);
|
|
1898
|
+
On(o, "@ant-design-icons", {
|
|
1899
|
+
prepend: !i,
|
|
1900
1900
|
csp: n,
|
|
1901
1901
|
attachTo: u
|
|
1902
1902
|
});
|
|
1903
1903
|
}, []);
|
|
1904
|
-
},
|
|
1904
|
+
}, zn = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], _e = {
|
|
1905
1905
|
primaryColor: "#333",
|
|
1906
1906
|
secondaryColor: "#E6E6E6",
|
|
1907
1907
|
calculated: !1
|
|
1908
1908
|
};
|
|
1909
|
-
function
|
|
1909
|
+
function Ln(r) {
|
|
1910
1910
|
var e = r.primaryColor, t = r.secondaryColor;
|
|
1911
|
-
|
|
1911
|
+
_e.primaryColor = e, _e.secondaryColor = t || rr(e), _e.calculated = !!t;
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1914
|
-
return
|
|
1913
|
+
function Vn() {
|
|
1914
|
+
return te({}, _e);
|
|
1915
1915
|
}
|
|
1916
|
-
var
|
|
1917
|
-
var t = e.icon, n = e.className,
|
|
1918
|
-
if (o && (
|
|
1916
|
+
var Ie = function(e) {
|
|
1917
|
+
var t = e.icon, n = e.className, s = e.onClick, i = e.style, o = e.primaryColor, c = e.secondaryColor, u = qt(e, zn), l = U.useRef(), g = _e;
|
|
1918
|
+
if (o && (g = {
|
|
1919
1919
|
primaryColor: o,
|
|
1920
|
-
secondaryColor:
|
|
1921
|
-
}),
|
|
1920
|
+
secondaryColor: c || rr(o)
|
|
1921
|
+
}), Yn(l), In(Ht(t), "icon should be icon definiton, but got ".concat(t)), !Ht(t))
|
|
1922
1922
|
return null;
|
|
1923
|
-
var
|
|
1924
|
-
return
|
|
1925
|
-
icon:
|
|
1926
|
-
})),
|
|
1923
|
+
var d = t;
|
|
1924
|
+
return d && typeof d.icon == "function" && (d = te(te({}, d), {}, {
|
|
1925
|
+
icon: d.icon(g.primaryColor, g.secondaryColor)
|
|
1926
|
+
})), rt(d.icon, "svg-".concat(d.name), te(te({
|
|
1927
1927
|
className: n,
|
|
1928
|
-
onClick:
|
|
1929
|
-
style:
|
|
1930
|
-
"data-icon":
|
|
1928
|
+
onClick: s,
|
|
1929
|
+
style: i,
|
|
1930
|
+
"data-icon": d.name,
|
|
1931
1931
|
width: "1em",
|
|
1932
1932
|
height: "1em",
|
|
1933
1933
|
fill: "currentColor",
|
|
1934
1934
|
"aria-hidden": "true"
|
|
1935
1935
|
}, u), {}, {
|
|
1936
|
-
ref:
|
|
1936
|
+
ref: l
|
|
1937
1937
|
}));
|
|
1938
1938
|
};
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
const
|
|
1943
|
-
function
|
|
1944
|
-
var e =
|
|
1945
|
-
return
|
|
1939
|
+
Ie.displayName = "IconReact";
|
|
1940
|
+
Ie.getTwoToneColors = Vn;
|
|
1941
|
+
Ie.setTwoToneColors = Ln;
|
|
1942
|
+
const it = Ie;
|
|
1943
|
+
function ar(r) {
|
|
1944
|
+
var e = nr(r), t = Zt(e, 2), n = t[0], s = t[1];
|
|
1945
|
+
return it.setTwoToneColors({
|
|
1946
1946
|
primaryColor: n,
|
|
1947
|
-
secondaryColor:
|
|
1947
|
+
secondaryColor: s
|
|
1948
1948
|
});
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1951
|
-
var r =
|
|
1950
|
+
function Fn() {
|
|
1951
|
+
var r = it.getTwoToneColors();
|
|
1952
1952
|
return r.calculated ? [r.primaryColor, r.secondaryColor] : r.primaryColor;
|
|
1953
1953
|
}
|
|
1954
|
-
var
|
|
1955
|
-
|
|
1956
|
-
var
|
|
1957
|
-
var t = r.className, n = r.icon,
|
|
1958
|
-
|
|
1959
|
-
var
|
|
1960
|
-
msTransform: "rotate(".concat(
|
|
1961
|
-
transform: "rotate(".concat(
|
|
1962
|
-
} : void 0,
|
|
1963
|
-
return /* @__PURE__ */
|
|
1954
|
+
var Un = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
1955
|
+
ar(Qe.primary);
|
|
1956
|
+
var He = /* @__PURE__ */ U.forwardRef(function(r, e) {
|
|
1957
|
+
var t = r.className, n = r.icon, s = r.spin, i = r.rotate, o = r.tabIndex, c = r.onClick, u = r.twoToneColor, l = qt(r, Un), g = U.useContext(Bt), d = g.prefixCls, b = d === void 0 ? "anticon" : d, j = g.rootClassName, T = vn(j, b, F(F({}, "".concat(b, "-").concat(n.name), !!n.name), "".concat(b, "-spin"), !!s || n.name === "loading"), t), N = o;
|
|
1958
|
+
N === void 0 && c && (N = -1);
|
|
1959
|
+
var Y = i ? {
|
|
1960
|
+
msTransform: "rotate(".concat(i, "deg)"),
|
|
1961
|
+
transform: "rotate(".concat(i, "deg)")
|
|
1962
|
+
} : void 0, O = nr(u), y = Zt(O, 2), E = y[0], M = y[1];
|
|
1963
|
+
return /* @__PURE__ */ U.createElement("span", ge({
|
|
1964
1964
|
role: "img",
|
|
1965
1965
|
"aria-label": n.name
|
|
1966
|
-
},
|
|
1966
|
+
}, l, {
|
|
1967
1967
|
ref: e,
|
|
1968
|
-
tabIndex:
|
|
1969
|
-
onClick:
|
|
1970
|
-
className:
|
|
1971
|
-
}), /* @__PURE__ */
|
|
1968
|
+
tabIndex: N,
|
|
1969
|
+
onClick: c,
|
|
1970
|
+
className: T
|
|
1971
|
+
}), /* @__PURE__ */ U.createElement(it, {
|
|
1972
1972
|
icon: n,
|
|
1973
|
-
primaryColor:
|
|
1974
|
-
secondaryColor:
|
|
1975
|
-
style:
|
|
1973
|
+
primaryColor: E,
|
|
1974
|
+
secondaryColor: M,
|
|
1975
|
+
style: Y
|
|
1976
1976
|
}));
|
|
1977
1977
|
});
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
const
|
|
1982
|
-
var
|
|
1983
|
-
const
|
|
1984
|
-
var
|
|
1985
|
-
return /* @__PURE__ */
|
|
1978
|
+
He.displayName = "AntdIcon";
|
|
1979
|
+
He.getTwoToneColor = Fn;
|
|
1980
|
+
He.setTwoToneColor = ar;
|
|
1981
|
+
const ot = He;
|
|
1982
|
+
var Wn = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, name: "caret-down", theme: "outlined" };
|
|
1983
|
+
const Bn = Wn;
|
|
1984
|
+
var Zn = function(e, t) {
|
|
1985
|
+
return /* @__PURE__ */ U.createElement(ot, ge({}, e, {
|
|
1986
|
+
ref: t,
|
|
1987
|
+
icon: Bn
|
|
1988
|
+
}));
|
|
1989
|
+
}, sr = /* @__PURE__ */ U.forwardRef(Zn);
|
|
1990
|
+
process.env.NODE_ENV !== "production" && (sr.displayName = "CaretDownOutlined");
|
|
1991
|
+
const qn = sr;
|
|
1992
|
+
var Kn = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" } }] }, name: "caret-up", theme: "outlined" };
|
|
1993
|
+
const Gn = Kn;
|
|
1994
|
+
var Jn = function(e, t) {
|
|
1995
|
+
return /* @__PURE__ */ U.createElement(ot, ge({}, e, {
|
|
1996
|
+
ref: t,
|
|
1997
|
+
icon: Gn
|
|
1998
|
+
}));
|
|
1999
|
+
}, ir = /* @__PURE__ */ U.forwardRef(Jn);
|
|
2000
|
+
process.env.NODE_ENV !== "production" && (ir.displayName = "CaretUpOutlined");
|
|
2001
|
+
const Xn = ir;
|
|
2002
|
+
var Qn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, name: "upload", theme: "outlined" };
|
|
2003
|
+
const ea = Qn;
|
|
2004
|
+
var ta = function(e, t) {
|
|
2005
|
+
return /* @__PURE__ */ U.createElement(ot, ge({}, e, {
|
|
1986
2006
|
ref: t,
|
|
1987
|
-
icon:
|
|
2007
|
+
icon: ea
|
|
1988
2008
|
}));
|
|
1989
|
-
},
|
|
1990
|
-
process.env.NODE_ENV !== "production" && (
|
|
1991
|
-
const
|
|
1992
|
-
var
|
|
1993
|
-
const { RangePicker:
|
|
2009
|
+
}, or = /* @__PURE__ */ U.forwardRef(ta);
|
|
2010
|
+
process.env.NODE_ENV !== "production" && (or.displayName = "UploadOutlined");
|
|
2011
|
+
const ra = or;
|
|
2012
|
+
var q = /* @__PURE__ */ ((r) => (r.Input = "input", r.InputNumber = "inputNumber", r.Text = "text", r.Password = "password", r.Radio = "radio", r.Select = "select", r.Checkbox = "checkbox", r.DatePicker = "datePicker", r.RangePicker = "rangePicker", r.Upload = "upload", r.Mentions = "mentions", r.Cascader = "cascader", r.TreeSelect = "treeSelect", r))(q || {});
|
|
2013
|
+
const { RangePicker: na } = Ft, R = class R {
|
|
1994
2014
|
static getDefaultArrayPlaceholder(e) {
|
|
1995
2015
|
let t;
|
|
1996
2016
|
switch (e.type) {
|
|
@@ -2003,21 +2023,21 @@ const { RangePicker: Vn } = Tt, C = class C {
|
|
|
2003
2023
|
static getDefaultPlaceholder(e) {
|
|
2004
2024
|
let t;
|
|
2005
2025
|
switch (e.type) {
|
|
2006
|
-
case
|
|
2007
|
-
case
|
|
2008
|
-
case
|
|
2009
|
-
case
|
|
2010
|
-
case
|
|
2026
|
+
case q.Input:
|
|
2027
|
+
case q.Password:
|
|
2028
|
+
case q.InputNumber:
|
|
2029
|
+
case q.Text:
|
|
2030
|
+
case q.Mentions:
|
|
2011
2031
|
t = `请输入${e.label}`;
|
|
2012
2032
|
break;
|
|
2013
|
-
case
|
|
2014
|
-
case
|
|
2015
|
-
case
|
|
2016
|
-
case
|
|
2017
|
-
case
|
|
2018
|
-
case
|
|
2019
|
-
case
|
|
2020
|
-
case
|
|
2033
|
+
case q.Select:
|
|
2034
|
+
case q.Checkbox:
|
|
2035
|
+
case q.Radio:
|
|
2036
|
+
case q.DatePicker:
|
|
2037
|
+
case q.RangePicker:
|
|
2038
|
+
case q.Cascader:
|
|
2039
|
+
case q.Upload:
|
|
2040
|
+
case q.TreeSelect:
|
|
2021
2041
|
t = `请选择${e.label}`;
|
|
2022
2042
|
break;
|
|
2023
2043
|
}
|
|
@@ -2027,133 +2047,195 @@ const { RangePicker: Vn } = Tt, C = class C {
|
|
|
2027
2047
|
// return <Slider {...item.props} />;
|
|
2028
2048
|
// };
|
|
2029
2049
|
};
|
|
2030
|
-
|
|
2031
|
-
|
|
2050
|
+
v(R, "labelCol", { span: 7 }), v(R, "wrapperCol", { span: 17 }), v(R, "defaultRowGutter", 24), v(R, "input", (e) => /* @__PURE__ */ p.jsx(
|
|
2051
|
+
qe,
|
|
2032
2052
|
{
|
|
2033
2053
|
disabled: e.disabled,
|
|
2034
2054
|
maxLength: e.maxLength,
|
|
2035
2055
|
...e.props,
|
|
2036
|
-
placeholder: e.placeholder ||
|
|
2056
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2037
2057
|
}
|
|
2038
|
-
)),
|
|
2039
|
-
|
|
2058
|
+
)), v(R, "password", (e) => /* @__PURE__ */ p.jsx(
|
|
2059
|
+
qe.Password,
|
|
2040
2060
|
{
|
|
2041
2061
|
disabled: e.disabled,
|
|
2042
2062
|
...e.props,
|
|
2043
|
-
placeholder: e.placeholder ||
|
|
2063
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2044
2064
|
}
|
|
2045
|
-
)),
|
|
2046
|
-
|
|
2065
|
+
)), v(R, "text", (e) => /* @__PURE__ */ p.jsx(
|
|
2066
|
+
qe.TextArea,
|
|
2047
2067
|
{
|
|
2048
2068
|
disabled: e.disabled,
|
|
2049
2069
|
maxLength: e.maxLength,
|
|
2050
2070
|
...e.props,
|
|
2051
|
-
placeholder: e.placeholder ||
|
|
2071
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2052
2072
|
}
|
|
2053
|
-
)),
|
|
2054
|
-
|
|
2073
|
+
)), v(R, "inputNumber", (e) => /* @__PURE__ */ p.jsx(
|
|
2074
|
+
Lr,
|
|
2055
2075
|
{
|
|
2056
2076
|
disabled: e.disabled,
|
|
2057
2077
|
maxLength: e.maxLength,
|
|
2058
2078
|
...e.props,
|
|
2059
|
-
placeholder: e.placeholder ||
|
|
2079
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2060
2080
|
}
|
|
2061
|
-
)),
|
|
2062
|
-
|
|
2081
|
+
)), v(R, "datePicker", (e) => /* @__PURE__ */ p.jsx(
|
|
2082
|
+
Ft,
|
|
2063
2083
|
{
|
|
2064
2084
|
disabled: e.disabled,
|
|
2065
2085
|
...e.props,
|
|
2066
|
-
placeholder: e.placeholder ||
|
|
2086
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2067
2087
|
}
|
|
2068
|
-
)),
|
|
2069
|
-
|
|
2088
|
+
)), v(R, "rangePicker", (e) => /* @__PURE__ */ p.jsx(
|
|
2089
|
+
na,
|
|
2070
2090
|
{
|
|
2071
2091
|
disabled: e.disabled,
|
|
2072
2092
|
...e.props,
|
|
2073
|
-
placeholder: e.placeholder ||
|
|
2093
|
+
placeholder: e.placeholder || R.getDefaultArrayPlaceholder(e)
|
|
2074
2094
|
}
|
|
2075
|
-
)),
|
|
2076
|
-
|
|
2095
|
+
)), v(R, "select", (e) => /* @__PURE__ */ p.jsx(
|
|
2096
|
+
Vr,
|
|
2077
2097
|
{
|
|
2078
2098
|
...e.props,
|
|
2079
2099
|
disabled: e.disabled,
|
|
2080
|
-
placeholder: e.placeholder ||
|
|
2100
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2081
2101
|
}
|
|
2082
|
-
)),
|
|
2083
|
-
/* @__PURE__ */
|
|
2102
|
+
)), v(R, "radio", (e) => /* @__PURE__ */ p.jsx(Fr.Group, { disabled: e.disabled, ...e.props })), v(R, "checkbox", (e) => /* @__PURE__ */ p.jsx(Ur.Group, { disabled: e.disabled, ...e.props })), v(R, "upload", (e) => /* @__PURE__ */ p.jsx(Wr, { defaultFileList: e.initialValue, ...e.props, children: e.children || /* @__PURE__ */ p.jsxs(Re, { children: [
|
|
2103
|
+
/* @__PURE__ */ p.jsx(ra, {}),
|
|
2084
2104
|
" 点击上传"
|
|
2085
|
-
] }) })),
|
|
2086
|
-
|
|
2105
|
+
] }) })), v(R, "mentions", (e) => /* @__PURE__ */ p.jsx(
|
|
2106
|
+
Br,
|
|
2087
2107
|
{
|
|
2088
2108
|
...e.props,
|
|
2089
|
-
placeholder: e.placeholder ||
|
|
2109
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2090
2110
|
}
|
|
2091
|
-
)),
|
|
2092
|
-
|
|
2111
|
+
)), v(R, "cascader", (e) => /* @__PURE__ */ p.jsx(
|
|
2112
|
+
Zr,
|
|
2093
2113
|
{
|
|
2094
2114
|
...e.props,
|
|
2095
|
-
placeholder: e.placeholder ||
|
|
2115
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2096
2116
|
}
|
|
2097
|
-
)),
|
|
2098
|
-
|
|
2117
|
+
)), v(R, "treeSelect", (e) => /* @__PURE__ */ p.jsx(
|
|
2118
|
+
qr,
|
|
2099
2119
|
{
|
|
2100
2120
|
...e.props,
|
|
2101
|
-
placeholder: e.placeholder ||
|
|
2121
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2102
2122
|
}
|
|
2103
2123
|
));
|
|
2104
|
-
let
|
|
2105
|
-
const
|
|
2106
|
-
function
|
|
2107
|
-
const { formProps: e, formItems: t = [], column: n = 1, form:
|
|
2108
|
-
if (
|
|
2109
|
-
return
|
|
2110
|
-
const
|
|
2111
|
-
return
|
|
2112
|
-
}, u = (
|
|
2113
|
-
const { show:
|
|
2114
|
-
if (!
|
|
2124
|
+
let he = R;
|
|
2125
|
+
const Ge = (r = "") => De("m-form", r);
|
|
2126
|
+
function cr(r) {
|
|
2127
|
+
const { formProps: e, formItems: t = [], column: n = 1, form: s, itemLayout: i, formRowProps: o } = r, c = (l, g) => {
|
|
2128
|
+
if (l.render)
|
|
2129
|
+
return l.render(g);
|
|
2130
|
+
const d = he[l.type];
|
|
2131
|
+
return l && l.type && d ? d(l) : /* @__PURE__ */ p.jsx("div", { className: "error-message", children: "Invalid form item configuration" });
|
|
2132
|
+
}, u = (l) => {
|
|
2133
|
+
const { show: g = !0 } = l;
|
|
2134
|
+
if (!g)
|
|
2115
2135
|
return null;
|
|
2116
|
-
const
|
|
2117
|
-
|
|
2118
|
-
const
|
|
2119
|
-
labelCol:
|
|
2120
|
-
wrapperCol:
|
|
2121
|
-
...
|
|
2122
|
-
...
|
|
2136
|
+
const d = [...l.rules || []];
|
|
2137
|
+
l.required && d.push({ required: !0, message: l.required });
|
|
2138
|
+
const b = {
|
|
2139
|
+
labelCol: he.labelCol,
|
|
2140
|
+
wrapperCol: he.wrapperCol,
|
|
2141
|
+
...i,
|
|
2142
|
+
...l.itemLayout
|
|
2123
2143
|
};
|
|
2124
|
-
return /* @__PURE__ */
|
|
2125
|
-
|
|
2144
|
+
return /* @__PURE__ */ p.jsx(Gr, { span: l.span || 24 / n, children: /* @__PURE__ */ p.jsx("div", { className: Ge("item-wrapper"), children: /* @__PURE__ */ p.jsx(
|
|
2145
|
+
Je.Item,
|
|
2126
2146
|
{
|
|
2127
|
-
label:
|
|
2128
|
-
name:
|
|
2129
|
-
rules:
|
|
2130
|
-
initialValue:
|
|
2131
|
-
...
|
|
2132
|
-
...
|
|
2133
|
-
children: l
|
|
2147
|
+
label: l.label,
|
|
2148
|
+
name: l.id,
|
|
2149
|
+
rules: d,
|
|
2150
|
+
initialValue: l.initialValue,
|
|
2151
|
+
...b,
|
|
2152
|
+
...l.formItemProps,
|
|
2153
|
+
children: c(l, s)
|
|
2134
2154
|
}
|
|
2135
|
-
) }) }, `col-${
|
|
2155
|
+
) }) }, `col-${l.id}`);
|
|
2136
2156
|
};
|
|
2137
|
-
return /* @__PURE__ */
|
|
2138
|
-
|
|
2157
|
+
return /* @__PURE__ */ p.jsx(pe, { children: /* @__PURE__ */ p.jsx(Je, { form: s, ...e, className: `${Ge()} ${e == null ? void 0 : e.className}`, children: /* @__PURE__ */ p.jsx(
|
|
2158
|
+
Kr,
|
|
2139
2159
|
{
|
|
2140
|
-
gutter:
|
|
2160
|
+
gutter: he.defaultRowGutter,
|
|
2141
2161
|
...o,
|
|
2142
|
-
className: `${
|
|
2143
|
-
children: t.map((
|
|
2162
|
+
className: `${Ge("grid")} ${o == null ? void 0 : o.className}`,
|
|
2163
|
+
children: t.map((l) => u(l))
|
|
2144
2164
|
}
|
|
2145
2165
|
) }) });
|
|
2146
2166
|
}
|
|
2147
|
-
|
|
2148
|
-
|
|
2167
|
+
cr.displayName = "MForm";
|
|
2168
|
+
const aa = 13, ne = (r = "") => De("m-search", r), ma = (r) => {
|
|
2169
|
+
const {
|
|
2170
|
+
className: e,
|
|
2171
|
+
searchItems: t = [],
|
|
2172
|
+
onSearch: n,
|
|
2173
|
+
defaultShowAll: s = !1,
|
|
2174
|
+
customButtons: i = [],
|
|
2175
|
+
form: o
|
|
2176
|
+
} = r, [c, u] = H(s), [l] = Je.useForm(), g = K(null), d = o ?? l, b = (y) => {
|
|
2177
|
+
const { keyCode: E } = y;
|
|
2178
|
+
E === aa && T();
|
|
2179
|
+
};
|
|
2180
|
+
se(() => {
|
|
2181
|
+
const y = g.current;
|
|
2182
|
+
return y == null || y.addEventListener("keydown", b), () => {
|
|
2183
|
+
y == null || y.removeEventListener("keydown", b);
|
|
2184
|
+
};
|
|
2185
|
+
}, []);
|
|
2186
|
+
const j = () => {
|
|
2187
|
+
d == null || d.resetFields(), T(!0);
|
|
2188
|
+
}, T = (y = !1) => {
|
|
2189
|
+
d == null || d.validateFields().then((E) => {
|
|
2190
|
+
rn(E), n == null || n(E, y);
|
|
2191
|
+
});
|
|
2192
|
+
}, N = () => {
|
|
2193
|
+
const y = t.length > 2;
|
|
2194
|
+
return /* @__PURE__ */ p.jsxs("div", { className: ne("btn-wrapper"), children: [
|
|
2195
|
+
(i == null ? void 0 : i.length) > 0 ? /* @__PURE__ */ p.jsx(p.Fragment, { children: i.map((E, M) => /* @__PURE__ */ p.jsx(Re, { className: ne("btn"), ...E, children: E.children }, `custom-btn-${M}`)) }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
2196
|
+
/* @__PURE__ */ p.jsx(Re, { className: ne("btn btn-reset"), onClick: j, children: "重置" }),
|
|
2197
|
+
/* @__PURE__ */ p.jsx(Re, { className: ne("btn btn-search"), onClick: () => T(), type: "primary", children: "搜索" })
|
|
2198
|
+
] }),
|
|
2199
|
+
y && /* @__PURE__ */ p.jsxs("div", { className: ne("btn btn-collapse"), onClick: () => u(!c), children: [
|
|
2200
|
+
/* @__PURE__ */ p.jsx("span", { children: c ? "收起" : "展开" }),
|
|
2201
|
+
c ? /* @__PURE__ */ p.jsx(Xn, {}) : /* @__PURE__ */ p.jsx(qn, {})
|
|
2202
|
+
] })
|
|
2203
|
+
] });
|
|
2204
|
+
}, Y = t.map((y, E) => {
|
|
2205
|
+
var W;
|
|
2206
|
+
const M = { ...y };
|
|
2207
|
+
return t.length > 2 && E >= 2 && !c && (M.formItemProps = {
|
|
2208
|
+
...y.formItemProps,
|
|
2209
|
+
style: {
|
|
2210
|
+
...(W = y.formItemProps) == null ? void 0 : W.style,
|
|
2211
|
+
display: "none"
|
|
2212
|
+
}
|
|
2213
|
+
}), M;
|
|
2214
|
+
}), O = t.length > 2;
|
|
2215
|
+
return /* @__PURE__ */ p.jsx(pe, { children: /* @__PURE__ */ p.jsx(
|
|
2216
|
+
"div",
|
|
2217
|
+
{
|
|
2218
|
+
className: `${ne("")} ${c ? "" : ne("collapsed")} ${e || ""}`,
|
|
2219
|
+
ref: g,
|
|
2220
|
+
children: /* @__PURE__ */ p.jsxs(Vt, { children: [
|
|
2221
|
+
/* @__PURE__ */ p.jsxs("div", { className: ne("form"), children: [
|
|
2222
|
+
/* @__PURE__ */ p.jsx(cr, { form: d, formItems: Y, column: 3 }),
|
|
2223
|
+
(!O || O && !c) && N()
|
|
2224
|
+
] }),
|
|
2225
|
+
O && c && /* @__PURE__ */ p.jsx("div", { className: ne("footer"), children: N() })
|
|
2226
|
+
] })
|
|
2227
|
+
}
|
|
2228
|
+
) });
|
|
2229
|
+
};
|
|
2230
|
+
function ba(r) {
|
|
2149
2231
|
var t;
|
|
2150
2232
|
const e = ((t = r.columns) == null ? void 0 : t.map((n) => ({ ...n, dataIndex: n.key }))) ?? [];
|
|
2151
|
-
return /* @__PURE__ */
|
|
2152
|
-
/* @__PURE__ */
|
|
2233
|
+
return /* @__PURE__ */ p.jsxs(pe, { children: [
|
|
2234
|
+
/* @__PURE__ */ p.jsx(Jr, { rowKey: (n) => n.id, ...r, columns: e }),
|
|
2153
2235
|
";"
|
|
2154
2236
|
] });
|
|
2155
2237
|
}
|
|
2156
|
-
const
|
|
2238
|
+
const ya = {
|
|
2157
2239
|
YMD_Hms: "YYYY-MM-DD HH:mm:ss",
|
|
2158
2240
|
YMD: "YYYY-MM-DD",
|
|
2159
2241
|
YMD2: "YYYYMMDD",
|
|
@@ -2163,54 +2245,273 @@ const ra = {
|
|
|
2163
2245
|
YMD_000: "YYYY-MM-DD 00:00:00",
|
|
2164
2246
|
YMD_end: "YYYY-MM-DD 23:59:59",
|
|
2165
2247
|
YMD_Hm: "YYYYMMDD HHmm"
|
|
2166
|
-
},
|
|
2167
|
-
class
|
|
2248
|
+
}, sa = 10;
|
|
2249
|
+
class P {
|
|
2168
2250
|
}
|
|
2169
2251
|
// 整数
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2252
|
+
v(P, "integerRegex", /^-?\d+$/), // 正整数
|
|
2253
|
+
v(P, "positiveIntegerRegex", /^[1-9]\d*$/), // 负整数
|
|
2254
|
+
v(P, "negativeIntegerRegex", /^-[1-9]\d*$/), // 浮点数
|
|
2255
|
+
v(P, "floatRegex", /^-?\d+(\.\d+)?$/), // 字母
|
|
2256
|
+
v(P, "letter", /^[a-zA-Z]+$/), // 汉字
|
|
2257
|
+
v(P, "chinese", /^[\u4e00-\u9fa5]+$/), // 数字
|
|
2258
|
+
v(P, "number", /^[0-9]*$/), // 用户名 字母开头,允许字母数字下划线,长度4-16
|
|
2259
|
+
v(P, "username", /^[a-zA-Z]\w{3,15}$/), // 强用户名 必须包含大小写字母和数字,6-20位
|
|
2260
|
+
v(P, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), // 密码 至少8位,包含字母和数字
|
|
2261
|
+
v(P, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), // 强密码 至少8位,包含大小写字母、数字和特殊字符
|
|
2262
|
+
v(P, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), // 中国大陆的手机号
|
|
2263
|
+
v(P, "phone", /^1[3-9]\d{9}$/), // 带区号的手机号
|
|
2264
|
+
v(P, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), // 邮箱
|
|
2265
|
+
v(P, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), // 身份证
|
|
2266
|
+
v(P, "idCard", /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/), // 银行卡
|
|
2267
|
+
v(P, "bankCard", /^[1-9]\d{3,30}$/), // 邮政编码
|
|
2268
|
+
v(P, "zipCode", /^[1-9]\d{5}$/), // IP
|
|
2269
|
+
v(P, "ip", /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/), // URL
|
|
2270
|
+
v(P, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), // 车牌
|
|
2271
|
+
v(P, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), // 时间 hh:mm:ss
|
|
2272
|
+
v(P, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), // 日期 YYYY-MM-DD
|
|
2273
|
+
v(P, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
|
|
2274
|
+
function xa(r, e) {
|
|
2275
|
+
const [t, n] = H(!1), [s, i] = H(null), [o, c] = H(null), u = K(void 0), l = K(0), g = () => {
|
|
2276
|
+
var b;
|
|
2277
|
+
(b = u.current) == null || b.abort(), n(!1), i(null);
|
|
2278
|
+
}, d = async (...b) => {
|
|
2279
|
+
var N, Y, O, y;
|
|
2280
|
+
const j = ++l.current;
|
|
2281
|
+
g();
|
|
2282
|
+
const T = new AbortController();
|
|
2283
|
+
u.current = T;
|
|
2284
|
+
try {
|
|
2285
|
+
if (n(!0), i(null), e != null && e.onBefore && !await ((N = e == null ? void 0 : e.onBefore) == null ? void 0 : N.call(e, ...b))) {
|
|
2286
|
+
g();
|
|
2287
|
+
return;
|
|
2288
|
+
}
|
|
2289
|
+
const E = b.length >= r.length ? b : [...b, { signal: T.signal }], M = await r(...E);
|
|
2290
|
+
return !T.signal.aborted && j === l.current && (c(M), await ((Y = e == null ? void 0 : e.onSuccess) == null ? void 0 : Y.call(e, M))), M;
|
|
2291
|
+
} catch (E) {
|
|
2292
|
+
throw !T.signal.aborted && j === l.current && (i(E), await ((O = e == null ? void 0 : e.onError) == null ? void 0 : O.call(e, E))), E;
|
|
2293
|
+
} finally {
|
|
2294
|
+
!T.signal.aborted && j === l.current && (n(!1), await ((y = e == null ? void 0 : e.onFinally) == null ? void 0 : y.call(e)));
|
|
2295
|
+
}
|
|
2296
|
+
};
|
|
2297
|
+
return se(() => (e != null && e.autoRunArgs && d(...e.autoRunArgs).catch(() => {
|
|
2298
|
+
}), g), [JSON.stringify(e == null ? void 0 : e.autoRunArgs)]), { run: d, cancel: g, loading: t, error: s, data: o };
|
|
2299
|
+
}
|
|
2300
|
+
function wa(r, e, t = !1) {
|
|
2301
|
+
const n = K(void 0), s = K(r);
|
|
2302
|
+
se(() => {
|
|
2303
|
+
s.current = r;
|
|
2304
|
+
}, [r]);
|
|
2305
|
+
const i = ae(() => {
|
|
2306
|
+
n.current && (clearInterval(n.current), n.current = void 0);
|
|
2307
|
+
}, []), o = ae(() => {
|
|
2308
|
+
i(), e != null && (n.current = setInterval(() => s.current(), e));
|
|
2309
|
+
}, [e, i]);
|
|
2310
|
+
return se(() => (t && s.current(), o(), i), [e, o, i, t]), { start: o, clear: i, isRunning: !!n.current };
|
|
2311
|
+
}
|
|
2312
|
+
const Sa = (r, e, t) => {
|
|
2313
|
+
const {
|
|
2314
|
+
isReady: n = !0,
|
|
2315
|
+
dataSource: s = [],
|
|
2316
|
+
current: i = 1,
|
|
2317
|
+
pageSize: o = 10
|
|
2318
|
+
} = t || {}, [c, u] = H(i), [l, g] = H(o), [d, b] = H(s), [j, T] = H(0), [N, Y] = H(!1), [O, y] = H(!1), E = K(c), M = K(l), W = (C) => {
|
|
2319
|
+
u(C), E.current = C;
|
|
2320
|
+
}, re = (C) => {
|
|
2321
|
+
g(C), M.current = C;
|
|
2322
|
+
}, G = K(0), ve = async () => {
|
|
2323
|
+
if (!n)
|
|
2324
|
+
return;
|
|
2325
|
+
let C = E.current, D = M.current;
|
|
2326
|
+
Y(!0), G.current++;
|
|
2327
|
+
const Q = G.current;
|
|
2328
|
+
try {
|
|
2329
|
+
let B = Math.round((C - 1) * D);
|
|
2330
|
+
B < 0 && (B = 0), D < 1 && (D = 1);
|
|
2331
|
+
let { dataSource: oe, total: ee } = await r({
|
|
2332
|
+
limit: D,
|
|
2333
|
+
offset: B,
|
|
2334
|
+
current: C
|
|
2335
|
+
});
|
|
2336
|
+
if (Q !== G.current)
|
|
2337
|
+
return;
|
|
2338
|
+
if (l * (C - 1) >= ee && C !== 1) {
|
|
2339
|
+
C = 1;
|
|
2340
|
+
const je = Math.ceil(ee / l);
|
|
2341
|
+
if ({ dataSource: oe, total: ee } = await r({
|
|
2342
|
+
limit: D,
|
|
2343
|
+
offset: B,
|
|
2344
|
+
current: C
|
|
2345
|
+
}), Q !== G.current)
|
|
2346
|
+
return;
|
|
2347
|
+
C = je;
|
|
2348
|
+
}
|
|
2349
|
+
b(oe), W(C), re(D), T(ee);
|
|
2350
|
+
} catch (B) {
|
|
2351
|
+
if (console.error("fetch err", B), Q !== G.current)
|
|
2352
|
+
return;
|
|
2353
|
+
} finally {
|
|
2354
|
+
y(!0), Y(!1);
|
|
2355
|
+
}
|
|
2356
|
+
}, J = async (C) => {
|
|
2357
|
+
C && (b([]), W(i), re(o)), await ve();
|
|
2358
|
+
}, ie = ae(Ut(J, 500), [J]), me = [...e || [], n];
|
|
2359
|
+
return se(() => {
|
|
2360
|
+
n && ie(!0);
|
|
2361
|
+
}, me), {
|
|
2362
|
+
tableProps: {
|
|
2363
|
+
loading: N,
|
|
2364
|
+
dataSource: d
|
|
2365
|
+
},
|
|
2366
|
+
loading: N,
|
|
2367
|
+
dataSource: d,
|
|
2368
|
+
paginationProps: {
|
|
2369
|
+
current: c,
|
|
2370
|
+
pageSize: l,
|
|
2371
|
+
total: j,
|
|
2372
|
+
onChange: async (C, D) => {
|
|
2373
|
+
W(C), re(D), await J();
|
|
2374
|
+
},
|
|
2375
|
+
onShowSizeChange: async (C, D) => {
|
|
2376
|
+
re(C), W(D), await J();
|
|
2377
|
+
}
|
|
2378
|
+
},
|
|
2379
|
+
isFirstComplete: O,
|
|
2380
|
+
refresh: J,
|
|
2381
|
+
debounceRefresh: ie,
|
|
2382
|
+
setDataSource: b
|
|
2383
|
+
};
|
|
2384
|
+
};
|
|
2385
|
+
function Ca() {
|
|
2386
|
+
const r = window.location.href.split("?")[1] || "", e = new URLSearchParams(r);
|
|
2387
|
+
return Object.fromEntries(e.entries());
|
|
2388
|
+
}
|
|
2389
|
+
const Ra = (r) => {
|
|
2390
|
+
const [e, t] = H(r), n = K(e), s = ae((c) => {
|
|
2391
|
+
t((u) => {
|
|
2392
|
+
const l = typeof c == "function" ? c(u) : c, g = { ...u, ...l };
|
|
2393
|
+
return n.current = g, g;
|
|
2394
|
+
});
|
|
2395
|
+
}, []), i = ae(() => n.current, []), o = ae(() => {
|
|
2396
|
+
t(r), n.current = r;
|
|
2397
|
+
}, [r]);
|
|
2398
|
+
return [e, s, i, o];
|
|
2399
|
+
};
|
|
2400
|
+
function _a(r, e, t = !1) {
|
|
2401
|
+
const n = K(void 0), s = K(r);
|
|
2402
|
+
se(() => {
|
|
2403
|
+
s.current = r;
|
|
2404
|
+
}, [r]);
|
|
2405
|
+
const i = ae(() => {
|
|
2406
|
+
n.current && (clearTimeout(n.current), n.current = void 0);
|
|
2407
|
+
}, []), o = ae(() => {
|
|
2408
|
+
i(), e != null && (n.current = setTimeout(() => s.current(), e));
|
|
2409
|
+
}, [e, i]);
|
|
2410
|
+
return se(() => (t && s.current(), o(), i), [e, o, i, t]), { start: o, clear: i, isRunning: !!n.current };
|
|
2411
|
+
}
|
|
2412
|
+
const Ea = (r, e, t) => {
|
|
2413
|
+
const {
|
|
2414
|
+
isReady: n = !0,
|
|
2415
|
+
dataSource: s = [],
|
|
2416
|
+
current: i = 1,
|
|
2417
|
+
pageSize: o = sa
|
|
2418
|
+
} = t || {}, [c, u] = H(!1), [l, g] = H(i), [d, b] = H(o), [j, T] = H(0), [N, Y] = H(!1), [O, y] = H(s), E = K(l), M = K(d), W = (z) => {
|
|
2419
|
+
g(z), E.current = z;
|
|
2420
|
+
}, re = (z) => {
|
|
2421
|
+
b(z), M.current = z;
|
|
2422
|
+
}, G = K(0), ve = async (z) => {
|
|
2423
|
+
if (!n)
|
|
2424
|
+
return;
|
|
2425
|
+
let k = E.current, L = M.current;
|
|
2426
|
+
Y(!0), G.current += 1;
|
|
2427
|
+
const C = G.current;
|
|
2428
|
+
try {
|
|
2429
|
+
let D = Math.round((k - 1) * L);
|
|
2430
|
+
D < 0 && (D = 0), L < 1 && (L = 1);
|
|
2431
|
+
let { dataSource: Q, total: B } = await r({
|
|
2432
|
+
limit: L,
|
|
2433
|
+
offset: D,
|
|
2434
|
+
current: k
|
|
2435
|
+
});
|
|
2436
|
+
if (C !== G.current)
|
|
2437
|
+
return;
|
|
2438
|
+
if (d * (k - 1) >= B && k !== 1) {
|
|
2439
|
+
const ee = Math.ceil(B / d);
|
|
2440
|
+
if ({ dataSource: Q, total: B } = await r({
|
|
2441
|
+
limit: L,
|
|
2442
|
+
offset: Math.round((ee - 1) * L),
|
|
2443
|
+
current: k
|
|
2444
|
+
}), C !== G.current)
|
|
2445
|
+
return;
|
|
2446
|
+
k = ee;
|
|
2447
|
+
}
|
|
2448
|
+
const oe = z ? Q : O.concat(Q);
|
|
2449
|
+
y(oe), W(k), re(L), T(B);
|
|
2450
|
+
} catch (D) {
|
|
2451
|
+
if (console.error("fetch err", D), C !== G.current)
|
|
2452
|
+
return;
|
|
2453
|
+
}
|
|
2454
|
+
u(!0), Y(!1);
|
|
2455
|
+
}, J = async (z) => {
|
|
2456
|
+
if (z)
|
|
2457
|
+
y([]), W(i), re(o);
|
|
2458
|
+
else {
|
|
2459
|
+
const k = d * l;
|
|
2460
|
+
if (j && j <= k)
|
|
2461
|
+
return;
|
|
2462
|
+
W(l + 1);
|
|
2463
|
+
}
|
|
2464
|
+
await ve(z);
|
|
2465
|
+
}, ie = ae(Ut(J, 500), [J]), me = [...e || [], n];
|
|
2466
|
+
return se(() => {
|
|
2467
|
+
n && ie(!0);
|
|
2468
|
+
}, me), {
|
|
2469
|
+
loading: N,
|
|
2470
|
+
dataSource: O,
|
|
2471
|
+
paginationProps: {
|
|
2472
|
+
current: l,
|
|
2473
|
+
pageSize: d,
|
|
2474
|
+
total: j
|
|
2475
|
+
},
|
|
2476
|
+
isFirstComplete: c,
|
|
2477
|
+
refresh: async (z) => {
|
|
2478
|
+
await J(z);
|
|
2479
|
+
},
|
|
2480
|
+
debounceRefresh: ie,
|
|
2481
|
+
setDataSource: y,
|
|
2482
|
+
setTotal: T
|
|
2483
|
+
};
|
|
2484
|
+
};
|
|
2192
2485
|
export {
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2486
|
+
pe as CompThemeProvider,
|
|
2487
|
+
ya as DATE_FORMAT,
|
|
2488
|
+
an as ItemsRow,
|
|
2489
|
+
va as MBreadcrumb,
|
|
2490
|
+
sn as MDescriptions,
|
|
2491
|
+
cr as MForm,
|
|
2492
|
+
he as MFormItemConst,
|
|
2493
|
+
q as MFormItemTypeEnum,
|
|
2494
|
+
ma as MSearch,
|
|
2495
|
+
ba as MTable,
|
|
2496
|
+
pa as MiThemeProvider,
|
|
2497
|
+
Ae as NextTick,
|
|
2498
|
+
sa as PAGE_SIZE,
|
|
2499
|
+
P as PatternType,
|
|
2500
|
+
ga as VersionUtil,
|
|
2501
|
+
la as cmx,
|
|
2502
|
+
Ut as debounce,
|
|
2209
2503
|
De as getClassName,
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2504
|
+
da as getFieldsByPath,
|
|
2505
|
+
ua as nextTick,
|
|
2506
|
+
fa as noop,
|
|
2507
|
+
rn as removeNull,
|
|
2508
|
+
ha as throttle,
|
|
2509
|
+
xa as useFuncRequest,
|
|
2510
|
+
wa as useInterval,
|
|
2511
|
+
nn as useMiThemeConfig,
|
|
2512
|
+
Sa as usePagination,
|
|
2513
|
+
Ca as useQuery,
|
|
2514
|
+
Ra as useReactive,
|
|
2515
|
+
_a as useTimeout,
|
|
2516
|
+
Ea as useVirtualList
|
|
2216
2517
|
};
|