@akinon/ui-space 0.0.2 → 0.2.0
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/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +21 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +17 -0
- package/package.json +18 -11
- package/dist/index.cjs +0 -63
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -4117
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
package/dist/index.js
DELETED
|
@@ -1,4117 +0,0 @@
|
|
|
1
|
-
import { jsx as ua } from "react/jsx-runtime";
|
|
2
|
-
import * as v from "react";
|
|
3
|
-
import Ie, { useContext as At, createContext as _r, useRef as Me, useLayoutEffect as fa, useEffect as Ct } from "react";
|
|
4
|
-
import da from "react-dom";
|
|
5
|
-
function pa(e) {
|
|
6
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
|
-
}
|
|
8
|
-
var Rn = { exports: {} };
|
|
9
|
-
/*!
|
|
10
|
-
Copyright (c) 2018 Jed Watson.
|
|
11
|
-
Licensed under the MIT License (MIT), see
|
|
12
|
-
http://jedwatson.github.io/classnames
|
|
13
|
-
*/
|
|
14
|
-
(function(e) {
|
|
15
|
-
(function() {
|
|
16
|
-
var t = {}.hasOwnProperty;
|
|
17
|
-
function r() {
|
|
18
|
-
for (var n = [], o = 0; o < arguments.length; o++) {
|
|
19
|
-
var a = arguments[o];
|
|
20
|
-
if (a) {
|
|
21
|
-
var i = typeof a;
|
|
22
|
-
if (i === "string" || i === "number")
|
|
23
|
-
n.push(a);
|
|
24
|
-
else if (Array.isArray(a)) {
|
|
25
|
-
if (a.length) {
|
|
26
|
-
var c = r.apply(null, a);
|
|
27
|
-
c && n.push(c);
|
|
28
|
-
}
|
|
29
|
-
} else if (i === "object") {
|
|
30
|
-
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]")) {
|
|
31
|
-
n.push(a.toString());
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
for (var l in a)
|
|
35
|
-
t.call(a, l) && a[l] && n.push(l);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return n.join(" ");
|
|
40
|
-
}
|
|
41
|
-
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
42
|
-
})();
|
|
43
|
-
})(Rn);
|
|
44
|
-
var va = Rn.exports;
|
|
45
|
-
const Mt = /* @__PURE__ */ pa(va);
|
|
46
|
-
function Rt() {
|
|
47
|
-
return Rt = Object.assign ? Object.assign.bind() : function(e) {
|
|
48
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
49
|
-
var r = arguments[t];
|
|
50
|
-
for (var n in r)
|
|
51
|
-
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
52
|
-
}
|
|
53
|
-
return e;
|
|
54
|
-
}, Rt.apply(this, arguments);
|
|
55
|
-
}
|
|
56
|
-
var or = { exports: {} }, j = {};
|
|
57
|
-
/**
|
|
58
|
-
* @license React
|
|
59
|
-
* react-is.production.min.js
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/
|
|
66
|
-
var Yr;
|
|
67
|
-
function ga() {
|
|
68
|
-
if (Yr)
|
|
69
|
-
return j;
|
|
70
|
-
Yr = 1;
|
|
71
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), y;
|
|
72
|
-
y = Symbol.for("react.module.reference");
|
|
73
|
-
function g(u) {
|
|
74
|
-
if (typeof u == "object" && u !== null) {
|
|
75
|
-
var S = u.$$typeof;
|
|
76
|
-
switch (S) {
|
|
77
|
-
case e:
|
|
78
|
-
switch (u = u.type, u) {
|
|
79
|
-
case r:
|
|
80
|
-
case o:
|
|
81
|
-
case n:
|
|
82
|
-
case s:
|
|
83
|
-
case f:
|
|
84
|
-
return u;
|
|
85
|
-
default:
|
|
86
|
-
switch (u = u && u.$$typeof, u) {
|
|
87
|
-
case c:
|
|
88
|
-
case i:
|
|
89
|
-
case l:
|
|
90
|
-
case p:
|
|
91
|
-
case d:
|
|
92
|
-
case a:
|
|
93
|
-
return u;
|
|
94
|
-
default:
|
|
95
|
-
return S;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
case t:
|
|
99
|
-
return S;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return j.ContextConsumer = i, j.ContextProvider = a, j.Element = e, j.ForwardRef = l, j.Fragment = r, j.Lazy = p, j.Memo = d, j.Portal = t, j.Profiler = o, j.StrictMode = n, j.Suspense = s, j.SuspenseList = f, j.isAsyncMode = function() {
|
|
104
|
-
return !1;
|
|
105
|
-
}, j.isConcurrentMode = function() {
|
|
106
|
-
return !1;
|
|
107
|
-
}, j.isContextConsumer = function(u) {
|
|
108
|
-
return g(u) === i;
|
|
109
|
-
}, j.isContextProvider = function(u) {
|
|
110
|
-
return g(u) === a;
|
|
111
|
-
}, j.isElement = function(u) {
|
|
112
|
-
return typeof u == "object" && u !== null && u.$$typeof === e;
|
|
113
|
-
}, j.isForwardRef = function(u) {
|
|
114
|
-
return g(u) === l;
|
|
115
|
-
}, j.isFragment = function(u) {
|
|
116
|
-
return g(u) === r;
|
|
117
|
-
}, j.isLazy = function(u) {
|
|
118
|
-
return g(u) === p;
|
|
119
|
-
}, j.isMemo = function(u) {
|
|
120
|
-
return g(u) === d;
|
|
121
|
-
}, j.isPortal = function(u) {
|
|
122
|
-
return g(u) === t;
|
|
123
|
-
}, j.isProfiler = function(u) {
|
|
124
|
-
return g(u) === o;
|
|
125
|
-
}, j.isStrictMode = function(u) {
|
|
126
|
-
return g(u) === n;
|
|
127
|
-
}, j.isSuspense = function(u) {
|
|
128
|
-
return g(u) === s;
|
|
129
|
-
}, j.isSuspenseList = function(u) {
|
|
130
|
-
return g(u) === f;
|
|
131
|
-
}, j.isValidElementType = function(u) {
|
|
132
|
-
return typeof u == "string" || typeof u == "function" || u === r || u === o || u === n || u === s || u === f || u === h || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === d || u.$$typeof === a || u.$$typeof === i || u.$$typeof === l || u.$$typeof === y || u.getModuleId !== void 0);
|
|
133
|
-
}, j.typeOf = g, j;
|
|
134
|
-
}
|
|
135
|
-
var I = {};
|
|
136
|
-
/**
|
|
137
|
-
* @license React
|
|
138
|
-
* react-is.development.js
|
|
139
|
-
*
|
|
140
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
141
|
-
*
|
|
142
|
-
* This source code is licensed under the MIT license found in the
|
|
143
|
-
* LICENSE file in the root directory of this source tree.
|
|
144
|
-
*/
|
|
145
|
-
var Kr;
|
|
146
|
-
function ha() {
|
|
147
|
-
return Kr || (Kr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
148
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), y = !1, g = !1, u = !1, S = !1, m = !1, O;
|
|
149
|
-
O = Symbol.for("react.module.reference");
|
|
150
|
-
function T(x) {
|
|
151
|
-
return !!(typeof x == "string" || typeof x == "function" || x === r || x === o || m || x === n || x === s || x === f || S || x === h || y || g || u || typeof x == "object" && x !== null && (x.$$typeof === p || x.$$typeof === d || x.$$typeof === a || x.$$typeof === i || x.$$typeof === l || // This needs to include all possible module reference object
|
|
152
|
-
// types supported by any Flight configuration anywhere since
|
|
153
|
-
// we don't know which Flight build this will end up being used
|
|
154
|
-
// with.
|
|
155
|
-
x.$$typeof === O || x.getModuleId !== void 0));
|
|
156
|
-
}
|
|
157
|
-
function E(x) {
|
|
158
|
-
if (typeof x == "object" && x !== null) {
|
|
159
|
-
var ne = x.$$typeof;
|
|
160
|
-
switch (ne) {
|
|
161
|
-
case e:
|
|
162
|
-
var Ee = x.type;
|
|
163
|
-
switch (Ee) {
|
|
164
|
-
case r:
|
|
165
|
-
case o:
|
|
166
|
-
case n:
|
|
167
|
-
case s:
|
|
168
|
-
case f:
|
|
169
|
-
return Ee;
|
|
170
|
-
default:
|
|
171
|
-
var Ce = Ee && Ee.$$typeof;
|
|
172
|
-
switch (Ce) {
|
|
173
|
-
case c:
|
|
174
|
-
case i:
|
|
175
|
-
case l:
|
|
176
|
-
case p:
|
|
177
|
-
case d:
|
|
178
|
-
case a:
|
|
179
|
-
return Ce;
|
|
180
|
-
default:
|
|
181
|
-
return ne;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
case t:
|
|
185
|
-
return ne;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
var C = i, b = a, A = e, $ = l, w = r, R = p, P = d, k = t, N = o, M = n, D = s, V = f, G = !1, W = !1;
|
|
190
|
-
function H(x) {
|
|
191
|
-
return G || (G = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
192
|
-
}
|
|
193
|
-
function F(x) {
|
|
194
|
-
return W || (W = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
195
|
-
}
|
|
196
|
-
function z(x) {
|
|
197
|
-
return E(x) === i;
|
|
198
|
-
}
|
|
199
|
-
function te(x) {
|
|
200
|
-
return E(x) === a;
|
|
201
|
-
}
|
|
202
|
-
function Q(x) {
|
|
203
|
-
return typeof x == "object" && x !== null && x.$$typeof === e;
|
|
204
|
-
}
|
|
205
|
-
function ce(x) {
|
|
206
|
-
return E(x) === l;
|
|
207
|
-
}
|
|
208
|
-
function Le(x) {
|
|
209
|
-
return E(x) === r;
|
|
210
|
-
}
|
|
211
|
-
function qe(x) {
|
|
212
|
-
return E(x) === p;
|
|
213
|
-
}
|
|
214
|
-
function Qe(x) {
|
|
215
|
-
return E(x) === d;
|
|
216
|
-
}
|
|
217
|
-
function Je(x) {
|
|
218
|
-
return E(x) === t;
|
|
219
|
-
}
|
|
220
|
-
function $e(x) {
|
|
221
|
-
return E(x) === o;
|
|
222
|
-
}
|
|
223
|
-
function he(x) {
|
|
224
|
-
return E(x) === n;
|
|
225
|
-
}
|
|
226
|
-
function Ze(x) {
|
|
227
|
-
return E(x) === s;
|
|
228
|
-
}
|
|
229
|
-
function De(x) {
|
|
230
|
-
return E(x) === f;
|
|
231
|
-
}
|
|
232
|
-
I.ContextConsumer = C, I.ContextProvider = b, I.Element = A, I.ForwardRef = $, I.Fragment = w, I.Lazy = R, I.Memo = P, I.Portal = k, I.Profiler = N, I.StrictMode = M, I.Suspense = D, I.SuspenseList = V, I.isAsyncMode = H, I.isConcurrentMode = F, I.isContextConsumer = z, I.isContextProvider = te, I.isElement = Q, I.isForwardRef = ce, I.isFragment = Le, I.isLazy = qe, I.isMemo = Qe, I.isPortal = Je, I.isProfiler = $e, I.isStrictMode = he, I.isSuspense = Ze, I.isSuspenseList = De, I.isValidElementType = T, I.typeOf = E;
|
|
233
|
-
}()), I;
|
|
234
|
-
}
|
|
235
|
-
process.env.NODE_ENV === "production" ? or.exports = ga() : or.exports = ha();
|
|
236
|
-
var _n = or.exports;
|
|
237
|
-
function _t(e) {
|
|
238
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [];
|
|
239
|
-
return Ie.Children.forEach(e, function(n) {
|
|
240
|
-
n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(_t(n)) : _n.isFragment(n) && n.props ? r = r.concat(_t(n.props.children, t)) : r.push(n));
|
|
241
|
-
}), r;
|
|
242
|
-
}
|
|
243
|
-
var ar = {}, jr = [], ma = function(t) {
|
|
244
|
-
jr.push(t);
|
|
245
|
-
};
|
|
246
|
-
function Ir(e, t) {
|
|
247
|
-
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
248
|
-
var r = jr.reduce(function(n, o) {
|
|
249
|
-
return o(n ?? "", "warning");
|
|
250
|
-
}, t);
|
|
251
|
-
r && console.error("Warning: ".concat(r));
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
function ba(e, t) {
|
|
255
|
-
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
256
|
-
var r = jr.reduce(function(n, o) {
|
|
257
|
-
return o(n ?? "", "note");
|
|
258
|
-
}, t);
|
|
259
|
-
r && console.warn("Note: ".concat(r));
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
function jn() {
|
|
263
|
-
ar = {};
|
|
264
|
-
}
|
|
265
|
-
function In(e, t, r) {
|
|
266
|
-
!t && !ar[r] && (e(!1, r), ar[r] = !0);
|
|
267
|
-
}
|
|
268
|
-
function Ne(e, t) {
|
|
269
|
-
In(Ir, e, t);
|
|
270
|
-
}
|
|
271
|
-
function ya(e, t) {
|
|
272
|
-
In(ba, e, t);
|
|
273
|
-
}
|
|
274
|
-
Ne.preMessage = ma;
|
|
275
|
-
Ne.resetWarned = jn;
|
|
276
|
-
Ne.noteOnce = ya;
|
|
277
|
-
function Y(e) {
|
|
278
|
-
"@babel/helpers - typeof";
|
|
279
|
-
return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
280
|
-
return typeof t;
|
|
281
|
-
} : function(t) {
|
|
282
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
283
|
-
}, Y(e);
|
|
284
|
-
}
|
|
285
|
-
function Sa(e, t) {
|
|
286
|
-
if (Y(e) !== "object" || e === null)
|
|
287
|
-
return e;
|
|
288
|
-
var r = e[Symbol.toPrimitive];
|
|
289
|
-
if (r !== void 0) {
|
|
290
|
-
var n = r.call(e, t || "default");
|
|
291
|
-
if (Y(n) !== "object")
|
|
292
|
-
return n;
|
|
293
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
294
|
-
}
|
|
295
|
-
return (t === "string" ? String : Number)(e);
|
|
296
|
-
}
|
|
297
|
-
function Nn(e) {
|
|
298
|
-
var t = Sa(e, "string");
|
|
299
|
-
return Y(t) === "symbol" ? t : String(t);
|
|
300
|
-
}
|
|
301
|
-
function L(e, t, r) {
|
|
302
|
-
return t = Nn(t), t in e ? Object.defineProperty(e, t, {
|
|
303
|
-
value: r,
|
|
304
|
-
enumerable: !0,
|
|
305
|
-
configurable: !0,
|
|
306
|
-
writable: !0
|
|
307
|
-
}) : e[t] = r, e;
|
|
308
|
-
}
|
|
309
|
-
function qr(e, t) {
|
|
310
|
-
var r = Object.keys(e);
|
|
311
|
-
if (Object.getOwnPropertySymbols) {
|
|
312
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
313
|
-
t && (n = n.filter(function(o) {
|
|
314
|
-
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
315
|
-
})), r.push.apply(r, n);
|
|
316
|
-
}
|
|
317
|
-
return r;
|
|
318
|
-
}
|
|
319
|
-
function _(e) {
|
|
320
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
321
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
322
|
-
t % 2 ? qr(Object(r), !0).forEach(function(n) {
|
|
323
|
-
L(e, n, r[n]);
|
|
324
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : qr(Object(r)).forEach(function(n) {
|
|
325
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
return e;
|
|
329
|
-
}
|
|
330
|
-
function xa(e) {
|
|
331
|
-
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
332
|
-
}
|
|
333
|
-
function Ea(e) {
|
|
334
|
-
return xa(e) ? e : e instanceof Ie.Component ? da.findDOMNode(e) : null;
|
|
335
|
-
}
|
|
336
|
-
function Ln(e, t, r) {
|
|
337
|
-
var n = v.useRef({});
|
|
338
|
-
return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
|
|
339
|
-
}
|
|
340
|
-
function Ca(e, t) {
|
|
341
|
-
typeof e == "function" ? e(t) : Y(e) === "object" && e && "current" in e && (e.current = t);
|
|
342
|
-
}
|
|
343
|
-
function Ta(e) {
|
|
344
|
-
var t, r, n = _n.isMemo(e) ? e.type.type : e.type;
|
|
345
|
-
return !(typeof n == "function" && !((t = n.prototype) !== null && t !== void 0 && t.render) || typeof e == "function" && !((r = e.prototype) !== null && r !== void 0 && r.render));
|
|
346
|
-
}
|
|
347
|
-
function st(e, t) {
|
|
348
|
-
if (!(e instanceof t))
|
|
349
|
-
throw new TypeError("Cannot call a class as a function");
|
|
350
|
-
}
|
|
351
|
-
function Qr(e, t) {
|
|
352
|
-
for (var r = 0; r < t.length; r++) {
|
|
353
|
-
var n = t[r];
|
|
354
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Nn(n.key), n);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
function lt(e, t, r) {
|
|
358
|
-
return t && Qr(e.prototype, t), r && Qr(e, r), Object.defineProperty(e, "prototype", {
|
|
359
|
-
writable: !1
|
|
360
|
-
}), e;
|
|
361
|
-
}
|
|
362
|
-
function ir(e, t) {
|
|
363
|
-
return ir = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
|
|
364
|
-
return n.__proto__ = o, n;
|
|
365
|
-
}, ir(e, t);
|
|
366
|
-
}
|
|
367
|
-
function $n(e, t) {
|
|
368
|
-
if (typeof t != "function" && t !== null)
|
|
369
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
370
|
-
e.prototype = Object.create(t && t.prototype, {
|
|
371
|
-
constructor: {
|
|
372
|
-
value: e,
|
|
373
|
-
writable: !0,
|
|
374
|
-
configurable: !0
|
|
375
|
-
}
|
|
376
|
-
}), Object.defineProperty(e, "prototype", {
|
|
377
|
-
writable: !1
|
|
378
|
-
}), t && ir(e, t);
|
|
379
|
-
}
|
|
380
|
-
function jt(e) {
|
|
381
|
-
return jt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
382
|
-
return r.__proto__ || Object.getPrototypeOf(r);
|
|
383
|
-
}, jt(e);
|
|
384
|
-
}
|
|
385
|
-
function wa() {
|
|
386
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
387
|
-
return !1;
|
|
388
|
-
if (typeof Proxy == "function")
|
|
389
|
-
return !0;
|
|
390
|
-
try {
|
|
391
|
-
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
392
|
-
})), !0;
|
|
393
|
-
} catch {
|
|
394
|
-
return !1;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
function cr(e) {
|
|
398
|
-
if (e === void 0)
|
|
399
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
400
|
-
return e;
|
|
401
|
-
}
|
|
402
|
-
function Oa(e, t) {
|
|
403
|
-
if (t && (Y(t) === "object" || typeof t == "function"))
|
|
404
|
-
return t;
|
|
405
|
-
if (t !== void 0)
|
|
406
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
407
|
-
return cr(e);
|
|
408
|
-
}
|
|
409
|
-
function Dn(e) {
|
|
410
|
-
var t = wa();
|
|
411
|
-
return function() {
|
|
412
|
-
var n = jt(e), o;
|
|
413
|
-
if (t) {
|
|
414
|
-
var a = jt(this).constructor;
|
|
415
|
-
o = Reflect.construct(n, arguments, a);
|
|
416
|
-
} else
|
|
417
|
-
o = n.apply(this, arguments);
|
|
418
|
-
return Oa(this, o);
|
|
419
|
-
};
|
|
420
|
-
}
|
|
421
|
-
function sr(e, t) {
|
|
422
|
-
(t == null || t > e.length) && (t = e.length);
|
|
423
|
-
for (var r = 0, n = new Array(t); r < t; r++)
|
|
424
|
-
n[r] = e[r];
|
|
425
|
-
return n;
|
|
426
|
-
}
|
|
427
|
-
function Pa(e) {
|
|
428
|
-
if (Array.isArray(e))
|
|
429
|
-
return sr(e);
|
|
430
|
-
}
|
|
431
|
-
function Hn(e) {
|
|
432
|
-
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
|
433
|
-
return Array.from(e);
|
|
434
|
-
}
|
|
435
|
-
function Nr(e, t) {
|
|
436
|
-
if (e) {
|
|
437
|
-
if (typeof e == "string")
|
|
438
|
-
return sr(e, t);
|
|
439
|
-
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
440
|
-
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set")
|
|
441
|
-
return Array.from(e);
|
|
442
|
-
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
443
|
-
return sr(e, t);
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
function ka() {
|
|
447
|
-
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
448
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
449
|
-
}
|
|
450
|
-
function we(e) {
|
|
451
|
-
return Pa(e) || Hn(e) || Nr(e) || ka();
|
|
452
|
-
}
|
|
453
|
-
var Fn = function(t) {
|
|
454
|
-
return +setTimeout(t, 16);
|
|
455
|
-
}, zn = function(t) {
|
|
456
|
-
return clearTimeout(t);
|
|
457
|
-
};
|
|
458
|
-
typeof window < "u" && "requestAnimationFrame" in window && (Fn = function(t) {
|
|
459
|
-
return window.requestAnimationFrame(t);
|
|
460
|
-
}, zn = function(t) {
|
|
461
|
-
return window.cancelAnimationFrame(t);
|
|
462
|
-
});
|
|
463
|
-
var Jr = 0, Lr = /* @__PURE__ */ new Map();
|
|
464
|
-
function Bn(e) {
|
|
465
|
-
Lr.delete(e);
|
|
466
|
-
}
|
|
467
|
-
var lr = function(t) {
|
|
468
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
469
|
-
Jr += 1;
|
|
470
|
-
var n = Jr;
|
|
471
|
-
function o(a) {
|
|
472
|
-
if (a === 0)
|
|
473
|
-
Bn(n), t();
|
|
474
|
-
else {
|
|
475
|
-
var i = Fn(function() {
|
|
476
|
-
o(a - 1);
|
|
477
|
-
});
|
|
478
|
-
Lr.set(n, i);
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
return o(r), n;
|
|
482
|
-
};
|
|
483
|
-
lr.cancel = function(e) {
|
|
484
|
-
var t = Lr.get(e);
|
|
485
|
-
return Bn(t), zn(t);
|
|
486
|
-
};
|
|
487
|
-
function $r(e) {
|
|
488
|
-
for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
|
|
489
|
-
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
|
|
490
|
-
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
491
|
-
r >>> 24, t = /* Math.imul(k, m): */
|
|
492
|
-
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
493
|
-
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
494
|
-
switch (o) {
|
|
495
|
-
case 3:
|
|
496
|
-
t ^= (e.charCodeAt(n + 2) & 255) << 16;
|
|
497
|
-
case 2:
|
|
498
|
-
t ^= (e.charCodeAt(n + 1) & 255) << 8;
|
|
499
|
-
case 1:
|
|
500
|
-
t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */
|
|
501
|
-
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
502
|
-
}
|
|
503
|
-
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
504
|
-
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
505
|
-
}
|
|
506
|
-
function Aa(e, t) {
|
|
507
|
-
if (e == null)
|
|
508
|
-
return {};
|
|
509
|
-
var r = {}, n = Object.keys(e), o, a;
|
|
510
|
-
for (a = 0; a < n.length; a++)
|
|
511
|
-
o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
|
|
512
|
-
return r;
|
|
513
|
-
}
|
|
514
|
-
function ur(e, t) {
|
|
515
|
-
if (e == null)
|
|
516
|
-
return {};
|
|
517
|
-
var r = Aa(e, t), n, o;
|
|
518
|
-
if (Object.getOwnPropertySymbols) {
|
|
519
|
-
var a = Object.getOwnPropertySymbols(e);
|
|
520
|
-
for (o = 0; o < a.length; o++)
|
|
521
|
-
n = a[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
522
|
-
}
|
|
523
|
-
return r;
|
|
524
|
-
}
|
|
525
|
-
function Ma(e, t) {
|
|
526
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = /* @__PURE__ */ new Set();
|
|
527
|
-
function o(a, i) {
|
|
528
|
-
var c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, l = n.has(a);
|
|
529
|
-
if (Ne(!l, "Warning: There may be circular references"), l)
|
|
530
|
-
return !1;
|
|
531
|
-
if (a === i)
|
|
532
|
-
return !0;
|
|
533
|
-
if (r && c > 1)
|
|
534
|
-
return !1;
|
|
535
|
-
n.add(a);
|
|
536
|
-
var s = c + 1;
|
|
537
|
-
if (Array.isArray(a)) {
|
|
538
|
-
if (!Array.isArray(i) || a.length !== i.length)
|
|
539
|
-
return !1;
|
|
540
|
-
for (var f = 0; f < a.length; f++)
|
|
541
|
-
if (!o(a[f], i[f], s))
|
|
542
|
-
return !1;
|
|
543
|
-
return !0;
|
|
544
|
-
}
|
|
545
|
-
if (a && i && Y(a) === "object" && Y(i) === "object") {
|
|
546
|
-
var d = Object.keys(a);
|
|
547
|
-
return d.length !== Object.keys(i).length ? !1 : d.every(function(p) {
|
|
548
|
-
return o(a[p], i[p], s);
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
return !1;
|
|
552
|
-
}
|
|
553
|
-
return o(e, t);
|
|
554
|
-
}
|
|
555
|
-
var Zr = "%", Ra = /* @__PURE__ */ function() {
|
|
556
|
-
function e(t) {
|
|
557
|
-
st(this, e), L(this, "instanceId", void 0), L(this, "cache", /* @__PURE__ */ new Map()), this.instanceId = t;
|
|
558
|
-
}
|
|
559
|
-
return lt(e, [{
|
|
560
|
-
key: "get",
|
|
561
|
-
value: function(r) {
|
|
562
|
-
return this.cache.get(r.join(Zr)) || null;
|
|
563
|
-
}
|
|
564
|
-
}, {
|
|
565
|
-
key: "update",
|
|
566
|
-
value: function(r, n) {
|
|
567
|
-
var o = r.join(Zr), a = this.cache.get(o), i = n(a);
|
|
568
|
-
i === null ? this.cache.delete(o) : this.cache.set(o, i);
|
|
569
|
-
}
|
|
570
|
-
}]), e;
|
|
571
|
-
}(), fr = "data-token-hash", Re = "data-css-hash", _a = "data-cache-path", Be = "__cssinjs_instance__";
|
|
572
|
-
function ja() {
|
|
573
|
-
var e = Math.random().toString(12).slice(2);
|
|
574
|
-
if (typeof document < "u" && document.head && document.body) {
|
|
575
|
-
var t = document.body.querySelectorAll("style[".concat(Re, "]")) || [], r = document.head.firstChild;
|
|
576
|
-
Array.from(t).forEach(function(o) {
|
|
577
|
-
o[Be] = o[Be] || e, o[Be] === e && document.head.insertBefore(o, r);
|
|
578
|
-
});
|
|
579
|
-
var n = {};
|
|
580
|
-
Array.from(document.querySelectorAll("style[".concat(Re, "]"))).forEach(function(o) {
|
|
581
|
-
var a = o.getAttribute(Re);
|
|
582
|
-
if (n[a]) {
|
|
583
|
-
if (o[Be] === e) {
|
|
584
|
-
var i;
|
|
585
|
-
(i = o.parentNode) === null || i === void 0 || i.removeChild(o);
|
|
586
|
-
}
|
|
587
|
-
} else
|
|
588
|
-
n[a] = !0;
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
return new Ra(e);
|
|
592
|
-
}
|
|
593
|
-
var Ia = /* @__PURE__ */ v.createContext({
|
|
594
|
-
hashPriority: "low",
|
|
595
|
-
cache: ja(),
|
|
596
|
-
defaultCache: !0
|
|
597
|
-
});
|
|
598
|
-
const Dr = Ia;
|
|
599
|
-
function ge() {
|
|
600
|
-
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
601
|
-
}
|
|
602
|
-
function Na(e, t) {
|
|
603
|
-
if (!e)
|
|
604
|
-
return !1;
|
|
605
|
-
if (e.contains)
|
|
606
|
-
return e.contains(t);
|
|
607
|
-
for (var r = t; r; ) {
|
|
608
|
-
if (r === e)
|
|
609
|
-
return !0;
|
|
610
|
-
r = r.parentNode;
|
|
611
|
-
}
|
|
612
|
-
return !1;
|
|
613
|
-
}
|
|
614
|
-
var en = "data-rc-order", tn = "data-rc-priority", La = "rc-util-key", dr = /* @__PURE__ */ new Map();
|
|
615
|
-
function Wn() {
|
|
616
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
|
|
617
|
-
return t ? t.startsWith("data-") ? t : "data-".concat(t) : La;
|
|
618
|
-
}
|
|
619
|
-
function Lt(e) {
|
|
620
|
-
if (e.attachTo)
|
|
621
|
-
return e.attachTo;
|
|
622
|
-
var t = document.querySelector("head");
|
|
623
|
-
return t || document.body;
|
|
624
|
-
}
|
|
625
|
-
function $a(e) {
|
|
626
|
-
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
627
|
-
}
|
|
628
|
-
function Vn(e) {
|
|
629
|
-
return Array.from((dr.get(e) || e).children).filter(function(t) {
|
|
630
|
-
return t.tagName === "STYLE";
|
|
631
|
-
});
|
|
632
|
-
}
|
|
633
|
-
function Gn(e) {
|
|
634
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
635
|
-
if (!ge())
|
|
636
|
-
return null;
|
|
637
|
-
var r = t.csp, n = t.prepend, o = t.priority, a = o === void 0 ? 0 : o, i = $a(n), c = i === "prependQueue", l = document.createElement("style");
|
|
638
|
-
l.setAttribute(en, i), c && a && l.setAttribute(tn, "".concat(a)), r != null && r.nonce && (l.nonce = r == null ? void 0 : r.nonce), l.innerHTML = e;
|
|
639
|
-
var s = Lt(t), f = s.firstChild;
|
|
640
|
-
if (n) {
|
|
641
|
-
if (c) {
|
|
642
|
-
var d = Vn(s).filter(function(p) {
|
|
643
|
-
if (!["prepend", "prependQueue"].includes(p.getAttribute(en)))
|
|
644
|
-
return !1;
|
|
645
|
-
var h = Number(p.getAttribute(tn) || 0);
|
|
646
|
-
return a >= h;
|
|
647
|
-
});
|
|
648
|
-
if (d.length)
|
|
649
|
-
return s.insertBefore(l, d[d.length - 1].nextSibling), l;
|
|
650
|
-
}
|
|
651
|
-
s.insertBefore(l, f);
|
|
652
|
-
} else
|
|
653
|
-
s.appendChild(l);
|
|
654
|
-
return l;
|
|
655
|
-
}
|
|
656
|
-
function Un(e) {
|
|
657
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Lt(t);
|
|
658
|
-
return Vn(r).find(function(n) {
|
|
659
|
-
return n.getAttribute(Wn(t)) === e;
|
|
660
|
-
});
|
|
661
|
-
}
|
|
662
|
-
function Xn(e) {
|
|
663
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Un(e, t);
|
|
664
|
-
if (r) {
|
|
665
|
-
var n = Lt(t);
|
|
666
|
-
n.removeChild(r);
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
function Da(e, t) {
|
|
670
|
-
var r = dr.get(e);
|
|
671
|
-
if (!r || !Na(document, r)) {
|
|
672
|
-
var n = Gn("", t), o = n.parentNode;
|
|
673
|
-
dr.set(e, o), e.removeChild(n);
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
function It(e, t) {
|
|
677
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Lt(r);
|
|
678
|
-
Da(n, r);
|
|
679
|
-
var o = Un(t, r);
|
|
680
|
-
if (o) {
|
|
681
|
-
var a, i;
|
|
682
|
-
if ((a = r.csp) !== null && a !== void 0 && a.nonce && o.nonce !== ((i = r.csp) === null || i === void 0 ? void 0 : i.nonce)) {
|
|
683
|
-
var c;
|
|
684
|
-
o.nonce = (c = r.csp) === null || c === void 0 ? void 0 : c.nonce;
|
|
685
|
-
}
|
|
686
|
-
return o.innerHTML !== e && (o.innerHTML = e), o;
|
|
687
|
-
}
|
|
688
|
-
var l = Gn(e, r);
|
|
689
|
-
return l.setAttribute(Wn(r), t), l;
|
|
690
|
-
}
|
|
691
|
-
function Yn(e) {
|
|
692
|
-
if (Array.isArray(e))
|
|
693
|
-
return e;
|
|
694
|
-
}
|
|
695
|
-
function Ha(e, t) {
|
|
696
|
-
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
697
|
-
if (r != null) {
|
|
698
|
-
var n, o, a, i, c = [], l = !0, s = !1;
|
|
699
|
-
try {
|
|
700
|
-
if (a = (r = r.call(e)).next, t === 0) {
|
|
701
|
-
if (Object(r) !== r)
|
|
702
|
-
return;
|
|
703
|
-
l = !1;
|
|
704
|
-
} else
|
|
705
|
-
for (; !(l = (n = a.call(r)).done) && (c.push(n.value), c.length !== t); l = !0)
|
|
706
|
-
;
|
|
707
|
-
} catch (f) {
|
|
708
|
-
s = !0, o = f;
|
|
709
|
-
} finally {
|
|
710
|
-
try {
|
|
711
|
-
if (!l && r.return != null && (i = r.return(), Object(i) !== i))
|
|
712
|
-
return;
|
|
713
|
-
} finally {
|
|
714
|
-
if (s)
|
|
715
|
-
throw o;
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
return c;
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
function Kn() {
|
|
722
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
723
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
724
|
-
}
|
|
725
|
-
function B(e, t) {
|
|
726
|
-
return Yn(e) || Ha(e, t) || Nr(e, t) || Kn();
|
|
727
|
-
}
|
|
728
|
-
function Fa(e, t) {
|
|
729
|
-
if (e.length !== t.length)
|
|
730
|
-
return !1;
|
|
731
|
-
for (var r = 0; r < e.length; r++)
|
|
732
|
-
if (e[r] !== t[r])
|
|
733
|
-
return !1;
|
|
734
|
-
return !0;
|
|
735
|
-
}
|
|
736
|
-
var Hr = /* @__PURE__ */ function() {
|
|
737
|
-
function e() {
|
|
738
|
-
st(this, e), L(this, "cache", void 0), L(this, "keys", void 0), L(this, "cacheCallTimes", void 0), this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
|
|
739
|
-
}
|
|
740
|
-
return lt(e, [{
|
|
741
|
-
key: "size",
|
|
742
|
-
value: function() {
|
|
743
|
-
return this.keys.length;
|
|
744
|
-
}
|
|
745
|
-
}, {
|
|
746
|
-
key: "internalGet",
|
|
747
|
-
value: function(r) {
|
|
748
|
-
var n, o, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, i = {
|
|
749
|
-
map: this.cache
|
|
750
|
-
};
|
|
751
|
-
return r.forEach(function(c) {
|
|
752
|
-
if (!i)
|
|
753
|
-
i = void 0;
|
|
754
|
-
else {
|
|
755
|
-
var l, s;
|
|
756
|
-
i = (l = i) === null || l === void 0 || (s = l.map) === null || s === void 0 ? void 0 : s.get(c);
|
|
757
|
-
}
|
|
758
|
-
}), (n = i) !== null && n !== void 0 && n.value && a && (i.value[1] = this.cacheCallTimes++), (o = i) === null || o === void 0 ? void 0 : o.value;
|
|
759
|
-
}
|
|
760
|
-
}, {
|
|
761
|
-
key: "get",
|
|
762
|
-
value: function(r) {
|
|
763
|
-
var n;
|
|
764
|
-
return (n = this.internalGet(r, !0)) === null || n === void 0 ? void 0 : n[0];
|
|
765
|
-
}
|
|
766
|
-
}, {
|
|
767
|
-
key: "has",
|
|
768
|
-
value: function(r) {
|
|
769
|
-
return !!this.internalGet(r);
|
|
770
|
-
}
|
|
771
|
-
}, {
|
|
772
|
-
key: "set",
|
|
773
|
-
value: function(r, n) {
|
|
774
|
-
var o = this;
|
|
775
|
-
if (!this.has(r)) {
|
|
776
|
-
if (this.size() + 1 > e.MAX_CACHE_SIZE + e.MAX_CACHE_OFFSET) {
|
|
777
|
-
var a = this.keys.reduce(function(s, f) {
|
|
778
|
-
var d = B(s, 2), p = d[1];
|
|
779
|
-
return o.internalGet(f)[1] < p ? [f, o.internalGet(f)[1]] : s;
|
|
780
|
-
}, [this.keys[0], this.cacheCallTimes]), i = B(a, 1), c = i[0];
|
|
781
|
-
this.delete(c);
|
|
782
|
-
}
|
|
783
|
-
this.keys.push(r);
|
|
784
|
-
}
|
|
785
|
-
var l = this.cache;
|
|
786
|
-
r.forEach(function(s, f) {
|
|
787
|
-
if (f === r.length - 1)
|
|
788
|
-
l.set(s, {
|
|
789
|
-
value: [n, o.cacheCallTimes++]
|
|
790
|
-
});
|
|
791
|
-
else {
|
|
792
|
-
var d = l.get(s);
|
|
793
|
-
d ? d.map || (d.map = /* @__PURE__ */ new Map()) : l.set(s, {
|
|
794
|
-
map: /* @__PURE__ */ new Map()
|
|
795
|
-
}), l = l.get(s).map;
|
|
796
|
-
}
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
}, {
|
|
800
|
-
key: "deleteByPath",
|
|
801
|
-
value: function(r, n) {
|
|
802
|
-
var o = r.get(n[0]);
|
|
803
|
-
if (n.length === 1) {
|
|
804
|
-
var a;
|
|
805
|
-
return o.map ? r.set(n[0], {
|
|
806
|
-
map: o.map
|
|
807
|
-
}) : r.delete(n[0]), (a = o.value) === null || a === void 0 ? void 0 : a[0];
|
|
808
|
-
}
|
|
809
|
-
var i = this.deleteByPath(o.map, n.slice(1));
|
|
810
|
-
return (!o.map || o.map.size === 0) && !o.value && r.delete(n[0]), i;
|
|
811
|
-
}
|
|
812
|
-
}, {
|
|
813
|
-
key: "delete",
|
|
814
|
-
value: function(r) {
|
|
815
|
-
if (this.has(r))
|
|
816
|
-
return this.keys = this.keys.filter(function(n) {
|
|
817
|
-
return !Fa(n, r);
|
|
818
|
-
}), this.deleteByPath(this.cache, r);
|
|
819
|
-
}
|
|
820
|
-
}]), e;
|
|
821
|
-
}();
|
|
822
|
-
L(Hr, "MAX_CACHE_SIZE", 20);
|
|
823
|
-
L(Hr, "MAX_CACHE_OFFSET", 5);
|
|
824
|
-
var rn = 0, qn = /* @__PURE__ */ function() {
|
|
825
|
-
function e(t) {
|
|
826
|
-
st(this, e), L(this, "derivatives", void 0), L(this, "id", void 0), this.derivatives = Array.isArray(t) ? t : [t], this.id = rn, t.length === 0 && Ir(t.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function."), rn += 1;
|
|
827
|
-
}
|
|
828
|
-
return lt(e, [{
|
|
829
|
-
key: "getDerivativeToken",
|
|
830
|
-
value: function(r) {
|
|
831
|
-
return this.derivatives.reduce(function(n, o) {
|
|
832
|
-
return o(r, n);
|
|
833
|
-
}, void 0);
|
|
834
|
-
}
|
|
835
|
-
}]), e;
|
|
836
|
-
}(), Vt = new Hr();
|
|
837
|
-
function pr(e) {
|
|
838
|
-
var t = Array.isArray(e) ? e : [e];
|
|
839
|
-
return Vt.has(t) || Vt.set(t, new qn(t)), Vt.get(t);
|
|
840
|
-
}
|
|
841
|
-
var za = /* @__PURE__ */ new WeakMap(), Gt = {};
|
|
842
|
-
function Ba(e, t) {
|
|
843
|
-
for (var r = za, n = 0; n < t.length; n += 1) {
|
|
844
|
-
var o = t[n];
|
|
845
|
-
r.has(o) || r.set(o, /* @__PURE__ */ new WeakMap()), r = r.get(o);
|
|
846
|
-
}
|
|
847
|
-
return r.has(Gt) || r.set(Gt, e()), r.get(Gt);
|
|
848
|
-
}
|
|
849
|
-
var nn = /* @__PURE__ */ new WeakMap();
|
|
850
|
-
function Nt(e) {
|
|
851
|
-
var t = nn.get(e) || "";
|
|
852
|
-
return t || (Object.keys(e).forEach(function(r) {
|
|
853
|
-
var n = e[r];
|
|
854
|
-
t += r, n instanceof qn ? t += n.id : n && Y(n) === "object" ? t += Nt(n) : t += n;
|
|
855
|
-
}), nn.set(e, t)), t;
|
|
856
|
-
}
|
|
857
|
-
function Wa(e, t) {
|
|
858
|
-
return $r("".concat(t, "_").concat(Nt(e)));
|
|
859
|
-
}
|
|
860
|
-
var ot = "random-".concat(Date.now(), "-").concat(Math.random()).replace(/\./g, ""), Qn = "_bAmBoO_";
|
|
861
|
-
function Va(e, t, r) {
|
|
862
|
-
if (ge()) {
|
|
863
|
-
var n, o;
|
|
864
|
-
It(e, ot);
|
|
865
|
-
var a = document.createElement("div");
|
|
866
|
-
a.style.position = "fixed", a.style.left = "0", a.style.top = "0", t == null || t(a), document.body.appendChild(a), process.env.NODE_ENV !== "production" && (a.innerHTML = "Test", a.style.zIndex = "9999999");
|
|
867
|
-
var i = r ? r(a) : (n = getComputedStyle(a).content) === null || n === void 0 ? void 0 : n.includes(Qn);
|
|
868
|
-
return (o = a.parentNode) === null || o === void 0 || o.removeChild(a), Xn(ot), i;
|
|
869
|
-
}
|
|
870
|
-
return !1;
|
|
871
|
-
}
|
|
872
|
-
var Ut = void 0;
|
|
873
|
-
function Ga() {
|
|
874
|
-
return Ut === void 0 && (Ut = Va("@layer ".concat(ot, " { .").concat(ot, ' { content: "').concat(Qn, '"!important; } }'), function(e) {
|
|
875
|
-
e.className = ot;
|
|
876
|
-
})), Ut;
|
|
877
|
-
}
|
|
878
|
-
var on = process.env.NODE_ENV !== "test" && ge() ? v.useLayoutEffect : v.useEffect, Ua = function(t, r) {
|
|
879
|
-
var n = v.useRef(!0);
|
|
880
|
-
on(function() {
|
|
881
|
-
return t(n.current);
|
|
882
|
-
}, r), on(function() {
|
|
883
|
-
return n.current = !1, function() {
|
|
884
|
-
n.current = !0;
|
|
885
|
-
};
|
|
886
|
-
}, []);
|
|
887
|
-
}, Xa = _({}, v), an = Xa.useInsertionEffect, Ya = function(t, r, n) {
|
|
888
|
-
v.useMemo(t, n), Ua(function() {
|
|
889
|
-
return r(!0);
|
|
890
|
-
}, n);
|
|
891
|
-
}, Ka = an ? function(e, t, r) {
|
|
892
|
-
return an(function() {
|
|
893
|
-
return e(), t();
|
|
894
|
-
}, r);
|
|
895
|
-
} : Ya;
|
|
896
|
-
const qa = Ka;
|
|
897
|
-
var Qa = _({}, v), Ja = Qa.useInsertionEffect, Za = function(t) {
|
|
898
|
-
var r = [], n = !1;
|
|
899
|
-
function o(a) {
|
|
900
|
-
if (n) {
|
|
901
|
-
process.env.NODE_ENV !== "production" && Ir(!1, "[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");
|
|
902
|
-
return;
|
|
903
|
-
}
|
|
904
|
-
r.push(a);
|
|
905
|
-
}
|
|
906
|
-
return v.useEffect(function() {
|
|
907
|
-
return n = !1, function() {
|
|
908
|
-
n = !0, r.length && r.forEach(function(a) {
|
|
909
|
-
return a();
|
|
910
|
-
});
|
|
911
|
-
};
|
|
912
|
-
}, t), o;
|
|
913
|
-
}, ei = function() {
|
|
914
|
-
return function(t) {
|
|
915
|
-
t();
|
|
916
|
-
};
|
|
917
|
-
}, ti = typeof Ja < "u" ? Za : ei;
|
|
918
|
-
const ri = ti;
|
|
919
|
-
function ni() {
|
|
920
|
-
return !1;
|
|
921
|
-
}
|
|
922
|
-
var vr = !1;
|
|
923
|
-
function oi() {
|
|
924
|
-
return vr;
|
|
925
|
-
}
|
|
926
|
-
const ai = process.env.NODE_ENV === "production" ? ni : oi;
|
|
927
|
-
if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
|
|
928
|
-
var Xt = window;
|
|
929
|
-
if (typeof Xt.webpackHotUpdate == "function") {
|
|
930
|
-
var ii = Xt.webpackHotUpdate;
|
|
931
|
-
Xt.webpackHotUpdate = function() {
|
|
932
|
-
return vr = !0, setTimeout(function() {
|
|
933
|
-
vr = !1;
|
|
934
|
-
}, 0), ii.apply(void 0, arguments);
|
|
935
|
-
};
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
function Jn(e, t, r, n, o) {
|
|
939
|
-
var a = v.useContext(Dr), i = a.cache, c = [e].concat(we(t)), l = c.join("_"), s = ri([l]), f = ai(), d = function(g) {
|
|
940
|
-
i.update(c, function(u) {
|
|
941
|
-
var S = u || [], m = B(S, 2), O = m[0], T = O === void 0 ? 0 : O, E = m[1], C = E;
|
|
942
|
-
process.env.NODE_ENV !== "production" && E && f && (n == null || n(C, f), C = null);
|
|
943
|
-
var b = C || r(), A = [T, b];
|
|
944
|
-
return g ? g(A) : A;
|
|
945
|
-
});
|
|
946
|
-
};
|
|
947
|
-
v.useMemo(
|
|
948
|
-
function() {
|
|
949
|
-
d();
|
|
950
|
-
},
|
|
951
|
-
/* eslint-disable react-hooks/exhaustive-deps */
|
|
952
|
-
[l]
|
|
953
|
-
/* eslint-enable */
|
|
954
|
-
);
|
|
955
|
-
var p = i.get(c);
|
|
956
|
-
process.env.NODE_ENV !== "production" && !p && (d(), p = i.get(c));
|
|
957
|
-
var h = p[1];
|
|
958
|
-
return qa(function() {
|
|
959
|
-
o == null || o(h);
|
|
960
|
-
}, function(y) {
|
|
961
|
-
return d(function(g) {
|
|
962
|
-
var u = B(g, 2), S = u[0], m = u[1];
|
|
963
|
-
return y && S === 0 && (o == null || o(h)), [S + 1, m];
|
|
964
|
-
}), function() {
|
|
965
|
-
i.update(c, function(g) {
|
|
966
|
-
var u = g || [], S = B(u, 2), m = S[0], O = m === void 0 ? 0 : m, T = S[1], E = O - 1;
|
|
967
|
-
return E === 0 ? (s(function() {
|
|
968
|
-
return n == null ? void 0 : n(T, !1);
|
|
969
|
-
}), null) : [O - 1, T];
|
|
970
|
-
});
|
|
971
|
-
};
|
|
972
|
-
}, [l]), h;
|
|
973
|
-
}
|
|
974
|
-
var ci = {}, si = process.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css", ke = /* @__PURE__ */ new Map();
|
|
975
|
-
function li(e) {
|
|
976
|
-
ke.set(e, (ke.get(e) || 0) + 1);
|
|
977
|
-
}
|
|
978
|
-
function ui(e, t) {
|
|
979
|
-
if (typeof document < "u") {
|
|
980
|
-
var r = document.querySelectorAll("style[".concat(fr, '="').concat(e, '"]'));
|
|
981
|
-
r.forEach(function(n) {
|
|
982
|
-
if (n[Be] === t) {
|
|
983
|
-
var o;
|
|
984
|
-
(o = n.parentNode) === null || o === void 0 || o.removeChild(n);
|
|
985
|
-
}
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
var fi = 0;
|
|
990
|
-
function di(e, t) {
|
|
991
|
-
ke.set(e, (ke.get(e) || 0) - 1);
|
|
992
|
-
var r = Array.from(ke.keys()), n = r.filter(function(o) {
|
|
993
|
-
var a = ke.get(o) || 0;
|
|
994
|
-
return a <= 0;
|
|
995
|
-
});
|
|
996
|
-
r.length - n.length > fi && n.forEach(function(o) {
|
|
997
|
-
ui(o, t), ke.delete(o);
|
|
998
|
-
});
|
|
999
|
-
}
|
|
1000
|
-
var pi = function(t, r, n, o) {
|
|
1001
|
-
var a = n.getDerivativeToken(t), i = _(_({}, a), r);
|
|
1002
|
-
return o && (i = o(i)), i;
|
|
1003
|
-
};
|
|
1004
|
-
function vi(e, t) {
|
|
1005
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = At(Dr), o = n.cache.instanceId, a = r.salt, i = a === void 0 ? "" : a, c = r.override, l = c === void 0 ? ci : c, s = r.formatToken, f = r.getComputedToken, d = Ba(function() {
|
|
1006
|
-
return Object.assign.apply(Object, [{}].concat(we(t)));
|
|
1007
|
-
}, t), p = Nt(d), h = Nt(l), y = Jn("token", [i, e.id, p, h], function() {
|
|
1008
|
-
var g = f ? f(d, l, e) : pi(d, l, e, s), u = Wa(g, i);
|
|
1009
|
-
g._tokenKey = u, li(u);
|
|
1010
|
-
var S = "".concat(si, "-").concat($r(u));
|
|
1011
|
-
return g._hashId = S, [g, S];
|
|
1012
|
-
}, function(g) {
|
|
1013
|
-
di(g[0]._tokenKey, o);
|
|
1014
|
-
});
|
|
1015
|
-
return y;
|
|
1016
|
-
}
|
|
1017
|
-
var gi = {
|
|
1018
|
-
animationIterationCount: 1,
|
|
1019
|
-
borderImageOutset: 1,
|
|
1020
|
-
borderImageSlice: 1,
|
|
1021
|
-
borderImageWidth: 1,
|
|
1022
|
-
boxFlex: 1,
|
|
1023
|
-
boxFlexGroup: 1,
|
|
1024
|
-
boxOrdinalGroup: 1,
|
|
1025
|
-
columnCount: 1,
|
|
1026
|
-
columns: 1,
|
|
1027
|
-
flex: 1,
|
|
1028
|
-
flexGrow: 1,
|
|
1029
|
-
flexPositive: 1,
|
|
1030
|
-
flexShrink: 1,
|
|
1031
|
-
flexNegative: 1,
|
|
1032
|
-
flexOrder: 1,
|
|
1033
|
-
gridRow: 1,
|
|
1034
|
-
gridRowEnd: 1,
|
|
1035
|
-
gridRowSpan: 1,
|
|
1036
|
-
gridRowStart: 1,
|
|
1037
|
-
gridColumn: 1,
|
|
1038
|
-
gridColumnEnd: 1,
|
|
1039
|
-
gridColumnSpan: 1,
|
|
1040
|
-
gridColumnStart: 1,
|
|
1041
|
-
msGridRow: 1,
|
|
1042
|
-
msGridRowSpan: 1,
|
|
1043
|
-
msGridColumn: 1,
|
|
1044
|
-
msGridColumnSpan: 1,
|
|
1045
|
-
fontWeight: 1,
|
|
1046
|
-
lineHeight: 1,
|
|
1047
|
-
opacity: 1,
|
|
1048
|
-
order: 1,
|
|
1049
|
-
orphans: 1,
|
|
1050
|
-
tabSize: 1,
|
|
1051
|
-
widows: 1,
|
|
1052
|
-
zIndex: 1,
|
|
1053
|
-
zoom: 1,
|
|
1054
|
-
WebkitLineClamp: 1,
|
|
1055
|
-
// SVG-related properties
|
|
1056
|
-
fillOpacity: 1,
|
|
1057
|
-
floodOpacity: 1,
|
|
1058
|
-
stopOpacity: 1,
|
|
1059
|
-
strokeDasharray: 1,
|
|
1060
|
-
strokeDashoffset: 1,
|
|
1061
|
-
strokeMiterlimit: 1,
|
|
1062
|
-
strokeOpacity: 1,
|
|
1063
|
-
strokeWidth: 1
|
|
1064
|
-
}, Zn = "comm", eo = "rule", to = "decl", hi = "@import", mi = "@keyframes", bi = "@layer", yi = Math.abs, Fr = String.fromCharCode;
|
|
1065
|
-
function ro(e) {
|
|
1066
|
-
return e.trim();
|
|
1067
|
-
}
|
|
1068
|
-
function Tt(e, t, r) {
|
|
1069
|
-
return e.replace(t, r);
|
|
1070
|
-
}
|
|
1071
|
-
function Si(e, t) {
|
|
1072
|
-
return e.indexOf(t);
|
|
1073
|
-
}
|
|
1074
|
-
function at(e, t) {
|
|
1075
|
-
return e.charCodeAt(t) | 0;
|
|
1076
|
-
}
|
|
1077
|
-
function it(e, t, r) {
|
|
1078
|
-
return e.slice(t, r);
|
|
1079
|
-
}
|
|
1080
|
-
function xe(e) {
|
|
1081
|
-
return e.length;
|
|
1082
|
-
}
|
|
1083
|
-
function xi(e) {
|
|
1084
|
-
return e.length;
|
|
1085
|
-
}
|
|
1086
|
-
function pt(e, t) {
|
|
1087
|
-
return t.push(e), e;
|
|
1088
|
-
}
|
|
1089
|
-
var $t = 1, Ge = 1, no = 0, le = 0, U = 0, Xe = "";
|
|
1090
|
-
function zr(e, t, r, n, o, a, i, c) {
|
|
1091
|
-
return { value: e, root: t, parent: r, type: n, props: o, children: a, line: $t, column: Ge, length: i, return: "", siblings: c };
|
|
1092
|
-
}
|
|
1093
|
-
function Ei() {
|
|
1094
|
-
return U;
|
|
1095
|
-
}
|
|
1096
|
-
function Ci() {
|
|
1097
|
-
return U = le > 0 ? at(Xe, --le) : 0, Ge--, U === 10 && (Ge = 1, $t--), U;
|
|
1098
|
-
}
|
|
1099
|
-
function de() {
|
|
1100
|
-
return U = le < no ? at(Xe, le++) : 0, Ge++, U === 10 && (Ge = 1, $t++), U;
|
|
1101
|
-
}
|
|
1102
|
-
function _e() {
|
|
1103
|
-
return at(Xe, le);
|
|
1104
|
-
}
|
|
1105
|
-
function wt() {
|
|
1106
|
-
return le;
|
|
1107
|
-
}
|
|
1108
|
-
function Dt(e, t) {
|
|
1109
|
-
return it(Xe, e, t);
|
|
1110
|
-
}
|
|
1111
|
-
function gr(e) {
|
|
1112
|
-
switch (e) {
|
|
1113
|
-
case 0:
|
|
1114
|
-
case 9:
|
|
1115
|
-
case 10:
|
|
1116
|
-
case 13:
|
|
1117
|
-
case 32:
|
|
1118
|
-
return 5;
|
|
1119
|
-
case 33:
|
|
1120
|
-
case 43:
|
|
1121
|
-
case 44:
|
|
1122
|
-
case 47:
|
|
1123
|
-
case 62:
|
|
1124
|
-
case 64:
|
|
1125
|
-
case 126:
|
|
1126
|
-
case 59:
|
|
1127
|
-
case 123:
|
|
1128
|
-
case 125:
|
|
1129
|
-
return 4;
|
|
1130
|
-
case 58:
|
|
1131
|
-
return 3;
|
|
1132
|
-
case 34:
|
|
1133
|
-
case 39:
|
|
1134
|
-
case 40:
|
|
1135
|
-
case 91:
|
|
1136
|
-
return 2;
|
|
1137
|
-
case 41:
|
|
1138
|
-
case 93:
|
|
1139
|
-
return 1;
|
|
1140
|
-
}
|
|
1141
|
-
return 0;
|
|
1142
|
-
}
|
|
1143
|
-
function Ti(e) {
|
|
1144
|
-
return $t = Ge = 1, no = xe(Xe = e), le = 0, [];
|
|
1145
|
-
}
|
|
1146
|
-
function wi(e) {
|
|
1147
|
-
return Xe = "", e;
|
|
1148
|
-
}
|
|
1149
|
-
function Yt(e) {
|
|
1150
|
-
return ro(Dt(le - 1, hr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1151
|
-
}
|
|
1152
|
-
function Oi(e) {
|
|
1153
|
-
for (; (U = _e()) && U < 33; )
|
|
1154
|
-
de();
|
|
1155
|
-
return gr(e) > 2 || gr(U) > 3 ? "" : " ";
|
|
1156
|
-
}
|
|
1157
|
-
function Pi(e, t) {
|
|
1158
|
-
for (; --t && de() && !(U < 48 || U > 102 || U > 57 && U < 65 || U > 70 && U < 97); )
|
|
1159
|
-
;
|
|
1160
|
-
return Dt(e, wt() + (t < 6 && _e() == 32 && de() == 32));
|
|
1161
|
-
}
|
|
1162
|
-
function hr(e) {
|
|
1163
|
-
for (; de(); )
|
|
1164
|
-
switch (U) {
|
|
1165
|
-
case e:
|
|
1166
|
-
return le;
|
|
1167
|
-
case 34:
|
|
1168
|
-
case 39:
|
|
1169
|
-
e !== 34 && e !== 39 && hr(U);
|
|
1170
|
-
break;
|
|
1171
|
-
case 40:
|
|
1172
|
-
e === 41 && hr(e);
|
|
1173
|
-
break;
|
|
1174
|
-
case 92:
|
|
1175
|
-
de();
|
|
1176
|
-
break;
|
|
1177
|
-
}
|
|
1178
|
-
return le;
|
|
1179
|
-
}
|
|
1180
|
-
function ki(e, t) {
|
|
1181
|
-
for (; de() && e + U !== 47 + 10; )
|
|
1182
|
-
if (e + U === 42 + 42 && _e() === 47)
|
|
1183
|
-
break;
|
|
1184
|
-
return "/*" + Dt(t, le - 1) + "*" + Fr(e === 47 ? e : de());
|
|
1185
|
-
}
|
|
1186
|
-
function Ai(e) {
|
|
1187
|
-
for (; !gr(_e()); )
|
|
1188
|
-
de();
|
|
1189
|
-
return Dt(e, le);
|
|
1190
|
-
}
|
|
1191
|
-
function Mi(e) {
|
|
1192
|
-
return wi(Ot("", null, null, null, [""], e = Ti(e), 0, [0], e));
|
|
1193
|
-
}
|
|
1194
|
-
function Ot(e, t, r, n, o, a, i, c, l) {
|
|
1195
|
-
for (var s = 0, f = 0, d = i, p = 0, h = 0, y = 0, g = 1, u = 1, S = 1, m = 0, O = "", T = o, E = a, C = n, b = O; u; )
|
|
1196
|
-
switch (y = m, m = de()) {
|
|
1197
|
-
case 40:
|
|
1198
|
-
if (y != 108 && at(b, d - 1) == 58) {
|
|
1199
|
-
Si(b += Tt(Yt(m), "&", "&\f"), "&\f") != -1 && (S = -1);
|
|
1200
|
-
break;
|
|
1201
|
-
}
|
|
1202
|
-
case 34:
|
|
1203
|
-
case 39:
|
|
1204
|
-
case 91:
|
|
1205
|
-
b += Yt(m);
|
|
1206
|
-
break;
|
|
1207
|
-
case 9:
|
|
1208
|
-
case 10:
|
|
1209
|
-
case 13:
|
|
1210
|
-
case 32:
|
|
1211
|
-
b += Oi(y);
|
|
1212
|
-
break;
|
|
1213
|
-
case 92:
|
|
1214
|
-
b += Pi(wt() - 1, 7);
|
|
1215
|
-
continue;
|
|
1216
|
-
case 47:
|
|
1217
|
-
switch (_e()) {
|
|
1218
|
-
case 42:
|
|
1219
|
-
case 47:
|
|
1220
|
-
pt(Ri(ki(de(), wt()), t, r, l), l);
|
|
1221
|
-
break;
|
|
1222
|
-
default:
|
|
1223
|
-
b += "/";
|
|
1224
|
-
}
|
|
1225
|
-
break;
|
|
1226
|
-
case 123 * g:
|
|
1227
|
-
c[s++] = xe(b) * S;
|
|
1228
|
-
case 125 * g:
|
|
1229
|
-
case 59:
|
|
1230
|
-
case 0:
|
|
1231
|
-
switch (m) {
|
|
1232
|
-
case 0:
|
|
1233
|
-
case 125:
|
|
1234
|
-
u = 0;
|
|
1235
|
-
case 59 + f:
|
|
1236
|
-
S == -1 && (b = Tt(b, /\f/g, "")), h > 0 && xe(b) - d && pt(h > 32 ? sn(b + ";", n, r, d - 1, l) : sn(Tt(b, " ", "") + ";", n, r, d - 2, l), l);
|
|
1237
|
-
break;
|
|
1238
|
-
case 59:
|
|
1239
|
-
b += ";";
|
|
1240
|
-
default:
|
|
1241
|
-
if (pt(C = cn(b, t, r, s, f, o, c, O, T = [], E = [], d, a), a), m === 123)
|
|
1242
|
-
if (f === 0)
|
|
1243
|
-
Ot(b, t, C, C, T, a, d, c, E);
|
|
1244
|
-
else
|
|
1245
|
-
switch (p === 99 && at(b, 3) === 110 ? 100 : p) {
|
|
1246
|
-
case 100:
|
|
1247
|
-
case 108:
|
|
1248
|
-
case 109:
|
|
1249
|
-
case 115:
|
|
1250
|
-
Ot(e, C, C, n && pt(cn(e, C, C, 0, 0, o, c, O, o, T = [], d, E), E), o, E, d, c, n ? T : E);
|
|
1251
|
-
break;
|
|
1252
|
-
default:
|
|
1253
|
-
Ot(b, C, C, C, [""], E, 0, c, E);
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
s = f = h = 0, g = S = 1, O = b = "", d = i;
|
|
1257
|
-
break;
|
|
1258
|
-
case 58:
|
|
1259
|
-
d = 1 + xe(b), h = y;
|
|
1260
|
-
default:
|
|
1261
|
-
if (g < 1) {
|
|
1262
|
-
if (m == 123)
|
|
1263
|
-
--g;
|
|
1264
|
-
else if (m == 125 && g++ == 0 && Ci() == 125)
|
|
1265
|
-
continue;
|
|
1266
|
-
}
|
|
1267
|
-
switch (b += Fr(m), m * g) {
|
|
1268
|
-
case 38:
|
|
1269
|
-
S = f > 0 ? 1 : (b += "\f", -1);
|
|
1270
|
-
break;
|
|
1271
|
-
case 44:
|
|
1272
|
-
c[s++] = (xe(b) - 1) * S, S = 1;
|
|
1273
|
-
break;
|
|
1274
|
-
case 64:
|
|
1275
|
-
_e() === 45 && (b += Yt(de())), p = _e(), f = d = xe(O = b += Ai(wt())), m++;
|
|
1276
|
-
break;
|
|
1277
|
-
case 45:
|
|
1278
|
-
y === 45 && xe(b) == 2 && (g = 0);
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
return a;
|
|
1282
|
-
}
|
|
1283
|
-
function cn(e, t, r, n, o, a, i, c, l, s, f, d) {
|
|
1284
|
-
for (var p = o - 1, h = o === 0 ? a : [""], y = xi(h), g = 0, u = 0, S = 0; g < n; ++g)
|
|
1285
|
-
for (var m = 0, O = it(e, p + 1, p = yi(u = i[g])), T = e; m < y; ++m)
|
|
1286
|
-
(T = ro(u > 0 ? h[m] + " " + O : Tt(O, /&\f/g, h[m]))) && (l[S++] = T);
|
|
1287
|
-
return zr(e, t, r, o === 0 ? eo : c, l, s, f, d);
|
|
1288
|
-
}
|
|
1289
|
-
function Ri(e, t, r, n) {
|
|
1290
|
-
return zr(e, t, r, Zn, Fr(Ei()), it(e, 2, -2), 0, n);
|
|
1291
|
-
}
|
|
1292
|
-
function sn(e, t, r, n, o) {
|
|
1293
|
-
return zr(e, t, r, to, it(e, 0, n), it(e, n + 1, -1), n, o);
|
|
1294
|
-
}
|
|
1295
|
-
function mr(e, t) {
|
|
1296
|
-
for (var r = "", n = 0; n < e.length; n++)
|
|
1297
|
-
r += t(e[n], n, e, t) || "";
|
|
1298
|
-
return r;
|
|
1299
|
-
}
|
|
1300
|
-
function _i(e, t, r, n) {
|
|
1301
|
-
switch (e.type) {
|
|
1302
|
-
case bi:
|
|
1303
|
-
if (e.children.length)
|
|
1304
|
-
break;
|
|
1305
|
-
case hi:
|
|
1306
|
-
case to:
|
|
1307
|
-
return e.return = e.return || e.value;
|
|
1308
|
-
case Zn:
|
|
1309
|
-
return "";
|
|
1310
|
-
case mi:
|
|
1311
|
-
return e.return = e.value + "{" + mr(e.children, n) + "}";
|
|
1312
|
-
case eo:
|
|
1313
|
-
if (!xe(e.value = e.props.join(",")))
|
|
1314
|
-
return "";
|
|
1315
|
-
}
|
|
1316
|
-
return xe(r = mr(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
1317
|
-
}
|
|
1318
|
-
function oo(e, t) {
|
|
1319
|
-
var r = t.path, n = t.parentSelectors;
|
|
1320
|
-
Ne(!1, "[Ant Design CSS-in-JS] ".concat(r ? "Error in ".concat(r, ": ") : "").concat(e).concat(n.length ? " Selector: ".concat(n.join(" | ")) : ""));
|
|
1321
|
-
}
|
|
1322
|
-
var ji = function(t, r, n) {
|
|
1323
|
-
if (t === "content") {
|
|
1324
|
-
var o = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, a = ["normal", "none", "initial", "inherit", "unset"];
|
|
1325
|
-
(typeof r != "string" || a.indexOf(r) === -1 && !o.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && oo("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r, "\"'`."), n);
|
|
1326
|
-
}
|
|
1327
|
-
}, Ii = function(t, r, n) {
|
|
1328
|
-
t === "animation" && n.hashId && r !== "none" && oo("You seem to be using hashed animation '".concat(r, "', in which case 'animationName' with Keyframe as value is recommended."), n);
|
|
1329
|
-
}, ln = "data-ant-cssinjs-cache-path", ao = "_FILE_STYLE__", je, io = !0;
|
|
1330
|
-
function Ni() {
|
|
1331
|
-
if (!je && (je = {}, ge())) {
|
|
1332
|
-
var e = document.createElement("div");
|
|
1333
|
-
e.className = ln, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e);
|
|
1334
|
-
var t = getComputedStyle(e).content || "";
|
|
1335
|
-
t = t.replace(/^"/, "").replace(/"$/, ""), t.split(";").forEach(function(o) {
|
|
1336
|
-
var a = o.split(":"), i = B(a, 2), c = i[0], l = i[1];
|
|
1337
|
-
je[c] = l;
|
|
1338
|
-
});
|
|
1339
|
-
var r = document.querySelector("style[".concat(ln, "]"));
|
|
1340
|
-
if (r) {
|
|
1341
|
-
var n;
|
|
1342
|
-
io = !1, (n = r.parentNode) === null || n === void 0 || n.removeChild(r);
|
|
1343
|
-
}
|
|
1344
|
-
document.body.removeChild(e);
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
function Li(e) {
|
|
1348
|
-
return Ni(), !!je[e];
|
|
1349
|
-
}
|
|
1350
|
-
function $i(e) {
|
|
1351
|
-
var t = je[e], r = null;
|
|
1352
|
-
if (t && ge())
|
|
1353
|
-
if (io)
|
|
1354
|
-
r = ao;
|
|
1355
|
-
else {
|
|
1356
|
-
var n = document.querySelector("style[".concat(Re, '="').concat(je[e], '"]'));
|
|
1357
|
-
n ? r = n.innerHTML : delete je[e];
|
|
1358
|
-
}
|
|
1359
|
-
return [r, t];
|
|
1360
|
-
}
|
|
1361
|
-
var un = ge(), co = "_skip_check_", so = "_multi_value_";
|
|
1362
|
-
function fn(e) {
|
|
1363
|
-
var t = mr(Mi(e), _i);
|
|
1364
|
-
return t.replace(/\{%%%\:[^;];}/g, ";");
|
|
1365
|
-
}
|
|
1366
|
-
function Di(e) {
|
|
1367
|
-
return Y(e) === "object" && e && (co in e || so in e);
|
|
1368
|
-
}
|
|
1369
|
-
function Hi(e, t, r) {
|
|
1370
|
-
if (!t)
|
|
1371
|
-
return e;
|
|
1372
|
-
var n = ".".concat(t), o = r === "low" ? ":where(".concat(n, ")") : n, a = e.split(",").map(function(i) {
|
|
1373
|
-
var c, l = i.trim().split(/\s+/), s = l[0] || "", f = ((c = s.match(/^\w+/)) === null || c === void 0 ? void 0 : c[0]) || "";
|
|
1374
|
-
return s = "".concat(f).concat(o).concat(s.slice(f.length)), [s].concat(we(l.slice(1))).join(" ");
|
|
1375
|
-
});
|
|
1376
|
-
return a.join(",");
|
|
1377
|
-
}
|
|
1378
|
-
var Fi = function e(t) {
|
|
1379
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
1380
|
-
root: !0,
|
|
1381
|
-
parentSelectors: []
|
|
1382
|
-
}, o = n.root, a = n.injectHash, i = n.parentSelectors, c = r.hashId, l = r.layer, s = r.path, f = r.hashPriority, d = r.transformers, p = d === void 0 ? [] : d, h = r.linters, y = h === void 0 ? [] : h, g = "", u = {};
|
|
1383
|
-
function S(C) {
|
|
1384
|
-
var b = C.getName(c);
|
|
1385
|
-
if (!u[b]) {
|
|
1386
|
-
var A = e(C.style, r, {
|
|
1387
|
-
root: !1,
|
|
1388
|
-
parentSelectors: i
|
|
1389
|
-
}), $ = B(A, 1), w = $[0];
|
|
1390
|
-
u[b] = "@keyframes ".concat(C.getName(c)).concat(w);
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
function m(C) {
|
|
1394
|
-
var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1395
|
-
return C.forEach(function(A) {
|
|
1396
|
-
Array.isArray(A) ? m(A, b) : A && b.push(A);
|
|
1397
|
-
}), b;
|
|
1398
|
-
}
|
|
1399
|
-
var O = m(Array.isArray(t) ? t : [t]);
|
|
1400
|
-
if (O.forEach(function(C) {
|
|
1401
|
-
var b = typeof C == "string" && !o ? {} : C;
|
|
1402
|
-
if (typeof b == "string")
|
|
1403
|
-
g += "".concat(b, `
|
|
1404
|
-
`);
|
|
1405
|
-
else if (b._keyframe)
|
|
1406
|
-
S(b);
|
|
1407
|
-
else {
|
|
1408
|
-
var A = p.reduce(function($, w) {
|
|
1409
|
-
var R;
|
|
1410
|
-
return (w == null || (R = w.visit) === null || R === void 0 ? void 0 : R.call(w, $)) || $;
|
|
1411
|
-
}, b);
|
|
1412
|
-
Object.keys(A).forEach(function($) {
|
|
1413
|
-
var w = A[$];
|
|
1414
|
-
if (Y(w) === "object" && w && ($ !== "animationName" || !w._keyframe) && !Di(w)) {
|
|
1415
|
-
var R = !1, P = $.trim(), k = !1;
|
|
1416
|
-
(o || a) && c ? P.startsWith("@") ? R = !0 : P = Hi($, c, f) : o && !c && (P === "&" || P === "") && (P = "", k = !0);
|
|
1417
|
-
var N = e(w, r, {
|
|
1418
|
-
root: k,
|
|
1419
|
-
injectHash: R,
|
|
1420
|
-
parentSelectors: [].concat(we(i), [P])
|
|
1421
|
-
}), M = B(N, 2), D = M[0], V = M[1];
|
|
1422
|
-
u = _(_({}, u), V), g += "".concat(P).concat(D);
|
|
1423
|
-
} else {
|
|
1424
|
-
let H = function(F, z) {
|
|
1425
|
-
process.env.NODE_ENV !== "production" && (Y(w) !== "object" || !(w != null && w[co])) && [ji, Ii].concat(we(y)).forEach(function(ce) {
|
|
1426
|
-
return ce(F, z, {
|
|
1427
|
-
path: s,
|
|
1428
|
-
hashId: c,
|
|
1429
|
-
parentSelectors: i
|
|
1430
|
-
});
|
|
1431
|
-
});
|
|
1432
|
-
var te = F.replace(/[A-Z]/g, function(ce) {
|
|
1433
|
-
return "-".concat(ce.toLowerCase());
|
|
1434
|
-
}), Q = z;
|
|
1435
|
-
!gi[F] && typeof Q == "number" && Q !== 0 && (Q = "".concat(Q, "px")), F === "animationName" && z !== null && z !== void 0 && z._keyframe && (S(z), Q = z.getName(c)), g += "".concat(te, ":").concat(Q, ";");
|
|
1436
|
-
};
|
|
1437
|
-
var G, W = (G = w == null ? void 0 : w.value) !== null && G !== void 0 ? G : w;
|
|
1438
|
-
Y(w) === "object" && w !== null && w !== void 0 && w[so] && Array.isArray(W) ? W.forEach(function(F) {
|
|
1439
|
-
H($, F);
|
|
1440
|
-
}) : H($, W);
|
|
1441
|
-
}
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
}), !o)
|
|
1445
|
-
g = "{".concat(g, "}");
|
|
1446
|
-
else if (l && Ga()) {
|
|
1447
|
-
var T = l.split(","), E = T[T.length - 1].trim();
|
|
1448
|
-
g = "@layer ".concat(E, " {").concat(g, "}"), T.length > 1 && (g = "@layer ".concat(l, "{%%%:%}").concat(g));
|
|
1449
|
-
}
|
|
1450
|
-
return [g, u];
|
|
1451
|
-
};
|
|
1452
|
-
function zi(e, t) {
|
|
1453
|
-
return $r("".concat(e.join("%")).concat(t));
|
|
1454
|
-
}
|
|
1455
|
-
function Bi() {
|
|
1456
|
-
return null;
|
|
1457
|
-
}
|
|
1458
|
-
function br(e, t) {
|
|
1459
|
-
var r = e.token, n = e.path, o = e.hashId, a = e.layer, i = e.nonce, c = e.clientOnly, l = e.order, s = l === void 0 ? 0 : l, f = v.useContext(Dr), d = f.autoClear, p = f.mock, h = f.defaultCache, y = f.hashPriority, g = f.container, u = f.ssrInline, S = f.transformers, m = f.linters, O = f.cache, T = r._tokenKey, E = [T].concat(we(n)), C = un;
|
|
1460
|
-
process.env.NODE_ENV !== "production" && p !== void 0 && (C = p === "client");
|
|
1461
|
-
var b = Jn(
|
|
1462
|
-
"style",
|
|
1463
|
-
E,
|
|
1464
|
-
// Create cache if needed
|
|
1465
|
-
function() {
|
|
1466
|
-
var P = E.join("|");
|
|
1467
|
-
if (Li(P)) {
|
|
1468
|
-
var k = $i(P), N = B(k, 2), M = N[0], D = N[1];
|
|
1469
|
-
if (M)
|
|
1470
|
-
return [M, T, D, {}, c, s];
|
|
1471
|
-
}
|
|
1472
|
-
var V = t(), G = Fi(V, {
|
|
1473
|
-
hashId: o,
|
|
1474
|
-
hashPriority: y,
|
|
1475
|
-
layer: a,
|
|
1476
|
-
path: n.join("-"),
|
|
1477
|
-
transformers: S,
|
|
1478
|
-
linters: m
|
|
1479
|
-
}), W = B(G, 2), H = W[0], F = W[1], z = fn(H), te = zi(E, z);
|
|
1480
|
-
return [z, T, te, F, c, s];
|
|
1481
|
-
},
|
|
1482
|
-
// Remove cache if no need
|
|
1483
|
-
function(P, k) {
|
|
1484
|
-
var N = B(P, 3), M = N[2];
|
|
1485
|
-
(k || d) && un && Xn(M, {
|
|
1486
|
-
mark: Re
|
|
1487
|
-
});
|
|
1488
|
-
},
|
|
1489
|
-
// Effect: Inject style here
|
|
1490
|
-
function(P) {
|
|
1491
|
-
var k = B(P, 4), N = k[0];
|
|
1492
|
-
k[1];
|
|
1493
|
-
var M = k[2], D = k[3];
|
|
1494
|
-
if (C && N !== ao) {
|
|
1495
|
-
var V = {
|
|
1496
|
-
mark: Re,
|
|
1497
|
-
prepend: "queue",
|
|
1498
|
-
attachTo: g,
|
|
1499
|
-
priority: s
|
|
1500
|
-
}, G = typeof i == "function" ? i() : i;
|
|
1501
|
-
G && (V.csp = {
|
|
1502
|
-
nonce: G
|
|
1503
|
-
});
|
|
1504
|
-
var W = It(N, M, V);
|
|
1505
|
-
W[Be] = O.instanceId, W.setAttribute(fr, T), process.env.NODE_ENV !== "production" && W.setAttribute(_a, E.join("|")), Object.keys(D).forEach(function(H) {
|
|
1506
|
-
It(fn(D[H]), "_effect-".concat(H), V);
|
|
1507
|
-
});
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
), A = B(b, 3), $ = A[0], w = A[1], R = A[2];
|
|
1511
|
-
return function(P) {
|
|
1512
|
-
var k;
|
|
1513
|
-
if (!u || C || !h)
|
|
1514
|
-
k = /* @__PURE__ */ v.createElement(Bi, null);
|
|
1515
|
-
else {
|
|
1516
|
-
var N;
|
|
1517
|
-
k = /* @__PURE__ */ v.createElement("style", Rt({}, (N = {}, L(N, fr, w), L(N, Re, R), N), {
|
|
1518
|
-
dangerouslySetInnerHTML: {
|
|
1519
|
-
__html: $
|
|
1520
|
-
}
|
|
1521
|
-
}));
|
|
1522
|
-
}
|
|
1523
|
-
return /* @__PURE__ */ v.createElement(v.Fragment, null, k, P);
|
|
1524
|
-
};
|
|
1525
|
-
}
|
|
1526
|
-
function Fe(e) {
|
|
1527
|
-
return e.notSplit = !0, e;
|
|
1528
|
-
}
|
|
1529
|
-
Fe(["borderTop", "borderBottom"]), Fe(["borderTop"]), Fe(["borderBottom"]), Fe(["borderLeft", "borderRight"]), Fe(["borderLeft"]), Fe(["borderRight"]);
|
|
1530
|
-
var Wi = /* @__PURE__ */ _r({});
|
|
1531
|
-
const Vi = Wi;
|
|
1532
|
-
function Gi(e) {
|
|
1533
|
-
return Yn(e) || Hn(e) || Nr(e) || Kn();
|
|
1534
|
-
}
|
|
1535
|
-
function yr(e, t) {
|
|
1536
|
-
for (var r = e, n = 0; n < t.length; n += 1) {
|
|
1537
|
-
if (r == null)
|
|
1538
|
-
return;
|
|
1539
|
-
r = r[t[n]];
|
|
1540
|
-
}
|
|
1541
|
-
return r;
|
|
1542
|
-
}
|
|
1543
|
-
function lo(e, t, r, n) {
|
|
1544
|
-
if (!t.length)
|
|
1545
|
-
return r;
|
|
1546
|
-
var o = Gi(t), a = o[0], i = o.slice(1), c;
|
|
1547
|
-
return !e && typeof a == "number" ? c = [] : Array.isArray(e) ? c = we(e) : c = _({}, e), n && r === void 0 && i.length === 1 ? delete c[a][i[0]] : c[a] = lo(c[a], i, r, n), c;
|
|
1548
|
-
}
|
|
1549
|
-
function Kt(e, t, r) {
|
|
1550
|
-
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
1551
|
-
return t.length && n && r === void 0 && !yr(e, t.slice(0, -1)) ? e : lo(e, t, r, n);
|
|
1552
|
-
}
|
|
1553
|
-
function Ui(e) {
|
|
1554
|
-
return Y(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
|
|
1555
|
-
}
|
|
1556
|
-
function dn(e) {
|
|
1557
|
-
return Array.isArray(e) ? [] : {};
|
|
1558
|
-
}
|
|
1559
|
-
var Xi = typeof Reflect > "u" ? Object.keys : Reflect.ownKeys;
|
|
1560
|
-
function Yi() {
|
|
1561
|
-
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
1562
|
-
t[r] = arguments[r];
|
|
1563
|
-
var n = dn(t[0]);
|
|
1564
|
-
return t.forEach(function(o) {
|
|
1565
|
-
function a(i, c) {
|
|
1566
|
-
var l = new Set(c), s = yr(o, i), f = Array.isArray(s);
|
|
1567
|
-
if (f || Ui(s)) {
|
|
1568
|
-
if (!l.has(s)) {
|
|
1569
|
-
l.add(s);
|
|
1570
|
-
var d = yr(n, i);
|
|
1571
|
-
f ? n = Kt(n, i, []) : (!d || Y(d) !== "object") && (n = Kt(n, i, dn(s))), Xi(s).forEach(function(p) {
|
|
1572
|
-
a([].concat(we(i), [p]), l);
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
} else
|
|
1576
|
-
n = Kt(n, i, s);
|
|
1577
|
-
}
|
|
1578
|
-
a([]);
|
|
1579
|
-
}), n;
|
|
1580
|
-
}
|
|
1581
|
-
function uo() {
|
|
1582
|
-
}
|
|
1583
|
-
let Se = null;
|
|
1584
|
-
function Ki() {
|
|
1585
|
-
Se = null, jn();
|
|
1586
|
-
}
|
|
1587
|
-
let Br = uo;
|
|
1588
|
-
process.env.NODE_ENV !== "production" && (Br = (e, t, r) => {
|
|
1589
|
-
Ne(e, `[antd: ${t}] ${r}`), process.env.NODE_ENV === "test" && Ki();
|
|
1590
|
-
});
|
|
1591
|
-
const fo = /* @__PURE__ */ v.createContext({}), po = process.env.NODE_ENV !== "production" ? (e) => {
|
|
1592
|
-
const {
|
|
1593
|
-
strict: t
|
|
1594
|
-
} = v.useContext(fo), r = (n, o, a) => {
|
|
1595
|
-
if (!n)
|
|
1596
|
-
if (t === !1 && o === "deprecated") {
|
|
1597
|
-
const i = Se;
|
|
1598
|
-
Se || (Se = {}), Se[e] = Se[e] || [], Se[e].includes(a || "") || Se[e].push(a || ""), i || console.warn("[antd] There exists deprecated usage in your code:", Se);
|
|
1599
|
-
} else
|
|
1600
|
-
process.env.NODE_ENV !== "production" && Br(n, e, a);
|
|
1601
|
-
};
|
|
1602
|
-
return r.deprecated = (n, o, a, i) => {
|
|
1603
|
-
r(n, "deprecated", `\`${o}\` is deprecated. Please use \`${a}\` instead.${i ? ` ${i}` : ""}`);
|
|
1604
|
-
}, r;
|
|
1605
|
-
} : () => {
|
|
1606
|
-
const e = () => {
|
|
1607
|
-
};
|
|
1608
|
-
return e.deprecated = uo, e;
|
|
1609
|
-
}, Ht = Br, qi = /* @__PURE__ */ _r(void 0), Qi = {
|
|
1610
|
-
// Options.jsx
|
|
1611
|
-
items_per_page: "/ page",
|
|
1612
|
-
jump_to: "Go to",
|
|
1613
|
-
jump_to_confirm: "confirm",
|
|
1614
|
-
page: "Page",
|
|
1615
|
-
// Pagination.jsx
|
|
1616
|
-
prev_page: "Previous Page",
|
|
1617
|
-
next_page: "Next Page",
|
|
1618
|
-
prev_5: "Previous 5 Pages",
|
|
1619
|
-
next_5: "Next 5 Pages",
|
|
1620
|
-
prev_3: "Previous 3 Pages",
|
|
1621
|
-
next_3: "Next 3 Pages",
|
|
1622
|
-
page_size: "Page Size"
|
|
1623
|
-
};
|
|
1624
|
-
var Ji = {
|
|
1625
|
-
locale: "en_US",
|
|
1626
|
-
today: "Today",
|
|
1627
|
-
now: "Now",
|
|
1628
|
-
backToToday: "Back to today",
|
|
1629
|
-
ok: "OK",
|
|
1630
|
-
clear: "Clear",
|
|
1631
|
-
month: "Month",
|
|
1632
|
-
year: "Year",
|
|
1633
|
-
timeSelect: "select time",
|
|
1634
|
-
dateSelect: "select date",
|
|
1635
|
-
weekSelect: "Choose a week",
|
|
1636
|
-
monthSelect: "Choose a month",
|
|
1637
|
-
yearSelect: "Choose a year",
|
|
1638
|
-
decadeSelect: "Choose a decade",
|
|
1639
|
-
yearFormat: "YYYY",
|
|
1640
|
-
dateFormat: "M/D/YYYY",
|
|
1641
|
-
dayFormat: "D",
|
|
1642
|
-
dateTimeFormat: "M/D/YYYY HH:mm:ss",
|
|
1643
|
-
monthBeforeYear: !0,
|
|
1644
|
-
previousMonth: "Previous month (PageUp)",
|
|
1645
|
-
nextMonth: "Next month (PageDown)",
|
|
1646
|
-
previousYear: "Last year (Control + left)",
|
|
1647
|
-
nextYear: "Next year (Control + right)",
|
|
1648
|
-
previousDecade: "Last decade",
|
|
1649
|
-
nextDecade: "Next decade",
|
|
1650
|
-
previousCentury: "Last century",
|
|
1651
|
-
nextCentury: "Next century"
|
|
1652
|
-
};
|
|
1653
|
-
const Zi = {
|
|
1654
|
-
placeholder: "Select time",
|
|
1655
|
-
rangePlaceholder: ["Start time", "End time"]
|
|
1656
|
-
}, vo = Zi, ec = {
|
|
1657
|
-
lang: Object.assign({
|
|
1658
|
-
placeholder: "Select date",
|
|
1659
|
-
yearPlaceholder: "Select year",
|
|
1660
|
-
quarterPlaceholder: "Select quarter",
|
|
1661
|
-
monthPlaceholder: "Select month",
|
|
1662
|
-
weekPlaceholder: "Select week",
|
|
1663
|
-
rangePlaceholder: ["Start date", "End date"],
|
|
1664
|
-
rangeYearPlaceholder: ["Start year", "End year"],
|
|
1665
|
-
rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
|
|
1666
|
-
rangeMonthPlaceholder: ["Start month", "End month"],
|
|
1667
|
-
rangeWeekPlaceholder: ["Start week", "End week"]
|
|
1668
|
-
}, Ji),
|
|
1669
|
-
timePickerLocale: Object.assign({}, vo)
|
|
1670
|
-
}, pn = ec, oe = "${label} is not a valid ${type}", tc = {
|
|
1671
|
-
locale: "en",
|
|
1672
|
-
Pagination: Qi,
|
|
1673
|
-
DatePicker: pn,
|
|
1674
|
-
TimePicker: vo,
|
|
1675
|
-
Calendar: pn,
|
|
1676
|
-
global: {
|
|
1677
|
-
placeholder: "Please select"
|
|
1678
|
-
},
|
|
1679
|
-
Table: {
|
|
1680
|
-
filterTitle: "Filter menu",
|
|
1681
|
-
filterConfirm: "OK",
|
|
1682
|
-
filterReset: "Reset",
|
|
1683
|
-
filterEmptyText: "No filters",
|
|
1684
|
-
filterCheckall: "Select all items",
|
|
1685
|
-
filterSearchPlaceholder: "Search in filters",
|
|
1686
|
-
emptyText: "No data",
|
|
1687
|
-
selectAll: "Select current page",
|
|
1688
|
-
selectInvert: "Invert current page",
|
|
1689
|
-
selectNone: "Clear all data",
|
|
1690
|
-
selectionAll: "Select all data",
|
|
1691
|
-
sortTitle: "Sort",
|
|
1692
|
-
expand: "Expand row",
|
|
1693
|
-
collapse: "Collapse row",
|
|
1694
|
-
triggerDesc: "Click to sort descending",
|
|
1695
|
-
triggerAsc: "Click to sort ascending",
|
|
1696
|
-
cancelSort: "Click to cancel sorting"
|
|
1697
|
-
},
|
|
1698
|
-
Tour: {
|
|
1699
|
-
Next: "Next",
|
|
1700
|
-
Previous: "Previous",
|
|
1701
|
-
Finish: "Finish"
|
|
1702
|
-
},
|
|
1703
|
-
Modal: {
|
|
1704
|
-
okText: "OK",
|
|
1705
|
-
cancelText: "Cancel",
|
|
1706
|
-
justOkText: "OK"
|
|
1707
|
-
},
|
|
1708
|
-
Popconfirm: {
|
|
1709
|
-
okText: "OK",
|
|
1710
|
-
cancelText: "Cancel"
|
|
1711
|
-
},
|
|
1712
|
-
Transfer: {
|
|
1713
|
-
titles: ["", ""],
|
|
1714
|
-
searchPlaceholder: "Search here",
|
|
1715
|
-
itemUnit: "item",
|
|
1716
|
-
itemsUnit: "items",
|
|
1717
|
-
remove: "Remove",
|
|
1718
|
-
selectCurrent: "Select current page",
|
|
1719
|
-
removeCurrent: "Remove current page",
|
|
1720
|
-
selectAll: "Select all data",
|
|
1721
|
-
removeAll: "Remove all data",
|
|
1722
|
-
selectInvert: "Invert current page"
|
|
1723
|
-
},
|
|
1724
|
-
Upload: {
|
|
1725
|
-
uploading: "Uploading...",
|
|
1726
|
-
removeFile: "Remove file",
|
|
1727
|
-
uploadError: "Upload error",
|
|
1728
|
-
previewFile: "Preview file",
|
|
1729
|
-
downloadFile: "Download file"
|
|
1730
|
-
},
|
|
1731
|
-
Empty: {
|
|
1732
|
-
description: "No data"
|
|
1733
|
-
},
|
|
1734
|
-
Icon: {
|
|
1735
|
-
icon: "icon"
|
|
1736
|
-
},
|
|
1737
|
-
Text: {
|
|
1738
|
-
edit: "Edit",
|
|
1739
|
-
copy: "Copy",
|
|
1740
|
-
copied: "Copied",
|
|
1741
|
-
expand: "Expand"
|
|
1742
|
-
},
|
|
1743
|
-
PageHeader: {
|
|
1744
|
-
back: "Back"
|
|
1745
|
-
},
|
|
1746
|
-
Form: {
|
|
1747
|
-
optional: "(optional)",
|
|
1748
|
-
defaultValidateMessages: {
|
|
1749
|
-
default: "Field validation error for ${label}",
|
|
1750
|
-
required: "Please enter ${label}",
|
|
1751
|
-
enum: "${label} must be one of [${enum}]",
|
|
1752
|
-
whitespace: "${label} cannot be a blank character",
|
|
1753
|
-
date: {
|
|
1754
|
-
format: "${label} date format is invalid",
|
|
1755
|
-
parse: "${label} cannot be converted to a date",
|
|
1756
|
-
invalid: "${label} is an invalid date"
|
|
1757
|
-
},
|
|
1758
|
-
types: {
|
|
1759
|
-
string: oe,
|
|
1760
|
-
method: oe,
|
|
1761
|
-
array: oe,
|
|
1762
|
-
object: oe,
|
|
1763
|
-
number: oe,
|
|
1764
|
-
date: oe,
|
|
1765
|
-
boolean: oe,
|
|
1766
|
-
integer: oe,
|
|
1767
|
-
float: oe,
|
|
1768
|
-
regexp: oe,
|
|
1769
|
-
email: oe,
|
|
1770
|
-
url: oe,
|
|
1771
|
-
hex: oe
|
|
1772
|
-
},
|
|
1773
|
-
string: {
|
|
1774
|
-
len: "${label} must be ${len} characters",
|
|
1775
|
-
min: "${label} must be at least ${min} characters",
|
|
1776
|
-
max: "${label} must be up to ${max} characters",
|
|
1777
|
-
range: "${label} must be between ${min}-${max} characters"
|
|
1778
|
-
},
|
|
1779
|
-
number: {
|
|
1780
|
-
len: "${label} must be equal to ${len}",
|
|
1781
|
-
min: "${label} must be minimum ${min}",
|
|
1782
|
-
max: "${label} must be maximum ${max}",
|
|
1783
|
-
range: "${label} must be between ${min}-${max}"
|
|
1784
|
-
},
|
|
1785
|
-
array: {
|
|
1786
|
-
len: "Must be ${len} ${label}",
|
|
1787
|
-
min: "At least ${min} ${label}",
|
|
1788
|
-
max: "At most ${max} ${label}",
|
|
1789
|
-
range: "The amount of ${label} must be between ${min}-${max}"
|
|
1790
|
-
},
|
|
1791
|
-
pattern: {
|
|
1792
|
-
mismatch: "${label} does not match the pattern ${pattern}"
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
},
|
|
1796
|
-
Image: {
|
|
1797
|
-
preview: "Preview"
|
|
1798
|
-
},
|
|
1799
|
-
QRCode: {
|
|
1800
|
-
expired: "QR code expired",
|
|
1801
|
-
refresh: "Refresh"
|
|
1802
|
-
},
|
|
1803
|
-
ColorPicker: {
|
|
1804
|
-
presetEmpty: "Empty"
|
|
1805
|
-
}
|
|
1806
|
-
}, Ft = tc;
|
|
1807
|
-
Object.assign({}, Ft.Modal);
|
|
1808
|
-
let Pt = [];
|
|
1809
|
-
const vn = () => Pt.reduce((e, t) => Object.assign(Object.assign({}, e), t), Ft.Modal);
|
|
1810
|
-
function rc(e) {
|
|
1811
|
-
if (e) {
|
|
1812
|
-
const t = Object.assign({}, e);
|
|
1813
|
-
return Pt.push(t), vn(), () => {
|
|
1814
|
-
Pt = Pt.filter((r) => r !== t), vn();
|
|
1815
|
-
};
|
|
1816
|
-
}
|
|
1817
|
-
Object.assign({}, Ft.Modal);
|
|
1818
|
-
}
|
|
1819
|
-
const nc = /* @__PURE__ */ _r(void 0), go = nc, ho = "internalMark", mo = (e) => {
|
|
1820
|
-
const {
|
|
1821
|
-
locale: t = {},
|
|
1822
|
-
children: r,
|
|
1823
|
-
_ANT_MARK__: n
|
|
1824
|
-
} = e;
|
|
1825
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1826
|
-
const a = po("LocaleProvider");
|
|
1827
|
-
process.env.NODE_ENV !== "production" && a(n === ho, "deprecated", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale");
|
|
1828
|
-
}
|
|
1829
|
-
v.useEffect(() => rc(t && t.Modal), [t]);
|
|
1830
|
-
const o = v.useMemo(() => Object.assign(Object.assign({}, t), {
|
|
1831
|
-
exist: !0
|
|
1832
|
-
}), [t]);
|
|
1833
|
-
return /* @__PURE__ */ v.createElement(go.Provider, {
|
|
1834
|
-
value: o
|
|
1835
|
-
}, r);
|
|
1836
|
-
};
|
|
1837
|
-
process.env.NODE_ENV !== "production" && (mo.displayName = "LocaleProvider");
|
|
1838
|
-
const oc = mo;
|
|
1839
|
-
function ee(e, t) {
|
|
1840
|
-
ac(e) && (e = "100%");
|
|
1841
|
-
var r = ic(e);
|
|
1842
|
-
return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), r && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
|
|
1843
|
-
}
|
|
1844
|
-
function vt(e) {
|
|
1845
|
-
return Math.min(1, Math.max(0, e));
|
|
1846
|
-
}
|
|
1847
|
-
function ac(e) {
|
|
1848
|
-
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
1849
|
-
}
|
|
1850
|
-
function ic(e) {
|
|
1851
|
-
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
1852
|
-
}
|
|
1853
|
-
function bo(e) {
|
|
1854
|
-
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
1855
|
-
}
|
|
1856
|
-
function gt(e) {
|
|
1857
|
-
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
1858
|
-
}
|
|
1859
|
-
function Ae(e) {
|
|
1860
|
-
return e.length === 1 ? "0" + e : String(e);
|
|
1861
|
-
}
|
|
1862
|
-
function cc(e, t, r) {
|
|
1863
|
-
return {
|
|
1864
|
-
r: ee(e, 255) * 255,
|
|
1865
|
-
g: ee(t, 255) * 255,
|
|
1866
|
-
b: ee(r, 255) * 255
|
|
1867
|
-
};
|
|
1868
|
-
}
|
|
1869
|
-
function gn(e, t, r) {
|
|
1870
|
-
e = ee(e, 255), t = ee(t, 255), r = ee(r, 255);
|
|
1871
|
-
var n = Math.max(e, t, r), o = Math.min(e, t, r), a = 0, i = 0, c = (n + o) / 2;
|
|
1872
|
-
if (n === o)
|
|
1873
|
-
i = 0, a = 0;
|
|
1874
|
-
else {
|
|
1875
|
-
var l = n - o;
|
|
1876
|
-
switch (i = c > 0.5 ? l / (2 - n - o) : l / (n + o), n) {
|
|
1877
|
-
case e:
|
|
1878
|
-
a = (t - r) / l + (t < r ? 6 : 0);
|
|
1879
|
-
break;
|
|
1880
|
-
case t:
|
|
1881
|
-
a = (r - e) / l + 2;
|
|
1882
|
-
break;
|
|
1883
|
-
case r:
|
|
1884
|
-
a = (e - t) / l + 4;
|
|
1885
|
-
break;
|
|
1886
|
-
}
|
|
1887
|
-
a /= 6;
|
|
1888
|
-
}
|
|
1889
|
-
return { h: a, s: i, l: c };
|
|
1890
|
-
}
|
|
1891
|
-
function qt(e, t, r) {
|
|
1892
|
-
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * (6 * r) : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
|
|
1893
|
-
}
|
|
1894
|
-
function sc(e, t, r) {
|
|
1895
|
-
var n, o, a;
|
|
1896
|
-
if (e = ee(e, 360), t = ee(t, 100), r = ee(r, 100), t === 0)
|
|
1897
|
-
o = r, a = r, n = r;
|
|
1898
|
-
else {
|
|
1899
|
-
var i = r < 0.5 ? r * (1 + t) : r + t - r * t, c = 2 * r - i;
|
|
1900
|
-
n = qt(c, i, e + 1 / 3), o = qt(c, i, e), a = qt(c, i, e - 1 / 3);
|
|
1901
|
-
}
|
|
1902
|
-
return { r: n * 255, g: o * 255, b: a * 255 };
|
|
1903
|
-
}
|
|
1904
|
-
function Sr(e, t, r) {
|
|
1905
|
-
e = ee(e, 255), t = ee(t, 255), r = ee(r, 255);
|
|
1906
|
-
var n = Math.max(e, t, r), o = Math.min(e, t, r), a = 0, i = n, c = n - o, l = n === 0 ? 0 : c / n;
|
|
1907
|
-
if (n === o)
|
|
1908
|
-
a = 0;
|
|
1909
|
-
else {
|
|
1910
|
-
switch (n) {
|
|
1911
|
-
case e:
|
|
1912
|
-
a = (t - r) / c + (t < r ? 6 : 0);
|
|
1913
|
-
break;
|
|
1914
|
-
case t:
|
|
1915
|
-
a = (r - e) / c + 2;
|
|
1916
|
-
break;
|
|
1917
|
-
case r:
|
|
1918
|
-
a = (e - t) / c + 4;
|
|
1919
|
-
break;
|
|
1920
|
-
}
|
|
1921
|
-
a /= 6;
|
|
1922
|
-
}
|
|
1923
|
-
return { h: a, s: l, v: i };
|
|
1924
|
-
}
|
|
1925
|
-
function lc(e, t, r) {
|
|
1926
|
-
e = ee(e, 360) * 6, t = ee(t, 100), r = ee(r, 100);
|
|
1927
|
-
var n = Math.floor(e), o = e - n, a = r * (1 - t), i = r * (1 - o * t), c = r * (1 - (1 - o) * t), l = n % 6, s = [r, i, a, a, c, r][l], f = [c, r, r, i, a, a][l], d = [a, a, c, r, r, i][l];
|
|
1928
|
-
return { r: s * 255, g: f * 255, b: d * 255 };
|
|
1929
|
-
}
|
|
1930
|
-
function xr(e, t, r, n) {
|
|
1931
|
-
var o = [
|
|
1932
|
-
Ae(Math.round(e).toString(16)),
|
|
1933
|
-
Ae(Math.round(t).toString(16)),
|
|
1934
|
-
Ae(Math.round(r).toString(16))
|
|
1935
|
-
];
|
|
1936
|
-
return n && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
|
|
1937
|
-
}
|
|
1938
|
-
function uc(e, t, r, n, o) {
|
|
1939
|
-
var a = [
|
|
1940
|
-
Ae(Math.round(e).toString(16)),
|
|
1941
|
-
Ae(Math.round(t).toString(16)),
|
|
1942
|
-
Ae(Math.round(r).toString(16)),
|
|
1943
|
-
Ae(fc(n))
|
|
1944
|
-
];
|
|
1945
|
-
return o && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) && a[3].startsWith(a[3].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
|
|
1946
|
-
}
|
|
1947
|
-
function fc(e) {
|
|
1948
|
-
return Math.round(parseFloat(e) * 255).toString(16);
|
|
1949
|
-
}
|
|
1950
|
-
function hn(e) {
|
|
1951
|
-
return ae(e) / 255;
|
|
1952
|
-
}
|
|
1953
|
-
function ae(e) {
|
|
1954
|
-
return parseInt(e, 16);
|
|
1955
|
-
}
|
|
1956
|
-
function dc(e) {
|
|
1957
|
-
return {
|
|
1958
|
-
r: e >> 16,
|
|
1959
|
-
g: (e & 65280) >> 8,
|
|
1960
|
-
b: e & 255
|
|
1961
|
-
};
|
|
1962
|
-
}
|
|
1963
|
-
var Er = {
|
|
1964
|
-
aliceblue: "#f0f8ff",
|
|
1965
|
-
antiquewhite: "#faebd7",
|
|
1966
|
-
aqua: "#00ffff",
|
|
1967
|
-
aquamarine: "#7fffd4",
|
|
1968
|
-
azure: "#f0ffff",
|
|
1969
|
-
beige: "#f5f5dc",
|
|
1970
|
-
bisque: "#ffe4c4",
|
|
1971
|
-
black: "#000000",
|
|
1972
|
-
blanchedalmond: "#ffebcd",
|
|
1973
|
-
blue: "#0000ff",
|
|
1974
|
-
blueviolet: "#8a2be2",
|
|
1975
|
-
brown: "#a52a2a",
|
|
1976
|
-
burlywood: "#deb887",
|
|
1977
|
-
cadetblue: "#5f9ea0",
|
|
1978
|
-
chartreuse: "#7fff00",
|
|
1979
|
-
chocolate: "#d2691e",
|
|
1980
|
-
coral: "#ff7f50",
|
|
1981
|
-
cornflowerblue: "#6495ed",
|
|
1982
|
-
cornsilk: "#fff8dc",
|
|
1983
|
-
crimson: "#dc143c",
|
|
1984
|
-
cyan: "#00ffff",
|
|
1985
|
-
darkblue: "#00008b",
|
|
1986
|
-
darkcyan: "#008b8b",
|
|
1987
|
-
darkgoldenrod: "#b8860b",
|
|
1988
|
-
darkgray: "#a9a9a9",
|
|
1989
|
-
darkgreen: "#006400",
|
|
1990
|
-
darkgrey: "#a9a9a9",
|
|
1991
|
-
darkkhaki: "#bdb76b",
|
|
1992
|
-
darkmagenta: "#8b008b",
|
|
1993
|
-
darkolivegreen: "#556b2f",
|
|
1994
|
-
darkorange: "#ff8c00",
|
|
1995
|
-
darkorchid: "#9932cc",
|
|
1996
|
-
darkred: "#8b0000",
|
|
1997
|
-
darksalmon: "#e9967a",
|
|
1998
|
-
darkseagreen: "#8fbc8f",
|
|
1999
|
-
darkslateblue: "#483d8b",
|
|
2000
|
-
darkslategray: "#2f4f4f",
|
|
2001
|
-
darkslategrey: "#2f4f4f",
|
|
2002
|
-
darkturquoise: "#00ced1",
|
|
2003
|
-
darkviolet: "#9400d3",
|
|
2004
|
-
deeppink: "#ff1493",
|
|
2005
|
-
deepskyblue: "#00bfff",
|
|
2006
|
-
dimgray: "#696969",
|
|
2007
|
-
dimgrey: "#696969",
|
|
2008
|
-
dodgerblue: "#1e90ff",
|
|
2009
|
-
firebrick: "#b22222",
|
|
2010
|
-
floralwhite: "#fffaf0",
|
|
2011
|
-
forestgreen: "#228b22",
|
|
2012
|
-
fuchsia: "#ff00ff",
|
|
2013
|
-
gainsboro: "#dcdcdc",
|
|
2014
|
-
ghostwhite: "#f8f8ff",
|
|
2015
|
-
goldenrod: "#daa520",
|
|
2016
|
-
gold: "#ffd700",
|
|
2017
|
-
gray: "#808080",
|
|
2018
|
-
green: "#008000",
|
|
2019
|
-
greenyellow: "#adff2f",
|
|
2020
|
-
grey: "#808080",
|
|
2021
|
-
honeydew: "#f0fff0",
|
|
2022
|
-
hotpink: "#ff69b4",
|
|
2023
|
-
indianred: "#cd5c5c",
|
|
2024
|
-
indigo: "#4b0082",
|
|
2025
|
-
ivory: "#fffff0",
|
|
2026
|
-
khaki: "#f0e68c",
|
|
2027
|
-
lavenderblush: "#fff0f5",
|
|
2028
|
-
lavender: "#e6e6fa",
|
|
2029
|
-
lawngreen: "#7cfc00",
|
|
2030
|
-
lemonchiffon: "#fffacd",
|
|
2031
|
-
lightblue: "#add8e6",
|
|
2032
|
-
lightcoral: "#f08080",
|
|
2033
|
-
lightcyan: "#e0ffff",
|
|
2034
|
-
lightgoldenrodyellow: "#fafad2",
|
|
2035
|
-
lightgray: "#d3d3d3",
|
|
2036
|
-
lightgreen: "#90ee90",
|
|
2037
|
-
lightgrey: "#d3d3d3",
|
|
2038
|
-
lightpink: "#ffb6c1",
|
|
2039
|
-
lightsalmon: "#ffa07a",
|
|
2040
|
-
lightseagreen: "#20b2aa",
|
|
2041
|
-
lightskyblue: "#87cefa",
|
|
2042
|
-
lightslategray: "#778899",
|
|
2043
|
-
lightslategrey: "#778899",
|
|
2044
|
-
lightsteelblue: "#b0c4de",
|
|
2045
|
-
lightyellow: "#ffffe0",
|
|
2046
|
-
lime: "#00ff00",
|
|
2047
|
-
limegreen: "#32cd32",
|
|
2048
|
-
linen: "#faf0e6",
|
|
2049
|
-
magenta: "#ff00ff",
|
|
2050
|
-
maroon: "#800000",
|
|
2051
|
-
mediumaquamarine: "#66cdaa",
|
|
2052
|
-
mediumblue: "#0000cd",
|
|
2053
|
-
mediumorchid: "#ba55d3",
|
|
2054
|
-
mediumpurple: "#9370db",
|
|
2055
|
-
mediumseagreen: "#3cb371",
|
|
2056
|
-
mediumslateblue: "#7b68ee",
|
|
2057
|
-
mediumspringgreen: "#00fa9a",
|
|
2058
|
-
mediumturquoise: "#48d1cc",
|
|
2059
|
-
mediumvioletred: "#c71585",
|
|
2060
|
-
midnightblue: "#191970",
|
|
2061
|
-
mintcream: "#f5fffa",
|
|
2062
|
-
mistyrose: "#ffe4e1",
|
|
2063
|
-
moccasin: "#ffe4b5",
|
|
2064
|
-
navajowhite: "#ffdead",
|
|
2065
|
-
navy: "#000080",
|
|
2066
|
-
oldlace: "#fdf5e6",
|
|
2067
|
-
olive: "#808000",
|
|
2068
|
-
olivedrab: "#6b8e23",
|
|
2069
|
-
orange: "#ffa500",
|
|
2070
|
-
orangered: "#ff4500",
|
|
2071
|
-
orchid: "#da70d6",
|
|
2072
|
-
palegoldenrod: "#eee8aa",
|
|
2073
|
-
palegreen: "#98fb98",
|
|
2074
|
-
paleturquoise: "#afeeee",
|
|
2075
|
-
palevioletred: "#db7093",
|
|
2076
|
-
papayawhip: "#ffefd5",
|
|
2077
|
-
peachpuff: "#ffdab9",
|
|
2078
|
-
peru: "#cd853f",
|
|
2079
|
-
pink: "#ffc0cb",
|
|
2080
|
-
plum: "#dda0dd",
|
|
2081
|
-
powderblue: "#b0e0e6",
|
|
2082
|
-
purple: "#800080",
|
|
2083
|
-
rebeccapurple: "#663399",
|
|
2084
|
-
red: "#ff0000",
|
|
2085
|
-
rosybrown: "#bc8f8f",
|
|
2086
|
-
royalblue: "#4169e1",
|
|
2087
|
-
saddlebrown: "#8b4513",
|
|
2088
|
-
salmon: "#fa8072",
|
|
2089
|
-
sandybrown: "#f4a460",
|
|
2090
|
-
seagreen: "#2e8b57",
|
|
2091
|
-
seashell: "#fff5ee",
|
|
2092
|
-
sienna: "#a0522d",
|
|
2093
|
-
silver: "#c0c0c0",
|
|
2094
|
-
skyblue: "#87ceeb",
|
|
2095
|
-
slateblue: "#6a5acd",
|
|
2096
|
-
slategray: "#708090",
|
|
2097
|
-
slategrey: "#708090",
|
|
2098
|
-
snow: "#fffafa",
|
|
2099
|
-
springgreen: "#00ff7f",
|
|
2100
|
-
steelblue: "#4682b4",
|
|
2101
|
-
tan: "#d2b48c",
|
|
2102
|
-
teal: "#008080",
|
|
2103
|
-
thistle: "#d8bfd8",
|
|
2104
|
-
tomato: "#ff6347",
|
|
2105
|
-
turquoise: "#40e0d0",
|
|
2106
|
-
violet: "#ee82ee",
|
|
2107
|
-
wheat: "#f5deb3",
|
|
2108
|
-
white: "#ffffff",
|
|
2109
|
-
whitesmoke: "#f5f5f5",
|
|
2110
|
-
yellow: "#ffff00",
|
|
2111
|
-
yellowgreen: "#9acd32"
|
|
2112
|
-
};
|
|
2113
|
-
function ze(e) {
|
|
2114
|
-
var t = { r: 0, g: 0, b: 0 }, r = 1, n = null, o = null, a = null, i = !1, c = !1;
|
|
2115
|
-
return typeof e == "string" && (e = gc(e)), typeof e == "object" && (be(e.r) && be(e.g) && be(e.b) ? (t = cc(e.r, e.g, e.b), i = !0, c = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : be(e.h) && be(e.s) && be(e.v) ? (n = gt(e.s), o = gt(e.v), t = lc(e.h, n, o), i = !0, c = "hsv") : be(e.h) && be(e.s) && be(e.l) && (n = gt(e.s), a = gt(e.l), t = sc(e.h, n, a), i = !0, c = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = bo(r), {
|
|
2116
|
-
ok: i,
|
|
2117
|
-
format: e.format || c,
|
|
2118
|
-
r: Math.min(255, Math.max(t.r, 0)),
|
|
2119
|
-
g: Math.min(255, Math.max(t.g, 0)),
|
|
2120
|
-
b: Math.min(255, Math.max(t.b, 0)),
|
|
2121
|
-
a: r
|
|
2122
|
-
};
|
|
2123
|
-
}
|
|
2124
|
-
var pc = "[-\\+]?\\d+%?", vc = "[-\\+]?\\d*\\.\\d+%?", Te = "(?:".concat(vc, ")|(?:").concat(pc, ")"), Qt = "[\\s|\\(]+(".concat(Te, ")[,|\\s]+(").concat(Te, ")[,|\\s]+(").concat(Te, ")\\s*\\)?"), Jt = "[\\s|\\(]+(".concat(Te, ")[,|\\s]+(").concat(Te, ")[,|\\s]+(").concat(Te, ")[,|\\s]+(").concat(Te, ")\\s*\\)?"), ue = {
|
|
2125
|
-
CSS_UNIT: new RegExp(Te),
|
|
2126
|
-
rgb: new RegExp("rgb" + Qt),
|
|
2127
|
-
rgba: new RegExp("rgba" + Jt),
|
|
2128
|
-
hsl: new RegExp("hsl" + Qt),
|
|
2129
|
-
hsla: new RegExp("hsla" + Jt),
|
|
2130
|
-
hsv: new RegExp("hsv" + Qt),
|
|
2131
|
-
hsva: new RegExp("hsva" + Jt),
|
|
2132
|
-
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
2133
|
-
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
2134
|
-
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
2135
|
-
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
2136
|
-
};
|
|
2137
|
-
function gc(e) {
|
|
2138
|
-
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
2139
|
-
return !1;
|
|
2140
|
-
var t = !1;
|
|
2141
|
-
if (Er[e])
|
|
2142
|
-
e = Er[e], t = !0;
|
|
2143
|
-
else if (e === "transparent")
|
|
2144
|
-
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
2145
|
-
var r = ue.rgb.exec(e);
|
|
2146
|
-
return r ? { r: r[1], g: r[2], b: r[3] } : (r = ue.rgba.exec(e), r ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = ue.hsl.exec(e), r ? { h: r[1], s: r[2], l: r[3] } : (r = ue.hsla.exec(e), r ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = ue.hsv.exec(e), r ? { h: r[1], s: r[2], v: r[3] } : (r = ue.hsva.exec(e), r ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = ue.hex8.exec(e), r ? {
|
|
2147
|
-
r: ae(r[1]),
|
|
2148
|
-
g: ae(r[2]),
|
|
2149
|
-
b: ae(r[3]),
|
|
2150
|
-
a: hn(r[4]),
|
|
2151
|
-
format: t ? "name" : "hex8"
|
|
2152
|
-
} : (r = ue.hex6.exec(e), r ? {
|
|
2153
|
-
r: ae(r[1]),
|
|
2154
|
-
g: ae(r[2]),
|
|
2155
|
-
b: ae(r[3]),
|
|
2156
|
-
format: t ? "name" : "hex"
|
|
2157
|
-
} : (r = ue.hex4.exec(e), r ? {
|
|
2158
|
-
r: ae(r[1] + r[1]),
|
|
2159
|
-
g: ae(r[2] + r[2]),
|
|
2160
|
-
b: ae(r[3] + r[3]),
|
|
2161
|
-
a: hn(r[4] + r[4]),
|
|
2162
|
-
format: t ? "name" : "hex8"
|
|
2163
|
-
} : (r = ue.hex3.exec(e), r ? {
|
|
2164
|
-
r: ae(r[1] + r[1]),
|
|
2165
|
-
g: ae(r[2] + r[2]),
|
|
2166
|
-
b: ae(r[3] + r[3]),
|
|
2167
|
-
format: t ? "name" : "hex"
|
|
2168
|
-
} : !1)))))))));
|
|
2169
|
-
}
|
|
2170
|
-
function be(e) {
|
|
2171
|
-
return !!ue.CSS_UNIT.exec(String(e));
|
|
2172
|
-
}
|
|
2173
|
-
var ie = (
|
|
2174
|
-
/** @class */
|
|
2175
|
-
function() {
|
|
2176
|
-
function e(t, r) {
|
|
2177
|
-
t === void 0 && (t = ""), r === void 0 && (r = {});
|
|
2178
|
-
var n;
|
|
2179
|
-
if (t instanceof e)
|
|
2180
|
-
return t;
|
|
2181
|
-
typeof t == "number" && (t = dc(t)), this.originalInput = t;
|
|
2182
|
-
var o = ze(t);
|
|
2183
|
-
this.originalInput = t, this.r = o.r, this.g = o.g, this.b = o.b, this.a = o.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (n = r.format) !== null && n !== void 0 ? n : o.format, this.gradientType = r.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = o.ok;
|
|
2184
|
-
}
|
|
2185
|
-
return e.prototype.isDark = function() {
|
|
2186
|
-
return this.getBrightness() < 128;
|
|
2187
|
-
}, e.prototype.isLight = function() {
|
|
2188
|
-
return !this.isDark();
|
|
2189
|
-
}, e.prototype.getBrightness = function() {
|
|
2190
|
-
var t = this.toRgb();
|
|
2191
|
-
return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
|
|
2192
|
-
}, e.prototype.getLuminance = function() {
|
|
2193
|
-
var t = this.toRgb(), r, n, o, a = t.r / 255, i = t.g / 255, c = t.b / 255;
|
|
2194
|
-
return a <= 0.03928 ? r = a / 12.92 : r = Math.pow((a + 0.055) / 1.055, 2.4), i <= 0.03928 ? n = i / 12.92 : n = Math.pow((i + 0.055) / 1.055, 2.4), c <= 0.03928 ? o = c / 12.92 : o = Math.pow((c + 0.055) / 1.055, 2.4), 0.2126 * r + 0.7152 * n + 0.0722 * o;
|
|
2195
|
-
}, e.prototype.getAlpha = function() {
|
|
2196
|
-
return this.a;
|
|
2197
|
-
}, e.prototype.setAlpha = function(t) {
|
|
2198
|
-
return this.a = bo(t), this.roundA = Math.round(100 * this.a) / 100, this;
|
|
2199
|
-
}, e.prototype.isMonochrome = function() {
|
|
2200
|
-
var t = this.toHsl().s;
|
|
2201
|
-
return t === 0;
|
|
2202
|
-
}, e.prototype.toHsv = function() {
|
|
2203
|
-
var t = Sr(this.r, this.g, this.b);
|
|
2204
|
-
return { h: t.h * 360, s: t.s, v: t.v, a: this.a };
|
|
2205
|
-
}, e.prototype.toHsvString = function() {
|
|
2206
|
-
var t = Sr(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.v * 100);
|
|
2207
|
-
return this.a === 1 ? "hsv(".concat(r, ", ").concat(n, "%, ").concat(o, "%)") : "hsva(".concat(r, ", ").concat(n, "%, ").concat(o, "%, ").concat(this.roundA, ")");
|
|
2208
|
-
}, e.prototype.toHsl = function() {
|
|
2209
|
-
var t = gn(this.r, this.g, this.b);
|
|
2210
|
-
return { h: t.h * 360, s: t.s, l: t.l, a: this.a };
|
|
2211
|
-
}, e.prototype.toHslString = function() {
|
|
2212
|
-
var t = gn(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.l * 100);
|
|
2213
|
-
return this.a === 1 ? "hsl(".concat(r, ", ").concat(n, "%, ").concat(o, "%)") : "hsla(".concat(r, ", ").concat(n, "%, ").concat(o, "%, ").concat(this.roundA, ")");
|
|
2214
|
-
}, e.prototype.toHex = function(t) {
|
|
2215
|
-
return t === void 0 && (t = !1), xr(this.r, this.g, this.b, t);
|
|
2216
|
-
}, e.prototype.toHexString = function(t) {
|
|
2217
|
-
return t === void 0 && (t = !1), "#" + this.toHex(t);
|
|
2218
|
-
}, e.prototype.toHex8 = function(t) {
|
|
2219
|
-
return t === void 0 && (t = !1), uc(this.r, this.g, this.b, this.a, t);
|
|
2220
|
-
}, e.prototype.toHex8String = function(t) {
|
|
2221
|
-
return t === void 0 && (t = !1), "#" + this.toHex8(t);
|
|
2222
|
-
}, e.prototype.toHexShortString = function(t) {
|
|
2223
|
-
return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t);
|
|
2224
|
-
}, e.prototype.toRgb = function() {
|
|
2225
|
-
return {
|
|
2226
|
-
r: Math.round(this.r),
|
|
2227
|
-
g: Math.round(this.g),
|
|
2228
|
-
b: Math.round(this.b),
|
|
2229
|
-
a: this.a
|
|
2230
|
-
};
|
|
2231
|
-
}, e.prototype.toRgbString = function() {
|
|
2232
|
-
var t = Math.round(this.r), r = Math.round(this.g), n = Math.round(this.b);
|
|
2233
|
-
return this.a === 1 ? "rgb(".concat(t, ", ").concat(r, ", ").concat(n, ")") : "rgba(".concat(t, ", ").concat(r, ", ").concat(n, ", ").concat(this.roundA, ")");
|
|
2234
|
-
}, e.prototype.toPercentageRgb = function() {
|
|
2235
|
-
var t = function(r) {
|
|
2236
|
-
return "".concat(Math.round(ee(r, 255) * 100), "%");
|
|
2237
|
-
};
|
|
2238
|
-
return {
|
|
2239
|
-
r: t(this.r),
|
|
2240
|
-
g: t(this.g),
|
|
2241
|
-
b: t(this.b),
|
|
2242
|
-
a: this.a
|
|
2243
|
-
};
|
|
2244
|
-
}, e.prototype.toPercentageRgbString = function() {
|
|
2245
|
-
var t = function(r) {
|
|
2246
|
-
return Math.round(ee(r, 255) * 100);
|
|
2247
|
-
};
|
|
2248
|
-
return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")");
|
|
2249
|
-
}, e.prototype.toName = function() {
|
|
2250
|
-
if (this.a === 0)
|
|
2251
|
-
return "transparent";
|
|
2252
|
-
if (this.a < 1)
|
|
2253
|
-
return !1;
|
|
2254
|
-
for (var t = "#" + xr(this.r, this.g, this.b, !1), r = 0, n = Object.entries(Er); r < n.length; r++) {
|
|
2255
|
-
var o = n[r], a = o[0], i = o[1];
|
|
2256
|
-
if (t === i)
|
|
2257
|
-
return a;
|
|
2258
|
-
}
|
|
2259
|
-
return !1;
|
|
2260
|
-
}, e.prototype.toString = function(t) {
|
|
2261
|
-
var r = !!t;
|
|
2262
|
-
t = t ?? this.format;
|
|
2263
|
-
var n = !1, o = this.a < 1 && this.a >= 0, a = !r && o && (t.startsWith("hex") || t === "name");
|
|
2264
|
-
return a ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (n = this.toRgbString()), t === "prgb" && (n = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (n = this.toHexString()), t === "hex3" && (n = this.toHexString(!0)), t === "hex4" && (n = this.toHex8String(!0)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString());
|
|
2265
|
-
}, e.prototype.toNumber = function() {
|
|
2266
|
-
return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
|
|
2267
|
-
}, e.prototype.clone = function() {
|
|
2268
|
-
return new e(this.toString());
|
|
2269
|
-
}, e.prototype.lighten = function(t) {
|
|
2270
|
-
t === void 0 && (t = 10);
|
|
2271
|
-
var r = this.toHsl();
|
|
2272
|
-
return r.l += t / 100, r.l = vt(r.l), new e(r);
|
|
2273
|
-
}, e.prototype.brighten = function(t) {
|
|
2274
|
-
t === void 0 && (t = 10);
|
|
2275
|
-
var r = this.toRgb();
|
|
2276
|
-
return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), new e(r);
|
|
2277
|
-
}, e.prototype.darken = function(t) {
|
|
2278
|
-
t === void 0 && (t = 10);
|
|
2279
|
-
var r = this.toHsl();
|
|
2280
|
-
return r.l -= t / 100, r.l = vt(r.l), new e(r);
|
|
2281
|
-
}, e.prototype.tint = function(t) {
|
|
2282
|
-
return t === void 0 && (t = 10), this.mix("white", t);
|
|
2283
|
-
}, e.prototype.shade = function(t) {
|
|
2284
|
-
return t === void 0 && (t = 10), this.mix("black", t);
|
|
2285
|
-
}, e.prototype.desaturate = function(t) {
|
|
2286
|
-
t === void 0 && (t = 10);
|
|
2287
|
-
var r = this.toHsl();
|
|
2288
|
-
return r.s -= t / 100, r.s = vt(r.s), new e(r);
|
|
2289
|
-
}, e.prototype.saturate = function(t) {
|
|
2290
|
-
t === void 0 && (t = 10);
|
|
2291
|
-
var r = this.toHsl();
|
|
2292
|
-
return r.s += t / 100, r.s = vt(r.s), new e(r);
|
|
2293
|
-
}, e.prototype.greyscale = function() {
|
|
2294
|
-
return this.desaturate(100);
|
|
2295
|
-
}, e.prototype.spin = function(t) {
|
|
2296
|
-
var r = this.toHsl(), n = (r.h + t) % 360;
|
|
2297
|
-
return r.h = n < 0 ? 360 + n : n, new e(r);
|
|
2298
|
-
}, e.prototype.mix = function(t, r) {
|
|
2299
|
-
r === void 0 && (r = 50);
|
|
2300
|
-
var n = this.toRgb(), o = new e(t).toRgb(), a = r / 100, i = {
|
|
2301
|
-
r: (o.r - n.r) * a + n.r,
|
|
2302
|
-
g: (o.g - n.g) * a + n.g,
|
|
2303
|
-
b: (o.b - n.b) * a + n.b,
|
|
2304
|
-
a: (o.a - n.a) * a + n.a
|
|
2305
|
-
};
|
|
2306
|
-
return new e(i);
|
|
2307
|
-
}, e.prototype.analogous = function(t, r) {
|
|
2308
|
-
t === void 0 && (t = 6), r === void 0 && (r = 30);
|
|
2309
|
-
var n = this.toHsl(), o = 360 / r, a = [this];
|
|
2310
|
-
for (n.h = (n.h - (o * t >> 1) + 720) % 360; --t; )
|
|
2311
|
-
n.h = (n.h + o) % 360, a.push(new e(n));
|
|
2312
|
-
return a;
|
|
2313
|
-
}, e.prototype.complement = function() {
|
|
2314
|
-
var t = this.toHsl();
|
|
2315
|
-
return t.h = (t.h + 180) % 360, new e(t);
|
|
2316
|
-
}, e.prototype.monochromatic = function(t) {
|
|
2317
|
-
t === void 0 && (t = 6);
|
|
2318
|
-
for (var r = this.toHsv(), n = r.h, o = r.s, a = r.v, i = [], c = 1 / t; t--; )
|
|
2319
|
-
i.push(new e({ h: n, s: o, v: a })), a = (a + c) % 1;
|
|
2320
|
-
return i;
|
|
2321
|
-
}, e.prototype.splitcomplement = function() {
|
|
2322
|
-
var t = this.toHsl(), r = t.h;
|
|
2323
|
-
return [
|
|
2324
|
-
this,
|
|
2325
|
-
new e({ h: (r + 72) % 360, s: t.s, l: t.l }),
|
|
2326
|
-
new e({ h: (r + 216) % 360, s: t.s, l: t.l })
|
|
2327
|
-
];
|
|
2328
|
-
}, e.prototype.onBackground = function(t) {
|
|
2329
|
-
var r = this.toRgb(), n = new e(t).toRgb(), o = r.a + n.a * (1 - r.a);
|
|
2330
|
-
return new e({
|
|
2331
|
-
r: (r.r * r.a + n.r * n.a * (1 - r.a)) / o,
|
|
2332
|
-
g: (r.g * r.a + n.g * n.a * (1 - r.a)) / o,
|
|
2333
|
-
b: (r.b * r.a + n.b * n.a * (1 - r.a)) / o,
|
|
2334
|
-
a: o
|
|
2335
|
-
});
|
|
2336
|
-
}, e.prototype.triad = function() {
|
|
2337
|
-
return this.polyad(3);
|
|
2338
|
-
}, e.prototype.tetrad = function() {
|
|
2339
|
-
return this.polyad(4);
|
|
2340
|
-
}, e.prototype.polyad = function(t) {
|
|
2341
|
-
for (var r = this.toHsl(), n = r.h, o = [this], a = 360 / t, i = 1; i < t; i++)
|
|
2342
|
-
o.push(new e({ h: (n + i * a) % 360, s: r.s, l: r.l }));
|
|
2343
|
-
return o;
|
|
2344
|
-
}, e.prototype.equals = function(t) {
|
|
2345
|
-
return this.toRgbString() === new e(t).toRgbString();
|
|
2346
|
-
}, e;
|
|
2347
|
-
}()
|
|
2348
|
-
), ht = 2, mn = 0.16, hc = 0.05, mc = 0.05, bc = 0.15, yo = 5, So = 4, yc = [{
|
|
2349
|
-
index: 7,
|
|
2350
|
-
opacity: 0.15
|
|
2351
|
-
}, {
|
|
2352
|
-
index: 6,
|
|
2353
|
-
opacity: 0.25
|
|
2354
|
-
}, {
|
|
2355
|
-
index: 5,
|
|
2356
|
-
opacity: 0.3
|
|
2357
|
-
}, {
|
|
2358
|
-
index: 5,
|
|
2359
|
-
opacity: 0.45
|
|
2360
|
-
}, {
|
|
2361
|
-
index: 5,
|
|
2362
|
-
opacity: 0.65
|
|
2363
|
-
}, {
|
|
2364
|
-
index: 5,
|
|
2365
|
-
opacity: 0.85
|
|
2366
|
-
}, {
|
|
2367
|
-
index: 4,
|
|
2368
|
-
opacity: 0.9
|
|
2369
|
-
}, {
|
|
2370
|
-
index: 3,
|
|
2371
|
-
opacity: 0.95
|
|
2372
|
-
}, {
|
|
2373
|
-
index: 2,
|
|
2374
|
-
opacity: 0.97
|
|
2375
|
-
}, {
|
|
2376
|
-
index: 1,
|
|
2377
|
-
opacity: 0.98
|
|
2378
|
-
}];
|
|
2379
|
-
function bn(e) {
|
|
2380
|
-
var t = e.r, r = e.g, n = e.b, o = Sr(t, r, n);
|
|
2381
|
-
return {
|
|
2382
|
-
h: o.h * 360,
|
|
2383
|
-
s: o.s,
|
|
2384
|
-
v: o.v
|
|
2385
|
-
};
|
|
2386
|
-
}
|
|
2387
|
-
function mt(e) {
|
|
2388
|
-
var t = e.r, r = e.g, n = e.b;
|
|
2389
|
-
return "#".concat(xr(t, r, n, !1));
|
|
2390
|
-
}
|
|
2391
|
-
function Sc(e, t, r) {
|
|
2392
|
-
var n = r / 100, o = {
|
|
2393
|
-
r: (t.r - e.r) * n + e.r,
|
|
2394
|
-
g: (t.g - e.g) * n + e.g,
|
|
2395
|
-
b: (t.b - e.b) * n + e.b
|
|
2396
|
-
};
|
|
2397
|
-
return o;
|
|
2398
|
-
}
|
|
2399
|
-
function yn(e, t, r) {
|
|
2400
|
-
var n;
|
|
2401
|
-
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = r ? Math.round(e.h) - ht * t : Math.round(e.h) + ht * t : n = r ? Math.round(e.h) + ht * t : Math.round(e.h) - ht * t, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
|
|
2402
|
-
}
|
|
2403
|
-
function Sn(e, t, r) {
|
|
2404
|
-
if (e.h === 0 && e.s === 0)
|
|
2405
|
-
return e.s;
|
|
2406
|
-
var n;
|
|
2407
|
-
return r ? n = e.s - mn * t : t === So ? n = e.s + mn : n = e.s + hc * t, n > 1 && (n = 1), r && t === yo && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Number(n.toFixed(2));
|
|
2408
|
-
}
|
|
2409
|
-
function xn(e, t, r) {
|
|
2410
|
-
var n;
|
|
2411
|
-
return r ? n = e.v + mc * t : n = e.v - bc * t, n > 1 && (n = 1), Number(n.toFixed(2));
|
|
2412
|
-
}
|
|
2413
|
-
function Ue(e) {
|
|
2414
|
-
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = ze(e), o = yo; o > 0; o -= 1) {
|
|
2415
|
-
var a = bn(n), i = mt(ze({
|
|
2416
|
-
h: yn(a, o, !0),
|
|
2417
|
-
s: Sn(a, o, !0),
|
|
2418
|
-
v: xn(a, o, !0)
|
|
2419
|
-
}));
|
|
2420
|
-
r.push(i);
|
|
2421
|
-
}
|
|
2422
|
-
r.push(mt(n));
|
|
2423
|
-
for (var c = 1; c <= So; c += 1) {
|
|
2424
|
-
var l = bn(n), s = mt(ze({
|
|
2425
|
-
h: yn(l, c),
|
|
2426
|
-
s: Sn(l, c),
|
|
2427
|
-
v: xn(l, c)
|
|
2428
|
-
}));
|
|
2429
|
-
r.push(s);
|
|
2430
|
-
}
|
|
2431
|
-
return t.theme === "dark" ? yc.map(function(f) {
|
|
2432
|
-
var d = f.index, p = f.opacity, h = mt(Sc(ze(t.backgroundColor || "#141414"), ze(r[d]), p * 100));
|
|
2433
|
-
return h;
|
|
2434
|
-
}) : r;
|
|
2435
|
-
}
|
|
2436
|
-
var Zt = {
|
|
2437
|
-
red: "#F5222D",
|
|
2438
|
-
volcano: "#FA541C",
|
|
2439
|
-
orange: "#FA8C16",
|
|
2440
|
-
gold: "#FAAD14",
|
|
2441
|
-
yellow: "#FADB14",
|
|
2442
|
-
lime: "#A0D911",
|
|
2443
|
-
green: "#52C41A",
|
|
2444
|
-
cyan: "#13C2C2",
|
|
2445
|
-
blue: "#1677FF",
|
|
2446
|
-
geekblue: "#2F54EB",
|
|
2447
|
-
purple: "#722ED1",
|
|
2448
|
-
magenta: "#EB2F96",
|
|
2449
|
-
grey: "#666666"
|
|
2450
|
-
}, er = {}, tr = {};
|
|
2451
|
-
Object.keys(Zt).forEach(function(e) {
|
|
2452
|
-
er[e] = Ue(Zt[e]), er[e].primary = er[e][5], tr[e] = Ue(Zt[e], {
|
|
2453
|
-
theme: "dark",
|
|
2454
|
-
backgroundColor: "#141414"
|
|
2455
|
-
}), tr[e].primary = tr[e][5];
|
|
2456
|
-
});
|
|
2457
|
-
const xc = (e) => {
|
|
2458
|
-
const {
|
|
2459
|
-
controlHeight: t
|
|
2460
|
-
} = e;
|
|
2461
|
-
return {
|
|
2462
|
-
controlHeightSM: t * 0.75,
|
|
2463
|
-
controlHeightXS: t * 0.5,
|
|
2464
|
-
controlHeightLG: t * 1.25
|
|
2465
|
-
};
|
|
2466
|
-
}, Ec = xc;
|
|
2467
|
-
function Cc(e) {
|
|
2468
|
-
const {
|
|
2469
|
-
sizeUnit: t,
|
|
2470
|
-
sizeStep: r
|
|
2471
|
-
} = e;
|
|
2472
|
-
return {
|
|
2473
|
-
sizeXXL: t * (r + 8),
|
|
2474
|
-
sizeXL: t * (r + 4),
|
|
2475
|
-
sizeLG: t * (r + 2),
|
|
2476
|
-
sizeMD: t * (r + 1),
|
|
2477
|
-
sizeMS: t * r,
|
|
2478
|
-
size: t * r,
|
|
2479
|
-
sizeSM: t * (r - 1),
|
|
2480
|
-
sizeXS: t * (r - 2),
|
|
2481
|
-
sizeXXS: t * (r - 3)
|
|
2482
|
-
// 4
|
|
2483
|
-
};
|
|
2484
|
-
}
|
|
2485
|
-
const xo = {
|
|
2486
|
-
blue: "#1677ff",
|
|
2487
|
-
purple: "#722ED1",
|
|
2488
|
-
cyan: "#13C2C2",
|
|
2489
|
-
green: "#52C41A",
|
|
2490
|
-
magenta: "#EB2F96",
|
|
2491
|
-
pink: "#eb2f96",
|
|
2492
|
-
red: "#F5222D",
|
|
2493
|
-
orange: "#FA8C16",
|
|
2494
|
-
yellow: "#FADB14",
|
|
2495
|
-
volcano: "#FA541C",
|
|
2496
|
-
geekblue: "#2F54EB",
|
|
2497
|
-
gold: "#FAAD14",
|
|
2498
|
-
lime: "#A0D911"
|
|
2499
|
-
}, Tc = Object.assign(Object.assign({}, xo), {
|
|
2500
|
-
// Color
|
|
2501
|
-
colorPrimary: "#1677ff",
|
|
2502
|
-
colorSuccess: "#52c41a",
|
|
2503
|
-
colorWarning: "#faad14",
|
|
2504
|
-
colorError: "#ff4d4f",
|
|
2505
|
-
colorInfo: "#1677ff",
|
|
2506
|
-
colorLink: "",
|
|
2507
|
-
colorTextBase: "",
|
|
2508
|
-
colorBgBase: "",
|
|
2509
|
-
// Font
|
|
2510
|
-
fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2511
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
2512
|
-
'Noto Color Emoji'`,
|
|
2513
|
-
fontFamilyCode: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",
|
|
2514
|
-
fontSize: 14,
|
|
2515
|
-
// Line
|
|
2516
|
-
lineWidth: 1,
|
|
2517
|
-
lineType: "solid",
|
|
2518
|
-
// Motion
|
|
2519
|
-
motionUnit: 0.1,
|
|
2520
|
-
motionBase: 0,
|
|
2521
|
-
motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
|
|
2522
|
-
motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
|
|
2523
|
-
motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
|
|
2524
|
-
motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
|
|
2525
|
-
motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
|
|
2526
|
-
motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
|
|
2527
|
-
motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
|
|
2528
|
-
motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
|
|
2529
|
-
// Radius
|
|
2530
|
-
borderRadius: 6,
|
|
2531
|
-
// Size
|
|
2532
|
-
sizeUnit: 4,
|
|
2533
|
-
sizeStep: 4,
|
|
2534
|
-
sizePopupArrow: 16,
|
|
2535
|
-
// Control Base
|
|
2536
|
-
controlHeight: 32,
|
|
2537
|
-
// zIndex
|
|
2538
|
-
zIndexBase: 0,
|
|
2539
|
-
zIndexPopupBase: 1e3,
|
|
2540
|
-
// Image
|
|
2541
|
-
opacityImage: 1,
|
|
2542
|
-
// Wireframe
|
|
2543
|
-
wireframe: !1,
|
|
2544
|
-
// Motion
|
|
2545
|
-
motion: !0
|
|
2546
|
-
}), ct = Tc;
|
|
2547
|
-
function wc(e, t) {
|
|
2548
|
-
let {
|
|
2549
|
-
generateColorPalettes: r,
|
|
2550
|
-
generateNeutralColorPalettes: n
|
|
2551
|
-
} = t;
|
|
2552
|
-
const {
|
|
2553
|
-
colorSuccess: o,
|
|
2554
|
-
colorWarning: a,
|
|
2555
|
-
colorError: i,
|
|
2556
|
-
colorInfo: c,
|
|
2557
|
-
colorPrimary: l,
|
|
2558
|
-
colorBgBase: s,
|
|
2559
|
-
colorTextBase: f
|
|
2560
|
-
} = e, d = r(l), p = r(o), h = r(a), y = r(i), g = r(c), u = n(s, f), S = e.colorLink || e.colorInfo, m = r(S);
|
|
2561
|
-
return Object.assign(Object.assign({}, u), {
|
|
2562
|
-
colorPrimaryBg: d[1],
|
|
2563
|
-
colorPrimaryBgHover: d[2],
|
|
2564
|
-
colorPrimaryBorder: d[3],
|
|
2565
|
-
colorPrimaryBorderHover: d[4],
|
|
2566
|
-
colorPrimaryHover: d[5],
|
|
2567
|
-
colorPrimary: d[6],
|
|
2568
|
-
colorPrimaryActive: d[7],
|
|
2569
|
-
colorPrimaryTextHover: d[8],
|
|
2570
|
-
colorPrimaryText: d[9],
|
|
2571
|
-
colorPrimaryTextActive: d[10],
|
|
2572
|
-
colorSuccessBg: p[1],
|
|
2573
|
-
colorSuccessBgHover: p[2],
|
|
2574
|
-
colorSuccessBorder: p[3],
|
|
2575
|
-
colorSuccessBorderHover: p[4],
|
|
2576
|
-
colorSuccessHover: p[4],
|
|
2577
|
-
colorSuccess: p[6],
|
|
2578
|
-
colorSuccessActive: p[7],
|
|
2579
|
-
colorSuccessTextHover: p[8],
|
|
2580
|
-
colorSuccessText: p[9],
|
|
2581
|
-
colorSuccessTextActive: p[10],
|
|
2582
|
-
colorErrorBg: y[1],
|
|
2583
|
-
colorErrorBgHover: y[2],
|
|
2584
|
-
colorErrorBorder: y[3],
|
|
2585
|
-
colorErrorBorderHover: y[4],
|
|
2586
|
-
colorErrorHover: y[5],
|
|
2587
|
-
colorError: y[6],
|
|
2588
|
-
colorErrorActive: y[7],
|
|
2589
|
-
colorErrorTextHover: y[8],
|
|
2590
|
-
colorErrorText: y[9],
|
|
2591
|
-
colorErrorTextActive: y[10],
|
|
2592
|
-
colorWarningBg: h[1],
|
|
2593
|
-
colorWarningBgHover: h[2],
|
|
2594
|
-
colorWarningBorder: h[3],
|
|
2595
|
-
colorWarningBorderHover: h[4],
|
|
2596
|
-
colorWarningHover: h[4],
|
|
2597
|
-
colorWarning: h[6],
|
|
2598
|
-
colorWarningActive: h[7],
|
|
2599
|
-
colorWarningTextHover: h[8],
|
|
2600
|
-
colorWarningText: h[9],
|
|
2601
|
-
colorWarningTextActive: h[10],
|
|
2602
|
-
colorInfoBg: g[1],
|
|
2603
|
-
colorInfoBgHover: g[2],
|
|
2604
|
-
colorInfoBorder: g[3],
|
|
2605
|
-
colorInfoBorderHover: g[4],
|
|
2606
|
-
colorInfoHover: g[4],
|
|
2607
|
-
colorInfo: g[6],
|
|
2608
|
-
colorInfoActive: g[7],
|
|
2609
|
-
colorInfoTextHover: g[8],
|
|
2610
|
-
colorInfoText: g[9],
|
|
2611
|
-
colorInfoTextActive: g[10],
|
|
2612
|
-
colorLinkHover: m[4],
|
|
2613
|
-
colorLink: m[6],
|
|
2614
|
-
colorLinkActive: m[7],
|
|
2615
|
-
colorBgMask: new ie("#000").setAlpha(0.45).toRgbString(),
|
|
2616
|
-
colorWhite: "#fff"
|
|
2617
|
-
});
|
|
2618
|
-
}
|
|
2619
|
-
const Oc = (e) => {
|
|
2620
|
-
let t = e, r = e, n = e, o = e;
|
|
2621
|
-
return e < 6 && e >= 5 ? t = e + 1 : e < 16 && e >= 6 ? t = e + 2 : e >= 16 && (t = 16), e < 7 && e >= 5 ? r = 4 : e < 8 && e >= 7 ? r = 5 : e < 14 && e >= 8 ? r = 6 : e < 16 && e >= 14 ? r = 7 : e >= 16 && (r = 8), e < 6 && e >= 2 ? n = 1 : e >= 6 && (n = 2), e > 4 && e < 8 ? o = 4 : e >= 8 && (o = 6), {
|
|
2622
|
-
borderRadius: e,
|
|
2623
|
-
borderRadiusXS: n,
|
|
2624
|
-
borderRadiusSM: r,
|
|
2625
|
-
borderRadiusLG: t,
|
|
2626
|
-
borderRadiusOuter: o
|
|
2627
|
-
};
|
|
2628
|
-
}, Pc = Oc;
|
|
2629
|
-
function kc(e) {
|
|
2630
|
-
const {
|
|
2631
|
-
motionUnit: t,
|
|
2632
|
-
motionBase: r,
|
|
2633
|
-
borderRadius: n,
|
|
2634
|
-
lineWidth: o
|
|
2635
|
-
} = e;
|
|
2636
|
-
return Object.assign({
|
|
2637
|
-
// motion
|
|
2638
|
-
motionDurationFast: `${(r + t).toFixed(1)}s`,
|
|
2639
|
-
motionDurationMid: `${(r + t * 2).toFixed(1)}s`,
|
|
2640
|
-
motionDurationSlow: `${(r + t * 3).toFixed(1)}s`,
|
|
2641
|
-
// line
|
|
2642
|
-
lineWidthBold: o + 1
|
|
2643
|
-
}, Pc(n));
|
|
2644
|
-
}
|
|
2645
|
-
const ye = (e, t) => new ie(e).setAlpha(t).toRgbString(), nt = (e, t) => new ie(e).darken(t).toHexString(), Ac = (e) => {
|
|
2646
|
-
const t = Ue(e);
|
|
2647
|
-
return {
|
|
2648
|
-
1: t[0],
|
|
2649
|
-
2: t[1],
|
|
2650
|
-
3: t[2],
|
|
2651
|
-
4: t[3],
|
|
2652
|
-
5: t[4],
|
|
2653
|
-
6: t[5],
|
|
2654
|
-
7: t[6],
|
|
2655
|
-
8: t[4],
|
|
2656
|
-
9: t[5],
|
|
2657
|
-
10: t[6]
|
|
2658
|
-
// 8: colors[7],
|
|
2659
|
-
// 9: colors[8],
|
|
2660
|
-
// 10: colors[9],
|
|
2661
|
-
};
|
|
2662
|
-
}, Mc = (e, t) => {
|
|
2663
|
-
const r = e || "#fff", n = t || "#000";
|
|
2664
|
-
return {
|
|
2665
|
-
colorBgBase: r,
|
|
2666
|
-
colorTextBase: n,
|
|
2667
|
-
colorText: ye(n, 0.88),
|
|
2668
|
-
colorTextSecondary: ye(n, 0.65),
|
|
2669
|
-
colorTextTertiary: ye(n, 0.45),
|
|
2670
|
-
colorTextQuaternary: ye(n, 0.25),
|
|
2671
|
-
colorFill: ye(n, 0.15),
|
|
2672
|
-
colorFillSecondary: ye(n, 0.06),
|
|
2673
|
-
colorFillTertiary: ye(n, 0.04),
|
|
2674
|
-
colorFillQuaternary: ye(n, 0.02),
|
|
2675
|
-
colorBgLayout: nt(r, 4),
|
|
2676
|
-
colorBgContainer: nt(r, 0),
|
|
2677
|
-
colorBgElevated: nt(r, 0),
|
|
2678
|
-
colorBgSpotlight: ye(n, 0.85),
|
|
2679
|
-
colorBgBlur: "transparent",
|
|
2680
|
-
colorBorder: nt(r, 15),
|
|
2681
|
-
colorBorderSecondary: nt(r, 6)
|
|
2682
|
-
};
|
|
2683
|
-
};
|
|
2684
|
-
function Rc(e) {
|
|
2685
|
-
const t = new Array(10).fill(null).map((r, n) => {
|
|
2686
|
-
const o = n - 1, a = e * Math.pow(2.71828, o / 5), i = n > 1 ? Math.floor(a) : Math.ceil(a);
|
|
2687
|
-
return Math.floor(i / 2) * 2;
|
|
2688
|
-
});
|
|
2689
|
-
return t[1] = e, t.map((r) => {
|
|
2690
|
-
const n = r + 8;
|
|
2691
|
-
return {
|
|
2692
|
-
size: r,
|
|
2693
|
-
lineHeight: n / r
|
|
2694
|
-
};
|
|
2695
|
-
});
|
|
2696
|
-
}
|
|
2697
|
-
const _c = (e) => {
|
|
2698
|
-
const t = Rc(e), r = t.map((o) => o.size), n = t.map((o) => o.lineHeight);
|
|
2699
|
-
return {
|
|
2700
|
-
fontSizeSM: r[0],
|
|
2701
|
-
fontSize: r[1],
|
|
2702
|
-
fontSizeLG: r[2],
|
|
2703
|
-
fontSizeXL: r[3],
|
|
2704
|
-
fontSizeHeading1: r[6],
|
|
2705
|
-
fontSizeHeading2: r[5],
|
|
2706
|
-
fontSizeHeading3: r[4],
|
|
2707
|
-
fontSizeHeading4: r[3],
|
|
2708
|
-
fontSizeHeading5: r[2],
|
|
2709
|
-
lineHeight: n[1],
|
|
2710
|
-
lineHeightLG: n[2],
|
|
2711
|
-
lineHeightSM: n[0],
|
|
2712
|
-
lineHeightHeading1: n[6],
|
|
2713
|
-
lineHeightHeading2: n[5],
|
|
2714
|
-
lineHeightHeading3: n[4],
|
|
2715
|
-
lineHeightHeading4: n[3],
|
|
2716
|
-
lineHeightHeading5: n[2]
|
|
2717
|
-
};
|
|
2718
|
-
}, jc = _c;
|
|
2719
|
-
function Ic(e) {
|
|
2720
|
-
const t = Object.keys(xo).map((r) => {
|
|
2721
|
-
const n = Ue(e[r]);
|
|
2722
|
-
return new Array(10).fill(1).reduce((o, a, i) => (o[`${r}-${i + 1}`] = n[i], o[`${r}${i + 1}`] = n[i], o), {});
|
|
2723
|
-
}).reduce((r, n) => (r = Object.assign(Object.assign({}, r), n), r), {});
|
|
2724
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), t), wc(e, {
|
|
2725
|
-
generateColorPalettes: Ac,
|
|
2726
|
-
generateNeutralColorPalettes: Mc
|
|
2727
|
-
})), jc(e.fontSize)), Cc(e)), Ec(e)), kc(e));
|
|
2728
|
-
}
|
|
2729
|
-
const Eo = pr(Ic), Co = {
|
|
2730
|
-
token: ct,
|
|
2731
|
-
override: {
|
|
2732
|
-
override: ct
|
|
2733
|
-
},
|
|
2734
|
-
hashed: !0
|
|
2735
|
-
}, To = /* @__PURE__ */ Ie.createContext(Co), wo = "anticon", Nc = (e, t) => t || (e ? `ant-${e}` : "ant"), Ye = /* @__PURE__ */ v.createContext({
|
|
2736
|
-
// We provide a default function for Context without provider
|
|
2737
|
-
getPrefixCls: Nc,
|
|
2738
|
-
iconPrefixCls: wo
|
|
2739
|
-
}), Lc = `-ant-${Date.now()}-${Math.random()}`;
|
|
2740
|
-
function $c(e, t) {
|
|
2741
|
-
const r = {}, n = (i, c) => {
|
|
2742
|
-
let l = i.clone();
|
|
2743
|
-
return l = (c == null ? void 0 : c(l)) || l, l.toRgbString();
|
|
2744
|
-
}, o = (i, c) => {
|
|
2745
|
-
const l = new ie(i), s = Ue(l.toRgbString());
|
|
2746
|
-
r[`${c}-color`] = n(l), r[`${c}-color-disabled`] = s[1], r[`${c}-color-hover`] = s[4], r[`${c}-color-active`] = s[6], r[`${c}-color-outline`] = l.clone().setAlpha(0.2).toRgbString(), r[`${c}-color-deprecated-bg`] = s[0], r[`${c}-color-deprecated-border`] = s[2];
|
|
2747
|
-
};
|
|
2748
|
-
if (t.primaryColor) {
|
|
2749
|
-
o(t.primaryColor, "primary");
|
|
2750
|
-
const i = new ie(t.primaryColor), c = Ue(i.toRgbString());
|
|
2751
|
-
c.forEach((s, f) => {
|
|
2752
|
-
r[`primary-${f + 1}`] = s;
|
|
2753
|
-
}), r["primary-color-deprecated-l-35"] = n(i, (s) => s.lighten(35)), r["primary-color-deprecated-l-20"] = n(i, (s) => s.lighten(20)), r["primary-color-deprecated-t-20"] = n(i, (s) => s.tint(20)), r["primary-color-deprecated-t-50"] = n(i, (s) => s.tint(50)), r["primary-color-deprecated-f-12"] = n(i, (s) => s.setAlpha(s.getAlpha() * 0.12));
|
|
2754
|
-
const l = new ie(c[0]);
|
|
2755
|
-
r["primary-color-active-deprecated-f-30"] = n(l, (s) => s.setAlpha(s.getAlpha() * 0.3)), r["primary-color-active-deprecated-d-02"] = n(l, (s) => s.darken(2));
|
|
2756
|
-
}
|
|
2757
|
-
return t.successColor && o(t.successColor, "success"), t.warningColor && o(t.warningColor, "warning"), t.errorColor && o(t.errorColor, "error"), t.infoColor && o(t.infoColor, "info"), `
|
|
2758
|
-
:root {
|
|
2759
|
-
${Object.keys(r).map((i) => `--${e}-${i}: ${r[i]};`).join(`
|
|
2760
|
-
`)}
|
|
2761
|
-
}
|
|
2762
|
-
`.trim();
|
|
2763
|
-
}
|
|
2764
|
-
function Dc(e, t) {
|
|
2765
|
-
const r = $c(e, t);
|
|
2766
|
-
ge() ? It(r, `${Lc}-dynamic-theme`) : process.env.NODE_ENV !== "production" && Ht(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
|
|
2767
|
-
}
|
|
2768
|
-
const Cr = /* @__PURE__ */ v.createContext(!1), Hc = (e) => {
|
|
2769
|
-
let {
|
|
2770
|
-
children: t,
|
|
2771
|
-
disabled: r
|
|
2772
|
-
} = e;
|
|
2773
|
-
const n = v.useContext(Cr);
|
|
2774
|
-
return /* @__PURE__ */ v.createElement(Cr.Provider, {
|
|
2775
|
-
value: r ?? n
|
|
2776
|
-
}, t);
|
|
2777
|
-
}, Fc = Cr, Tr = /* @__PURE__ */ v.createContext(void 0), zc = (e) => {
|
|
2778
|
-
let {
|
|
2779
|
-
children: t,
|
|
2780
|
-
size: r
|
|
2781
|
-
} = e;
|
|
2782
|
-
const n = v.useContext(Tr);
|
|
2783
|
-
return /* @__PURE__ */ v.createElement(Tr.Provider, {
|
|
2784
|
-
value: r || n
|
|
2785
|
-
}, t);
|
|
2786
|
-
}, zt = Tr;
|
|
2787
|
-
function Bc() {
|
|
2788
|
-
const e = At(Fc), t = At(zt);
|
|
2789
|
-
return {
|
|
2790
|
-
componentDisabled: e,
|
|
2791
|
-
componentSize: t
|
|
2792
|
-
};
|
|
2793
|
-
}
|
|
2794
|
-
const Wc = "5.11.0";
|
|
2795
|
-
function rr(e) {
|
|
2796
|
-
return e >= 0 && e <= 255;
|
|
2797
|
-
}
|
|
2798
|
-
function bt(e, t) {
|
|
2799
|
-
const {
|
|
2800
|
-
r,
|
|
2801
|
-
g: n,
|
|
2802
|
-
b: o,
|
|
2803
|
-
a
|
|
2804
|
-
} = new ie(e).toRgb();
|
|
2805
|
-
if (a < 1)
|
|
2806
|
-
return e;
|
|
2807
|
-
const {
|
|
2808
|
-
r: i,
|
|
2809
|
-
g: c,
|
|
2810
|
-
b: l
|
|
2811
|
-
} = new ie(t).toRgb();
|
|
2812
|
-
for (let s = 0.01; s <= 1; s += 0.01) {
|
|
2813
|
-
const f = Math.round((r - i * (1 - s)) / s), d = Math.round((n - c * (1 - s)) / s), p = Math.round((o - l * (1 - s)) / s);
|
|
2814
|
-
if (rr(f) && rr(d) && rr(p))
|
|
2815
|
-
return new ie({
|
|
2816
|
-
r: f,
|
|
2817
|
-
g: d,
|
|
2818
|
-
b: p,
|
|
2819
|
-
a: Math.round(s * 100) / 100
|
|
2820
|
-
}).toRgbString();
|
|
2821
|
-
}
|
|
2822
|
-
return new ie({
|
|
2823
|
-
r,
|
|
2824
|
-
g: n,
|
|
2825
|
-
b: o,
|
|
2826
|
-
a: 1
|
|
2827
|
-
}).toRgbString();
|
|
2828
|
-
}
|
|
2829
|
-
var Vc = globalThis && globalThis.__rest || function(e, t) {
|
|
2830
|
-
var r = {};
|
|
2831
|
-
for (var n in e)
|
|
2832
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
2833
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
2834
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
2835
|
-
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
2836
|
-
return r;
|
|
2837
|
-
};
|
|
2838
|
-
function Oo(e) {
|
|
2839
|
-
const {
|
|
2840
|
-
override: t
|
|
2841
|
-
} = e, r = Vc(e, ["override"]), n = Object.assign({}, t);
|
|
2842
|
-
Object.keys(ct).forEach((p) => {
|
|
2843
|
-
delete n[p];
|
|
2844
|
-
});
|
|
2845
|
-
const o = Object.assign(Object.assign({}, r), n), a = 480, i = 576, c = 768, l = 992, s = 1200, f = 1600;
|
|
2846
|
-
if (o.motion === !1) {
|
|
2847
|
-
const p = "0s";
|
|
2848
|
-
o.motionDurationFast = p, o.motionDurationMid = p, o.motionDurationSlow = p;
|
|
2849
|
-
}
|
|
2850
|
-
return Object.assign(Object.assign(Object.assign({}, o), {
|
|
2851
|
-
// ============== Background ============== //
|
|
2852
|
-
colorFillContent: o.colorFillSecondary,
|
|
2853
|
-
colorFillContentHover: o.colorFill,
|
|
2854
|
-
colorFillAlter: o.colorFillQuaternary,
|
|
2855
|
-
colorBgContainerDisabled: o.colorFillTertiary,
|
|
2856
|
-
// ============== Split ============== //
|
|
2857
|
-
colorBorderBg: o.colorBgContainer,
|
|
2858
|
-
colorSplit: bt(o.colorBorderSecondary, o.colorBgContainer),
|
|
2859
|
-
// ============== Text ============== //
|
|
2860
|
-
colorTextPlaceholder: o.colorTextQuaternary,
|
|
2861
|
-
colorTextDisabled: o.colorTextQuaternary,
|
|
2862
|
-
colorTextHeading: o.colorText,
|
|
2863
|
-
colorTextLabel: o.colorTextSecondary,
|
|
2864
|
-
colorTextDescription: o.colorTextTertiary,
|
|
2865
|
-
colorTextLightSolid: o.colorWhite,
|
|
2866
|
-
colorHighlight: o.colorError,
|
|
2867
|
-
colorBgTextHover: o.colorFillSecondary,
|
|
2868
|
-
colorBgTextActive: o.colorFill,
|
|
2869
|
-
colorIcon: o.colorTextTertiary,
|
|
2870
|
-
colorIconHover: o.colorText,
|
|
2871
|
-
colorErrorOutline: bt(o.colorErrorBg, o.colorBgContainer),
|
|
2872
|
-
colorWarningOutline: bt(o.colorWarningBg, o.colorBgContainer),
|
|
2873
|
-
// Font
|
|
2874
|
-
fontSizeIcon: o.fontSizeSM,
|
|
2875
|
-
// Line
|
|
2876
|
-
lineWidthFocus: o.lineWidth * 4,
|
|
2877
|
-
// Control
|
|
2878
|
-
lineWidth: o.lineWidth,
|
|
2879
|
-
controlOutlineWidth: o.lineWidth * 2,
|
|
2880
|
-
// Checkbox size and expand icon size
|
|
2881
|
-
controlInteractiveSize: o.controlHeight / 2,
|
|
2882
|
-
controlItemBgHover: o.colorFillTertiary,
|
|
2883
|
-
controlItemBgActive: o.colorPrimaryBg,
|
|
2884
|
-
controlItemBgActiveHover: o.colorPrimaryBgHover,
|
|
2885
|
-
controlItemBgActiveDisabled: o.colorFill,
|
|
2886
|
-
controlTmpOutline: o.colorFillQuaternary,
|
|
2887
|
-
controlOutline: bt(o.colorPrimaryBg, o.colorBgContainer),
|
|
2888
|
-
lineType: o.lineType,
|
|
2889
|
-
borderRadius: o.borderRadius,
|
|
2890
|
-
borderRadiusXS: o.borderRadiusXS,
|
|
2891
|
-
borderRadiusSM: o.borderRadiusSM,
|
|
2892
|
-
borderRadiusLG: o.borderRadiusLG,
|
|
2893
|
-
fontWeightStrong: 600,
|
|
2894
|
-
opacityLoading: 0.65,
|
|
2895
|
-
linkDecoration: "none",
|
|
2896
|
-
linkHoverDecoration: "none",
|
|
2897
|
-
linkFocusDecoration: "none",
|
|
2898
|
-
controlPaddingHorizontal: 12,
|
|
2899
|
-
controlPaddingHorizontalSM: 8,
|
|
2900
|
-
paddingXXS: o.sizeXXS,
|
|
2901
|
-
paddingXS: o.sizeXS,
|
|
2902
|
-
paddingSM: o.sizeSM,
|
|
2903
|
-
padding: o.size,
|
|
2904
|
-
paddingMD: o.sizeMD,
|
|
2905
|
-
paddingLG: o.sizeLG,
|
|
2906
|
-
paddingXL: o.sizeXL,
|
|
2907
|
-
paddingContentHorizontalLG: o.sizeLG,
|
|
2908
|
-
paddingContentVerticalLG: o.sizeMS,
|
|
2909
|
-
paddingContentHorizontal: o.sizeMS,
|
|
2910
|
-
paddingContentVertical: o.sizeSM,
|
|
2911
|
-
paddingContentHorizontalSM: o.size,
|
|
2912
|
-
paddingContentVerticalSM: o.sizeXS,
|
|
2913
|
-
marginXXS: o.sizeXXS,
|
|
2914
|
-
marginXS: o.sizeXS,
|
|
2915
|
-
marginSM: o.sizeSM,
|
|
2916
|
-
margin: o.size,
|
|
2917
|
-
marginMD: o.sizeMD,
|
|
2918
|
-
marginLG: o.sizeLG,
|
|
2919
|
-
marginXL: o.sizeXL,
|
|
2920
|
-
marginXXL: o.sizeXXL,
|
|
2921
|
-
boxShadow: `
|
|
2922
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2923
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2924
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2925
|
-
`,
|
|
2926
|
-
boxShadowSecondary: `
|
|
2927
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2928
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2929
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2930
|
-
`,
|
|
2931
|
-
boxShadowTertiary: `
|
|
2932
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
2933
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
2934
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
2935
|
-
`,
|
|
2936
|
-
screenXS: a,
|
|
2937
|
-
screenXSMin: a,
|
|
2938
|
-
screenXSMax: i - 1,
|
|
2939
|
-
screenSM: i,
|
|
2940
|
-
screenSMMin: i,
|
|
2941
|
-
screenSMMax: c - 1,
|
|
2942
|
-
screenMD: c,
|
|
2943
|
-
screenMDMin: c,
|
|
2944
|
-
screenMDMax: l - 1,
|
|
2945
|
-
screenLG: l,
|
|
2946
|
-
screenLGMin: l,
|
|
2947
|
-
screenLGMax: s - 1,
|
|
2948
|
-
screenXL: s,
|
|
2949
|
-
screenXLMin: s,
|
|
2950
|
-
screenXLMax: f - 1,
|
|
2951
|
-
screenXXL: f,
|
|
2952
|
-
screenXXLMin: f,
|
|
2953
|
-
boxShadowPopoverArrow: "2px 2px 5px rgba(0, 0, 0, 0.05)",
|
|
2954
|
-
boxShadowCard: `
|
|
2955
|
-
0 1px 2px -2px ${new ie("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
2956
|
-
0 3px 6px 0 ${new ie("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
2957
|
-
0 5px 12px 4px ${new ie("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
2958
|
-
`,
|
|
2959
|
-
boxShadowDrawerRight: `
|
|
2960
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
2961
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
2962
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
2963
|
-
`,
|
|
2964
|
-
boxShadowDrawerLeft: `
|
|
2965
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
2966
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
2967
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
2968
|
-
`,
|
|
2969
|
-
boxShadowDrawerUp: `
|
|
2970
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2971
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2972
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2973
|
-
`,
|
|
2974
|
-
boxShadowDrawerDown: `
|
|
2975
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2976
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2977
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2978
|
-
`,
|
|
2979
|
-
boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
2980
|
-
boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
2981
|
-
boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
|
|
2982
|
-
boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
|
|
2983
|
-
}), n);
|
|
2984
|
-
}
|
|
2985
|
-
var En = globalThis && globalThis.__rest || function(e, t) {
|
|
2986
|
-
var r = {};
|
|
2987
|
-
for (var n in e)
|
|
2988
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
2989
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
2990
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
2991
|
-
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
2992
|
-
return r;
|
|
2993
|
-
};
|
|
2994
|
-
const Po = (e, t, r) => {
|
|
2995
|
-
const n = r.getDerivativeToken(e), {
|
|
2996
|
-
override: o
|
|
2997
|
-
} = t, a = En(t, ["override"]);
|
|
2998
|
-
let i = Object.assign(Object.assign({}, n), {
|
|
2999
|
-
override: o
|
|
3000
|
-
});
|
|
3001
|
-
return i = Oo(i), a && Object.entries(a).forEach((c) => {
|
|
3002
|
-
let [l, s] = c;
|
|
3003
|
-
const {
|
|
3004
|
-
theme: f
|
|
3005
|
-
} = s, d = En(s, ["theme"]);
|
|
3006
|
-
let p = d;
|
|
3007
|
-
f && (p = Po(Object.assign(Object.assign({}, i), d), {
|
|
3008
|
-
override: d
|
|
3009
|
-
}, f)), i[l] = p;
|
|
3010
|
-
}), i;
|
|
3011
|
-
};
|
|
3012
|
-
function Wr() {
|
|
3013
|
-
const {
|
|
3014
|
-
token: e,
|
|
3015
|
-
hashed: t,
|
|
3016
|
-
theme: r,
|
|
3017
|
-
override: n
|
|
3018
|
-
} = Ie.useContext(To), o = `${Wc}-${t || ""}`, a = r || Eo, [i, c] = vi(a, [ct, e], {
|
|
3019
|
-
salt: o,
|
|
3020
|
-
override: n,
|
|
3021
|
-
getComputedToken: Po,
|
|
3022
|
-
// formatToken will not be consumed after 1.15.0 with getComputedToken.
|
|
3023
|
-
// But token will break if @ant-design/cssinjs is under 1.15.0 without it
|
|
3024
|
-
formatToken: Oo
|
|
3025
|
-
});
|
|
3026
|
-
return [a, i, t ? c : ""];
|
|
3027
|
-
}
|
|
3028
|
-
function kt(e) {
|
|
3029
|
-
var t = v.useRef(!1), r = v.useState(e), n = B(r, 2), o = n[0], a = n[1];
|
|
3030
|
-
v.useEffect(function() {
|
|
3031
|
-
return t.current = !1, function() {
|
|
3032
|
-
t.current = !0;
|
|
3033
|
-
};
|
|
3034
|
-
}, []);
|
|
3035
|
-
function i(c, l) {
|
|
3036
|
-
l && t.current || a(c);
|
|
3037
|
-
}
|
|
3038
|
-
return [o, i];
|
|
3039
|
-
}
|
|
3040
|
-
const Gc = () => ({
|
|
3041
|
-
display: "inline-flex",
|
|
3042
|
-
alignItems: "center",
|
|
3043
|
-
color: "inherit",
|
|
3044
|
-
fontStyle: "normal",
|
|
3045
|
-
lineHeight: 0,
|
|
3046
|
-
textAlign: "center",
|
|
3047
|
-
textTransform: "none",
|
|
3048
|
-
// for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
|
|
3049
|
-
verticalAlign: "-0.125em",
|
|
3050
|
-
textRendering: "optimizeLegibility",
|
|
3051
|
-
"-webkit-font-smoothing": "antialiased",
|
|
3052
|
-
"-moz-osx-font-smoothing": "grayscale",
|
|
3053
|
-
"> *": {
|
|
3054
|
-
lineHeight: 1
|
|
3055
|
-
},
|
|
3056
|
-
svg: {
|
|
3057
|
-
display: "inline-block"
|
|
3058
|
-
}
|
|
3059
|
-
}), Uc = (e) => ({
|
|
3060
|
-
a: {
|
|
3061
|
-
color: e.colorLink,
|
|
3062
|
-
textDecoration: e.linkDecoration,
|
|
3063
|
-
backgroundColor: "transparent",
|
|
3064
|
-
outline: "none",
|
|
3065
|
-
cursor: "pointer",
|
|
3066
|
-
transition: `color ${e.motionDurationSlow}`,
|
|
3067
|
-
"-webkit-text-decoration-skip": "objects",
|
|
3068
|
-
"&:hover": {
|
|
3069
|
-
color: e.colorLinkHover
|
|
3070
|
-
},
|
|
3071
|
-
"&:active": {
|
|
3072
|
-
color: e.colorLinkActive
|
|
3073
|
-
},
|
|
3074
|
-
"&:active,\n &:hover": {
|
|
3075
|
-
textDecoration: e.linkHoverDecoration,
|
|
3076
|
-
outline: 0
|
|
3077
|
-
},
|
|
3078
|
-
// https://github.com/ant-design/ant-design/issues/22503
|
|
3079
|
-
"&:focus": {
|
|
3080
|
-
textDecoration: e.linkFocusDecoration,
|
|
3081
|
-
outline: 0
|
|
3082
|
-
},
|
|
3083
|
-
"&[disabled]": {
|
|
3084
|
-
color: e.colorTextDisabled,
|
|
3085
|
-
cursor: "not-allowed"
|
|
3086
|
-
}
|
|
3087
|
-
}
|
|
3088
|
-
}), Xc = (e, t) => {
|
|
3089
|
-
const {
|
|
3090
|
-
fontFamily: r,
|
|
3091
|
-
fontSize: n
|
|
3092
|
-
} = e, o = `[class^="${t}"], [class*=" ${t}"]`;
|
|
3093
|
-
return {
|
|
3094
|
-
[o]: {
|
|
3095
|
-
fontFamily: r,
|
|
3096
|
-
fontSize: n,
|
|
3097
|
-
boxSizing: "border-box",
|
|
3098
|
-
"&::before, &::after": {
|
|
3099
|
-
boxSizing: "border-box"
|
|
3100
|
-
},
|
|
3101
|
-
[o]: {
|
|
3102
|
-
boxSizing: "border-box",
|
|
3103
|
-
"&::before, &::after": {
|
|
3104
|
-
boxSizing: "border-box"
|
|
3105
|
-
}
|
|
3106
|
-
}
|
|
3107
|
-
}
|
|
3108
|
-
};
|
|
3109
|
-
}, ko = process.env.NODE_ENV !== "production" || typeof CSSINJS_STATISTIC < "u";
|
|
3110
|
-
let wr = !0;
|
|
3111
|
-
function Or() {
|
|
3112
|
-
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
3113
|
-
t[r] = arguments[r];
|
|
3114
|
-
if (!ko)
|
|
3115
|
-
return Object.assign.apply(Object, [{}].concat(t));
|
|
3116
|
-
wr = !1;
|
|
3117
|
-
const n = {};
|
|
3118
|
-
return t.forEach((o) => {
|
|
3119
|
-
Object.keys(o).forEach((i) => {
|
|
3120
|
-
Object.defineProperty(n, i, {
|
|
3121
|
-
configurable: !0,
|
|
3122
|
-
enumerable: !0,
|
|
3123
|
-
get: () => o[i]
|
|
3124
|
-
});
|
|
3125
|
-
});
|
|
3126
|
-
}), wr = !0, n;
|
|
3127
|
-
}
|
|
3128
|
-
const Cn = {};
|
|
3129
|
-
function Yc() {
|
|
3130
|
-
}
|
|
3131
|
-
function Kc(e) {
|
|
3132
|
-
let t, r = e, n = Yc;
|
|
3133
|
-
return ko && typeof Proxy < "u" && (t = /* @__PURE__ */ new Set(), r = new Proxy(e, {
|
|
3134
|
-
get(o, a) {
|
|
3135
|
-
return wr && t.add(a), o[a];
|
|
3136
|
-
}
|
|
3137
|
-
}), n = (o, a) => {
|
|
3138
|
-
var i;
|
|
3139
|
-
Cn[o] = {
|
|
3140
|
-
global: Array.from(t),
|
|
3141
|
-
component: Object.assign(Object.assign({}, (i = Cn[o]) === null || i === void 0 ? void 0 : i.component), a)
|
|
3142
|
-
};
|
|
3143
|
-
}), {
|
|
3144
|
-
token: r,
|
|
3145
|
-
keys: t,
|
|
3146
|
-
flush: n
|
|
3147
|
-
};
|
|
3148
|
-
}
|
|
3149
|
-
const qc = (e, t) => {
|
|
3150
|
-
const [r, n] = Wr();
|
|
3151
|
-
return br({
|
|
3152
|
-
theme: r,
|
|
3153
|
-
token: n,
|
|
3154
|
-
hashId: "",
|
|
3155
|
-
path: ["ant-design-icons", e],
|
|
3156
|
-
nonce: () => t == null ? void 0 : t.nonce
|
|
3157
|
-
}, () => [{
|
|
3158
|
-
[`.${e}`]: Object.assign(Object.assign({}, Gc()), {
|
|
3159
|
-
[`.${e} .${e}-icon`]: {
|
|
3160
|
-
display: "block"
|
|
3161
|
-
}
|
|
3162
|
-
})
|
|
3163
|
-
}]);
|
|
3164
|
-
}, Ao = qc;
|
|
3165
|
-
function Qc(e, t, r) {
|
|
3166
|
-
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3167
|
-
const o = Array.isArray(e) ? e : [e, e], [a] = o, i = o.join("-");
|
|
3168
|
-
return (c) => {
|
|
3169
|
-
const [l, s, f] = Wr(), {
|
|
3170
|
-
getPrefixCls: d,
|
|
3171
|
-
iconPrefixCls: p,
|
|
3172
|
-
csp: h
|
|
3173
|
-
} = At(Ye), y = d(), g = {
|
|
3174
|
-
theme: l,
|
|
3175
|
-
token: s,
|
|
3176
|
-
hashId: f,
|
|
3177
|
-
nonce: () => h == null ? void 0 : h.nonce,
|
|
3178
|
-
clientOnly: n.clientOnly,
|
|
3179
|
-
// antd is always at top of styles
|
|
3180
|
-
order: n.order || -999
|
|
3181
|
-
};
|
|
3182
|
-
return br(Object.assign(Object.assign({}, g), {
|
|
3183
|
-
clientOnly: !1,
|
|
3184
|
-
path: ["Shared", y]
|
|
3185
|
-
}), () => [{
|
|
3186
|
-
// Link
|
|
3187
|
-
"&": Uc(s)
|
|
3188
|
-
}]), Ao(p, h), [br(Object.assign(Object.assign({}, g), {
|
|
3189
|
-
path: [i, c, p]
|
|
3190
|
-
}), () => {
|
|
3191
|
-
const {
|
|
3192
|
-
token: u,
|
|
3193
|
-
flush: S
|
|
3194
|
-
} = Kc(s), m = Object.assign({}, s[a]);
|
|
3195
|
-
if (n.deprecatedTokens) {
|
|
3196
|
-
const {
|
|
3197
|
-
deprecatedTokens: A
|
|
3198
|
-
} = n;
|
|
3199
|
-
A.forEach(($) => {
|
|
3200
|
-
let [w, R] = $;
|
|
3201
|
-
var P;
|
|
3202
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Ne(!(m != null && m[w]), `The token '${String(w)}' of ${a} had deprecated, use '${String(R)}' instead.`), (m != null && m[w] || m != null && m[R]) && ((P = m[R]) !== null && P !== void 0 || (m[R] = m == null ? void 0 : m[w]));
|
|
3203
|
-
});
|
|
3204
|
-
}
|
|
3205
|
-
const O = typeof r == "function" ? r(Or(u, m ?? {})) : r, T = Object.assign(Object.assign({}, O), m), E = `.${c}`, C = Or(u, {
|
|
3206
|
-
componentCls: E,
|
|
3207
|
-
prefixCls: c,
|
|
3208
|
-
iconCls: `.${p}`,
|
|
3209
|
-
antCls: `.${y}`
|
|
3210
|
-
}, T), b = t(C, {
|
|
3211
|
-
hashId: f,
|
|
3212
|
-
prefixCls: c,
|
|
3213
|
-
rootPrefixCls: y,
|
|
3214
|
-
iconPrefixCls: p,
|
|
3215
|
-
overrideComponentToken: m
|
|
3216
|
-
});
|
|
3217
|
-
return S(a, T), [n.resetStyle === !1 ? null : Xc(s, c), b];
|
|
3218
|
-
}), f];
|
|
3219
|
-
};
|
|
3220
|
-
}
|
|
3221
|
-
function Jc(e, t) {
|
|
3222
|
-
const r = e || {}, n = r.inherit === !1 || !t ? Co : t;
|
|
3223
|
-
return Ln(() => {
|
|
3224
|
-
if (!e)
|
|
3225
|
-
return t;
|
|
3226
|
-
const o = Object.assign({}, n.components);
|
|
3227
|
-
return Object.keys(e.components || {}).forEach((a) => {
|
|
3228
|
-
o[a] = Object.assign(Object.assign({}, o[a]), e.components[a]);
|
|
3229
|
-
}), Object.assign(Object.assign(Object.assign({}, n), r), {
|
|
3230
|
-
token: Object.assign(Object.assign({}, n.token), r.token),
|
|
3231
|
-
components: o
|
|
3232
|
-
});
|
|
3233
|
-
}, [r, n], (o, a) => o.some((i, c) => {
|
|
3234
|
-
const l = a[c];
|
|
3235
|
-
return !Ma(i, l, !0);
|
|
3236
|
-
}));
|
|
3237
|
-
}
|
|
3238
|
-
var Zc = ["children"], Mo = /* @__PURE__ */ v.createContext({});
|
|
3239
|
-
function es(e) {
|
|
3240
|
-
var t = e.children, r = ur(e, Zc);
|
|
3241
|
-
return /* @__PURE__ */ v.createElement(Mo.Provider, {
|
|
3242
|
-
value: r
|
|
3243
|
-
}, t);
|
|
3244
|
-
}
|
|
3245
|
-
var ts = /* @__PURE__ */ function(e) {
|
|
3246
|
-
$n(r, e);
|
|
3247
|
-
var t = Dn(r);
|
|
3248
|
-
function r() {
|
|
3249
|
-
return st(this, r), t.apply(this, arguments);
|
|
3250
|
-
}
|
|
3251
|
-
return lt(r, [{
|
|
3252
|
-
key: "render",
|
|
3253
|
-
value: function() {
|
|
3254
|
-
return this.props.children;
|
|
3255
|
-
}
|
|
3256
|
-
}]), r;
|
|
3257
|
-
}(v.Component), Pe = "none", yt = "appear", St = "enter", xt = "leave", Tn = "none", fe = "prepare", We = "start", Ve = "active", Vr = "end", Ro = "prepared";
|
|
3258
|
-
function wn(e, t) {
|
|
3259
|
-
var r = {};
|
|
3260
|
-
return r[e.toLowerCase()] = t.toLowerCase(), r["Webkit".concat(e)] = "webkit".concat(t), r["Moz".concat(e)] = "moz".concat(t), r["ms".concat(e)] = "MS".concat(t), r["O".concat(e)] = "o".concat(t.toLowerCase()), r;
|
|
3261
|
-
}
|
|
3262
|
-
function rs(e, t) {
|
|
3263
|
-
var r = {
|
|
3264
|
-
animationend: wn("Animation", "AnimationEnd"),
|
|
3265
|
-
transitionend: wn("Transition", "TransitionEnd")
|
|
3266
|
-
};
|
|
3267
|
-
return e && ("AnimationEvent" in t || delete r.animationend.animation, "TransitionEvent" in t || delete r.transitionend.transition), r;
|
|
3268
|
-
}
|
|
3269
|
-
var ns = rs(ge(), typeof window < "u" ? window : {}), _o = {};
|
|
3270
|
-
if (ge()) {
|
|
3271
|
-
var os = document.createElement("div");
|
|
3272
|
-
_o = os.style;
|
|
3273
|
-
}
|
|
3274
|
-
var Et = {};
|
|
3275
|
-
function jo(e) {
|
|
3276
|
-
if (Et[e])
|
|
3277
|
-
return Et[e];
|
|
3278
|
-
var t = ns[e];
|
|
3279
|
-
if (t)
|
|
3280
|
-
for (var r = Object.keys(t), n = r.length, o = 0; o < n; o += 1) {
|
|
3281
|
-
var a = r[o];
|
|
3282
|
-
if (Object.prototype.hasOwnProperty.call(t, a) && a in _o)
|
|
3283
|
-
return Et[e] = t[a], Et[e];
|
|
3284
|
-
}
|
|
3285
|
-
return "";
|
|
3286
|
-
}
|
|
3287
|
-
var Io = jo("animationend"), No = jo("transitionend"), Lo = !!(Io && No), On = Io || "animationend", Pn = No || "transitionend";
|
|
3288
|
-
function kn(e, t) {
|
|
3289
|
-
if (!e)
|
|
3290
|
-
return null;
|
|
3291
|
-
if (Y(e) === "object") {
|
|
3292
|
-
var r = t.replace(/-\w/g, function(n) {
|
|
3293
|
-
return n[1].toUpperCase();
|
|
3294
|
-
});
|
|
3295
|
-
return e[r];
|
|
3296
|
-
}
|
|
3297
|
-
return "".concat(e, "-").concat(t);
|
|
3298
|
-
}
|
|
3299
|
-
const as = function(e) {
|
|
3300
|
-
var t = Me(), r = Me(e);
|
|
3301
|
-
r.current = e;
|
|
3302
|
-
var n = v.useCallback(function(i) {
|
|
3303
|
-
r.current(i);
|
|
3304
|
-
}, []);
|
|
3305
|
-
function o(i) {
|
|
3306
|
-
i && (i.removeEventListener(Pn, n), i.removeEventListener(On, n));
|
|
3307
|
-
}
|
|
3308
|
-
function a(i) {
|
|
3309
|
-
t.current && t.current !== i && o(t.current), i && i !== t.current && (i.addEventListener(Pn, n), i.addEventListener(On, n), t.current = i);
|
|
3310
|
-
}
|
|
3311
|
-
return v.useEffect(function() {
|
|
3312
|
-
return function() {
|
|
3313
|
-
o(t.current);
|
|
3314
|
-
};
|
|
3315
|
-
}, []), [a, o];
|
|
3316
|
-
};
|
|
3317
|
-
var $o = ge() ? fa : Ct;
|
|
3318
|
-
const is = function() {
|
|
3319
|
-
var e = v.useRef(null);
|
|
3320
|
-
function t() {
|
|
3321
|
-
lr.cancel(e.current);
|
|
3322
|
-
}
|
|
3323
|
-
function r(n) {
|
|
3324
|
-
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
|
|
3325
|
-
t();
|
|
3326
|
-
var a = lr(function() {
|
|
3327
|
-
o <= 1 ? n({
|
|
3328
|
-
isCanceled: function() {
|
|
3329
|
-
return a !== e.current;
|
|
3330
|
-
}
|
|
3331
|
-
}) : r(n, o - 1);
|
|
3332
|
-
});
|
|
3333
|
-
e.current = a;
|
|
3334
|
-
}
|
|
3335
|
-
return v.useEffect(function() {
|
|
3336
|
-
return function() {
|
|
3337
|
-
t();
|
|
3338
|
-
};
|
|
3339
|
-
}, []), [r, t];
|
|
3340
|
-
};
|
|
3341
|
-
var cs = [fe, We, Ve, Vr], ss = [fe, Ro], Do = !1, ls = !0;
|
|
3342
|
-
function Ho(e) {
|
|
3343
|
-
return e === Ve || e === Vr;
|
|
3344
|
-
}
|
|
3345
|
-
const us = function(e, t, r) {
|
|
3346
|
-
var n = kt(Tn), o = B(n, 2), a = o[0], i = o[1], c = is(), l = B(c, 2), s = l[0], f = l[1];
|
|
3347
|
-
function d() {
|
|
3348
|
-
i(fe, !0);
|
|
3349
|
-
}
|
|
3350
|
-
var p = t ? ss : cs;
|
|
3351
|
-
return $o(function() {
|
|
3352
|
-
if (a !== Tn && a !== Vr) {
|
|
3353
|
-
var h = p.indexOf(a), y = p[h + 1], g = r(a);
|
|
3354
|
-
g === Do ? i(y, !0) : y && s(function(u) {
|
|
3355
|
-
function S() {
|
|
3356
|
-
u.isCanceled() || i(y, !0);
|
|
3357
|
-
}
|
|
3358
|
-
g === !0 ? S() : Promise.resolve(g).then(S);
|
|
3359
|
-
});
|
|
3360
|
-
}
|
|
3361
|
-
}, [e, a]), v.useEffect(function() {
|
|
3362
|
-
return function() {
|
|
3363
|
-
f();
|
|
3364
|
-
};
|
|
3365
|
-
}, []), [d, a];
|
|
3366
|
-
};
|
|
3367
|
-
function fs(e, t, r, n) {
|
|
3368
|
-
var o = n.motionEnter, a = o === void 0 ? !0 : o, i = n.motionAppear, c = i === void 0 ? !0 : i, l = n.motionLeave, s = l === void 0 ? !0 : l, f = n.motionDeadline, d = n.motionLeaveImmediately, p = n.onAppearPrepare, h = n.onEnterPrepare, y = n.onLeavePrepare, g = n.onAppearStart, u = n.onEnterStart, S = n.onLeaveStart, m = n.onAppearActive, O = n.onEnterActive, T = n.onLeaveActive, E = n.onAppearEnd, C = n.onEnterEnd, b = n.onLeaveEnd, A = n.onVisibleChanged, $ = kt(), w = B($, 2), R = w[0], P = w[1], k = kt(Pe), N = B(k, 2), M = N[0], D = N[1], V = kt(null), G = B(V, 2), W = G[0], H = G[1], F = Me(!1), z = Me(null);
|
|
3369
|
-
function te() {
|
|
3370
|
-
return r();
|
|
3371
|
-
}
|
|
3372
|
-
var Q = Me(!1);
|
|
3373
|
-
function ce() {
|
|
3374
|
-
D(Pe, !0), H(null, !0);
|
|
3375
|
-
}
|
|
3376
|
-
function Le(re) {
|
|
3377
|
-
var K = te();
|
|
3378
|
-
if (!(re && !re.deadline && re.target !== K)) {
|
|
3379
|
-
var q = Q.current, se;
|
|
3380
|
-
M === yt && q ? se = E == null ? void 0 : E(K, re) : M === St && q ? se = C == null ? void 0 : C(K, re) : M === xt && q && (se = b == null ? void 0 : b(K, re)), M !== Pe && q && se !== !1 && ce();
|
|
3381
|
-
}
|
|
3382
|
-
}
|
|
3383
|
-
var qe = as(Le), Qe = B(qe, 1), Je = Qe[0], $e = function(K) {
|
|
3384
|
-
var q, se, Oe;
|
|
3385
|
-
switch (K) {
|
|
3386
|
-
case yt:
|
|
3387
|
-
return q = {}, L(q, fe, p), L(q, We, g), L(q, Ve, m), q;
|
|
3388
|
-
case St:
|
|
3389
|
-
return se = {}, L(se, fe, h), L(se, We, u), L(se, Ve, O), se;
|
|
3390
|
-
case xt:
|
|
3391
|
-
return Oe = {}, L(Oe, fe, y), L(Oe, We, S), L(Oe, Ve, T), Oe;
|
|
3392
|
-
default:
|
|
3393
|
-
return {};
|
|
3394
|
-
}
|
|
3395
|
-
}, he = v.useMemo(function() {
|
|
3396
|
-
return $e(M);
|
|
3397
|
-
}, [M]), Ze = us(M, !e, function(re) {
|
|
3398
|
-
if (re === fe) {
|
|
3399
|
-
var K = he[fe];
|
|
3400
|
-
return K ? K(te()) : Do;
|
|
3401
|
-
}
|
|
3402
|
-
if (ne in he) {
|
|
3403
|
-
var q;
|
|
3404
|
-
H(((q = he[ne]) === null || q === void 0 ? void 0 : q.call(he, te(), null)) || null);
|
|
3405
|
-
}
|
|
3406
|
-
return ne === Ve && (Je(te()), f > 0 && (clearTimeout(z.current), z.current = setTimeout(function() {
|
|
3407
|
-
Le({
|
|
3408
|
-
deadline: !0
|
|
3409
|
-
});
|
|
3410
|
-
}, f))), ne === Ro && ce(), ls;
|
|
3411
|
-
}), De = B(Ze, 2), x = De[0], ne = De[1], Ee = Ho(ne);
|
|
3412
|
-
Q.current = Ee, $o(function() {
|
|
3413
|
-
P(t);
|
|
3414
|
-
var re = F.current;
|
|
3415
|
-
F.current = !0;
|
|
3416
|
-
var K;
|
|
3417
|
-
!re && t && c && (K = yt), re && t && a && (K = St), (re && !t && s || !re && d && !t && s) && (K = xt);
|
|
3418
|
-
var q = $e(K);
|
|
3419
|
-
K && (e || q[fe]) ? (D(K), x()) : D(Pe);
|
|
3420
|
-
}, [t]), Ct(function() {
|
|
3421
|
-
// Cancel appear
|
|
3422
|
-
(M === yt && !c || // Cancel enter
|
|
3423
|
-
M === St && !a || // Cancel leave
|
|
3424
|
-
M === xt && !s) && D(Pe);
|
|
3425
|
-
}, [c, a, s]), Ct(function() {
|
|
3426
|
-
return function() {
|
|
3427
|
-
F.current = !1, clearTimeout(z.current);
|
|
3428
|
-
};
|
|
3429
|
-
}, []);
|
|
3430
|
-
var Ce = v.useRef(!1);
|
|
3431
|
-
Ct(function() {
|
|
3432
|
-
R && (Ce.current = !0), R !== void 0 && M === Pe && ((Ce.current || R) && (A == null || A(R)), Ce.current = !0);
|
|
3433
|
-
}, [R, M]);
|
|
3434
|
-
var et = W;
|
|
3435
|
-
return he[fe] && ne === We && (et = _({
|
|
3436
|
-
transition: "none"
|
|
3437
|
-
}, et)), [M, ne, et, R ?? t];
|
|
3438
|
-
}
|
|
3439
|
-
function ds(e) {
|
|
3440
|
-
var t = e;
|
|
3441
|
-
Y(e) === "object" && (t = e.transitionSupport);
|
|
3442
|
-
function r(o, a) {
|
|
3443
|
-
return !!(o.motionName && t && a !== !1);
|
|
3444
|
-
}
|
|
3445
|
-
var n = /* @__PURE__ */ v.forwardRef(function(o, a) {
|
|
3446
|
-
var i = o.visible, c = i === void 0 ? !0 : i, l = o.removeOnLeave, s = l === void 0 ? !0 : l, f = o.forceRender, d = o.children, p = o.motionName, h = o.leavedClassName, y = o.eventProps, g = v.useContext(Mo), u = g.motion, S = r(o, u), m = Me(), O = Me();
|
|
3447
|
-
function T() {
|
|
3448
|
-
try {
|
|
3449
|
-
return m.current instanceof HTMLElement ? m.current : Ea(O.current);
|
|
3450
|
-
} catch {
|
|
3451
|
-
return null;
|
|
3452
|
-
}
|
|
3453
|
-
}
|
|
3454
|
-
var E = fs(S, c, T, o), C = B(E, 4), b = C[0], A = C[1], $ = C[2], w = C[3], R = v.useRef(w);
|
|
3455
|
-
w && (R.current = !0);
|
|
3456
|
-
var P = v.useCallback(function(H) {
|
|
3457
|
-
m.current = H, Ca(a, H);
|
|
3458
|
-
}, [a]), k, N = _(_({}, y), {}, {
|
|
3459
|
-
visible: c
|
|
3460
|
-
});
|
|
3461
|
-
if (!d)
|
|
3462
|
-
k = null;
|
|
3463
|
-
else if (b === Pe)
|
|
3464
|
-
w ? k = d(_({}, N), P) : !s && R.current && h ? k = d(_(_({}, N), {}, {
|
|
3465
|
-
className: h
|
|
3466
|
-
}), P) : f || !s && !h ? k = d(_(_({}, N), {}, {
|
|
3467
|
-
style: {
|
|
3468
|
-
display: "none"
|
|
3469
|
-
}
|
|
3470
|
-
}), P) : k = null;
|
|
3471
|
-
else {
|
|
3472
|
-
var M, D;
|
|
3473
|
-
A === fe ? D = "prepare" : Ho(A) ? D = "active" : A === We && (D = "start");
|
|
3474
|
-
var V = kn(p, "".concat(b, "-").concat(D));
|
|
3475
|
-
k = d(_(_({}, N), {}, {
|
|
3476
|
-
className: Mt(kn(p, b), (M = {}, L(M, V, V && D), L(M, p, typeof p == "string"), M)),
|
|
3477
|
-
style: $
|
|
3478
|
-
}), P);
|
|
3479
|
-
}
|
|
3480
|
-
if (/* @__PURE__ */ v.isValidElement(k) && Ta(k)) {
|
|
3481
|
-
var G = k, W = G.ref;
|
|
3482
|
-
W || (k = /* @__PURE__ */ v.cloneElement(k, {
|
|
3483
|
-
ref: P
|
|
3484
|
-
}));
|
|
3485
|
-
}
|
|
3486
|
-
return /* @__PURE__ */ v.createElement(ts, {
|
|
3487
|
-
ref: O
|
|
3488
|
-
}, k);
|
|
3489
|
-
});
|
|
3490
|
-
return n.displayName = "CSSMotion", n;
|
|
3491
|
-
}
|
|
3492
|
-
const ps = ds(Lo);
|
|
3493
|
-
var Pr = "add", kr = "keep", Ar = "remove", nr = "removed";
|
|
3494
|
-
function vs(e) {
|
|
3495
|
-
var t;
|
|
3496
|
-
return e && Y(e) === "object" && "key" in e ? t = e : t = {
|
|
3497
|
-
key: e
|
|
3498
|
-
}, _(_({}, t), {}, {
|
|
3499
|
-
key: String(t.key)
|
|
3500
|
-
});
|
|
3501
|
-
}
|
|
3502
|
-
function Mr() {
|
|
3503
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
3504
|
-
return e.map(vs);
|
|
3505
|
-
}
|
|
3506
|
-
function gs() {
|
|
3507
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = [], n = 0, o = t.length, a = Mr(e), i = Mr(t);
|
|
3508
|
-
a.forEach(function(s) {
|
|
3509
|
-
for (var f = !1, d = n; d < o; d += 1) {
|
|
3510
|
-
var p = i[d];
|
|
3511
|
-
if (p.key === s.key) {
|
|
3512
|
-
n < d && (r = r.concat(i.slice(n, d).map(function(h) {
|
|
3513
|
-
return _(_({}, h), {}, {
|
|
3514
|
-
status: Pr
|
|
3515
|
-
});
|
|
3516
|
-
})), n = d), r.push(_(_({}, p), {}, {
|
|
3517
|
-
status: kr
|
|
3518
|
-
})), n += 1, f = !0;
|
|
3519
|
-
break;
|
|
3520
|
-
}
|
|
3521
|
-
}
|
|
3522
|
-
f || r.push(_(_({}, s), {}, {
|
|
3523
|
-
status: Ar
|
|
3524
|
-
}));
|
|
3525
|
-
}), n < o && (r = r.concat(i.slice(n).map(function(s) {
|
|
3526
|
-
return _(_({}, s), {}, {
|
|
3527
|
-
status: Pr
|
|
3528
|
-
});
|
|
3529
|
-
})));
|
|
3530
|
-
var c = {};
|
|
3531
|
-
r.forEach(function(s) {
|
|
3532
|
-
var f = s.key;
|
|
3533
|
-
c[f] = (c[f] || 0) + 1;
|
|
3534
|
-
});
|
|
3535
|
-
var l = Object.keys(c).filter(function(s) {
|
|
3536
|
-
return c[s] > 1;
|
|
3537
|
-
});
|
|
3538
|
-
return l.forEach(function(s) {
|
|
3539
|
-
r = r.filter(function(f) {
|
|
3540
|
-
var d = f.key, p = f.status;
|
|
3541
|
-
return d !== s || p !== Ar;
|
|
3542
|
-
}), r.forEach(function(f) {
|
|
3543
|
-
f.key === s && (f.status = kr);
|
|
3544
|
-
});
|
|
3545
|
-
}), r;
|
|
3546
|
-
}
|
|
3547
|
-
var hs = ["component", "children", "onVisibleChanged", "onAllRemoved"], ms = ["status"], bs = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
|
|
3548
|
-
function ys(e) {
|
|
3549
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ps, r = /* @__PURE__ */ function(n) {
|
|
3550
|
-
$n(a, n);
|
|
3551
|
-
var o = Dn(a);
|
|
3552
|
-
function a() {
|
|
3553
|
-
var i;
|
|
3554
|
-
st(this, a);
|
|
3555
|
-
for (var c = arguments.length, l = new Array(c), s = 0; s < c; s++)
|
|
3556
|
-
l[s] = arguments[s];
|
|
3557
|
-
return i = o.call.apply(o, [this].concat(l)), L(cr(i), "state", {
|
|
3558
|
-
keyEntities: []
|
|
3559
|
-
}), L(cr(i), "removeKey", function(f) {
|
|
3560
|
-
var d = i.state.keyEntities, p = d.map(function(h) {
|
|
3561
|
-
return h.key !== f ? h : _(_({}, h), {}, {
|
|
3562
|
-
status: nr
|
|
3563
|
-
});
|
|
3564
|
-
});
|
|
3565
|
-
return i.setState({
|
|
3566
|
-
keyEntities: p
|
|
3567
|
-
}), p.filter(function(h) {
|
|
3568
|
-
var y = h.status;
|
|
3569
|
-
return y !== nr;
|
|
3570
|
-
}).length;
|
|
3571
|
-
}), i;
|
|
3572
|
-
}
|
|
3573
|
-
return lt(a, [{
|
|
3574
|
-
key: "render",
|
|
3575
|
-
value: function() {
|
|
3576
|
-
var c = this, l = this.state.keyEntities, s = this.props, f = s.component, d = s.children, p = s.onVisibleChanged, h = s.onAllRemoved, y = ur(s, hs), g = f || v.Fragment, u = {};
|
|
3577
|
-
return bs.forEach(function(S) {
|
|
3578
|
-
u[S] = y[S], delete y[S];
|
|
3579
|
-
}), delete y.keys, /* @__PURE__ */ v.createElement(g, y, l.map(function(S, m) {
|
|
3580
|
-
var O = S.status, T = ur(S, ms), E = O === Pr || O === kr;
|
|
3581
|
-
return /* @__PURE__ */ v.createElement(t, Rt({}, u, {
|
|
3582
|
-
key: T.key,
|
|
3583
|
-
visible: E,
|
|
3584
|
-
eventProps: T,
|
|
3585
|
-
onVisibleChanged: function(b) {
|
|
3586
|
-
if (p == null || p(b, {
|
|
3587
|
-
key: T.key
|
|
3588
|
-
}), !b) {
|
|
3589
|
-
var A = c.removeKey(T.key);
|
|
3590
|
-
A === 0 && h && h();
|
|
3591
|
-
}
|
|
3592
|
-
}
|
|
3593
|
-
}), function(C, b) {
|
|
3594
|
-
return d(_(_({}, C), {}, {
|
|
3595
|
-
index: m
|
|
3596
|
-
}), b);
|
|
3597
|
-
});
|
|
3598
|
-
}));
|
|
3599
|
-
}
|
|
3600
|
-
}], [{
|
|
3601
|
-
key: "getDerivedStateFromProps",
|
|
3602
|
-
value: function(c, l) {
|
|
3603
|
-
var s = c.keys, f = l.keyEntities, d = Mr(s), p = gs(f, d);
|
|
3604
|
-
return {
|
|
3605
|
-
keyEntities: p.filter(function(h) {
|
|
3606
|
-
var y = f.find(function(g) {
|
|
3607
|
-
var u = g.key;
|
|
3608
|
-
return h.key === u;
|
|
3609
|
-
});
|
|
3610
|
-
return !(y && y.status === nr && h.status === Ar);
|
|
3611
|
-
})
|
|
3612
|
-
};
|
|
3613
|
-
}
|
|
3614
|
-
}]), a;
|
|
3615
|
-
}(v.Component);
|
|
3616
|
-
return L(r, "defaultProps", {
|
|
3617
|
-
component: "div"
|
|
3618
|
-
}), r;
|
|
3619
|
-
}
|
|
3620
|
-
ys(Lo);
|
|
3621
|
-
function Ss(e) {
|
|
3622
|
-
const {
|
|
3623
|
-
children: t
|
|
3624
|
-
} = e, [, r] = Wr(), {
|
|
3625
|
-
motion: n
|
|
3626
|
-
} = r, o = v.useRef(!1);
|
|
3627
|
-
return o.current = o.current || n === !1, o.current ? /* @__PURE__ */ v.createElement(es, {
|
|
3628
|
-
motion: n
|
|
3629
|
-
}, t) : t;
|
|
3630
|
-
}
|
|
3631
|
-
const Fo = /* @__PURE__ */ v.memo((e) => {
|
|
3632
|
-
let {
|
|
3633
|
-
dropdownMatchSelectWidth: t
|
|
3634
|
-
} = e;
|
|
3635
|
-
return po("ConfigProvider").deprecated(t === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), null;
|
|
3636
|
-
});
|
|
3637
|
-
process.env.NODE_ENV !== "production" && (Fo.displayName = "PropWarning");
|
|
3638
|
-
const xs = process.env.NODE_ENV !== "production" ? Fo : () => null;
|
|
3639
|
-
var Es = globalThis && globalThis.__rest || function(e, t) {
|
|
3640
|
-
var r = {};
|
|
3641
|
-
for (var n in e)
|
|
3642
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3643
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
3644
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
3645
|
-
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
3646
|
-
return r;
|
|
3647
|
-
};
|
|
3648
|
-
let Rr = !1;
|
|
3649
|
-
process.env.NODE_ENV;
|
|
3650
|
-
const Cs = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "pagination", "form", "select", "button"], Ts = "ant";
|
|
3651
|
-
let zo;
|
|
3652
|
-
function ws() {
|
|
3653
|
-
return zo || Ts;
|
|
3654
|
-
}
|
|
3655
|
-
function Os(e) {
|
|
3656
|
-
return Object.keys(e).some((t) => t.endsWith("Color"));
|
|
3657
|
-
}
|
|
3658
|
-
const Ps = (e) => {
|
|
3659
|
-
let {
|
|
3660
|
-
prefixCls: t,
|
|
3661
|
-
iconPrefixCls: r,
|
|
3662
|
-
theme: n
|
|
3663
|
-
} = e;
|
|
3664
|
-
t !== void 0 && (zo = t), n && Os(n) && (process.env.NODE_ENV !== "production" && Ht(!1, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead."), Dc(ws(), n));
|
|
3665
|
-
}, ks = (e) => {
|
|
3666
|
-
const {
|
|
3667
|
-
children: t,
|
|
3668
|
-
csp: r,
|
|
3669
|
-
autoInsertSpaceInButton: n,
|
|
3670
|
-
alert: o,
|
|
3671
|
-
anchor: a,
|
|
3672
|
-
form: i,
|
|
3673
|
-
locale: c,
|
|
3674
|
-
componentSize: l,
|
|
3675
|
-
direction: s,
|
|
3676
|
-
space: f,
|
|
3677
|
-
virtual: d,
|
|
3678
|
-
dropdownMatchSelectWidth: p,
|
|
3679
|
-
popupMatchSelectWidth: h,
|
|
3680
|
-
popupOverflow: y,
|
|
3681
|
-
legacyLocale: g,
|
|
3682
|
-
parentContext: u,
|
|
3683
|
-
iconPrefixCls: S,
|
|
3684
|
-
theme: m,
|
|
3685
|
-
componentDisabled: O,
|
|
3686
|
-
segmented: T,
|
|
3687
|
-
statistic: E,
|
|
3688
|
-
spin: C,
|
|
3689
|
-
calendar: b,
|
|
3690
|
-
carousel: A,
|
|
3691
|
-
cascader: $,
|
|
3692
|
-
collapse: w,
|
|
3693
|
-
typography: R,
|
|
3694
|
-
checkbox: P,
|
|
3695
|
-
descriptions: k,
|
|
3696
|
-
divider: N,
|
|
3697
|
-
drawer: M,
|
|
3698
|
-
skeleton: D,
|
|
3699
|
-
steps: V,
|
|
3700
|
-
image: G,
|
|
3701
|
-
layout: W,
|
|
3702
|
-
list: H,
|
|
3703
|
-
mentions: F,
|
|
3704
|
-
modal: z,
|
|
3705
|
-
progress: te,
|
|
3706
|
-
result: Q,
|
|
3707
|
-
slider: ce,
|
|
3708
|
-
breadcrumb: Le,
|
|
3709
|
-
menu: qe,
|
|
3710
|
-
pagination: Qe,
|
|
3711
|
-
input: Je,
|
|
3712
|
-
empty: $e,
|
|
3713
|
-
badge: he,
|
|
3714
|
-
radio: Ze,
|
|
3715
|
-
rate: De,
|
|
3716
|
-
switch: x,
|
|
3717
|
-
transfer: ne,
|
|
3718
|
-
avatar: Ee,
|
|
3719
|
-
message: Ce,
|
|
3720
|
-
tag: et,
|
|
3721
|
-
table: re,
|
|
3722
|
-
card: K,
|
|
3723
|
-
tabs: q,
|
|
3724
|
-
timeline: se,
|
|
3725
|
-
timePicker: Oe,
|
|
3726
|
-
upload: Yo,
|
|
3727
|
-
notification: Ko,
|
|
3728
|
-
tree: qo,
|
|
3729
|
-
colorPicker: Qo,
|
|
3730
|
-
datePicker: Jo,
|
|
3731
|
-
rangePicker: Zo,
|
|
3732
|
-
flex: ea,
|
|
3733
|
-
wave: ta,
|
|
3734
|
-
dropdown: ra,
|
|
3735
|
-
warning: na
|
|
3736
|
-
} = e, oa = v.useCallback((X, Z) => {
|
|
3737
|
-
const {
|
|
3738
|
-
prefixCls: pe
|
|
3739
|
-
} = e;
|
|
3740
|
-
if (Z)
|
|
3741
|
-
return Z;
|
|
3742
|
-
const ve = pe || u.getPrefixCls("");
|
|
3743
|
-
return X ? `${ve}-${X}` : ve;
|
|
3744
|
-
}, [u.getPrefixCls, e.prefixCls]), tt = S || u.iconPrefixCls || wo, rt = r || u.csp;
|
|
3745
|
-
Ao(tt, rt);
|
|
3746
|
-
const ut = Jc(m, u.theme);
|
|
3747
|
-
process.env.NODE_ENV !== "production" && (Rr = Rr || !!ut);
|
|
3748
|
-
const Bt = {
|
|
3749
|
-
csp: rt,
|
|
3750
|
-
autoInsertSpaceInButton: n,
|
|
3751
|
-
alert: o,
|
|
3752
|
-
anchor: a,
|
|
3753
|
-
locale: c || g,
|
|
3754
|
-
direction: s,
|
|
3755
|
-
space: f,
|
|
3756
|
-
virtual: d,
|
|
3757
|
-
popupMatchSelectWidth: h ?? p,
|
|
3758
|
-
popupOverflow: y,
|
|
3759
|
-
getPrefixCls: oa,
|
|
3760
|
-
iconPrefixCls: tt,
|
|
3761
|
-
theme: ut,
|
|
3762
|
-
segmented: T,
|
|
3763
|
-
statistic: E,
|
|
3764
|
-
spin: C,
|
|
3765
|
-
calendar: b,
|
|
3766
|
-
carousel: A,
|
|
3767
|
-
cascader: $,
|
|
3768
|
-
collapse: w,
|
|
3769
|
-
typography: R,
|
|
3770
|
-
checkbox: P,
|
|
3771
|
-
descriptions: k,
|
|
3772
|
-
divider: N,
|
|
3773
|
-
drawer: M,
|
|
3774
|
-
skeleton: D,
|
|
3775
|
-
steps: V,
|
|
3776
|
-
image: G,
|
|
3777
|
-
input: Je,
|
|
3778
|
-
layout: W,
|
|
3779
|
-
list: H,
|
|
3780
|
-
mentions: F,
|
|
3781
|
-
modal: z,
|
|
3782
|
-
progress: te,
|
|
3783
|
-
result: Q,
|
|
3784
|
-
slider: ce,
|
|
3785
|
-
breadcrumb: Le,
|
|
3786
|
-
menu: qe,
|
|
3787
|
-
pagination: Qe,
|
|
3788
|
-
empty: $e,
|
|
3789
|
-
badge: he,
|
|
3790
|
-
radio: Ze,
|
|
3791
|
-
rate: De,
|
|
3792
|
-
switch: x,
|
|
3793
|
-
transfer: ne,
|
|
3794
|
-
avatar: Ee,
|
|
3795
|
-
message: Ce,
|
|
3796
|
-
tag: et,
|
|
3797
|
-
table: re,
|
|
3798
|
-
card: K,
|
|
3799
|
-
tabs: q,
|
|
3800
|
-
timeline: se,
|
|
3801
|
-
timePicker: Oe,
|
|
3802
|
-
upload: Yo,
|
|
3803
|
-
notification: Ko,
|
|
3804
|
-
tree: qo,
|
|
3805
|
-
colorPicker: Qo,
|
|
3806
|
-
datePicker: Jo,
|
|
3807
|
-
rangePicker: Zo,
|
|
3808
|
-
flex: ea,
|
|
3809
|
-
wave: ta,
|
|
3810
|
-
dropdown: ra,
|
|
3811
|
-
warning: na
|
|
3812
|
-
}, ft = Object.assign({}, u);
|
|
3813
|
-
Object.keys(Bt).forEach((X) => {
|
|
3814
|
-
Bt[X] !== void 0 && (ft[X] = Bt[X]);
|
|
3815
|
-
}), Cs.forEach((X) => {
|
|
3816
|
-
const Z = e[X];
|
|
3817
|
-
Z && (ft[X] = Z);
|
|
3818
|
-
});
|
|
3819
|
-
const He = Ln(() => ft, ft, (X, Z) => {
|
|
3820
|
-
const pe = Object.keys(X), ve = Object.keys(Z);
|
|
3821
|
-
return pe.length !== ve.length || pe.some((dt) => X[dt] !== Z[dt]);
|
|
3822
|
-
}), aa = v.useMemo(() => ({
|
|
3823
|
-
prefixCls: tt,
|
|
3824
|
-
csp: rt
|
|
3825
|
-
}), [tt, rt]);
|
|
3826
|
-
let J = /* @__PURE__ */ v.createElement(v.Fragment, null, /* @__PURE__ */ v.createElement(xs, {
|
|
3827
|
-
dropdownMatchSelectWidth: p
|
|
3828
|
-
}), t);
|
|
3829
|
-
const Gr = v.useMemo(() => {
|
|
3830
|
-
var X, Z, pe, ve;
|
|
3831
|
-
return Yi(((X = Ft.Form) === null || X === void 0 ? void 0 : X.defaultValidateMessages) || {}, ((pe = (Z = He.locale) === null || Z === void 0 ? void 0 : Z.Form) === null || pe === void 0 ? void 0 : pe.defaultValidateMessages) || {}, ((ve = He.form) === null || ve === void 0 ? void 0 : ve.validateMessages) || {}, (i == null ? void 0 : i.validateMessages) || {});
|
|
3832
|
-
}, [He, i == null ? void 0 : i.validateMessages]);
|
|
3833
|
-
Object.keys(Gr).length > 0 && (J = /* @__PURE__ */ v.createElement(qi.Provider, {
|
|
3834
|
-
value: Gr
|
|
3835
|
-
}, J)), c && (J = /* @__PURE__ */ v.createElement(oc, {
|
|
3836
|
-
locale: c,
|
|
3837
|
-
_ANT_MARK__: ho
|
|
3838
|
-
}, J)), (tt || rt) && (J = /* @__PURE__ */ v.createElement(Vi.Provider, {
|
|
3839
|
-
value: aa
|
|
3840
|
-
}, J)), l && (J = /* @__PURE__ */ v.createElement(zc, {
|
|
3841
|
-
size: l
|
|
3842
|
-
}, J)), J = /* @__PURE__ */ v.createElement(Ss, null, J);
|
|
3843
|
-
const ia = v.useMemo(() => {
|
|
3844
|
-
const X = ut || {}, {
|
|
3845
|
-
algorithm: Z,
|
|
3846
|
-
token: pe,
|
|
3847
|
-
components: ve
|
|
3848
|
-
} = X, dt = Es(X, ["algorithm", "token", "components"]), Ur = Z && (!Array.isArray(Z) || Z.length > 0) ? pr(Z) : Eo, Wt = {};
|
|
3849
|
-
Object.entries(ve || {}).forEach((ca) => {
|
|
3850
|
-
let [sa, la] = ca;
|
|
3851
|
-
const me = Object.assign({}, la);
|
|
3852
|
-
"algorithm" in me && (me.algorithm === !0 ? me.theme = Ur : (Array.isArray(me.algorithm) || typeof me.algorithm == "function") && (me.theme = pr(me.algorithm)), delete me.algorithm), Wt[sa] = me;
|
|
3853
|
-
});
|
|
3854
|
-
const Xr = Object.assign(Object.assign({}, ct), pe);
|
|
3855
|
-
return Object.assign(Object.assign({}, dt), {
|
|
3856
|
-
theme: Ur,
|
|
3857
|
-
token: Xr,
|
|
3858
|
-
components: Wt,
|
|
3859
|
-
override: Object.assign({
|
|
3860
|
-
override: Xr
|
|
3861
|
-
}, Wt)
|
|
3862
|
-
});
|
|
3863
|
-
}, [ut]);
|
|
3864
|
-
return m && (J = /* @__PURE__ */ v.createElement(To.Provider, {
|
|
3865
|
-
value: ia
|
|
3866
|
-
}, J)), He.warning && (J = /* @__PURE__ */ v.createElement(fo.Provider, {
|
|
3867
|
-
value: He.warning
|
|
3868
|
-
}, J)), O !== void 0 && (J = /* @__PURE__ */ v.createElement(Hc, {
|
|
3869
|
-
disabled: O
|
|
3870
|
-
}, J)), /* @__PURE__ */ v.createElement(Ye.Provider, {
|
|
3871
|
-
value: He
|
|
3872
|
-
}, J);
|
|
3873
|
-
}, Ke = (e) => {
|
|
3874
|
-
const t = v.useContext(Ye), r = v.useContext(go);
|
|
3875
|
-
return /* @__PURE__ */ v.createElement(ks, Object.assign({
|
|
3876
|
-
parentContext: t,
|
|
3877
|
-
legacyLocale: r
|
|
3878
|
-
}, e));
|
|
3879
|
-
};
|
|
3880
|
-
Ke.ConfigContext = Ye;
|
|
3881
|
-
Ke.SizeContext = zt;
|
|
3882
|
-
Ke.config = Ps;
|
|
3883
|
-
Ke.useConfig = Bc;
|
|
3884
|
-
Object.defineProperty(Ke, "SizeContext", {
|
|
3885
|
-
get: () => (process.env.NODE_ENV !== "production" && Ht(!1, "ConfigProvider", "ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."), zt)
|
|
3886
|
-
});
|
|
3887
|
-
process.env.NODE_ENV !== "production" && (Ke.displayName = "ConfigProvider");
|
|
3888
|
-
const As = (e) => {
|
|
3889
|
-
const t = Ie.useContext(zt);
|
|
3890
|
-
return Ie.useMemo(() => e ? typeof e == "string" ? e ?? t : e instanceof Function ? e(t) : t : t, [e, t]);
|
|
3891
|
-
}, Ms = As, Rs = (e) => {
|
|
3892
|
-
const {
|
|
3893
|
-
componentCls: t
|
|
3894
|
-
} = e;
|
|
3895
|
-
return {
|
|
3896
|
-
[t]: {
|
|
3897
|
-
"&-block": {
|
|
3898
|
-
display: "flex",
|
|
3899
|
-
width: "100%"
|
|
3900
|
-
},
|
|
3901
|
-
"&-vertical": {
|
|
3902
|
-
flexDirection: "column"
|
|
3903
|
-
}
|
|
3904
|
-
}
|
|
3905
|
-
};
|
|
3906
|
-
}, _s = Rs, js = (e) => {
|
|
3907
|
-
const {
|
|
3908
|
-
componentCls: t
|
|
3909
|
-
} = e;
|
|
3910
|
-
return {
|
|
3911
|
-
[t]: {
|
|
3912
|
-
display: "inline-flex",
|
|
3913
|
-
"&-rtl": {
|
|
3914
|
-
direction: "rtl"
|
|
3915
|
-
},
|
|
3916
|
-
"&-vertical": {
|
|
3917
|
-
flexDirection: "column"
|
|
3918
|
-
},
|
|
3919
|
-
"&-align": {
|
|
3920
|
-
flexDirection: "column",
|
|
3921
|
-
"&-center": {
|
|
3922
|
-
alignItems: "center"
|
|
3923
|
-
},
|
|
3924
|
-
"&-start": {
|
|
3925
|
-
alignItems: "flex-start"
|
|
3926
|
-
},
|
|
3927
|
-
"&-end": {
|
|
3928
|
-
alignItems: "flex-end"
|
|
3929
|
-
},
|
|
3930
|
-
"&-baseline": {
|
|
3931
|
-
alignItems: "baseline"
|
|
3932
|
-
}
|
|
3933
|
-
},
|
|
3934
|
-
[`${t}-item:empty`]: {
|
|
3935
|
-
display: "none"
|
|
3936
|
-
}
|
|
3937
|
-
}
|
|
3938
|
-
};
|
|
3939
|
-
}, Is = (e) => {
|
|
3940
|
-
const {
|
|
3941
|
-
componentCls: t
|
|
3942
|
-
} = e;
|
|
3943
|
-
return {
|
|
3944
|
-
[t]: {
|
|
3945
|
-
"&-gap-row-small": {
|
|
3946
|
-
rowGap: e.spaceGapSmallSize
|
|
3947
|
-
},
|
|
3948
|
-
"&-gap-row-middle": {
|
|
3949
|
-
rowGap: e.spaceGapMiddleSize
|
|
3950
|
-
},
|
|
3951
|
-
"&-gap-row-large": {
|
|
3952
|
-
rowGap: e.spaceGapLargeSize
|
|
3953
|
-
},
|
|
3954
|
-
"&-gap-col-small": {
|
|
3955
|
-
columnGap: e.spaceGapSmallSize
|
|
3956
|
-
},
|
|
3957
|
-
"&-gap-col-middle": {
|
|
3958
|
-
columnGap: e.spaceGapMiddleSize
|
|
3959
|
-
},
|
|
3960
|
-
"&-gap-col-large": {
|
|
3961
|
-
columnGap: e.spaceGapLargeSize
|
|
3962
|
-
}
|
|
3963
|
-
}
|
|
3964
|
-
};
|
|
3965
|
-
}, Bo = Qc("Space", (e) => {
|
|
3966
|
-
const t = Or(e, {
|
|
3967
|
-
spaceGapSmallSize: e.paddingXS,
|
|
3968
|
-
spaceGapMiddleSize: e.padding,
|
|
3969
|
-
spaceGapLargeSize: e.paddingLG
|
|
3970
|
-
});
|
|
3971
|
-
return [js(t), Is(t), _s(t)];
|
|
3972
|
-
}, () => ({}), {
|
|
3973
|
-
// Space component don't apply extra font style
|
|
3974
|
-
// https://github.com/ant-design/ant-design/issues/40315
|
|
3975
|
-
resetStyle: !1
|
|
3976
|
-
});
|
|
3977
|
-
var Wo = globalThis && globalThis.__rest || function(e, t) {
|
|
3978
|
-
var r = {};
|
|
3979
|
-
for (var n in e)
|
|
3980
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3981
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
3982
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
3983
|
-
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
3984
|
-
return r;
|
|
3985
|
-
};
|
|
3986
|
-
const Vo = /* @__PURE__ */ v.createContext(null), Ns = (e) => {
|
|
3987
|
-
var {
|
|
3988
|
-
children: t
|
|
3989
|
-
} = e, r = Wo(e, ["children"]);
|
|
3990
|
-
return /* @__PURE__ */ v.createElement(Vo.Provider, {
|
|
3991
|
-
value: r
|
|
3992
|
-
}, t);
|
|
3993
|
-
}, Ls = (e) => {
|
|
3994
|
-
const {
|
|
3995
|
-
getPrefixCls: t,
|
|
3996
|
-
direction: r
|
|
3997
|
-
} = v.useContext(Ye), {
|
|
3998
|
-
size: n,
|
|
3999
|
-
direction: o,
|
|
4000
|
-
block: a,
|
|
4001
|
-
prefixCls: i,
|
|
4002
|
-
className: c,
|
|
4003
|
-
rootClassName: l,
|
|
4004
|
-
children: s
|
|
4005
|
-
} = e, f = Wo(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), d = Ms((O) => n ?? O), p = t("space-compact", i), [h, y] = Bo(p), g = Mt(p, y, {
|
|
4006
|
-
[`${p}-rtl`]: r === "rtl",
|
|
4007
|
-
[`${p}-block`]: a,
|
|
4008
|
-
[`${p}-vertical`]: o === "vertical"
|
|
4009
|
-
}, c, l), u = v.useContext(Vo), S = _t(s), m = v.useMemo(() => S.map((O, T) => {
|
|
4010
|
-
const E = O && O.key || `${p}-item-${T}`;
|
|
4011
|
-
return /* @__PURE__ */ v.createElement(Ns, {
|
|
4012
|
-
key: E,
|
|
4013
|
-
compactSize: d,
|
|
4014
|
-
compactDirection: o,
|
|
4015
|
-
isFirstItem: T === 0 && (!u || (u == null ? void 0 : u.isFirstItem)),
|
|
4016
|
-
isLastItem: T === S.length - 1 && (!u || (u == null ? void 0 : u.isLastItem))
|
|
4017
|
-
}, O);
|
|
4018
|
-
}), [n, S, u]);
|
|
4019
|
-
return S.length === 0 ? null : h(/* @__PURE__ */ v.createElement("div", Object.assign({
|
|
4020
|
-
className: g
|
|
4021
|
-
}, f), m));
|
|
4022
|
-
}, $s = Ls;
|
|
4023
|
-
function An(e) {
|
|
4024
|
-
return ["small", "middle", "large"].includes(e);
|
|
4025
|
-
}
|
|
4026
|
-
function Mn(e) {
|
|
4027
|
-
return e ? typeof e == "number" && !Number.isNaN(e) : !1;
|
|
4028
|
-
}
|
|
4029
|
-
const Go = /* @__PURE__ */ Ie.createContext({
|
|
4030
|
-
latestIndex: 0
|
|
4031
|
-
}), Ds = Go.Provider, Hs = (e) => {
|
|
4032
|
-
let {
|
|
4033
|
-
className: t,
|
|
4034
|
-
index: r,
|
|
4035
|
-
children: n,
|
|
4036
|
-
split: o,
|
|
4037
|
-
style: a
|
|
4038
|
-
} = e;
|
|
4039
|
-
const {
|
|
4040
|
-
latestIndex: i
|
|
4041
|
-
} = v.useContext(Go);
|
|
4042
|
-
return n == null ? null : /* @__PURE__ */ v.createElement(v.Fragment, null, /* @__PURE__ */ v.createElement("div", {
|
|
4043
|
-
className: t,
|
|
4044
|
-
style: a
|
|
4045
|
-
}, n), r < i && o && /* @__PURE__ */ v.createElement("span", {
|
|
4046
|
-
className: `${t}-split`
|
|
4047
|
-
}, o));
|
|
4048
|
-
}, Fs = Hs;
|
|
4049
|
-
var zs = globalThis && globalThis.__rest || function(e, t) {
|
|
4050
|
-
var r = {};
|
|
4051
|
-
for (var n in e)
|
|
4052
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4053
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
4054
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
4055
|
-
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
4056
|
-
return r;
|
|
4057
|
-
};
|
|
4058
|
-
const Uo = /* @__PURE__ */ v.forwardRef((e, t) => {
|
|
4059
|
-
var r, n;
|
|
4060
|
-
const {
|
|
4061
|
-
getPrefixCls: o,
|
|
4062
|
-
space: a,
|
|
4063
|
-
direction: i
|
|
4064
|
-
} = v.useContext(Ye), {
|
|
4065
|
-
size: c = (a == null ? void 0 : a.size) || "small",
|
|
4066
|
-
align: l,
|
|
4067
|
-
className: s,
|
|
4068
|
-
rootClassName: f,
|
|
4069
|
-
children: d,
|
|
4070
|
-
direction: p = "horizontal",
|
|
4071
|
-
prefixCls: h,
|
|
4072
|
-
split: y,
|
|
4073
|
-
style: g,
|
|
4074
|
-
wrap: u = !1,
|
|
4075
|
-
classNames: S,
|
|
4076
|
-
styles: m
|
|
4077
|
-
} = e, O = zs(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [T, E] = Array.isArray(c) ? c : [c, c], C = An(E), b = An(T), A = Mn(E), $ = Mn(T), w = _t(d, {
|
|
4078
|
-
keepEmpty: !0
|
|
4079
|
-
}), R = l === void 0 && p === "horizontal" ? "center" : l, P = o("space", h), [k, N] = Bo(P), M = Mt(P, a == null ? void 0 : a.className, N, `${P}-${p}`, {
|
|
4080
|
-
[`${P}-rtl`]: i === "rtl",
|
|
4081
|
-
[`${P}-align-${R}`]: R,
|
|
4082
|
-
[`${P}-gap-row-${E}`]: C,
|
|
4083
|
-
[`${P}-gap-col-${T}`]: b
|
|
4084
|
-
}, s, f), D = Mt(`${P}-item`, (r = S == null ? void 0 : S.item) !== null && r !== void 0 ? r : (n = a == null ? void 0 : a.classNames) === null || n === void 0 ? void 0 : n.item);
|
|
4085
|
-
let V = 0;
|
|
4086
|
-
const G = w.map((F, z) => {
|
|
4087
|
-
var te, Q;
|
|
4088
|
-
F != null && (V = z);
|
|
4089
|
-
const ce = F && F.key || `${D}-${z}`;
|
|
4090
|
-
return /* @__PURE__ */ v.createElement(Fs, {
|
|
4091
|
-
className: D,
|
|
4092
|
-
key: ce,
|
|
4093
|
-
index: z,
|
|
4094
|
-
split: y,
|
|
4095
|
-
style: (te = m == null ? void 0 : m.item) !== null && te !== void 0 ? te : (Q = a == null ? void 0 : a.styles) === null || Q === void 0 ? void 0 : Q.item
|
|
4096
|
-
}, F);
|
|
4097
|
-
}), W = v.useMemo(() => ({
|
|
4098
|
-
latestIndex: V
|
|
4099
|
-
}), [V]);
|
|
4100
|
-
if (w.length === 0)
|
|
4101
|
-
return null;
|
|
4102
|
-
const H = {};
|
|
4103
|
-
return u && (H.flexWrap = "wrap"), !b && $ && (H.columnGap = T), !C && A && (H.rowGap = E), k(/* @__PURE__ */ v.createElement("div", Object.assign({
|
|
4104
|
-
ref: t,
|
|
4105
|
-
className: M,
|
|
4106
|
-
style: Object.assign(Object.assign(Object.assign({}, H), a == null ? void 0 : a.style), g)
|
|
4107
|
-
}, O), /* @__PURE__ */ v.createElement(Ds, {
|
|
4108
|
-
value: W
|
|
4109
|
-
}, G)));
|
|
4110
|
-
});
|
|
4111
|
-
process.env.NODE_ENV !== "production" && (Uo.displayName = "Space");
|
|
4112
|
-
const Xo = Uo;
|
|
4113
|
-
Xo.Compact = $s;
|
|
4114
|
-
const Bs = Xo, Us = ({ children: e, ...t }) => /* @__PURE__ */ ua(Bs, { ...t, children: e });
|
|
4115
|
-
export {
|
|
4116
|
-
Us as Space
|
|
4117
|
-
};
|