code7-leia 1.0.20 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.es.js +938 -938
- package/package.json +1 -1
- package/src/components/PersonasArea/index.tsx +17 -13
package/dist/index.es.js
CHANGED
|
@@ -21,11 +21,11 @@ function kc() {
|
|
|
21
21
|
$i = 1;
|
|
22
22
|
var e = qe, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
23
|
function o(s, c, u) {
|
|
24
|
-
var l,
|
|
25
|
-
u !== void 0 && (
|
|
26
|
-
for (l in c) r.call(c, l) && !a.hasOwnProperty(l) && (
|
|
27
|
-
if (s && s.defaultProps) for (l in c = s.defaultProps, c)
|
|
28
|
-
return { $$typeof: t, type: s, key:
|
|
24
|
+
var l, f = {}, y = null, w = null;
|
|
25
|
+
u !== void 0 && (y = "" + u), c.key !== void 0 && (y = "" + c.key), c.ref !== void 0 && (w = c.ref);
|
|
26
|
+
for (l in c) r.call(c, l) && !a.hasOwnProperty(l) && (f[l] = c[l]);
|
|
27
|
+
if (s && s.defaultProps) for (l in c = s.defaultProps, c) f[l] === void 0 && (f[l] = c[l]);
|
|
28
|
+
return { $$typeof: t, type: s, key: y, ref: w, props: f, _owner: i.current };
|
|
29
29
|
}
|
|
30
30
|
return Zt.Fragment = n, Zt.jsx = o, Zt.jsxs = o, Zt;
|
|
31
31
|
}
|
|
@@ -42,7 +42,7 @@ var en = {};
|
|
|
42
42
|
var qi;
|
|
43
43
|
function Pc() {
|
|
44
44
|
return qi || (qi = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
45
|
-
var e = qe, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"),
|
|
45
|
+
var e = qe, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), v = Symbol.iterator, g = "@@iterator";
|
|
46
46
|
function h(m) {
|
|
47
47
|
if (m === null || typeof m != "object")
|
|
48
48
|
return null;
|
|
@@ -52,36 +52,36 @@ function Pc() {
|
|
|
52
52
|
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
53
|
function T(m) {
|
|
54
54
|
{
|
|
55
|
-
for (var A = arguments.length,
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
for (var A = arguments.length, M = new Array(A > 1 ? A - 1 : 0), X = 1; X < A; X++)
|
|
56
|
+
M[X - 1] = arguments[X];
|
|
57
|
+
C("error", m, M);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function C(m, A, M) {
|
|
61
61
|
{
|
|
62
62
|
var X = x.ReactDebugCurrentFrame, le = X.getStackAddendum();
|
|
63
|
-
le !== "" && (A += "%s",
|
|
64
|
-
var xe =
|
|
63
|
+
le !== "" && (A += "%s", M = M.concat([le]));
|
|
64
|
+
var xe = M.map(function(oe) {
|
|
65
65
|
return String(oe);
|
|
66
66
|
});
|
|
67
67
|
xe.unshift("Warning: " + A), Function.prototype.apply.call(console[m], console, xe);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var b = !1, p = !1, k = !1, N = !1, _ = !1, q;
|
|
71
71
|
q = Symbol.for("react.module.reference");
|
|
72
72
|
function H(m) {
|
|
73
|
-
return !!(typeof m == "string" || typeof m == "function" || m === r || m === a || _ || m === i || m === u || m === l || N || m === w ||
|
|
73
|
+
return !!(typeof m == "string" || typeof m == "function" || m === r || m === a || _ || m === i || m === u || m === l || N || m === w || b || p || k || typeof m == "object" && m !== null && (m.$$typeof === y || m.$$typeof === f || m.$$typeof === o || m.$$typeof === s || m.$$typeof === c || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
77
|
m.$$typeof === q || m.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function U(m, A,
|
|
79
|
+
function U(m, A, M) {
|
|
80
80
|
var X = m.displayName;
|
|
81
81
|
if (X)
|
|
82
82
|
return X;
|
|
83
83
|
var le = A.displayName || A.name || "";
|
|
84
|
-
return le !== "" ?
|
|
84
|
+
return le !== "" ? M + "(" + le + ")" : M;
|
|
85
85
|
}
|
|
86
86
|
function V(m) {
|
|
87
87
|
return m.displayName || "Context";
|
|
@@ -113,14 +113,14 @@ function Pc() {
|
|
|
113
113
|
var A = m;
|
|
114
114
|
return V(A) + ".Consumer";
|
|
115
115
|
case o:
|
|
116
|
-
var
|
|
117
|
-
return V(
|
|
116
|
+
var M = m;
|
|
117
|
+
return V(M._context) + ".Provider";
|
|
118
118
|
case c:
|
|
119
119
|
return U(m, m.render, "ForwardRef");
|
|
120
|
-
case
|
|
120
|
+
case f:
|
|
121
121
|
var X = m.displayName || null;
|
|
122
122
|
return X !== null ? X : R(m.type) || "Memo";
|
|
123
|
-
case
|
|
123
|
+
case y: {
|
|
124
124
|
var le = m, xe = le._payload, oe = le._init;
|
|
125
125
|
try {
|
|
126
126
|
return R(oe(xe));
|
|
@@ -131,18 +131,18 @@ function Pc() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
135
|
-
function
|
|
134
|
+
var z = Object.assign, ee = 0, K, ce, re, ae, O, P, D;
|
|
135
|
+
function j() {
|
|
136
136
|
}
|
|
137
|
-
|
|
138
|
-
function
|
|
137
|
+
j.__reactDisabledLog = !0;
|
|
138
|
+
function $() {
|
|
139
139
|
{
|
|
140
140
|
if (ee === 0) {
|
|
141
|
-
K = console.log, ce = console.info, re = console.warn, ae = console.error, O = console.group, P = console.groupCollapsed,
|
|
141
|
+
K = console.log, ce = console.info, re = console.warn, ae = console.error, O = console.group, P = console.groupCollapsed, D = console.groupEnd;
|
|
142
142
|
var m = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
145
|
-
value:
|
|
145
|
+
value: j,
|
|
146
146
|
writable: !0
|
|
147
147
|
};
|
|
148
148
|
Object.defineProperties(console, {
|
|
@@ -167,26 +167,26 @@ function Pc() {
|
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log:
|
|
170
|
+
log: z({}, m, {
|
|
171
171
|
value: K
|
|
172
172
|
}),
|
|
173
|
-
info:
|
|
173
|
+
info: z({}, m, {
|
|
174
174
|
value: ce
|
|
175
175
|
}),
|
|
176
|
-
warn:
|
|
176
|
+
warn: z({}, m, {
|
|
177
177
|
value: re
|
|
178
178
|
}),
|
|
179
|
-
error:
|
|
179
|
+
error: z({}, m, {
|
|
180
180
|
value: ae
|
|
181
181
|
}),
|
|
182
|
-
group:
|
|
182
|
+
group: z({}, m, {
|
|
183
183
|
value: O
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed:
|
|
185
|
+
groupCollapsed: z({}, m, {
|
|
186
186
|
value: P
|
|
187
187
|
}),
|
|
188
|
-
groupEnd:
|
|
189
|
-
value:
|
|
188
|
+
groupEnd: z({}, m, {
|
|
189
|
+
value: D
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
@@ -194,7 +194,7 @@ function Pc() {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
var W = x.ReactCurrentDispatcher, G;
|
|
197
|
-
function Z(m, A,
|
|
197
|
+
function Z(m, A, M) {
|
|
198
198
|
{
|
|
199
199
|
if (G === void 0)
|
|
200
200
|
try {
|
|
@@ -209,23 +209,23 @@ function Pc() {
|
|
|
209
209
|
}
|
|
210
210
|
var ne = !1, Q;
|
|
211
211
|
{
|
|
212
|
-
var
|
|
213
|
-
Q = new
|
|
212
|
+
var I = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
+
Q = new I();
|
|
214
214
|
}
|
|
215
215
|
function S(m, A) {
|
|
216
216
|
if (!m || ne)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
219
|
+
var M = Q.get(m);
|
|
220
|
+
if (M !== void 0)
|
|
221
|
+
return M;
|
|
222
222
|
}
|
|
223
223
|
var X;
|
|
224
224
|
ne = !0;
|
|
225
225
|
var le = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
227
|
var xe;
|
|
228
|
-
xe = W.current, W.current = null,
|
|
228
|
+
xe = W.current, W.current = null, $();
|
|
229
229
|
try {
|
|
230
230
|
if (A) {
|
|
231
231
|
var oe = function() {
|
|
@@ -283,14 +283,14 @@ function Pc() {
|
|
|
283
283
|
var Pt = m ? m.displayName || m.name : "", zi = Pt ? Z(Pt) : "";
|
|
284
284
|
return typeof m == "function" && Q.set(m, zi), zi;
|
|
285
285
|
}
|
|
286
|
-
function Ee(m, A,
|
|
286
|
+
function Ee(m, A, M) {
|
|
287
287
|
return S(m, !1);
|
|
288
288
|
}
|
|
289
289
|
function ke(m) {
|
|
290
290
|
var A = m.prototype;
|
|
291
291
|
return !!(A && A.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function Ve(m, A,
|
|
293
|
+
function Ve(m, A, M) {
|
|
294
294
|
if (m == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof m == "function")
|
|
@@ -307,12 +307,12 @@ function Pc() {
|
|
|
307
307
|
switch (m.$$typeof) {
|
|
308
308
|
case c:
|
|
309
309
|
return Ee(m.render);
|
|
310
|
-
case
|
|
311
|
-
return Ve(m.type, A,
|
|
312
|
-
case
|
|
310
|
+
case f:
|
|
311
|
+
return Ve(m.type, A, M);
|
|
312
|
+
case y: {
|
|
313
313
|
var X = m, le = X._payload, xe = X._init;
|
|
314
314
|
try {
|
|
315
|
-
return Ve(xe(le), A,
|
|
315
|
+
return Ve(xe(le), A, M);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -322,12 +322,12 @@ function Pc() {
|
|
|
322
322
|
var vt = Object.prototype.hasOwnProperty, rt = {}, jt = x.ReactDebugCurrentFrame;
|
|
323
323
|
function it(m) {
|
|
324
324
|
if (m) {
|
|
325
|
-
var A = m._owner,
|
|
326
|
-
jt.setExtraStackFrame(
|
|
325
|
+
var A = m._owner, M = Ve(m.type, m._source, A ? A.type : null);
|
|
326
|
+
jt.setExtraStackFrame(M);
|
|
327
327
|
} else
|
|
328
328
|
jt.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function Rt(m, A,
|
|
330
|
+
function Rt(m, A, M, X, le) {
|
|
331
331
|
{
|
|
332
332
|
var xe = Function.call.bind(vt);
|
|
333
333
|
for (var oe in m)
|
|
@@ -335,14 +335,14 @@ function Pc() {
|
|
|
335
335
|
var ie = void 0;
|
|
336
336
|
try {
|
|
337
337
|
if (typeof m[oe] != "function") {
|
|
338
|
-
var Ie = Error((X || "React class") + ": " +
|
|
338
|
+
var Ie = Error((X || "React class") + ": " + M + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof m[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw Ie.name = "Invariant Violation", Ie;
|
|
340
340
|
}
|
|
341
|
-
ie = m[oe](A, oe, X,
|
|
341
|
+
ie = m[oe](A, oe, X, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (_e) {
|
|
343
343
|
ie = _e;
|
|
344
344
|
}
|
|
345
|
-
ie && !(ie instanceof Error) && (it(le), T("%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",
|
|
345
|
+
ie && !(ie instanceof Error) && (it(le), T("%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", M, oe, typeof ie), it(null)), ie instanceof Error && !(ie.message in rt) && (rt[ie.message] = !0, it(le), T("Failed %s type: %s", M, ie.message), it(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -352,11 +352,11 @@ function Pc() {
|
|
|
352
352
|
}
|
|
353
353
|
function wr(m) {
|
|
354
354
|
{
|
|
355
|
-
var A = typeof Symbol == "function" && Symbol.toStringTag,
|
|
356
|
-
return
|
|
355
|
+
var A = typeof Symbol == "function" && Symbol.toStringTag, M = A && m[Symbol.toStringTag] || m.constructor.name || "Object";
|
|
356
|
+
return M;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function L(m) {
|
|
360
360
|
try {
|
|
361
361
|
return Y(m), !1;
|
|
362
362
|
} catch {
|
|
@@ -367,7 +367,7 @@ function Pc() {
|
|
|
367
367
|
return "" + m;
|
|
368
368
|
}
|
|
369
369
|
function we(m) {
|
|
370
|
-
if (
|
|
370
|
+
if (L(m))
|
|
371
371
|
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wr(m)), Y(m);
|
|
372
372
|
}
|
|
373
373
|
var Te = x.ReactCurrentOwner, Fe = {
|
|
@@ -397,34 +397,34 @@ function Pc() {
|
|
|
397
397
|
}
|
|
398
398
|
function At(m, A) {
|
|
399
399
|
{
|
|
400
|
-
var
|
|
400
|
+
var M = function() {
|
|
401
401
|
pt || (pt = !0, T("%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)", A));
|
|
402
402
|
};
|
|
403
|
-
|
|
404
|
-
get:
|
|
403
|
+
M.isReactWarning = !0, Object.defineProperty(m, "key", {
|
|
404
|
+
get: M,
|
|
405
405
|
configurable: !0
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
function Jt(m, A) {
|
|
410
410
|
{
|
|
411
|
-
var
|
|
411
|
+
var M = function() {
|
|
412
412
|
at || (at = !0, T("%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)", A));
|
|
413
413
|
};
|
|
414
|
-
|
|
415
|
-
get:
|
|
414
|
+
M.isReactWarning = !0, Object.defineProperty(m, "ref", {
|
|
415
|
+
get: M,
|
|
416
416
|
configurable: !0
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var Qt = function(m, A,
|
|
420
|
+
var Qt = function(m, A, M, X, le, xe, oe) {
|
|
421
421
|
var ie = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: t,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
425
425
|
type: m,
|
|
426
426
|
key: A,
|
|
427
|
-
ref:
|
|
427
|
+
ref: M,
|
|
428
428
|
props: oe,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
430
|
_owner: xe
|
|
@@ -446,10 +446,10 @@ function Pc() {
|
|
|
446
446
|
value: le
|
|
447
447
|
}), Object.freeze && (Object.freeze(ie.props), Object.freeze(ie)), ie;
|
|
448
448
|
};
|
|
449
|
-
function Xt(m, A,
|
|
449
|
+
function Xt(m, A, M, X, le) {
|
|
450
450
|
{
|
|
451
451
|
var xe, oe = {}, ie = null, Ie = null;
|
|
452
|
-
|
|
452
|
+
M !== void 0 && (we(M), ie = "" + M), Kt(A) && (we(A.key), ie = "" + A.key), Yt(A) && (Ie = A.ref, Gt(A, le));
|
|
453
453
|
for (xe in A)
|
|
454
454
|
vt.call(A, xe) && !Fe.hasOwnProperty(xe) && (oe[xe] = A[xe]);
|
|
455
455
|
if (m && m.defaultProps) {
|
|
@@ -467,8 +467,8 @@ function Pc() {
|
|
|
467
467
|
var ht = x.ReactCurrentOwner, _n = x.ReactDebugCurrentFrame;
|
|
468
468
|
function kt(m) {
|
|
469
469
|
if (m) {
|
|
470
|
-
var A = m._owner,
|
|
471
|
-
_n.setExtraStackFrame(
|
|
470
|
+
var A = m._owner, M = Ve(m.type, m._source, A ? A.type : null);
|
|
471
|
+
_n.setExtraStackFrame(M);
|
|
472
472
|
} else
|
|
473
473
|
_n.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
@@ -497,10 +497,10 @@ Check the render method of \`` + m + "`.";
|
|
|
497
497
|
{
|
|
498
498
|
var A = Ni();
|
|
499
499
|
if (!A) {
|
|
500
|
-
var
|
|
501
|
-
|
|
500
|
+
var M = typeof m == "string" ? m : m.displayName || m.name;
|
|
501
|
+
M && (A = `
|
|
502
502
|
|
|
503
|
-
Check the top-level render call using <` +
|
|
503
|
+
Check the top-level render call using <` + M + ">.");
|
|
504
504
|
}
|
|
505
505
|
return A;
|
|
506
506
|
}
|
|
@@ -510,12 +510,12 @@ Check the top-level render call using <` + z + ">.");
|
|
|
510
510
|
if (!m._store || m._store.validated || m.key != null)
|
|
511
511
|
return;
|
|
512
512
|
m._store.validated = !0;
|
|
513
|
-
var
|
|
514
|
-
if (Di[
|
|
513
|
+
var M = xc(A);
|
|
514
|
+
if (Di[M])
|
|
515
515
|
return;
|
|
516
|
-
Di[
|
|
516
|
+
Di[M] = !0;
|
|
517
517
|
var X = "";
|
|
518
|
-
m && m._owner && m._owner !== ht.current && (X = " It was passed a child from " + R(m._owner.type) + "."), kt(m), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
518
|
+
m && m._owner && m._owner !== ht.current && (X = " It was passed a child from " + R(m._owner.type) + "."), kt(m), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', M, X), kt(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
function Ii(m, A) {
|
|
@@ -523,8 +523,8 @@ Check the top-level render call using <` + z + ">.");
|
|
|
523
523
|
if (typeof m != "object")
|
|
524
524
|
return;
|
|
525
525
|
if (Wt(m))
|
|
526
|
-
for (var
|
|
527
|
-
var X = m[
|
|
526
|
+
for (var M = 0; M < m.length; M++) {
|
|
527
|
+
var X = m[M];
|
|
528
528
|
Tr(X) && Fi(X, A);
|
|
529
529
|
}
|
|
530
530
|
else if (Tr(m))
|
|
@@ -542,18 +542,18 @@ Check the top-level render call using <` + z + ">.");
|
|
|
542
542
|
var A = m.type;
|
|
543
543
|
if (A == null || typeof A == "string")
|
|
544
544
|
return;
|
|
545
|
-
var
|
|
545
|
+
var M;
|
|
546
546
|
if (typeof A == "function")
|
|
547
|
-
|
|
547
|
+
M = A.propTypes;
|
|
548
548
|
else if (typeof A == "object" && (A.$$typeof === c || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
A.$$typeof ===
|
|
551
|
-
|
|
550
|
+
A.$$typeof === f))
|
|
551
|
+
M = A.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
|
-
if (
|
|
554
|
+
if (M) {
|
|
555
555
|
var X = R(A);
|
|
556
|
-
Rt(
|
|
556
|
+
Rt(M, m.props, "prop", X, m);
|
|
557
557
|
} else if (A.PropTypes !== void 0 && !Sr) {
|
|
558
558
|
Sr = !0;
|
|
559
559
|
var le = R(A);
|
|
@@ -564,8 +564,8 @@ Check the top-level render call using <` + z + ">.");
|
|
|
564
564
|
}
|
|
565
565
|
function bc(m) {
|
|
566
566
|
{
|
|
567
|
-
for (var A = Object.keys(m.props),
|
|
568
|
-
var X = A[
|
|
567
|
+
for (var A = Object.keys(m.props), M = 0; M < A.length; M++) {
|
|
568
|
+
var X = A[M];
|
|
569
569
|
if (X !== "children" && X !== "key") {
|
|
570
570
|
kt(m), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", X), kt(null);
|
|
571
571
|
break;
|
|
@@ -574,7 +574,7 @@ Check the top-level render call using <` + z + ">.");
|
|
|
574
574
|
m.ref !== null && (kt(m), T("Invalid attribute `ref` supplied to `React.Fragment`."), kt(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
function Li(m, A,
|
|
577
|
+
function Li(m, A, M, X, le, xe) {
|
|
578
578
|
{
|
|
579
579
|
var oe = H(m);
|
|
580
580
|
if (!oe) {
|
|
@@ -585,7 +585,7 @@ Check the top-level render call using <` + z + ">.");
|
|
|
585
585
|
var _e;
|
|
586
586
|
m === null ? _e = "null" : Wt(m) ? _e = "array" : m !== void 0 && m.$$typeof === t ? (_e = "<" + (R(m.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : _e = typeof m, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _e, ie);
|
|
587
587
|
}
|
|
588
|
-
var je = Xt(m, A,
|
|
588
|
+
var je = Xt(m, A, M, le, xe);
|
|
589
589
|
if (je == null)
|
|
590
590
|
return je;
|
|
591
591
|
if (oe) {
|
|
@@ -604,11 +604,11 @@ Check the top-level render call using <` + z + ">.");
|
|
|
604
604
|
return m === r ? bc(je) : yc(je), je;
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
function Ec(m, A,
|
|
608
|
-
return Li(m, A,
|
|
607
|
+
function Ec(m, A, M) {
|
|
608
|
+
return Li(m, A, M, !0);
|
|
609
609
|
}
|
|
610
|
-
function wc(m, A,
|
|
611
|
-
return Li(m, A,
|
|
610
|
+
function wc(m, A, M) {
|
|
611
|
+
return Li(m, A, M, !1);
|
|
612
612
|
}
|
|
613
613
|
var Sc = wc, Tc = Ec;
|
|
614
614
|
en.Fragment = r, en.jsx = Sc, en.jsxs = Tc;
|
|
@@ -631,28 +631,28 @@ var Bi;
|
|
|
631
631
|
function Dc() {
|
|
632
632
|
if (Bi) return ue;
|
|
633
633
|
Bi = 1;
|
|
634
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112,
|
|
635
|
-
function
|
|
636
|
-
if (typeof
|
|
637
|
-
var k =
|
|
634
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
635
|
+
function C(p) {
|
|
636
|
+
if (typeof p == "object" && p !== null) {
|
|
637
|
+
var k = p.$$typeof;
|
|
638
638
|
switch (k) {
|
|
639
639
|
case t:
|
|
640
|
-
switch (
|
|
640
|
+
switch (p = p.type, p) {
|
|
641
641
|
case c:
|
|
642
642
|
case u:
|
|
643
643
|
case r:
|
|
644
644
|
case a:
|
|
645
645
|
case i:
|
|
646
|
-
case
|
|
647
|
-
return
|
|
646
|
+
case f:
|
|
647
|
+
return p;
|
|
648
648
|
default:
|
|
649
|
-
switch (
|
|
649
|
+
switch (p = p && p.$$typeof, p) {
|
|
650
650
|
case s:
|
|
651
651
|
case l:
|
|
652
652
|
case v:
|
|
653
653
|
case w:
|
|
654
654
|
case o:
|
|
655
|
-
return
|
|
655
|
+
return p;
|
|
656
656
|
default:
|
|
657
657
|
return k;
|
|
658
658
|
}
|
|
@@ -662,36 +662,36 @@ function Dc() {
|
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
return
|
|
667
|
-
}
|
|
668
|
-
return ue.AsyncMode = c, ue.ConcurrentMode = u, ue.ContextConsumer = s, ue.ContextProvider = o, ue.Element = t, ue.ForwardRef = l, ue.Fragment = r, ue.Lazy = v, ue.Memo = w, ue.Portal = n, ue.Profiler = a, ue.StrictMode = i, ue.Suspense =
|
|
669
|
-
return
|
|
670
|
-
}, ue.isConcurrentMode =
|
|
671
|
-
return
|
|
672
|
-
}, ue.isContextProvider = function(
|
|
673
|
-
return
|
|
674
|
-
}, ue.isElement = function(
|
|
675
|
-
return typeof
|
|
676
|
-
}, ue.isForwardRef = function(
|
|
677
|
-
return
|
|
678
|
-
}, ue.isFragment = function(
|
|
679
|
-
return
|
|
680
|
-
}, ue.isLazy = function(
|
|
681
|
-
return
|
|
682
|
-
}, ue.isMemo = function(
|
|
683
|
-
return
|
|
684
|
-
}, ue.isPortal = function(
|
|
685
|
-
return
|
|
686
|
-
}, ue.isProfiler = function(
|
|
687
|
-
return
|
|
688
|
-
}, ue.isStrictMode = function(
|
|
689
|
-
return
|
|
690
|
-
}, ue.isSuspense = function(
|
|
691
|
-
return
|
|
692
|
-
}, ue.isValidElementType = function(
|
|
693
|
-
return typeof
|
|
694
|
-
}, ue.typeOf =
|
|
665
|
+
function b(p) {
|
|
666
|
+
return C(p) === u;
|
|
667
|
+
}
|
|
668
|
+
return ue.AsyncMode = c, ue.ConcurrentMode = u, ue.ContextConsumer = s, ue.ContextProvider = o, ue.Element = t, ue.ForwardRef = l, ue.Fragment = r, ue.Lazy = v, ue.Memo = w, ue.Portal = n, ue.Profiler = a, ue.StrictMode = i, ue.Suspense = f, ue.isAsyncMode = function(p) {
|
|
669
|
+
return b(p) || C(p) === c;
|
|
670
|
+
}, ue.isConcurrentMode = b, ue.isContextConsumer = function(p) {
|
|
671
|
+
return C(p) === s;
|
|
672
|
+
}, ue.isContextProvider = function(p) {
|
|
673
|
+
return C(p) === o;
|
|
674
|
+
}, ue.isElement = function(p) {
|
|
675
|
+
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
676
|
+
}, ue.isForwardRef = function(p) {
|
|
677
|
+
return C(p) === l;
|
|
678
|
+
}, ue.isFragment = function(p) {
|
|
679
|
+
return C(p) === r;
|
|
680
|
+
}, ue.isLazy = function(p) {
|
|
681
|
+
return C(p) === v;
|
|
682
|
+
}, ue.isMemo = function(p) {
|
|
683
|
+
return C(p) === w;
|
|
684
|
+
}, ue.isPortal = function(p) {
|
|
685
|
+
return C(p) === n;
|
|
686
|
+
}, ue.isProfiler = function(p) {
|
|
687
|
+
return C(p) === a;
|
|
688
|
+
}, ue.isStrictMode = function(p) {
|
|
689
|
+
return C(p) === i;
|
|
690
|
+
}, ue.isSuspense = function(p) {
|
|
691
|
+
return C(p) === f;
|
|
692
|
+
}, ue.isValidElementType = function(p) {
|
|
693
|
+
return typeof p == "string" || typeof p == "function" || p === r || p === u || p === a || p === i || p === f || p === y || typeof p == "object" && p !== null && (p.$$typeof === v || p.$$typeof === w || p.$$typeof === o || p.$$typeof === s || p.$$typeof === l || p.$$typeof === h || p.$$typeof === x || p.$$typeof === T || p.$$typeof === g);
|
|
694
|
+
}, ue.typeOf = C, ue;
|
|
695
695
|
}
|
|
696
696
|
var pe = {};
|
|
697
697
|
/** @license React v16.13.1
|
|
@@ -705,12 +705,12 @@ var pe = {};
|
|
|
705
705
|
var Hi;
|
|
706
706
|
function Fc() {
|
|
707
707
|
return Hi || (Hi = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
708
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112,
|
|
709
|
-
function
|
|
708
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
709
|
+
function C(S) {
|
|
710
710
|
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
711
|
-
S === r || S === u || S === a || S === i || S ===
|
|
711
|
+
S === r || S === u || S === a || S === i || S === f || S === y || typeof S == "object" && S !== null && (S.$$typeof === v || S.$$typeof === w || S.$$typeof === o || S.$$typeof === s || S.$$typeof === l || S.$$typeof === h || S.$$typeof === x || S.$$typeof === T || S.$$typeof === g);
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function b(S) {
|
|
714
714
|
if (typeof S == "object" && S !== null) {
|
|
715
715
|
var Ee = S.$$typeof;
|
|
716
716
|
switch (Ee) {
|
|
@@ -722,7 +722,7 @@ function Fc() {
|
|
|
722
722
|
case r:
|
|
723
723
|
case a:
|
|
724
724
|
case i:
|
|
725
|
-
case
|
|
725
|
+
case f:
|
|
726
726
|
return ke;
|
|
727
727
|
default:
|
|
728
728
|
var Ve = ke && ke.$$typeof;
|
|
@@ -742,47 +742,47 @@ function Fc() {
|
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
var
|
|
745
|
+
var p = c, k = u, N = s, _ = o, q = t, H = l, U = r, V = v, R = w, z = n, ee = a, K = i, ce = f, re = !1;
|
|
746
746
|
function ae(S) {
|
|
747
|
-
return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(S) ||
|
|
747
|
+
return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(S) || b(S) === c;
|
|
748
748
|
}
|
|
749
749
|
function O(S) {
|
|
750
|
-
return
|
|
750
|
+
return b(S) === u;
|
|
751
751
|
}
|
|
752
752
|
function P(S) {
|
|
753
|
-
return
|
|
753
|
+
return b(S) === s;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
return
|
|
755
|
+
function D(S) {
|
|
756
|
+
return b(S) === o;
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function j(S) {
|
|
759
759
|
return typeof S == "object" && S !== null && S.$$typeof === t;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
return
|
|
761
|
+
function $(S) {
|
|
762
|
+
return b(S) === l;
|
|
763
763
|
}
|
|
764
764
|
function J(S) {
|
|
765
|
-
return
|
|
765
|
+
return b(S) === r;
|
|
766
766
|
}
|
|
767
767
|
function W(S) {
|
|
768
|
-
return
|
|
768
|
+
return b(S) === v;
|
|
769
769
|
}
|
|
770
770
|
function G(S) {
|
|
771
|
-
return
|
|
771
|
+
return b(S) === w;
|
|
772
772
|
}
|
|
773
773
|
function Z(S) {
|
|
774
|
-
return
|
|
774
|
+
return b(S) === n;
|
|
775
775
|
}
|
|
776
776
|
function ne(S) {
|
|
777
|
-
return
|
|
777
|
+
return b(S) === a;
|
|
778
778
|
}
|
|
779
779
|
function Q(S) {
|
|
780
|
-
return
|
|
780
|
+
return b(S) === i;
|
|
781
781
|
}
|
|
782
|
-
function
|
|
783
|
-
return
|
|
782
|
+
function I(S) {
|
|
783
|
+
return b(S) === f;
|
|
784
784
|
}
|
|
785
|
-
pe.AsyncMode =
|
|
785
|
+
pe.AsyncMode = p, pe.ConcurrentMode = k, pe.ContextConsumer = N, pe.ContextProvider = _, pe.Element = q, pe.ForwardRef = H, pe.Fragment = U, pe.Lazy = V, pe.Memo = R, pe.Portal = z, pe.Profiler = ee, pe.StrictMode = K, pe.Suspense = ce, pe.isAsyncMode = ae, pe.isConcurrentMode = O, pe.isContextConsumer = P, pe.isContextProvider = D, pe.isElement = j, pe.isForwardRef = $, pe.isFragment = J, pe.isLazy = W, pe.isMemo = G, pe.isPortal = Z, pe.isProfiler = ne, pe.isStrictMode = Q, pe.isSuspense = I, pe.isValidElementType = C, pe.typeOf = b;
|
|
786
786
|
})()), pe;
|
|
787
787
|
}
|
|
788
788
|
var Vi;
|
|
@@ -829,12 +829,12 @@ function Ic() {
|
|
|
829
829
|
return _r = i() ? Object.assign : function(a, o) {
|
|
830
830
|
for (var s, c = r(a), u, l = 1; l < arguments.length; l++) {
|
|
831
831
|
s = Object(arguments[l]);
|
|
832
|
-
for (var
|
|
833
|
-
t.call(s,
|
|
832
|
+
for (var f in s)
|
|
833
|
+
t.call(s, f) && (c[f] = s[f]);
|
|
834
834
|
if (e) {
|
|
835
835
|
u = e(s);
|
|
836
|
-
for (var
|
|
837
|
-
n.call(s, u[
|
|
836
|
+
for (var y = 0; y < u.length; y++)
|
|
837
|
+
n.call(s, u[y]) && (c[u[y]] = s[u[y]]);
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
return c;
|
|
@@ -872,25 +872,25 @@ function Lc() {
|
|
|
872
872
|
if (process.env.NODE_ENV !== "production") {
|
|
873
873
|
for (var l in a)
|
|
874
874
|
if (r(a, l)) {
|
|
875
|
-
var
|
|
875
|
+
var f;
|
|
876
876
|
try {
|
|
877
877
|
if (typeof a[l] != "function") {
|
|
878
|
-
var
|
|
878
|
+
var y = Error(
|
|
879
879
|
(c || "React class") + ": " + s + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
880
880
|
);
|
|
881
|
-
throw
|
|
881
|
+
throw y.name = "Invariant Violation", y;
|
|
882
882
|
}
|
|
883
|
-
|
|
883
|
+
f = a[l](o, l, c, s, null, t);
|
|
884
884
|
} catch (v) {
|
|
885
|
-
|
|
885
|
+
f = v;
|
|
886
886
|
}
|
|
887
|
-
if (
|
|
888
|
-
(c || "React class") + ": type specification of " + s + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
889
|
-
),
|
|
890
|
-
n[
|
|
887
|
+
if (f && !(f instanceof Error) && e(
|
|
888
|
+
(c || "React class") + ": type specification of " + s + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
889
|
+
), f instanceof Error && !(f.message in n)) {
|
|
890
|
+
n[f.message] = !0;
|
|
891
891
|
var w = u ? u() : "";
|
|
892
892
|
e(
|
|
893
|
-
"Failed " + s + " type: " +
|
|
893
|
+
"Failed " + s + " type: " + f.message + (w ?? "")
|
|
894
894
|
);
|
|
895
895
|
}
|
|
896
896
|
}
|
|
@@ -919,12 +919,12 @@ function zc() {
|
|
|
919
919
|
}
|
|
920
920
|
return Rr = function(s, c) {
|
|
921
921
|
var u = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
|
922
|
-
function
|
|
922
|
+
function f(O) {
|
|
923
923
|
var P = O && (u && O[u] || O[l]);
|
|
924
924
|
if (typeof P == "function")
|
|
925
925
|
return P;
|
|
926
926
|
}
|
|
927
|
-
var
|
|
927
|
+
var y = "<<anonymous>>", w = {
|
|
928
928
|
array: x("array"),
|
|
929
929
|
bigint: x("bigint"),
|
|
930
930
|
bool: x("boolean"),
|
|
@@ -934,9 +934,9 @@ function zc() {
|
|
|
934
934
|
string: x("string"),
|
|
935
935
|
symbol: x("symbol"),
|
|
936
936
|
any: T(),
|
|
937
|
-
arrayOf:
|
|
938
|
-
element:
|
|
939
|
-
elementType:
|
|
937
|
+
arrayOf: C,
|
|
938
|
+
element: b(),
|
|
939
|
+
elementType: p(),
|
|
940
940
|
instanceOf: k,
|
|
941
941
|
node: H(),
|
|
942
942
|
objectOf: _,
|
|
@@ -954,9 +954,9 @@ function zc() {
|
|
|
954
954
|
g.prototype = Error.prototype;
|
|
955
955
|
function h(O) {
|
|
956
956
|
if (process.env.NODE_ENV !== "production")
|
|
957
|
-
var P = {},
|
|
958
|
-
function
|
|
959
|
-
if (Z = Z ||
|
|
957
|
+
var P = {}, D = 0;
|
|
958
|
+
function j(J, W, G, Z, ne, Q, I) {
|
|
959
|
+
if (Z = Z || y, Q = Q || G, I !== n) {
|
|
960
960
|
if (c) {
|
|
961
961
|
var S = new Error(
|
|
962
962
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -965,23 +965,23 @@ function zc() {
|
|
|
965
965
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
966
966
|
var Ee = Z + ":" + G;
|
|
967
967
|
!P[Ee] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
968
|
-
|
|
968
|
+
D < 3 && (a(
|
|
969
969
|
"You are manually calling a React.PropTypes validation function for the `" + Q + "` prop on `" + Z + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
970
|
-
), P[Ee] = !0,
|
|
970
|
+
), P[Ee] = !0, D++);
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
973
|
return W[G] == null ? J ? W[G] === null ? new g("The " + ne + " `" + Q + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new g("The " + ne + " `" + Q + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : O(W, G, Z, ne, Q);
|
|
974
974
|
}
|
|
975
|
-
var
|
|
976
|
-
return
|
|
975
|
+
var $ = j.bind(null, !1);
|
|
976
|
+
return $.isRequired = j.bind(null, !0), $;
|
|
977
977
|
}
|
|
978
978
|
function x(O) {
|
|
979
|
-
function P(
|
|
980
|
-
var Z =
|
|
979
|
+
function P(D, j, $, J, W, G) {
|
|
980
|
+
var Z = D[j], ne = K(Z);
|
|
981
981
|
if (ne !== O) {
|
|
982
982
|
var Q = ce(Z);
|
|
983
983
|
return new g(
|
|
984
|
-
"Invalid " + J + " `" + W + "` of type " + ("`" + Q + "` supplied to `" +
|
|
984
|
+
"Invalid " + J + " `" + W + "` of type " + ("`" + Q + "` supplied to `" + $ + "`, expected ") + ("`" + O + "`."),
|
|
985
985
|
{ expectedType: O }
|
|
986
986
|
);
|
|
987
987
|
}
|
|
@@ -992,17 +992,17 @@ function zc() {
|
|
|
992
992
|
function T() {
|
|
993
993
|
return h(o);
|
|
994
994
|
}
|
|
995
|
-
function
|
|
996
|
-
function P(
|
|
995
|
+
function C(O) {
|
|
996
|
+
function P(D, j, $, J, W) {
|
|
997
997
|
if (typeof O != "function")
|
|
998
|
-
return new g("Property `" + W + "` of component `" +
|
|
999
|
-
var G =
|
|
998
|
+
return new g("Property `" + W + "` of component `" + $ + "` has invalid PropType notation inside arrayOf.");
|
|
999
|
+
var G = D[j];
|
|
1000
1000
|
if (!Array.isArray(G)) {
|
|
1001
1001
|
var Z = K(G);
|
|
1002
|
-
return new g("Invalid " + J + " `" + W + "` of type " + ("`" + Z + "` supplied to `" +
|
|
1002
|
+
return new g("Invalid " + J + " `" + W + "` of type " + ("`" + Z + "` supplied to `" + $ + "`, expected an array."));
|
|
1003
1003
|
}
|
|
1004
1004
|
for (var ne = 0; ne < G.length; ne++) {
|
|
1005
|
-
var Q = O(G, ne,
|
|
1005
|
+
var Q = O(G, ne, $, J, W + "[" + ne + "]", n);
|
|
1006
1006
|
if (Q instanceof Error)
|
|
1007
1007
|
return Q;
|
|
1008
1008
|
}
|
|
@@ -1010,33 +1010,33 @@ function zc() {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
return h(P);
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1014
|
-
function O(P,
|
|
1015
|
-
var W = P[
|
|
1013
|
+
function b() {
|
|
1014
|
+
function O(P, D, j, $, J) {
|
|
1015
|
+
var W = P[D];
|
|
1016
1016
|
if (!s(W)) {
|
|
1017
1017
|
var G = K(W);
|
|
1018
|
-
return new g("Invalid " +
|
|
1018
|
+
return new g("Invalid " + $ + " `" + J + "` of type " + ("`" + G + "` supplied to `" + j + "`, expected a single ReactElement."));
|
|
1019
1019
|
}
|
|
1020
1020
|
return null;
|
|
1021
1021
|
}
|
|
1022
1022
|
return h(O);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
function O(P,
|
|
1026
|
-
var W = P[
|
|
1024
|
+
function p() {
|
|
1025
|
+
function O(P, D, j, $, J) {
|
|
1026
|
+
var W = P[D];
|
|
1027
1027
|
if (!e.isValidElementType(W)) {
|
|
1028
1028
|
var G = K(W);
|
|
1029
|
-
return new g("Invalid " +
|
|
1029
|
+
return new g("Invalid " + $ + " `" + J + "` of type " + ("`" + G + "` supplied to `" + j + "`, expected a single ReactElement type."));
|
|
1030
1030
|
}
|
|
1031
1031
|
return null;
|
|
1032
1032
|
}
|
|
1033
1033
|
return h(O);
|
|
1034
1034
|
}
|
|
1035
1035
|
function k(O) {
|
|
1036
|
-
function P(
|
|
1037
|
-
if (!(
|
|
1038
|
-
var G = O.name ||
|
|
1039
|
-
return new g("Invalid " + J + " `" + W + "` of type " + ("`" + Z + "` supplied to `" +
|
|
1036
|
+
function P(D, j, $, J, W) {
|
|
1037
|
+
if (!(D[j] instanceof O)) {
|
|
1038
|
+
var G = O.name || y, Z = ae(D[j]);
|
|
1039
|
+
return new g("Invalid " + J + " `" + W + "` of type " + ("`" + Z + "` supplied to `" + $ + "`, expected ") + ("instance of `" + G + "`."));
|
|
1040
1040
|
}
|
|
1041
1041
|
return null;
|
|
1042
1042
|
}
|
|
@@ -1047,28 +1047,28 @@ function zc() {
|
|
|
1047
1047
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1048
1048
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1049
1049
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
1050
|
-
function P(
|
|
1051
|
-
for (var G =
|
|
1050
|
+
function P(D, j, $, J, W) {
|
|
1051
|
+
for (var G = D[j], Z = 0; Z < O.length; Z++)
|
|
1052
1052
|
if (v(G, O[Z]))
|
|
1053
1053
|
return null;
|
|
1054
|
-
var ne = JSON.stringify(O, function(
|
|
1054
|
+
var ne = JSON.stringify(O, function(I, S) {
|
|
1055
1055
|
var Ee = ce(S);
|
|
1056
1056
|
return Ee === "symbol" ? String(S) : S;
|
|
1057
1057
|
});
|
|
1058
|
-
return new g("Invalid " + J + " `" + W + "` of value `" + String(G) + "` " + ("supplied to `" +
|
|
1058
|
+
return new g("Invalid " + J + " `" + W + "` of value `" + String(G) + "` " + ("supplied to `" + $ + "`, expected one of " + ne + "."));
|
|
1059
1059
|
}
|
|
1060
1060
|
return h(P);
|
|
1061
1061
|
}
|
|
1062
1062
|
function _(O) {
|
|
1063
|
-
function P(
|
|
1063
|
+
function P(D, j, $, J, W) {
|
|
1064
1064
|
if (typeof O != "function")
|
|
1065
|
-
return new g("Property `" + W + "` of component `" +
|
|
1066
|
-
var G =
|
|
1065
|
+
return new g("Property `" + W + "` of component `" + $ + "` has invalid PropType notation inside objectOf.");
|
|
1066
|
+
var G = D[j], Z = K(G);
|
|
1067
1067
|
if (Z !== "object")
|
|
1068
|
-
return new g("Invalid " + J + " `" + W + "` of type " + ("`" + Z + "` supplied to `" +
|
|
1068
|
+
return new g("Invalid " + J + " `" + W + "` of type " + ("`" + Z + "` supplied to `" + $ + "`, expected an object."));
|
|
1069
1069
|
for (var ne in G)
|
|
1070
1070
|
if (r(G, ne)) {
|
|
1071
|
-
var Q = O(G, ne,
|
|
1071
|
+
var Q = O(G, ne, $, J, W + "." + ne, n);
|
|
1072
1072
|
if (Q instanceof Error)
|
|
1073
1073
|
return Q;
|
|
1074
1074
|
}
|
|
@@ -1080,15 +1080,15 @@ function zc() {
|
|
|
1080
1080
|
if (!Array.isArray(O))
|
|
1081
1081
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
1082
1082
|
for (var P = 0; P < O.length; P++) {
|
|
1083
|
-
var
|
|
1084
|
-
if (typeof
|
|
1083
|
+
var D = O[P];
|
|
1084
|
+
if (typeof D != "function")
|
|
1085
1085
|
return a(
|
|
1086
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(
|
|
1086
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(D) + " at index " + P + "."
|
|
1087
1087
|
), o;
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function j($, J, W, G, Z) {
|
|
1090
1090
|
for (var ne = [], Q = 0; Q < O.length; Q++) {
|
|
1091
|
-
var
|
|
1091
|
+
var I = O[Q], S = I($, J, W, G, Z, n);
|
|
1092
1092
|
if (S == null)
|
|
1093
1093
|
return null;
|
|
1094
1094
|
S.data && r(S.data, "expectedType") && ne.push(S.data.expectedType);
|
|
@@ -1096,52 +1096,52 @@ function zc() {
|
|
|
1096
1096
|
var Ee = ne.length > 0 ? ", expected one of type [" + ne.join(", ") + "]" : "";
|
|
1097
1097
|
return new g("Invalid " + G + " `" + Z + "` supplied to " + ("`" + W + "`" + Ee + "."));
|
|
1098
1098
|
}
|
|
1099
|
-
return h(
|
|
1099
|
+
return h(j);
|
|
1100
1100
|
}
|
|
1101
1101
|
function H() {
|
|
1102
|
-
function O(P,
|
|
1103
|
-
return
|
|
1102
|
+
function O(P, D, j, $, J) {
|
|
1103
|
+
return z(P[D]) ? null : new g("Invalid " + $ + " `" + J + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
|
|
1104
1104
|
}
|
|
1105
1105
|
return h(O);
|
|
1106
1106
|
}
|
|
1107
|
-
function U(O, P,
|
|
1107
|
+
function U(O, P, D, j, $) {
|
|
1108
1108
|
return new g(
|
|
1109
|
-
(O || "React class") + ": " + P + " type `" +
|
|
1109
|
+
(O || "React class") + ": " + P + " type `" + D + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + $ + "`."
|
|
1110
1110
|
);
|
|
1111
1111
|
}
|
|
1112
1112
|
function V(O) {
|
|
1113
|
-
function P(
|
|
1114
|
-
var G =
|
|
1113
|
+
function P(D, j, $, J, W) {
|
|
1114
|
+
var G = D[j], Z = K(G);
|
|
1115
1115
|
if (Z !== "object")
|
|
1116
|
-
return new g("Invalid " + J + " `" + W + "` of type `" + Z + "` " + ("supplied to `" +
|
|
1116
|
+
return new g("Invalid " + J + " `" + W + "` of type `" + Z + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1117
1117
|
for (var ne in O) {
|
|
1118
1118
|
var Q = O[ne];
|
|
1119
1119
|
if (typeof Q != "function")
|
|
1120
|
-
return U(
|
|
1121
|
-
var
|
|
1122
|
-
if (
|
|
1123
|
-
return
|
|
1120
|
+
return U($, J, W, ne, ce(Q));
|
|
1121
|
+
var I = Q(G, ne, $, J, W + "." + ne, n);
|
|
1122
|
+
if (I)
|
|
1123
|
+
return I;
|
|
1124
1124
|
}
|
|
1125
1125
|
return null;
|
|
1126
1126
|
}
|
|
1127
1127
|
return h(P);
|
|
1128
1128
|
}
|
|
1129
1129
|
function R(O) {
|
|
1130
|
-
function P(
|
|
1131
|
-
var G =
|
|
1130
|
+
function P(D, j, $, J, W) {
|
|
1131
|
+
var G = D[j], Z = K(G);
|
|
1132
1132
|
if (Z !== "object")
|
|
1133
|
-
return new g("Invalid " + J + " `" + W + "` of type `" + Z + "` " + ("supplied to `" +
|
|
1134
|
-
var ne = t({},
|
|
1133
|
+
return new g("Invalid " + J + " `" + W + "` of type `" + Z + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1134
|
+
var ne = t({}, D[j], O);
|
|
1135
1135
|
for (var Q in ne) {
|
|
1136
|
-
var
|
|
1137
|
-
if (r(O, Q) && typeof
|
|
1138
|
-
return U(
|
|
1139
|
-
if (!
|
|
1136
|
+
var I = O[Q];
|
|
1137
|
+
if (r(O, Q) && typeof I != "function")
|
|
1138
|
+
return U($, J, W, Q, ce(I));
|
|
1139
|
+
if (!I)
|
|
1140
1140
|
return new g(
|
|
1141
|
-
"Invalid " + J + " `" + W + "` key `" + Q + "` supplied to `" +
|
|
1141
|
+
"Invalid " + J + " `" + W + "` key `" + Q + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(D[j], null, " ") + `
|
|
1142
1142
|
Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
1143
1143
|
);
|
|
1144
|
-
var S =
|
|
1144
|
+
var S = I(G, Q, $, J, W + "." + Q, n);
|
|
1145
1145
|
if (S)
|
|
1146
1146
|
return S;
|
|
1147
1147
|
}
|
|
@@ -1149,7 +1149,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1149
1149
|
}
|
|
1150
1150
|
return h(P);
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function z(O) {
|
|
1153
1153
|
switch (typeof O) {
|
|
1154
1154
|
case "number":
|
|
1155
1155
|
case "string":
|
|
@@ -1159,20 +1159,20 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1159
1159
|
return !O;
|
|
1160
1160
|
case "object":
|
|
1161
1161
|
if (Array.isArray(O))
|
|
1162
|
-
return O.every(
|
|
1162
|
+
return O.every(z);
|
|
1163
1163
|
if (O === null || s(O))
|
|
1164
1164
|
return !0;
|
|
1165
|
-
var P =
|
|
1165
|
+
var P = f(O);
|
|
1166
1166
|
if (P) {
|
|
1167
|
-
var
|
|
1167
|
+
var D = P.call(O), j;
|
|
1168
1168
|
if (P !== O.entries) {
|
|
1169
|
-
for (; !(
|
|
1170
|
-
if (!
|
|
1169
|
+
for (; !(j = D.next()).done; )
|
|
1170
|
+
if (!z(j.value))
|
|
1171
1171
|
return !1;
|
|
1172
1172
|
} else
|
|
1173
|
-
for (; !(
|
|
1174
|
-
var
|
|
1175
|
-
if (
|
|
1173
|
+
for (; !(j = D.next()).done; ) {
|
|
1174
|
+
var $ = j.value;
|
|
1175
|
+
if ($ && !z($[1]))
|
|
1176
1176
|
return !1;
|
|
1177
1177
|
}
|
|
1178
1178
|
} else
|
|
@@ -1216,7 +1216,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
1218
|
function ae(O) {
|
|
1219
|
-
return !O.constructor || !O.constructor.name ?
|
|
1219
|
+
return !O.constructor || !O.constructor.name ? y : O.constructor.name;
|
|
1220
1220
|
}
|
|
1221
1221
|
return w.checkPropTypes = i, w.resetWarningCache = i.resetWarningCache, w.PropTypes = w, w;
|
|
1222
1222
|
}, Rr;
|
|
@@ -1231,12 +1231,12 @@ function Mc() {
|
|
|
1231
1231
|
function n() {
|
|
1232
1232
|
}
|
|
1233
1233
|
return n.resetWarningCache = t, Ar = function() {
|
|
1234
|
-
function r(o, s, c, u, l,
|
|
1235
|
-
if (
|
|
1236
|
-
var
|
|
1234
|
+
function r(o, s, c, u, l, f) {
|
|
1235
|
+
if (f !== e) {
|
|
1236
|
+
var y = new Error(
|
|
1237
1237
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1238
1238
|
);
|
|
1239
|
-
throw
|
|
1239
|
+
throw y.name = "Invariant Violation", y;
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
1242
|
r.isRequired = r;
|
|
@@ -1280,7 +1280,7 @@ function $c() {
|
|
|
1280
1280
|
return On.exports;
|
|
1281
1281
|
}
|
|
1282
1282
|
var qc = /* @__PURE__ */ $c();
|
|
1283
|
-
const
|
|
1283
|
+
const F = /* @__PURE__ */ yo(qc);
|
|
1284
1284
|
var lt = /* @__PURE__ */ qe.createContext(null);
|
|
1285
1285
|
process.env.NODE_ENV !== "production" && (lt.displayName = "ReactRedux");
|
|
1286
1286
|
function Uc(e) {
|
|
@@ -1329,8 +1329,8 @@ var Zi = {
|
|
|
1329
1329
|
};
|
|
1330
1330
|
function So(e, t) {
|
|
1331
1331
|
var n, r = Zi;
|
|
1332
|
-
function i(
|
|
1333
|
-
return c(), r.subscribe(
|
|
1332
|
+
function i(f) {
|
|
1333
|
+
return c(), r.subscribe(f);
|
|
1334
1334
|
}
|
|
1335
1335
|
function a() {
|
|
1336
1336
|
r.notify();
|
|
@@ -1383,13 +1383,13 @@ function To(e) {
|
|
|
1383
1383
|
}, r);
|
|
1384
1384
|
}
|
|
1385
1385
|
process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
1386
|
-
store:
|
|
1387
|
-
subscribe:
|
|
1388
|
-
dispatch:
|
|
1389
|
-
getState:
|
|
1386
|
+
store: F.shape({
|
|
1387
|
+
subscribe: F.func.isRequired,
|
|
1388
|
+
dispatch: F.func.isRequired,
|
|
1389
|
+
getState: F.func.isRequired
|
|
1390
1390
|
}),
|
|
1391
|
-
context:
|
|
1392
|
-
children:
|
|
1391
|
+
context: F.object,
|
|
1392
|
+
children: F.any
|
|
1393
1393
|
});
|
|
1394
1394
|
function Vn() {
|
|
1395
1395
|
return Vn = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -1422,28 +1422,28 @@ var ea;
|
|
|
1422
1422
|
function Yc() {
|
|
1423
1423
|
if (ea) return de;
|
|
1424
1424
|
ea = 1;
|
|
1425
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112,
|
|
1426
|
-
function
|
|
1427
|
-
if (typeof
|
|
1428
|
-
var k =
|
|
1425
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
1426
|
+
function C(p) {
|
|
1427
|
+
if (typeof p == "object" && p !== null) {
|
|
1428
|
+
var k = p.$$typeof;
|
|
1429
1429
|
switch (k) {
|
|
1430
1430
|
case t:
|
|
1431
|
-
switch (
|
|
1431
|
+
switch (p = p.type, p) {
|
|
1432
1432
|
case c:
|
|
1433
1433
|
case u:
|
|
1434
1434
|
case r:
|
|
1435
1435
|
case a:
|
|
1436
1436
|
case i:
|
|
1437
|
-
case
|
|
1438
|
-
return
|
|
1437
|
+
case f:
|
|
1438
|
+
return p;
|
|
1439
1439
|
default:
|
|
1440
|
-
switch (
|
|
1440
|
+
switch (p = p && p.$$typeof, p) {
|
|
1441
1441
|
case s:
|
|
1442
1442
|
case l:
|
|
1443
1443
|
case v:
|
|
1444
1444
|
case w:
|
|
1445
1445
|
case o:
|
|
1446
|
-
return
|
|
1446
|
+
return p;
|
|
1447
1447
|
default:
|
|
1448
1448
|
return k;
|
|
1449
1449
|
}
|
|
@@ -1453,36 +1453,36 @@ function Yc() {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1457
|
-
return
|
|
1458
|
-
}
|
|
1459
|
-
return de.AsyncMode = c, de.ConcurrentMode = u, de.ContextConsumer = s, de.ContextProvider = o, de.Element = t, de.ForwardRef = l, de.Fragment = r, de.Lazy = v, de.Memo = w, de.Portal = n, de.Profiler = a, de.StrictMode = i, de.Suspense =
|
|
1460
|
-
return
|
|
1461
|
-
}, de.isConcurrentMode =
|
|
1462
|
-
return
|
|
1463
|
-
}, de.isContextProvider = function(
|
|
1464
|
-
return
|
|
1465
|
-
}, de.isElement = function(
|
|
1466
|
-
return typeof
|
|
1467
|
-
}, de.isForwardRef = function(
|
|
1468
|
-
return
|
|
1469
|
-
}, de.isFragment = function(
|
|
1470
|
-
return
|
|
1471
|
-
}, de.isLazy = function(
|
|
1472
|
-
return
|
|
1473
|
-
}, de.isMemo = function(
|
|
1474
|
-
return
|
|
1475
|
-
}, de.isPortal = function(
|
|
1476
|
-
return
|
|
1477
|
-
}, de.isProfiler = function(
|
|
1478
|
-
return
|
|
1479
|
-
}, de.isStrictMode = function(
|
|
1480
|
-
return
|
|
1481
|
-
}, de.isSuspense = function(
|
|
1482
|
-
return
|
|
1483
|
-
}, de.isValidElementType = function(
|
|
1484
|
-
return typeof
|
|
1485
|
-
}, de.typeOf =
|
|
1456
|
+
function b(p) {
|
|
1457
|
+
return C(p) === u;
|
|
1458
|
+
}
|
|
1459
|
+
return de.AsyncMode = c, de.ConcurrentMode = u, de.ContextConsumer = s, de.ContextProvider = o, de.Element = t, de.ForwardRef = l, de.Fragment = r, de.Lazy = v, de.Memo = w, de.Portal = n, de.Profiler = a, de.StrictMode = i, de.Suspense = f, de.isAsyncMode = function(p) {
|
|
1460
|
+
return b(p) || C(p) === c;
|
|
1461
|
+
}, de.isConcurrentMode = b, de.isContextConsumer = function(p) {
|
|
1462
|
+
return C(p) === s;
|
|
1463
|
+
}, de.isContextProvider = function(p) {
|
|
1464
|
+
return C(p) === o;
|
|
1465
|
+
}, de.isElement = function(p) {
|
|
1466
|
+
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
1467
|
+
}, de.isForwardRef = function(p) {
|
|
1468
|
+
return C(p) === l;
|
|
1469
|
+
}, de.isFragment = function(p) {
|
|
1470
|
+
return C(p) === r;
|
|
1471
|
+
}, de.isLazy = function(p) {
|
|
1472
|
+
return C(p) === v;
|
|
1473
|
+
}, de.isMemo = function(p) {
|
|
1474
|
+
return C(p) === w;
|
|
1475
|
+
}, de.isPortal = function(p) {
|
|
1476
|
+
return C(p) === n;
|
|
1477
|
+
}, de.isProfiler = function(p) {
|
|
1478
|
+
return C(p) === a;
|
|
1479
|
+
}, de.isStrictMode = function(p) {
|
|
1480
|
+
return C(p) === i;
|
|
1481
|
+
}, de.isSuspense = function(p) {
|
|
1482
|
+
return C(p) === f;
|
|
1483
|
+
}, de.isValidElementType = function(p) {
|
|
1484
|
+
return typeof p == "string" || typeof p == "function" || p === r || p === u || p === a || p === i || p === f || p === y || typeof p == "object" && p !== null && (p.$$typeof === v || p.$$typeof === w || p.$$typeof === o || p.$$typeof === s || p.$$typeof === l || p.$$typeof === h || p.$$typeof === x || p.$$typeof === T || p.$$typeof === g);
|
|
1485
|
+
}, de.typeOf = C, de;
|
|
1486
1486
|
}
|
|
1487
1487
|
var fe = {};
|
|
1488
1488
|
/** @license React v16.13.1
|
|
@@ -1496,12 +1496,12 @@ var fe = {};
|
|
|
1496
1496
|
var ta;
|
|
1497
1497
|
function Kc() {
|
|
1498
1498
|
return ta || (ta = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1499
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112,
|
|
1500
|
-
function
|
|
1499
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
1500
|
+
function C(S) {
|
|
1501
1501
|
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1502
|
-
S === r || S === u || S === a || S === i || S ===
|
|
1502
|
+
S === r || S === u || S === a || S === i || S === f || S === y || typeof S == "object" && S !== null && (S.$$typeof === v || S.$$typeof === w || S.$$typeof === o || S.$$typeof === s || S.$$typeof === l || S.$$typeof === h || S.$$typeof === x || S.$$typeof === T || S.$$typeof === g);
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function b(S) {
|
|
1505
1505
|
if (typeof S == "object" && S !== null) {
|
|
1506
1506
|
var Ee = S.$$typeof;
|
|
1507
1507
|
switch (Ee) {
|
|
@@ -1513,7 +1513,7 @@ function Kc() {
|
|
|
1513
1513
|
case r:
|
|
1514
1514
|
case a:
|
|
1515
1515
|
case i:
|
|
1516
|
-
case
|
|
1516
|
+
case f:
|
|
1517
1517
|
return ke;
|
|
1518
1518
|
default:
|
|
1519
1519
|
var Ve = ke && ke.$$typeof;
|
|
@@ -1533,47 +1533,47 @@ function Kc() {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
|
-
var
|
|
1536
|
+
var p = c, k = u, N = s, _ = o, q = t, H = l, U = r, V = v, R = w, z = n, ee = a, K = i, ce = f, re = !1;
|
|
1537
1537
|
function ae(S) {
|
|
1538
|
-
return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(S) ||
|
|
1538
|
+
return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(S) || b(S) === c;
|
|
1539
1539
|
}
|
|
1540
1540
|
function O(S) {
|
|
1541
|
-
return
|
|
1541
|
+
return b(S) === u;
|
|
1542
1542
|
}
|
|
1543
1543
|
function P(S) {
|
|
1544
|
-
return
|
|
1544
|
+
return b(S) === s;
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1547
|
-
return
|
|
1546
|
+
function D(S) {
|
|
1547
|
+
return b(S) === o;
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function j(S) {
|
|
1550
1550
|
return typeof S == "object" && S !== null && S.$$typeof === t;
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1553
|
-
return
|
|
1552
|
+
function $(S) {
|
|
1553
|
+
return b(S) === l;
|
|
1554
1554
|
}
|
|
1555
1555
|
function J(S) {
|
|
1556
|
-
return
|
|
1556
|
+
return b(S) === r;
|
|
1557
1557
|
}
|
|
1558
1558
|
function W(S) {
|
|
1559
|
-
return
|
|
1559
|
+
return b(S) === v;
|
|
1560
1560
|
}
|
|
1561
1561
|
function G(S) {
|
|
1562
|
-
return
|
|
1562
|
+
return b(S) === w;
|
|
1563
1563
|
}
|
|
1564
1564
|
function Z(S) {
|
|
1565
|
-
return
|
|
1565
|
+
return b(S) === n;
|
|
1566
1566
|
}
|
|
1567
1567
|
function ne(S) {
|
|
1568
|
-
return
|
|
1568
|
+
return b(S) === a;
|
|
1569
1569
|
}
|
|
1570
1570
|
function Q(S) {
|
|
1571
|
-
return
|
|
1571
|
+
return b(S) === i;
|
|
1572
1572
|
}
|
|
1573
|
-
function
|
|
1574
|
-
return
|
|
1573
|
+
function I(S) {
|
|
1574
|
+
return b(S) === f;
|
|
1575
1575
|
}
|
|
1576
|
-
fe.AsyncMode =
|
|
1576
|
+
fe.AsyncMode = p, fe.ConcurrentMode = k, fe.ContextConsumer = N, fe.ContextProvider = _, fe.Element = q, fe.ForwardRef = H, fe.Fragment = U, fe.Lazy = V, fe.Memo = R, fe.Portal = z, fe.Profiler = ee, fe.StrictMode = K, fe.Suspense = ce, fe.isAsyncMode = ae, fe.isConcurrentMode = O, fe.isContextConsumer = P, fe.isContextProvider = D, fe.isElement = j, fe.isForwardRef = $, fe.isFragment = J, fe.isLazy = W, fe.isMemo = G, fe.isPortal = Z, fe.isProfiler = ne, fe.isStrictMode = Q, fe.isSuspense = I, fe.isValidElementType = C, fe.typeOf = b;
|
|
1577
1577
|
})()), fe;
|
|
1578
1578
|
}
|
|
1579
1579
|
var na;
|
|
@@ -1622,18 +1622,18 @@ function Jc() {
|
|
|
1622
1622
|
function o(v) {
|
|
1623
1623
|
return e.isMemo(v) ? i : a[v.$$typeof] || t;
|
|
1624
1624
|
}
|
|
1625
|
-
var s = Object.defineProperty, c = Object.getOwnPropertyNames, u = Object.getOwnPropertySymbols, l = Object.getOwnPropertyDescriptor,
|
|
1625
|
+
var s = Object.defineProperty, c = Object.getOwnPropertyNames, u = Object.getOwnPropertySymbols, l = Object.getOwnPropertyDescriptor, f = Object.getPrototypeOf, y = Object.prototype;
|
|
1626
1626
|
function w(v, g, h) {
|
|
1627
1627
|
if (typeof g != "string") {
|
|
1628
|
-
if (
|
|
1629
|
-
var x =
|
|
1630
|
-
x && x !==
|
|
1628
|
+
if (y) {
|
|
1629
|
+
var x = f(g);
|
|
1630
|
+
x && x !== y && w(v, x, h);
|
|
1631
1631
|
}
|
|
1632
1632
|
var T = c(g);
|
|
1633
1633
|
u && (T = T.concat(u(g)));
|
|
1634
|
-
for (var
|
|
1635
|
-
var k = T[
|
|
1636
|
-
if (!n[k] && !(h && h[k]) && !(
|
|
1634
|
+
for (var C = o(v), b = o(g), p = 0; p < T.length; ++p) {
|
|
1635
|
+
var k = T[p];
|
|
1636
|
+
if (!n[k] && !(h && h[k]) && !(b && b[k]) && !(C && C[k])) {
|
|
1637
1637
|
var N = l(g, k);
|
|
1638
1638
|
try {
|
|
1639
1639
|
s(v, k, N);
|
|
@@ -1660,15 +1660,15 @@ var ia;
|
|
|
1660
1660
|
function Qc() {
|
|
1661
1661
|
if (ia) return ve;
|
|
1662
1662
|
ia = 1;
|
|
1663
|
-
var e = 60103, t = 60106, n = 60107, r = 60108, i = 60114, a = 60109, o = 60110, s = 60112, c = 60113, u = 60120, l = 60115,
|
|
1663
|
+
var e = 60103, t = 60106, n = 60107, r = 60108, i = 60114, a = 60109, o = 60110, s = 60112, c = 60113, u = 60120, l = 60115, f = 60116, y = 60121, w = 60122, v = 60117, g = 60129, h = 60131;
|
|
1664
1664
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
1665
1665
|
var x = Symbol.for;
|
|
1666
|
-
e = x("react.element"), t = x("react.portal"), n = x("react.fragment"), r = x("react.strict_mode"), i = x("react.profiler"), a = x("react.provider"), o = x("react.context"), s = x("react.forward_ref"), c = x("react.suspense"), u = x("react.suspense_list"), l = x("react.memo"),
|
|
1666
|
+
e = x("react.element"), t = x("react.portal"), n = x("react.fragment"), r = x("react.strict_mode"), i = x("react.profiler"), a = x("react.provider"), o = x("react.context"), s = x("react.forward_ref"), c = x("react.suspense"), u = x("react.suspense_list"), l = x("react.memo"), f = x("react.lazy"), y = x("react.block"), w = x("react.server.block"), v = x("react.fundamental"), g = x("react.debug_trace_mode"), h = x("react.legacy_hidden");
|
|
1667
1667
|
}
|
|
1668
1668
|
function T(R) {
|
|
1669
1669
|
if (typeof R == "object" && R !== null) {
|
|
1670
|
-
var
|
|
1671
|
-
switch (
|
|
1670
|
+
var z = R.$$typeof;
|
|
1671
|
+
switch (z) {
|
|
1672
1672
|
case e:
|
|
1673
1673
|
switch (R = R.type, R) {
|
|
1674
1674
|
case n:
|
|
@@ -1681,21 +1681,21 @@ function Qc() {
|
|
|
1681
1681
|
switch (R = R && R.$$typeof, R) {
|
|
1682
1682
|
case o:
|
|
1683
1683
|
case s:
|
|
1684
|
-
case
|
|
1684
|
+
case f:
|
|
1685
1685
|
case l:
|
|
1686
1686
|
case a:
|
|
1687
1687
|
return R;
|
|
1688
1688
|
default:
|
|
1689
|
-
return
|
|
1689
|
+
return z;
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
1692
|
case t:
|
|
1693
|
-
return
|
|
1693
|
+
return z;
|
|
1694
1694
|
}
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
|
-
var
|
|
1698
|
-
return ve.ContextConsumer = o, ve.ContextProvider =
|
|
1697
|
+
var C = a, b = e, p = s, k = n, N = f, _ = l, q = t, H = i, U = r, V = c;
|
|
1698
|
+
return ve.ContextConsumer = o, ve.ContextProvider = C, ve.Element = b, ve.ForwardRef = p, ve.Fragment = k, ve.Lazy = N, ve.Memo = _, ve.Portal = q, ve.Profiler = H, ve.StrictMode = U, ve.Suspense = V, ve.isAsyncMode = function() {
|
|
1699
1699
|
return !1;
|
|
1700
1700
|
}, ve.isConcurrentMode = function() {
|
|
1701
1701
|
return !1;
|
|
@@ -1710,7 +1710,7 @@ function Qc() {
|
|
|
1710
1710
|
}, ve.isFragment = function(R) {
|
|
1711
1711
|
return T(R) === n;
|
|
1712
1712
|
}, ve.isLazy = function(R) {
|
|
1713
|
-
return T(R) ===
|
|
1713
|
+
return T(R) === f;
|
|
1714
1714
|
}, ve.isMemo = function(R) {
|
|
1715
1715
|
return T(R) === l;
|
|
1716
1716
|
}, ve.isPortal = function(R) {
|
|
@@ -1722,7 +1722,7 @@ function Qc() {
|
|
|
1722
1722
|
}, ve.isSuspense = function(R) {
|
|
1723
1723
|
return T(R) === c;
|
|
1724
1724
|
}, ve.isValidElementType = function(R) {
|
|
1725
|
-
return typeof R == "string" || typeof R == "function" || R === n || R === i || R === g || R === r || R === c || R === u || R === h || typeof R == "object" && R !== null && (R.$$typeof ===
|
|
1725
|
+
return typeof R == "string" || typeof R == "function" || R === n || R === i || R === g || R === r || R === c || R === u || R === h || typeof R == "object" && R !== null && (R.$$typeof === f || R.$$typeof === l || R.$$typeof === a || R.$$typeof === o || R.$$typeof === s || R.$$typeof === v || R.$$typeof === y || R[0] === w);
|
|
1726
1726
|
}, ve.typeOf = T, ve;
|
|
1727
1727
|
}
|
|
1728
1728
|
var he = {};
|
|
@@ -1737,21 +1737,21 @@ var he = {};
|
|
|
1737
1737
|
var aa;
|
|
1738
1738
|
function Xc() {
|
|
1739
1739
|
return aa || (aa = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1740
|
-
var e = 60103, t = 60106, n = 60107, r = 60108, i = 60114, a = 60109, o = 60110, s = 60112, c = 60113, u = 60120, l = 60115,
|
|
1740
|
+
var e = 60103, t = 60106, n = 60107, r = 60108, i = 60114, a = 60109, o = 60110, s = 60112, c = 60113, u = 60120, l = 60115, f = 60116, y = 60121, w = 60122, v = 60117, g = 60129, h = 60131;
|
|
1741
1741
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
1742
1742
|
var x = Symbol.for;
|
|
1743
|
-
e = x("react.element"), t = x("react.portal"), n = x("react.fragment"), r = x("react.strict_mode"), i = x("react.profiler"), a = x("react.provider"), o = x("react.context"), s = x("react.forward_ref"), c = x("react.suspense"), u = x("react.suspense_list"), l = x("react.memo"),
|
|
1743
|
+
e = x("react.element"), t = x("react.portal"), n = x("react.fragment"), r = x("react.strict_mode"), i = x("react.profiler"), a = x("react.provider"), o = x("react.context"), s = x("react.forward_ref"), c = x("react.suspense"), u = x("react.suspense_list"), l = x("react.memo"), f = x("react.lazy"), y = x("react.block"), w = x("react.server.block"), v = x("react.fundamental"), x("react.scope"), x("react.opaque.id"), g = x("react.debug_trace_mode"), x("react.offscreen"), h = x("react.legacy_hidden");
|
|
1744
1744
|
}
|
|
1745
1745
|
var T = !1;
|
|
1746
|
-
function
|
|
1747
|
-
return !!(typeof
|
|
1746
|
+
function C(I) {
|
|
1747
|
+
return !!(typeof I == "string" || typeof I == "function" || I === n || I === i || I === g || I === r || I === c || I === u || I === h || T || typeof I == "object" && I !== null && (I.$$typeof === f || I.$$typeof === l || I.$$typeof === a || I.$$typeof === o || I.$$typeof === s || I.$$typeof === v || I.$$typeof === y || I[0] === w));
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1750
|
-
if (typeof
|
|
1751
|
-
var S =
|
|
1749
|
+
function b(I) {
|
|
1750
|
+
if (typeof I == "object" && I !== null) {
|
|
1751
|
+
var S = I.$$typeof;
|
|
1752
1752
|
switch (S) {
|
|
1753
1753
|
case e:
|
|
1754
|
-
var Ee =
|
|
1754
|
+
var Ee = I.type;
|
|
1755
1755
|
switch (Ee) {
|
|
1756
1756
|
case n:
|
|
1757
1757
|
case i:
|
|
@@ -1764,7 +1764,7 @@ function Xc() {
|
|
|
1764
1764
|
switch (ke) {
|
|
1765
1765
|
case o:
|
|
1766
1766
|
case s:
|
|
1767
|
-
case
|
|
1767
|
+
case f:
|
|
1768
1768
|
case l:
|
|
1769
1769
|
case a:
|
|
1770
1770
|
return ke;
|
|
@@ -1777,47 +1777,47 @@ function Xc() {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
var
|
|
1781
|
-
function re(
|
|
1780
|
+
var p = o, k = a, N = e, _ = s, q = n, H = f, U = l, V = t, R = i, z = r, ee = c, K = !1, ce = !1;
|
|
1781
|
+
function re(I) {
|
|
1782
1782
|
return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
1783
1783
|
}
|
|
1784
|
-
function ae(
|
|
1784
|
+
function ae(I) {
|
|
1785
1785
|
return ce || (ce = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
1786
1786
|
}
|
|
1787
|
-
function O(
|
|
1788
|
-
return
|
|
1787
|
+
function O(I) {
|
|
1788
|
+
return b(I) === o;
|
|
1789
1789
|
}
|
|
1790
|
-
function P(
|
|
1791
|
-
return
|
|
1790
|
+
function P(I) {
|
|
1791
|
+
return b(I) === a;
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1794
|
-
return typeof
|
|
1793
|
+
function D(I) {
|
|
1794
|
+
return typeof I == "object" && I !== null && I.$$typeof === e;
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1797
|
-
return
|
|
1796
|
+
function j(I) {
|
|
1797
|
+
return b(I) === s;
|
|
1798
1798
|
}
|
|
1799
|
-
function
|
|
1800
|
-
return
|
|
1799
|
+
function $(I) {
|
|
1800
|
+
return b(I) === n;
|
|
1801
1801
|
}
|
|
1802
|
-
function J(
|
|
1803
|
-
return
|
|
1802
|
+
function J(I) {
|
|
1803
|
+
return b(I) === f;
|
|
1804
1804
|
}
|
|
1805
|
-
function W(
|
|
1806
|
-
return
|
|
1805
|
+
function W(I) {
|
|
1806
|
+
return b(I) === l;
|
|
1807
1807
|
}
|
|
1808
|
-
function G(
|
|
1809
|
-
return
|
|
1808
|
+
function G(I) {
|
|
1809
|
+
return b(I) === t;
|
|
1810
1810
|
}
|
|
1811
|
-
function Z(
|
|
1812
|
-
return
|
|
1811
|
+
function Z(I) {
|
|
1812
|
+
return b(I) === i;
|
|
1813
1813
|
}
|
|
1814
|
-
function ne(
|
|
1815
|
-
return
|
|
1814
|
+
function ne(I) {
|
|
1815
|
+
return b(I) === r;
|
|
1816
1816
|
}
|
|
1817
|
-
function Q(
|
|
1818
|
-
return
|
|
1817
|
+
function Q(I) {
|
|
1818
|
+
return b(I) === c;
|
|
1819
1819
|
}
|
|
1820
|
-
he.ContextConsumer =
|
|
1820
|
+
he.ContextConsumer = p, he.ContextProvider = k, he.Element = N, he.ForwardRef = _, he.Fragment = q, he.Lazy = H, he.Memo = U, he.Portal = V, he.Profiler = R, he.StrictMode = z, he.Suspense = ee, he.isAsyncMode = re, he.isConcurrentMode = ae, he.isContextConsumer = O, he.isContextProvider = P, he.isElement = D, he.isForwardRef = j, he.isFragment = $, he.isLazy = J, he.isMemo = W, he.isPortal = G, he.isProfiler = Z, he.isStrictMode = ne, he.isSuspense = Q, he.isValidElementType = C, he.typeOf = b;
|
|
1821
1821
|
})()), he;
|
|
1822
1822
|
}
|
|
1823
1823
|
var oa;
|
|
@@ -1858,13 +1858,13 @@ function rl(e, t, n, r) {
|
|
|
1858
1858
|
return v + 1;
|
|
1859
1859
|
}, 0), a = i[1], o = st(function() {
|
|
1860
1860
|
return So(n, r);
|
|
1861
|
-
}, [n, r]), s = $e(), c = $e(), u = $e(), l = $e(),
|
|
1861
|
+
}, [n, r]), s = $e(), c = $e(), u = $e(), l = $e(), f = n.getState(), y;
|
|
1862
1862
|
try {
|
|
1863
|
-
if (e !== c.current ||
|
|
1864
|
-
var w = e(
|
|
1865
|
-
l.current === void 0 || !t(w, l.current) ?
|
|
1863
|
+
if (e !== c.current || f !== u.current || s.current) {
|
|
1864
|
+
var w = e(f);
|
|
1865
|
+
l.current === void 0 || !t(w, l.current) ? y = w : y = l.current;
|
|
1866
1866
|
} else
|
|
1867
|
-
|
|
1867
|
+
y = l.current;
|
|
1868
1868
|
} catch (v) {
|
|
1869
1869
|
throw s.current && (v.message += `
|
|
1870
1870
|
The error may be correlated with this previous error:
|
|
@@ -1873,7 +1873,7 @@ The error may be correlated with this previous error:
|
|
|
1873
1873
|
`), v;
|
|
1874
1874
|
}
|
|
1875
1875
|
return Br(function() {
|
|
1876
|
-
c.current = e, u.current =
|
|
1876
|
+
c.current = e, u.current = f, l.current = y, s.current = void 0;
|
|
1877
1877
|
}), Br(function() {
|
|
1878
1878
|
function v() {
|
|
1879
1879
|
try {
|
|
@@ -1892,7 +1892,7 @@ The error may be correlated with this previous error:
|
|
|
1892
1892
|
return o.onStateChange = v, o.trySubscribe(), v(), function() {
|
|
1893
1893
|
return o.tryUnsubscribe();
|
|
1894
1894
|
};
|
|
1895
|
-
}, [n, o]),
|
|
1895
|
+
}, [n, o]), y;
|
|
1896
1896
|
}
|
|
1897
1897
|
function il(e) {
|
|
1898
1898
|
e === void 0 && (e = lt);
|
|
@@ -1994,25 +1994,25 @@ function sl(e, t, n) {
|
|
|
1994
1994
|
function cl(e) {
|
|
1995
1995
|
var t = e.enter, n = e.exit, r = e.appendPosition, i = r === void 0 ? !1 : r, a = e.collapse, o = a === void 0 ? !0 : a, s = e.collapseDuration, c = s === void 0 ? 300 : s;
|
|
1996
1996
|
return function(l) {
|
|
1997
|
-
var
|
|
1997
|
+
var f = l.children, y = l.position, w = l.preventExitTransition, v = l.done, g = l.nodeRef, h = l.isIn, x = i ? t + "--" + y : t, T = i ? n + "--" + y : n, C = $e(), b = $e(
|
|
1998
1998
|
0
|
|
1999
1999
|
/* Enter */
|
|
2000
2000
|
);
|
|
2001
2001
|
go(function() {
|
|
2002
|
-
|
|
2002
|
+
p();
|
|
2003
2003
|
}, []), Ce(function() {
|
|
2004
2004
|
h || (w ? _() : N());
|
|
2005
2005
|
}, [h]);
|
|
2006
|
-
function
|
|
2006
|
+
function p() {
|
|
2007
2007
|
var q = g.current;
|
|
2008
|
-
|
|
2008
|
+
C.current = q.className, q.className += " " + x, q.addEventListener("animationend", k);
|
|
2009
2009
|
}
|
|
2010
2010
|
function k() {
|
|
2011
2011
|
var q = g.current;
|
|
2012
|
-
q.removeEventListener("animationend", k),
|
|
2012
|
+
q.removeEventListener("animationend", k), b.current === 0 && (q.className = C.current);
|
|
2013
2013
|
}
|
|
2014
2014
|
function N() {
|
|
2015
|
-
|
|
2015
|
+
b.current = 1;
|
|
2016
2016
|
var q = g.current;
|
|
2017
2017
|
q.className += " " + T, q.addEventListener("animationend", _);
|
|
2018
2018
|
}
|
|
@@ -2020,7 +2020,7 @@ function cl(e) {
|
|
|
2020
2020
|
var q = g.current;
|
|
2021
2021
|
q.removeEventListener("animationend", _), o ? sl(q, v, c) : v();
|
|
2022
2022
|
}
|
|
2023
|
-
return qe.createElement(qe.Fragment, null,
|
|
2023
|
+
return qe.createElement(qe.Fragment, null, f);
|
|
2024
2024
|
};
|
|
2025
2025
|
}
|
|
2026
2026
|
var Qe = {
|
|
@@ -2081,16 +2081,16 @@ function ll(e, t) {
|
|
|
2081
2081
|
}
|
|
2082
2082
|
}
|
|
2083
2083
|
function ul(e) {
|
|
2084
|
-
var t = Hn(function(
|
|
2085
|
-
return
|
|
2084
|
+
var t = Hn(function(b) {
|
|
2085
|
+
return b + 1;
|
|
2086
2086
|
}, 0), n = t[1], r = Hn(ll, []), i = r[0], a = r[1], o = $e(null), s = It(0), c = It([]), u = It({}), l = It({
|
|
2087
2087
|
toastKey: 1,
|
|
2088
2088
|
displayedToast: 0,
|
|
2089
2089
|
props: e,
|
|
2090
2090
|
containerId: null,
|
|
2091
|
-
isToastActive:
|
|
2092
|
-
getToast: function(
|
|
2093
|
-
return u[
|
|
2091
|
+
isToastActive: f,
|
|
2092
|
+
getToast: function(p) {
|
|
2093
|
+
return u[p] || null;
|
|
2094
2094
|
}
|
|
2095
2095
|
});
|
|
2096
2096
|
Ce(function() {
|
|
@@ -2102,12 +2102,12 @@ function ul(e) {
|
|
|
2102
2102
|
h
|
|
2103
2103
|
).on(
|
|
2104
2104
|
1,
|
|
2105
|
-
function(
|
|
2106
|
-
return o.current && w(
|
|
2105
|
+
function(b) {
|
|
2106
|
+
return o.current && w(b);
|
|
2107
2107
|
}
|
|
2108
2108
|
).on(
|
|
2109
2109
|
5,
|
|
2110
|
-
|
|
2110
|
+
y
|
|
2111
2111
|
).emit(
|
|
2112
2112
|
2,
|
|
2113
2113
|
l
|
|
@@ -2118,7 +2118,7 @@ function ul(e) {
|
|
|
2118
2118
|
);
|
|
2119
2119
|
};
|
|
2120
2120
|
}, []), Ce(function() {
|
|
2121
|
-
l.isToastActive =
|
|
2121
|
+
l.isToastActive = f, l.displayedToast = i.length, Qe.emit(
|
|
2122
2122
|
4,
|
|
2123
2123
|
i.length,
|
|
2124
2124
|
e.containerId
|
|
@@ -2126,35 +2126,35 @@ function ul(e) {
|
|
|
2126
2126
|
}, [i]), Ce(function() {
|
|
2127
2127
|
l.props = e;
|
|
2128
2128
|
});
|
|
2129
|
-
function
|
|
2130
|
-
return i.indexOf(
|
|
2129
|
+
function f(b) {
|
|
2130
|
+
return i.indexOf(b) !== -1;
|
|
2131
2131
|
}
|
|
2132
|
-
function b
|
|
2133
|
-
var
|
|
2134
|
-
k && (!
|
|
2132
|
+
function y(b) {
|
|
2133
|
+
var p = b.containerId, k = l.props.limit;
|
|
2134
|
+
k && (!p || l.containerId === p) && (s -= c.length, c = []);
|
|
2135
2135
|
}
|
|
2136
|
-
function w(
|
|
2136
|
+
function w(b) {
|
|
2137
2137
|
a({
|
|
2138
2138
|
type: 1,
|
|
2139
|
-
toastId:
|
|
2139
|
+
toastId: b
|
|
2140
2140
|
});
|
|
2141
2141
|
}
|
|
2142
2142
|
function v() {
|
|
2143
|
-
var
|
|
2144
|
-
x(
|
|
2143
|
+
var b = c.shift(), p = b.toastContent, k = b.toastProps, N = b.staleId;
|
|
2144
|
+
x(p, k, N);
|
|
2145
2145
|
}
|
|
2146
|
-
function g(
|
|
2147
|
-
var
|
|
2148
|
-
return !!(!o.current || l.props.enableMultiContainer &&
|
|
2146
|
+
function g(b) {
|
|
2147
|
+
var p = b.containerId, k = b.toastId, N = b.updateId;
|
|
2148
|
+
return !!(!o.current || l.props.enableMultiContainer && p !== l.props.containerId || u[k] && N == null);
|
|
2149
2149
|
}
|
|
2150
|
-
function h(
|
|
2151
|
-
var k =
|
|
2152
|
-
if (!(!Pr(
|
|
2150
|
+
function h(b, p) {
|
|
2151
|
+
var k = p.delay, N = p.staleId, _ = al(p, ["delay", "staleId"]);
|
|
2152
|
+
if (!(!Pr(b) || g(_))) {
|
|
2153
2153
|
var q = _.toastId, H = _.updateId, U = l.props, V = function() {
|
|
2154
2154
|
return w(q);
|
|
2155
2155
|
}, R = _.updateId == null;
|
|
2156
2156
|
R && s++;
|
|
2157
|
-
var
|
|
2157
|
+
var z = {
|
|
2158
2158
|
toastId: q,
|
|
2159
2159
|
updateId: H,
|
|
2160
2160
|
isIn: !1,
|
|
@@ -2186,45 +2186,45 @@ function ul(e) {
|
|
|
2186
2186
|
T(q);
|
|
2187
2187
|
}
|
|
2188
2188
|
};
|
|
2189
|
-
Ue(_.onOpen) && (
|
|
2189
|
+
Ue(_.onOpen) && (z.onOpen = _.onOpen), Ue(_.onClose) && (z.onClose = _.onClose), z.draggableDirection === "y" && z.draggablePercent === 80 && (z.draggablePercent *= 1.5);
|
|
2190
2190
|
var ee = U.closeButton;
|
|
2191
|
-
_.closeButton === !1 || Pr(_.closeButton) ? ee = _.closeButton : _.closeButton === !0 && (ee = Pr(U.closeButton) ? U.closeButton : !0),
|
|
2192
|
-
var K =
|
|
2193
|
-
cn(
|
|
2191
|
+
_.closeButton === !1 || Pr(_.closeButton) ? ee = _.closeButton : _.closeButton === !0 && (ee = Pr(U.closeButton) ? U.closeButton : !0), z.closeButton = ee;
|
|
2192
|
+
var K = b;
|
|
2193
|
+
cn(b) && !un(b.type) ? K = xo(b, {
|
|
2194
2194
|
closeToast: V,
|
|
2195
|
-
toastProps:
|
|
2196
|
-
}) : Ue(
|
|
2195
|
+
toastProps: z
|
|
2196
|
+
}) : Ue(b) && (K = b({
|
|
2197
2197
|
closeToast: V,
|
|
2198
|
-
toastProps:
|
|
2198
|
+
toastProps: z
|
|
2199
2199
|
})), U.limit && U.limit > 0 && s > U.limit && R ? c.push({
|
|
2200
2200
|
toastContent: K,
|
|
2201
|
-
toastProps:
|
|
2201
|
+
toastProps: z,
|
|
2202
2202
|
staleId: N
|
|
2203
2203
|
}) : ln(k) && k > 0 ? setTimeout(function() {
|
|
2204
|
-
x(K,
|
|
2205
|
-
}, k) : x(K,
|
|
2204
|
+
x(K, z, N);
|
|
2205
|
+
}, k) : x(K, z, N);
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
|
-
function x(
|
|
2209
|
-
var N =
|
|
2208
|
+
function x(b, p, k) {
|
|
2209
|
+
var N = p.toastId;
|
|
2210
2210
|
k && delete u[k], u[N] = {
|
|
2211
|
-
content:
|
|
2212
|
-
props:
|
|
2211
|
+
content: b,
|
|
2212
|
+
props: p
|
|
2213
2213
|
}, a({
|
|
2214
2214
|
type: 0,
|
|
2215
2215
|
toastId: N,
|
|
2216
2216
|
staleId: k
|
|
2217
2217
|
});
|
|
2218
2218
|
}
|
|
2219
|
-
function T(
|
|
2220
|
-
delete u[
|
|
2221
|
-
var
|
|
2222
|
-
if (s = Hr(
|
|
2223
|
-
var k = Hr(
|
|
2224
|
-
if (
|
|
2219
|
+
function T(b) {
|
|
2220
|
+
delete u[b];
|
|
2221
|
+
var p = c.length;
|
|
2222
|
+
if (s = Hr(b) ? s - 1 : s - l.displayedToast, s < 0 && (s = 0), p > 0) {
|
|
2223
|
+
var k = Hr(b) ? 1 : l.props.limit;
|
|
2224
|
+
if (p === 1 || k === 1)
|
|
2225
2225
|
l.displayedToast++, v();
|
|
2226
2226
|
else {
|
|
2227
|
-
var N = k >
|
|
2227
|
+
var N = k > p ? p : k;
|
|
2228
2228
|
l.displayedToast = N;
|
|
2229
2229
|
for (var _ = 0; _ < N; _++)
|
|
2230
2230
|
v();
|
|
@@ -2232,20 +2232,20 @@ function ul(e) {
|
|
|
2232
2232
|
} else
|
|
2233
2233
|
n();
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2236
|
-
for (var
|
|
2235
|
+
function C(b) {
|
|
2236
|
+
for (var p = {}, k = e.newestOnTop ? Object.keys(u).reverse() : Object.keys(u), N = 0; N < k.length; N++) {
|
|
2237
2237
|
var _ = u[k[N]], q = _.props.position;
|
|
2238
|
-
|
|
2238
|
+
p[q] || (p[q] = []), p[q].push(_);
|
|
2239
2239
|
}
|
|
2240
|
-
return Object.keys(
|
|
2241
|
-
return
|
|
2240
|
+
return Object.keys(p).map(function(H) {
|
|
2241
|
+
return b(H, p[H]);
|
|
2242
2242
|
});
|
|
2243
2243
|
}
|
|
2244
2244
|
return {
|
|
2245
|
-
getToastToRender:
|
|
2245
|
+
getToastToRender: C,
|
|
2246
2246
|
collection: u,
|
|
2247
2247
|
containerRef: o,
|
|
2248
|
-
isToastActive:
|
|
2248
|
+
isToastActive: f
|
|
2249
2249
|
};
|
|
2250
2250
|
}
|
|
2251
2251
|
function sa(e) {
|
|
@@ -2264,18 +2264,18 @@ function pl(e) {
|
|
|
2264
2264
|
canCloseOnClick: !0,
|
|
2265
2265
|
canDrag: !1,
|
|
2266
2266
|
boundingRect: null
|
|
2267
|
-
}), u = It(e, !0), l = e.autoClose,
|
|
2267
|
+
}), u = It(e, !0), l = e.autoClose, f = e.pauseOnHover, y = e.closeToast, w = e.onClick, v = e.closeOnClick;
|
|
2268
2268
|
Ce(function() {
|
|
2269
2269
|
return Ue(e.onOpen) && e.onOpen(cn(e.children) && e.children.props), function() {
|
|
2270
2270
|
Ue(u.onClose) && u.onClose(cn(u.children) && u.children.props);
|
|
2271
2271
|
};
|
|
2272
2272
|
}, []), Ce(function() {
|
|
2273
|
-
return e.draggable &&
|
|
2273
|
+
return e.draggable && p(), function() {
|
|
2274
2274
|
e.draggable && k();
|
|
2275
2275
|
};
|
|
2276
2276
|
}, [e.draggable]), Ce(function() {
|
|
2277
|
-
return e.pauseOnFocusLoss &&
|
|
2278
|
-
e.pauseOnFocusLoss &&
|
|
2277
|
+
return e.pauseOnFocusLoss && C(), function() {
|
|
2278
|
+
e.pauseOnFocusLoss && b();
|
|
2279
2279
|
};
|
|
2280
2280
|
}, [e.pauseOnFocusLoss]);
|
|
2281
2281
|
function g(H) {
|
|
@@ -2286,8 +2286,8 @@ function pl(e) {
|
|
|
2286
2286
|
}
|
|
2287
2287
|
function h() {
|
|
2288
2288
|
if (c.boundingRect) {
|
|
2289
|
-
var H = c.boundingRect, U = H.top, V = H.bottom, R = H.left,
|
|
2290
|
-
e.pauseOnHover && c.x >= R && c.x <=
|
|
2289
|
+
var H = c.boundingRect, U = H.top, V = H.bottom, R = H.left, z = H.right;
|
|
2290
|
+
e.pauseOnHover && c.x >= R && c.x <= z && c.y >= U && c.y <= V ? T() : x();
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
2293
|
function x() {
|
|
@@ -2296,13 +2296,13 @@ function pl(e) {
|
|
|
2296
2296
|
function T() {
|
|
2297
2297
|
r(!1);
|
|
2298
2298
|
}
|
|
2299
|
-
function
|
|
2299
|
+
function C() {
|
|
2300
2300
|
document.hasFocus() || T(), window.addEventListener("focus", x), window.addEventListener("blur", T);
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2302
|
+
function b() {
|
|
2303
2303
|
window.removeEventListener("focus", x), window.removeEventListener("blur", T);
|
|
2304
2304
|
}
|
|
2305
|
-
function
|
|
2305
|
+
function p() {
|
|
2306
2306
|
document.addEventListener("mousemove", N), document.addEventListener("mouseup", _), document.addEventListener("touchmove", N), document.addEventListener("touchend", _);
|
|
2307
2307
|
}
|
|
2308
2308
|
function k() {
|
|
@@ -2331,8 +2331,8 @@ function pl(e) {
|
|
|
2331
2331
|
onMouseUp: h,
|
|
2332
2332
|
onTouchEnd: h
|
|
2333
2333
|
};
|
|
2334
|
-
return l &&
|
|
2335
|
-
w && w(H), c.canCloseOnClick &&
|
|
2334
|
+
return l && f && (q.onMouseEnter = T, q.onMouseLeave = x), v && (q.onClick = function(H) {
|
|
2335
|
+
w && w(H), c.canCloseOnClick && y();
|
|
2336
2336
|
}), {
|
|
2337
2337
|
playToast: x,
|
|
2338
2338
|
pauseToast: T,
|
|
@@ -2360,17 +2360,17 @@ function ko(e) {
|
|
|
2360
2360
|
})));
|
|
2361
2361
|
}
|
|
2362
2362
|
function Po(e) {
|
|
2363
|
-
var t, n, r = e.delay, i = e.isRunning, a = e.closeToast, o = e.type, s = e.hide, c = e.className, u = e.style, l = e.controlledProgress,
|
|
2363
|
+
var t, n, r = e.delay, i = e.isRunning, a = e.closeToast, o = e.type, s = e.hide, c = e.className, u = e.style, l = e.controlledProgress, f = e.progress, y = e.rtl, w = e.isIn, v = St({}, u, {
|
|
2364
2364
|
animationDuration: r + "ms",
|
|
2365
2365
|
animationPlayState: i ? "running" : "paused",
|
|
2366
2366
|
opacity: s ? 0 : 1
|
|
2367
2367
|
});
|
|
2368
|
-
l && (v.transform = "scaleX(" +
|
|
2369
|
-
var g = Et("Toastify__progress-bar", l ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", "Toastify__progress-bar--" + o, (t = {}, t["Toastify__progress-bar--rtl"] =
|
|
2370
|
-
rtl:
|
|
2368
|
+
l && (v.transform = "scaleX(" + f + ")");
|
|
2369
|
+
var g = Et("Toastify__progress-bar", l ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", "Toastify__progress-bar--" + o, (t = {}, t["Toastify__progress-bar--rtl"] = y, t)), h = Ue(c) ? c({
|
|
2370
|
+
rtl: y,
|
|
2371
2371
|
type: o,
|
|
2372
2372
|
defaultClassName: g
|
|
2373
|
-
}) : Et(g, c), x = (n = {}, n[l &&
|
|
2373
|
+
}) : Et(g, c), x = (n = {}, n[l && f >= 1 ? "onTransitionEnd" : "onAnimationEnd"] = l && f < 1 ? null : function() {
|
|
2374
2374
|
w && a();
|
|
2375
2375
|
}, n);
|
|
2376
2376
|
return Ge("div", Object.assign({
|
|
@@ -2386,17 +2386,17 @@ Po.defaultProps = {
|
|
|
2386
2386
|
hide: !1
|
|
2387
2387
|
};
|
|
2388
2388
|
var dl = function(t) {
|
|
2389
|
-
var n, r = pl(t), i = r.isRunning, a = r.preventExitTransition, o = r.toastRef, s = r.eventHandlers, c = t.closeButton, u = t.children, l = t.autoClose,
|
|
2389
|
+
var n, r = pl(t), i = r.isRunning, a = r.preventExitTransition, o = r.toastRef, s = r.eventHandlers, c = t.closeButton, u = t.children, l = t.autoClose, f = t.onClick, y = t.type, w = t.hideProgressBar, v = t.closeToast, g = t.transition, h = t.position, x = t.className, T = t.style, C = t.bodyClassName, b = t.bodyStyle, p = t.progressClassName, k = t.progressStyle, N = t.updateId, _ = t.role, q = t.progress, H = t.rtl, U = t.toastId, V = t.deleteToast, R = t.isIn, z = Et("Toastify__toast", "Toastify__toast--" + y, (n = {}, n["Toastify__toast--rtl"] = H, n)), ee = Ue(x) ? x({
|
|
2390
2390
|
rtl: H,
|
|
2391
2391
|
position: h,
|
|
2392
|
-
type:
|
|
2393
|
-
defaultClassName:
|
|
2394
|
-
}) : Et(
|
|
2392
|
+
type: y,
|
|
2393
|
+
defaultClassName: z
|
|
2394
|
+
}) : Et(z, x), K = !!q;
|
|
2395
2395
|
function ce(re) {
|
|
2396
2396
|
if (re) {
|
|
2397
2397
|
var ae = {
|
|
2398
2398
|
closeToast: v,
|
|
2399
|
-
type:
|
|
2399
|
+
type: y
|
|
2400
2400
|
};
|
|
2401
2401
|
if (Ue(re)) return re(ae);
|
|
2402
2402
|
if (cn(re)) return xo(re, ae);
|
|
@@ -2410,7 +2410,7 @@ var dl = function(t) {
|
|
|
2410
2410
|
nodeRef: o
|
|
2411
2411
|
}, Ge("div", Object.assign({
|
|
2412
2412
|
id: U,
|
|
2413
|
-
onClick:
|
|
2413
|
+
onClick: f,
|
|
2414
2414
|
className: ee
|
|
2415
2415
|
}, s, {
|
|
2416
2416
|
style: T,
|
|
@@ -2418,10 +2418,10 @@ var dl = function(t) {
|
|
|
2418
2418
|
}), Ge("div", Object.assign({}, R && {
|
|
2419
2419
|
role: _
|
|
2420
2420
|
}, {
|
|
2421
|
-
className: Ue(
|
|
2422
|
-
type:
|
|
2423
|
-
}) : Et("Toastify__toast-body",
|
|
2424
|
-
style:
|
|
2421
|
+
className: Ue(C) ? C({
|
|
2422
|
+
type: y
|
|
2423
|
+
}) : Et("Toastify__toast-body", C),
|
|
2424
|
+
style: b
|
|
2425
2425
|
}), u), ce(c), (l || K) && Ge(Po, Object.assign({}, N && !K ? {
|
|
2426
2426
|
key: "pb-" + N
|
|
2427
2427
|
} : {}, {
|
|
@@ -2431,9 +2431,9 @@ var dl = function(t) {
|
|
|
2431
2431
|
isIn: R,
|
|
2432
2432
|
closeToast: v,
|
|
2433
2433
|
hide: w,
|
|
2434
|
-
type:
|
|
2434
|
+
type: y,
|
|
2435
2435
|
style: k,
|
|
2436
|
-
className:
|
|
2436
|
+
className: p,
|
|
2437
2437
|
controlledProgress: K,
|
|
2438
2438
|
progress: q
|
|
2439
2439
|
}))));
|
|
@@ -2443,10 +2443,10 @@ var dl = function(t) {
|
|
|
2443
2443
|
appendPosition: !0
|
|
2444
2444
|
}), vi = function(t) {
|
|
2445
2445
|
var n = ul(t), r = n.getToastToRender, i = n.containerRef, a = n.isToastActive, o = t.className, s = t.style, c = t.rtl, u = t.containerId;
|
|
2446
|
-
function l(
|
|
2447
|
-
var
|
|
2446
|
+
function l(f) {
|
|
2447
|
+
var y, w = Et("Toastify__toast-container", "Toastify__toast-container--" + f, (y = {}, y["Toastify__toast-container--rtl"] = c, y));
|
|
2448
2448
|
return Ue(o) ? o({
|
|
2449
|
-
position:
|
|
2449
|
+
position: f,
|
|
2450
2450
|
rtl: c,
|
|
2451
2451
|
defaultClassName: w
|
|
2452
2452
|
}) : Et(w, In(o));
|
|
@@ -2455,15 +2455,15 @@ var dl = function(t) {
|
|
|
2455
2455
|
ref: i,
|
|
2456
2456
|
className: "Toastify",
|
|
2457
2457
|
id: u
|
|
2458
|
-
}, r(function(
|
|
2459
|
-
var w =
|
|
2458
|
+
}, r(function(f, y) {
|
|
2459
|
+
var w = y.length === 0 ? St({}, s, {
|
|
2460
2460
|
pointerEvents: "none"
|
|
2461
2461
|
}) : St({}, s);
|
|
2462
2462
|
return Ge("div", {
|
|
2463
|
-
className: l(
|
|
2463
|
+
className: l(f),
|
|
2464
2464
|
style: w,
|
|
2465
|
-
key: "container-" +
|
|
2466
|
-
},
|
|
2465
|
+
key: "container-" + f
|
|
2466
|
+
}, y.map(function(v) {
|
|
2467
2467
|
var g = v.content, h = v.props;
|
|
2468
2468
|
return Ge(dl, Object.assign({}, h, {
|
|
2469
2469
|
isIn: a(h.toastId),
|
|
@@ -3058,34 +3058,34 @@ function lr(e, t, n) {
|
|
|
3058
3058
|
if (E.endsWith(g, "{}"))
|
|
3059
3059
|
g = r ? g : g.slice(0, -2), v = JSON.stringify(v);
|
|
3060
3060
|
else if (E.isArray(v) && au(v) || (E.isFileList(v) || E.endsWith(g, "[]")) && (x = E.toArray(v)))
|
|
3061
|
-
return g = Wo(g), x.forEach(function(
|
|
3062
|
-
!(E.isUndefined(
|
|
3061
|
+
return g = Wo(g), x.forEach(function(C, b) {
|
|
3062
|
+
!(E.isUndefined(C) || C === null) && t.append(
|
|
3063
3063
|
// eslint-disable-next-line no-nested-ternary
|
|
3064
|
-
o === !0 ? ua([g],
|
|
3065
|
-
u(
|
|
3064
|
+
o === !0 ? ua([g], b, a) : o === null ? g : g + "[]",
|
|
3065
|
+
u(C)
|
|
3066
3066
|
);
|
|
3067
3067
|
}), !1;
|
|
3068
3068
|
}
|
|
3069
3069
|
return Gr(v) ? !0 : (t.append(ua(h, g, a), u(v)), !1);
|
|
3070
3070
|
}
|
|
3071
|
-
const
|
|
3071
|
+
const f = [], y = Object.assign(ou, {
|
|
3072
3072
|
defaultVisitor: l,
|
|
3073
3073
|
convertValue: u,
|
|
3074
3074
|
isVisitable: Gr
|
|
3075
3075
|
});
|
|
3076
3076
|
function w(v, g) {
|
|
3077
3077
|
if (!E.isUndefined(v)) {
|
|
3078
|
-
if (
|
|
3078
|
+
if (f.indexOf(v) !== -1)
|
|
3079
3079
|
throw Error("Circular reference detected in " + g.join("."));
|
|
3080
|
-
|
|
3080
|
+
f.push(v), E.forEach(v, function(x, T) {
|
|
3081
3081
|
(!(E.isUndefined(x) || x === null) && i.call(
|
|
3082
3082
|
t,
|
|
3083
3083
|
x,
|
|
3084
3084
|
E.isString(T) ? T.trim() : T,
|
|
3085
3085
|
g,
|
|
3086
|
-
|
|
3086
|
+
y
|
|
3087
3087
|
)) === !0 && w(x, g ? g.concat(T) : [T]);
|
|
3088
|
-
}),
|
|
3088
|
+
}), f.pop();
|
|
3089
3089
|
}
|
|
3090
3090
|
}
|
|
3091
3091
|
if (!E.isObject(e))
|
|
@@ -3405,8 +3405,8 @@ let He = class {
|
|
|
3405
3405
|
const l = nn(c);
|
|
3406
3406
|
if (!l)
|
|
3407
3407
|
throw new Error("header name must be a non-empty string");
|
|
3408
|
-
const
|
|
3409
|
-
(!
|
|
3408
|
+
const f = E.findKey(i, l);
|
|
3409
|
+
(!f || i[f] === void 0 || u === !0 || u === void 0 && i[f] !== !1) && (i[f || c] = zn(s));
|
|
3410
3410
|
}
|
|
3411
3411
|
const o = (s, c) => E.forEach(s, (u, l) => a(u, l, c));
|
|
3412
3412
|
if (E.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -3569,13 +3569,13 @@ function Ou(e, t) {
|
|
|
3569
3569
|
return t = t !== void 0 ? t : 1e3, function(c) {
|
|
3570
3570
|
const u = Date.now(), l = r[a];
|
|
3571
3571
|
o || (o = u), n[i] = c, r[i] = u;
|
|
3572
|
-
let
|
|
3573
|
-
for (;
|
|
3574
|
-
|
|
3572
|
+
let f = a, y = 0;
|
|
3573
|
+
for (; f !== i; )
|
|
3574
|
+
y += n[f++], f = f % e;
|
|
3575
3575
|
if (i = (i + 1) % e, i === a && (a = (a + 1) % e), u - o < t)
|
|
3576
3576
|
return;
|
|
3577
3577
|
const w = l && u - l;
|
|
3578
|
-
return w ? Math.round(
|
|
3578
|
+
return w ? Math.round(y * 1e3 / w) : void 0;
|
|
3579
3579
|
};
|
|
3580
3580
|
}
|
|
3581
3581
|
function ju(e, t) {
|
|
@@ -3584,10 +3584,10 @@ function ju(e, t) {
|
|
|
3584
3584
|
n = l, i = null, a && (clearTimeout(a), a = null), e(...u);
|
|
3585
3585
|
};
|
|
3586
3586
|
return [(...u) => {
|
|
3587
|
-
const l = Date.now(),
|
|
3588
|
-
|
|
3587
|
+
const l = Date.now(), f = l - n;
|
|
3588
|
+
f >= r ? o(u, l) : (i = u, a || (a = setTimeout(() => {
|
|
3589
3589
|
a = null, o(i);
|
|
3590
|
-
}, r -
|
|
3590
|
+
}, r - f)));
|
|
3591
3591
|
}, () => i && o(i)];
|
|
3592
3592
|
}
|
|
3593
3593
|
const Kn = (e, t, n = 3) => {
|
|
@@ -3596,7 +3596,7 @@ const Kn = (e, t, n = 3) => {
|
|
|
3596
3596
|
return ju((a) => {
|
|
3597
3597
|
const o = a.loaded, s = a.lengthComputable ? a.total : void 0, c = o - r, u = i(c), l = o <= s;
|
|
3598
3598
|
r = o;
|
|
3599
|
-
const
|
|
3599
|
+
const f = {
|
|
3600
3600
|
loaded: o,
|
|
3601
3601
|
total: s,
|
|
3602
3602
|
progress: s ? o / s : void 0,
|
|
@@ -3607,7 +3607,7 @@ const Kn = (e, t, n = 3) => {
|
|
|
3607
3607
|
lengthComputable: s != null,
|
|
3608
3608
|
[t ? "download" : "upload"]: !0
|
|
3609
3609
|
};
|
|
3610
|
-
e(
|
|
3610
|
+
e(f);
|
|
3611
3611
|
}, n);
|
|
3612
3612
|
}, ma = (e, t) => {
|
|
3613
3613
|
const n = e != null;
|
|
@@ -3660,14 +3660,14 @@ const ha = (e) => e instanceof He ? { ...e } : e;
|
|
|
3660
3660
|
function Tt(e, t) {
|
|
3661
3661
|
t = t || {};
|
|
3662
3662
|
const n = {};
|
|
3663
|
-
function r(u, l,
|
|
3664
|
-
return E.isPlainObject(u) && E.isPlainObject(l) ? E.merge.call({ caseless:
|
|
3663
|
+
function r(u, l, f, y) {
|
|
3664
|
+
return E.isPlainObject(u) && E.isPlainObject(l) ? E.merge.call({ caseless: y }, u, l) : E.isPlainObject(l) ? E.merge({}, l) : E.isArray(l) ? l.slice() : l;
|
|
3665
3665
|
}
|
|
3666
|
-
function i(u, l,
|
|
3666
|
+
function i(u, l, f, y) {
|
|
3667
3667
|
if (E.isUndefined(l)) {
|
|
3668
3668
|
if (!E.isUndefined(u))
|
|
3669
|
-
return r(void 0, u,
|
|
3670
|
-
} else return r(u, l,
|
|
3669
|
+
return r(void 0, u, f, y);
|
|
3670
|
+
} else return r(u, l, f, y);
|
|
3671
3671
|
}
|
|
3672
3672
|
function a(u, l) {
|
|
3673
3673
|
if (!E.isUndefined(l))
|
|
@@ -3679,10 +3679,10 @@ function Tt(e, t) {
|
|
|
3679
3679
|
return r(void 0, u);
|
|
3680
3680
|
} else return r(void 0, l);
|
|
3681
3681
|
}
|
|
3682
|
-
function s(u, l,
|
|
3683
|
-
if (
|
|
3682
|
+
function s(u, l, f) {
|
|
3683
|
+
if (f in t)
|
|
3684
3684
|
return r(u, l);
|
|
3685
|
-
if (
|
|
3685
|
+
if (f in e)
|
|
3686
3686
|
return r(void 0, u);
|
|
3687
3687
|
}
|
|
3688
3688
|
const c = {
|
|
@@ -3714,11 +3714,11 @@ function Tt(e, t) {
|
|
|
3714
3714
|
socketPath: o,
|
|
3715
3715
|
responseEncoding: o,
|
|
3716
3716
|
validateStatus: s,
|
|
3717
|
-
headers: (u, l,
|
|
3717
|
+
headers: (u, l, f) => i(ha(u), ha(l), f, !0)
|
|
3718
3718
|
};
|
|
3719
3719
|
return E.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
3720
|
-
const
|
|
3721
|
-
E.isUndefined(
|
|
3720
|
+
const f = c[l] || i, y = f(e[l], t[l], l);
|
|
3721
|
+
E.isUndefined(y) && f !== s || (n[l] = y);
|
|
3722
3722
|
}), n;
|
|
3723
3723
|
}
|
|
3724
3724
|
const es = (e) => {
|
|
@@ -3732,8 +3732,8 @@ const es = (e) => {
|
|
|
3732
3732
|
o.setContentType(void 0);
|
|
3733
3733
|
else if (E.isFunction(n.getHeaders)) {
|
|
3734
3734
|
const c = n.getHeaders(), u = ["content-type", "content-length"];
|
|
3735
|
-
Object.entries(c).forEach(([l,
|
|
3736
|
-
u.includes(l.toLowerCase()) && o.set(l,
|
|
3735
|
+
Object.entries(c).forEach(([l, f]) => {
|
|
3736
|
+
u.includes(l.toLowerCase()) && o.set(l, f);
|
|
3737
3737
|
});
|
|
3738
3738
|
}
|
|
3739
3739
|
}
|
|
@@ -3747,7 +3747,7 @@ const es = (e) => {
|
|
|
3747
3747
|
const i = es(e);
|
|
3748
3748
|
let a = i.data;
|
|
3749
3749
|
const o = He.from(i.headers).normalize();
|
|
3750
|
-
let { responseType: s, onUploadProgress: c, onDownloadProgress: u } = i, l,
|
|
3750
|
+
let { responseType: s, onUploadProgress: c, onDownloadProgress: u } = i, l, f, y, w, v;
|
|
3751
3751
|
function g() {
|
|
3752
3752
|
w && w(), v && v(), i.cancelToken && i.cancelToken.unsubscribe(l), i.signal && i.signal.removeEventListener("abort", l);
|
|
3753
3753
|
}
|
|
@@ -3756,13 +3756,13 @@ const es = (e) => {
|
|
|
3756
3756
|
function x() {
|
|
3757
3757
|
if (!h)
|
|
3758
3758
|
return;
|
|
3759
|
-
const
|
|
3759
|
+
const C = He.from(
|
|
3760
3760
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
3761
|
-
),
|
|
3761
|
+
), p = {
|
|
3762
3762
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
3763
3763
|
status: h.status,
|
|
3764
3764
|
statusText: h.statusText,
|
|
3765
|
-
headers:
|
|
3765
|
+
headers: C,
|
|
3766
3766
|
config: e,
|
|
3767
3767
|
request: h
|
|
3768
3768
|
};
|
|
@@ -3770,28 +3770,28 @@ const es = (e) => {
|
|
|
3770
3770
|
n(N), g();
|
|
3771
3771
|
}, function(N) {
|
|
3772
3772
|
r(N), g();
|
|
3773
|
-
},
|
|
3773
|
+
}, p), h = null;
|
|
3774
3774
|
}
|
|
3775
3775
|
"onloadend" in h ? h.onloadend = x : h.onreadystatechange = function() {
|
|
3776
3776
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(x);
|
|
3777
3777
|
}, h.onabort = function() {
|
|
3778
3778
|
h && (r(new te("Request aborted", te.ECONNABORTED, e, h)), h = null);
|
|
3779
|
-
}, h.onerror = function(
|
|
3780
|
-
const
|
|
3781
|
-
k.event =
|
|
3779
|
+
}, h.onerror = function(b) {
|
|
3780
|
+
const p = b && b.message ? b.message : "Network Error", k = new te(p, te.ERR_NETWORK, e, h);
|
|
3781
|
+
k.event = b || null, r(k), h = null;
|
|
3782
3782
|
}, h.ontimeout = function() {
|
|
3783
|
-
let
|
|
3784
|
-
const
|
|
3785
|
-
i.timeoutErrorMessage && (
|
|
3786
|
-
|
|
3787
|
-
|
|
3783
|
+
let b = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
3784
|
+
const p = i.transitional || Go;
|
|
3785
|
+
i.timeoutErrorMessage && (b = i.timeoutErrorMessage), r(new te(
|
|
3786
|
+
b,
|
|
3787
|
+
p.clarifyTimeoutError ? te.ETIMEDOUT : te.ECONNABORTED,
|
|
3788
3788
|
e,
|
|
3789
3789
|
h
|
|
3790
3790
|
)), h = null;
|
|
3791
|
-
}, a === void 0 && o.setContentType(null), "setRequestHeader" in h && E.forEach(o.toJSON(), function(
|
|
3792
|
-
h.setRequestHeader(
|
|
3793
|
-
}), E.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), s && s !== "json" && (h.responseType = i.responseType), u && ([
|
|
3794
|
-
h && (r(!
|
|
3791
|
+
}, a === void 0 && o.setContentType(null), "setRequestHeader" in h && E.forEach(o.toJSON(), function(b, p) {
|
|
3792
|
+
h.setRequestHeader(p, b);
|
|
3793
|
+
}), E.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), s && s !== "json" && (h.responseType = i.responseType), u && ([y, v] = Kn(u, !0), h.addEventListener("progress", y)), c && h.upload && ([f, w] = Kn(c), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", w)), (i.cancelToken || i.signal) && (l = (C) => {
|
|
3794
|
+
h && (r(!C || C.type ? new Ht(null, e, h) : C), h.abort(), h = null);
|
|
3795
3795
|
}, i.cancelToken && i.cancelToken.subscribe(l), i.signal && (i.signal.aborted ? l() : i.signal.addEventListener("abort", l)));
|
|
3796
3796
|
const T = Cu(i.url);
|
|
3797
3797
|
if (T && De.protocols.indexOf(T) === -1) {
|
|
@@ -3864,10 +3864,10 @@ const es = (e) => {
|
|
|
3864
3864
|
s(), c.close();
|
|
3865
3865
|
return;
|
|
3866
3866
|
}
|
|
3867
|
-
let
|
|
3867
|
+
let f = l.byteLength;
|
|
3868
3868
|
if (n) {
|
|
3869
|
-
let
|
|
3870
|
-
n(
|
|
3869
|
+
let y = a += f;
|
|
3870
|
+
n(y);
|
|
3871
3871
|
}
|
|
3872
3872
|
c.enqueue(new Uint8Array(l));
|
|
3873
3873
|
} catch (u) {
|
|
@@ -3909,18 +3909,18 @@ const es = (e) => {
|
|
|
3909
3909
|
}
|
|
3910
3910
|
}).headers.has("Content-Type");
|
|
3911
3911
|
return v && !g;
|
|
3912
|
-
}), l = o && s && Ea(() => E.isReadableStream(new r("").body)),
|
|
3912
|
+
}), l = o && s && Ea(() => E.isReadableStream(new r("").body)), f = {
|
|
3913
3913
|
stream: l && ((v) => v.body)
|
|
3914
3914
|
};
|
|
3915
3915
|
i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((v) => {
|
|
3916
|
-
!
|
|
3916
|
+
!f[v] && (f[v] = (g, h) => {
|
|
3917
3917
|
let x = g && g[v];
|
|
3918
3918
|
if (x)
|
|
3919
3919
|
return x.call(g);
|
|
3920
3920
|
throw new te(`Response type '${v}' is not supported`, te.ERR_NOT_SUPPORT, h);
|
|
3921
3921
|
});
|
|
3922
3922
|
});
|
|
3923
|
-
const
|
|
3923
|
+
const y = async (v) => {
|
|
3924
3924
|
if (v == null)
|
|
3925
3925
|
return 0;
|
|
3926
3926
|
if (E.isBlob(v))
|
|
@@ -3936,7 +3936,7 @@ const es = (e) => {
|
|
|
3936
3936
|
return (await c(v)).byteLength;
|
|
3937
3937
|
}, w = async (v, g) => {
|
|
3938
3938
|
const h = E.toFiniteNumber(v.getContentLength());
|
|
3939
|
-
return h ??
|
|
3939
|
+
return h ?? y(g);
|
|
3940
3940
|
};
|
|
3941
3941
|
return async (v) => {
|
|
3942
3942
|
let {
|
|
@@ -3944,9 +3944,9 @@ const es = (e) => {
|
|
|
3944
3944
|
method: h,
|
|
3945
3945
|
data: x,
|
|
3946
3946
|
signal: T,
|
|
3947
|
-
cancelToken:
|
|
3948
|
-
timeout:
|
|
3949
|
-
onDownloadProgress:
|
|
3947
|
+
cancelToken: C,
|
|
3948
|
+
timeout: b,
|
|
3949
|
+
onDownloadProgress: p,
|
|
3950
3950
|
onUploadProgress: k,
|
|
3951
3951
|
responseType: N,
|
|
3952
3952
|
headers: _,
|
|
@@ -3954,8 +3954,8 @@ const es = (e) => {
|
|
|
3954
3954
|
fetchOptions: H
|
|
3955
3955
|
} = es(v), U = t || fetch;
|
|
3956
3956
|
N = N ? (N + "").toLowerCase() : "text";
|
|
3957
|
-
let V = Fu([T,
|
|
3958
|
-
const
|
|
3957
|
+
let V = Fu([T, C && C.toAbortSignal()], b), R = null;
|
|
3958
|
+
const z = V && V.unsubscribe && (() => {
|
|
3959
3959
|
V.unsubscribe();
|
|
3960
3960
|
});
|
|
3961
3961
|
let ee;
|
|
@@ -3965,13 +3965,13 @@ const es = (e) => {
|
|
|
3965
3965
|
method: "POST",
|
|
3966
3966
|
body: x,
|
|
3967
3967
|
duplex: "half"
|
|
3968
|
-
}),
|
|
3969
|
-
if (E.isFormData(x) && (
|
|
3970
|
-
const [
|
|
3968
|
+
}), D;
|
|
3969
|
+
if (E.isFormData(x) && (D = P.headers.get("content-type")) && _.setContentType(D), P.body) {
|
|
3970
|
+
const [j, $] = ma(
|
|
3971
3971
|
ee,
|
|
3972
3972
|
Kn(va(k))
|
|
3973
3973
|
);
|
|
3974
|
-
x = ga(P.body, xa,
|
|
3974
|
+
x = ga(P.body, xa, j, $);
|
|
3975
3975
|
}
|
|
3976
3976
|
}
|
|
3977
3977
|
E.isString(q) || (q = q ? "include" : "omit");
|
|
@@ -3987,26 +3987,26 @@ const es = (e) => {
|
|
|
3987
3987
|
R = a && new n(g, ce);
|
|
3988
3988
|
let re = await (a ? U(R, H) : U(g, ce));
|
|
3989
3989
|
const ae = l && (N === "stream" || N === "response");
|
|
3990
|
-
if (l && (
|
|
3990
|
+
if (l && (p || ae && z)) {
|
|
3991
3991
|
const P = {};
|
|
3992
3992
|
["status", "statusText", "headers"].forEach((J) => {
|
|
3993
3993
|
P[J] = re[J];
|
|
3994
3994
|
});
|
|
3995
|
-
const
|
|
3996
|
-
|
|
3997
|
-
Kn(va(
|
|
3995
|
+
const D = E.toFiniteNumber(re.headers.get("content-length")), [j, $] = p && ma(
|
|
3996
|
+
D,
|
|
3997
|
+
Kn(va(p), !0)
|
|
3998
3998
|
) || [];
|
|
3999
3999
|
re = new r(
|
|
4000
|
-
ga(re.body, xa,
|
|
4001
|
-
|
|
4000
|
+
ga(re.body, xa, j, () => {
|
|
4001
|
+
$ && $(), z && z();
|
|
4002
4002
|
}),
|
|
4003
4003
|
P
|
|
4004
4004
|
);
|
|
4005
4005
|
}
|
|
4006
4006
|
N = N || "text";
|
|
4007
|
-
let O = await
|
|
4008
|
-
return !ae &&
|
|
4009
|
-
Xo(P,
|
|
4007
|
+
let O = await f[E.findKey(f, N) || "text"](re, v);
|
|
4008
|
+
return !ae && z && z(), await new Promise((P, D) => {
|
|
4009
|
+
Xo(P, D, {
|
|
4010
4010
|
data: O,
|
|
4011
4011
|
headers: He.from(re.headers),
|
|
4012
4012
|
status: re.status,
|
|
@@ -4016,7 +4016,7 @@ const es = (e) => {
|
|
|
4016
4016
|
});
|
|
4017
4017
|
});
|
|
4018
4018
|
} catch (K) {
|
|
4019
|
-
throw
|
|
4019
|
+
throw z && z(), K && K.name === "TypeError" && /Load failed|fetch/i.test(K.message) ? Object.assign(
|
|
4020
4020
|
new te("Network Error", te.ERR_NETWORK, v, R),
|
|
4021
4021
|
{
|
|
4022
4022
|
cause: K.cause || K
|
|
@@ -4222,17 +4222,17 @@ let wt = class {
|
|
|
4222
4222
|
this.interceptors.response.forEach(function(g) {
|
|
4223
4223
|
u.push(g.fulfilled, g.rejected);
|
|
4224
4224
|
});
|
|
4225
|
-
let l,
|
|
4225
|
+
let l, f = 0, y;
|
|
4226
4226
|
if (!c) {
|
|
4227
4227
|
const v = [Sa.bind(this), void 0];
|
|
4228
|
-
for (v.unshift(...s), v.push(...u),
|
|
4229
|
-
l = l.then(v[
|
|
4228
|
+
for (v.unshift(...s), v.push(...u), y = v.length, l = Promise.resolve(n); f < y; )
|
|
4229
|
+
l = l.then(v[f++], v[f++]);
|
|
4230
4230
|
return l;
|
|
4231
4231
|
}
|
|
4232
|
-
|
|
4232
|
+
y = s.length;
|
|
4233
4233
|
let w = n;
|
|
4234
|
-
for (;
|
|
4235
|
-
const v = s[
|
|
4234
|
+
for (; f < y; ) {
|
|
4235
|
+
const v = s[f++], g = s[f++];
|
|
4236
4236
|
try {
|
|
4237
4237
|
w = v(w);
|
|
4238
4238
|
} catch (h) {
|
|
@@ -4245,8 +4245,8 @@ let wt = class {
|
|
|
4245
4245
|
} catch (v) {
|
|
4246
4246
|
return Promise.reject(v);
|
|
4247
4247
|
}
|
|
4248
|
-
for (
|
|
4249
|
-
l = l.then(u[
|
|
4248
|
+
for (f = 0, y = u.length; f < y; )
|
|
4249
|
+
l = l.then(u[f++], u[f++]);
|
|
4250
4250
|
return l;
|
|
4251
4251
|
}
|
|
4252
4252
|
getUri(t) {
|
|
@@ -4617,7 +4617,7 @@ function os(e, t, n) {
|
|
|
4617
4617
|
throw new Error(process.env.NODE_ENV === "production" ? We(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
4618
4618
|
return a;
|
|
4619
4619
|
}
|
|
4620
|
-
function
|
|
4620
|
+
function f(g) {
|
|
4621
4621
|
if (typeof g != "function")
|
|
4622
4622
|
throw new Error(process.env.NODE_ENV === "production" ? We(4) : "Expected the listener to be a function. Instead, received: '" + Nt(g) + "'");
|
|
4623
4623
|
if (c)
|
|
@@ -4633,7 +4633,7 @@ function os(e, t, n) {
|
|
|
4633
4633
|
}
|
|
4634
4634
|
};
|
|
4635
4635
|
}
|
|
4636
|
-
function
|
|
4636
|
+
function y(g) {
|
|
4637
4637
|
if (!tp(g))
|
|
4638
4638
|
throw new Error(process.env.NODE_ENV === "production" ? We(7) : "Actions must be plain objects. Instead, the actual type was: '" + Nt(g) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
|
|
4639
4639
|
if (typeof g.type > "u")
|
|
@@ -4654,12 +4654,12 @@ function os(e, t, n) {
|
|
|
4654
4654
|
function w(g) {
|
|
4655
4655
|
if (typeof g != "function")
|
|
4656
4656
|
throw new Error(process.env.NODE_ENV === "production" ? We(10) : "Expected the nextReducer to be a function. Instead, received: '" + Nt(g));
|
|
4657
|
-
i = g,
|
|
4657
|
+
i = g, y({
|
|
4658
4658
|
type: Aa.REPLACE
|
|
4659
4659
|
});
|
|
4660
4660
|
}
|
|
4661
4661
|
function v() {
|
|
4662
|
-
var g, h =
|
|
4662
|
+
var g, h = f;
|
|
4663
4663
|
return g = {
|
|
4664
4664
|
/**
|
|
4665
4665
|
* The minimal observable subscription method.
|
|
@@ -4672,24 +4672,24 @@ function os(e, t, n) {
|
|
|
4672
4672
|
subscribe: function(T) {
|
|
4673
4673
|
if (typeof T != "object" || T === null)
|
|
4674
4674
|
throw new Error(process.env.NODE_ENV === "production" ? We(11) : "Expected the observer to be an object. Instead, received: '" + Nt(T) + "'");
|
|
4675
|
-
function
|
|
4675
|
+
function C() {
|
|
4676
4676
|
T.next && T.next(l());
|
|
4677
4677
|
}
|
|
4678
|
-
|
|
4679
|
-
var
|
|
4678
|
+
C();
|
|
4679
|
+
var b = h(C);
|
|
4680
4680
|
return {
|
|
4681
|
-
unsubscribe:
|
|
4681
|
+
unsubscribe: b
|
|
4682
4682
|
};
|
|
4683
4683
|
}
|
|
4684
4684
|
}, g[ja] = function() {
|
|
4685
4685
|
return this;
|
|
4686
4686
|
}, g;
|
|
4687
4687
|
}
|
|
4688
|
-
return
|
|
4688
|
+
return y({
|
|
4689
4689
|
type: Aa.INIT
|
|
4690
4690
|
}), r = {
|
|
4691
|
-
dispatch:
|
|
4692
|
-
subscribe:
|
|
4691
|
+
dispatch: y,
|
|
4692
|
+
subscribe: f,
|
|
4693
4693
|
getState: l,
|
|
4694
4694
|
replaceReducer: w
|
|
4695
4695
|
}, r[ja] = v, r;
|
|
@@ -4875,8 +4875,8 @@ function Es(e, t) {
|
|
|
4875
4875
|
i === r && (a = !0, t(o));
|
|
4876
4876
|
}
|
|
4877
4877
|
return n.forEach(function(u) {
|
|
4878
|
-
var l = function(
|
|
4879
|
-
a || (w || bs(
|
|
4878
|
+
var l = function(y, w) {
|
|
4879
|
+
a || (w || bs(y) ? (t.cancel(), t(y, w)) : (o[u] = y, i++, c()));
|
|
4880
4880
|
};
|
|
4881
4881
|
l.cancel = Ne, s[u] = l;
|
|
4882
4882
|
}), t.cancel = function() {
|
|
@@ -4928,7 +4928,7 @@ function Rp(e, t) {
|
|
|
4928
4928
|
if (r < e)
|
|
4929
4929
|
o(l);
|
|
4930
4930
|
else {
|
|
4931
|
-
var
|
|
4931
|
+
var f;
|
|
4932
4932
|
switch (t) {
|
|
4933
4933
|
case Op:
|
|
4934
4934
|
throw new Error(Cp);
|
|
@@ -4936,7 +4936,7 @@ function Rp(e, t) {
|
|
|
4936
4936
|
n[i] = l, i = (i + 1) % e, a = i;
|
|
4937
4937
|
break;
|
|
4938
4938
|
case Ss:
|
|
4939
|
-
|
|
4939
|
+
f = 2 * e, n = c(), r = n.length, i = n.length, a = 0, n.length = f, e = f, o(l);
|
|
4940
4940
|
break;
|
|
4941
4941
|
}
|
|
4942
4942
|
}
|
|
@@ -5142,8 +5142,8 @@ function Qp(e) {
|
|
|
5142
5142
|
var c = n;
|
|
5143
5143
|
n = [];
|
|
5144
5144
|
for (var u = 0, l = c.length; u < l; u++) {
|
|
5145
|
-
var
|
|
5146
|
-
|
|
5145
|
+
var f = c[u];
|
|
5146
|
+
f(an);
|
|
5147
5147
|
}
|
|
5148
5148
|
}
|
|
5149
5149
|
}
|
|
@@ -5175,9 +5175,9 @@ function Xp() {
|
|
|
5175
5175
|
o();
|
|
5176
5176
|
return;
|
|
5177
5177
|
}
|
|
5178
|
-
for (var u = n = r, l = 0,
|
|
5179
|
-
var
|
|
5180
|
-
|
|
5178
|
+
for (var u = n = r, l = 0, f = u.length; l < f; l++) {
|
|
5179
|
+
var y = u[l];
|
|
5180
|
+
y[ka](c) && (y.cancel(), y(c));
|
|
5181
5181
|
}
|
|
5182
5182
|
}
|
|
5183
5183
|
}, e.take = function(c, u) {
|
|
@@ -5316,8 +5316,8 @@ function ad(e, t, n, r) {
|
|
|
5316
5316
|
args: o
|
|
5317
5317
|
}), l = Zp(u, a);
|
|
5318
5318
|
Ds(function() {
|
|
5319
|
-
var
|
|
5320
|
-
s ? n(
|
|
5319
|
+
var f = hr(e, u, c.context, En, l, s, void 0);
|
|
5320
|
+
s ? n(f) : f.isRunning() ? (c.queue.addTask(f), n(f)) : f.isAborted() ? c.queue.abort(f.error()) : n(f);
|
|
5321
5321
|
});
|
|
5322
5322
|
}
|
|
5323
5323
|
function od(e, t, n, r) {
|
|
@@ -5366,10 +5366,10 @@ function cd(e, t, n, r) {
|
|
|
5366
5366
|
function ld(e, t, n, r) {
|
|
5367
5367
|
var i = r.digestEffect, a = En, o = Object.keys(t), s = Je(t) ? gs(o.length) : {}, c = {}, u = !1;
|
|
5368
5368
|
o.forEach(function(l) {
|
|
5369
|
-
var
|
|
5369
|
+
var f = function(w, v) {
|
|
5370
5370
|
u || (v || bs(w) ? (n.cancel(), n(w, v)) : (n.cancel(), u = !0, s[l] = w, n(s)));
|
|
5371
5371
|
};
|
|
5372
|
-
|
|
5372
|
+
f.cancel = Ne, c[l] = f;
|
|
5373
5373
|
}), n.cancel = function() {
|
|
5374
5374
|
u || (u = !0, o.forEach(function(l) {
|
|
5375
5375
|
return c[l].cancel();
|
|
@@ -5421,8 +5421,8 @@ function gd(e, t, n) {
|
|
|
5421
5421
|
t(), u(), n(l, !0);
|
|
5422
5422
|
}
|
|
5423
5423
|
function c(l) {
|
|
5424
|
-
r.push(l), l.cont = function(
|
|
5425
|
-
a || (mr(r, l), l.cont = Ne,
|
|
5424
|
+
r.push(l), l.cont = function(f, y) {
|
|
5425
|
+
a || (mr(r, l), l.cont = Ne, y ? s(f) : (l === e && (i = f), r.length || (a = !0, n(i))));
|
|
5426
5426
|
};
|
|
5427
5427
|
}
|
|
5428
5428
|
function u() {
|
|
@@ -5476,40 +5476,40 @@ var ji = null, on = [], bd = function(t) {
|
|
|
5476
5476
|
function Sd(e, t, n, r, i, a, o) {
|
|
5477
5477
|
var s;
|
|
5478
5478
|
o === void 0 && (o = Ne);
|
|
5479
|
-
var c = xt, u, l,
|
|
5480
|
-
|
|
5481
|
-
return
|
|
5479
|
+
var c = xt, u, l, f = null, y = [], w = Object.create(n), v = gd(t, function() {
|
|
5480
|
+
y.push.apply(y, v.getTasks().map(function(p) {
|
|
5481
|
+
return p.meta.name;
|
|
5482
5482
|
}));
|
|
5483
5483
|
}, h);
|
|
5484
5484
|
function g() {
|
|
5485
5485
|
c === xt && (c = ct, v.cancelAll(), h(zt, !1));
|
|
5486
5486
|
}
|
|
5487
|
-
function h(
|
|
5488
|
-
if (!
|
|
5489
|
-
|
|
5487
|
+
function h(b, p) {
|
|
5488
|
+
if (!p)
|
|
5489
|
+
b === zt ? c = ct : c !== ct && (c = qs), u = b, f && f.resolve(b);
|
|
5490
5490
|
else {
|
|
5491
5491
|
if (c = qn, bd({
|
|
5492
5492
|
meta: i,
|
|
5493
|
-
cancelledTasks:
|
|
5494
|
-
}),
|
|
5493
|
+
cancelledTasks: y
|
|
5494
|
+
}), C.isRoot) {
|
|
5495
5495
|
var k = wd();
|
|
5496
|
-
Hs(), e.onError(
|
|
5496
|
+
Hs(), e.onError(b, {
|
|
5497
5497
|
sagaStack: k
|
|
5498
5498
|
});
|
|
5499
5499
|
}
|
|
5500
|
-
l =
|
|
5500
|
+
l = b, f && f.reject(b);
|
|
5501
5501
|
}
|
|
5502
|
-
|
|
5503
|
-
N.cb(
|
|
5504
|
-
}),
|
|
5502
|
+
C.cont(b, p), C.joiners.forEach(function(N) {
|
|
5503
|
+
N.cb(b, p);
|
|
5504
|
+
}), C.joiners = null;
|
|
5505
5505
|
}
|
|
5506
|
-
function x(
|
|
5507
|
-
process.env.NODE_ENV !== "production" && se(
|
|
5506
|
+
function x(b) {
|
|
5507
|
+
process.env.NODE_ENV !== "production" && se(b, Ei, hs("task", b)), wi(w, b);
|
|
5508
5508
|
}
|
|
5509
5509
|
function T() {
|
|
5510
|
-
return
|
|
5510
|
+
return f || (f = Vp(), c === qn ? f.reject(l) : c !== xt && f.resolve(u)), f.promise;
|
|
5511
5511
|
}
|
|
5512
|
-
var
|
|
5512
|
+
var C = (s = {}, s[ps] = !0, s.id = r, s.meta = i, s.isRoot = a, s.context = w, s.joiners = [], s.queue = v, s.cancel = g, s.cont = o, s.end = h, s.setContext = x, s.toPromise = T, s.isRunning = function() {
|
|
5513
5513
|
return c === xt;
|
|
5514
5514
|
}, s.isCancelled = function() {
|
|
5515
5515
|
return c === ct || c === xt && t.status === ct;
|
|
@@ -5520,34 +5520,34 @@ function Sd(e, t, n, r, i, a, o) {
|
|
|
5520
5520
|
}, s.error = function() {
|
|
5521
5521
|
return l;
|
|
5522
5522
|
}, s);
|
|
5523
|
-
return
|
|
5523
|
+
return C;
|
|
5524
5524
|
}
|
|
5525
5525
|
function hr(e, t, n, r, i, a, o) {
|
|
5526
5526
|
if (process.env.NODE_ENV !== "production" && t[gp])
|
|
5527
5527
|
throw new Error("redux-saga doesn't support async generators, please use only regular ones");
|
|
5528
5528
|
var s = e.finalizeRunEffect(w);
|
|
5529
|
-
|
|
5529
|
+
y.cancel = Ne;
|
|
5530
5530
|
var c = {
|
|
5531
5531
|
meta: i,
|
|
5532
|
-
cancel:
|
|
5532
|
+
cancel: f,
|
|
5533
5533
|
status: xt
|
|
5534
5534
|
}, u = Sd(e, c, n, r, i, a, o), l = {
|
|
5535
5535
|
task: u,
|
|
5536
5536
|
digestEffect: v
|
|
5537
5537
|
};
|
|
5538
|
-
function
|
|
5539
|
-
c.status === xt && (c.status = ct,
|
|
5538
|
+
function f() {
|
|
5539
|
+
c.status === xt && (c.status = ct, y(zt));
|
|
5540
5540
|
}
|
|
5541
|
-
return o && (o.cancel = u.cancel),
|
|
5542
|
-
function
|
|
5541
|
+
return o && (o.cancel = u.cancel), y(), u;
|
|
5542
|
+
function y(g, h) {
|
|
5543
5543
|
try {
|
|
5544
5544
|
var x;
|
|
5545
|
-
h ? (x = t.throw(g), Hs()) : ys(g) ? (c.status = ct,
|
|
5545
|
+
h ? (x = t.throw(g), Hs()) : ys(g) ? (c.status = ct, y.cancel(), x = ge(t.return) ? t.return(zt) : {
|
|
5546
5546
|
done: !0,
|
|
5547
5547
|
value: zt
|
|
5548
5548
|
}) : xs(g) ? x = ge(t.return) ? t.return() : {
|
|
5549
5549
|
done: !0
|
|
5550
|
-
} : x = t.next(g), x.done ? (c.status !== ct && (c.status = qs), c.cont(x.value)) : v(x.value, r,
|
|
5550
|
+
} : x = t.next(g), x.done ? (c.status !== ct && (c.status = qs), c.cont(x.value)) : v(x.value, r, y);
|
|
5551
5551
|
} catch (T) {
|
|
5552
5552
|
if (c.status === ct)
|
|
5553
5553
|
throw T;
|
|
@@ -5576,27 +5576,27 @@ function hr(e, t, n, r, i, a, o) {
|
|
|
5576
5576
|
}
|
|
5577
5577
|
function v(g, h, x, T) {
|
|
5578
5578
|
T === void 0 && (T = "");
|
|
5579
|
-
var
|
|
5579
|
+
var C = Us();
|
|
5580
5580
|
e.sagaMonitor && e.sagaMonitor.effectTriggered({
|
|
5581
|
-
effectId:
|
|
5581
|
+
effectId: C,
|
|
5582
5582
|
parentEffectId: h,
|
|
5583
5583
|
label: T,
|
|
5584
5584
|
effect: g
|
|
5585
5585
|
});
|
|
5586
|
-
var
|
|
5587
|
-
function
|
|
5588
|
-
|
|
5586
|
+
var b;
|
|
5587
|
+
function p(k, N) {
|
|
5588
|
+
b || (b = !0, x.cancel = Ne, e.sagaMonitor && (N ? e.sagaMonitor.effectRejected(C, k) : e.sagaMonitor.effectResolved(C, k)), N && Ed(g), x(k, N));
|
|
5589
5589
|
}
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
}, s(g,
|
|
5590
|
+
p.cancel = Ne, x.cancel = function() {
|
|
5591
|
+
b || (b = !0, p.cancel(), p.cancel = Ne, e.sagaMonitor && e.sagaMonitor.effectCancelled(C));
|
|
5592
|
+
}, s(g, C, p);
|
|
5593
5593
|
}
|
|
5594
5594
|
}
|
|
5595
5595
|
var Td = "runSaga(options, saga, ...args)", La = Td + ": saga argument must be a Generator function!";
|
|
5596
5596
|
function _d(e, t) {
|
|
5597
|
-
var n = e.channel, r = n === void 0 ? $s() : n, i = e.dispatch, a = e.getState, o = e.context, s = o === void 0 ? {} : o, c = e.sagaMonitor, u = e.effectMiddlewares, l = e.onError,
|
|
5597
|
+
var n = e.channel, r = n === void 0 ? $s() : n, i = e.dispatch, a = e.getState, o = e.context, s = o === void 0 ? {} : o, c = e.sagaMonitor, u = e.effectMiddlewares, l = e.onError, f = l === void 0 ? wp : l;
|
|
5598
5598
|
process.env.NODE_ENV !== "production" && se(t, ge, La);
|
|
5599
|
-
for (var
|
|
5599
|
+
for (var y = arguments.length, w = new Array(y > 2 ? y - 2 : 0), v = 2; v < y; v++)
|
|
5600
5600
|
w[v - 2] = arguments[v];
|
|
5601
5601
|
var g = t.apply(void 0, w);
|
|
5602
5602
|
process.env.NODE_ENV !== "production" && se(g, fr, La);
|
|
@@ -5608,36 +5608,36 @@ function _d(e, t) {
|
|
|
5608
5608
|
})), process.env.NODE_ENV !== "production") {
|
|
5609
5609
|
if (Re(i) && se(i, ge, "dispatch must be a function"), Re(a) && se(a, ge, "getState must be a function"), Re(u)) {
|
|
5610
5610
|
var x = "effectMiddlewares must be an array of functions";
|
|
5611
|
-
se(u, Je, x), u.forEach(function(
|
|
5612
|
-
return se(
|
|
5611
|
+
se(u, Je, x), u.forEach(function(p) {
|
|
5612
|
+
return se(p, ge, x);
|
|
5613
5613
|
});
|
|
5614
5614
|
}
|
|
5615
|
-
se(
|
|
5615
|
+
se(f, ge, "onError passed to the redux-saga is not a function!");
|
|
5616
5616
|
}
|
|
5617
5617
|
var T;
|
|
5618
5618
|
if (u) {
|
|
5619
|
-
var
|
|
5619
|
+
var C = _p.apply(void 0, u);
|
|
5620
5620
|
T = function(k) {
|
|
5621
5621
|
return function(N, _, q) {
|
|
5622
5622
|
var H = function(V) {
|
|
5623
5623
|
return k(V, _, q);
|
|
5624
5624
|
};
|
|
5625
|
-
return
|
|
5625
|
+
return C(H)(N);
|
|
5626
5626
|
};
|
|
5627
5627
|
};
|
|
5628
5628
|
} else
|
|
5629
5629
|
T = vp;
|
|
5630
|
-
var
|
|
5630
|
+
var b = {
|
|
5631
5631
|
channel: r,
|
|
5632
5632
|
dispatch: Tp(i),
|
|
5633
5633
|
getState: a,
|
|
5634
5634
|
sagaMonitor: c,
|
|
5635
|
-
onError:
|
|
5635
|
+
onError: f,
|
|
5636
5636
|
finalizeRunEffect: T
|
|
5637
5637
|
};
|
|
5638
5638
|
return Ds(function() {
|
|
5639
|
-
var
|
|
5640
|
-
|
|
5639
|
+
var p = hr(
|
|
5640
|
+
b,
|
|
5641
5641
|
g,
|
|
5642
5642
|
s,
|
|
5643
5643
|
h,
|
|
@@ -5646,19 +5646,19 @@ function _d(e, t) {
|
|
|
5646
5646
|
!0,
|
|
5647
5647
|
void 0
|
|
5648
5648
|
);
|
|
5649
|
-
return c && c.effectResolved(h,
|
|
5649
|
+
return c && c.effectResolved(h, p), p;
|
|
5650
5650
|
});
|
|
5651
5651
|
}
|
|
5652
5652
|
function Cd(e) {
|
|
5653
5653
|
var t = {}, n = t.context, r = n === void 0 ? {} : n, i = t.channel, a = i === void 0 ? $s() : i, o = t.sagaMonitor, s = Wc(t, ["context", "channel", "sagaMonitor"]), c;
|
|
5654
5654
|
process.env.NODE_ENV !== "production" && se(a, bn, "options.channel passed to the Saga middleware is not a channel");
|
|
5655
5655
|
function u(l) {
|
|
5656
|
-
var
|
|
5656
|
+
var f = l.getState, y = l.dispatch;
|
|
5657
5657
|
return c = _d.bind(null, Vn({}, s, {
|
|
5658
5658
|
context: r,
|
|
5659
5659
|
channel: a,
|
|
5660
|
-
dispatch:
|
|
5661
|
-
getState:
|
|
5660
|
+
dispatch: y,
|
|
5661
|
+
getState: f,
|
|
5662
5662
|
sagaMonitor: o
|
|
5663
5663
|
})), function(w) {
|
|
5664
5664
|
return function(v) {
|
|
@@ -6235,7 +6235,7 @@ function Bd(e, t) {
|
|
|
6235
6235
|
};
|
|
6236
6236
|
}, c, u, l = function(w) {
|
|
6237
6237
|
return c = w;
|
|
6238
|
-
},
|
|
6238
|
+
}, f = function(w) {
|
|
6239
6239
|
return u = w;
|
|
6240
6240
|
};
|
|
6241
6241
|
return Ud({
|
|
@@ -6243,7 +6243,7 @@ function Bd(e, t) {
|
|
|
6243
6243
|
return {
|
|
6244
6244
|
nextState: "q2",
|
|
6245
6245
|
effect: a,
|
|
6246
|
-
stateUpdater:
|
|
6246
|
+
stateUpdater: f
|
|
6247
6247
|
};
|
|
6248
6248
|
},
|
|
6249
6249
|
q2: function() {
|
|
@@ -6671,8 +6671,8 @@ function* af(e) {
|
|
|
6671
6671
|
yield ze(Sn());
|
|
6672
6672
|
const { id: n, file: r, pressets: i, token: a, env: o } = e.payload, s = Vt(o), c = new Blob([r.content]), u = new FormData(), l = r.properties.path.replace(/^\/+|\/+$/g, "");
|
|
6673
6673
|
u.append("file", c, l || "default_filename");
|
|
6674
|
-
const
|
|
6675
|
-
yield ut(s.post,
|
|
6674
|
+
const f = i.length ? new URLSearchParams({ tags: i.join(",") }).toString() : "", y = f ? `/upload/${n}?token=${a}&${f}` : `/upload/${n}?token=${a}`;
|
|
6675
|
+
yield ut(s.post, y, u, {
|
|
6676
6676
|
headers: {
|
|
6677
6677
|
"Content-Type": "multipart/form-data"
|
|
6678
6678
|
}
|
|
@@ -6726,7 +6726,7 @@ const Zs = Cc(
|
|
|
6726
6726
|
children: e,
|
|
6727
6727
|
...t
|
|
6728
6728
|
}) => {
|
|
6729
|
-
const { id: n, language: r, token: i, env: a } = t, [o, s] = me(null), [c, u] = me(null), l = Vt(a),
|
|
6729
|
+
const { id: n, language: r, token: i, env: a } = t, [o, s] = me(null), [c, u] = me(null), l = Vt(a), f = async (g) => {
|
|
6730
6730
|
try {
|
|
6731
6731
|
const h = await l.post(`/personas?token=${i}`, g);
|
|
6732
6732
|
return u((x) => {
|
|
@@ -6736,7 +6736,7 @@ const Zs = Cc(
|
|
|
6736
6736
|
} catch (h) {
|
|
6737
6737
|
throw console.error("Erro ao criar persona:", h), h;
|
|
6738
6738
|
}
|
|
6739
|
-
},
|
|
6739
|
+
}, y = async (g, h) => {
|
|
6740
6740
|
try {
|
|
6741
6741
|
await l.put(`/personas/${g}?token=${i}`, h), u(
|
|
6742
6742
|
(x) => x.map(
|
|
@@ -6775,8 +6775,8 @@ const Zs = Cc(
|
|
|
6775
6775
|
...t,
|
|
6776
6776
|
propTags: o,
|
|
6777
6777
|
personas: c,
|
|
6778
|
-
createPersona:
|
|
6779
|
-
updatePersona:
|
|
6778
|
+
createPersona: f,
|
|
6779
|
+
updatePersona: y,
|
|
6780
6780
|
deletePersona: w
|
|
6781
6781
|
};
|
|
6782
6782
|
return /* @__PURE__ */ d.jsx(To, { store: cf, children: /* @__PURE__ */ d.jsxs(Zs.Provider, { value: v, children: [
|
|
@@ -7246,10 +7246,10 @@ const jf = B.div`
|
|
|
7246
7246
|
] })
|
|
7247
7247
|
);
|
|
7248
7248
|
rc.propTypes = {
|
|
7249
|
-
children:
|
|
7250
|
-
className:
|
|
7251
|
-
size:
|
|
7252
|
-
isloading:
|
|
7249
|
+
children: F.node.isRequired,
|
|
7250
|
+
className: F.string,
|
|
7251
|
+
size: F.oneOf(["small", "medium", "large"]),
|
|
7252
|
+
isloading: F.bool
|
|
7253
7253
|
};
|
|
7254
7254
|
const Nf = B.div`
|
|
7255
7255
|
position: relative;
|
|
@@ -7383,17 +7383,17 @@ const zf = B.div`
|
|
|
7383
7383
|
gap: var(--spacement-medium);
|
|
7384
7384
|
`, Un = ({ children: e, ...t }) => /* @__PURE__ */ d.jsx(Vf, { ...t, children: e });
|
|
7385
7385
|
Un.propTypes = {
|
|
7386
|
-
children:
|
|
7386
|
+
children: F.node.isRequired
|
|
7387
7387
|
};
|
|
7388
7388
|
const Bn = ({ children: e, maxheight: t = "max-content", overflowy: n = "initial", ...r }) => /* @__PURE__ */ d.jsx(Hf, { maxheight: t, overflowy: n, ...r, children: e });
|
|
7389
7389
|
Bn.propTypes = {
|
|
7390
|
-
children:
|
|
7391
|
-
maxheight:
|
|
7392
|
-
overflowy:
|
|
7390
|
+
children: F.node.isRequired,
|
|
7391
|
+
maxheight: F.string,
|
|
7392
|
+
overflowy: F.string
|
|
7393
7393
|
};
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7394
|
+
F.node.isRequired;
|
|
7395
|
+
F.node.isRequired;
|
|
7396
|
+
F.node;
|
|
7397
7397
|
const sn = ({
|
|
7398
7398
|
isopen: e,
|
|
7399
7399
|
style: t,
|
|
@@ -7407,12 +7407,12 @@ const sn = ({
|
|
|
7407
7407
|
isfixed: u,
|
|
7408
7408
|
zindex: l
|
|
7409
7409
|
}) => {
|
|
7410
|
-
const
|
|
7410
|
+
const f = $e(null), y = Le(
|
|
7411
7411
|
(v) => {
|
|
7412
7412
|
const g = {
|
|
7413
7413
|
// ESC Key
|
|
7414
7414
|
27: () => {
|
|
7415
|
-
v.preventDefault(), !u && s && s(), window.removeEventListener("keyup",
|
|
7415
|
+
v.preventDefault(), !u && s && s(), window.removeEventListener("keyup", y, !1);
|
|
7416
7416
|
}
|
|
7417
7417
|
};
|
|
7418
7418
|
g[v.keyCode] && e && g[v.keyCode]();
|
|
@@ -7420,13 +7420,13 @@ const sn = ({
|
|
|
7420
7420
|
[s, e, u]
|
|
7421
7421
|
), w = Le(
|
|
7422
7422
|
(v) => {
|
|
7423
|
-
|
|
7423
|
+
f.current && f.current.parentNode === v.target && (!u && s && s(), document.removeEventListener("click", w, !1));
|
|
7424
7424
|
},
|
|
7425
7425
|
[s, u]
|
|
7426
7426
|
);
|
|
7427
|
-
return Ce(() => (window.addEventListener("keyup",
|
|
7428
|
-
window.removeEventListener("keyup",
|
|
7429
|
-
}), [
|
|
7427
|
+
return Ce(() => (window.addEventListener("keyup", y, !1), document.addEventListener("click", w, !1), () => {
|
|
7428
|
+
window.removeEventListener("keyup", y, !1), document.removeEventListener("click", w, !1);
|
|
7429
|
+
}), [y, w]), /* @__PURE__ */ d.jsx(zf, { isfixed: u ? 1 : 0, isopen: e ? 1 : 0, zindex: l ?? 0, children: /* @__PURE__ */ d.jsx(Mf, { ref: f, style: t, maxwidth: n, className: i, children: /* @__PURE__ */ d.jsxs($f, { className: "styleOverlay", maxheight: r, style: c, children: [
|
|
7430
7430
|
/* @__PURE__ */ d.jsxs(qf, { children: [
|
|
7431
7431
|
/* @__PURE__ */ d.jsx(Uf, { children: String(a) }),
|
|
7432
7432
|
/* @__PURE__ */ d.jsx(Bf, { type: "button", onClick: s, children: /* @__PURE__ */ d.jsx(If, { color: "#5A5D68", size: 16 }) })
|
|
@@ -7435,21 +7435,21 @@ const sn = ({
|
|
|
7435
7435
|
] }) }) });
|
|
7436
7436
|
};
|
|
7437
7437
|
sn.propTypes = {
|
|
7438
|
-
isopen:
|
|
7439
|
-
title:
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7438
|
+
isopen: F.bool.isRequired,
|
|
7439
|
+
title: F.oneOfType([
|
|
7440
|
+
F.element,
|
|
7441
|
+
F.string,
|
|
7442
|
+
F.func
|
|
7443
7443
|
]),
|
|
7444
|
-
children:
|
|
7445
|
-
onClose:
|
|
7446
|
-
style:
|
|
7447
|
-
contentStyle:
|
|
7448
|
-
className:
|
|
7449
|
-
maxwidth:
|
|
7450
|
-
maxheight:
|
|
7451
|
-
isfixed:
|
|
7452
|
-
zindex:
|
|
7444
|
+
children: F.node.isRequired,
|
|
7445
|
+
onClose: F.func,
|
|
7446
|
+
style: F.objectOf(F.any),
|
|
7447
|
+
contentStyle: F.objectOf(F.any),
|
|
7448
|
+
className: F.string,
|
|
7449
|
+
maxwidth: F.string,
|
|
7450
|
+
maxheight: F.string,
|
|
7451
|
+
isfixed: F.bool,
|
|
7452
|
+
zindex: F.number
|
|
7453
7453
|
};
|
|
7454
7454
|
sn.defaultProps = {
|
|
7455
7455
|
title: "",
|
|
@@ -7549,14 +7549,14 @@ const br = ({
|
|
|
7549
7549
|
backgroundIcon: c,
|
|
7550
7550
|
backgroundColor: u,
|
|
7551
7551
|
hasborder: l,
|
|
7552
|
-
...
|
|
7552
|
+
...f
|
|
7553
7553
|
}) => /* @__PURE__ */ d.jsx(
|
|
7554
7554
|
Wf,
|
|
7555
7555
|
{
|
|
7556
7556
|
backgroundicon: c,
|
|
7557
7557
|
backgroundcolor: u,
|
|
7558
7558
|
hasborder: l,
|
|
7559
|
-
...
|
|
7559
|
+
...f,
|
|
7560
7560
|
children: /* @__PURE__ */ d.jsxs("div", { className: "content", children: [
|
|
7561
7561
|
/* @__PURE__ */ d.jsx("div", { className: "icon", children: e }),
|
|
7562
7562
|
/* @__PURE__ */ d.jsxs("div", { className: "description", children: [
|
|
@@ -7576,17 +7576,17 @@ const br = ({
|
|
|
7576
7576
|
}
|
|
7577
7577
|
);
|
|
7578
7578
|
br.propTypes = {
|
|
7579
|
-
icon:
|
|
7580
|
-
title:
|
|
7581
|
-
description:
|
|
7582
|
-
activeButton:
|
|
7583
|
-
iconButton:
|
|
7584
|
-
descriptionButton:
|
|
7585
|
-
widthButton:
|
|
7586
|
-
button:
|
|
7587
|
-
backgroundIcon:
|
|
7588
|
-
backgroundColor:
|
|
7589
|
-
hasborder:
|
|
7579
|
+
icon: F.oneOfType([F.string, F.element]),
|
|
7580
|
+
title: F.string,
|
|
7581
|
+
description: F.string,
|
|
7582
|
+
activeButton: F.bool,
|
|
7583
|
+
iconButton: F.element,
|
|
7584
|
+
descriptionButton: F.string,
|
|
7585
|
+
widthButton: F.string,
|
|
7586
|
+
button: F.element,
|
|
7587
|
+
backgroundIcon: F.string,
|
|
7588
|
+
backgroundColor: F.string,
|
|
7589
|
+
hasborder: F.bool
|
|
7590
7590
|
};
|
|
7591
7591
|
br.defaultProps = {
|
|
7592
7592
|
icon: "",
|
|
@@ -7670,11 +7670,11 @@ const Yf = B.div`
|
|
|
7670
7670
|
margin-bottom: 5px;
|
|
7671
7671
|
white-space: nowrap;
|
|
7672
7672
|
`, Qa = ({ options: e, presset: t, setPresset: n, setOptions: r, modal: i, language: a, hasAddNewOptions: o }) => {
|
|
7673
|
-
const [s, c] = me(!1), [u, l] = me(""),
|
|
7673
|
+
const [s, c] = me(!1), [u, l] = me(""), f = mt(a);
|
|
7674
7674
|
Ce(() => {
|
|
7675
7675
|
c(!1);
|
|
7676
7676
|
}, [i]);
|
|
7677
|
-
const
|
|
7677
|
+
const y = (h) => {
|
|
7678
7678
|
n((x) => x.includes(h) ? x.filter((T) => T !== h) : [...x, h]);
|
|
7679
7679
|
}, w = () => {
|
|
7680
7680
|
c(!s);
|
|
@@ -7696,7 +7696,7 @@ const Yf = B.div`
|
|
|
7696
7696
|
"input",
|
|
7697
7697
|
{
|
|
7698
7698
|
type: "text",
|
|
7699
|
-
placeholder: o ?
|
|
7699
|
+
placeholder: o ? f.buttons.addNewPresset : f.buttons.addPresset,
|
|
7700
7700
|
value: u,
|
|
7701
7701
|
onChange: v,
|
|
7702
7702
|
onKeyPress: g
|
|
@@ -7711,7 +7711,7 @@ const Yf = B.div`
|
|
|
7711
7711
|
type: "checkbox",
|
|
7712
7712
|
id: h.value,
|
|
7713
7713
|
checked: t.includes(h.value),
|
|
7714
|
-
onChange: () =>
|
|
7714
|
+
onChange: () => y(h.value)
|
|
7715
7715
|
}
|
|
7716
7716
|
),
|
|
7717
7717
|
h.label
|
|
@@ -7728,15 +7728,15 @@ function Ot(e, t, n, r) {
|
|
|
7728
7728
|
function s(l) {
|
|
7729
7729
|
try {
|
|
7730
7730
|
u(r.next(l));
|
|
7731
|
-
} catch (
|
|
7732
|
-
o(
|
|
7731
|
+
} catch (f) {
|
|
7732
|
+
o(f);
|
|
7733
7733
|
}
|
|
7734
7734
|
}
|
|
7735
7735
|
function c(l) {
|
|
7736
7736
|
try {
|
|
7737
7737
|
u(r.throw(l));
|
|
7738
|
-
} catch (
|
|
7739
|
-
o(
|
|
7738
|
+
} catch (f) {
|
|
7739
|
+
o(f);
|
|
7740
7740
|
}
|
|
7741
7741
|
}
|
|
7742
7742
|
function u(l) {
|
|
@@ -9236,8 +9236,8 @@ function yt(e) {
|
|
|
9236
9236
|
function Om(e) {
|
|
9237
9237
|
var t = e.files, n = e.accept, r = e.minSize, i = e.maxSize, a = e.multiple, o = e.maxFiles, s = e.validator;
|
|
9238
9238
|
return !a && t.length > 1 || a && o >= 1 && t.length > o ? !1 : t.every(function(c) {
|
|
9239
|
-
var u = lc(c, n), l = mn(u, 1),
|
|
9240
|
-
return
|
|
9239
|
+
var u = lc(c, n), l = mn(u, 1), f = l[0], y = uc(c, r, i), w = mn(y, 1), v = w[0], g = s ? s(c) : null;
|
|
9240
|
+
return f && v && !g;
|
|
9241
9241
|
});
|
|
9242
9242
|
}
|
|
9243
9243
|
function rr(e) {
|
|
@@ -9455,7 +9455,7 @@ ki.propTypes = {
|
|
|
9455
9455
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
9456
9456
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
9457
9457
|
*/
|
|
9458
|
-
children:
|
|
9458
|
+
children: F.func,
|
|
9459
9459
|
/**
|
|
9460
9460
|
* Set accepted file types.
|
|
9461
9461
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -9463,90 +9463,90 @@ ki.propTypes = {
|
|
|
9463
9463
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
9464
9464
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
9465
9465
|
*/
|
|
9466
|
-
accept:
|
|
9466
|
+
accept: F.objectOf(F.arrayOf(F.string)),
|
|
9467
9467
|
/**
|
|
9468
9468
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
9469
9469
|
*/
|
|
9470
|
-
multiple:
|
|
9470
|
+
multiple: F.bool,
|
|
9471
9471
|
/**
|
|
9472
9472
|
* If false, allow dropped items to take over the current browser window
|
|
9473
9473
|
*/
|
|
9474
|
-
preventDropOnDocument:
|
|
9474
|
+
preventDropOnDocument: F.bool,
|
|
9475
9475
|
/**
|
|
9476
9476
|
* If true, disables click to open the native file selection dialog
|
|
9477
9477
|
*/
|
|
9478
|
-
noClick:
|
|
9478
|
+
noClick: F.bool,
|
|
9479
9479
|
/**
|
|
9480
9480
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
9481
9481
|
* Note that it also stops tracking the focus state.
|
|
9482
9482
|
*/
|
|
9483
|
-
noKeyboard:
|
|
9483
|
+
noKeyboard: F.bool,
|
|
9484
9484
|
/**
|
|
9485
9485
|
* If true, disables drag 'n' drop
|
|
9486
9486
|
*/
|
|
9487
|
-
noDrag:
|
|
9487
|
+
noDrag: F.bool,
|
|
9488
9488
|
/**
|
|
9489
9489
|
* If true, stops drag event propagation to parents
|
|
9490
9490
|
*/
|
|
9491
|
-
noDragEventsBubbling:
|
|
9491
|
+
noDragEventsBubbling: F.bool,
|
|
9492
9492
|
/**
|
|
9493
9493
|
* Minimum file size (in bytes)
|
|
9494
9494
|
*/
|
|
9495
|
-
minSize:
|
|
9495
|
+
minSize: F.number,
|
|
9496
9496
|
/**
|
|
9497
9497
|
* Maximum file size (in bytes)
|
|
9498
9498
|
*/
|
|
9499
|
-
maxSize:
|
|
9499
|
+
maxSize: F.number,
|
|
9500
9500
|
/**
|
|
9501
9501
|
* Maximum accepted number of files
|
|
9502
9502
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
9503
9503
|
*/
|
|
9504
|
-
maxFiles:
|
|
9504
|
+
maxFiles: F.number,
|
|
9505
9505
|
/**
|
|
9506
9506
|
* Enable/disable the dropzone
|
|
9507
9507
|
*/
|
|
9508
|
-
disabled:
|
|
9508
|
+
disabled: F.bool,
|
|
9509
9509
|
/**
|
|
9510
9510
|
* Use this to provide a custom file aggregator
|
|
9511
9511
|
*
|
|
9512
9512
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
9513
9513
|
*/
|
|
9514
|
-
getFilesFromEvent:
|
|
9514
|
+
getFilesFromEvent: F.func,
|
|
9515
9515
|
/**
|
|
9516
9516
|
* Cb for when closing the file dialog with no selection
|
|
9517
9517
|
*/
|
|
9518
|
-
onFileDialogCancel:
|
|
9518
|
+
onFileDialogCancel: F.func,
|
|
9519
9519
|
/**
|
|
9520
9520
|
* Cb for when opening the file dialog
|
|
9521
9521
|
*/
|
|
9522
|
-
onFileDialogOpen:
|
|
9522
|
+
onFileDialogOpen: F.func,
|
|
9523
9523
|
/**
|
|
9524
9524
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
9525
9525
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
9526
9526
|
*/
|
|
9527
|
-
useFsAccessApi:
|
|
9527
|
+
useFsAccessApi: F.bool,
|
|
9528
9528
|
/**
|
|
9529
9529
|
* Set to true to focus the root element on render
|
|
9530
9530
|
*/
|
|
9531
|
-
autoFocus:
|
|
9531
|
+
autoFocus: F.bool,
|
|
9532
9532
|
/**
|
|
9533
9533
|
* Cb for when the `dragenter` event occurs.
|
|
9534
9534
|
*
|
|
9535
9535
|
* @param {DragEvent} event
|
|
9536
9536
|
*/
|
|
9537
|
-
onDragEnter:
|
|
9537
|
+
onDragEnter: F.func,
|
|
9538
9538
|
/**
|
|
9539
9539
|
* Cb for when the `dragleave` event occurs
|
|
9540
9540
|
*
|
|
9541
9541
|
* @param {DragEvent} event
|
|
9542
9542
|
*/
|
|
9543
|
-
onDragLeave:
|
|
9543
|
+
onDragLeave: F.func,
|
|
9544
9544
|
/**
|
|
9545
9545
|
* Cb for when the `dragover` event occurs
|
|
9546
9546
|
*
|
|
9547
9547
|
* @param {DragEvent} event
|
|
9548
9548
|
*/
|
|
9549
|
-
onDragOver:
|
|
9549
|
+
onDragOver: F.func,
|
|
9550
9550
|
/**
|
|
9551
9551
|
* Cb for when the `drop` event occurs.
|
|
9552
9552
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -9577,7 +9577,7 @@ ki.propTypes = {
|
|
|
9577
9577
|
* @param {FileRejection[]} fileRejections
|
|
9578
9578
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
9579
9579
|
*/
|
|
9580
|
-
onDrop:
|
|
9580
|
+
onDrop: F.func,
|
|
9581
9581
|
/**
|
|
9582
9582
|
* Cb for when the `drop` event occurs.
|
|
9583
9583
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -9585,7 +9585,7 @@ ki.propTypes = {
|
|
|
9585
9585
|
* @param {File[]} files
|
|
9586
9586
|
* @param {(DragEvent|Event)} event
|
|
9587
9587
|
*/
|
|
9588
|
-
onDropAccepted:
|
|
9588
|
+
onDropAccepted: F.func,
|
|
9589
9589
|
/**
|
|
9590
9590
|
* Cb for when the `drop` event occurs.
|
|
9591
9591
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -9593,19 +9593,19 @@ ki.propTypes = {
|
|
|
9593
9593
|
* @param {FileRejection[]} fileRejections
|
|
9594
9594
|
* @param {(DragEvent|Event)} event
|
|
9595
9595
|
*/
|
|
9596
|
-
onDropRejected:
|
|
9596
|
+
onDropRejected: F.func,
|
|
9597
9597
|
/**
|
|
9598
9598
|
* Cb for when there's some error from any of the promises.
|
|
9599
9599
|
*
|
|
9600
9600
|
* @param {Error} error
|
|
9601
9601
|
*/
|
|
9602
|
-
onError:
|
|
9602
|
+
onError: F.func,
|
|
9603
9603
|
/**
|
|
9604
9604
|
* Custom validation function. It must return null if there's no errors.
|
|
9605
9605
|
* @param {File} file
|
|
9606
9606
|
* @returns {FileError|FileError[]|null}
|
|
9607
9607
|
*/
|
|
9608
|
-
validator:
|
|
9608
|
+
validator: F.func
|
|
9609
9609
|
};
|
|
9610
9610
|
var pi = {
|
|
9611
9611
|
isFocused: !1,
|
|
@@ -9617,7 +9617,7 @@ var pi = {
|
|
|
9617
9617
|
fileRejections: []
|
|
9618
9618
|
};
|
|
9619
9619
|
function vc() {
|
|
9620
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Se(Se({}, mc), e), n = t.accept, r = t.disabled, i = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, c = t.maxFiles, u = t.onDragEnter, l = t.onDragLeave,
|
|
9620
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Se(Se({}, mc), e), n = t.accept, r = t.disabled, i = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, c = t.maxFiles, u = t.onDragEnter, l = t.onDragLeave, f = t.onDragOver, y = t.onDrop, w = t.onDropAccepted, v = t.onDropRejected, g = t.onFileDialogCancel, h = t.onFileDialogOpen, x = t.useFsAccessApi, T = t.autoFocus, C = t.preventDropOnDocument, b = t.noClick, p = t.noKeyboard, k = t.noDrag, N = t.noDragEventsBubbling, _ = t.onError, q = t.validator, H = st(function() {
|
|
9621
9621
|
return Nm(n);
|
|
9622
9622
|
}, [n]), U = st(function() {
|
|
9623
9623
|
return Pm(n);
|
|
@@ -9625,8 +9625,8 @@ function vc() {
|
|
|
9625
9625
|
return typeof h == "function" ? h : lo;
|
|
9626
9626
|
}, [h]), R = st(function() {
|
|
9627
9627
|
return typeof g == "function" ? g : lo;
|
|
9628
|
-
}, [g]),
|
|
9629
|
-
!
|
|
9628
|
+
}, [g]), z = $e(null), ee = $e(null), K = Hn(Km, pi), ce = Ur(K, 2), re = ce[0], ae = ce[1], O = re.isFocused, P = re.isFileDialogActive, D = $e(typeof window < "u" && window.isSecureContext && x && km()), j = function() {
|
|
9629
|
+
!D.current && P && setTimeout(function() {
|
|
9630
9630
|
if (ee.current) {
|
|
9631
9631
|
var Y = ee.current.files;
|
|
9632
9632
|
Y.length || (ae({
|
|
@@ -9636,26 +9636,26 @@ function vc() {
|
|
|
9636
9636
|
}, 300);
|
|
9637
9637
|
};
|
|
9638
9638
|
Ce(function() {
|
|
9639
|
-
return window.addEventListener("focus",
|
|
9640
|
-
window.removeEventListener("focus",
|
|
9639
|
+
return window.addEventListener("focus", j, !1), function() {
|
|
9640
|
+
window.removeEventListener("focus", j, !1);
|
|
9641
9641
|
};
|
|
9642
|
-
}, [ee, P, R,
|
|
9643
|
-
var
|
|
9644
|
-
|
|
9642
|
+
}, [ee, P, R, D]);
|
|
9643
|
+
var $ = $e([]), J = function(Y) {
|
|
9644
|
+
z.current && z.current.contains(Y.target) || (Y.preventDefault(), $.current = []);
|
|
9645
9645
|
};
|
|
9646
9646
|
Ce(function() {
|
|
9647
|
-
return
|
|
9648
|
-
|
|
9647
|
+
return C && (document.addEventListener("dragover", so, !1), document.addEventListener("drop", J, !1)), function() {
|
|
9648
|
+
C && (document.removeEventListener("dragover", so), document.removeEventListener("drop", J));
|
|
9649
9649
|
};
|
|
9650
|
-
}, [
|
|
9651
|
-
return !r && T &&
|
|
9650
|
+
}, [z, C]), Ce(function() {
|
|
9651
|
+
return !r && T && z.current && z.current.focus(), function() {
|
|
9652
9652
|
};
|
|
9653
|
-
}, [
|
|
9654
|
-
var W = Le(function(
|
|
9655
|
-
_ ? _(
|
|
9656
|
-
}, [_]), G = Le(function(
|
|
9657
|
-
|
|
9658
|
-
if (!(rr(
|
|
9653
|
+
}, [z, T, r]);
|
|
9654
|
+
var W = Le(function(L) {
|
|
9655
|
+
_ ? _(L) : console.error(L);
|
|
9656
|
+
}, [_]), G = Le(function(L) {
|
|
9657
|
+
L.preventDefault(), L.persist(), Rt(L), $.current = [].concat($m($.current), [L.target]), Fn(L) && Promise.resolve(i(L)).then(function(Y) {
|
|
9658
|
+
if (!(rr(L) && !N)) {
|
|
9659
9659
|
var we = Y.length, Te = we > 0 && Om({
|
|
9660
9660
|
files: Y,
|
|
9661
9661
|
accept: H,
|
|
@@ -9670,34 +9670,34 @@ function vc() {
|
|
|
9670
9670
|
isDragReject: Fe,
|
|
9671
9671
|
isDragActive: !0,
|
|
9672
9672
|
type: "setDraggedFiles"
|
|
9673
|
-
}), u && u(
|
|
9673
|
+
}), u && u(L);
|
|
9674
9674
|
}
|
|
9675
9675
|
}).catch(function(Y) {
|
|
9676
9676
|
return W(Y);
|
|
9677
9677
|
});
|
|
9678
|
-
}, [i, u, W, N, H, o, a, s, c, q]), Z = Le(function(
|
|
9679
|
-
|
|
9680
|
-
var Y = Fn(
|
|
9681
|
-
if (Y &&
|
|
9678
|
+
}, [i, u, W, N, H, o, a, s, c, q]), Z = Le(function(L) {
|
|
9679
|
+
L.preventDefault(), L.persist(), Rt(L);
|
|
9680
|
+
var Y = Fn(L);
|
|
9681
|
+
if (Y && L.dataTransfer)
|
|
9682
9682
|
try {
|
|
9683
|
-
|
|
9683
|
+
L.dataTransfer.dropEffect = "copy";
|
|
9684
9684
|
} catch {
|
|
9685
9685
|
}
|
|
9686
|
-
return Y &&
|
|
9687
|
-
}, [
|
|
9688
|
-
|
|
9689
|
-
var Y =
|
|
9690
|
-
return
|
|
9691
|
-
}), we = Y.indexOf(
|
|
9692
|
-
we !== -1 && Y.splice(we, 1),
|
|
9686
|
+
return Y && f && f(L), !1;
|
|
9687
|
+
}, [f, N]), ne = Le(function(L) {
|
|
9688
|
+
L.preventDefault(), L.persist(), Rt(L);
|
|
9689
|
+
var Y = $.current.filter(function(Te) {
|
|
9690
|
+
return z.current && z.current.contains(Te);
|
|
9691
|
+
}), we = Y.indexOf(L.target);
|
|
9692
|
+
we !== -1 && Y.splice(we, 1), $.current = Y, !(Y.length > 0) && (ae({
|
|
9693
9693
|
type: "setDraggedFiles",
|
|
9694
9694
|
isDragActive: !1,
|
|
9695
9695
|
isDragAccept: !1,
|
|
9696
9696
|
isDragReject: !1
|
|
9697
|
-
}), Fn(
|
|
9698
|
-
}, [
|
|
9697
|
+
}), Fn(L) && l && l(L));
|
|
9698
|
+
}, [z, l, N]), Q = Le(function(L, Y) {
|
|
9699
9699
|
var we = [], Te = [];
|
|
9700
|
-
|
|
9700
|
+
L.forEach(function(Fe) {
|
|
9701
9701
|
var pt = lc(Fe, H), at = Ur(pt, 2), Yt = at[0], Kt = at[1], Gt = uc(Fe, o, a), At = Ur(Gt, 2), Jt = At[0], Qt = At[1], Xt = q ? q(Fe) : null;
|
|
9702
9702
|
if (Yt && Jt && !Xt)
|
|
9703
9703
|
we.push(Fe);
|
|
@@ -9720,25 +9720,25 @@ function vc() {
|
|
|
9720
9720
|
fileRejections: Te,
|
|
9721
9721
|
isDragReject: Te.length > 0,
|
|
9722
9722
|
type: "setFiles"
|
|
9723
|
-
}),
|
|
9724
|
-
}, [ae, s, H, o, a, c,
|
|
9725
|
-
|
|
9726
|
-
rr(
|
|
9723
|
+
}), y && y(we, Te, Y), Te.length > 0 && v && v(Te, Y), we.length > 0 && w && w(we, Y);
|
|
9724
|
+
}, [ae, s, H, o, a, c, y, w, v, q]), I = Le(function(L) {
|
|
9725
|
+
L.preventDefault(), L.persist(), Rt(L), $.current = [], Fn(L) && Promise.resolve(i(L)).then(function(Y) {
|
|
9726
|
+
rr(L) && !N || Q(Y, L);
|
|
9727
9727
|
}).catch(function(Y) {
|
|
9728
9728
|
return W(Y);
|
|
9729
9729
|
}), ae({
|
|
9730
9730
|
type: "reset"
|
|
9731
9731
|
});
|
|
9732
9732
|
}, [i, Q, W, N]), S = Le(function() {
|
|
9733
|
-
if (
|
|
9733
|
+
if (D.current) {
|
|
9734
9734
|
ae({
|
|
9735
9735
|
type: "openDialog"
|
|
9736
9736
|
}), V();
|
|
9737
|
-
var
|
|
9737
|
+
var L = {
|
|
9738
9738
|
multiple: s,
|
|
9739
9739
|
types: U
|
|
9740
9740
|
};
|
|
9741
|
-
window.showOpenFilePicker(
|
|
9741
|
+
window.showOpenFilePicker(L).then(function(Y) {
|
|
9742
9742
|
return i(Y);
|
|
9743
9743
|
}).then(function(Y) {
|
|
9744
9744
|
Q(Y, null), ae({
|
|
@@ -9747,16 +9747,16 @@ function vc() {
|
|
|
9747
9747
|
}).catch(function(Y) {
|
|
9748
9748
|
Dm(Y) ? (R(Y), ae({
|
|
9749
9749
|
type: "closeDialog"
|
|
9750
|
-
})) : Fm(Y) ? (
|
|
9750
|
+
})) : Fm(Y) ? (D.current = !1, ee.current ? (ee.current.value = null, ee.current.click()) : W(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : W(Y);
|
|
9751
9751
|
});
|
|
9752
9752
|
return;
|
|
9753
9753
|
}
|
|
9754
9754
|
ee.current && (ae({
|
|
9755
9755
|
type: "openDialog"
|
|
9756
9756
|
}), V(), ee.current.value = null, ee.current.click());
|
|
9757
|
-
}, [ae, V, R, x, Q, W, U, s]), Ee = Le(function(
|
|
9758
|
-
!
|
|
9759
|
-
}, [
|
|
9757
|
+
}, [ae, V, R, x, Q, W, U, s]), Ee = Le(function(L) {
|
|
9758
|
+
!z.current || !z.current.isEqualNode(L.target) || (L.key === " " || L.key === "Enter" || L.keyCode === 32 || L.keyCode === 13) && (L.preventDefault(), S());
|
|
9759
|
+
}, [z, S]), ke = Le(function() {
|
|
9760
9760
|
ae({
|
|
9761
9761
|
type: "focus"
|
|
9762
9762
|
});
|
|
@@ -9765,18 +9765,18 @@ function vc() {
|
|
|
9765
9765
|
type: "blur"
|
|
9766
9766
|
});
|
|
9767
9767
|
}, []), vt = Le(function() {
|
|
9768
|
-
|
|
9769
|
-
}, [
|
|
9768
|
+
b || (Am() ? setTimeout(S, 0) : S());
|
|
9769
|
+
}, [b, S]), rt = function(Y) {
|
|
9770
9770
|
return r ? null : Y;
|
|
9771
9771
|
}, jt = function(Y) {
|
|
9772
|
-
return
|
|
9772
|
+
return p ? null : rt(Y);
|
|
9773
9773
|
}, it = function(Y) {
|
|
9774
9774
|
return k ? null : rt(Y);
|
|
9775
9775
|
}, Rt = function(Y) {
|
|
9776
9776
|
N && Y.stopPropagation();
|
|
9777
9777
|
}, Er = st(function() {
|
|
9778
9778
|
return function() {
|
|
9779
|
-
var
|
|
9779
|
+
var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Y = L.refKey, we = Y === void 0 ? "ref" : Y, Te = L.role, Fe = L.onKeyDown, pt = L.onFocus, at = L.onBlur, Yt = L.onClick, Kt = L.onDragEnter, Gt = L.onDragOver, At = L.onDragLeave, Jt = L.onDrop, Qt = ir(L, zm);
|
|
9780
9780
|
return Se(Se(ui({
|
|
9781
9781
|
onKeyDown: jt(tt(Fe, Ee)),
|
|
9782
9782
|
onFocus: jt(tt(pt, ke)),
|
|
@@ -9785,17 +9785,17 @@ function vc() {
|
|
|
9785
9785
|
onDragEnter: it(tt(Kt, G)),
|
|
9786
9786
|
onDragOver: it(tt(Gt, Z)),
|
|
9787
9787
|
onDragLeave: it(tt(At, ne)),
|
|
9788
|
-
onDrop: it(tt(Jt,
|
|
9788
|
+
onDrop: it(tt(Jt, I)),
|
|
9789
9789
|
role: typeof Te == "string" && Te !== "" ? Te : "presentation"
|
|
9790
|
-
}, we,
|
|
9790
|
+
}, we, z), !r && !p ? {
|
|
9791
9791
|
tabIndex: 0
|
|
9792
9792
|
} : {}), Qt);
|
|
9793
9793
|
};
|
|
9794
|
-
}, [
|
|
9795
|
-
|
|
9794
|
+
}, [z, Ee, ke, Ve, vt, G, Z, ne, I, p, k, r]), Wt = Le(function(L) {
|
|
9795
|
+
L.stopPropagation();
|
|
9796
9796
|
}, []), wr = st(function() {
|
|
9797
9797
|
return function() {
|
|
9798
|
-
var
|
|
9798
|
+
var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Y = L.refKey, we = Y === void 0 ? "ref" : Y, Te = L.onChange, Fe = L.onClick, pt = ir(L, Mm), at = ui({
|
|
9799
9799
|
accept: H,
|
|
9800
9800
|
multiple: s,
|
|
9801
9801
|
type: "file",
|
|
@@ -9811,18 +9811,18 @@ function vc() {
|
|
|
9811
9811
|
width: "1px",
|
|
9812
9812
|
whiteSpace: "nowrap"
|
|
9813
9813
|
},
|
|
9814
|
-
onChange: rt(tt(Te,
|
|
9814
|
+
onChange: rt(tt(Te, I)),
|
|
9815
9815
|
onClick: rt(tt(Fe, Wt)),
|
|
9816
9816
|
tabIndex: -1
|
|
9817
9817
|
}, we, ee);
|
|
9818
9818
|
return Se(Se({}, at), pt);
|
|
9819
9819
|
};
|
|
9820
|
-
}, [ee, n, s,
|
|
9820
|
+
}, [ee, n, s, I, r]);
|
|
9821
9821
|
return Se(Se({}, re), {}, {
|
|
9822
9822
|
isFocused: O && !r,
|
|
9823
9823
|
getRootProps: Er,
|
|
9824
9824
|
getInputProps: wr,
|
|
9825
|
-
rootRef:
|
|
9825
|
+
rootRef: z,
|
|
9826
9826
|
inputRef: ee,
|
|
9827
9827
|
open: rt(S)
|
|
9828
9828
|
});
|
|
@@ -9946,26 +9946,26 @@ const Pi = ({
|
|
|
9946
9946
|
const u = Le(
|
|
9947
9947
|
(h, x) => {
|
|
9948
9948
|
x && x.length > 0 && console.error("Arquivos rejeitados:", x), a(h);
|
|
9949
|
-
const
|
|
9950
|
-
id:
|
|
9951
|
-
lastModified:
|
|
9952
|
-
name:
|
|
9953
|
-
size:
|
|
9954
|
-
type:
|
|
9949
|
+
const C = [...o, ...h].map((b, p) => ({
|
|
9950
|
+
id: p + 1,
|
|
9951
|
+
lastModified: b.lastModified,
|
|
9952
|
+
name: b.name,
|
|
9953
|
+
size: b.size,
|
|
9954
|
+
type: b.type
|
|
9955
9955
|
}));
|
|
9956
|
-
s(
|
|
9957
|
-
const
|
|
9958
|
-
|
|
9959
|
-
const k =
|
|
9960
|
-
r({ content: k, properties:
|
|
9961
|
-
},
|
|
9956
|
+
s(C), h.forEach((b) => {
|
|
9957
|
+
const p = new FileReader();
|
|
9958
|
+
p.onload = () => {
|
|
9959
|
+
const k = p.result;
|
|
9960
|
+
r({ content: k, properties: b });
|
|
9961
|
+
}, p.readAsArrayBuffer(b);
|
|
9962
9962
|
});
|
|
9963
9963
|
},
|
|
9964
9964
|
[o]
|
|
9965
9965
|
), {
|
|
9966
9966
|
getRootProps: l,
|
|
9967
|
-
getInputProps:
|
|
9968
|
-
open:
|
|
9967
|
+
getInputProps: f,
|
|
9968
|
+
open: y,
|
|
9969
9969
|
isDragActive: w,
|
|
9970
9970
|
isDragAccept: v,
|
|
9971
9971
|
isDragReject: g
|
|
@@ -9981,9 +9981,9 @@ const Pi = ({
|
|
|
9981
9981
|
{
|
|
9982
9982
|
...l({ isDragActive: w, isDragAccept: v, isDragReject: g }),
|
|
9983
9983
|
children: [
|
|
9984
|
-
/* @__PURE__ */ d.jsx("input", { ...
|
|
9984
|
+
/* @__PURE__ */ d.jsx("input", { ...f() }),
|
|
9985
9985
|
/* @__PURE__ */ d.jsx("span", { children: /* @__PURE__ */ d.jsx("p", { children: c.fileArea.modal.descriptionUpload }) }),
|
|
9986
|
-
/* @__PURE__ */ d.jsx("button", { type: "button", onClick:
|
|
9986
|
+
/* @__PURE__ */ d.jsx("button", { type: "button", onClick: y, children: c.fileArea.modal.chooseFile })
|
|
9987
9987
|
]
|
|
9988
9988
|
}
|
|
9989
9989
|
) : /* @__PURE__ */ d.jsx(
|
|
@@ -9995,13 +9995,13 @@ const Pi = ({
|
|
|
9995
9995
|
) });
|
|
9996
9996
|
};
|
|
9997
9997
|
Pi.propTypes = {
|
|
9998
|
-
formatFile:
|
|
9999
|
-
multipleFile:
|
|
10000
|
-
initialFiles:
|
|
10001
|
-
removeItem:
|
|
10002
|
-
setFile:
|
|
10003
|
-
onChange:
|
|
10004
|
-
hasListFiles:
|
|
9998
|
+
formatFile: F.string,
|
|
9999
|
+
multipleFile: F.bool,
|
|
10000
|
+
initialFiles: F.arrayOf(F.object),
|
|
10001
|
+
removeItem: F.func,
|
|
10002
|
+
setFile: F.func,
|
|
10003
|
+
onChange: F.func,
|
|
10004
|
+
hasListFiles: F.bool
|
|
10005
10005
|
};
|
|
10006
10006
|
Pi.defaultProps = {
|
|
10007
10007
|
formatFile: "application/json",
|
|
@@ -10016,49 +10016,49 @@ Pi.defaultProps = {
|
|
|
10016
10016
|
hasListFiles: !0
|
|
10017
10017
|
};
|
|
10018
10018
|
const Qv = () => {
|
|
10019
|
-
const { id: e, language: t, propTags: n, token: r, env: i, readonly: a } = Zn(), [o, s] = me([]), [c, u] = me([]), [l,
|
|
10019
|
+
const { id: e, language: t, propTags: n, token: r, env: i, readonly: a } = Zn(), [o, s] = me([]), [c, u] = me([]), [l, f] = me(), [y, w] = me(!1), [v, g] = me(!1), [h, x] = me(!1), [T, C] = me(""), [b, p] = me([]), [k, N] = me([]), _ = mt(t), q = Oo(), H = Wn((D) => D.files), U = Wn((D) => D.isloading), V = n ? n.tags : [];
|
|
10020
10020
|
Ce(() => {
|
|
10021
10021
|
q(Vd(e, r, i));
|
|
10022
10022
|
}, [e]), Ce(() => {
|
|
10023
10023
|
if (V.length > 0) {
|
|
10024
|
-
const
|
|
10025
|
-
|
|
10026
|
-
} else
|
|
10024
|
+
const D = V.map((j) => ({ label: j, value: j }));
|
|
10025
|
+
p(D);
|
|
10026
|
+
} else b.length > 0 && p([]);
|
|
10027
10027
|
}, [V]), Ce(() => {
|
|
10028
|
-
if (!
|
|
10029
|
-
const
|
|
10030
|
-
|
|
10028
|
+
if (!y) {
|
|
10029
|
+
const D = V.map((j) => ({ label: j, value: j }));
|
|
10030
|
+
p(D);
|
|
10031
10031
|
}
|
|
10032
|
-
}, [
|
|
10032
|
+
}, [y]), Ce(() => {
|
|
10033
10033
|
H && (s(H), u(H));
|
|
10034
10034
|
}, [H]);
|
|
10035
|
-
const R = (
|
|
10036
|
-
let
|
|
10037
|
-
return
|
|
10038
|
-
const J =
|
|
10039
|
-
return `<p class='tag ${
|
|
10040
|
-
}).join(""),
|
|
10041
|
-
},
|
|
10042
|
-
|
|
10043
|
-
}, ee = (
|
|
10044
|
-
|
|
10045
|
-
}, K = (
|
|
10046
|
-
let
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
}), N(
|
|
10035
|
+
const R = (D) => {
|
|
10036
|
+
let j = "";
|
|
10037
|
+
return j += D.map(($) => {
|
|
10038
|
+
const J = $.trained ? "" : Mi(/* @__PURE__ */ d.jsx(Ka, { size: 14 }));
|
|
10039
|
+
return `<p class='tag ${$.trained ? "trained" : ""}'>${$.name} ${J}</p>`;
|
|
10040
|
+
}).join(""), j;
|
|
10041
|
+
}, z = () => {
|
|
10042
|
+
y && (f(void 0), N([])), w(!y);
|
|
10043
|
+
}, ee = (D) => {
|
|
10044
|
+
C(D), g(!v);
|
|
10045
|
+
}, K = (D) => {
|
|
10046
|
+
let j = [];
|
|
10047
|
+
D == null || D.map(($) => {
|
|
10048
|
+
$.trained || j.push($.name);
|
|
10049
|
+
}), N(j), x(!h);
|
|
10050
10050
|
}, ce = () => {
|
|
10051
10051
|
q(Yd(T, e, t, r, i)), g(!1);
|
|
10052
10052
|
}, re = () => {
|
|
10053
|
-
q(Gd(l, e, k, t, r, i)), w(!1),
|
|
10053
|
+
q(Gd(l, e, k, t, r, i)), w(!1), f(void 0), N([]);
|
|
10054
10054
|
}, ae = () => {
|
|
10055
10055
|
q(Jd(e, k, t, r, i)), x(!1), N([]);
|
|
10056
|
-
}, O = (
|
|
10057
|
-
if (
|
|
10058
|
-
const
|
|
10059
|
-
return `<a href='${
|
|
10056
|
+
}, O = (D, j) => {
|
|
10057
|
+
if (D) {
|
|
10058
|
+
const $ = Mi(/* @__PURE__ */ d.jsx(Ef, { size: 14 }));
|
|
10059
|
+
return `<a href='${D}' target='_blank'>${$}</a> ${j}`;
|
|
10060
10060
|
}
|
|
10061
|
-
return
|
|
10061
|
+
return j;
|
|
10062
10062
|
}, P = () => /* @__PURE__ */ d.jsxs(Ga, { isloading: U, children: [
|
|
10063
10063
|
/* @__PURE__ */ d.jsx("div", { id: "loading" }),
|
|
10064
10064
|
/* @__PURE__ */ d.jsxs(Of, { children: [
|
|
@@ -10069,7 +10069,7 @@ const Qv = () => {
|
|
|
10069
10069
|
/* @__PURE__ */ d.jsxs("div", { className: "actions", children: [
|
|
10070
10070
|
/* @__PURE__ */ d.jsx(ic, { placeholder: _.fileArea.search, setFiles: s, initialFiles: c }),
|
|
10071
10071
|
/* @__PURE__ */ d.jsxs("div", { children: [
|
|
10072
|
-
/* @__PURE__ */ d.jsxs("button", { id: "button-upload", disabled: a, onClick:
|
|
10072
|
+
/* @__PURE__ */ d.jsxs("button", { id: "button-upload", disabled: a, onClick: z, children: [
|
|
10073
10073
|
/* @__PURE__ */ d.jsx(Ya, { size: 14 }),
|
|
10074
10074
|
" ",
|
|
10075
10075
|
_.fileArea.fileUpload
|
|
@@ -10088,7 +10088,7 @@ const Qv = () => {
|
|
|
10088
10088
|
icon: /* @__PURE__ */ d.jsx(nc, {}),
|
|
10089
10089
|
title: _.fileArea.emptyState.title,
|
|
10090
10090
|
description: _.fileArea.emptyState.description,
|
|
10091
|
-
iconButton: /* @__PURE__ */ d.jsxs("button", { id: "button-upload", disabled: a, onClick:
|
|
10091
|
+
iconButton: /* @__PURE__ */ d.jsxs("button", { id: "button-upload", disabled: a, onClick: z, children: [
|
|
10092
10092
|
/* @__PURE__ */ d.jsx(Ya, { size: 14 }),
|
|
10093
10093
|
" ",
|
|
10094
10094
|
_.fileArea.fileUpload
|
|
@@ -10103,40 +10103,40 @@ const Qv = () => {
|
|
|
10103
10103
|
/* @__PURE__ */ d.jsx("th", { className: "th_pressets", children: _.fileArea.presset }, "th_pressets"),
|
|
10104
10104
|
/* @__PURE__ */ d.jsx("th", { className: "th_actions", children: _.fileArea.actions }, "th_actions")
|
|
10105
10105
|
] }) }),
|
|
10106
|
-
/* @__PURE__ */ d.jsx("tbody", { children: o.map((
|
|
10107
|
-
/* @__PURE__ */ d.jsx("td", { dangerouslySetInnerHTML: { __html: O(
|
|
10108
|
-
/* @__PURE__ */ d.jsx("td", { children:
|
|
10109
|
-
/* @__PURE__ */ d.jsx("td", { className: "tags", dangerouslySetInnerHTML: { __html: R(
|
|
10106
|
+
/* @__PURE__ */ d.jsx("tbody", { children: o.map((D) => /* @__PURE__ */ d.jsxs("tr", { children: [
|
|
10107
|
+
/* @__PURE__ */ d.jsx("td", { dangerouslySetInnerHTML: { __html: O(D.link, D.name) } }),
|
|
10108
|
+
/* @__PURE__ */ d.jsx("td", { children: D.trained ? /* @__PURE__ */ d.jsx(gf, { size: 14, style: { color: "green" } }) : /* @__PURE__ */ d.jsx(Ka, { size: 14, style: { color: "red" } }) }),
|
|
10109
|
+
/* @__PURE__ */ d.jsx("td", { className: "tags", dangerouslySetInnerHTML: { __html: R(D.tags) } }),
|
|
10110
10110
|
/* @__PURE__ */ d.jsx("td", { children: /* @__PURE__ */ d.jsxs("div", { className: "divDelete", children: [
|
|
10111
|
-
/* @__PURE__ */ d.jsx("button", { className: "buttonTraining", disabled: a, onClick: () => K(
|
|
10112
|
-
/* @__PURE__ */ d.jsx("button", { className: "buttonDelete", disabled: a, onClick: () => ee(
|
|
10111
|
+
/* @__PURE__ */ d.jsx("button", { className: "buttonTraining", disabled: a, onClick: () => K(D.tags), children: _.buttons.training }),
|
|
10112
|
+
/* @__PURE__ */ d.jsx("button", { className: "buttonDelete", disabled: a, onClick: () => ee(D.name), children: _.buttons.delete })
|
|
10113
10113
|
] }) })
|
|
10114
10114
|
] })) })
|
|
10115
10115
|
] }),
|
|
10116
10116
|
/* @__PURE__ */ d.jsxs(
|
|
10117
10117
|
sn,
|
|
10118
10118
|
{
|
|
10119
|
-
isopen:
|
|
10119
|
+
isopen: y,
|
|
10120
10120
|
maxwidth: "600px",
|
|
10121
10121
|
maxheight: "max-content",
|
|
10122
|
-
onClose:
|
|
10122
|
+
onClose: z,
|
|
10123
10123
|
title: _.fileArea.modal.uploadFile,
|
|
10124
10124
|
children: [
|
|
10125
10125
|
/* @__PURE__ */ d.jsxs(Bn, { children: [
|
|
10126
10126
|
/* @__PURE__ */ d.jsx("div", { className: "choose-file", children: /* @__PURE__ */ d.jsx(
|
|
10127
10127
|
Pi,
|
|
10128
10128
|
{
|
|
10129
|
-
setFile:
|
|
10129
|
+
setFile: f,
|
|
10130
10130
|
file: l == null ? void 0 : l.properties.name
|
|
10131
10131
|
}
|
|
10132
10132
|
) }),
|
|
10133
10133
|
/* @__PURE__ */ d.jsxs("div", { className: "presset", children: [
|
|
10134
10134
|
/* @__PURE__ */ d.jsx("p", { children: _.fileArea.presset }),
|
|
10135
|
-
/* @__PURE__ */ d.jsx(Qa, { setOptions:
|
|
10135
|
+
/* @__PURE__ */ d.jsx(Qa, { setOptions: p, options: b, presset: k, setPresset: N, modal: y, language: t, hasAddNewOptions: !0 })
|
|
10136
10136
|
] })
|
|
10137
10137
|
] }),
|
|
10138
10138
|
/* @__PURE__ */ d.jsxs(Un, { children: [
|
|
10139
|
-
/* @__PURE__ */ d.jsx("button", { className: "button cancel", onClick:
|
|
10139
|
+
/* @__PURE__ */ d.jsx("button", { className: "button cancel", onClick: z, children: _.buttons.cancel }),
|
|
10140
10140
|
/* @__PURE__ */ d.jsx("button", { onClick: () => re(), className: "button send", type: "submit", form: "form-tts", children: _.buttons.send })
|
|
10141
10141
|
] })
|
|
10142
10142
|
]
|
|
@@ -10172,7 +10172,7 @@ const Qv = () => {
|
|
|
10172
10172
|
/* @__PURE__ */ d.jsx("p", { id: "info", children: _.fileArea.modal.trainingDescription }),
|
|
10173
10173
|
/* @__PURE__ */ d.jsxs("div", { className: "presset", children: [
|
|
10174
10174
|
/* @__PURE__ */ d.jsx("p", { children: _.fileArea.presset }),
|
|
10175
|
-
/* @__PURE__ */ d.jsx(Qa, { setOptions:
|
|
10175
|
+
/* @__PURE__ */ d.jsx(Qa, { setOptions: p, options: b, presset: k, setPresset: N, modal: y, language: t, hasAddNewOptions: !1 })
|
|
10176
10176
|
] })
|
|
10177
10177
|
] }),
|
|
10178
10178
|
/* @__PURE__ */ d.jsxs(Un, { children: [
|
|
@@ -10556,13 +10556,13 @@ const di = ({
|
|
|
10556
10556
|
color: c = "",
|
|
10557
10557
|
disabled: u = !1,
|
|
10558
10558
|
startIcon: l,
|
|
10559
|
-
endIcon:
|
|
10560
|
-
marginBottom:
|
|
10559
|
+
endIcon: f,
|
|
10560
|
+
marginBottom: y = "3px",
|
|
10561
10561
|
rows: w = 4,
|
|
10562
10562
|
...v
|
|
10563
10563
|
}, g) => {
|
|
10564
10564
|
const h = e || `input__${Math.random().toString(36).substr(2, 9)}`;
|
|
10565
|
-
return /* @__PURE__ */ d.jsxs(tv, { className: o, marginBottom:
|
|
10565
|
+
return /* @__PURE__ */ d.jsxs(tv, { className: o, marginBottom: y, children: [
|
|
10566
10566
|
t && /* @__PURE__ */ d.jsxs(rv, { htmlFor: h, children: [
|
|
10567
10567
|
/* @__PURE__ */ d.jsx("span", { className: "label", children: t }),
|
|
10568
10568
|
n && /* @__PURE__ */ d.jsx("span", { className: "description", children: n })
|
|
@@ -10578,7 +10578,7 @@ const di = ({
|
|
|
10578
10578
|
{
|
|
10579
10579
|
error: !!i,
|
|
10580
10580
|
"has-start-icon": !!l,
|
|
10581
|
-
"has-end-icon": !!
|
|
10581
|
+
"has-end-icon": !!f
|
|
10582
10582
|
}
|
|
10583
10583
|
]),
|
|
10584
10584
|
id: h,
|
|
@@ -10590,7 +10590,7 @@ const di = ({
|
|
|
10590
10590
|
}
|
|
10591
10591
|
),
|
|
10592
10592
|
l && /* @__PURE__ */ d.jsx("span", { className: nt(["icon", "start-icon"]), children: l }),
|
|
10593
|
-
|
|
10593
|
+
f && /* @__PURE__ */ d.jsx("span", { className: nt(["icon", "end-icon"]), children: f })
|
|
10594
10594
|
] }),
|
|
10595
10595
|
r && /* @__PURE__ */ d.jsx(av, { className: nt(["helper", c]), children: r }),
|
|
10596
10596
|
i && /* @__PURE__ */ d.jsx(ov, { className: nt(["error"]), children: i })
|
|
@@ -10601,16 +10601,16 @@ function sv(e) {
|
|
|
10601
10601
|
return Ae({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M60,96v64a12,12,0,0,1-24,0V96a12,12,0,0,1,24,0ZM88,20A12,12,0,0,0,76,32V224a12,12,0,0,0,24,0V32A12,12,0,0,0,88,20Zm40,32a12,12,0,0,0-12,12V192a12,12,0,0,0,24,0V64A12,12,0,0,0,128,52Zm40,32a12,12,0,0,0-12,12v64a12,12,0,0,0,24,0V96A12,12,0,0,0,168,84Zm40-16a12,12,0,0,0-12,12v96a12,12,0,0,0,24,0V80A12,12,0,0,0,208,68Z" }, child: [] }] })(e);
|
|
10602
10602
|
}
|
|
10603
10603
|
const Xv = () => {
|
|
10604
|
-
const { id: e, language: t, personas: n, propTags: r, token: i, env: a, readonly: o } = Zn(), s = mt(t), c = Wn((V) => V.message), u = Wn((V) => V.isloading), [l,
|
|
10604
|
+
const { id: e, language: t, personas: n, propTags: r, token: i, env: a, readonly: o } = Zn(), s = mt(t), c = Wn((V) => V.message), u = Wn((V) => V.isloading), [l, f] = me(""), [y, w] = me(""), [v, g] = me(""), [h, x] = me(""), T = Oo(), C = r ? r.tags : [], b = n && n.map((V) => ({ label: V.name, value: V.name })), p = C.map((V) => ({ label: V, value: V })), k = (V) => {
|
|
10605
10605
|
g(V);
|
|
10606
10606
|
}, N = (V) => {
|
|
10607
10607
|
x(V);
|
|
10608
10608
|
}, _ = (V) => {
|
|
10609
|
-
|
|
10609
|
+
f(V);
|
|
10610
10610
|
}, q = (V) => {
|
|
10611
10611
|
w(V);
|
|
10612
10612
|
}, H = () => {
|
|
10613
|
-
T(Qd(l,
|
|
10613
|
+
T(Qd(l, y, v, h, e, i, a));
|
|
10614
10614
|
}, U = () => /* @__PURE__ */ d.jsxs(po, { isloading: u, children: [
|
|
10615
10615
|
/* @__PURE__ */ d.jsx("div", { id: "loading" }),
|
|
10616
10616
|
/* @__PURE__ */ d.jsx(Jm, { children: /* @__PURE__ */ d.jsxs("div", { className: "infos", children: [
|
|
@@ -10619,15 +10619,15 @@ const Xv = () => {
|
|
|
10619
10619
|
] }) }),
|
|
10620
10620
|
/* @__PURE__ */ d.jsxs(fo, { children: [
|
|
10621
10621
|
/* @__PURE__ */ d.jsx(di, { placeholder: s.testArea.typeSentence, onChange: _ }),
|
|
10622
|
-
/* @__PURE__ */ d.jsx(mo, { placeholder: s.testArea.selectPersona, options:
|
|
10623
|
-
/* @__PURE__ */ d.jsx(mo, { placeholder: s.testArea.selectPresset, options:
|
|
10622
|
+
/* @__PURE__ */ d.jsx(mo, { placeholder: s.testArea.selectPersona, options: b, onSelect: k }),
|
|
10623
|
+
/* @__PURE__ */ d.jsx(mo, { placeholder: s.testArea.selectPresset, options: p, onSelect: N }),
|
|
10624
10624
|
/* @__PURE__ */ d.jsxs("button", { onClick: H, children: [
|
|
10625
10625
|
/* @__PURE__ */ d.jsx(sv, {}),
|
|
10626
10626
|
" ",
|
|
10627
10627
|
s.buttons.test
|
|
10628
10628
|
] })
|
|
10629
10629
|
] }),
|
|
10630
|
-
/* @__PURE__ */ d.jsx(fo, { children: v === "Custom" && /* @__PURE__ */ d.jsx(hc, { className: "textarea-message", placeholder: s.testArea.typePrompt, value:
|
|
10630
|
+
/* @__PURE__ */ d.jsx(fo, { children: v === "Custom" && /* @__PURE__ */ d.jsx(hc, { className: "textarea-message", placeholder: s.testArea.typePrompt, value: y, onChange: (V) => {
|
|
10631
10631
|
q(V.target.value);
|
|
10632
10632
|
} }) }),
|
|
10633
10633
|
c ? /* @__PURE__ */ d.jsxs(Qm, { children: [
|
|
@@ -10996,125 +10996,125 @@ const Cv = {
|
|
|
10996
10996
|
] })
|
|
10997
10997
|
] }) });
|
|
10998
10998
|
}, Zv = () => {
|
|
10999
|
-
var
|
|
11000
|
-
const { language: e } = Zn(),
|
|
10999
|
+
var z, ee, K, ce, re, ae, O, P, D;
|
|
11000
|
+
const { language: e, readonly: t } = Zn(), n = mt(e), { createPersona: r, personas: i, updatePersona: a, deletePersona: o } = Zn(), [s, c] = me(""), [u, l] = me(!1), [f, y] = me(null), [w, v] = me(!1), [g, h] = me(null), [x, T] = me([]), [C, b] = me([]), [p, k] = me({
|
|
11001
11001
|
name: "",
|
|
11002
11002
|
description: "",
|
|
11003
11003
|
prompt: ""
|
|
11004
|
-
}),
|
|
11005
|
-
|
|
11006
|
-
},
|
|
11007
|
-
|
|
11008
|
-
name:
|
|
11009
|
-
description:
|
|
11010
|
-
prompt:
|
|
11011
|
-
}),
|
|
11012
|
-
},
|
|
11013
|
-
|
|
11014
|
-
name: `${
|
|
11015
|
-
description:
|
|
11016
|
-
prompt:
|
|
11017
|
-
}),
|
|
11018
|
-
},
|
|
11019
|
-
if (
|
|
11004
|
+
}), N = p.name.trim() !== "" && p.description.trim() !== "" && p.prompt.trim() !== "", _ = () => {
|
|
11005
|
+
y(null), k({ name: "", description: "", prompt: "" }), l(!0);
|
|
11006
|
+
}, q = (j) => {
|
|
11007
|
+
y(j), k({
|
|
11008
|
+
name: j.name,
|
|
11009
|
+
description: j.description,
|
|
11010
|
+
prompt: j.prompt
|
|
11011
|
+
}), l(!0);
|
|
11012
|
+
}, H = (j) => {
|
|
11013
|
+
y(null), k({
|
|
11014
|
+
name: `${n.copyPrefix} ${j.name}`,
|
|
11015
|
+
description: j.description,
|
|
11016
|
+
prompt: j.prompt
|
|
11017
|
+
}), l(!0);
|
|
11018
|
+
}, U = async () => {
|
|
11019
|
+
if (N)
|
|
11020
11020
|
try {
|
|
11021
|
-
if (
|
|
11022
|
-
await
|
|
11021
|
+
if (f)
|
|
11022
|
+
await a(f._id, p);
|
|
11023
11023
|
else {
|
|
11024
|
-
const
|
|
11025
|
-
name:
|
|
11026
|
-
description:
|
|
11027
|
-
prompt:
|
|
11024
|
+
const j = {
|
|
11025
|
+
name: p.name,
|
|
11026
|
+
description: p.description,
|
|
11027
|
+
prompt: p.prompt,
|
|
11028
11028
|
type: "persona"
|
|
11029
11029
|
};
|
|
11030
|
-
await
|
|
11030
|
+
await r(j);
|
|
11031
11031
|
}
|
|
11032
|
-
|
|
11033
|
-
} catch (
|
|
11034
|
-
console.error("Erro ao salvar persona",
|
|
11032
|
+
l(!1);
|
|
11033
|
+
} catch (j) {
|
|
11034
|
+
console.error("Erro ao salvar persona", j);
|
|
11035
11035
|
}
|
|
11036
|
-
},
|
|
11037
|
-
|
|
11038
|
-
},
|
|
11036
|
+
}, V = (j) => {
|
|
11037
|
+
h(j), v(!0);
|
|
11038
|
+
}, R = async () => {
|
|
11039
11039
|
try {
|
|
11040
|
-
await
|
|
11041
|
-
} catch (
|
|
11042
|
-
console.error("Erro ao deletar persona",
|
|
11040
|
+
await o(g._id), v(!1), h(null);
|
|
11041
|
+
} catch (j) {
|
|
11042
|
+
console.error("Erro ao deletar persona", j);
|
|
11043
11043
|
}
|
|
11044
11044
|
};
|
|
11045
11045
|
return Ce(() => {
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
(
|
|
11046
|
+
b(
|
|
11047
|
+
i == null ? void 0 : i.filter(
|
|
11048
|
+
(j) => j.name.toLowerCase().includes(s.toLowerCase())
|
|
11049
11049
|
)
|
|
11050
11050
|
);
|
|
11051
|
-
}, [
|
|
11051
|
+
}, [i]), /* @__PURE__ */ d.jsxs(vv, { children: [
|
|
11052
11052
|
/* @__PURE__ */ d.jsxs(hv, { children: [
|
|
11053
11053
|
/* @__PURE__ */ d.jsxs("div", { className: "infos", children: [
|
|
11054
|
-
/* @__PURE__ */ d.jsx("h2", { children: (
|
|
11055
|
-
/* @__PURE__ */ d.jsx("p", { children: (
|
|
11054
|
+
/* @__PURE__ */ d.jsx("h2", { children: (z = n.personas) == null ? void 0 : z.title }),
|
|
11055
|
+
/* @__PURE__ */ d.jsx("p", { children: (ee = n.personas) == null ? void 0 : ee.description })
|
|
11056
11056
|
] }),
|
|
11057
|
-
/* @__PURE__ */ d.jsxs("button", { onClick:
|
|
11057
|
+
!t && /* @__PURE__ */ d.jsxs("button", { onClick: _, children: [
|
|
11058
11058
|
/* @__PURE__ */ d.jsx(wf, {}),
|
|
11059
11059
|
" ",
|
|
11060
|
-
(
|
|
11060
|
+
(K = n.personas) == null ? void 0 : K.add
|
|
11061
11061
|
] })
|
|
11062
11062
|
] }),
|
|
11063
11063
|
/* @__PURE__ */ d.jsx(gv, { children: /* @__PURE__ */ d.jsx(
|
|
11064
11064
|
ic,
|
|
11065
11065
|
{
|
|
11066
|
-
placeholder:
|
|
11067
|
-
setFiles:
|
|
11068
|
-
initialFiles:
|
|
11066
|
+
placeholder: n.search,
|
|
11067
|
+
setFiles: b,
|
|
11068
|
+
initialFiles: i
|
|
11069
11069
|
}
|
|
11070
11070
|
) }),
|
|
11071
|
-
/* @__PURE__ */ d.jsx(yv, { children: /* @__PURE__ */ d.jsx("tbody", { children:
|
|
11071
|
+
/* @__PURE__ */ d.jsx(yv, { children: /* @__PURE__ */ d.jsx("tbody", { children: C == null ? void 0 : C.map((j) => /* @__PURE__ */ d.jsxs("tr", { className: "tr-Row", children: [
|
|
11072
11072
|
/* @__PURE__ */ d.jsx("td", { children: /* @__PURE__ */ d.jsxs("div", { className: "info", children: [
|
|
11073
|
-
/* @__PURE__ */ d.jsx("p", { children: /* @__PURE__ */ d.jsx("strong", { children:
|
|
11074
|
-
/* @__PURE__ */ d.jsx("span", { children:
|
|
11073
|
+
/* @__PURE__ */ d.jsx("p", { children: /* @__PURE__ */ d.jsx("strong", { children: j.name }) }),
|
|
11074
|
+
/* @__PURE__ */ d.jsx("span", { children: j.description })
|
|
11075
11075
|
] }) }),
|
|
11076
|
-
/* @__PURE__ */ d.jsx("td", { className: "td-actions", children:
|
|
11077
|
-
/* @__PURE__ */ d.jsxs("button", { onClick: () =>
|
|
11076
|
+
/* @__PURE__ */ d.jsx("td", { className: "td-actions", children: !t && j.created_at && /* @__PURE__ */ d.jsxs("div", { className: "actions", children: [
|
|
11077
|
+
/* @__PURE__ */ d.jsxs("button", { onClick: () => q(j), children: [
|
|
11078
11078
|
/* @__PURE__ */ d.jsx(yf, {}),
|
|
11079
11079
|
" ",
|
|
11080
|
-
|
|
11080
|
+
n.edit
|
|
11081
11081
|
] }),
|
|
11082
|
-
/* @__PURE__ */ d.jsxs("button", { onClick: () =>
|
|
11082
|
+
/* @__PURE__ */ d.jsxs("button", { onClick: () => H(j), children: [
|
|
11083
11083
|
/* @__PURE__ */ d.jsx(xf, {}),
|
|
11084
11084
|
" ",
|
|
11085
|
-
|
|
11085
|
+
n.clone
|
|
11086
11086
|
] }),
|
|
11087
11087
|
/* @__PURE__ */ d.jsxs(
|
|
11088
11088
|
"button",
|
|
11089
11089
|
{
|
|
11090
11090
|
className: "button-delete",
|
|
11091
|
-
onClick: () =>
|
|
11091
|
+
onClick: () => V(j),
|
|
11092
11092
|
children: [
|
|
11093
11093
|
/* @__PURE__ */ d.jsx(_f, {}),
|
|
11094
11094
|
" ",
|
|
11095
|
-
|
|
11095
|
+
n.delete
|
|
11096
11096
|
]
|
|
11097
11097
|
}
|
|
11098
11098
|
)
|
|
11099
11099
|
] }) })
|
|
11100
|
-
] },
|
|
11101
|
-
|
|
11100
|
+
] }, j.id)) }) }),
|
|
11101
|
+
u && /* @__PURE__ */ d.jsxs(vo, { onClose: () => l(!1), title: (ce = n.personas) == null ? void 0 : ce.modalTitle, children: [
|
|
11102
11102
|
/* @__PURE__ */ d.jsxs(xv, { children: [
|
|
11103
11103
|
/* @__PURE__ */ d.jsx(
|
|
11104
11104
|
di,
|
|
11105
11105
|
{
|
|
11106
|
-
value:
|
|
11107
|
-
placeholder: (
|
|
11108
|
-
onChange: (
|
|
11106
|
+
value: p.name,
|
|
11107
|
+
placeholder: (re = n.personas) == null ? void 0 : re.fields.name,
|
|
11108
|
+
onChange: (j) => k({ ...p, name: j }),
|
|
11109
11109
|
maxLength: 50
|
|
11110
11110
|
}
|
|
11111
11111
|
),
|
|
11112
11112
|
/* @__PURE__ */ d.jsx(
|
|
11113
11113
|
di,
|
|
11114
11114
|
{
|
|
11115
|
-
value:
|
|
11116
|
-
placeholder: (
|
|
11117
|
-
onChange: (
|
|
11115
|
+
value: p.description,
|
|
11116
|
+
placeholder: (ae = n.personas) == null ? void 0 : ae.fields.description,
|
|
11117
|
+
onChange: (j) => k({ ...p, description: j }),
|
|
11118
11118
|
maxLength: 200
|
|
11119
11119
|
}
|
|
11120
11120
|
)
|
|
@@ -11123,47 +11123,47 @@ const Cv = {
|
|
|
11123
11123
|
/* @__PURE__ */ d.jsx(
|
|
11124
11124
|
hc,
|
|
11125
11125
|
{
|
|
11126
|
-
label: (
|
|
11126
|
+
label: (O = n.personas) == null ? void 0 : O.fields.prompt,
|
|
11127
11127
|
maxLength: 1e4,
|
|
11128
|
-
value:
|
|
11129
|
-
onChange: (
|
|
11128
|
+
value: p.prompt,
|
|
11129
|
+
onChange: (j) => k({ ...p, prompt: j.target.value })
|
|
11130
11130
|
}
|
|
11131
11131
|
),
|
|
11132
|
-
/* @__PURE__ */ d.jsx(mv, { value:
|
|
11132
|
+
/* @__PURE__ */ d.jsx(mv, { value: p.prompt, maxLength: 1e4 })
|
|
11133
11133
|
] }),
|
|
11134
11134
|
/* @__PURE__ */ d.jsx(
|
|
11135
11135
|
Ov,
|
|
11136
11136
|
{
|
|
11137
|
-
title: (
|
|
11138
|
-
message: (
|
|
11137
|
+
title: (P = n.personas) == null ? void 0 : P.alertTitle,
|
|
11138
|
+
message: (D = n.personas) == null ? void 0 : D.alertMessage
|
|
11139
11139
|
}
|
|
11140
11140
|
),
|
|
11141
11141
|
/* @__PURE__ */ d.jsxs(ho, { children: [
|
|
11142
|
-
/* @__PURE__ */ d.jsx("button", { onClick: () =>
|
|
11142
|
+
/* @__PURE__ */ d.jsx("button", { onClick: () => l(!1), children: n.buttons.cancel }),
|
|
11143
11143
|
/* @__PURE__ */ d.jsx(
|
|
11144
11144
|
"button",
|
|
11145
11145
|
{
|
|
11146
|
-
onClick:
|
|
11147
|
-
disabled: !
|
|
11146
|
+
onClick: U,
|
|
11147
|
+
disabled: !N,
|
|
11148
11148
|
style: {
|
|
11149
|
-
opacity:
|
|
11150
|
-
cursor:
|
|
11149
|
+
opacity: N ? 1 : 0.5,
|
|
11150
|
+
cursor: N ? "pointer" : "not-allowed"
|
|
11151
11151
|
},
|
|
11152
|
-
children:
|
|
11152
|
+
children: n.save
|
|
11153
11153
|
}
|
|
11154
11154
|
)
|
|
11155
11155
|
] })
|
|
11156
11156
|
] }),
|
|
11157
|
-
|
|
11157
|
+
w && g && /* @__PURE__ */ d.jsxs(vo, { onClose: () => v(!1), title: n.delete, children: [
|
|
11158
11158
|
/* @__PURE__ */ d.jsxs("p", { children: [
|
|
11159
|
-
|
|
11159
|
+
n.personas.modalAlert,
|
|
11160
11160
|
" ",
|
|
11161
|
-
/* @__PURE__ */ d.jsx("strong", { children:
|
|
11161
|
+
/* @__PURE__ */ d.jsx("strong", { children: g.name }),
|
|
11162
11162
|
"?"
|
|
11163
11163
|
] }),
|
|
11164
11164
|
/* @__PURE__ */ d.jsxs(ho, { children: [
|
|
11165
|
-
/* @__PURE__ */ d.jsx("button", { onClick: () =>
|
|
11166
|
-
/* @__PURE__ */ d.jsx("button", { onClick:
|
|
11165
|
+
/* @__PURE__ */ d.jsx("button", { onClick: () => v(!1), children: n.buttons.cancel }),
|
|
11166
|
+
/* @__PURE__ */ d.jsx("button", { onClick: R, children: n.buttons.delete })
|
|
11167
11167
|
] })
|
|
11168
11168
|
] })
|
|
11169
11169
|
] });
|