@service_laboratory/auth 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +274 -260
- package/dist/index.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,27 +8,27 @@ var ye = { exports: {} }, fe = {};
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
var
|
|
18
|
-
if (m !== void 0 && (
|
|
11
|
+
var xe;
|
|
12
|
+
function ot() {
|
|
13
|
+
if (xe) return fe;
|
|
14
|
+
xe = 1;
|
|
15
|
+
var w = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
|
|
16
|
+
function u(f, p, m) {
|
|
17
|
+
var k = null;
|
|
18
|
+
if (m !== void 0 && (k = "" + m), p.key !== void 0 && (k = "" + p.key), "key" in p) {
|
|
19
19
|
m = {};
|
|
20
20
|
for (var D in p)
|
|
21
21
|
D !== "key" && (m[D] = p[D]);
|
|
22
22
|
} else m = p;
|
|
23
23
|
return p = m.ref, {
|
|
24
|
-
$$typeof:
|
|
24
|
+
$$typeof: w,
|
|
25
25
|
type: f,
|
|
26
|
-
key:
|
|
26
|
+
key: k,
|
|
27
27
|
ref: p !== void 0 ? p : null,
|
|
28
28
|
props: m
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
return fe.Fragment = o, fe.jsx =
|
|
31
|
+
return fe.Fragment = o, fe.jsx = u, fe.jsxs = u, fe;
|
|
32
32
|
}
|
|
33
33
|
var le = {}, ge = { exports: {} }, _ = {};
|
|
34
34
|
/**
|
|
@@ -40,13 +40,13 @@ var le = {}, ge = { exports: {} }, _ = {};
|
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
var
|
|
44
|
-
function
|
|
45
|
-
if (
|
|
46
|
-
|
|
47
|
-
var
|
|
43
|
+
var We;
|
|
44
|
+
function st() {
|
|
45
|
+
if (We) return _;
|
|
46
|
+
We = 1;
|
|
47
|
+
var w = Symbol.for("react.transitional.element"), o = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), m = Symbol.for("react.consumer"), k = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), oe = Symbol.for("react.suspense"), W = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), q = Symbol.iterator;
|
|
48
48
|
function H(t) {
|
|
49
|
-
return t === null || typeof t != "object" ? null : (t =
|
|
49
|
+
return t === null || typeof t != "object" ? null : (t = q && t[q] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
50
50
|
}
|
|
51
51
|
var z = {
|
|
52
52
|
isMounted: function() {
|
|
@@ -80,13 +80,13 @@ function nt() {
|
|
|
80
80
|
var j = Z.prototype = new F();
|
|
81
81
|
j.constructor = Z, K(j, Y.prototype), j.isPureReactComponent = !0;
|
|
82
82
|
var se = Array.isArray, T = { H: null, A: null, T: null, S: null, V: null }, J = Object.prototype.hasOwnProperty;
|
|
83
|
-
function ee(t, n, i, c, d,
|
|
84
|
-
return i =
|
|
85
|
-
$$typeof:
|
|
83
|
+
function ee(t, n, i, c, d, b) {
|
|
84
|
+
return i = b.ref, {
|
|
85
|
+
$$typeof: w,
|
|
86
86
|
type: t,
|
|
87
87
|
key: n,
|
|
88
88
|
ref: i !== void 0 ? i : null,
|
|
89
|
-
props:
|
|
89
|
+
props: b
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
function L(t, n) {
|
|
@@ -100,7 +100,7 @@ function nt() {
|
|
|
100
100
|
);
|
|
101
101
|
}
|
|
102
102
|
function U(t) {
|
|
103
|
-
return typeof t == "object" && t !== null && t.$$typeof ===
|
|
103
|
+
return typeof t == "object" && t !== null && t.$$typeof === w;
|
|
104
104
|
}
|
|
105
105
|
function ie(t) {
|
|
106
106
|
var n = { "=": "=0", ":": "=2" };
|
|
@@ -137,13 +137,13 @@ function nt() {
|
|
|
137
137
|
}
|
|
138
138
|
throw t;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
var
|
|
142
|
-
(
|
|
140
|
+
function A(t, n, i, c, d) {
|
|
141
|
+
var b = typeof t;
|
|
142
|
+
(b === "undefined" || b === "boolean") && (t = null);
|
|
143
143
|
var h = !1;
|
|
144
144
|
if (t === null) h = !0;
|
|
145
145
|
else
|
|
146
|
-
switch (
|
|
146
|
+
switch (b) {
|
|
147
147
|
case "bigint":
|
|
148
148
|
case "string":
|
|
149
149
|
case "number":
|
|
@@ -151,12 +151,12 @@ function nt() {
|
|
|
151
151
|
break;
|
|
152
152
|
case "object":
|
|
153
153
|
switch (t.$$typeof) {
|
|
154
|
-
case
|
|
154
|
+
case w:
|
|
155
155
|
case o:
|
|
156
156
|
h = !0;
|
|
157
157
|
break;
|
|
158
158
|
case $:
|
|
159
|
-
return h = t._init,
|
|
159
|
+
return h = t._init, A(
|
|
160
160
|
h(t._payload),
|
|
161
161
|
n,
|
|
162
162
|
i,
|
|
@@ -166,7 +166,7 @@ function nt() {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
if (h)
|
|
169
|
-
return d = d(t), h = c === "" ? "." + B(t, 0) : c, se(d) ? (i = "", h != null && (i = h.replace(O, "$&/") + "/"),
|
|
169
|
+
return d = d(t), h = c === "" ? "." + B(t, 0) : c, se(d) ? (i = "", h != null && (i = h.replace(O, "$&/") + "/"), A(d, n, i, "", function(P) {
|
|
170
170
|
return P;
|
|
171
171
|
})) : d != null && (U(d) && (d = L(
|
|
172
172
|
d,
|
|
@@ -179,25 +179,25 @@ function nt() {
|
|
|
179
179
|
var C = c === "" ? "." : c + ":";
|
|
180
180
|
if (se(t))
|
|
181
181
|
for (var v = 0; v < t.length; v++)
|
|
182
|
-
c = t[v],
|
|
182
|
+
c = t[v], b = C + B(c, v), h += A(
|
|
183
183
|
c,
|
|
184
184
|
n,
|
|
185
185
|
i,
|
|
186
|
-
|
|
186
|
+
b,
|
|
187
187
|
d
|
|
188
188
|
);
|
|
189
189
|
else if (v = H(t), typeof v == "function")
|
|
190
190
|
for (t = v.call(t), v = 0; !(c = t.next()).done; )
|
|
191
|
-
c = c.value,
|
|
191
|
+
c = c.value, b = C + B(c, v++), h += A(
|
|
192
192
|
c,
|
|
193
193
|
n,
|
|
194
194
|
i,
|
|
195
|
-
|
|
195
|
+
b,
|
|
196
196
|
d
|
|
197
197
|
);
|
|
198
|
-
else if (
|
|
198
|
+
else if (b === "object") {
|
|
199
199
|
if (typeof t.then == "function")
|
|
200
|
-
return
|
|
200
|
+
return A(
|
|
201
201
|
M(t),
|
|
202
202
|
n,
|
|
203
203
|
i,
|
|
@@ -213,8 +213,8 @@ function nt() {
|
|
|
213
213
|
function I(t, n, i) {
|
|
214
214
|
if (t == null) return t;
|
|
215
215
|
var c = [], d = 0;
|
|
216
|
-
return
|
|
217
|
-
return n.call(i,
|
|
216
|
+
return A(t, c, "", "", function(b) {
|
|
217
|
+
return n.call(i, b, d++);
|
|
218
218
|
}), c;
|
|
219
219
|
}
|
|
220
220
|
function Q(t) {
|
|
@@ -232,7 +232,7 @@ function nt() {
|
|
|
232
232
|
if (t._status === 1) return t._result.default;
|
|
233
233
|
throw t._result;
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var x = typeof reportError == "function" ? reportError : function(t) {
|
|
236
236
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
237
237
|
var n = new window.ErrorEvent("error", {
|
|
238
238
|
bubbles: !0,
|
|
@@ -278,7 +278,7 @@ function nt() {
|
|
|
278
278
|
);
|
|
279
279
|
return t;
|
|
280
280
|
}
|
|
281
|
-
}, _.Component = Y, _.Fragment =
|
|
281
|
+
}, _.Component = Y, _.Fragment = u, _.Profiler = p, _.PureComponent = Z, _.StrictMode = f, _.Suspense = oe, _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, _.__COMPILER_RUNTIME = {
|
|
282
282
|
__proto__: null,
|
|
283
283
|
c: function(t) {
|
|
284
284
|
return T.H.useMemoCache(t);
|
|
@@ -292,9 +292,9 @@ function nt() {
|
|
|
292
292
|
throw Error(
|
|
293
293
|
"The argument must be a React element, but you passed " + t + "."
|
|
294
294
|
);
|
|
295
|
-
var c = K({}, t.props), d = t.key,
|
|
295
|
+
var c = K({}, t.props), d = t.key, b = void 0;
|
|
296
296
|
if (n != null)
|
|
297
|
-
for (h in n.ref !== void 0 && (
|
|
297
|
+
for (h in n.ref !== void 0 && (b = void 0), n.key !== void 0 && (d = "" + n.key), n)
|
|
298
298
|
!J.call(n, h) || h === "key" || h === "__self" || h === "__source" || h === "ref" && n.ref === void 0 || (c[h] = n[h]);
|
|
299
299
|
var h = arguments.length - 2;
|
|
300
300
|
if (h === 1) c.children = i;
|
|
@@ -303,10 +303,10 @@ function nt() {
|
|
|
303
303
|
C[v] = arguments[v + 2];
|
|
304
304
|
c.children = C;
|
|
305
305
|
}
|
|
306
|
-
return ee(t.type, d, void 0, void 0,
|
|
306
|
+
return ee(t.type, d, void 0, void 0, b, c);
|
|
307
307
|
}, _.createContext = function(t) {
|
|
308
308
|
return t = {
|
|
309
|
-
$$typeof:
|
|
309
|
+
$$typeof: k,
|
|
310
310
|
_currentValue: t,
|
|
311
311
|
_currentValue2: t,
|
|
312
312
|
_threadCount: 0,
|
|
@@ -317,9 +317,9 @@ function nt() {
|
|
|
317
317
|
_context: t
|
|
318
318
|
}, t;
|
|
319
319
|
}, _.createElement = function(t, n, i) {
|
|
320
|
-
var c, d = {},
|
|
320
|
+
var c, d = {}, b = null;
|
|
321
321
|
if (n != null)
|
|
322
|
-
for (c in n.key !== void 0 && (
|
|
322
|
+
for (c in n.key !== void 0 && (b = "" + n.key), n)
|
|
323
323
|
J.call(n, c) && c !== "key" && c !== "__self" && c !== "__source" && (d[c] = n[c]);
|
|
324
324
|
var h = arguments.length - 2;
|
|
325
325
|
if (h === 1) d.children = i;
|
|
@@ -331,7 +331,7 @@ function nt() {
|
|
|
331
331
|
if (t && t.defaultProps)
|
|
332
332
|
for (c in h = t.defaultProps, h)
|
|
333
333
|
d[c] === void 0 && (d[c] = h[c]);
|
|
334
|
-
return ee(t,
|
|
334
|
+
return ee(t, b, void 0, void 0, null, d);
|
|
335
335
|
}, _.createRef = function() {
|
|
336
336
|
return { current: null };
|
|
337
337
|
}, _.forwardRef = function(t) {
|
|
@@ -344,7 +344,7 @@ function nt() {
|
|
|
344
344
|
};
|
|
345
345
|
}, _.memo = function(t, n) {
|
|
346
346
|
return {
|
|
347
|
-
$$typeof:
|
|
347
|
+
$$typeof: W,
|
|
348
348
|
type: t,
|
|
349
349
|
compare: n === void 0 ? null : n
|
|
350
350
|
};
|
|
@@ -353,9 +353,9 @@ function nt() {
|
|
|
353
353
|
T.T = i;
|
|
354
354
|
try {
|
|
355
355
|
var c = t(), d = T.S;
|
|
356
|
-
d !== null && d(i, c), typeof c == "object" && c !== null && typeof c.then == "function" && c.then(te,
|
|
357
|
-
} catch (
|
|
358
|
-
|
|
356
|
+
d !== null && d(i, c), typeof c == "object" && c !== null && typeof c.then == "function" && c.then(te, x);
|
|
357
|
+
} catch (b) {
|
|
358
|
+
x(b);
|
|
359
359
|
} finally {
|
|
360
360
|
T.T = n;
|
|
361
361
|
}
|
|
@@ -418,11 +418,11 @@ var pe = { exports: {} };
|
|
|
418
418
|
* LICENSE file in the root directory of this source tree.
|
|
419
419
|
*/
|
|
420
420
|
pe.exports;
|
|
421
|
-
var
|
|
422
|
-
function
|
|
423
|
-
return
|
|
421
|
+
var qe;
|
|
422
|
+
function ut() {
|
|
423
|
+
return qe || (qe = 1, (function(w, o) {
|
|
424
424
|
process.env.NODE_ENV !== "production" && (function() {
|
|
425
|
-
function
|
|
425
|
+
function u(e, r) {
|
|
426
426
|
Object.defineProperty(m.prototype, e, {
|
|
427
427
|
get: function() {
|
|
428
428
|
console.warn(
|
|
@@ -448,7 +448,7 @@ function ot() {
|
|
|
448
448
|
function m(e, r, s) {
|
|
449
449
|
this.props = e, this.context = r, this.refs = Te, this.updater = s || Pe;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function k() {
|
|
452
452
|
}
|
|
453
453
|
function D(e, r, s) {
|
|
454
454
|
this.props = e, this.context = r, this.refs = Te, this.updater = s || Pe;
|
|
@@ -456,7 +456,7 @@ function ot() {
|
|
|
456
456
|
function oe(e) {
|
|
457
457
|
return "" + e;
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function W(e) {
|
|
460
460
|
try {
|
|
461
461
|
oe(e);
|
|
462
462
|
var r = !1;
|
|
@@ -465,18 +465,18 @@ function ot() {
|
|
|
465
465
|
}
|
|
466
466
|
if (r) {
|
|
467
467
|
r = console;
|
|
468
|
-
var s = r.error,
|
|
468
|
+
var s = r.error, a = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
469
469
|
return s.call(
|
|
470
470
|
r,
|
|
471
471
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
472
|
-
|
|
472
|
+
a
|
|
473
473
|
), oe(e);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
function $(e) {
|
|
477
477
|
if (e == null) return null;
|
|
478
478
|
if (typeof e == "function")
|
|
479
|
-
return e.$$typeof ===
|
|
479
|
+
return e.$$typeof === Je ? null : e.displayName || e.name || null;
|
|
480
480
|
if (typeof e == "string") return e;
|
|
481
481
|
switch (e) {
|
|
482
482
|
case t:
|
|
@@ -502,7 +502,7 @@ function ot() {
|
|
|
502
502
|
return (e.displayName || "Context") + ".Provider";
|
|
503
503
|
case c:
|
|
504
504
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
505
|
-
case
|
|
505
|
+
case b:
|
|
506
506
|
var r = e.render;
|
|
507
507
|
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
508
508
|
case v:
|
|
@@ -516,7 +516,7 @@ function ot() {
|
|
|
516
516
|
}
|
|
517
517
|
return null;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function q(e) {
|
|
520
520
|
if (e === t) return "<>";
|
|
521
521
|
if (typeof e == "object" && e !== null && e.$$typeof === P)
|
|
522
522
|
return "<...>";
|
|
@@ -559,9 +559,9 @@ function ot() {
|
|
|
559
559
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
560
560
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
561
561
|
}
|
|
562
|
-
function F(e, r, s,
|
|
562
|
+
function F(e, r, s, a, l, R, E, S) {
|
|
563
563
|
return s = R.ref, e = {
|
|
564
|
-
$$typeof:
|
|
564
|
+
$$typeof: x,
|
|
565
565
|
type: e,
|
|
566
566
|
key: r,
|
|
567
567
|
props: R,
|
|
@@ -604,7 +604,7 @@ function ot() {
|
|
|
604
604
|
), e._store && (r._store.validated = e._store.validated), r;
|
|
605
605
|
}
|
|
606
606
|
function j(e) {
|
|
607
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
607
|
+
return typeof e == "object" && e !== null && e.$$typeof === x;
|
|
608
608
|
}
|
|
609
609
|
function se(e) {
|
|
610
610
|
var r = { "=": "=0", ":": "=2" };
|
|
@@ -613,7 +613,7 @@ function ot() {
|
|
|
613
613
|
});
|
|
614
614
|
}
|
|
615
615
|
function T(e, r) {
|
|
616
|
-
return typeof e == "object" && e !== null && e.key != null ? (
|
|
616
|
+
return typeof e == "object" && e !== null && e.key != null ? (W(e.key), se("" + e.key)) : r.toString(36);
|
|
617
617
|
}
|
|
618
618
|
function J() {
|
|
619
619
|
}
|
|
@@ -640,7 +640,7 @@ function ot() {
|
|
|
640
640
|
}
|
|
641
641
|
throw e;
|
|
642
642
|
}
|
|
643
|
-
function L(e, r, s,
|
|
643
|
+
function L(e, r, s, a, l) {
|
|
644
644
|
var R = typeof e;
|
|
645
645
|
(R === "undefined" || R === "boolean") && (e = null);
|
|
646
646
|
var E = !1;
|
|
@@ -654,7 +654,7 @@ function ot() {
|
|
|
654
654
|
break;
|
|
655
655
|
case "object":
|
|
656
656
|
switch (e.$$typeof) {
|
|
657
|
-
case
|
|
657
|
+
case x:
|
|
658
658
|
case te:
|
|
659
659
|
E = !0;
|
|
660
660
|
break;
|
|
@@ -663,28 +663,28 @@ function ot() {
|
|
|
663
663
|
E(e._payload),
|
|
664
664
|
r,
|
|
665
665
|
s,
|
|
666
|
-
|
|
666
|
+
a,
|
|
667
667
|
l
|
|
668
668
|
);
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
if (E) {
|
|
672
672
|
E = e, l = l(E);
|
|
673
|
-
var S =
|
|
673
|
+
var S = a === "" ? "." + T(E, 0) : a;
|
|
674
674
|
return Ne(l) ? (s = "", S != null && (s = S.replace(Ye, "$&/") + "/"), L(l, r, s, "", function(X) {
|
|
675
675
|
return X;
|
|
676
|
-
})) : l != null && (j(l) && (l.key != null && (E && E.key === l.key ||
|
|
676
|
+
})) : l != null && (j(l) && (l.key != null && (E && E.key === l.key || W(l.key)), s = Z(
|
|
677
677
|
l,
|
|
678
678
|
s + (l.key == null || E && E.key === l.key ? "" : ("" + l.key).replace(
|
|
679
679
|
Ye,
|
|
680
680
|
"$&/"
|
|
681
681
|
) + "/") + S
|
|
682
|
-
),
|
|
682
|
+
), a !== "" && E != null && j(E) && E.key == null && E._store && !E._store.validated && (s._store.validated = 2), l = s), r.push(l)), 1;
|
|
683
683
|
}
|
|
684
|
-
if (E = 0, S =
|
|
684
|
+
if (E = 0, S = a === "" ? "." : a + ":", Ne(e))
|
|
685
685
|
for (var y = 0; y < e.length; y++)
|
|
686
|
-
|
|
687
|
-
|
|
686
|
+
a = e[y], R = S + T(a, y), E += L(
|
|
687
|
+
a,
|
|
688
688
|
r,
|
|
689
689
|
s,
|
|
690
690
|
R,
|
|
@@ -693,9 +693,9 @@ function ot() {
|
|
|
693
693
|
else if (y = f(e), typeof y == "function")
|
|
694
694
|
for (y === e.entries && ($e || console.warn(
|
|
695
695
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
696
|
-
), $e = !0), e = y.call(e), y = 0; !(
|
|
697
|
-
|
|
698
|
-
|
|
696
|
+
), $e = !0), e = y.call(e), y = 0; !(a = e.next()).done; )
|
|
697
|
+
a = a.value, R = S + T(a, y++), E += L(
|
|
698
|
+
a,
|
|
699
699
|
r,
|
|
700
700
|
s,
|
|
701
701
|
R,
|
|
@@ -707,7 +707,7 @@ function ot() {
|
|
|
707
707
|
ee(e),
|
|
708
708
|
r,
|
|
709
709
|
s,
|
|
710
|
-
|
|
710
|
+
a,
|
|
711
711
|
l
|
|
712
712
|
);
|
|
713
713
|
throw r = String(e), Error(
|
|
@@ -718,10 +718,10 @@ function ot() {
|
|
|
718
718
|
}
|
|
719
719
|
function U(e, r, s) {
|
|
720
720
|
if (e == null) return e;
|
|
721
|
-
var
|
|
722
|
-
return L(e,
|
|
721
|
+
var a = [], l = 0;
|
|
722
|
+
return L(e, a, "", "", function(R) {
|
|
723
723
|
return r.call(s, R, l++);
|
|
724
|
-
}),
|
|
724
|
+
}), a;
|
|
725
725
|
}
|
|
726
726
|
function ie(e) {
|
|
727
727
|
if (e._status === -1) {
|
|
@@ -769,17 +769,17 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
769
769
|
if (ve === null)
|
|
770
770
|
try {
|
|
771
771
|
var r = ("require" + Math.random()).slice(0, 7);
|
|
772
|
-
ve = (
|
|
773
|
-
|
|
772
|
+
ve = (w && w[r]).call(
|
|
773
|
+
w,
|
|
774
774
|
"timers"
|
|
775
775
|
).setImmediate;
|
|
776
776
|
} catch {
|
|
777
|
-
ve = function(
|
|
777
|
+
ve = function(a) {
|
|
778
778
|
He === !1 && (He = !0, typeof MessageChannel > "u" && console.error(
|
|
779
779
|
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
780
780
|
));
|
|
781
781
|
var l = new MessageChannel();
|
|
782
|
-
l.port1.onmessage =
|
|
782
|
+
l.port1.onmessage = a, l.port2.postMessage(void 0);
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
785
|
return ve(e);
|
|
@@ -787,17 +787,17 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
787
787
|
function M(e) {
|
|
788
788
|
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function A(e, r) {
|
|
791
791
|
r !== me - 1 && console.error(
|
|
792
792
|
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
793
793
|
), me = r;
|
|
794
794
|
}
|
|
795
795
|
function I(e, r, s) {
|
|
796
|
-
var
|
|
797
|
-
if (
|
|
798
|
-
if (
|
|
796
|
+
var a = g.actQueue;
|
|
797
|
+
if (a !== null)
|
|
798
|
+
if (a.length !== 0)
|
|
799
799
|
try {
|
|
800
|
-
Q(
|
|
800
|
+
Q(a), V(function() {
|
|
801
801
|
return I(e, r, s);
|
|
802
802
|
});
|
|
803
803
|
return;
|
|
@@ -805,7 +805,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
805
805
|
g.thrownErrors.push(l);
|
|
806
806
|
}
|
|
807
807
|
else g.actQueue = null;
|
|
808
|
-
0 < g.thrownErrors.length ? (
|
|
808
|
+
0 < g.thrownErrors.length ? (a = M(g.thrownErrors), g.thrownErrors.length = 0, s(a)) : r(e);
|
|
809
809
|
}
|
|
810
810
|
function Q(e) {
|
|
811
811
|
if (!Se) {
|
|
@@ -816,13 +816,13 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
816
816
|
var s = e[r];
|
|
817
817
|
do {
|
|
818
818
|
g.didUsePromise = !1;
|
|
819
|
-
var
|
|
820
|
-
if (
|
|
819
|
+
var a = s(!1);
|
|
820
|
+
if (a !== null) {
|
|
821
821
|
if (g.didUsePromise) {
|
|
822
822
|
e[r] = s, e.splice(0, r);
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
825
|
-
s =
|
|
825
|
+
s = a;
|
|
826
826
|
} else break;
|
|
827
827
|
} while (!0);
|
|
828
828
|
}
|
|
@@ -835,7 +835,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
838
|
-
var
|
|
838
|
+
var x = Symbol.for("react.transitional.element"), te = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), d = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), ce = Symbol.for("react.activity"), de = Symbol.iterator, Ce = {}, Pe = {
|
|
839
839
|
isMounted: function() {
|
|
840
840
|
return !1;
|
|
841
841
|
},
|
|
@@ -869,9 +869,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
869
869
|
]
|
|
870
870
|
}, he;
|
|
871
871
|
for (he in N)
|
|
872
|
-
N.hasOwnProperty(he) &&
|
|
873
|
-
|
|
874
|
-
var Ne = Array.isArray,
|
|
872
|
+
N.hasOwnProperty(he) && u(he, N[he]);
|
|
873
|
+
k.prototype = m.prototype, N = D.prototype = new k(), N.constructor = D, je(N, m.prototype), N.isPureReactComponent = !0;
|
|
874
|
+
var Ne = Array.isArray, Je = Symbol.for("react.client.reference"), g = {
|
|
875
875
|
H: null,
|
|
876
876
|
A: null,
|
|
877
877
|
T: null,
|
|
@@ -892,10 +892,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
892
892
|
return e();
|
|
893
893
|
}
|
|
894
894
|
};
|
|
895
|
-
var Le, Me, Ie = {},
|
|
895
|
+
var Le, Me, Ie = {}, et = N.react_stack_bottom_frame.bind(
|
|
896
896
|
N,
|
|
897
897
|
z
|
|
898
|
-
)(),
|
|
898
|
+
)(), tt = De(q(z)), $e = !1, Ye = /\/+/g, Ue = typeof reportError == "function" ? reportError : function(e) {
|
|
899
899
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
900
900
|
var r = new window.ErrorEvent("error", {
|
|
901
901
|
bubbles: !0,
|
|
@@ -951,14 +951,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
951
951
|
}, o.Component = m, o.Fragment = t, o.Profiler = i, o.PureComponent = D, o.StrictMode = n, o.Suspense = h, o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = g, o.__COMPILER_RUNTIME = N, o.act = function(e) {
|
|
952
952
|
var r = g.actQueue, s = me;
|
|
953
953
|
me++;
|
|
954
|
-
var
|
|
954
|
+
var a = g.actQueue = r !== null ? r : [], l = !1;
|
|
955
955
|
try {
|
|
956
956
|
var R = e();
|
|
957
957
|
} catch (y) {
|
|
958
958
|
g.thrownErrors.push(y);
|
|
959
959
|
}
|
|
960
960
|
if (0 < g.thrownErrors.length)
|
|
961
|
-
throw
|
|
961
|
+
throw A(r, s), e = M(g.thrownErrors), g.thrownErrors.length = 0, e;
|
|
962
962
|
if (R !== null && typeof R == "object" && typeof R.then == "function") {
|
|
963
963
|
var E = R;
|
|
964
964
|
return Ve(function() {
|
|
@@ -969,28 +969,28 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
969
969
|
then: function(y, X) {
|
|
970
970
|
l = !0, E.then(
|
|
971
971
|
function(ue) {
|
|
972
|
-
if (
|
|
972
|
+
if (A(r, s), s === 0) {
|
|
973
973
|
try {
|
|
974
|
-
Q(
|
|
974
|
+
Q(a), V(function() {
|
|
975
975
|
return I(
|
|
976
976
|
ue,
|
|
977
977
|
y,
|
|
978
978
|
X
|
|
979
979
|
);
|
|
980
980
|
});
|
|
981
|
-
} catch (
|
|
982
|
-
g.thrownErrors.push(
|
|
981
|
+
} catch (nt) {
|
|
982
|
+
g.thrownErrors.push(nt);
|
|
983
983
|
}
|
|
984
984
|
if (0 < g.thrownErrors.length) {
|
|
985
|
-
var
|
|
985
|
+
var rt = M(
|
|
986
986
|
g.thrownErrors
|
|
987
987
|
);
|
|
988
|
-
g.thrownErrors.length = 0, X(
|
|
988
|
+
g.thrownErrors.length = 0, X(rt);
|
|
989
989
|
}
|
|
990
990
|
} else y(ue);
|
|
991
991
|
},
|
|
992
992
|
function(ue) {
|
|
993
|
-
|
|
993
|
+
A(r, s), 0 < g.thrownErrors.length && (ue = M(
|
|
994
994
|
g.thrownErrors
|
|
995
995
|
), g.thrownErrors.length = 0), X(ue);
|
|
996
996
|
}
|
|
@@ -999,7 +999,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
999
999
|
};
|
|
1000
1000
|
}
|
|
1001
1001
|
var S = R;
|
|
1002
|
-
if (
|
|
1002
|
+
if (A(r, s), s === 0 && (Q(a), a.length !== 0 && Ve(function() {
|
|
1003
1003
|
l || Ee || (Ee = !0, console.error(
|
|
1004
1004
|
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1005
1005
|
));
|
|
@@ -1007,7 +1007,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1007
1007
|
throw e = M(g.thrownErrors), g.thrownErrors.length = 0, e;
|
|
1008
1008
|
return {
|
|
1009
1009
|
then: function(y, X) {
|
|
1010
|
-
l = !0, s === 0 ? (g.actQueue =
|
|
1010
|
+
l = !0, s === 0 ? (g.actQueue = a, V(function() {
|
|
1011
1011
|
return I(
|
|
1012
1012
|
S,
|
|
1013
1013
|
y,
|
|
@@ -1028,7 +1028,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1028
1028
|
throw Error(
|
|
1029
1029
|
"The argument must be a React element, but you passed " + e + "."
|
|
1030
1030
|
);
|
|
1031
|
-
var
|
|
1031
|
+
var a = je({}, e.props), l = e.key, R = e._owner;
|
|
1032
1032
|
if (r != null) {
|
|
1033
1033
|
var E;
|
|
1034
1034
|
e: {
|
|
@@ -1041,30 +1041,30 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1041
1041
|
}
|
|
1042
1042
|
E = r.ref !== void 0;
|
|
1043
1043
|
}
|
|
1044
|
-
E && (R = H()), K(r) && (
|
|
1044
|
+
E && (R = H()), K(r) && (W(r.key), l = "" + r.key);
|
|
1045
1045
|
for (S in r)
|
|
1046
|
-
!_e.call(r, S) || S === "key" || S === "__self" || S === "__source" || S === "ref" && r.ref === void 0 || (
|
|
1046
|
+
!_e.call(r, S) || S === "key" || S === "__self" || S === "__source" || S === "ref" && r.ref === void 0 || (a[S] = r[S]);
|
|
1047
1047
|
}
|
|
1048
1048
|
var S = arguments.length - 2;
|
|
1049
|
-
if (S === 1)
|
|
1049
|
+
if (S === 1) a.children = s;
|
|
1050
1050
|
else if (1 < S) {
|
|
1051
1051
|
E = Array(S);
|
|
1052
1052
|
for (var y = 0; y < S; y++)
|
|
1053
1053
|
E[y] = arguments[y + 2];
|
|
1054
|
-
|
|
1054
|
+
a.children = E;
|
|
1055
1055
|
}
|
|
1056
|
-
for (
|
|
1056
|
+
for (a = F(
|
|
1057
1057
|
e.type,
|
|
1058
1058
|
l,
|
|
1059
1059
|
void 0,
|
|
1060
1060
|
void 0,
|
|
1061
1061
|
R,
|
|
1062
|
-
|
|
1062
|
+
a,
|
|
1063
1063
|
e._debugStack,
|
|
1064
1064
|
e._debugTask
|
|
1065
1065
|
), l = 2; l < arguments.length; l++)
|
|
1066
1066
|
R = arguments[l], j(R) && R._store && (R._store.validated = 1);
|
|
1067
|
-
return
|
|
1067
|
+
return a;
|
|
1068
1068
|
}, o.createContext = function(e) {
|
|
1069
1069
|
return e = {
|
|
1070
1070
|
$$typeof: d,
|
|
@@ -1078,27 +1078,27 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1078
1078
|
_context: e
|
|
1079
1079
|
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1080
1080
|
}, o.createElement = function(e, r, s) {
|
|
1081
|
-
for (var
|
|
1082
|
-
var l = arguments[
|
|
1081
|
+
for (var a = 2; a < arguments.length; a++) {
|
|
1082
|
+
var l = arguments[a];
|
|
1083
1083
|
j(l) && l._store && (l._store.validated = 1);
|
|
1084
1084
|
}
|
|
1085
|
-
if (
|
|
1085
|
+
if (a = {}, l = null, r != null)
|
|
1086
1086
|
for (y in Me || !("__self" in r) || "key" in r || (Me = !0, console.warn(
|
|
1087
1087
|
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1088
|
-
)), K(r) && (
|
|
1089
|
-
_e.call(r, y) && y !== "key" && y !== "__self" && y !== "__source" && (
|
|
1088
|
+
)), K(r) && (W(r.key), l = "" + r.key), r)
|
|
1089
|
+
_e.call(r, y) && y !== "key" && y !== "__self" && y !== "__source" && (a[y] = r[y]);
|
|
1090
1090
|
var R = arguments.length - 2;
|
|
1091
|
-
if (R === 1)
|
|
1091
|
+
if (R === 1) a.children = s;
|
|
1092
1092
|
else if (1 < R) {
|
|
1093
1093
|
for (var E = Array(R), S = 0; S < R; S++)
|
|
1094
1094
|
E[S] = arguments[S + 2];
|
|
1095
|
-
Object.freeze && Object.freeze(E),
|
|
1095
|
+
Object.freeze && Object.freeze(E), a.children = E;
|
|
1096
1096
|
}
|
|
1097
1097
|
if (e && e.defaultProps)
|
|
1098
1098
|
for (y in R = e.defaultProps, R)
|
|
1099
|
-
|
|
1099
|
+
a[y] === void 0 && (a[y] = R[y]);
|
|
1100
1100
|
l && G(
|
|
1101
|
-
|
|
1101
|
+
a,
|
|
1102
1102
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
1103
1103
|
);
|
|
1104
1104
|
var y = 1e4 > g.recentlyCreatedOwnerStacks++;
|
|
@@ -1108,9 +1108,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1108
1108
|
void 0,
|
|
1109
1109
|
void 0,
|
|
1110
1110
|
H(),
|
|
1111
|
-
|
|
1112
|
-
y ? Error("react-stack-top-frame") :
|
|
1113
|
-
y ? De(
|
|
1111
|
+
a,
|
|
1112
|
+
y ? Error("react-stack-top-frame") : et,
|
|
1113
|
+
y ? De(q(e)) : tt
|
|
1114
1114
|
);
|
|
1115
1115
|
}, o.createRef = function() {
|
|
1116
1116
|
var e = { current: null };
|
|
@@ -1127,15 +1127,15 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1127
1127
|
), e != null && e.defaultProps != null && console.error(
|
|
1128
1128
|
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1129
1129
|
);
|
|
1130
|
-
var r = { $$typeof:
|
|
1130
|
+
var r = { $$typeof: b, render: e }, s;
|
|
1131
1131
|
return Object.defineProperty(r, "displayName", {
|
|
1132
1132
|
enumerable: !1,
|
|
1133
1133
|
configurable: !0,
|
|
1134
1134
|
get: function() {
|
|
1135
1135
|
return s;
|
|
1136
1136
|
},
|
|
1137
|
-
set: function(
|
|
1138
|
-
s =
|
|
1137
|
+
set: function(a) {
|
|
1138
|
+
s = a, e.name || e.displayName || (Object.defineProperty(e, "name", { value: a }), e.displayName = a);
|
|
1139
1139
|
}
|
|
1140
1140
|
}), r;
|
|
1141
1141
|
}, o.isValidElement = j, o.lazy = function(e) {
|
|
@@ -1160,16 +1160,16 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1160
1160
|
get: function() {
|
|
1161
1161
|
return s;
|
|
1162
1162
|
},
|
|
1163
|
-
set: function(
|
|
1164
|
-
s =
|
|
1163
|
+
set: function(a) {
|
|
1164
|
+
s = a, e.name || e.displayName || (Object.defineProperty(e, "name", { value: a }), e.displayName = a);
|
|
1165
1165
|
}
|
|
1166
1166
|
}), r;
|
|
1167
1167
|
}, o.startTransition = function(e) {
|
|
1168
1168
|
var r = g.T, s = {};
|
|
1169
1169
|
g.T = s, s._updatedFibers = /* @__PURE__ */ new Set();
|
|
1170
1170
|
try {
|
|
1171
|
-
var
|
|
1172
|
-
l !== null && l(s,
|
|
1171
|
+
var a = e(), l = g.S;
|
|
1172
|
+
l !== null && l(s, a), typeof a == "object" && a !== null && typeof a.then == "function" && a.then(B, Ue);
|
|
1173
1173
|
} catch (R) {
|
|
1174
1174
|
Ue(R);
|
|
1175
1175
|
} finally {
|
|
@@ -1202,12 +1202,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1202
1202
|
e == null && console.warn(
|
|
1203
1203
|
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1204
1204
|
);
|
|
1205
|
-
var
|
|
1205
|
+
var a = O();
|
|
1206
1206
|
if (typeof s == "function")
|
|
1207
1207
|
throw Error(
|
|
1208
1208
|
"useEffect CRUD overload is not enabled in this build of React."
|
|
1209
1209
|
);
|
|
1210
|
-
return
|
|
1210
|
+
return a.useEffect(e, r);
|
|
1211
1211
|
}, o.useId = function() {
|
|
1212
1212
|
return O().useId();
|
|
1213
1213
|
}, o.useImperativeHandle = function(e, r, s) {
|
|
@@ -1243,8 +1243,8 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1243
1243
|
})(pe, pe.exports)), pe.exports;
|
|
1244
1244
|
}
|
|
1245
1245
|
var ze;
|
|
1246
|
-
function
|
|
1247
|
-
return ze || (ze = 1, process.env.NODE_ENV === "production" ? ge.exports =
|
|
1246
|
+
function Xe() {
|
|
1247
|
+
return ze || (ze = 1, process.env.NODE_ENV === "production" ? ge.exports = st() : ge.exports = ut()), ge.exports;
|
|
1248
1248
|
}
|
|
1249
1249
|
/**
|
|
1250
1250
|
* @license React
|
|
@@ -1256,9 +1256,9 @@ function st() {
|
|
|
1256
1256
|
* LICENSE file in the root directory of this source tree.
|
|
1257
1257
|
*/
|
|
1258
1258
|
var Ge;
|
|
1259
|
-
function
|
|
1259
|
+
function at() {
|
|
1260
1260
|
return Ge || (Ge = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1261
|
-
function
|
|
1261
|
+
function w(t) {
|
|
1262
1262
|
if (t == null) return null;
|
|
1263
1263
|
if (typeof t == "function")
|
|
1264
1264
|
return t.$$typeof === ie ? null : t.displayName || t.name || null;
|
|
@@ -1291,11 +1291,11 @@ function ut() {
|
|
|
1291
1291
|
var n = t.render;
|
|
1292
1292
|
return t = t.displayName, t || (t = n.displayName || n.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
1293
1293
|
case ee:
|
|
1294
|
-
return n = t.displayName || null, n !== null ? n :
|
|
1294
|
+
return n = t.displayName || null, n !== null ? n : w(t.type) || "Memo";
|
|
1295
1295
|
case L:
|
|
1296
1296
|
n = t._payload, t = t._init;
|
|
1297
1297
|
try {
|
|
1298
|
-
return
|
|
1298
|
+
return w(t(n));
|
|
1299
1299
|
} catch {
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
@@ -1304,7 +1304,7 @@ function ut() {
|
|
|
1304
1304
|
function o(t) {
|
|
1305
1305
|
return "" + t;
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function u(t) {
|
|
1308
1308
|
try {
|
|
1309
1309
|
o(t);
|
|
1310
1310
|
var n = !1;
|
|
@@ -1326,7 +1326,7 @@ function ut() {
|
|
|
1326
1326
|
if (typeof t == "object" && t !== null && t.$$typeof === L)
|
|
1327
1327
|
return "<...>";
|
|
1328
1328
|
try {
|
|
1329
|
-
var n =
|
|
1329
|
+
var n = w(t);
|
|
1330
1330
|
return n ? "<" + n + ">" : "<...>";
|
|
1331
1331
|
} catch {
|
|
1332
1332
|
return "<...>";
|
|
@@ -1339,7 +1339,7 @@ function ut() {
|
|
|
1339
1339
|
function m() {
|
|
1340
1340
|
return Error("react-stack-top-frame");
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function k(t) {
|
|
1343
1343
|
if (B.call(t, "key")) {
|
|
1344
1344
|
var n = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
1345
1345
|
if (n && n.isReactWarning) return !1;
|
|
@@ -1348,7 +1348,7 @@ function ut() {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
function D(t, n) {
|
|
1350
1350
|
function i() {
|
|
1351
|
-
|
|
1351
|
+
A || (A = !0, console.error(
|
|
1352
1352
|
"%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://react.dev/link/special-props)",
|
|
1353
1353
|
n
|
|
1354
1354
|
));
|
|
@@ -1359,17 +1359,17 @@ function ut() {
|
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
1361
|
function oe() {
|
|
1362
|
-
var t =
|
|
1362
|
+
var t = w(this.type);
|
|
1363
1363
|
return I[t] || (I[t] = !0, console.error(
|
|
1364
1364
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
1365
1365
|
)), t = this.props.ref, t !== void 0 ? t : null;
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return i =
|
|
1367
|
+
function W(t, n, i, c, d, b, h, C) {
|
|
1368
|
+
return i = b.ref, t = {
|
|
1369
1369
|
$$typeof: z,
|
|
1370
1370
|
type: t,
|
|
1371
1371
|
key: n,
|
|
1372
|
-
props:
|
|
1372
|
+
props: b,
|
|
1373
1373
|
_owner: d
|
|
1374
1374
|
}, (i !== void 0 ? i : null) !== null ? Object.defineProperty(t, "ref", {
|
|
1375
1375
|
enumerable: !1,
|
|
@@ -1396,21 +1396,21 @@ function ut() {
|
|
|
1396
1396
|
value: C
|
|
1397
1397
|
}), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
|
|
1398
1398
|
}
|
|
1399
|
-
function $(t, n, i, c, d,
|
|
1399
|
+
function $(t, n, i, c, d, b, h, C) {
|
|
1400
1400
|
var v = n.children;
|
|
1401
1401
|
if (v !== void 0)
|
|
1402
1402
|
if (c)
|
|
1403
1403
|
if (V(v)) {
|
|
1404
1404
|
for (c = 0; c < v.length; c++)
|
|
1405
|
-
|
|
1405
|
+
q(v[c]);
|
|
1406
1406
|
Object.freeze && Object.freeze(v);
|
|
1407
1407
|
} else
|
|
1408
1408
|
console.error(
|
|
1409
1409
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1410
1410
|
);
|
|
1411
|
-
else
|
|
1411
|
+
else q(v);
|
|
1412
1412
|
if (B.call(n, "key")) {
|
|
1413
|
-
v =
|
|
1413
|
+
v = w(t);
|
|
1414
1414
|
var P = Object.keys(n).filter(function(de) {
|
|
1415
1415
|
return de !== "key";
|
|
1416
1416
|
});
|
|
@@ -1427,7 +1427,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1427
1427
|
v
|
|
1428
1428
|
), te[v + c] = !0);
|
|
1429
1429
|
}
|
|
1430
|
-
if (v = null, i !== void 0 && (
|
|
1430
|
+
if (v = null, i !== void 0 && (u(i), v = "" + i), k(n) && (u(n.key), v = "" + n.key), "key" in n) {
|
|
1431
1431
|
i = {};
|
|
1432
1432
|
for (var ce in n)
|
|
1433
1433
|
ce !== "key" && (i[ce] = n[ce]);
|
|
@@ -1435,10 +1435,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1435
1435
|
return v && D(
|
|
1436
1436
|
i,
|
|
1437
1437
|
typeof t == "function" ? t.displayName || t.name || "Unknown" : t
|
|
1438
|
-
),
|
|
1438
|
+
), W(
|
|
1439
1439
|
t,
|
|
1440
1440
|
v,
|
|
1441
|
-
|
|
1441
|
+
b,
|
|
1442
1442
|
d,
|
|
1443
1443
|
p(),
|
|
1444
1444
|
i,
|
|
@@ -1446,10 +1446,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1446
1446
|
C
|
|
1447
1447
|
);
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function q(t) {
|
|
1450
1450
|
typeof t == "object" && t !== null && t.$$typeof === z && t._store && (t._store.validated = 1);
|
|
1451
1451
|
}
|
|
1452
|
-
var H =
|
|
1452
|
+
var H = Xe(), z = Symbol.for("react.transitional.element"), K = Symbol.for("react.portal"), G = Symbol.for("react.fragment"), Y = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), Z = Symbol.for("react.consumer"), j = Symbol.for("react.context"), se = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), J = Symbol.for("react.suspense_list"), ee = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), ie = Symbol.for("react.client.reference"), O = H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, V = Array.isArray, M = console.createTask ? console.createTask : function() {
|
|
1453
1453
|
return null;
|
|
1454
1454
|
};
|
|
1455
1455
|
H = {
|
|
@@ -1457,12 +1457,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1457
1457
|
return t();
|
|
1458
1458
|
}
|
|
1459
1459
|
};
|
|
1460
|
-
var
|
|
1460
|
+
var A, I = {}, Q = H.react_stack_bottom_frame.bind(
|
|
1461
1461
|
H,
|
|
1462
1462
|
m
|
|
1463
|
-
)(),
|
|
1463
|
+
)(), x = M(f(m)), te = {};
|
|
1464
1464
|
le.Fragment = G, le.jsx = function(t, n, i, c, d) {
|
|
1465
|
-
var
|
|
1465
|
+
var b = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
1466
1466
|
return $(
|
|
1467
1467
|
t,
|
|
1468
1468
|
n,
|
|
@@ -1470,11 +1470,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1470
1470
|
!1,
|
|
1471
1471
|
c,
|
|
1472
1472
|
d,
|
|
1473
|
-
|
|
1474
|
-
|
|
1473
|
+
b ? Error("react-stack-top-frame") : Q,
|
|
1474
|
+
b ? M(f(t)) : x
|
|
1475
1475
|
);
|
|
1476
1476
|
}, le.jsxs = function(t, n, i, c, d) {
|
|
1477
|
-
var
|
|
1477
|
+
var b = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
1478
1478
|
return $(
|
|
1479
1479
|
t,
|
|
1480
1480
|
n,
|
|
@@ -1482,140 +1482,154 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1482
1482
|
!0,
|
|
1483
1483
|
c,
|
|
1484
1484
|
d,
|
|
1485
|
-
|
|
1486
|
-
|
|
1485
|
+
b ? Error("react-stack-top-frame") : Q,
|
|
1486
|
+
b ? M(f(t)) : x
|
|
1487
1487
|
);
|
|
1488
1488
|
};
|
|
1489
1489
|
})()), le;
|
|
1490
1490
|
}
|
|
1491
1491
|
var Fe;
|
|
1492
|
-
function
|
|
1493
|
-
return Fe || (Fe = 1, process.env.NODE_ENV === "production" ? ye.exports =
|
|
1492
|
+
function it() {
|
|
1493
|
+
return Fe || (Fe = 1, process.env.NODE_ENV === "production" ? ye.exports = ot() : ye.exports = at()), ye.exports;
|
|
1494
1494
|
}
|
|
1495
|
-
var it =
|
|
1496
|
-
function
|
|
1497
|
-
|
|
1495
|
+
var Be = it(), ct = Xe();
|
|
1496
|
+
function ht() {
|
|
1497
|
+
const [w, o] = ct.useState(0);
|
|
1498
|
+
return /* @__PURE__ */ Be.jsxs("div", { children: [
|
|
1499
|
+
"login form ",
|
|
1500
|
+
w,
|
|
1501
|
+
/* @__PURE__ */ Be.jsx(
|
|
1502
|
+
"button",
|
|
1503
|
+
{
|
|
1504
|
+
onClick: () => {
|
|
1505
|
+
o((u) => u + 1);
|
|
1506
|
+
},
|
|
1507
|
+
type: "button",
|
|
1508
|
+
children: "click"
|
|
1509
|
+
}
|
|
1510
|
+
)
|
|
1511
|
+
] });
|
|
1498
1512
|
}
|
|
1499
1513
|
const ae = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), be = {
|
|
1500
1514
|
current: []
|
|
1501
1515
|
};
|
|
1502
1516
|
let Oe = !1;
|
|
1503
|
-
const Re = /* @__PURE__ */ new Set(),
|
|
1504
|
-
function
|
|
1505
|
-
const o = Array.from(
|
|
1506
|
-
for (const
|
|
1507
|
-
if (be.current.includes(
|
|
1517
|
+
const Re = /* @__PURE__ */ new Set(), Qe = /* @__PURE__ */ new Map();
|
|
1518
|
+
function Ke(w) {
|
|
1519
|
+
const o = Array.from(w).sort((u, f) => u instanceof ne && u.options.deps.includes(f) ? 1 : f instanceof ne && f.options.deps.includes(u) ? -1 : 0);
|
|
1520
|
+
for (const u of o) {
|
|
1521
|
+
if (be.current.includes(u))
|
|
1508
1522
|
continue;
|
|
1509
|
-
be.current.push(
|
|
1510
|
-
const f = we.get(
|
|
1523
|
+
be.current.push(u), u.recompute();
|
|
1524
|
+
const f = we.get(u);
|
|
1511
1525
|
if (f)
|
|
1512
1526
|
for (const p of f) {
|
|
1513
1527
|
const m = ae.get(p);
|
|
1514
|
-
m &&
|
|
1528
|
+
m && Ke(m);
|
|
1515
1529
|
}
|
|
1516
1530
|
}
|
|
1517
1531
|
}
|
|
1518
|
-
function
|
|
1519
|
-
|
|
1532
|
+
function ft(w) {
|
|
1533
|
+
w.listeners.forEach(
|
|
1520
1534
|
(o) => o({
|
|
1521
|
-
prevVal:
|
|
1522
|
-
currentVal:
|
|
1535
|
+
prevVal: w.prevState,
|
|
1536
|
+
currentVal: w.state
|
|
1523
1537
|
})
|
|
1524
1538
|
);
|
|
1525
1539
|
}
|
|
1526
|
-
function
|
|
1527
|
-
|
|
1540
|
+
function lt(w) {
|
|
1541
|
+
w.listeners.forEach(
|
|
1528
1542
|
(o) => o({
|
|
1529
|
-
prevVal:
|
|
1530
|
-
currentVal:
|
|
1543
|
+
prevVal: w.prevState,
|
|
1544
|
+
currentVal: w.state
|
|
1531
1545
|
})
|
|
1532
1546
|
);
|
|
1533
1547
|
}
|
|
1534
|
-
function
|
|
1535
|
-
if (Re.add(
|
|
1548
|
+
function pt(w) {
|
|
1549
|
+
if (Re.add(w), !Oe)
|
|
1536
1550
|
try {
|
|
1537
1551
|
for (Oe = !0; Re.size > 0; ) {
|
|
1538
1552
|
const o = Array.from(Re);
|
|
1539
1553
|
Re.clear();
|
|
1540
|
-
for (const
|
|
1541
|
-
const f =
|
|
1542
|
-
|
|
1554
|
+
for (const u of o) {
|
|
1555
|
+
const f = Qe.get(u) ?? u.prevState;
|
|
1556
|
+
u.prevState = f, ft(u);
|
|
1543
1557
|
}
|
|
1544
|
-
for (const
|
|
1545
|
-
const f = ae.get(
|
|
1546
|
-
f && (be.current.push(
|
|
1558
|
+
for (const u of o) {
|
|
1559
|
+
const f = ae.get(u);
|
|
1560
|
+
f && (be.current.push(u), Ke(f));
|
|
1547
1561
|
}
|
|
1548
|
-
for (const
|
|
1549
|
-
const f = ae.get(
|
|
1562
|
+
for (const u of o) {
|
|
1563
|
+
const f = ae.get(u);
|
|
1550
1564
|
if (f)
|
|
1551
1565
|
for (const p of f)
|
|
1552
|
-
|
|
1566
|
+
lt(p);
|
|
1553
1567
|
}
|
|
1554
1568
|
}
|
|
1555
1569
|
} finally {
|
|
1556
|
-
Oe = !1, be.current = [],
|
|
1570
|
+
Oe = !1, be.current = [], Qe.clear();
|
|
1557
1571
|
}
|
|
1558
1572
|
}
|
|
1559
|
-
function
|
|
1560
|
-
return typeof
|
|
1573
|
+
function dt(w) {
|
|
1574
|
+
return typeof w == "function";
|
|
1561
1575
|
}
|
|
1562
|
-
class
|
|
1563
|
-
constructor(o,
|
|
1576
|
+
class Ae {
|
|
1577
|
+
constructor(o, u) {
|
|
1564
1578
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = (f) => {
|
|
1565
1579
|
var p, m;
|
|
1566
1580
|
this.listeners.add(f);
|
|
1567
|
-
const
|
|
1581
|
+
const k = (m = (p = this.options) == null ? void 0 : p.onSubscribe) == null ? void 0 : m.call(p, f, this);
|
|
1568
1582
|
return () => {
|
|
1569
|
-
this.listeners.delete(f),
|
|
1583
|
+
this.listeners.delete(f), k?.();
|
|
1570
1584
|
};
|
|
1571
|
-
}, this.prevState = o, this.state = o, this.options =
|
|
1585
|
+
}, this.prevState = o, this.state = o, this.options = u;
|
|
1572
1586
|
}
|
|
1573
1587
|
setState(o) {
|
|
1574
|
-
var
|
|
1575
|
-
this.prevState = this.state, (
|
|
1588
|
+
var u, f, p;
|
|
1589
|
+
this.prevState = this.state, (u = this.options) != null && u.updateFn ? this.state = this.options.updateFn(this.prevState)(o) : dt(o) ? this.state = o(this.prevState) : this.state = o, (p = (f = this.options) == null ? void 0 : f.onUpdate) == null || p.call(f), pt(this);
|
|
1576
1590
|
}
|
|
1577
1591
|
}
|
|
1578
1592
|
class ne {
|
|
1579
1593
|
constructor(o) {
|
|
1580
1594
|
this.listeners = /* @__PURE__ */ new Set(), this._subscriptions = [], this.lastSeenDepValues = [], this.getDepVals = () => {
|
|
1581
|
-
const
|
|
1595
|
+
const u = [], f = [];
|
|
1582
1596
|
for (const p of this.options.deps)
|
|
1583
|
-
|
|
1597
|
+
u.push(p.prevState), f.push(p.state);
|
|
1584
1598
|
return this.lastSeenDepValues = f, {
|
|
1585
|
-
prevDepVals:
|
|
1599
|
+
prevDepVals: u,
|
|
1586
1600
|
currDepVals: f,
|
|
1587
1601
|
prevVal: this.prevState ?? void 0
|
|
1588
1602
|
};
|
|
1589
1603
|
}, this.recompute = () => {
|
|
1590
|
-
var
|
|
1604
|
+
var u, f;
|
|
1591
1605
|
this.prevState = this.state;
|
|
1592
|
-
const { prevDepVals: p, currDepVals: m, prevVal:
|
|
1606
|
+
const { prevDepVals: p, currDepVals: m, prevVal: k } = this.getDepVals();
|
|
1593
1607
|
this.state = this.options.fn({
|
|
1594
1608
|
prevDepVals: p,
|
|
1595
1609
|
currDepVals: m,
|
|
1596
|
-
prevVal:
|
|
1597
|
-
}), (f = (
|
|
1610
|
+
prevVal: k
|
|
1611
|
+
}), (f = (u = this.options).onUpdate) == null || f.call(u);
|
|
1598
1612
|
}, this.checkIfRecalculationNeededDeeply = () => {
|
|
1599
1613
|
for (const m of this.options.deps)
|
|
1600
1614
|
m instanceof ne && m.checkIfRecalculationNeededDeeply();
|
|
1601
|
-
let
|
|
1615
|
+
let u = !1;
|
|
1602
1616
|
const f = this.lastSeenDepValues, { currDepVals: p } = this.getDepVals();
|
|
1603
1617
|
for (let m = 0; m < p.length; m++)
|
|
1604
1618
|
if (p[m] !== f[m]) {
|
|
1605
|
-
|
|
1619
|
+
u = !0;
|
|
1606
1620
|
break;
|
|
1607
1621
|
}
|
|
1608
|
-
|
|
1622
|
+
u && this.recompute();
|
|
1609
1623
|
}, this.mount = () => (this.registerOnGraph(), this.checkIfRecalculationNeededDeeply(), () => {
|
|
1610
1624
|
this.unregisterFromGraph();
|
|
1611
|
-
for (const
|
|
1612
|
-
|
|
1613
|
-
}), this.subscribe = (
|
|
1625
|
+
for (const u of this._subscriptions)
|
|
1626
|
+
u();
|
|
1627
|
+
}), this.subscribe = (u) => {
|
|
1614
1628
|
var f, p;
|
|
1615
|
-
this.listeners.add(
|
|
1616
|
-
const m = (p = (f = this.options).onSubscribe) == null ? void 0 : p.call(f,
|
|
1629
|
+
this.listeners.add(u);
|
|
1630
|
+
const m = (p = (f = this.options).onSubscribe) == null ? void 0 : p.call(f, u, this);
|
|
1617
1631
|
return () => {
|
|
1618
|
-
this.listeners.delete(
|
|
1632
|
+
this.listeners.delete(u), m?.();
|
|
1619
1633
|
};
|
|
1620
1634
|
}, this.options = o, this.state = o.fn({
|
|
1621
1635
|
prevDepVals: void 0,
|
|
@@ -1624,29 +1638,29 @@ class ne {
|
|
|
1624
1638
|
});
|
|
1625
1639
|
}
|
|
1626
1640
|
registerOnGraph(o = this.options.deps) {
|
|
1627
|
-
for (const
|
|
1628
|
-
if (
|
|
1629
|
-
|
|
1630
|
-
else if (
|
|
1631
|
-
let f = ae.get(
|
|
1632
|
-
f || (f = /* @__PURE__ */ new Set(), ae.set(
|
|
1641
|
+
for (const u of o)
|
|
1642
|
+
if (u instanceof ne)
|
|
1643
|
+
u.registerOnGraph(), this.registerOnGraph(u.options.deps);
|
|
1644
|
+
else if (u instanceof Ae) {
|
|
1645
|
+
let f = ae.get(u);
|
|
1646
|
+
f || (f = /* @__PURE__ */ new Set(), ae.set(u, f)), f.add(this);
|
|
1633
1647
|
let p = we.get(this);
|
|
1634
|
-
p || (p = /* @__PURE__ */ new Set(), we.set(this, p)), p.add(
|
|
1648
|
+
p || (p = /* @__PURE__ */ new Set(), we.set(this, p)), p.add(u);
|
|
1635
1649
|
}
|
|
1636
1650
|
}
|
|
1637
1651
|
unregisterFromGraph(o = this.options.deps) {
|
|
1638
|
-
for (const
|
|
1639
|
-
if (
|
|
1640
|
-
this.unregisterFromGraph(
|
|
1641
|
-
else if (
|
|
1642
|
-
const f = ae.get(
|
|
1652
|
+
for (const u of o)
|
|
1653
|
+
if (u instanceof ne)
|
|
1654
|
+
this.unregisterFromGraph(u.options.deps);
|
|
1655
|
+
else if (u instanceof Ae) {
|
|
1656
|
+
const f = ae.get(u);
|
|
1643
1657
|
f && f.delete(this);
|
|
1644
1658
|
const p = we.get(this);
|
|
1645
|
-
p && p.delete(
|
|
1659
|
+
p && p.delete(u);
|
|
1646
1660
|
}
|
|
1647
1661
|
}
|
|
1648
1662
|
}
|
|
1649
|
-
const
|
|
1663
|
+
const ke = "Authorization", Ze = () => ({
|
|
1650
1664
|
user: {
|
|
1651
1665
|
id: null,
|
|
1652
1666
|
email: null,
|
|
@@ -1656,11 +1670,11 @@ const Ae = "Authorization", Xe = () => ({
|
|
|
1656
1670
|
},
|
|
1657
1671
|
isAuthenticated: !1,
|
|
1658
1672
|
isLoaded: !1
|
|
1659
|
-
}), re = new
|
|
1660
|
-
fn: () => !!re.state.user?.roles.find((
|
|
1673
|
+
}), re = new Ae(Ze()), _t = new ne({
|
|
1674
|
+
fn: () => !!re.state.user?.roles.find((w) => w.name === "admin"),
|
|
1661
1675
|
deps: [re]
|
|
1662
1676
|
});
|
|
1663
|
-
class
|
|
1677
|
+
class vt {
|
|
1664
1678
|
accountStore;
|
|
1665
1679
|
httpClient;
|
|
1666
1680
|
constructor(o) {
|
|
@@ -1668,7 +1682,7 @@ class _t {
|
|
|
1668
1682
|
}
|
|
1669
1683
|
initAuthData() {
|
|
1670
1684
|
const o = localStorage.getItem("token");
|
|
1671
|
-
o && (this.httpClient.defaults.headers.common[
|
|
1685
|
+
o && (this.httpClient.defaults.headers.common[ke] = o);
|
|
1672
1686
|
}
|
|
1673
1687
|
async load() {
|
|
1674
1688
|
try {
|
|
@@ -1686,42 +1700,42 @@ class _t {
|
|
|
1686
1700
|
}
|
|
1687
1701
|
}
|
|
1688
1702
|
async login(o) {
|
|
1689
|
-
const
|
|
1703
|
+
const u = await this.httpClient.post("/api/auth/account/login", o), { user: f, access_token: p } = u.data;
|
|
1690
1704
|
return f.is_active && this._initUserData({ user: f, access_token: p }), f;
|
|
1691
1705
|
}
|
|
1692
1706
|
register(o) {
|
|
1693
1707
|
return this.httpClient.post("/api/auth/account/register", o);
|
|
1694
1708
|
}
|
|
1695
1709
|
async activate(o) {
|
|
1696
|
-
const
|
|
1697
|
-
this._initUserData(
|
|
1710
|
+
const u = await this.httpClient.post("/api/auth/account/activate", o);
|
|
1711
|
+
this._initUserData(u.data);
|
|
1698
1712
|
}
|
|
1699
1713
|
logout() {
|
|
1700
|
-
re.setState(() => ({ ...
|
|
1714
|
+
re.setState(() => ({ ...Ze(), isLoaded: !0 })), this._clearAuthData();
|
|
1701
1715
|
}
|
|
1702
1716
|
startResetPassword(o) {
|
|
1703
1717
|
return this.httpClient.post("/api/auth/account/start-reset-password", o);
|
|
1704
1718
|
}
|
|
1705
1719
|
async resetPassword(o) {
|
|
1706
|
-
const
|
|
1707
|
-
this._initUserData(
|
|
1720
|
+
const u = await this.httpClient.post("/api/auth/account/reset-password", o);
|
|
1721
|
+
this._initUserData(u.data);
|
|
1708
1722
|
}
|
|
1709
|
-
_initUserData({ user: o, access_token:
|
|
1710
|
-
this._setAuthData(
|
|
1723
|
+
_initUserData({ user: o, access_token: u }) {
|
|
1724
|
+
this._setAuthData(u), re.setState(() => ({
|
|
1711
1725
|
user: o,
|
|
1712
1726
|
isAuthenticated: !0,
|
|
1713
1727
|
isLoaded: !0
|
|
1714
1728
|
}));
|
|
1715
1729
|
}
|
|
1716
1730
|
_setAuthData(o) {
|
|
1717
|
-
localStorage.setItem("token", o), this.httpClient.defaults.headers.common[
|
|
1731
|
+
localStorage.setItem("token", o), this.httpClient.defaults.headers.common[ke] = o;
|
|
1718
1732
|
}
|
|
1719
1733
|
_clearAuthData() {
|
|
1720
|
-
localStorage.removeItem("token"), delete this.httpClient.defaults.headers.common[
|
|
1734
|
+
localStorage.removeItem("token"), delete this.httpClient.defaults.headers.common[ke];
|
|
1721
1735
|
}
|
|
1722
1736
|
}
|
|
1723
1737
|
export {
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1738
|
+
vt as Auth,
|
|
1739
|
+
ht as LoginForm,
|
|
1740
|
+
_t as isAdmin
|
|
1727
1741
|
};
|