@web-fuse/wf-components 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Display/Card/DarkCard.d.ts +6 -0
- package/dist/Display/Card/LightCard.d.ts +6 -0
- package/dist/Display/Card/index.d.ts +4 -0
- package/dist/Display/Collapse/Collapse.d.ts +16 -0
- package/dist/Display/Collapse/CollapseBase.d.ts +27 -0
- package/dist/Display/Collapse/CollapseContent.d.ts +10 -0
- package/dist/Display/Collapse/index.d.ts +12 -0
- package/dist/Display/Selector/SelectorItem.d.ts +10 -0
- package/dist/Display/Selector/SelectorSubItem.d.ts +11 -0
- package/dist/Display/Selector/index.d.ts +31 -0
- package/dist/Display/Selector/style.d.ts +16 -0
- package/dist/Display/index.d.ts +5 -0
- package/dist/Form/Buttons.d.ts +29 -0
- package/dist/Form/HoverLabel.d.ts +11 -0
- package/dist/Form/Input.d.ts +15 -0
- package/dist/Form/index.d.ts +4 -0
- package/dist/Layout/Main/MainSelector.d.ts +12 -0
- package/dist/Layout/Main/MainSettings.d.ts +5 -0
- package/dist/Layout/Main/index.d.ts +14 -0
- package/dist/Layout/Navbar/NavbarDropdown.d.ts +14 -0
- package/dist/Layout/Navbar/index.d.ts +31 -0
- package/dist/Layout/Navbar/style.d.ts +5 -0
- package/dist/Layout/index.d.ts +5 -0
- package/dist/Oauth/ErrorBoundary.d.ts +12 -0
- package/dist/Oauth/LoginContainer.d.ts +10 -0
- package/dist/Oauth/PageBackground.d.ts +7 -0
- package/dist/Oauth/index.d.ts +5 -0
- package/dist/index.cjs.js +660 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +2882 -0
- package/dist/index.es.js.map +1 -0
- package/dist/util/index.d.ts +1 -0
- package/dist/util/wfDarkAlgorithm.d.ts +7 -0
- package/package.json +65 -0
package/dist/index.es.js
ADDED
@@ -0,0 +1,2882 @@
|
|
1
|
+
import * as M from "react";
|
2
|
+
import We, { forwardRef as X, useState as G, useRef as Ve, useImperativeHandle as nt, useCallback as fr, useEffect as V, createContext as en, useContext as rn, useMemo as at, isValidElement as tn } from "react";
|
3
|
+
import E, { keyframes as ot, css as it, createGlobalStyle as nn } from "styled-components";
|
4
|
+
import { theme as B, Typography as U, Input as st, Space as yr, Button as ct, Form as an, Card as on, Collapse as sn } from "antd";
|
5
|
+
function cn(e) {
|
6
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
7
|
+
}
|
8
|
+
var dr = { exports: {} }, Se = {};
|
9
|
+
/**
|
10
|
+
* @license React
|
11
|
+
* react-jsx-runtime.production.min.js
|
12
|
+
*
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
14
|
+
*
|
15
|
+
* This source code is licensed under the MIT license found in the
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
17
|
+
*/
|
18
|
+
var Mr;
|
19
|
+
function ln() {
|
20
|
+
if (Mr)
|
21
|
+
return Se;
|
22
|
+
Mr = 1;
|
23
|
+
var e = We, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
24
|
+
function i(f, l, g) {
|
25
|
+
var m, d = {}, b = null, S = null;
|
26
|
+
g !== void 0 && (b = "" + g), l.key !== void 0 && (b = "" + l.key), l.ref !== void 0 && (S = l.ref);
|
27
|
+
for (m in l)
|
28
|
+
a.call(l, m) && !s.hasOwnProperty(m) && (d[m] = l[m]);
|
29
|
+
if (f && f.defaultProps)
|
30
|
+
for (m in l = f.defaultProps, l)
|
31
|
+
d[m] === void 0 && (d[m] = l[m]);
|
32
|
+
return { $$typeof: t, type: f, key: b, ref: S, props: d, _owner: o.current };
|
33
|
+
}
|
34
|
+
return Se.Fragment = r, Se.jsx = i, Se.jsxs = i, Se;
|
35
|
+
}
|
36
|
+
var Ce = {};
|
37
|
+
/**
|
38
|
+
* @license React
|
39
|
+
* react-jsx-runtime.development.js
|
40
|
+
*
|
41
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
42
|
+
*
|
43
|
+
* This source code is licensed under the MIT license found in the
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
45
|
+
*/
|
46
|
+
var Nr;
|
47
|
+
function un() {
|
48
|
+
return Nr || (Nr = 1, process.env.NODE_ENV !== "production" && function() {
|
49
|
+
var e = We, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), f = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), T = Symbol.iterator, v = "@@iterator";
|
50
|
+
function c(n) {
|
51
|
+
if (n === null || typeof n != "object")
|
52
|
+
return null;
|
53
|
+
var u = T && n[T] || n[v];
|
54
|
+
return typeof u == "function" ? u : null;
|
55
|
+
}
|
56
|
+
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
57
|
+
function C(n) {
|
58
|
+
{
|
59
|
+
for (var u = arguments.length, h = new Array(u > 1 ? u - 1 : 0), x = 1; x < u; x++)
|
60
|
+
h[x - 1] = arguments[x];
|
61
|
+
$("error", n, h);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
function $(n, u, h) {
|
65
|
+
{
|
66
|
+
var x = w.ReactDebugCurrentFrame, _ = x.getStackAddendum();
|
67
|
+
_ !== "" && (u += "%s", h = h.concat([_]));
|
68
|
+
var O = h.map(function(R) {
|
69
|
+
return String(R);
|
70
|
+
});
|
71
|
+
O.unshift("Warning: " + u), Function.prototype.apply.call(console[n], console, O);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
var z = !1, F = !1, me = !1, ie = !1, se = !1, ne;
|
75
|
+
ne = Symbol.for("react.module.reference");
|
76
|
+
function ce(n) {
|
77
|
+
return !!(typeof n == "string" || typeof n == "function" || n === a || n === s || se || n === o || n === g || n === m || ie || n === S || z || F || me || typeof n == "object" && n !== null && (n.$$typeof === b || n.$$typeof === d || n.$$typeof === i || n.$$typeof === f || n.$$typeof === l || // This needs to include all possible module reference object
|
78
|
+
// types supported by any Flight configuration anywhere since
|
79
|
+
// we don't know which Flight build this will end up being used
|
80
|
+
// with.
|
81
|
+
n.$$typeof === ne || n.getModuleId !== void 0));
|
82
|
+
}
|
83
|
+
function le(n, u, h) {
|
84
|
+
var x = n.displayName;
|
85
|
+
if (x)
|
86
|
+
return x;
|
87
|
+
var _ = u.displayName || u.name || "";
|
88
|
+
return _ !== "" ? h + "(" + _ + ")" : h;
|
89
|
+
}
|
90
|
+
function ae(n) {
|
91
|
+
return n.displayName || "Context";
|
92
|
+
}
|
93
|
+
function L(n) {
|
94
|
+
if (n == null)
|
95
|
+
return null;
|
96
|
+
if (typeof n.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
97
|
+
return n.displayName || n.name || null;
|
98
|
+
if (typeof n == "string")
|
99
|
+
return n;
|
100
|
+
switch (n) {
|
101
|
+
case a:
|
102
|
+
return "Fragment";
|
103
|
+
case r:
|
104
|
+
return "Portal";
|
105
|
+
case s:
|
106
|
+
return "Profiler";
|
107
|
+
case o:
|
108
|
+
return "StrictMode";
|
109
|
+
case g:
|
110
|
+
return "Suspense";
|
111
|
+
case m:
|
112
|
+
return "SuspenseList";
|
113
|
+
}
|
114
|
+
if (typeof n == "object")
|
115
|
+
switch (n.$$typeof) {
|
116
|
+
case f:
|
117
|
+
var u = n;
|
118
|
+
return ae(u) + ".Consumer";
|
119
|
+
case i:
|
120
|
+
var h = n;
|
121
|
+
return ae(h._context) + ".Provider";
|
122
|
+
case l:
|
123
|
+
return le(n, n.render, "ForwardRef");
|
124
|
+
case d:
|
125
|
+
var x = n.displayName || null;
|
126
|
+
return x !== null ? x : L(n.type) || "Memo";
|
127
|
+
case b: {
|
128
|
+
var _ = n, O = _._payload, R = _._init;
|
129
|
+
try {
|
130
|
+
return L(R(O));
|
131
|
+
} catch {
|
132
|
+
return null;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
return null;
|
137
|
+
}
|
138
|
+
var W = Object.assign, K = 0, Pe, Oe, he, ve, $e, Ae, Ie;
|
139
|
+
function Fe() {
|
140
|
+
}
|
141
|
+
Fe.__reactDisabledLog = !0;
|
142
|
+
function Ke() {
|
143
|
+
{
|
144
|
+
if (K === 0) {
|
145
|
+
Pe = console.log, Oe = console.info, he = console.warn, ve = console.error, $e = console.group, Ae = console.groupCollapsed, Ie = console.groupEnd;
|
146
|
+
var n = {
|
147
|
+
configurable: !0,
|
148
|
+
enumerable: !0,
|
149
|
+
value: Fe,
|
150
|
+
writable: !0
|
151
|
+
};
|
152
|
+
Object.defineProperties(console, {
|
153
|
+
info: n,
|
154
|
+
log: n,
|
155
|
+
warn: n,
|
156
|
+
error: n,
|
157
|
+
group: n,
|
158
|
+
groupCollapsed: n,
|
159
|
+
groupEnd: n
|
160
|
+
});
|
161
|
+
}
|
162
|
+
K++;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
function Je() {
|
166
|
+
{
|
167
|
+
if (K--, K === 0) {
|
168
|
+
var n = {
|
169
|
+
configurable: !0,
|
170
|
+
enumerable: !0,
|
171
|
+
writable: !0
|
172
|
+
};
|
173
|
+
Object.defineProperties(console, {
|
174
|
+
log: W({}, n, {
|
175
|
+
value: Pe
|
176
|
+
}),
|
177
|
+
info: W({}, n, {
|
178
|
+
value: Oe
|
179
|
+
}),
|
180
|
+
warn: W({}, n, {
|
181
|
+
value: he
|
182
|
+
}),
|
183
|
+
error: W({}, n, {
|
184
|
+
value: ve
|
185
|
+
}),
|
186
|
+
group: W({}, n, {
|
187
|
+
value: $e
|
188
|
+
}),
|
189
|
+
groupCollapsed: W({}, n, {
|
190
|
+
value: Ae
|
191
|
+
}),
|
192
|
+
groupEnd: W({}, n, {
|
193
|
+
value: Ie
|
194
|
+
})
|
195
|
+
});
|
196
|
+
}
|
197
|
+
K < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
198
|
+
}
|
199
|
+
}
|
200
|
+
var be = w.ReactCurrentDispatcher, ye;
|
201
|
+
function ue(n, u, h) {
|
202
|
+
{
|
203
|
+
if (ye === void 0)
|
204
|
+
try {
|
205
|
+
throw Error();
|
206
|
+
} catch (_) {
|
207
|
+
var x = _.stack.trim().match(/\n( *(at )?)/);
|
208
|
+
ye = x && x[1] || "";
|
209
|
+
}
|
210
|
+
return `
|
211
|
+
` + ye + n;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
var xe = !1, fe;
|
215
|
+
{
|
216
|
+
var Xe = typeof WeakMap == "function" ? WeakMap : Map;
|
217
|
+
fe = new Xe();
|
218
|
+
}
|
219
|
+
function Me(n, u) {
|
220
|
+
if (!n || xe)
|
221
|
+
return "";
|
222
|
+
{
|
223
|
+
var h = fe.get(n);
|
224
|
+
if (h !== void 0)
|
225
|
+
return h;
|
226
|
+
}
|
227
|
+
var x;
|
228
|
+
xe = !0;
|
229
|
+
var _ = Error.prepareStackTrace;
|
230
|
+
Error.prepareStackTrace = void 0;
|
231
|
+
var O;
|
232
|
+
O = be.current, be.current = null, Ke();
|
233
|
+
try {
|
234
|
+
if (u) {
|
235
|
+
var R = function() {
|
236
|
+
throw Error();
|
237
|
+
};
|
238
|
+
if (Object.defineProperty(R.prototype, "props", {
|
239
|
+
set: function() {
|
240
|
+
throw Error();
|
241
|
+
}
|
242
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
243
|
+
try {
|
244
|
+
Reflect.construct(R, []);
|
245
|
+
} catch (Q) {
|
246
|
+
x = Q;
|
247
|
+
}
|
248
|
+
Reflect.construct(n, [], R);
|
249
|
+
} else {
|
250
|
+
try {
|
251
|
+
R.call();
|
252
|
+
} catch (Q) {
|
253
|
+
x = Q;
|
254
|
+
}
|
255
|
+
n.call(R.prototype);
|
256
|
+
}
|
257
|
+
} else {
|
258
|
+
try {
|
259
|
+
throw Error();
|
260
|
+
} catch (Q) {
|
261
|
+
x = Q;
|
262
|
+
}
|
263
|
+
n();
|
264
|
+
}
|
265
|
+
} catch (Q) {
|
266
|
+
if (Q && x && typeof Q.stack == "string") {
|
267
|
+
for (var k = Q.stack.split(`
|
268
|
+
`), N = x.stack.split(`
|
269
|
+
`), A = k.length - 1, I = N.length - 1; A >= 1 && I >= 0 && k[A] !== N[I]; )
|
270
|
+
I--;
|
271
|
+
for (; A >= 1 && I >= 0; A--, I--)
|
272
|
+
if (k[A] !== N[I]) {
|
273
|
+
if (A !== 1 || I !== 1)
|
274
|
+
do
|
275
|
+
if (A--, I--, I < 0 || k[A] !== N[I]) {
|
276
|
+
var Y = `
|
277
|
+
` + k[A].replace(" at new ", " at ");
|
278
|
+
return n.displayName && Y.includes("<anonymous>") && (Y = Y.replace("<anonymous>", n.displayName)), typeof n == "function" && fe.set(n, Y), Y;
|
279
|
+
}
|
280
|
+
while (A >= 1 && I >= 0);
|
281
|
+
break;
|
282
|
+
}
|
283
|
+
}
|
284
|
+
} finally {
|
285
|
+
xe = !1, be.current = O, Je(), Error.prepareStackTrace = _;
|
286
|
+
}
|
287
|
+
var pe = n ? n.displayName || n.name : "", Fr = pe ? ue(pe) : "";
|
288
|
+
return typeof n == "function" && fe.set(n, Fr), Fr;
|
289
|
+
}
|
290
|
+
function Ze(n, u, h) {
|
291
|
+
return Me(n, !1);
|
292
|
+
}
|
293
|
+
function y(n) {
|
294
|
+
var u = n.prototype;
|
295
|
+
return !!(u && u.isReactComponent);
|
296
|
+
}
|
297
|
+
function re(n, u, h) {
|
298
|
+
if (n == null)
|
299
|
+
return "";
|
300
|
+
if (typeof n == "function")
|
301
|
+
return Me(n, y(n));
|
302
|
+
if (typeof n == "string")
|
303
|
+
return ue(n);
|
304
|
+
switch (n) {
|
305
|
+
case g:
|
306
|
+
return ue("Suspense");
|
307
|
+
case m:
|
308
|
+
return ue("SuspenseList");
|
309
|
+
}
|
310
|
+
if (typeof n == "object")
|
311
|
+
switch (n.$$typeof) {
|
312
|
+
case l:
|
313
|
+
return Ze(n.render);
|
314
|
+
case d:
|
315
|
+
return re(n.type, u, h);
|
316
|
+
case b: {
|
317
|
+
var x = n, _ = x._payload, O = x._init;
|
318
|
+
try {
|
319
|
+
return re(O(_), u, h);
|
320
|
+
} catch {
|
321
|
+
}
|
322
|
+
}
|
323
|
+
}
|
324
|
+
return "";
|
325
|
+
}
|
326
|
+
var Z = Object.prototype.hasOwnProperty, we = {}, Cr = w.ReactDebugCurrentFrame;
|
327
|
+
function Ne(n) {
|
328
|
+
if (n) {
|
329
|
+
var u = n._owner, h = re(n.type, n._source, u ? u.type : null);
|
330
|
+
Cr.setExtraStackFrame(h);
|
331
|
+
} else
|
332
|
+
Cr.setExtraStackFrame(null);
|
333
|
+
}
|
334
|
+
function It(n, u, h, x, _) {
|
335
|
+
{
|
336
|
+
var O = Function.call.bind(Z);
|
337
|
+
for (var R in n)
|
338
|
+
if (O(n, R)) {
|
339
|
+
var k = void 0;
|
340
|
+
try {
|
341
|
+
if (typeof n[R] != "function") {
|
342
|
+
var N = Error((x || "React class") + ": " + h + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
343
|
+
throw N.name = "Invariant Violation", N;
|
344
|
+
}
|
345
|
+
k = n[R](u, R, x, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
346
|
+
} catch (A) {
|
347
|
+
k = A;
|
348
|
+
}
|
349
|
+
k && !(k instanceof Error) && (Ne(_), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", h, R, typeof k), Ne(null)), k instanceof Error && !(k.message in we) && (we[k.message] = !0, Ne(_), C("Failed %s type: %s", h, k.message), Ne(null));
|
350
|
+
}
|
351
|
+
}
|
352
|
+
}
|
353
|
+
var Ft = Array.isArray;
|
354
|
+
function Qe(n) {
|
355
|
+
return Ft(n);
|
356
|
+
}
|
357
|
+
function Mt(n) {
|
358
|
+
{
|
359
|
+
var u = typeof Symbol == "function" && Symbol.toStringTag, h = u && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
360
|
+
return h;
|
361
|
+
}
|
362
|
+
}
|
363
|
+
function Nt(n) {
|
364
|
+
try {
|
365
|
+
return kr(n), !1;
|
366
|
+
} catch {
|
367
|
+
return !0;
|
368
|
+
}
|
369
|
+
}
|
370
|
+
function kr(n) {
|
371
|
+
return "" + n;
|
372
|
+
}
|
373
|
+
function Rr(n) {
|
374
|
+
if (Nt(n))
|
375
|
+
return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Mt(n)), kr(n);
|
376
|
+
}
|
377
|
+
var Ee = w.ReactCurrentOwner, Lt = {
|
378
|
+
key: !0,
|
379
|
+
ref: !0,
|
380
|
+
__self: !0,
|
381
|
+
__source: !0
|
382
|
+
}, Tr, _r, er;
|
383
|
+
er = {};
|
384
|
+
function Dt(n) {
|
385
|
+
if (Z.call(n, "ref")) {
|
386
|
+
var u = Object.getOwnPropertyDescriptor(n, "ref").get;
|
387
|
+
if (u && u.isReactWarning)
|
388
|
+
return !1;
|
389
|
+
}
|
390
|
+
return n.ref !== void 0;
|
391
|
+
}
|
392
|
+
function Bt(n) {
|
393
|
+
if (Z.call(n, "key")) {
|
394
|
+
var u = Object.getOwnPropertyDescriptor(n, "key").get;
|
395
|
+
if (u && u.isReactWarning)
|
396
|
+
return !1;
|
397
|
+
}
|
398
|
+
return n.key !== void 0;
|
399
|
+
}
|
400
|
+
function zt(n, u) {
|
401
|
+
if (typeof n.ref == "string" && Ee.current && u && Ee.current.stateNode !== u) {
|
402
|
+
var h = L(Ee.current.type);
|
403
|
+
er[h] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', L(Ee.current.type), n.ref), er[h] = !0);
|
404
|
+
}
|
405
|
+
}
|
406
|
+
function Wt(n, u) {
|
407
|
+
{
|
408
|
+
var h = function() {
|
409
|
+
Tr || (Tr = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
|
410
|
+
};
|
411
|
+
h.isReactWarning = !0, Object.defineProperty(n, "key", {
|
412
|
+
get: h,
|
413
|
+
configurable: !0
|
414
|
+
});
|
415
|
+
}
|
416
|
+
}
|
417
|
+
function Yt(n, u) {
|
418
|
+
{
|
419
|
+
var h = function() {
|
420
|
+
_r || (_r = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
|
421
|
+
};
|
422
|
+
h.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
423
|
+
get: h,
|
424
|
+
configurable: !0
|
425
|
+
});
|
426
|
+
}
|
427
|
+
}
|
428
|
+
var Vt = function(n, u, h, x, _, O, R) {
|
429
|
+
var k = {
|
430
|
+
// This tag allows us to uniquely identify this as a React Element
|
431
|
+
$$typeof: t,
|
432
|
+
// Built-in properties that belong on the element
|
433
|
+
type: n,
|
434
|
+
key: u,
|
435
|
+
ref: h,
|
436
|
+
props: R,
|
437
|
+
// Record the component responsible for creating this element.
|
438
|
+
_owner: O
|
439
|
+
};
|
440
|
+
return k._store = {}, Object.defineProperty(k._store, "validated", {
|
441
|
+
configurable: !1,
|
442
|
+
enumerable: !1,
|
443
|
+
writable: !0,
|
444
|
+
value: !1
|
445
|
+
}), Object.defineProperty(k, "_self", {
|
446
|
+
configurable: !1,
|
447
|
+
enumerable: !1,
|
448
|
+
writable: !1,
|
449
|
+
value: x
|
450
|
+
}), Object.defineProperty(k, "_source", {
|
451
|
+
configurable: !1,
|
452
|
+
enumerable: !1,
|
453
|
+
writable: !1,
|
454
|
+
value: _
|
455
|
+
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
456
|
+
};
|
457
|
+
function Ht(n, u, h, x, _) {
|
458
|
+
{
|
459
|
+
var O, R = {}, k = null, N = null;
|
460
|
+
h !== void 0 && (Rr(h), k = "" + h), Bt(u) && (Rr(u.key), k = "" + u.key), Dt(u) && (N = u.ref, zt(u, _));
|
461
|
+
for (O in u)
|
462
|
+
Z.call(u, O) && !Lt.hasOwnProperty(O) && (R[O] = u[O]);
|
463
|
+
if (n && n.defaultProps) {
|
464
|
+
var A = n.defaultProps;
|
465
|
+
for (O in A)
|
466
|
+
R[O] === void 0 && (R[O] = A[O]);
|
467
|
+
}
|
468
|
+
if (k || N) {
|
469
|
+
var I = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
470
|
+
k && Wt(R, I), N && Yt(R, I);
|
471
|
+
}
|
472
|
+
return Vt(n, k, N, _, x, Ee.current, R);
|
473
|
+
}
|
474
|
+
}
|
475
|
+
var rr = w.ReactCurrentOwner, jr = w.ReactDebugCurrentFrame;
|
476
|
+
function de(n) {
|
477
|
+
if (n) {
|
478
|
+
var u = n._owner, h = re(n.type, n._source, u ? u.type : null);
|
479
|
+
jr.setExtraStackFrame(h);
|
480
|
+
} else
|
481
|
+
jr.setExtraStackFrame(null);
|
482
|
+
}
|
483
|
+
var tr;
|
484
|
+
tr = !1;
|
485
|
+
function nr(n) {
|
486
|
+
return typeof n == "object" && n !== null && n.$$typeof === t;
|
487
|
+
}
|
488
|
+
function Pr() {
|
489
|
+
{
|
490
|
+
if (rr.current) {
|
491
|
+
var n = L(rr.current.type);
|
492
|
+
if (n)
|
493
|
+
return `
|
494
|
+
|
495
|
+
Check the render method of \`` + n + "`.";
|
496
|
+
}
|
497
|
+
return "";
|
498
|
+
}
|
499
|
+
}
|
500
|
+
function Ut(n) {
|
501
|
+
{
|
502
|
+
if (n !== void 0) {
|
503
|
+
var u = n.fileName.replace(/^.*[\\\/]/, ""), h = n.lineNumber;
|
504
|
+
return `
|
505
|
+
|
506
|
+
Check your code at ` + u + ":" + h + ".";
|
507
|
+
}
|
508
|
+
return "";
|
509
|
+
}
|
510
|
+
}
|
511
|
+
var Or = {};
|
512
|
+
function qt(n) {
|
513
|
+
{
|
514
|
+
var u = Pr();
|
515
|
+
if (!u) {
|
516
|
+
var h = typeof n == "string" ? n : n.displayName || n.name;
|
517
|
+
h && (u = `
|
518
|
+
|
519
|
+
Check the top-level render call using <` + h + ">.");
|
520
|
+
}
|
521
|
+
return u;
|
522
|
+
}
|
523
|
+
}
|
524
|
+
function $r(n, u) {
|
525
|
+
{
|
526
|
+
if (!n._store || n._store.validated || n.key != null)
|
527
|
+
return;
|
528
|
+
n._store.validated = !0;
|
529
|
+
var h = qt(u);
|
530
|
+
if (Or[h])
|
531
|
+
return;
|
532
|
+
Or[h] = !0;
|
533
|
+
var x = "";
|
534
|
+
n && n._owner && n._owner !== rr.current && (x = " It was passed a child from " + L(n._owner.type) + "."), de(n), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, x), de(null);
|
535
|
+
}
|
536
|
+
}
|
537
|
+
function Ar(n, u) {
|
538
|
+
{
|
539
|
+
if (typeof n != "object")
|
540
|
+
return;
|
541
|
+
if (Qe(n))
|
542
|
+
for (var h = 0; h < n.length; h++) {
|
543
|
+
var x = n[h];
|
544
|
+
nr(x) && $r(x, u);
|
545
|
+
}
|
546
|
+
else if (nr(n))
|
547
|
+
n._store && (n._store.validated = !0);
|
548
|
+
else if (n) {
|
549
|
+
var _ = c(n);
|
550
|
+
if (typeof _ == "function" && _ !== n.entries)
|
551
|
+
for (var O = _.call(n), R; !(R = O.next()).done; )
|
552
|
+
nr(R.value) && $r(R.value, u);
|
553
|
+
}
|
554
|
+
}
|
555
|
+
}
|
556
|
+
function Gt(n) {
|
557
|
+
{
|
558
|
+
var u = n.type;
|
559
|
+
if (u == null || typeof u == "string")
|
560
|
+
return;
|
561
|
+
var h;
|
562
|
+
if (typeof u == "function")
|
563
|
+
h = u.propTypes;
|
564
|
+
else if (typeof u == "object" && (u.$$typeof === l || // Note: Memo only checks outer props here.
|
565
|
+
// Inner props are checked in the reconciler.
|
566
|
+
u.$$typeof === d))
|
567
|
+
h = u.propTypes;
|
568
|
+
else
|
569
|
+
return;
|
570
|
+
if (h) {
|
571
|
+
var x = L(u);
|
572
|
+
It(h, n.props, "prop", x, n);
|
573
|
+
} else if (u.PropTypes !== void 0 && !tr) {
|
574
|
+
tr = !0;
|
575
|
+
var _ = L(u);
|
576
|
+
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
|
577
|
+
}
|
578
|
+
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
579
|
+
}
|
580
|
+
}
|
581
|
+
function Kt(n) {
|
582
|
+
{
|
583
|
+
for (var u = Object.keys(n.props), h = 0; h < u.length; h++) {
|
584
|
+
var x = u[h];
|
585
|
+
if (x !== "children" && x !== "key") {
|
586
|
+
de(n), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), de(null);
|
587
|
+
break;
|
588
|
+
}
|
589
|
+
}
|
590
|
+
n.ref !== null && (de(n), C("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
591
|
+
}
|
592
|
+
}
|
593
|
+
function Ir(n, u, h, x, _, O) {
|
594
|
+
{
|
595
|
+
var R = ce(n);
|
596
|
+
if (!R) {
|
597
|
+
var k = "";
|
598
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
599
|
+
var N = Ut(_);
|
600
|
+
N ? k += N : k += Pr();
|
601
|
+
var A;
|
602
|
+
n === null ? A = "null" : Qe(n) ? A = "array" : n !== void 0 && n.$$typeof === t ? (A = "<" + (L(n.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : A = typeof n, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, k);
|
603
|
+
}
|
604
|
+
var I = Ht(n, u, h, _, O);
|
605
|
+
if (I == null)
|
606
|
+
return I;
|
607
|
+
if (R) {
|
608
|
+
var Y = u.children;
|
609
|
+
if (Y !== void 0)
|
610
|
+
if (x)
|
611
|
+
if (Qe(Y)) {
|
612
|
+
for (var pe = 0; pe < Y.length; pe++)
|
613
|
+
Ar(Y[pe], n);
|
614
|
+
Object.freeze && Object.freeze(Y);
|
615
|
+
} else
|
616
|
+
C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
617
|
+
else
|
618
|
+
Ar(Y, n);
|
619
|
+
}
|
620
|
+
return n === a ? Kt(I) : Gt(I), I;
|
621
|
+
}
|
622
|
+
}
|
623
|
+
function Jt(n, u, h) {
|
624
|
+
return Ir(n, u, h, !0);
|
625
|
+
}
|
626
|
+
function Xt(n, u, h) {
|
627
|
+
return Ir(n, u, h, !1);
|
628
|
+
}
|
629
|
+
var Zt = Xt, Qt = Jt;
|
630
|
+
Ce.Fragment = a, Ce.jsx = Zt, Ce.jsxs = Qt;
|
631
|
+
}()), Ce;
|
632
|
+
}
|
633
|
+
process.env.NODE_ENV === "production" ? dr.exports = ln() : dr.exports = un();
|
634
|
+
var p = dr.exports;
|
635
|
+
const je = 300, lt = ot`
|
636
|
+
from {
|
637
|
+
transform: translateY(-100%);
|
638
|
+
border-color: transparent;
|
639
|
+
}
|
640
|
+
to {
|
641
|
+
transform: translateY(0%);
|
642
|
+
border-color: #fff;
|
643
|
+
}
|
644
|
+
`, fn = it`animation: ${je}ms ease-in ${lt};`, dn = it`animation: ${je}ms ease-in reverse ${lt};`, pn = E.div`
|
645
|
+
transition: filter ${je * 1.3}ms ease-in-out;
|
646
|
+
cursor: pointer;
|
647
|
+
min-height: 32px;
|
648
|
+
z-index: 1;
|
649
|
+
user-select: none;
|
650
|
+
|
651
|
+
&:hover {
|
652
|
+
filter: brightness(1.15)
|
653
|
+
}
|
654
|
+
`, gn = E.div`
|
655
|
+
overflow: hidden;
|
656
|
+
transition: all ${je}ms ease-in-out;
|
657
|
+
width: 100%;
|
658
|
+
`, mn = E.div`
|
659
|
+
${(e) => e.$open ? fn : dn};
|
660
|
+
border-radius: inherit;
|
661
|
+
border: ${(e) => e.$border};
|
662
|
+
border-top: unset;
|
663
|
+
`, ut = X(({
|
664
|
+
open: e,
|
665
|
+
onChange: t,
|
666
|
+
defaultOpen: r,
|
667
|
+
header: a,
|
668
|
+
border: o,
|
669
|
+
style: s,
|
670
|
+
width: i,
|
671
|
+
children: f
|
672
|
+
}, l) => {
|
673
|
+
const { token: g } = B.useToken(), [m, d] = G(0), [b, S] = G(!1), T = Ve(null), v = () => {
|
674
|
+
var $;
|
675
|
+
return d(($ = T.current) == null ? void 0 : $.offsetHeight);
|
676
|
+
};
|
677
|
+
nt(l, () => ({
|
678
|
+
calculateHeight: v
|
679
|
+
}));
|
680
|
+
const c = fr(() => {
|
681
|
+
v(), S(!0), t == null || t(!0);
|
682
|
+
}, [t]), w = fr(() => {
|
683
|
+
S(!1), t == null || t(!1);
|
684
|
+
}, [t]), C = () => {
|
685
|
+
e === void 0 ? b ? w() : c() : t == null || t(!b);
|
686
|
+
};
|
687
|
+
return V(() => {
|
688
|
+
typeof e == "boolean" && (e ? c() : w());
|
689
|
+
}, [e, w, c]), V(() => {
|
690
|
+
r && c();
|
691
|
+
}, [r, c]), /* @__PURE__ */ p.jsxs("div", { style: { width: i }, children: [
|
692
|
+
/* @__PURE__ */ p.jsx(pn, { onClick: C, children: a }),
|
693
|
+
/* @__PURE__ */ p.jsx(gn, { style: Object.assign({}, s, { height: b ? m : 0 }), children: /* @__PURE__ */ p.jsx(mn, { ref: T, $open: b, $border: o ? `1px solid ${g.colorBorder}` : "unset", children: f }) })
|
694
|
+
] });
|
695
|
+
});
|
696
|
+
var hn = /* @__PURE__ */ en({});
|
697
|
+
const ft = hn;
|
698
|
+
function Te() {
|
699
|
+
return Te = Object.assign ? Object.assign.bind() : function(e) {
|
700
|
+
for (var t = 1; t < arguments.length; t++) {
|
701
|
+
var r = arguments[t];
|
702
|
+
for (var a in r)
|
703
|
+
Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
|
704
|
+
}
|
705
|
+
return e;
|
706
|
+
}, Te.apply(this, arguments);
|
707
|
+
}
|
708
|
+
function vn(e) {
|
709
|
+
if (Array.isArray(e))
|
710
|
+
return e;
|
711
|
+
}
|
712
|
+
function bn(e, t) {
|
713
|
+
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
714
|
+
if (r != null) {
|
715
|
+
var a, o, s, i, f = [], l = !0, g = !1;
|
716
|
+
try {
|
717
|
+
if (s = (r = r.call(e)).next, t === 0) {
|
718
|
+
if (Object(r) !== r)
|
719
|
+
return;
|
720
|
+
l = !1;
|
721
|
+
} else
|
722
|
+
for (; !(l = (a = s.call(r)).done) && (f.push(a.value), f.length !== t); l = !0)
|
723
|
+
;
|
724
|
+
} catch (m) {
|
725
|
+
g = !0, o = m;
|
726
|
+
} finally {
|
727
|
+
try {
|
728
|
+
if (!l && r.return != null && (i = r.return(), Object(i) !== i))
|
729
|
+
return;
|
730
|
+
} finally {
|
731
|
+
if (g)
|
732
|
+
throw o;
|
733
|
+
}
|
734
|
+
}
|
735
|
+
return f;
|
736
|
+
}
|
737
|
+
}
|
738
|
+
function Lr(e, t) {
|
739
|
+
(t == null || t > e.length) && (t = e.length);
|
740
|
+
for (var r = 0, a = new Array(t); r < t; r++)
|
741
|
+
a[r] = e[r];
|
742
|
+
return a;
|
743
|
+
}
|
744
|
+
function yn(e, t) {
|
745
|
+
if (e) {
|
746
|
+
if (typeof e == "string")
|
747
|
+
return Lr(e, t);
|
748
|
+
var r = Object.prototype.toString.call(e).slice(8, -1);
|
749
|
+
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set")
|
750
|
+
return Array.from(e);
|
751
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
752
|
+
return Lr(e, t);
|
753
|
+
}
|
754
|
+
}
|
755
|
+
function xn() {
|
756
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
757
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
758
|
+
}
|
759
|
+
function _e(e, t) {
|
760
|
+
return vn(e) || bn(e, t) || yn(e, t) || xn();
|
761
|
+
}
|
762
|
+
function oe(e) {
|
763
|
+
"@babel/helpers - typeof";
|
764
|
+
return oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
765
|
+
return typeof t;
|
766
|
+
} : function(t) {
|
767
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
768
|
+
}, oe(e);
|
769
|
+
}
|
770
|
+
function wn(e, t) {
|
771
|
+
if (oe(e) != "object" || !e)
|
772
|
+
return e;
|
773
|
+
var r = e[Symbol.toPrimitive];
|
774
|
+
if (r !== void 0) {
|
775
|
+
var a = r.call(e, t || "default");
|
776
|
+
if (oe(a) != "object")
|
777
|
+
return a;
|
778
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
779
|
+
}
|
780
|
+
return (t === "string" ? String : Number)(e);
|
781
|
+
}
|
782
|
+
function En(e) {
|
783
|
+
var t = wn(e, "string");
|
784
|
+
return oe(t) == "symbol" ? t : String(t);
|
785
|
+
}
|
786
|
+
function pr(e, t, r) {
|
787
|
+
return t = En(t), t in e ? Object.defineProperty(e, t, {
|
788
|
+
value: r,
|
789
|
+
enumerable: !0,
|
790
|
+
configurable: !0,
|
791
|
+
writable: !0
|
792
|
+
}) : e[t] = r, e;
|
793
|
+
}
|
794
|
+
function Sn(e, t) {
|
795
|
+
if (e == null)
|
796
|
+
return {};
|
797
|
+
var r = {}, a = Object.keys(e), o, s;
|
798
|
+
for (s = 0; s < a.length; s++)
|
799
|
+
o = a[s], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
|
800
|
+
return r;
|
801
|
+
}
|
802
|
+
function dt(e, t) {
|
803
|
+
if (e == null)
|
804
|
+
return {};
|
805
|
+
var r = Sn(e, t), a, o;
|
806
|
+
if (Object.getOwnPropertySymbols) {
|
807
|
+
var s = Object.getOwnPropertySymbols(e);
|
808
|
+
for (o = 0; o < s.length; o++)
|
809
|
+
a = s[o], !(t.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (r[a] = e[a]);
|
810
|
+
}
|
811
|
+
return r;
|
812
|
+
}
|
813
|
+
var pt = { exports: {} };
|
814
|
+
/*!
|
815
|
+
Copyright (c) 2018 Jed Watson.
|
816
|
+
Licensed under the MIT License (MIT), see
|
817
|
+
http://jedwatson.github.io/classnames
|
818
|
+
*/
|
819
|
+
(function(e) {
|
820
|
+
(function() {
|
821
|
+
var t = {}.hasOwnProperty;
|
822
|
+
function r() {
|
823
|
+
for (var s = "", i = 0; i < arguments.length; i++) {
|
824
|
+
var f = arguments[i];
|
825
|
+
f && (s = o(s, a(f)));
|
826
|
+
}
|
827
|
+
return s;
|
828
|
+
}
|
829
|
+
function a(s) {
|
830
|
+
if (typeof s == "string" || typeof s == "number")
|
831
|
+
return s;
|
832
|
+
if (typeof s != "object")
|
833
|
+
return "";
|
834
|
+
if (Array.isArray(s))
|
835
|
+
return r.apply(null, s);
|
836
|
+
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
837
|
+
return s.toString();
|
838
|
+
var i = "";
|
839
|
+
for (var f in s)
|
840
|
+
t.call(s, f) && s[f] && (i = o(i, f));
|
841
|
+
return i;
|
842
|
+
}
|
843
|
+
function o(s, i) {
|
844
|
+
return i ? s ? s + " " + i : s + i : s;
|
845
|
+
}
|
846
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
847
|
+
})();
|
848
|
+
})(pt);
|
849
|
+
var Cn = pt.exports;
|
850
|
+
const kn = /* @__PURE__ */ cn(Cn);
|
851
|
+
function H(e, t) {
|
852
|
+
Rn(e) && (e = "100%");
|
853
|
+
var r = Tn(e);
|
854
|
+
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);
|
855
|
+
}
|
856
|
+
function Rn(e) {
|
857
|
+
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
858
|
+
}
|
859
|
+
function Tn(e) {
|
860
|
+
return typeof e == "string" && e.indexOf("%") !== -1;
|
861
|
+
}
|
862
|
+
function _n(e) {
|
863
|
+
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
864
|
+
}
|
865
|
+
function Le(e) {
|
866
|
+
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
867
|
+
}
|
868
|
+
function ar(e) {
|
869
|
+
return e.length === 1 ? "0" + e : String(e);
|
870
|
+
}
|
871
|
+
function jn(e, t, r) {
|
872
|
+
return {
|
873
|
+
r: H(e, 255) * 255,
|
874
|
+
g: H(t, 255) * 255,
|
875
|
+
b: H(r, 255) * 255
|
876
|
+
};
|
877
|
+
}
|
878
|
+
function or(e, t, r) {
|
879
|
+
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;
|
880
|
+
}
|
881
|
+
function Pn(e, t, r) {
|
882
|
+
var a, o, s;
|
883
|
+
if (e = H(e, 360), t = H(t, 100), r = H(r, 100), t === 0)
|
884
|
+
o = r, s = r, a = r;
|
885
|
+
else {
|
886
|
+
var i = r < 0.5 ? r * (1 + t) : r + t - r * t, f = 2 * r - i;
|
887
|
+
a = or(f, i, e + 1 / 3), o = or(f, i, e), s = or(f, i, e - 1 / 3);
|
888
|
+
}
|
889
|
+
return { r: a * 255, g: o * 255, b: s * 255 };
|
890
|
+
}
|
891
|
+
function On(e, t, r) {
|
892
|
+
e = H(e, 255), t = H(t, 255), r = H(r, 255);
|
893
|
+
var a = Math.max(e, t, r), o = Math.min(e, t, r), s = 0, i = a, f = a - o, l = a === 0 ? 0 : f / a;
|
894
|
+
if (a === o)
|
895
|
+
s = 0;
|
896
|
+
else {
|
897
|
+
switch (a) {
|
898
|
+
case e:
|
899
|
+
s = (t - r) / f + (t < r ? 6 : 0);
|
900
|
+
break;
|
901
|
+
case t:
|
902
|
+
s = (r - e) / f + 2;
|
903
|
+
break;
|
904
|
+
case r:
|
905
|
+
s = (e - t) / f + 4;
|
906
|
+
break;
|
907
|
+
}
|
908
|
+
s /= 6;
|
909
|
+
}
|
910
|
+
return { h: s, s: l, v: i };
|
911
|
+
}
|
912
|
+
function $n(e, t, r) {
|
913
|
+
e = H(e, 360) * 6, t = H(t, 100), r = H(r, 100);
|
914
|
+
var a = Math.floor(e), o = e - a, s = r * (1 - t), i = r * (1 - o * t), f = r * (1 - (1 - o) * t), l = a % 6, g = [r, i, s, s, f, r][l], m = [f, r, r, i, s, s][l], d = [s, s, f, r, r, i][l];
|
915
|
+
return { r: g * 255, g: m * 255, b: d * 255 };
|
916
|
+
}
|
917
|
+
function An(e, t, r, a) {
|
918
|
+
var o = [
|
919
|
+
ar(Math.round(e).toString(16)),
|
920
|
+
ar(Math.round(t).toString(16)),
|
921
|
+
ar(Math.round(r).toString(16))
|
922
|
+
];
|
923
|
+
return a && 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("");
|
924
|
+
}
|
925
|
+
function Dr(e) {
|
926
|
+
return D(e) / 255;
|
927
|
+
}
|
928
|
+
function D(e) {
|
929
|
+
return parseInt(e, 16);
|
930
|
+
}
|
931
|
+
var Br = {
|
932
|
+
aliceblue: "#f0f8ff",
|
933
|
+
antiquewhite: "#faebd7",
|
934
|
+
aqua: "#00ffff",
|
935
|
+
aquamarine: "#7fffd4",
|
936
|
+
azure: "#f0ffff",
|
937
|
+
beige: "#f5f5dc",
|
938
|
+
bisque: "#ffe4c4",
|
939
|
+
black: "#000000",
|
940
|
+
blanchedalmond: "#ffebcd",
|
941
|
+
blue: "#0000ff",
|
942
|
+
blueviolet: "#8a2be2",
|
943
|
+
brown: "#a52a2a",
|
944
|
+
burlywood: "#deb887",
|
945
|
+
cadetblue: "#5f9ea0",
|
946
|
+
chartreuse: "#7fff00",
|
947
|
+
chocolate: "#d2691e",
|
948
|
+
coral: "#ff7f50",
|
949
|
+
cornflowerblue: "#6495ed",
|
950
|
+
cornsilk: "#fff8dc",
|
951
|
+
crimson: "#dc143c",
|
952
|
+
cyan: "#00ffff",
|
953
|
+
darkblue: "#00008b",
|
954
|
+
darkcyan: "#008b8b",
|
955
|
+
darkgoldenrod: "#b8860b",
|
956
|
+
darkgray: "#a9a9a9",
|
957
|
+
darkgreen: "#006400",
|
958
|
+
darkgrey: "#a9a9a9",
|
959
|
+
darkkhaki: "#bdb76b",
|
960
|
+
darkmagenta: "#8b008b",
|
961
|
+
darkolivegreen: "#556b2f",
|
962
|
+
darkorange: "#ff8c00",
|
963
|
+
darkorchid: "#9932cc",
|
964
|
+
darkred: "#8b0000",
|
965
|
+
darksalmon: "#e9967a",
|
966
|
+
darkseagreen: "#8fbc8f",
|
967
|
+
darkslateblue: "#483d8b",
|
968
|
+
darkslategray: "#2f4f4f",
|
969
|
+
darkslategrey: "#2f4f4f",
|
970
|
+
darkturquoise: "#00ced1",
|
971
|
+
darkviolet: "#9400d3",
|
972
|
+
deeppink: "#ff1493",
|
973
|
+
deepskyblue: "#00bfff",
|
974
|
+
dimgray: "#696969",
|
975
|
+
dimgrey: "#696969",
|
976
|
+
dodgerblue: "#1e90ff",
|
977
|
+
firebrick: "#b22222",
|
978
|
+
floralwhite: "#fffaf0",
|
979
|
+
forestgreen: "#228b22",
|
980
|
+
fuchsia: "#ff00ff",
|
981
|
+
gainsboro: "#dcdcdc",
|
982
|
+
ghostwhite: "#f8f8ff",
|
983
|
+
goldenrod: "#daa520",
|
984
|
+
gold: "#ffd700",
|
985
|
+
gray: "#808080",
|
986
|
+
green: "#008000",
|
987
|
+
greenyellow: "#adff2f",
|
988
|
+
grey: "#808080",
|
989
|
+
honeydew: "#f0fff0",
|
990
|
+
hotpink: "#ff69b4",
|
991
|
+
indianred: "#cd5c5c",
|
992
|
+
indigo: "#4b0082",
|
993
|
+
ivory: "#fffff0",
|
994
|
+
khaki: "#f0e68c",
|
995
|
+
lavenderblush: "#fff0f5",
|
996
|
+
lavender: "#e6e6fa",
|
997
|
+
lawngreen: "#7cfc00",
|
998
|
+
lemonchiffon: "#fffacd",
|
999
|
+
lightblue: "#add8e6",
|
1000
|
+
lightcoral: "#f08080",
|
1001
|
+
lightcyan: "#e0ffff",
|
1002
|
+
lightgoldenrodyellow: "#fafad2",
|
1003
|
+
lightgray: "#d3d3d3",
|
1004
|
+
lightgreen: "#90ee90",
|
1005
|
+
lightgrey: "#d3d3d3",
|
1006
|
+
lightpink: "#ffb6c1",
|
1007
|
+
lightsalmon: "#ffa07a",
|
1008
|
+
lightseagreen: "#20b2aa",
|
1009
|
+
lightskyblue: "#87cefa",
|
1010
|
+
lightslategray: "#778899",
|
1011
|
+
lightslategrey: "#778899",
|
1012
|
+
lightsteelblue: "#b0c4de",
|
1013
|
+
lightyellow: "#ffffe0",
|
1014
|
+
lime: "#00ff00",
|
1015
|
+
limegreen: "#32cd32",
|
1016
|
+
linen: "#faf0e6",
|
1017
|
+
magenta: "#ff00ff",
|
1018
|
+
maroon: "#800000",
|
1019
|
+
mediumaquamarine: "#66cdaa",
|
1020
|
+
mediumblue: "#0000cd",
|
1021
|
+
mediumorchid: "#ba55d3",
|
1022
|
+
mediumpurple: "#9370db",
|
1023
|
+
mediumseagreen: "#3cb371",
|
1024
|
+
mediumslateblue: "#7b68ee",
|
1025
|
+
mediumspringgreen: "#00fa9a",
|
1026
|
+
mediumturquoise: "#48d1cc",
|
1027
|
+
mediumvioletred: "#c71585",
|
1028
|
+
midnightblue: "#191970",
|
1029
|
+
mintcream: "#f5fffa",
|
1030
|
+
mistyrose: "#ffe4e1",
|
1031
|
+
moccasin: "#ffe4b5",
|
1032
|
+
navajowhite: "#ffdead",
|
1033
|
+
navy: "#000080",
|
1034
|
+
oldlace: "#fdf5e6",
|
1035
|
+
olive: "#808000",
|
1036
|
+
olivedrab: "#6b8e23",
|
1037
|
+
orange: "#ffa500",
|
1038
|
+
orangered: "#ff4500",
|
1039
|
+
orchid: "#da70d6",
|
1040
|
+
palegoldenrod: "#eee8aa",
|
1041
|
+
palegreen: "#98fb98",
|
1042
|
+
paleturquoise: "#afeeee",
|
1043
|
+
palevioletred: "#db7093",
|
1044
|
+
papayawhip: "#ffefd5",
|
1045
|
+
peachpuff: "#ffdab9",
|
1046
|
+
peru: "#cd853f",
|
1047
|
+
pink: "#ffc0cb",
|
1048
|
+
plum: "#dda0dd",
|
1049
|
+
powderblue: "#b0e0e6",
|
1050
|
+
purple: "#800080",
|
1051
|
+
rebeccapurple: "#663399",
|
1052
|
+
red: "#ff0000",
|
1053
|
+
rosybrown: "#bc8f8f",
|
1054
|
+
royalblue: "#4169e1",
|
1055
|
+
saddlebrown: "#8b4513",
|
1056
|
+
salmon: "#fa8072",
|
1057
|
+
sandybrown: "#f4a460",
|
1058
|
+
seagreen: "#2e8b57",
|
1059
|
+
seashell: "#fff5ee",
|
1060
|
+
sienna: "#a0522d",
|
1061
|
+
silver: "#c0c0c0",
|
1062
|
+
skyblue: "#87ceeb",
|
1063
|
+
slateblue: "#6a5acd",
|
1064
|
+
slategray: "#708090",
|
1065
|
+
slategrey: "#708090",
|
1066
|
+
snow: "#fffafa",
|
1067
|
+
springgreen: "#00ff7f",
|
1068
|
+
steelblue: "#4682b4",
|
1069
|
+
tan: "#d2b48c",
|
1070
|
+
teal: "#008080",
|
1071
|
+
thistle: "#d8bfd8",
|
1072
|
+
tomato: "#ff6347",
|
1073
|
+
turquoise: "#40e0d0",
|
1074
|
+
violet: "#ee82ee",
|
1075
|
+
wheat: "#f5deb3",
|
1076
|
+
white: "#ffffff",
|
1077
|
+
whitesmoke: "#f5f5f5",
|
1078
|
+
yellow: "#ffff00",
|
1079
|
+
yellowgreen: "#9acd32"
|
1080
|
+
};
|
1081
|
+
function ke(e) {
|
1082
|
+
var t = { r: 0, g: 0, b: 0 }, r = 1, a = null, o = null, s = null, i = !1, f = !1;
|
1083
|
+
return typeof e == "string" && (e = Mn(e)), typeof e == "object" && (ee(e.r) && ee(e.g) && ee(e.b) ? (t = jn(e.r, e.g, e.b), i = !0, f = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : ee(e.h) && ee(e.s) && ee(e.v) ? (a = Le(e.s), o = Le(e.v), t = $n(e.h, a, o), i = !0, f = "hsv") : ee(e.h) && ee(e.s) && ee(e.l) && (a = Le(e.s), s = Le(e.l), t = Pn(e.h, a, s), i = !0, f = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = _n(r), {
|
1084
|
+
ok: i,
|
1085
|
+
format: e.format || f,
|
1086
|
+
r: Math.min(255, Math.max(t.r, 0)),
|
1087
|
+
g: Math.min(255, Math.max(t.g, 0)),
|
1088
|
+
b: Math.min(255, Math.max(t.b, 0)),
|
1089
|
+
a: r
|
1090
|
+
};
|
1091
|
+
}
|
1092
|
+
var In = "[-\\+]?\\d+%?", Fn = "[-\\+]?\\d*\\.\\d+%?", te = "(?:".concat(Fn, ")|(?:").concat(In, ")"), ir = "[\\s|\\(]+(".concat(te, ")[,|\\s]+(").concat(te, ")[,|\\s]+(").concat(te, ")\\s*\\)?"), sr = "[\\s|\\(]+(".concat(te, ")[,|\\s]+(").concat(te, ")[,|\\s]+(").concat(te, ")[,|\\s]+(").concat(te, ")\\s*\\)?"), q = {
|
1093
|
+
CSS_UNIT: new RegExp(te),
|
1094
|
+
rgb: new RegExp("rgb" + ir),
|
1095
|
+
rgba: new RegExp("rgba" + sr),
|
1096
|
+
hsl: new RegExp("hsl" + ir),
|
1097
|
+
hsla: new RegExp("hsla" + sr),
|
1098
|
+
hsv: new RegExp("hsv" + ir),
|
1099
|
+
hsva: new RegExp("hsva" + sr),
|
1100
|
+
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
1101
|
+
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
1102
|
+
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
1103
|
+
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
1104
|
+
};
|
1105
|
+
function Mn(e) {
|
1106
|
+
if (e = e.trim().toLowerCase(), e.length === 0)
|
1107
|
+
return !1;
|
1108
|
+
var t = !1;
|
1109
|
+
if (Br[e])
|
1110
|
+
e = Br[e], t = !0;
|
1111
|
+
else if (e === "transparent")
|
1112
|
+
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
1113
|
+
var r = q.rgb.exec(e);
|
1114
|
+
return r ? { r: r[1], g: r[2], b: r[3] } : (r = q.rgba.exec(e), r ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = q.hsl.exec(e), r ? { h: r[1], s: r[2], l: r[3] } : (r = q.hsla.exec(e), r ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = q.hsv.exec(e), r ? { h: r[1], s: r[2], v: r[3] } : (r = q.hsva.exec(e), r ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = q.hex8.exec(e), r ? {
|
1115
|
+
r: D(r[1]),
|
1116
|
+
g: D(r[2]),
|
1117
|
+
b: D(r[3]),
|
1118
|
+
a: Dr(r[4]),
|
1119
|
+
format: t ? "name" : "hex8"
|
1120
|
+
} : (r = q.hex6.exec(e), r ? {
|
1121
|
+
r: D(r[1]),
|
1122
|
+
g: D(r[2]),
|
1123
|
+
b: D(r[3]),
|
1124
|
+
format: t ? "name" : "hex"
|
1125
|
+
} : (r = q.hex4.exec(e), r ? {
|
1126
|
+
r: D(r[1] + r[1]),
|
1127
|
+
g: D(r[2] + r[2]),
|
1128
|
+
b: D(r[3] + r[3]),
|
1129
|
+
a: Dr(r[4] + r[4]),
|
1130
|
+
format: t ? "name" : "hex8"
|
1131
|
+
} : (r = q.hex3.exec(e), r ? {
|
1132
|
+
r: D(r[1] + r[1]),
|
1133
|
+
g: D(r[2] + r[2]),
|
1134
|
+
b: D(r[3] + r[3]),
|
1135
|
+
format: t ? "name" : "hex"
|
1136
|
+
} : !1)))))))));
|
1137
|
+
}
|
1138
|
+
function ee(e) {
|
1139
|
+
return !!q.CSS_UNIT.exec(String(e));
|
1140
|
+
}
|
1141
|
+
var De = 2, zr = 0.16, Nn = 0.05, Ln = 0.05, Dn = 0.15, gt = 5, mt = 4, Bn = [{
|
1142
|
+
index: 7,
|
1143
|
+
opacity: 0.15
|
1144
|
+
}, {
|
1145
|
+
index: 6,
|
1146
|
+
opacity: 0.25
|
1147
|
+
}, {
|
1148
|
+
index: 5,
|
1149
|
+
opacity: 0.3
|
1150
|
+
}, {
|
1151
|
+
index: 5,
|
1152
|
+
opacity: 0.45
|
1153
|
+
}, {
|
1154
|
+
index: 5,
|
1155
|
+
opacity: 0.65
|
1156
|
+
}, {
|
1157
|
+
index: 5,
|
1158
|
+
opacity: 0.85
|
1159
|
+
}, {
|
1160
|
+
index: 4,
|
1161
|
+
opacity: 0.9
|
1162
|
+
}, {
|
1163
|
+
index: 3,
|
1164
|
+
opacity: 0.95
|
1165
|
+
}, {
|
1166
|
+
index: 2,
|
1167
|
+
opacity: 0.97
|
1168
|
+
}, {
|
1169
|
+
index: 1,
|
1170
|
+
opacity: 0.98
|
1171
|
+
}];
|
1172
|
+
function Wr(e) {
|
1173
|
+
var t = e.r, r = e.g, a = e.b, o = On(t, r, a);
|
1174
|
+
return {
|
1175
|
+
h: o.h * 360,
|
1176
|
+
s: o.s,
|
1177
|
+
v: o.v
|
1178
|
+
};
|
1179
|
+
}
|
1180
|
+
function Be(e) {
|
1181
|
+
var t = e.r, r = e.g, a = e.b;
|
1182
|
+
return "#".concat(An(t, r, a, !1));
|
1183
|
+
}
|
1184
|
+
function zn(e, t, r) {
|
1185
|
+
var a = r / 100, o = {
|
1186
|
+
r: (t.r - e.r) * a + e.r,
|
1187
|
+
g: (t.g - e.g) * a + e.g,
|
1188
|
+
b: (t.b - e.b) * a + e.b
|
1189
|
+
};
|
1190
|
+
return o;
|
1191
|
+
}
|
1192
|
+
function Yr(e, t, r) {
|
1193
|
+
var a;
|
1194
|
+
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? a = r ? Math.round(e.h) - De * t : Math.round(e.h) + De * t : a = r ? Math.round(e.h) + De * t : Math.round(e.h) - De * t, a < 0 ? a += 360 : a >= 360 && (a -= 360), a;
|
1195
|
+
}
|
1196
|
+
function Vr(e, t, r) {
|
1197
|
+
if (e.h === 0 && e.s === 0)
|
1198
|
+
return e.s;
|
1199
|
+
var a;
|
1200
|
+
return r ? a = e.s - zr * t : t === mt ? a = e.s + zr : a = e.s + Nn * t, a > 1 && (a = 1), r && t === gt && a > 0.1 && (a = 0.1), a < 0.06 && (a = 0.06), Number(a.toFixed(2));
|
1201
|
+
}
|
1202
|
+
function Hr(e, t, r) {
|
1203
|
+
var a;
|
1204
|
+
return r ? a = e.v + Ln * t : a = e.v - Dn * t, a > 1 && (a = 1), Number(a.toFixed(2));
|
1205
|
+
}
|
1206
|
+
function gr(e) {
|
1207
|
+
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], a = ke(e), o = gt; o > 0; o -= 1) {
|
1208
|
+
var s = Wr(a), i = Be(ke({
|
1209
|
+
h: Yr(s, o, !0),
|
1210
|
+
s: Vr(s, o, !0),
|
1211
|
+
v: Hr(s, o, !0)
|
1212
|
+
}));
|
1213
|
+
r.push(i);
|
1214
|
+
}
|
1215
|
+
r.push(Be(a));
|
1216
|
+
for (var f = 1; f <= mt; f += 1) {
|
1217
|
+
var l = Wr(a), g = Be(ke({
|
1218
|
+
h: Yr(l, f),
|
1219
|
+
s: Vr(l, f),
|
1220
|
+
v: Hr(l, f)
|
1221
|
+
}));
|
1222
|
+
r.push(g);
|
1223
|
+
}
|
1224
|
+
return t.theme === "dark" ? Bn.map(function(m) {
|
1225
|
+
var d = m.index, b = m.opacity, S = Be(zn(ke(t.backgroundColor || "#141414"), ke(r[d]), b * 100));
|
1226
|
+
return S;
|
1227
|
+
}) : r;
|
1228
|
+
}
|
1229
|
+
var cr = {
|
1230
|
+
red: "#F5222D",
|
1231
|
+
volcano: "#FA541C",
|
1232
|
+
orange: "#FA8C16",
|
1233
|
+
gold: "#FAAD14",
|
1234
|
+
yellow: "#FADB14",
|
1235
|
+
lime: "#A0D911",
|
1236
|
+
green: "#52C41A",
|
1237
|
+
cyan: "#13C2C2",
|
1238
|
+
blue: "#1677FF",
|
1239
|
+
geekblue: "#2F54EB",
|
1240
|
+
purple: "#722ED1",
|
1241
|
+
magenta: "#EB2F96",
|
1242
|
+
grey: "#666666"
|
1243
|
+
}, ze = {}, lr = {};
|
1244
|
+
Object.keys(cr).forEach(function(e) {
|
1245
|
+
ze[e] = gr(cr[e]), ze[e].primary = ze[e][5], lr[e] = gr(cr[e], {
|
1246
|
+
theme: "dark",
|
1247
|
+
backgroundColor: "#141414"
|
1248
|
+
}), lr[e].primary = lr[e][5];
|
1249
|
+
});
|
1250
|
+
var Wn = ze.blue;
|
1251
|
+
function Ur(e, t) {
|
1252
|
+
var r = Object.keys(e);
|
1253
|
+
if (Object.getOwnPropertySymbols) {
|
1254
|
+
var a = Object.getOwnPropertySymbols(e);
|
1255
|
+
t && (a = a.filter(function(o) {
|
1256
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
1257
|
+
})), r.push.apply(r, a);
|
1258
|
+
}
|
1259
|
+
return r;
|
1260
|
+
}
|
1261
|
+
function J(e) {
|
1262
|
+
for (var t = 1; t < arguments.length; t++) {
|
1263
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
1264
|
+
t % 2 ? Ur(Object(r), !0).forEach(function(a) {
|
1265
|
+
pr(e, a, r[a]);
|
1266
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ur(Object(r)).forEach(function(a) {
|
1267
|
+
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
1268
|
+
});
|
1269
|
+
}
|
1270
|
+
return e;
|
1271
|
+
}
|
1272
|
+
function ht() {
|
1273
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
1274
|
+
}
|
1275
|
+
function Yn(e, t) {
|
1276
|
+
if (!e)
|
1277
|
+
return !1;
|
1278
|
+
if (e.contains)
|
1279
|
+
return e.contains(t);
|
1280
|
+
for (var r = t; r; ) {
|
1281
|
+
if (r === e)
|
1282
|
+
return !0;
|
1283
|
+
r = r.parentNode;
|
1284
|
+
}
|
1285
|
+
return !1;
|
1286
|
+
}
|
1287
|
+
var qr = "data-rc-order", Gr = "data-rc-priority", Vn = "rc-util-key", mr = /* @__PURE__ */ new Map();
|
1288
|
+
function vt() {
|
1289
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
|
1290
|
+
return t ? t.startsWith("data-") ? t : "data-".concat(t) : Vn;
|
1291
|
+
}
|
1292
|
+
function xr(e) {
|
1293
|
+
if (e.attachTo)
|
1294
|
+
return e.attachTo;
|
1295
|
+
var t = document.querySelector("head");
|
1296
|
+
return t || document.body;
|
1297
|
+
}
|
1298
|
+
function Hn(e) {
|
1299
|
+
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
1300
|
+
}
|
1301
|
+
function wr(e) {
|
1302
|
+
return Array.from((mr.get(e) || e).children).filter(function(t) {
|
1303
|
+
return t.tagName === "STYLE";
|
1304
|
+
});
|
1305
|
+
}
|
1306
|
+
function bt(e) {
|
1307
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1308
|
+
if (!ht())
|
1309
|
+
return null;
|
1310
|
+
var r = t.csp, a = t.prepend, o = t.priority, s = o === void 0 ? 0 : o, i = Hn(a), f = i === "prependQueue", l = document.createElement("style");
|
1311
|
+
l.setAttribute(qr, i), f && s && l.setAttribute(Gr, "".concat(s)), r != null && r.nonce && (l.nonce = r == null ? void 0 : r.nonce), l.innerHTML = e;
|
1312
|
+
var g = xr(t), m = g.firstChild;
|
1313
|
+
if (a) {
|
1314
|
+
if (f) {
|
1315
|
+
var d = (t.styles || wr(g)).filter(function(b) {
|
1316
|
+
if (!["prepend", "prependQueue"].includes(b.getAttribute(qr)))
|
1317
|
+
return !1;
|
1318
|
+
var S = Number(b.getAttribute(Gr) || 0);
|
1319
|
+
return s >= S;
|
1320
|
+
});
|
1321
|
+
if (d.length)
|
1322
|
+
return g.insertBefore(l, d[d.length - 1].nextSibling), l;
|
1323
|
+
}
|
1324
|
+
g.insertBefore(l, m);
|
1325
|
+
} else
|
1326
|
+
g.appendChild(l);
|
1327
|
+
return l;
|
1328
|
+
}
|
1329
|
+
function Un(e) {
|
1330
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = xr(t);
|
1331
|
+
return (t.styles || wr(r)).find(function(a) {
|
1332
|
+
return a.getAttribute(vt(t)) === e;
|
1333
|
+
});
|
1334
|
+
}
|
1335
|
+
function qn(e, t) {
|
1336
|
+
var r = mr.get(e);
|
1337
|
+
if (!r || !Yn(document, r)) {
|
1338
|
+
var a = bt("", t), o = a.parentNode;
|
1339
|
+
mr.set(e, o), e.removeChild(a);
|
1340
|
+
}
|
1341
|
+
}
|
1342
|
+
function Gn(e, t) {
|
1343
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = xr(r), o = wr(a), s = J(J({}, r), {}, {
|
1344
|
+
styles: o
|
1345
|
+
});
|
1346
|
+
qn(a, s);
|
1347
|
+
var i = Un(t, s);
|
1348
|
+
if (i) {
|
1349
|
+
var f, l;
|
1350
|
+
if ((f = s.csp) !== null && f !== void 0 && f.nonce && i.nonce !== ((l = s.csp) === null || l === void 0 ? void 0 : l.nonce)) {
|
1351
|
+
var g;
|
1352
|
+
i.nonce = (g = s.csp) === null || g === void 0 ? void 0 : g.nonce;
|
1353
|
+
}
|
1354
|
+
return i.innerHTML !== e && (i.innerHTML = e), i;
|
1355
|
+
}
|
1356
|
+
var m = bt(e, s);
|
1357
|
+
return m.setAttribute(vt(s), t), m;
|
1358
|
+
}
|
1359
|
+
function yt(e) {
|
1360
|
+
var t;
|
1361
|
+
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
1362
|
+
}
|
1363
|
+
function Kn(e) {
|
1364
|
+
return yt(e) instanceof ShadowRoot;
|
1365
|
+
}
|
1366
|
+
function Jn(e) {
|
1367
|
+
return Kn(e) ? yt(e) : null;
|
1368
|
+
}
|
1369
|
+
var hr = {}, Er = [], Xn = function(t) {
|
1370
|
+
Er.push(t);
|
1371
|
+
};
|
1372
|
+
function Zn(e, t) {
|
1373
|
+
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
1374
|
+
var r = Er.reduce(function(a, o) {
|
1375
|
+
return o(a ?? "", "warning");
|
1376
|
+
}, t);
|
1377
|
+
r && console.error("Warning: ".concat(r));
|
1378
|
+
}
|
1379
|
+
}
|
1380
|
+
function Qn(e, t) {
|
1381
|
+
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
1382
|
+
var r = Er.reduce(function(a, o) {
|
1383
|
+
return o(a ?? "", "note");
|
1384
|
+
}, t);
|
1385
|
+
r && console.warn("Note: ".concat(r));
|
1386
|
+
}
|
1387
|
+
}
|
1388
|
+
function ea() {
|
1389
|
+
hr = {};
|
1390
|
+
}
|
1391
|
+
function xt(e, t, r) {
|
1392
|
+
!t && !hr[r] && (e(!1, r), hr[r] = !0);
|
1393
|
+
}
|
1394
|
+
function He(e, t) {
|
1395
|
+
xt(Zn, e, t);
|
1396
|
+
}
|
1397
|
+
function ra(e, t) {
|
1398
|
+
xt(Qn, e, t);
|
1399
|
+
}
|
1400
|
+
He.preMessage = Xn;
|
1401
|
+
He.resetWarned = ea;
|
1402
|
+
He.noteOnce = ra;
|
1403
|
+
function ta(e) {
|
1404
|
+
return e.replace(/-(.)/g, function(t, r) {
|
1405
|
+
return r.toUpperCase();
|
1406
|
+
});
|
1407
|
+
}
|
1408
|
+
function na(e, t) {
|
1409
|
+
He(e, "[@ant-design/icons] ".concat(t));
|
1410
|
+
}
|
1411
|
+
function Kr(e) {
|
1412
|
+
return oe(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (oe(e.icon) === "object" || typeof e.icon == "function");
|
1413
|
+
}
|
1414
|
+
function Jr() {
|
1415
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1416
|
+
return Object.keys(e).reduce(function(t, r) {
|
1417
|
+
var a = e[r];
|
1418
|
+
switch (r) {
|
1419
|
+
case "class":
|
1420
|
+
t.className = a, delete t.class;
|
1421
|
+
break;
|
1422
|
+
default:
|
1423
|
+
delete t[r], t[ta(r)] = a;
|
1424
|
+
}
|
1425
|
+
return t;
|
1426
|
+
}, {});
|
1427
|
+
}
|
1428
|
+
function vr(e, t, r) {
|
1429
|
+
return r ? /* @__PURE__ */ We.createElement(e.tag, J(J({
|
1430
|
+
key: t
|
1431
|
+
}, Jr(e.attrs)), r), (e.children || []).map(function(a, o) {
|
1432
|
+
return vr(a, "".concat(t, "-").concat(e.tag, "-").concat(o));
|
1433
|
+
})) : /* @__PURE__ */ We.createElement(e.tag, J({
|
1434
|
+
key: t
|
1435
|
+
}, Jr(e.attrs)), (e.children || []).map(function(a, o) {
|
1436
|
+
return vr(a, "".concat(t, "-").concat(e.tag, "-").concat(o));
|
1437
|
+
}));
|
1438
|
+
}
|
1439
|
+
function wt(e) {
|
1440
|
+
return gr(e)[0];
|
1441
|
+
}
|
1442
|
+
function Et(e) {
|
1443
|
+
return e ? Array.isArray(e) ? e : [e] : [];
|
1444
|
+
}
|
1445
|
+
var aa = `
|
1446
|
+
.anticon {
|
1447
|
+
display: inline-block;
|
1448
|
+
color: inherit;
|
1449
|
+
font-style: normal;
|
1450
|
+
line-height: 0;
|
1451
|
+
text-align: center;
|
1452
|
+
text-transform: none;
|
1453
|
+
vertical-align: -0.125em;
|
1454
|
+
text-rendering: optimizeLegibility;
|
1455
|
+
-webkit-font-smoothing: antialiased;
|
1456
|
+
-moz-osx-font-smoothing: grayscale;
|
1457
|
+
}
|
1458
|
+
|
1459
|
+
.anticon > * {
|
1460
|
+
line-height: 1;
|
1461
|
+
}
|
1462
|
+
|
1463
|
+
.anticon svg {
|
1464
|
+
display: inline-block;
|
1465
|
+
}
|
1466
|
+
|
1467
|
+
.anticon::before {
|
1468
|
+
display: none;
|
1469
|
+
}
|
1470
|
+
|
1471
|
+
.anticon .anticon-icon {
|
1472
|
+
display: block;
|
1473
|
+
}
|
1474
|
+
|
1475
|
+
.anticon[tabindex] {
|
1476
|
+
cursor: pointer;
|
1477
|
+
}
|
1478
|
+
|
1479
|
+
.anticon-spin::before,
|
1480
|
+
.anticon-spin {
|
1481
|
+
display: inline-block;
|
1482
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
1483
|
+
animation: loadingCircle 1s infinite linear;
|
1484
|
+
}
|
1485
|
+
|
1486
|
+
@-webkit-keyframes loadingCircle {
|
1487
|
+
100% {
|
1488
|
+
-webkit-transform: rotate(360deg);
|
1489
|
+
transform: rotate(360deg);
|
1490
|
+
}
|
1491
|
+
}
|
1492
|
+
|
1493
|
+
@keyframes loadingCircle {
|
1494
|
+
100% {
|
1495
|
+
-webkit-transform: rotate(360deg);
|
1496
|
+
transform: rotate(360deg);
|
1497
|
+
}
|
1498
|
+
}
|
1499
|
+
`, oa = function(t) {
|
1500
|
+
var r = rn(ft), a = r.csp, o = r.prefixCls, s = aa;
|
1501
|
+
o && (s = s.replace(/anticon/g, o)), V(function() {
|
1502
|
+
var i = t.current, f = Jn(i);
|
1503
|
+
Gn(s, "@ant-design-icons", {
|
1504
|
+
prepend: !0,
|
1505
|
+
csp: a,
|
1506
|
+
attachTo: f
|
1507
|
+
});
|
1508
|
+
}, []);
|
1509
|
+
}, ia = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], Re = {
|
1510
|
+
primaryColor: "#333",
|
1511
|
+
secondaryColor: "#E6E6E6",
|
1512
|
+
calculated: !1
|
1513
|
+
};
|
1514
|
+
function sa(e) {
|
1515
|
+
var t = e.primaryColor, r = e.secondaryColor;
|
1516
|
+
Re.primaryColor = t, Re.secondaryColor = r || wt(t), Re.calculated = !!r;
|
1517
|
+
}
|
1518
|
+
function ca() {
|
1519
|
+
return J({}, Re);
|
1520
|
+
}
|
1521
|
+
var Ue = function(t) {
|
1522
|
+
var r = t.icon, a = t.className, o = t.onClick, s = t.style, i = t.primaryColor, f = t.secondaryColor, l = dt(t, ia), g = M.useRef(), m = Re;
|
1523
|
+
if (i && (m = {
|
1524
|
+
primaryColor: i,
|
1525
|
+
secondaryColor: f || wt(i)
|
1526
|
+
}), oa(g), na(Kr(r), "icon should be icon definiton, but got ".concat(r)), !Kr(r))
|
1527
|
+
return null;
|
1528
|
+
var d = r;
|
1529
|
+
return d && typeof d.icon == "function" && (d = J(J({}, d), {}, {
|
1530
|
+
icon: d.icon(m.primaryColor, m.secondaryColor)
|
1531
|
+
})), vr(d.icon, "svg-".concat(d.name), J(J({
|
1532
|
+
className: a,
|
1533
|
+
onClick: o,
|
1534
|
+
style: s,
|
1535
|
+
"data-icon": d.name,
|
1536
|
+
width: "1em",
|
1537
|
+
height: "1em",
|
1538
|
+
fill: "currentColor",
|
1539
|
+
"aria-hidden": "true"
|
1540
|
+
}, l), {}, {
|
1541
|
+
ref: g
|
1542
|
+
}));
|
1543
|
+
};
|
1544
|
+
Ue.displayName = "IconReact";
|
1545
|
+
Ue.getTwoToneColors = ca;
|
1546
|
+
Ue.setTwoToneColors = sa;
|
1547
|
+
const Sr = Ue;
|
1548
|
+
function St(e) {
|
1549
|
+
var t = Et(e), r = _e(t, 2), a = r[0], o = r[1];
|
1550
|
+
return Sr.setTwoToneColors({
|
1551
|
+
primaryColor: a,
|
1552
|
+
secondaryColor: o
|
1553
|
+
});
|
1554
|
+
}
|
1555
|
+
function la() {
|
1556
|
+
var e = Sr.getTwoToneColors();
|
1557
|
+
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
1558
|
+
}
|
1559
|
+
var ua = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
1560
|
+
St(Wn.primary);
|
1561
|
+
var qe = /* @__PURE__ */ M.forwardRef(function(e, t) {
|
1562
|
+
var r = e.className, a = e.icon, o = e.spin, s = e.rotate, i = e.tabIndex, f = e.onClick, l = e.twoToneColor, g = dt(e, ua), m = M.useContext(ft), d = m.prefixCls, b = d === void 0 ? "anticon" : d, S = m.rootClassName, T = kn(S, b, pr(pr({}, "".concat(b, "-").concat(a.name), !!a.name), "".concat(b, "-spin"), !!o || a.name === "loading"), r), v = i;
|
1563
|
+
v === void 0 && f && (v = -1);
|
1564
|
+
var c = s ? {
|
1565
|
+
msTransform: "rotate(".concat(s, "deg)"),
|
1566
|
+
transform: "rotate(".concat(s, "deg)")
|
1567
|
+
} : void 0, w = Et(l), C = _e(w, 2), $ = C[0], z = C[1];
|
1568
|
+
return /* @__PURE__ */ M.createElement("span", Te({
|
1569
|
+
role: "img",
|
1570
|
+
"aria-label": a.name
|
1571
|
+
}, g, {
|
1572
|
+
ref: t,
|
1573
|
+
tabIndex: v,
|
1574
|
+
onClick: f,
|
1575
|
+
className: T
|
1576
|
+
}), /* @__PURE__ */ M.createElement(Sr, {
|
1577
|
+
icon: a,
|
1578
|
+
primaryColor: $,
|
1579
|
+
secondaryColor: z,
|
1580
|
+
style: c
|
1581
|
+
}));
|
1582
|
+
});
|
1583
|
+
qe.displayName = "AntdIcon";
|
1584
|
+
qe.getTwoToneColor = la;
|
1585
|
+
qe.setTwoToneColor = St;
|
1586
|
+
const Ct = qe;
|
1587
|
+
var fa = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" };
|
1588
|
+
const da = fa;
|
1589
|
+
var kt = function(t, r) {
|
1590
|
+
return /* @__PURE__ */ M.createElement(Ct, Te({}, t, {
|
1591
|
+
ref: r,
|
1592
|
+
icon: da
|
1593
|
+
}));
|
1594
|
+
};
|
1595
|
+
process.env.NODE_ENV !== "production" && (kt.displayName = "LoadingOutlined");
|
1596
|
+
const pa = /* @__PURE__ */ M.forwardRef(kt);
|
1597
|
+
var ga = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" };
|
1598
|
+
const ma = ga;
|
1599
|
+
var Rt = function(t, r) {
|
1600
|
+
return /* @__PURE__ */ M.createElement(Ct, Te({}, t, {
|
1601
|
+
ref: r,
|
1602
|
+
icon: ma
|
1603
|
+
}));
|
1604
|
+
};
|
1605
|
+
process.env.NODE_ENV !== "production" && (Rt.displayName = "RightOutlined");
|
1606
|
+
const ha = /* @__PURE__ */ M.forwardRef(Rt);
|
1607
|
+
var j = {};
|
1608
|
+
/**
|
1609
|
+
* @license React
|
1610
|
+
* react-is.production.min.js
|
1611
|
+
*
|
1612
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
1613
|
+
*
|
1614
|
+
* This source code is licensed under the MIT license found in the
|
1615
|
+
* LICENSE file in the root directory of this source tree.
|
1616
|
+
*/
|
1617
|
+
var Xr;
|
1618
|
+
function va() {
|
1619
|
+
if (Xr)
|
1620
|
+
return j;
|
1621
|
+
Xr = 1;
|
1622
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), f = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), T;
|
1623
|
+
T = Symbol.for("react.module.reference");
|
1624
|
+
function v(c) {
|
1625
|
+
if (typeof c == "object" && c !== null) {
|
1626
|
+
var w = c.$$typeof;
|
1627
|
+
switch (w) {
|
1628
|
+
case e:
|
1629
|
+
switch (c = c.type, c) {
|
1630
|
+
case r:
|
1631
|
+
case o:
|
1632
|
+
case a:
|
1633
|
+
case g:
|
1634
|
+
case m:
|
1635
|
+
return c;
|
1636
|
+
default:
|
1637
|
+
switch (c = c && c.$$typeof, c) {
|
1638
|
+
case f:
|
1639
|
+
case i:
|
1640
|
+
case l:
|
1641
|
+
case b:
|
1642
|
+
case d:
|
1643
|
+
case s:
|
1644
|
+
return c;
|
1645
|
+
default:
|
1646
|
+
return w;
|
1647
|
+
}
|
1648
|
+
}
|
1649
|
+
case t:
|
1650
|
+
return w;
|
1651
|
+
}
|
1652
|
+
}
|
1653
|
+
}
|
1654
|
+
return j.ContextConsumer = i, j.ContextProvider = s, j.Element = e, j.ForwardRef = l, j.Fragment = r, j.Lazy = b, j.Memo = d, j.Portal = t, j.Profiler = o, j.StrictMode = a, j.Suspense = g, j.SuspenseList = m, j.isAsyncMode = function() {
|
1655
|
+
return !1;
|
1656
|
+
}, j.isConcurrentMode = function() {
|
1657
|
+
return !1;
|
1658
|
+
}, j.isContextConsumer = function(c) {
|
1659
|
+
return v(c) === i;
|
1660
|
+
}, j.isContextProvider = function(c) {
|
1661
|
+
return v(c) === s;
|
1662
|
+
}, j.isElement = function(c) {
|
1663
|
+
return typeof c == "object" && c !== null && c.$$typeof === e;
|
1664
|
+
}, j.isForwardRef = function(c) {
|
1665
|
+
return v(c) === l;
|
1666
|
+
}, j.isFragment = function(c) {
|
1667
|
+
return v(c) === r;
|
1668
|
+
}, j.isLazy = function(c) {
|
1669
|
+
return v(c) === b;
|
1670
|
+
}, j.isMemo = function(c) {
|
1671
|
+
return v(c) === d;
|
1672
|
+
}, j.isPortal = function(c) {
|
1673
|
+
return v(c) === t;
|
1674
|
+
}, j.isProfiler = function(c) {
|
1675
|
+
return v(c) === o;
|
1676
|
+
}, j.isStrictMode = function(c) {
|
1677
|
+
return v(c) === a;
|
1678
|
+
}, j.isSuspense = function(c) {
|
1679
|
+
return v(c) === g;
|
1680
|
+
}, j.isSuspenseList = function(c) {
|
1681
|
+
return v(c) === m;
|
1682
|
+
}, j.isValidElementType = function(c) {
|
1683
|
+
return typeof c == "string" || typeof c == "function" || c === r || c === o || c === a || c === g || c === m || c === S || typeof c == "object" && c !== null && (c.$$typeof === b || c.$$typeof === d || c.$$typeof === s || c.$$typeof === i || c.$$typeof === l || c.$$typeof === T || c.getModuleId !== void 0);
|
1684
|
+
}, j.typeOf = v, j;
|
1685
|
+
}
|
1686
|
+
var P = {};
|
1687
|
+
/**
|
1688
|
+
* @license React
|
1689
|
+
* react-is.development.js
|
1690
|
+
*
|
1691
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
1692
|
+
*
|
1693
|
+
* This source code is licensed under the MIT license found in the
|
1694
|
+
* LICENSE file in the root directory of this source tree.
|
1695
|
+
*/
|
1696
|
+
var Zr;
|
1697
|
+
function ba() {
|
1698
|
+
return Zr || (Zr = 1, process.env.NODE_ENV !== "production" && function() {
|
1699
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), f = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), T = !1, v = !1, c = !1, w = !1, C = !1, $;
|
1700
|
+
$ = Symbol.for("react.module.reference");
|
1701
|
+
function z(y) {
|
1702
|
+
return !!(typeof y == "string" || typeof y == "function" || y === r || y === o || C || y === a || y === g || y === m || w || y === S || T || v || c || typeof y == "object" && y !== null && (y.$$typeof === b || y.$$typeof === d || y.$$typeof === s || y.$$typeof === i || y.$$typeof === l || // This needs to include all possible module reference object
|
1703
|
+
// types supported by any Flight configuration anywhere since
|
1704
|
+
// we don't know which Flight build this will end up being used
|
1705
|
+
// with.
|
1706
|
+
y.$$typeof === $ || y.getModuleId !== void 0));
|
1707
|
+
}
|
1708
|
+
function F(y) {
|
1709
|
+
if (typeof y == "object" && y !== null) {
|
1710
|
+
var re = y.$$typeof;
|
1711
|
+
switch (re) {
|
1712
|
+
case e:
|
1713
|
+
var Z = y.type;
|
1714
|
+
switch (Z) {
|
1715
|
+
case r:
|
1716
|
+
case o:
|
1717
|
+
case a:
|
1718
|
+
case g:
|
1719
|
+
case m:
|
1720
|
+
return Z;
|
1721
|
+
default:
|
1722
|
+
var we = Z && Z.$$typeof;
|
1723
|
+
switch (we) {
|
1724
|
+
case f:
|
1725
|
+
case i:
|
1726
|
+
case l:
|
1727
|
+
case b:
|
1728
|
+
case d:
|
1729
|
+
case s:
|
1730
|
+
return we;
|
1731
|
+
default:
|
1732
|
+
return re;
|
1733
|
+
}
|
1734
|
+
}
|
1735
|
+
case t:
|
1736
|
+
return re;
|
1737
|
+
}
|
1738
|
+
}
|
1739
|
+
}
|
1740
|
+
var me = i, ie = s, se = e, ne = l, ce = r, le = b, ae = d, L = t, W = o, K = a, Pe = g, Oe = m, he = !1, ve = !1;
|
1741
|
+
function $e(y) {
|
1742
|
+
return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
1743
|
+
}
|
1744
|
+
function Ae(y) {
|
1745
|
+
return ve || (ve = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
1746
|
+
}
|
1747
|
+
function Ie(y) {
|
1748
|
+
return F(y) === i;
|
1749
|
+
}
|
1750
|
+
function Fe(y) {
|
1751
|
+
return F(y) === s;
|
1752
|
+
}
|
1753
|
+
function Ke(y) {
|
1754
|
+
return typeof y == "object" && y !== null && y.$$typeof === e;
|
1755
|
+
}
|
1756
|
+
function Je(y) {
|
1757
|
+
return F(y) === l;
|
1758
|
+
}
|
1759
|
+
function be(y) {
|
1760
|
+
return F(y) === r;
|
1761
|
+
}
|
1762
|
+
function ye(y) {
|
1763
|
+
return F(y) === b;
|
1764
|
+
}
|
1765
|
+
function ue(y) {
|
1766
|
+
return F(y) === d;
|
1767
|
+
}
|
1768
|
+
function xe(y) {
|
1769
|
+
return F(y) === t;
|
1770
|
+
}
|
1771
|
+
function fe(y) {
|
1772
|
+
return F(y) === o;
|
1773
|
+
}
|
1774
|
+
function Xe(y) {
|
1775
|
+
return F(y) === a;
|
1776
|
+
}
|
1777
|
+
function Me(y) {
|
1778
|
+
return F(y) === g;
|
1779
|
+
}
|
1780
|
+
function Ze(y) {
|
1781
|
+
return F(y) === m;
|
1782
|
+
}
|
1783
|
+
P.ContextConsumer = me, P.ContextProvider = ie, P.Element = se, P.ForwardRef = ne, P.Fragment = ce, P.Lazy = le, P.Memo = ae, P.Portal = L, P.Profiler = W, P.StrictMode = K, P.Suspense = Pe, P.SuspenseList = Oe, P.isAsyncMode = $e, P.isConcurrentMode = Ae, P.isContextConsumer = Ie, P.isContextProvider = Fe, P.isElement = Ke, P.isForwardRef = Je, P.isFragment = be, P.isLazy = ye, P.isMemo = ue, P.isPortal = xe, P.isProfiler = fe, P.isStrictMode = Xe, P.isSuspense = Me, P.isSuspenseList = Ze, P.isValidElementType = z, P.typeOf = F;
|
1784
|
+
}()), P;
|
1785
|
+
}
|
1786
|
+
process.env.NODE_ENV === "production" ? va() : ba();
|
1787
|
+
const ya = E.div`
|
1788
|
+
padding: 0 12px;
|
1789
|
+
align-items: center;
|
1790
|
+
display: flex;
|
1791
|
+
justify-content: space-between;
|
1792
|
+
width: calc(100% - 2 * 12px);
|
1793
|
+
border-radius: 6px;
|
1794
|
+
height: 32px;
|
1795
|
+
`, xa = E.div`
|
1796
|
+
display: flex;
|
1797
|
+
align-items: center;
|
1798
|
+
gap: 6px;
|
1799
|
+
font-weight: 400;
|
1800
|
+
font-style: italic;
|
1801
|
+
`, wa = E(ha)`
|
1802
|
+
font-size: 18px;
|
1803
|
+
color: ${(e) => e.color};
|
1804
|
+
svg {
|
1805
|
+
transition: transform ${je * 0.7}ms ease-in-out;
|
1806
|
+
}
|
1807
|
+
`, Ea = X(({
|
1808
|
+
open: e,
|
1809
|
+
onChange: t,
|
1810
|
+
defaultOpen: r,
|
1811
|
+
title: a,
|
1812
|
+
image: o,
|
1813
|
+
rightText: s,
|
1814
|
+
activeColor: i,
|
1815
|
+
inactiveColor: f,
|
1816
|
+
border: l,
|
1817
|
+
style: g,
|
1818
|
+
width: m,
|
1819
|
+
children: d
|
1820
|
+
}, b) => {
|
1821
|
+
const { token: S } = B.useToken(), [T, v] = G(!1);
|
1822
|
+
i || (i = S.colorFill), f || (f = S.colorFillSecondary);
|
1823
|
+
const c = ($) => {
|
1824
|
+
v($), t == null || t($);
|
1825
|
+
}, w = () => o ? /* @__PURE__ */ p.jsx("img", { src: o, style: { height: 18 }, alt: "dropdown" }) : /* @__PURE__ */ p.jsx(wa, { rotate: T ? 90 : 0, color: S.colorPrimary }), C = Object.assign({
|
1826
|
+
borderEndStartRadius: 6,
|
1827
|
+
borderEndEndRadius: 6
|
1828
|
+
}, g == null ? void 0 : g.children);
|
1829
|
+
return /* @__PURE__ */ p.jsx(
|
1830
|
+
ut,
|
1831
|
+
{
|
1832
|
+
ref: b,
|
1833
|
+
header: /* @__PURE__ */ p.jsxs(ya, { style: Object.assign({
|
1834
|
+
backgroundColor: T ? i : f,
|
1835
|
+
borderEndStartRadius: T && 0,
|
1836
|
+
borderEndEndRadius: T && 0
|
1837
|
+
}, g == null ? void 0 : g.header), children: [
|
1838
|
+
/* @__PURE__ */ p.jsx(U.Text, { children: a }),
|
1839
|
+
/* @__PURE__ */ p.jsxs(xa, { children: [
|
1840
|
+
/* @__PURE__ */ p.jsx(U.Text, { children: s }),
|
1841
|
+
w()
|
1842
|
+
] })
|
1843
|
+
] }),
|
1844
|
+
border: l,
|
1845
|
+
defaultOpen: r,
|
1846
|
+
open: e,
|
1847
|
+
onChange: c,
|
1848
|
+
style: C,
|
1849
|
+
width: m,
|
1850
|
+
children: d
|
1851
|
+
}
|
1852
|
+
);
|
1853
|
+
}), Sa = E.div`
|
1854
|
+
padding: 12px;
|
1855
|
+
`, Ca = X(({ children: e, background: t }, r) => {
|
1856
|
+
const { token: { colorFillSecondary: a } } = B.useToken();
|
1857
|
+
return /* @__PURE__ */ p.jsx(
|
1858
|
+
Sa,
|
1859
|
+
{
|
1860
|
+
ref: r,
|
1861
|
+
style: {
|
1862
|
+
background: t || `linear-gradient(150deg, transparent 30%, ${a})`
|
1863
|
+
},
|
1864
|
+
children: e
|
1865
|
+
}
|
1866
|
+
);
|
1867
|
+
}), Ge = Ea;
|
1868
|
+
Ge.Content = Ca;
|
1869
|
+
Ge.Base = ut;
|
1870
|
+
const Ye = E.div`
|
1871
|
+
cursor: pointer;
|
1872
|
+
height: var(--row-height);
|
1873
|
+
width: calc(100% - 2 * 8px);
|
1874
|
+
padding: 0 8px;
|
1875
|
+
margin: 0;
|
1876
|
+
border-bottom: 1px solid ${(e) => e.$colorBorder || "#d9d9d9"};
|
1877
|
+
display: flex;
|
1878
|
+
align-items: center;
|
1879
|
+
justify-content: space-between;
|
1880
|
+
transition: backdrop-filter .4s;
|
1881
|
+
|
1882
|
+
&:hover {
|
1883
|
+
backdrop-filter: brightness(1.2);
|
1884
|
+
}
|
1885
|
+
`, Tt = E(U.Text)`
|
1886
|
+
max-width: calc(100% - 3.5rem);
|
1887
|
+
overflow: hidden;
|
1888
|
+
text-overflow: ellipsis;
|
1889
|
+
font-weight: 500;
|
1890
|
+
`, ka = E(Ye)`
|
1891
|
+
&:last-child {
|
1892
|
+
border-bottom: unset;
|
1893
|
+
}
|
1894
|
+
|
1895
|
+
&.active {
|
1896
|
+
background-color: ${(e) => e.$colorActiveBg};
|
1897
|
+
}
|
1898
|
+
`, _t = ({ item: e, onClick: t, active: r, parentKey: a, itemRender: o }) => {
|
1899
|
+
const { token: { colorBorder: s, colorPrimary: i } } = B.useToken(), f = o || ((m) => m), l = [e.key];
|
1900
|
+
a && l.unshift(a);
|
1901
|
+
const g = (m) => {
|
1902
|
+
t == null || t({
|
1903
|
+
item: e,
|
1904
|
+
key: e.key,
|
1905
|
+
keyPath: l,
|
1906
|
+
domEvent: m
|
1907
|
+
});
|
1908
|
+
};
|
1909
|
+
return f(
|
1910
|
+
/* @__PURE__ */ p.jsxs(ka, { onClick: g, className: r && "active", $colorBorder: s, $colorActiveBg: i, children: [
|
1911
|
+
/* @__PURE__ */ p.jsx(Tt, { children: e.label }),
|
1912
|
+
e.icon,
|
1913
|
+
" "
|
1914
|
+
] }),
|
1915
|
+
{ item: e, keyPath: l, key: e.key }
|
1916
|
+
);
|
1917
|
+
}, Ra = ({
|
1918
|
+
item: e,
|
1919
|
+
onClick: t,
|
1920
|
+
itemRender: r,
|
1921
|
+
open: a
|
1922
|
+
}) => {
|
1923
|
+
const { token: { colorPrimary: o, colorBorder: s } } = B.useToken(), [i, f] = G(!1), l = Ve(null), g = r || ((b) => b), m = fr(async (b) => {
|
1924
|
+
f(!!(typeof b == "boolean" ? b : !i));
|
1925
|
+
}, [i]), d = (b) => {
|
1926
|
+
a === void 0 && m(), t == null || t({
|
1927
|
+
item: e,
|
1928
|
+
key: e.key,
|
1929
|
+
keyPath: [e.key],
|
1930
|
+
domEvent: b
|
1931
|
+
});
|
1932
|
+
};
|
1933
|
+
return V(() => {
|
1934
|
+
typeof a == "boolean" && m(a);
|
1935
|
+
}, [a, m]), V(() => {
|
1936
|
+
l.current.calculateHeight();
|
1937
|
+
}, [e.children]), /* @__PURE__ */ p.jsx(
|
1938
|
+
Ge.Base,
|
1939
|
+
{
|
1940
|
+
ref: l,
|
1941
|
+
header: g(
|
1942
|
+
/* @__PURE__ */ p.jsxs(
|
1943
|
+
Ye,
|
1944
|
+
{
|
1945
|
+
onClick: d,
|
1946
|
+
style: { backgroundColor: i ? o : void 0 },
|
1947
|
+
$colorBorder: i ? "transparent" : s,
|
1948
|
+
children: [
|
1949
|
+
/* @__PURE__ */ p.jsx(Tt, { children: e == null ? void 0 : e.label }),
|
1950
|
+
e == null ? void 0 : e.icon
|
1951
|
+
]
|
1952
|
+
}
|
1953
|
+
),
|
1954
|
+
{ item: e, keyPath: [e.key], key: e.key }
|
1955
|
+
),
|
1956
|
+
open: i,
|
1957
|
+
children: /* @__PURE__ */ p.jsx("div", { style: {
|
1958
|
+
borderLeft: `1px solid ${o}`,
|
1959
|
+
borderRight: `2px solid ${o}`,
|
1960
|
+
borderBottom: `1px solid ${o}`,
|
1961
|
+
boxShadow: `inset 0 0 3px ${o}`
|
1962
|
+
}, children: Array.isArray(e.children) && e.children.map((b) => /* @__PURE__ */ p.jsx(_t, { itemRender: g, onClick: t, item: b, parentKey: e.key }, b.key)) })
|
1963
|
+
}
|
1964
|
+
);
|
1965
|
+
}, Ta = E.div`
|
1966
|
+
--row-height: 48px;
|
1967
|
+
--site-selector-height: 100%;
|
1968
|
+
height: 100%;
|
1969
|
+
|
1970
|
+
position: relative;
|
1971
|
+
`, jt = E.div`
|
1972
|
+
height: calc(var(--row-height) - 1px);
|
1973
|
+
width: calc(100% - 2 * 6px);
|
1974
|
+
padding: 0 6px;
|
1975
|
+
display: flex;
|
1976
|
+
align-items: center;
|
1977
|
+
border-bottom: 1px solid gray;
|
1978
|
+
`, _a = E.div`
|
1979
|
+
height: calc(100% - 2 * var(--row-height));
|
1980
|
+
overflow-y: auto;
|
1981
|
+
`, ja = E(jt)`
|
1982
|
+
justify-content: center;
|
1983
|
+
background-color: rgba(163, 163, 163, 0.1);
|
1984
|
+
border-top: 1px solid gray;
|
1985
|
+
border-bottom: unset;
|
1986
|
+
`, go = X(({
|
1987
|
+
items: e,
|
1988
|
+
messageEmpty: t,
|
1989
|
+
onClick: r,
|
1990
|
+
loading: a,
|
1991
|
+
openKeys: o,
|
1992
|
+
bottomAddon: s,
|
1993
|
+
search: i,
|
1994
|
+
onSearchChange: f,
|
1995
|
+
itemRender: l
|
1996
|
+
}, g) => {
|
1997
|
+
const [m, d] = G([]), { token: { colorBorder: b } } = B.useToken();
|
1998
|
+
V(() => {
|
1999
|
+
Array.isArray(o) && d(o);
|
2000
|
+
}, [o]);
|
2001
|
+
const S = (v) => {
|
2002
|
+
o === void 0 && v.keyPath.length === 1 && ("children" in v.item ? m.some((c) => c === v.key) ? d(m.filter((c) => c !== v.key)) : d(m.concat(v.key)) : d([v.item.key])), r == null || r(v);
|
2003
|
+
}, T = () => a ? /* @__PURE__ */ p.jsx(Ye, { $colorBorder: b, children: /* @__PURE__ */ p.jsx(U.Text, { children: /* @__PURE__ */ p.jsxs(yr, { children: [
|
2004
|
+
typeof a == "string" ? a : "Loading items...",
|
2005
|
+
/* @__PURE__ */ p.jsx(pa, {})
|
2006
|
+
] }) }) }) : e != null && e.length ? e.map((v) => {
|
2007
|
+
if ("type" in v)
|
2008
|
+
switch (v.type) {
|
2009
|
+
case "group":
|
2010
|
+
return /* @__PURE__ */ p.jsx(
|
2011
|
+
Ra,
|
2012
|
+
{
|
2013
|
+
item: v,
|
2014
|
+
onClick: S,
|
2015
|
+
open: m.includes(v.key),
|
2016
|
+
itemRender: l
|
2017
|
+
},
|
2018
|
+
v.key
|
2019
|
+
);
|
2020
|
+
}
|
2021
|
+
return /* @__PURE__ */ p.jsx(
|
2022
|
+
_t,
|
2023
|
+
{
|
2024
|
+
item: v,
|
2025
|
+
onClick: S,
|
2026
|
+
active: m.includes(v.key),
|
2027
|
+
itemRender: l
|
2028
|
+
},
|
2029
|
+
v.key
|
2030
|
+
);
|
2031
|
+
}) : /* @__PURE__ */ p.jsx(Ye, { $colorBorder: b, children: /* @__PURE__ */ p.jsx(U.Text, { children: t || "No items found" }) });
|
2032
|
+
return /* @__PURE__ */ p.jsxs(Ta, { ref: g, children: [
|
2033
|
+
/* @__PURE__ */ p.jsx(jt, { children: /* @__PURE__ */ p.jsx(st.Search, { addonBefore: (e == null ? void 0 : e.length) || "0", onChange: (v) => f(v.target.value), value: i, allowClear: !0, enterButton: "Search" }) }),
|
2034
|
+
/* @__PURE__ */ p.jsx(_a, { children: T() }),
|
2035
|
+
/* @__PURE__ */ p.jsx(ja, { children: s })
|
2036
|
+
] });
|
2037
|
+
}), Pa = E.div`
|
2038
|
+
background: linear-gradient(60deg,rgba(75,80,85,.5),rgba(125,123,120,.5));
|
2039
|
+
border-radius: 4px;
|
2040
|
+
box-shadow: 0 .1em .3em rgba(0,0,0,.4);
|
2041
|
+
margin-block: 16px;
|
2042
|
+
padding: 12px 16px;
|
2043
|
+
|
2044
|
+
@media screen and (min-width: 768px) {
|
2045
|
+
padding: 24px;
|
2046
|
+
margin-inline: 4px;
|
2047
|
+
}
|
2048
|
+
`, Oa = E.h3`
|
2049
|
+
padding-inline: 6px;
|
2050
|
+
padding-bottom: 4px;
|
2051
|
+
margin: 0;
|
2052
|
+
margin-bottom: 8px;
|
2053
|
+
font-weight: 300;
|
2054
|
+
color: #25b1ef;
|
2055
|
+
border-bottom: 2px solid #25b1ef;
|
2056
|
+
|
2057
|
+
@media only screen and (min-width: 768px) {
|
2058
|
+
font-size: 1.3rem;
|
2059
|
+
}
|
2060
|
+
`, mo = ({ children: e, title: t }) => /* @__PURE__ */ p.jsxs(Pa, { children: [
|
2061
|
+
t && /* @__PURE__ */ p.jsx(Oa, { children: t }),
|
2062
|
+
e
|
2063
|
+
] }), $a = E.div`
|
2064
|
+
background: radial-gradient(circle at 70% 50px, ${(e) => e.$bgLight} 15%, ${(e) => e.$bgMain} max(50%, 350px), ${(e) => e.$bgAccent} max(100%, 800px));
|
2065
|
+
padding: 12px 8px;
|
2066
|
+
border-radius: 0;
|
2067
|
+
|
2068
|
+
@media screen and (min-width: 768px) {
|
2069
|
+
padding: 24px 40px;
|
2070
|
+
border-radius: 12px;
|
2071
|
+
}
|
2072
|
+
`, Aa = E.h2`
|
2073
|
+
padding-inline: 8px;
|
2074
|
+
margin-bottom: 2px;
|
2075
|
+
font-weight: 300;
|
2076
|
+
color: ${(e) => e.$color};
|
2077
|
+
font-size: 1.3rem;
|
2078
|
+
width: max-content;
|
2079
|
+
margin-top: 8px;
|
2080
|
+
|
2081
|
+
@media screen and (min-width: 768px) {
|
2082
|
+
font-size: 2rem;
|
2083
|
+
}
|
2084
|
+
`, Ia = E.div`
|
2085
|
+
margin-bottom: .5em;
|
2086
|
+
font-size: 1.3rem;
|
2087
|
+
border-bottom: 1px solid ${(e) => e.$color};
|
2088
|
+
|
2089
|
+
@media screen and (min-width: 768px) {
|
2090
|
+
border-bottom: 3px solid ${(e) => e.$color};
|
2091
|
+
font-size: 2rem;
|
2092
|
+
}
|
2093
|
+
`, ho = ({ children: e, title: t }) => {
|
2094
|
+
const { token: { colorBgContainer: r, colorBgBase: a, colorPrimary: o, colorPrimaryBg: s } } = B.useToken();
|
2095
|
+
return /* @__PURE__ */ p.jsxs(
|
2096
|
+
$a,
|
2097
|
+
{
|
2098
|
+
$bgLight: r,
|
2099
|
+
$bgMain: a,
|
2100
|
+
$bgAccent: s,
|
2101
|
+
children: [
|
2102
|
+
t && /* @__PURE__ */ p.jsx(Ia, { $color: o, children: /* @__PURE__ */ p.jsx(Aa, { $color: o, children: t }) }),
|
2103
|
+
e
|
2104
|
+
]
|
2105
|
+
}
|
2106
|
+
);
|
2107
|
+
}, Pt = E.li`
|
2108
|
+
position: relative;
|
2109
|
+
text-decoration: none;
|
2110
|
+
cursor: pointer;
|
2111
|
+
text-align: left;
|
2112
|
+
display: flex;
|
2113
|
+
align-items: center;
|
2114
|
+
|
2115
|
+
@media only screen and not (min-width: 768px) {
|
2116
|
+
padding-left: 1rem;
|
2117
|
+
margin-bottom: 1rem;
|
2118
|
+
}
|
2119
|
+
`, Ot = E(U.Text)`
|
2120
|
+
font-size: 1.5rem;
|
2121
|
+
font-weight: 600;
|
2122
|
+
color: inherit;
|
2123
|
+
transition: transform .3s ease-in-out;
|
2124
|
+
|
2125
|
+
&:hover {
|
2126
|
+
transform: translateY(-2px);
|
2127
|
+
}
|
2128
|
+
|
2129
|
+
width: max-content;
|
2130
|
+
|
2131
|
+
@media only screen and (min-width: 768px) {
|
2132
|
+
opacity: 1;
|
2133
|
+
position: relative;
|
2134
|
+
}
|
2135
|
+
`, Fa = ot`
|
2136
|
+
0% {
|
2137
|
+
opacity: 0;
|
2138
|
+
transform: translate(0, 8px);
|
2139
|
+
} 100% {
|
2140
|
+
opacity: 1;
|
2141
|
+
transform: translate(0, 0);
|
2142
|
+
}
|
2143
|
+
`, Ma = E.ul`
|
2144
|
+
--inset: 12px;
|
2145
|
+
--padding-y: 6px;
|
2146
|
+
--border-radius: 0 0 var(--padding-y) var(--padding-y);
|
2147
|
+
|
2148
|
+
position: absolute;
|
2149
|
+
top: calc(100% - var(--inset) + 2px);
|
2150
|
+
animation: ${Fa} .2s;
|
2151
|
+
background-color: var(--bg-color);
|
2152
|
+
color: black;
|
2153
|
+
padding: var(--inset) 0 var(--padding-y) 0;
|
2154
|
+
margin: 0;
|
2155
|
+
|
2156
|
+
&::before {
|
2157
|
+
content: '';
|
2158
|
+
position: absolute;
|
2159
|
+
inset: var(--inset) 0 0 0;
|
2160
|
+
border-radius: var(--border-radius);
|
2161
|
+
box-shadow: .5px 1px 5px rgba(0,0,0,0.25);
|
2162
|
+
z-index: -1;
|
2163
|
+
}
|
2164
|
+
|
2165
|
+
@media only screen and (min-width: 768px) {
|
2166
|
+
border-radius: var(--border-radius);
|
2167
|
+
right: -6px;
|
2168
|
+
}
|
2169
|
+
|
2170
|
+
@media only screen and not (min-width: 768px) {
|
2171
|
+
width: 100%;
|
2172
|
+
top: 100%;
|
2173
|
+
left: 0;
|
2174
|
+
}
|
2175
|
+
`, Na = E.li`
|
2176
|
+
padding: .25rem .75rem;
|
2177
|
+
min-width: 12rem;
|
2178
|
+
cursor: pointer;
|
2179
|
+
font-weight: 600;
|
2180
|
+
display: block;
|
2181
|
+
|
2182
|
+
&:hover {
|
2183
|
+
background: linear-gradient(rgba(0,0,0,.1) 2%, transparent 15%, transparent 85%, rgba(0,0,0,.1) 98%);
|
2184
|
+
}
|
2185
|
+
`, La = (e) => {
|
2186
|
+
const { item: t, onClick: r, activeKey: a, itemRender: o } = e;
|
2187
|
+
if (!Array.isArray(t == null ? void 0 : t.children))
|
2188
|
+
return null;
|
2189
|
+
const s = o || ((i) => i);
|
2190
|
+
return t.children.map((i) => {
|
2191
|
+
const f = (l) => {
|
2192
|
+
r == null || r(l, { item: i, key: i.key });
|
2193
|
+
};
|
2194
|
+
return /* @__PURE__ */ p.jsx(
|
2195
|
+
Na,
|
2196
|
+
{
|
2197
|
+
className: a === i.key && "active",
|
2198
|
+
onClick: f,
|
2199
|
+
children: s(
|
2200
|
+
i.label,
|
2201
|
+
{
|
2202
|
+
item: i,
|
2203
|
+
key: i.key,
|
2204
|
+
keyPath: [t.key, i.key]
|
2205
|
+
}
|
2206
|
+
)
|
2207
|
+
},
|
2208
|
+
i.key
|
2209
|
+
);
|
2210
|
+
});
|
2211
|
+
}, Da = (e) => {
|
2212
|
+
const { item: t, activeKey: r, onClick: a } = e, [o, s] = G(!1), i = (l, g) => {
|
2213
|
+
g ? (s(!1), a == null || a(l, g)) : (s(!o), a == null || a(l, {
|
2214
|
+
key: t == null ? void 0 : t.key,
|
2215
|
+
item: t
|
2216
|
+
}));
|
2217
|
+
}, f = at(() => r === (t == null ? void 0 : t.key) || (t == null ? void 0 : t.children.some((l) => l.key === r)), [r, t]);
|
2218
|
+
return /* @__PURE__ */ p.jsxs(
|
2219
|
+
Pt,
|
2220
|
+
{
|
2221
|
+
className: f && "active",
|
2222
|
+
onClick: i,
|
2223
|
+
onMouseEnter: () => {
|
2224
|
+
s(!0);
|
2225
|
+
},
|
2226
|
+
onMouseLeave: () => {
|
2227
|
+
s(!1);
|
2228
|
+
},
|
2229
|
+
children: [
|
2230
|
+
/* @__PURE__ */ p.jsx(Ot, { children: t == null ? void 0 : t.label }),
|
2231
|
+
/* @__PURE__ */ p.jsx(Ma, { hidden: !o, children: /* @__PURE__ */ p.jsx(La, { ...e }) })
|
2232
|
+
]
|
2233
|
+
}
|
2234
|
+
);
|
2235
|
+
}, Ba = 64, za = E.div`
|
2236
|
+
--bg-color: #fff;
|
2237
|
+
--border-width: 3px;
|
2238
|
+
--grid-padding-x: max(0px, calc(calc(100vw - 1200px) / 2));
|
2239
|
+
--selector-width: 280px;
|
2240
|
+
--logo-size: 48px;
|
2241
|
+
|
2242
|
+
display: grid;
|
2243
|
+
border-bottom: var(--border-width) solid black;
|
2244
|
+
background-color: var(--bg-color);
|
2245
|
+
height: calc(var(--navbar-height) - var(--border-width));
|
2246
|
+
|
2247
|
+
user-select: none;
|
2248
|
+
text-align: center;
|
2249
|
+
z-index: 999;
|
2250
|
+
width: 100%;
|
2251
|
+
position: sticky;
|
2252
|
+
top: 0;
|
2253
|
+
transition: background-color .3s;
|
2254
|
+
|
2255
|
+
@media only screen and (min-width: 768px) {
|
2256
|
+
grid-template-columns: calc(var(--grid-padding-x) + 1rem) var(--selector-width) 1rem 1fr calc(var(--grid-padding-x) + 1rem);
|
2257
|
+
}
|
2258
|
+
|
2259
|
+
@media only screen and (min-width: 992px) {
|
2260
|
+
--selector-width: 320px;
|
2261
|
+
}
|
2262
|
+
|
2263
|
+
/* Possible solution for additional navbar items */
|
2264
|
+
/* @media only screen and (min-width: calc(1200px + calc(48px + 32px) * 2)) {
|
2265
|
+
grid-template-columns: var(--grid-padding-x) 0 0 1fr var(--grid-padding-x);
|
2266
|
+
} */
|
2267
|
+
`, Wa = E.div`
|
2268
|
+
width: var(--logo-size);
|
2269
|
+
height: var(--logo-size);
|
2270
|
+
margin: calc(calc(var(--navbar-height) - var(--logo-size)) / 2) auto;
|
2271
|
+
|
2272
|
+
@media only screen and (min-width: 768px) {
|
2273
|
+
grid-column: 2 / 3;
|
2274
|
+
}
|
2275
|
+
|
2276
|
+
// Using logo-size and padding
|
2277
|
+
@media only screen and (min-width: calc(1200px + calc(48px + 32px) * 2)) {
|
2278
|
+
grid-column: 1 / 2;
|
2279
|
+
}
|
2280
|
+
`, Ya = E.nav`
|
2281
|
+
width: 100%;
|
2282
|
+
transform-origin: top;
|
2283
|
+
transition: transform 400ms ease-in-out;
|
2284
|
+
grid-column: 4 / 5;
|
2285
|
+
|
2286
|
+
@media only screen and not (min-width: 768px) {
|
2287
|
+
position: absolute;
|
2288
|
+
background-color: rgba(0,0,0,.87);
|
2289
|
+
border-bottom: 3px solid white;
|
2290
|
+
top: 100%;
|
2291
|
+
left: 0;
|
2292
|
+
transform: scale(1, 0);
|
2293
|
+
}
|
2294
|
+
|
2295
|
+
@media only screen and (min-width: 768px) {
|
2296
|
+
display: flex;
|
2297
|
+
justify-content: flex-end;
|
2298
|
+
align-items: center;
|
2299
|
+
transition: none;
|
2300
|
+
height: var(--navbar-height);
|
2301
|
+
}
|
2302
|
+
`, Va = E.ul`
|
2303
|
+
font-family: 'Noto Sans JP', sans-serif;
|
2304
|
+
list-style-type: none;
|
2305
|
+
padding-left: 0;
|
2306
|
+
height: 100%;
|
2307
|
+
opacity: 0;
|
2308
|
+
transition: all 150ms ease-in-out;
|
2309
|
+
|
2310
|
+
@media only screen and (min-width: 768px) {
|
2311
|
+
display: flex;
|
2312
|
+
column-gap: 20px;
|
2313
|
+
align-items: stretch;
|
2314
|
+
opacity: unset;
|
2315
|
+
}
|
2316
|
+
|
2317
|
+
@media only screen and (min-width: 992px) {
|
2318
|
+
column-gap: 32px;
|
2319
|
+
}
|
2320
|
+
|
2321
|
+
color: ${(e) => e.$textColor};
|
2322
|
+
|
2323
|
+
/* For active NavLink react-router-dom */
|
2324
|
+
.active {
|
2325
|
+
color: ${(e) => e.$activeColor};
|
2326
|
+
}
|
2327
|
+
`, Ha = E.label`
|
2328
|
+
position: absolute;
|
2329
|
+
top: 0;
|
2330
|
+
left: 1rem;
|
2331
|
+
height: 100%;
|
2332
|
+
display: flex;
|
2333
|
+
align-items: center;
|
2334
|
+
|
2335
|
+
@media only screen and (min-width: 768px) {
|
2336
|
+
display: none;
|
2337
|
+
}
|
2338
|
+
`, Ua = E.input`
|
2339
|
+
display: block;
|
2340
|
+
background-color: ${(e) => e.$color};
|
2341
|
+
height: .2em;
|
2342
|
+
width: 2em;
|
2343
|
+
border-radius: 1em;
|
2344
|
+
position: relative;
|
2345
|
+
appearance: none;
|
2346
|
+
outline: unset;
|
2347
|
+
transition: transform .4s ease-in-out, background-color .5s;
|
2348
|
+
|
2349
|
+
&::after,
|
2350
|
+
&::before {
|
2351
|
+
display: block;
|
2352
|
+
background-color: ${(e) => e.$color};
|
2353
|
+
height: .2em;
|
2354
|
+
width: 2em;
|
2355
|
+
border-radius: 1em;
|
2356
|
+
position: relative;
|
2357
|
+
content: '';
|
2358
|
+
position: absolute;
|
2359
|
+
transition: transform .4s ease-in-out;
|
2360
|
+
}
|
2361
|
+
|
2362
|
+
&::after {
|
2363
|
+
transform: translateY(-.6em)
|
2364
|
+
}
|
2365
|
+
|
2366
|
+
&::before {
|
2367
|
+
transform: translateY(.6em)
|
2368
|
+
}
|
2369
|
+
|
2370
|
+
&:checked {
|
2371
|
+
transform: translateX(-2em);
|
2372
|
+
background: transparent;
|
2373
|
+
}
|
2374
|
+
|
2375
|
+
&:checked::after {
|
2376
|
+
transform: rotateZ(45deg) translate(1.4em, -1.4em);
|
2377
|
+
}
|
2378
|
+
|
2379
|
+
&:checked::before {
|
2380
|
+
transform: rotateZ(-45deg) translate(1.4em, 1.4em);
|
2381
|
+
}
|
2382
|
+
`, qa = (e) => {
|
2383
|
+
const { items: t, activeKey: r, onClick: a, itemRender: o } = e, s = o || ((i) => i);
|
2384
|
+
return Array.isArray(t) ? t.map((i) => {
|
2385
|
+
const f = (l, g) => {
|
2386
|
+
const m = {
|
2387
|
+
item: i,
|
2388
|
+
key: i.key,
|
2389
|
+
keyPath: [i.key],
|
2390
|
+
domEvent: l
|
2391
|
+
};
|
2392
|
+
g && (m.keyPath.push(g.key), m.key = g.key, m.item = g.item), a == null || a(m);
|
2393
|
+
};
|
2394
|
+
if ("type" in i)
|
2395
|
+
switch (i.type) {
|
2396
|
+
case "group":
|
2397
|
+
return /* @__PURE__ */ p.jsx(Da, { item: i, onClick: f, activeKey: r, itemRender: s }, i.key);
|
2398
|
+
}
|
2399
|
+
return /* @__PURE__ */ p.jsx(
|
2400
|
+
Pt,
|
2401
|
+
{
|
2402
|
+
className: r === i.key && "active",
|
2403
|
+
onClick: f,
|
2404
|
+
children: s(
|
2405
|
+
/* @__PURE__ */ p.jsx(Ot, { children: i.label }),
|
2406
|
+
{
|
2407
|
+
item: i,
|
2408
|
+
key: i.key,
|
2409
|
+
keyPath: [i.key]
|
2410
|
+
}
|
2411
|
+
)
|
2412
|
+
},
|
2413
|
+
i.key
|
2414
|
+
);
|
2415
|
+
}) : null;
|
2416
|
+
}, vo = X((e, t) => {
|
2417
|
+
const { height: r, textColor: a, activeColor: o, logo: s, toggleColor: i, onClick: f, ...l } = e, { token: { colorPrimary: g } } = B.useToken(), [m, d] = G({}), [b, S] = G({}), T = Ve(
|
2418
|
+
/** @type {HTMLInputElement} */
|
2419
|
+
null
|
2420
|
+
);
|
2421
|
+
V(() => {
|
2422
|
+
typeof r == "number" && r >= 48 ? document.documentElement.style.setProperty("--navbar-height", `${Math.round(r)}px`) : document.documentElement.style.setProperty("--navbar-height", `${Ba}px`);
|
2423
|
+
}, [r]);
|
2424
|
+
const v = () => {
|
2425
|
+
T.current.checked ? (d({ transform: "scale(1,1)" }), S({
|
2426
|
+
opacity: 1,
|
2427
|
+
transition: "opacity 150ms ease-in-out 250ms"
|
2428
|
+
})) : (S({}), d({}));
|
2429
|
+
}, c = (w) => {
|
2430
|
+
w.domEvent.stopPropagation(), "children" in w.item || (T.current.checked = !1, v()), f == null || f(w);
|
2431
|
+
};
|
2432
|
+
return /* @__PURE__ */ p.jsxs(za, { ref: t, style: { borderBottomColor: a || g }, children: [
|
2433
|
+
/* @__PURE__ */ p.jsx(Wa, { children: s }),
|
2434
|
+
/* @__PURE__ */ p.jsx(Ya, { style: Object.assign({ borderBottomColor: o || g }, m), children: /* @__PURE__ */ p.jsx(
|
2435
|
+
Va,
|
2436
|
+
{
|
2437
|
+
$activeColor: o || g,
|
2438
|
+
$textColor: a,
|
2439
|
+
style: b,
|
2440
|
+
children: /* @__PURE__ */ p.jsx(qa, { ...l, onClick: c })
|
2441
|
+
}
|
2442
|
+
) }),
|
2443
|
+
/* @__PURE__ */ p.jsx(Ha, { htmlFor: "nav-toggle", children: /* @__PURE__ */ p.jsx(
|
2444
|
+
Ua,
|
2445
|
+
{
|
2446
|
+
ref: T,
|
2447
|
+
type: "checkbox",
|
2448
|
+
id: "nav-toggle",
|
2449
|
+
"aria-label": "show navigation",
|
2450
|
+
onChange: v,
|
2451
|
+
$color: i || "black"
|
2452
|
+
}
|
2453
|
+
) })
|
2454
|
+
] });
|
2455
|
+
}), Ga = E.div`
|
2456
|
+
background: linear-gradient(-120deg, ${(e) => e.$bgLight} 20%, ${(e) => e.$bgDark} 80%);
|
2457
|
+
overflow-y: auto;
|
2458
|
+
flex: 1 1 auto;
|
2459
|
+
position: relative;
|
2460
|
+
|
2461
|
+
height: calc(100% - var(--selector-height)); /* Adjust for site selector height */
|
2462
|
+
|
2463
|
+
@media only screen and (min-width: 768px) {
|
2464
|
+
border-radius: 8px;
|
2465
|
+
box-shadow: inset 0 0 2px 1px rgba(255,255,255,.1);
|
2466
|
+
height: unset;
|
2467
|
+
}
|
2468
|
+
|
2469
|
+
&::-webkit-scrollbar {
|
2470
|
+
width: 5px;
|
2471
|
+
|
2472
|
+
@media only screen and not (min-width: 768px) {
|
2473
|
+
display: none;
|
2474
|
+
}
|
2475
|
+
}
|
2476
|
+
|
2477
|
+
&::-webkit-scrollbar-track {
|
2478
|
+
background: none;
|
2479
|
+
}
|
2480
|
+
|
2481
|
+
&::-webkit-scrollbar-thumb {
|
2482
|
+
background-color: var(--thumb-bg);
|
2483
|
+
border-radius: 3px;
|
2484
|
+
}
|
2485
|
+
|
2486
|
+
/* Decrease scrollbar height for border-radius */
|
2487
|
+
&::-webkit-scrollbar-track-piece:start {
|
2488
|
+
margin-top: 1em;
|
2489
|
+
}
|
2490
|
+
|
2491
|
+
&::-webkit-scrollbar-track-piece:end {
|
2492
|
+
margin-bottom: 1em;
|
2493
|
+
}
|
2494
|
+
`, Ka = E.div`
|
2495
|
+
display: flex;
|
2496
|
+
align-items: center;
|
2497
|
+
flex-direction: column;
|
2498
|
+
padding: 1rem 0;
|
2499
|
+
gap: 1.5rem;
|
2500
|
+
|
2501
|
+
@media only screen and (min-width: 768px) {
|
2502
|
+
padding: 1.5rem;
|
2503
|
+
gap: 2rem;
|
2504
|
+
}
|
2505
|
+
|
2506
|
+
@media only screen and (min-width: 992px) {
|
2507
|
+
padding: 1.5rem 2.5rem;
|
2508
|
+
}
|
2509
|
+
`, Ja = X(({ children: e }, t) => {
|
2510
|
+
const { theme: { id: r }, token: { colorBgBase: a, colorBgContainer: o, colorBgElevated: s, colorBgLayout: i } } = B.useToken();
|
2511
|
+
let f = s, l = i;
|
2512
|
+
return r === 1 && (f = a, l = o), /* @__PURE__ */ p.jsx(Ga, { ref: t, $bgDark: f, $bgLight: l, children: /* @__PURE__ */ p.jsx(Ka, { children: e }) });
|
2513
|
+
});
|
2514
|
+
function Qr(e) {
|
2515
|
+
var t = M.useRef();
|
2516
|
+
t.current = e;
|
2517
|
+
var r = M.useCallback(function() {
|
2518
|
+
for (var a, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
|
2519
|
+
s[i] = arguments[i];
|
2520
|
+
return (a = t.current) === null || a === void 0 ? void 0 : a.call.apply(a, [t].concat(s));
|
2521
|
+
}, []);
|
2522
|
+
return r;
|
2523
|
+
}
|
2524
|
+
var et = process.env.NODE_ENV !== "test" && ht() ? M.useLayoutEffect : M.useEffect, Xa = function(t, r) {
|
2525
|
+
var a = M.useRef(!0);
|
2526
|
+
et(function() {
|
2527
|
+
return t(a.current);
|
2528
|
+
}, r), et(function() {
|
2529
|
+
return a.current = !1, function() {
|
2530
|
+
a.current = !0;
|
2531
|
+
};
|
2532
|
+
}, []);
|
2533
|
+
}, rt = function(t, r) {
|
2534
|
+
Xa(function(a) {
|
2535
|
+
if (!a)
|
2536
|
+
return t();
|
2537
|
+
}, r);
|
2538
|
+
};
|
2539
|
+
function tt(e) {
|
2540
|
+
var t = M.useRef(!1), r = M.useState(e), a = _e(r, 2), o = a[0], s = a[1];
|
2541
|
+
M.useEffect(function() {
|
2542
|
+
return t.current = !1, function() {
|
2543
|
+
t.current = !0;
|
2544
|
+
};
|
2545
|
+
}, []);
|
2546
|
+
function i(f, l) {
|
2547
|
+
l && t.current || s(f);
|
2548
|
+
}
|
2549
|
+
return [o, i];
|
2550
|
+
}
|
2551
|
+
function ur(e) {
|
2552
|
+
return e !== void 0;
|
2553
|
+
}
|
2554
|
+
function Za(e, t) {
|
2555
|
+
var r = t || {}, a = r.defaultValue, o = r.value, s = r.onChange, i = r.postState, f = tt(function() {
|
2556
|
+
return ur(o) ? o : ur(a) ? typeof a == "function" ? a() : a : typeof e == "function" ? e() : e;
|
2557
|
+
}), l = _e(f, 2), g = l[0], m = l[1], d = o !== void 0 ? o : g, b = i ? i(d) : d, S = Qr(s), T = tt([d]), v = _e(T, 2), c = v[0], w = v[1];
|
2558
|
+
rt(function() {
|
2559
|
+
var $ = c[0];
|
2560
|
+
g !== $ && S(g, $);
|
2561
|
+
}, [c]), rt(function() {
|
2562
|
+
ur(o) || m(o);
|
2563
|
+
}, [o]);
|
2564
|
+
var C = Qr(function($, z) {
|
2565
|
+
m($, z), w([d], z);
|
2566
|
+
});
|
2567
|
+
return [b, C];
|
2568
|
+
}
|
2569
|
+
const br = 36, Qa = nn`
|
2570
|
+
#main {
|
2571
|
+
--selector-height: 36px;
|
2572
|
+
}
|
2573
|
+
`, eo = E.div`
|
2574
|
+
position: sticky;
|
2575
|
+
top: calc(var(--navbar-height) + var(--main-margin-v));
|
2576
|
+
box-shadow: inset 0 0 2px 1px rgba(255,255,255,.1);
|
2577
|
+
border-radius: 8px;
|
2578
|
+
overflow: auto;
|
2579
|
+
flex: 0 0 var(--site-selector-width);
|
2580
|
+
background: linear-gradient(35deg, ${(e) => e.$bgDark} 20%, ${(e) => e.$bgLight});
|
2581
|
+
max-height: var(--main-height);
|
2582
|
+
|
2583
|
+
@media screen and not (min-width: 768px) {
|
2584
|
+
width: 100%;
|
2585
|
+
border-radius: unset;
|
2586
|
+
height: calc(var(--main-height) - ${br}px)
|
2587
|
+
}
|
2588
|
+
`, ro = X(({ title: e, children: t, collapseOpen: r, onChange: a }, o) => {
|
2589
|
+
const { theme: { id: s }, token: { colorBgBase: i, colorBgContainer: f, colorBgLayout: l } } = B.useToken(), [g, m] = G(1280), [d, b] = Za(!1, { value: r });
|
2590
|
+
let S = i, T = l;
|
2591
|
+
s === 1 && (S = i, T = f);
|
2592
|
+
const v = (w) => {
|
2593
|
+
b(w), a == null || a(w);
|
2594
|
+
};
|
2595
|
+
V(() => {
|
2596
|
+
const w = () => {
|
2597
|
+
m(window.innerWidth);
|
2598
|
+
};
|
2599
|
+
return w(), window.addEventListener("resize", w), () => {
|
2600
|
+
window.removeEventListener("resize", w);
|
2601
|
+
};
|
2602
|
+
}, []);
|
2603
|
+
const c = /* @__PURE__ */ p.jsxs(
|
2604
|
+
eo,
|
2605
|
+
{
|
2606
|
+
ref: o,
|
2607
|
+
$bgDark: S,
|
2608
|
+
$bgLight: T,
|
2609
|
+
children: [
|
2610
|
+
/* @__PURE__ */ p.jsx(Qa, {}),
|
2611
|
+
t
|
2612
|
+
]
|
2613
|
+
}
|
2614
|
+
);
|
2615
|
+
return g < 768 ? /* @__PURE__ */ p.jsx("div", { style: { flex: "0 0 100%", height: br }, children: /* @__PURE__ */ p.jsx(
|
2616
|
+
Ge,
|
2617
|
+
{
|
2618
|
+
title: e,
|
2619
|
+
activeColor: i,
|
2620
|
+
style: {
|
2621
|
+
header: { height: br, borderRadius: 0 },
|
2622
|
+
children: { position: "absolute", zIndex: 100, borderRadius: 0 }
|
2623
|
+
},
|
2624
|
+
onChange: v,
|
2625
|
+
open: d,
|
2626
|
+
children: c
|
2627
|
+
}
|
2628
|
+
) }) : c;
|
2629
|
+
}), to = E.div`
|
2630
|
+
--main-margin-v: 0px;
|
2631
|
+
--site-selector-width: 280px;
|
2632
|
+
--main-height: calc(100vh - var(--navbar-height));
|
2633
|
+
--selector-height: 0px;
|
2634
|
+
|
2635
|
+
position: relative;
|
2636
|
+
max-width: calc(1200px - 2 * 1rem); /* Adjusted for padding */
|
2637
|
+
margin: var(--main-margin-v) auto;
|
2638
|
+
height: var(--main-height);
|
2639
|
+
|
2640
|
+
@media only screen and (min-width: 768px) {
|
2641
|
+
--main-margin-v: 2rem;
|
2642
|
+
--main-height: min(calc(100vh - var(--navbar-height) - 2 * var(--main-margin-v)), 85vh);
|
2643
|
+
|
2644
|
+
display: flex;
|
2645
|
+
align-items: stretch;
|
2646
|
+
column-gap: 1rem;
|
2647
|
+
padding: 0 1rem;
|
2648
|
+
|
2649
|
+
&.content-height {
|
2650
|
+
height: unset;
|
2651
|
+
max-height: var(--main-height);
|
2652
|
+
}
|
2653
|
+
|
2654
|
+
&.no-scroll {
|
2655
|
+
height: unset;
|
2656
|
+
min-height: var(--main-height);
|
2657
|
+
max-height: unset;
|
2658
|
+
}
|
2659
|
+
|
2660
|
+
&.content-height {
|
2661
|
+
min-height: unset;
|
2662
|
+
}
|
2663
|
+
}
|
2664
|
+
|
2665
|
+
@media only screen and (min-width: 992px) {
|
2666
|
+
--site-selector-width: 320px;
|
2667
|
+
}
|
2668
|
+
`, $t = X(({ children: e, overflow: t, height: r = "full" }, a) => {
|
2669
|
+
const o = [];
|
2670
|
+
switch (t) {
|
2671
|
+
case "visible":
|
2672
|
+
o.push("no-scroll");
|
2673
|
+
break;
|
2674
|
+
}
|
2675
|
+
switch (r) {
|
2676
|
+
case "content":
|
2677
|
+
o.push("content-height");
|
2678
|
+
break;
|
2679
|
+
}
|
2680
|
+
return /* @__PURE__ */ p.jsx(to, { ref: a, id: "main", className: o.join(" "), children: e });
|
2681
|
+
});
|
2682
|
+
$t.Settings = Ja;
|
2683
|
+
$t.Selector = ro;
|
2684
|
+
const At = E(ct)`
|
2685
|
+
--shadow-color: ${(e) => e.danger ? "#f5222d" : "#e07d1d"};
|
2686
|
+
|
2687
|
+
box-shadow: 1.5px 2px var(--shadow-color);
|
2688
|
+
margin-bottom: 1px;
|
2689
|
+
|
2690
|
+
&:focus {
|
2691
|
+
box-shadow: 1px 1.5px var(--shadow-color);
|
2692
|
+
}
|
2693
|
+
|
2694
|
+
&:hover {
|
2695
|
+
box-shadow: 0 0 var(--shadow-color);
|
2696
|
+
}
|
2697
|
+
`, no = E(At)`
|
2698
|
+
margin-left: auto;
|
2699
|
+
margin-right: auto;
|
2700
|
+
display: block;
|
2701
|
+
width: max-content;
|
2702
|
+
`, bo = E(At)`
|
2703
|
+
width: max-content;
|
2704
|
+
background-color: rgba(255,255,255,.05);
|
2705
|
+
border: unset;
|
2706
|
+
box-shadow: unset;
|
2707
|
+
`, yo = E(no)`
|
2708
|
+
margin-right: unset;
|
2709
|
+
`, ao = E(U.Text)`
|
2710
|
+
position: absolute;
|
2711
|
+
transition: all .4s ease;
|
2712
|
+
z-index: 10;
|
2713
|
+
cursor: text;
|
2714
|
+
`, xo = X((e, t) => {
|
2715
|
+
const { name: r, size: a, children: o, colorText: s, colorTextActive: i } = e, [f, l] = G({}), g = Ve(null), m = an.useWatch(r), { token: d } = B.useToken(), [b, S] = G({ display: "none" }), [T, v] = at(() => [
|
2716
|
+
{},
|
2717
|
+
{ left: 0, top: 0, color: i || d.colorPrimary, cursor: "default" }
|
2718
|
+
], [i, d]);
|
2719
|
+
return nt(t, () => g.current), V(() => {
|
2720
|
+
var C;
|
2721
|
+
const c = (C = g.current) == null ? void 0 : C.parentNode, w = c.parentNode;
|
2722
|
+
c.style.width = "100%", w.style.overflow = "visible";
|
2723
|
+
}, []), V(() => {
|
2724
|
+
if (m)
|
2725
|
+
return l(v);
|
2726
|
+
document.activeElement.id !== r && l(T);
|
2727
|
+
}, [m, r, T, v]), V(() => {
|
2728
|
+
var ie, se, ne, ce, le, ae, L, W, K;
|
2729
|
+
let c, w, C;
|
2730
|
+
g.current || S({ display: "none" }), typeof r != "string" && S({});
|
2731
|
+
const $ = document.getElementById(r);
|
2732
|
+
$ || S({});
|
2733
|
+
const z = $.previousElementSibling, F = $.offsetLeft, me = z == null ? void 0 : z.classList.contains("ant-input-prefix");
|
2734
|
+
switch (a) {
|
2735
|
+
case "small":
|
2736
|
+
w = (((ie = d.Input) == null ? void 0 : ie.paddingInlineSM) || d.paddingXS) + F, c = `calc(100% + ${((se = d.Input) == null ? void 0 : se.paddingBlockSM) || 0}px + 9px)`, C = ((ne = d.Input) == null ? void 0 : ne.inputFontSizeSM) || d.fontSize;
|
2737
|
+
break;
|
2738
|
+
case "large":
|
2739
|
+
w = (((ce = d.Input) == null ? void 0 : ce.paddingInlineLG) || d.paddingSM) + F, c = `calc(100% + ${((le = d.Input) == null ? void 0 : le.paddingBlock) || 7}px + 8px)`, C = ((ae = d.Input) == null ? void 0 : ae.inputFontSizeLG) || d.fontSizeLG;
|
2740
|
+
break;
|
2741
|
+
default:
|
2742
|
+
w = (((L = d.Input) == null ? void 0 : L.paddingInline) || d.paddingSM) + F, c = `calc(100% + ${((W = d.Input) == null ? void 0 : W.paddingBlock) || 4}px + 9px)`, C = ((K = d.Input) == null ? void 0 : K.inputFontSize) || d.fontSize;
|
2743
|
+
break;
|
2744
|
+
}
|
2745
|
+
me && (w = F), S({ top: c, left: w, fontSize: C });
|
2746
|
+
}, [a, r, d]), V(() => {
|
2747
|
+
if (typeof r != "string")
|
2748
|
+
return;
|
2749
|
+
const c = document.getElementById(r);
|
2750
|
+
if (!c)
|
2751
|
+
return;
|
2752
|
+
const w = () => {
|
2753
|
+
l(v), c.classList.remove("no-placeholder");
|
2754
|
+
}, C = () => {
|
2755
|
+
c.value.length === 0 && l(T), c.value || c.classList.add("no-placeholder");
|
2756
|
+
};
|
2757
|
+
return c.value || c.classList.add("no-placeholder"), c.addEventListener("focus", w), c.addEventListener("blur", C), () => {
|
2758
|
+
c.removeEventListener("focus", w), c.removeEventListener("blur", C);
|
2759
|
+
};
|
2760
|
+
}, [r, T, v]), /* @__PURE__ */ p.jsx(
|
2761
|
+
ao,
|
2762
|
+
{
|
2763
|
+
ref: g,
|
2764
|
+
style: Object.assign({ color: s || d.colorText }, b, f),
|
2765
|
+
children: o
|
2766
|
+
}
|
2767
|
+
);
|
2768
|
+
}), oo = E(st)`
|
2769
|
+
::placeholder, &::placeholder {
|
2770
|
+
transition: color .4s;
|
2771
|
+
}
|
2772
|
+
|
2773
|
+
.no-placeholder, &.no-placeholder {
|
2774
|
+
&::placeholder, ::placeholder {
|
2775
|
+
color: transparent;
|
2776
|
+
}
|
2777
|
+
}
|
2778
|
+
`, wo = X((e, t) => {
|
2779
|
+
const { label: r, ...a } = e;
|
2780
|
+
return /* @__PURE__ */ p.jsx(
|
2781
|
+
oo,
|
2782
|
+
{
|
2783
|
+
ref: t,
|
2784
|
+
...a
|
2785
|
+
}
|
2786
|
+
);
|
2787
|
+
}), io = E(on)`
|
2788
|
+
width: min(100%, 480px);
|
2789
|
+
box-shadow: 0 3px 7px rgba(0,0,0,.2);
|
2790
|
+
padding: 1.5rem 1rem;
|
2791
|
+
margin-bottom: 10rem;
|
2792
|
+
|
2793
|
+
@media only screen and (max-width: 480px) {
|
2794
|
+
border-radius: 0;
|
2795
|
+
}
|
2796
|
+
|
2797
|
+
@media only screen and (max-height: 576px) {
|
2798
|
+
margin-bottom: 1.5rem;
|
2799
|
+
}
|
2800
|
+
`, ge = ({ children: e }) => /* @__PURE__ */ p.jsx(io, { className: "card-container", children: e });
|
2801
|
+
ge.Header = () => /* @__PURE__ */ p.jsxs(yr, { style: { display: "flex" }, children: [
|
2802
|
+
/* @__PURE__ */ p.jsx("img", { src: "/logo/logo-orange-black.svg", height: "24px", width: "auto" }),
|
2803
|
+
/* @__PURE__ */ p.jsx("img", { src: "/logo/web-fuse-text.svg", height: "12px", width: "auto" })
|
2804
|
+
] });
|
2805
|
+
ge.Title = (e) => /* @__PURE__ */ p.jsx(
|
2806
|
+
U.Title,
|
2807
|
+
{
|
2808
|
+
level: 2,
|
2809
|
+
...e,
|
2810
|
+
style: Object.assign({ marginTop: 4 }, e.style)
|
2811
|
+
}
|
2812
|
+
);
|
2813
|
+
ge.Subtitle = (e) => /* @__PURE__ */ p.jsx(
|
2814
|
+
U.Paragraph,
|
2815
|
+
{
|
2816
|
+
...e,
|
2817
|
+
style: Object.assign({
|
2818
|
+
marginTop: -18,
|
2819
|
+
marginBottom: 14,
|
2820
|
+
fontSize: "0.8125rem",
|
2821
|
+
lineHeight: "20px",
|
2822
|
+
fontWeight: 400
|
2823
|
+
}, e.style)
|
2824
|
+
}
|
2825
|
+
);
|
2826
|
+
const so = E.div`
|
2827
|
+
display: flex;
|
2828
|
+
justify-content: center;
|
2829
|
+
align-items: center;
|
2830
|
+
height: calc(100vh - 2 * 2rem);
|
2831
|
+
`, co = ({ description: e }) => e ? tn(e) ? e : /* @__PURE__ */ p.jsx(U.Text, { children: e }) : null, Eo = ({ error: e, title: t }) => {
|
2832
|
+
const r = [{
|
2833
|
+
key: "1",
|
2834
|
+
label: "Details",
|
2835
|
+
children: /* @__PURE__ */ p.jsx(U.Text, { type: "secondary", children: e.error_detail || "No additional details" })
|
2836
|
+
}];
|
2837
|
+
return /* @__PURE__ */ p.jsx(so, { children: /* @__PURE__ */ p.jsxs(ge, { children: [
|
2838
|
+
/* @__PURE__ */ p.jsx(ge.Header, {}),
|
2839
|
+
/* @__PURE__ */ p.jsxs(yr, { direction: "vertical", children: [
|
2840
|
+
/* @__PURE__ */ p.jsx(ge.Title, { children: t }),
|
2841
|
+
/* @__PURE__ */ p.jsx(U.Paragraph, { strong: !0, style: { marginBottom: 0 }, children: e.message }),
|
2842
|
+
/* @__PURE__ */ p.jsx(co, { description: e.error_description }),
|
2843
|
+
/* @__PURE__ */ p.jsx(ct, { onClick: () => window.history.back(), children: "Return" }),
|
2844
|
+
/* @__PURE__ */ p.jsx(sn, { items: r, ghost: !0, size: "small" })
|
2845
|
+
] })
|
2846
|
+
] }) });
|
2847
|
+
}, lo = E.div`
|
2848
|
+
background:
|
2849
|
+
linear-gradient(0deg, rgba(0,0,0,.2), rgba(0,0,0,.05)),
|
2850
|
+
radial-gradient(at 20% 30%, rgb(80 173 255 / 10%), transparent 55%),
|
2851
|
+
radial-gradient(at 83% 10%, rgb(221 216 74 / 13%), transparent 60%),
|
2852
|
+
radial-gradient(at 10% 80%, rgb(176 249 40 / 6%), transparent 40%),
|
2853
|
+
radial-gradient(at 90% 80%, rgb(48 95 151 / 14%), transparent 55%),
|
2854
|
+
radial-gradient(at 50% 45%, rgb(255 125 61 / 20%), transparent 60%);
|
2855
|
+
width: 100vw;
|
2856
|
+
height: 100vh;
|
2857
|
+
`, So = ({ children: e, width: t, height: r }) => {
|
2858
|
+
const { token: { colorBgContainer: a } } = B.useToken();
|
2859
|
+
return /* @__PURE__ */ p.jsx(lo, { style: { backgroundColor: a, width: t, height: r }, children: e });
|
2860
|
+
}, Co = (e, t) => {
|
2861
|
+
const r = B.darkAlgorithm(e, t);
|
2862
|
+
return r.colorPrimary = e.colorPrimary, r;
|
2863
|
+
};
|
2864
|
+
export {
|
2865
|
+
At as Button,
|
2866
|
+
no as CenteredButton,
|
2867
|
+
Ge as Collapse,
|
2868
|
+
ho as DarkCard,
|
2869
|
+
bo as ExtraSmallButton,
|
2870
|
+
xo as HoverLabel,
|
2871
|
+
wo as Input,
|
2872
|
+
mo as LightCard,
|
2873
|
+
ge as LoginContainer,
|
2874
|
+
Eo as LoginErrorBoundary,
|
2875
|
+
So as LoginPageBackground,
|
2876
|
+
$t as MainLayout,
|
2877
|
+
vo as Navbar,
|
2878
|
+
yo as RightButton,
|
2879
|
+
go as Selector,
|
2880
|
+
Co as wfDarkAlgorithm
|
2881
|
+
};
|
2882
|
+
//# sourceMappingURL=index.es.js.map
|