@ichaingo/web-worker 1.4.97 → 1.4.98
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.
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var H = (
|
|
4
|
-
var
|
|
5
|
-
(function(
|
|
6
|
-
|
|
7
|
-
})(
|
|
8
|
-
var
|
|
9
|
-
(function(
|
|
10
|
-
|
|
11
|
-
})(
|
|
12
|
-
var
|
|
1
|
+
var Ke = Object.defineProperty;
|
|
2
|
+
var $e = (T, r, y) => r in T ? Ke(T, r, { enumerable: !0, configurable: !0, writable: !0, value: y }) : T[r] = y;
|
|
3
|
+
var H = (T, r, y) => $e(T, typeof r != "symbol" ? r + "" : r, y);
|
|
4
|
+
var De;
|
|
5
|
+
(function(T) {
|
|
6
|
+
T.ALL_CHAIN_LATEST_BLOCK = "allChainLatestBlock", T.CHAIN_LATEST_BLOCK = "chainLatestBlock";
|
|
7
|
+
})(De || (De = {}));
|
|
8
|
+
var j;
|
|
9
|
+
(function(T) {
|
|
10
|
+
T.CONNECTING = "connecting", T.CONNECTED = "connected", T.DISCONNECTED = "disconnected", T.RECONNECTING = "reconnecting", T.ERROR = "error";
|
|
11
|
+
})(j || (j = {}));
|
|
12
|
+
var me = { exports: {} }, f = {};
|
|
13
13
|
/**
|
|
14
14
|
* @license React
|
|
15
15
|
* react.production.js
|
|
@@ -19,15 +19,15 @@ var Ee = { exports: {} }, f = {};
|
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
function
|
|
28
|
-
return t === null || typeof t != "object" ? null : (t =
|
|
22
|
+
var He;
|
|
23
|
+
function Qe() {
|
|
24
|
+
if (He) return f;
|
|
25
|
+
He = 1;
|
|
26
|
+
var T = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), z = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), G = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), Q = Symbol.for("react.activity"), x = Symbol.iterator;
|
|
27
|
+
function ce(t) {
|
|
28
|
+
return t === null || typeof t != "object" ? null : (t = x && t[x] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var ee = {
|
|
31
31
|
isMounted: function() {
|
|
32
32
|
return !1;
|
|
33
33
|
},
|
|
@@ -37,61 +37,56 @@ function Ke() {
|
|
|
37
37
|
},
|
|
38
38
|
enqueueSetState: function() {
|
|
39
39
|
}
|
|
40
|
-
},
|
|
41
|
-
function Y(t,
|
|
42
|
-
this.props = t, this.context =
|
|
40
|
+
}, te = Object.assign, fe = {};
|
|
41
|
+
function Y(t, s, c) {
|
|
42
|
+
this.props = t, this.context = s, this.refs = fe, this.updater = c || ee;
|
|
43
43
|
}
|
|
44
|
-
Y.prototype.isReactComponent = {}, Y.prototype.setState = function(t,
|
|
44
|
+
Y.prototype.isReactComponent = {}, Y.prototype.setState = function(t, s) {
|
|
45
45
|
if (typeof t != "object" && typeof t != "function" && t != null)
|
|
46
46
|
throw Error(
|
|
47
47
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
48
48
|
);
|
|
49
|
-
this.updater.enqueueSetState(this, t,
|
|
49
|
+
this.updater.enqueueSetState(this, t, s, "setState");
|
|
50
50
|
}, Y.prototype.forceUpdate = function(t) {
|
|
51
51
|
this.updater.enqueueForceUpdate(this, t, "forceUpdate");
|
|
52
52
|
};
|
|
53
|
-
function
|
|
53
|
+
function X() {
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
function
|
|
57
|
-
this.props = t, this.context =
|
|
55
|
+
X.prototype = Y.prototype;
|
|
56
|
+
function ne(t, s, c) {
|
|
57
|
+
this.props = t, this.context = s, this.refs = fe, this.updater = c || ee;
|
|
58
58
|
}
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
var
|
|
62
|
-
function
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
var Z = ne.prototype = new X();
|
|
60
|
+
Z.constructor = ne, te(Z, Y.prototype), Z.isPureReactComponent = !0;
|
|
61
|
+
var D = Array.isArray;
|
|
62
|
+
function re() {
|
|
63
|
+
}
|
|
64
|
+
var _ = { H: null, A: null, T: null, S: null }, le = Object.prototype.hasOwnProperty;
|
|
65
|
+
function I(t, s, c) {
|
|
66
|
+
var a = c.ref;
|
|
67
|
+
return {
|
|
68
|
+
$$typeof: T,
|
|
65
69
|
type: t,
|
|
66
|
-
key:
|
|
67
|
-
ref:
|
|
68
|
-
props:
|
|
70
|
+
key: s,
|
|
71
|
+
ref: a !== void 0 ? a : null,
|
|
72
|
+
props: c
|
|
69
73
|
};
|
|
70
74
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
73
|
-
t.type,
|
|
74
|
-
o,
|
|
75
|
-
void 0,
|
|
76
|
-
void 0,
|
|
77
|
-
void 0,
|
|
78
|
-
t.props
|
|
79
|
-
);
|
|
75
|
+
function V(t, s) {
|
|
76
|
+
return I(t.type, s, t.props);
|
|
80
77
|
}
|
|
81
|
-
function
|
|
82
|
-
return typeof t == "object" && t !== null && t.$$typeof ===
|
|
78
|
+
function oe(t) {
|
|
79
|
+
return typeof t == "object" && t !== null && t.$$typeof === T;
|
|
83
80
|
}
|
|
84
|
-
function
|
|
85
|
-
var
|
|
81
|
+
function R(t) {
|
|
82
|
+
var s = { "=": "=0", ":": "=2" };
|
|
86
83
|
return "$" + t.replace(/[=:]/g, function(c) {
|
|
87
|
-
return
|
|
84
|
+
return s[c];
|
|
88
85
|
});
|
|
89
86
|
}
|
|
90
|
-
var
|
|
91
|
-
function
|
|
92
|
-
return typeof t == "object" && t !== null && t.key != null ?
|
|
93
|
-
}
|
|
94
|
-
function B() {
|
|
87
|
+
var se = /\/+/g;
|
|
88
|
+
function U(t, s) {
|
|
89
|
+
return typeof t == "object" && t !== null && t.key != null ? R("" + t.key) : s.toString(36);
|
|
95
90
|
}
|
|
96
91
|
function K(t) {
|
|
97
92
|
switch (t.status) {
|
|
@@ -100,12 +95,12 @@ function Ke() {
|
|
|
100
95
|
case "rejected":
|
|
101
96
|
throw t.reason;
|
|
102
97
|
default:
|
|
103
|
-
switch (typeof t.status == "string" ? t.then(
|
|
104
|
-
function(
|
|
105
|
-
t.status === "pending" && (t.status = "fulfilled", t.value =
|
|
98
|
+
switch (typeof t.status == "string" ? t.then(re, re) : (t.status = "pending", t.then(
|
|
99
|
+
function(s) {
|
|
100
|
+
t.status === "pending" && (t.status = "fulfilled", t.value = s);
|
|
106
101
|
},
|
|
107
|
-
function(
|
|
108
|
-
t.status === "pending" && (t.status = "rejected", t.reason =
|
|
102
|
+
function(s) {
|
|
103
|
+
t.status === "pending" && (t.status = "rejected", t.reason = s);
|
|
109
104
|
}
|
|
110
105
|
)), t.status) {
|
|
111
106
|
case "fulfilled":
|
|
@@ -116,277 +111,274 @@ function Ke() {
|
|
|
116
111
|
}
|
|
117
112
|
throw t;
|
|
118
113
|
}
|
|
119
|
-
function
|
|
120
|
-
var
|
|
121
|
-
(
|
|
122
|
-
var
|
|
123
|
-
if (t === null)
|
|
114
|
+
function L(t, s, c, a, E) {
|
|
115
|
+
var m = typeof t;
|
|
116
|
+
(m === "undefined" || m === "boolean") && (t = null);
|
|
117
|
+
var g = !1;
|
|
118
|
+
if (t === null) g = !0;
|
|
124
119
|
else
|
|
125
|
-
switch (
|
|
120
|
+
switch (m) {
|
|
126
121
|
case "bigint":
|
|
127
122
|
case "string":
|
|
128
123
|
case "number":
|
|
129
|
-
|
|
124
|
+
g = !0;
|
|
130
125
|
break;
|
|
131
126
|
case "object":
|
|
132
127
|
switch (t.$$typeof) {
|
|
133
|
-
case
|
|
128
|
+
case T:
|
|
134
129
|
case r:
|
|
135
|
-
|
|
130
|
+
g = !0;
|
|
136
131
|
break;
|
|
137
|
-
case
|
|
138
|
-
return
|
|
139
|
-
|
|
140
|
-
|
|
132
|
+
case B:
|
|
133
|
+
return g = t._init, L(
|
|
134
|
+
g(t._payload),
|
|
135
|
+
s,
|
|
141
136
|
c,
|
|
142
137
|
a,
|
|
143
|
-
|
|
138
|
+
E
|
|
144
139
|
);
|
|
145
140
|
}
|
|
146
141
|
}
|
|
147
|
-
if (
|
|
148
|
-
return
|
|
149
|
-
return
|
|
150
|
-
})) :
|
|
151
|
-
|
|
152
|
-
c + (
|
|
153
|
-
|
|
142
|
+
if (g)
|
|
143
|
+
return E = E(t), g = a === "" ? "." + U(t, 0) : a, D(E) ? (c = "", g != null && (c = g.replace(se, "$&/") + "/"), L(E, s, c, "", function($) {
|
|
144
|
+
return $;
|
|
145
|
+
})) : E != null && (oe(E) && (E = V(
|
|
146
|
+
E,
|
|
147
|
+
c + (E.key == null || t && t.key === E.key ? "" : ("" + E.key).replace(
|
|
148
|
+
se,
|
|
154
149
|
"$&/"
|
|
155
|
-
) + "/") +
|
|
156
|
-
)),
|
|
157
|
-
|
|
158
|
-
var
|
|
159
|
-
if (
|
|
160
|
-
for (var
|
|
161
|
-
a = t[
|
|
150
|
+
) + "/") + g
|
|
151
|
+
)), s.push(E)), 1;
|
|
152
|
+
g = 0;
|
|
153
|
+
var N = a === "" ? "." : a + ":";
|
|
154
|
+
if (D(t))
|
|
155
|
+
for (var b = 0; b < t.length; b++)
|
|
156
|
+
a = t[b], m = N + U(a, b), g += L(
|
|
162
157
|
a,
|
|
163
|
-
|
|
158
|
+
s,
|
|
164
159
|
c,
|
|
165
|
-
|
|
166
|
-
|
|
160
|
+
m,
|
|
161
|
+
E
|
|
167
162
|
);
|
|
168
|
-
else if (
|
|
169
|
-
for (t =
|
|
170
|
-
a = a.value,
|
|
163
|
+
else if (b = ce(t), typeof b == "function")
|
|
164
|
+
for (t = b.call(t), b = 0; !(a = t.next()).done; )
|
|
165
|
+
a = a.value, m = N + U(a, b++), g += L(
|
|
171
166
|
a,
|
|
172
|
-
|
|
167
|
+
s,
|
|
173
168
|
c,
|
|
174
|
-
|
|
175
|
-
|
|
169
|
+
m,
|
|
170
|
+
E
|
|
176
171
|
);
|
|
177
|
-
else if (
|
|
172
|
+
else if (m === "object") {
|
|
178
173
|
if (typeof t.then == "function")
|
|
179
|
-
return
|
|
174
|
+
return L(
|
|
180
175
|
K(t),
|
|
181
|
-
|
|
176
|
+
s,
|
|
182
177
|
c,
|
|
183
178
|
a,
|
|
184
|
-
|
|
179
|
+
E
|
|
185
180
|
);
|
|
186
|
-
throw
|
|
187
|
-
"Objects are not valid as a React child (found: " + (
|
|
181
|
+
throw s = String(t), Error(
|
|
182
|
+
"Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead."
|
|
188
183
|
);
|
|
189
184
|
}
|
|
190
|
-
return
|
|
185
|
+
return g;
|
|
191
186
|
}
|
|
192
|
-
function
|
|
187
|
+
function W(t, s, c) {
|
|
193
188
|
if (t == null) return t;
|
|
194
|
-
var a = [],
|
|
195
|
-
return
|
|
196
|
-
return
|
|
189
|
+
var a = [], E = 0;
|
|
190
|
+
return L(t, a, "", "", function(m) {
|
|
191
|
+
return s.call(c, m, E++);
|
|
197
192
|
}), a;
|
|
198
193
|
}
|
|
199
|
-
function
|
|
194
|
+
function ue(t) {
|
|
200
195
|
if (t._status === -1) {
|
|
201
|
-
var
|
|
202
|
-
|
|
196
|
+
var s = t._result;
|
|
197
|
+
s = s(), s.then(
|
|
203
198
|
function(c) {
|
|
204
199
|
(t._status === 0 || t._status === -1) && (t._status = 1, t._result = c);
|
|
205
200
|
},
|
|
206
201
|
function(c) {
|
|
207
202
|
(t._status === 0 || t._status === -1) && (t._status = 2, t._result = c);
|
|
208
203
|
}
|
|
209
|
-
), t._status === -1 && (t._status = 0, t._result =
|
|
204
|
+
), t._status === -1 && (t._status = 0, t._result = s);
|
|
210
205
|
}
|
|
211
206
|
if (t._status === 1) return t._result.default;
|
|
212
207
|
throw t._result;
|
|
213
208
|
}
|
|
214
|
-
var
|
|
209
|
+
var F = typeof reportError == "function" ? reportError : function(t) {
|
|
215
210
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
216
|
-
var
|
|
211
|
+
var s = new window.ErrorEvent("error", {
|
|
217
212
|
bubbles: !0,
|
|
218
213
|
cancelable: !0,
|
|
219
214
|
message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
|
|
220
215
|
error: t
|
|
221
216
|
});
|
|
222
|
-
if (!window.dispatchEvent(
|
|
217
|
+
if (!window.dispatchEvent(s)) return;
|
|
223
218
|
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
224
219
|
process.emit("uncaughtException", t);
|
|
225
220
|
return;
|
|
226
221
|
}
|
|
227
222
|
console.error(t);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
map: q,
|
|
233
|
-
forEach: function(t, o, c) {
|
|
234
|
-
q(
|
|
223
|
+
}, pe = {
|
|
224
|
+
map: W,
|
|
225
|
+
forEach: function(t, s, c) {
|
|
226
|
+
W(
|
|
235
227
|
t,
|
|
236
228
|
function() {
|
|
237
|
-
|
|
229
|
+
s.apply(this, arguments);
|
|
238
230
|
},
|
|
239
231
|
c
|
|
240
232
|
);
|
|
241
233
|
},
|
|
242
234
|
count: function(t) {
|
|
243
|
-
var
|
|
244
|
-
return
|
|
245
|
-
|
|
246
|
-
}),
|
|
235
|
+
var s = 0;
|
|
236
|
+
return W(t, function() {
|
|
237
|
+
s++;
|
|
238
|
+
}), s;
|
|
247
239
|
},
|
|
248
240
|
toArray: function(t) {
|
|
249
|
-
return
|
|
250
|
-
return
|
|
241
|
+
return W(t, function(s) {
|
|
242
|
+
return s;
|
|
251
243
|
}) || [];
|
|
252
244
|
},
|
|
253
245
|
only: function(t) {
|
|
254
|
-
if (!
|
|
246
|
+
if (!oe(t))
|
|
255
247
|
throw Error(
|
|
256
248
|
"React.Children.only expected to receive a single React element child."
|
|
257
249
|
);
|
|
258
250
|
return t;
|
|
259
251
|
}
|
|
260
|
-
}
|
|
252
|
+
};
|
|
253
|
+
return f.Activity = Q, f.Children = pe, f.Component = Y, f.Fragment = y, f.Profiler = M, f.PureComponent = ne, f.StrictMode = w, f.Suspense = C, f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = _, f.__COMPILER_RUNTIME = {
|
|
261
254
|
__proto__: null,
|
|
262
255
|
c: function(t) {
|
|
263
|
-
return
|
|
256
|
+
return _.H.useMemoCache(t);
|
|
264
257
|
}
|
|
265
258
|
}, f.cache = function(t) {
|
|
266
259
|
return function() {
|
|
267
260
|
return t.apply(null, arguments);
|
|
268
261
|
};
|
|
269
|
-
}, f.
|
|
262
|
+
}, f.cacheSignal = function() {
|
|
263
|
+
return null;
|
|
264
|
+
}, f.cloneElement = function(t, s, c) {
|
|
270
265
|
if (t == null)
|
|
271
266
|
throw Error(
|
|
272
267
|
"The argument must be a React element, but you passed " + t + "."
|
|
273
268
|
);
|
|
274
|
-
var a =
|
|
275
|
-
if (
|
|
276
|
-
for (
|
|
277
|
-
!
|
|
278
|
-
var
|
|
279
|
-
if (
|
|
280
|
-
else if (1 <
|
|
281
|
-
for (var
|
|
282
|
-
|
|
283
|
-
a.children =
|
|
269
|
+
var a = te({}, t.props), E = t.key;
|
|
270
|
+
if (s != null)
|
|
271
|
+
for (m in s.key !== void 0 && (E = "" + s.key), s)
|
|
272
|
+
!le.call(s, m) || m === "key" || m === "__self" || m === "__source" || m === "ref" && s.ref === void 0 || (a[m] = s[m]);
|
|
273
|
+
var m = arguments.length - 2;
|
|
274
|
+
if (m === 1) a.children = c;
|
|
275
|
+
else if (1 < m) {
|
|
276
|
+
for (var g = Array(m), N = 0; N < m; N++)
|
|
277
|
+
g[N] = arguments[N + 2];
|
|
278
|
+
a.children = g;
|
|
284
279
|
}
|
|
285
|
-
return
|
|
280
|
+
return I(t.type, E, a);
|
|
286
281
|
}, f.createContext = function(t) {
|
|
287
282
|
return t = {
|
|
288
|
-
$$typeof:
|
|
283
|
+
$$typeof: z,
|
|
289
284
|
_currentValue: t,
|
|
290
285
|
_currentValue2: t,
|
|
291
286
|
_threadCount: 0,
|
|
292
287
|
Provider: null,
|
|
293
288
|
Consumer: null
|
|
294
289
|
}, t.Provider = t, t.Consumer = {
|
|
295
|
-
$$typeof:
|
|
290
|
+
$$typeof: A,
|
|
296
291
|
_context: t
|
|
297
292
|
}, t;
|
|
298
|
-
}, f.createElement = function(t,
|
|
299
|
-
var a,
|
|
300
|
-
if (
|
|
301
|
-
for (a in
|
|
302
|
-
|
|
303
|
-
var
|
|
304
|
-
if (
|
|
305
|
-
else if (1 <
|
|
306
|
-
for (var
|
|
307
|
-
|
|
308
|
-
|
|
293
|
+
}, f.createElement = function(t, s, c) {
|
|
294
|
+
var a, E = {}, m = null;
|
|
295
|
+
if (s != null)
|
|
296
|
+
for (a in s.key !== void 0 && (m = "" + s.key), s)
|
|
297
|
+
le.call(s, a) && a !== "key" && a !== "__self" && a !== "__source" && (E[a] = s[a]);
|
|
298
|
+
var g = arguments.length - 2;
|
|
299
|
+
if (g === 1) E.children = c;
|
|
300
|
+
else if (1 < g) {
|
|
301
|
+
for (var N = Array(g), b = 0; b < g; b++)
|
|
302
|
+
N[b] = arguments[b + 2];
|
|
303
|
+
E.children = N;
|
|
309
304
|
}
|
|
310
305
|
if (t && t.defaultProps)
|
|
311
|
-
for (a in
|
|
312
|
-
|
|
313
|
-
return
|
|
306
|
+
for (a in g = t.defaultProps, g)
|
|
307
|
+
E[a] === void 0 && (E[a] = g[a]);
|
|
308
|
+
return I(t, m, E);
|
|
314
309
|
}, f.createRef = function() {
|
|
315
310
|
return { current: null };
|
|
316
311
|
}, f.forwardRef = function(t) {
|
|
317
312
|
return { $$typeof: O, render: t };
|
|
318
|
-
}, f.isValidElement =
|
|
313
|
+
}, f.isValidElement = oe, f.lazy = function(t) {
|
|
319
314
|
return {
|
|
320
|
-
$$typeof:
|
|
315
|
+
$$typeof: B,
|
|
321
316
|
_payload: { _status: -1, _result: t },
|
|
322
|
-
_init:
|
|
317
|
+
_init: ue
|
|
323
318
|
};
|
|
324
|
-
}, f.memo = function(t,
|
|
319
|
+
}, f.memo = function(t, s) {
|
|
325
320
|
return {
|
|
326
|
-
$$typeof:
|
|
321
|
+
$$typeof: G,
|
|
327
322
|
type: t,
|
|
328
|
-
compare:
|
|
323
|
+
compare: s === void 0 ? null : s
|
|
329
324
|
};
|
|
330
325
|
}, f.startTransition = function(t) {
|
|
331
|
-
var
|
|
332
|
-
|
|
326
|
+
var s = _.T, c = {};
|
|
327
|
+
_.T = c;
|
|
333
328
|
try {
|
|
334
|
-
var a = t(),
|
|
335
|
-
|
|
336
|
-
} catch (
|
|
337
|
-
|
|
329
|
+
var a = t(), E = _.S;
|
|
330
|
+
E !== null && E(c, a), typeof a == "object" && a !== null && typeof a.then == "function" && a.then(re, F);
|
|
331
|
+
} catch (m) {
|
|
332
|
+
F(m);
|
|
338
333
|
} finally {
|
|
339
|
-
|
|
334
|
+
s !== null && c.types !== null && (s.types = c.types), _.T = s;
|
|
340
335
|
}
|
|
341
336
|
}, f.unstable_useCacheRefresh = function() {
|
|
342
|
-
return
|
|
337
|
+
return _.H.useCacheRefresh();
|
|
343
338
|
}, f.use = function(t) {
|
|
344
|
-
return
|
|
345
|
-
}, f.useActionState = function(t,
|
|
346
|
-
return
|
|
347
|
-
}, f.useCallback = function(t,
|
|
348
|
-
return
|
|
339
|
+
return _.H.use(t);
|
|
340
|
+
}, f.useActionState = function(t, s, c) {
|
|
341
|
+
return _.H.useActionState(t, s, c);
|
|
342
|
+
}, f.useCallback = function(t, s) {
|
|
343
|
+
return _.H.useCallback(t, s);
|
|
349
344
|
}, f.useContext = function(t) {
|
|
350
|
-
return
|
|
345
|
+
return _.H.useContext(t);
|
|
351
346
|
}, f.useDebugValue = function() {
|
|
352
|
-
}, f.useDeferredValue = function(t,
|
|
353
|
-
return
|
|
354
|
-
}, f.useEffect = function(t,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
359
|
-
);
|
|
360
|
-
return a.useEffect(t, o);
|
|
347
|
+
}, f.useDeferredValue = function(t, s) {
|
|
348
|
+
return _.H.useDeferredValue(t, s);
|
|
349
|
+
}, f.useEffect = function(t, s) {
|
|
350
|
+
return _.H.useEffect(t, s);
|
|
351
|
+
}, f.useEffectEvent = function(t) {
|
|
352
|
+
return _.H.useEffectEvent(t);
|
|
361
353
|
}, f.useId = function() {
|
|
362
|
-
return
|
|
363
|
-
}, f.useImperativeHandle = function(t,
|
|
364
|
-
return
|
|
365
|
-
}, f.useInsertionEffect = function(t,
|
|
366
|
-
return
|
|
367
|
-
}, f.useLayoutEffect = function(t,
|
|
368
|
-
return
|
|
369
|
-
}, f.useMemo = function(t,
|
|
370
|
-
return
|
|
371
|
-
}, f.useOptimistic = function(t,
|
|
372
|
-
return
|
|
373
|
-
}, f.useReducer = function(t,
|
|
374
|
-
return
|
|
354
|
+
return _.H.useId();
|
|
355
|
+
}, f.useImperativeHandle = function(t, s, c) {
|
|
356
|
+
return _.H.useImperativeHandle(t, s, c);
|
|
357
|
+
}, f.useInsertionEffect = function(t, s) {
|
|
358
|
+
return _.H.useInsertionEffect(t, s);
|
|
359
|
+
}, f.useLayoutEffect = function(t, s) {
|
|
360
|
+
return _.H.useLayoutEffect(t, s);
|
|
361
|
+
}, f.useMemo = function(t, s) {
|
|
362
|
+
return _.H.useMemo(t, s);
|
|
363
|
+
}, f.useOptimistic = function(t, s) {
|
|
364
|
+
return _.H.useOptimistic(t, s);
|
|
365
|
+
}, f.useReducer = function(t, s, c) {
|
|
366
|
+
return _.H.useReducer(t, s, c);
|
|
375
367
|
}, f.useRef = function(t) {
|
|
376
|
-
return
|
|
368
|
+
return _.H.useRef(t);
|
|
377
369
|
}, f.useState = function(t) {
|
|
378
|
-
return
|
|
379
|
-
}, f.useSyncExternalStore = function(t,
|
|
380
|
-
return
|
|
370
|
+
return _.H.useState(t);
|
|
371
|
+
}, f.useSyncExternalStore = function(t, s, c) {
|
|
372
|
+
return _.H.useSyncExternalStore(
|
|
381
373
|
t,
|
|
382
|
-
|
|
374
|
+
s,
|
|
383
375
|
c
|
|
384
376
|
);
|
|
385
377
|
}, f.useTransition = function() {
|
|
386
|
-
return
|
|
387
|
-
}, f.version = "19.
|
|
378
|
+
return _.H.useTransition();
|
|
379
|
+
}, f.version = "19.2.3", f;
|
|
388
380
|
}
|
|
389
|
-
var
|
|
381
|
+
var ae = { exports: {} };
|
|
390
382
|
/**
|
|
391
383
|
* @license React
|
|
392
384
|
* react.development.js
|
|
@@ -396,13 +388,13 @@ var se = { exports: {} };
|
|
|
396
388
|
* This source code is licensed under the MIT license found in the
|
|
397
389
|
* LICENSE file in the root directory of this source tree.
|
|
398
390
|
*/
|
|
399
|
-
|
|
400
|
-
var
|
|
401
|
-
function
|
|
402
|
-
return
|
|
391
|
+
ae.exports;
|
|
392
|
+
var Ye;
|
|
393
|
+
function Xe() {
|
|
394
|
+
return Ye || (Ye = 1, (function(T, r) {
|
|
403
395
|
process.env.NODE_ENV !== "production" && (function() {
|
|
404
|
-
function
|
|
405
|
-
Object.defineProperty(
|
|
396
|
+
function y(e, n) {
|
|
397
|
+
Object.defineProperty(A.prototype, e, {
|
|
406
398
|
get: function() {
|
|
407
399
|
console.warn(
|
|
408
400
|
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
@@ -412,140 +404,143 @@ function Qe() {
|
|
|
412
404
|
}
|
|
413
405
|
});
|
|
414
406
|
}
|
|
415
|
-
function
|
|
416
|
-
return e === null || typeof e != "object" ? null : (e =
|
|
407
|
+
function w(e) {
|
|
408
|
+
return e === null || typeof e != "object" ? null : (e = Re && e[Re] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
417
409
|
}
|
|
418
410
|
function M(e, n) {
|
|
419
411
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
420
|
-
var
|
|
421
|
-
|
|
412
|
+
var o = e + "." + n;
|
|
413
|
+
we[o] || (console.error(
|
|
422
414
|
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
423
415
|
n,
|
|
424
416
|
e
|
|
425
|
-
),
|
|
417
|
+
), we[o] = !0);
|
|
426
418
|
}
|
|
427
|
-
function
|
|
428
|
-
this.props = e, this.context = n, this.refs = _e, this.updater =
|
|
419
|
+
function A(e, n, o) {
|
|
420
|
+
this.props = e, this.context = n, this.refs = _e, this.updater = o || be;
|
|
429
421
|
}
|
|
430
|
-
function
|
|
422
|
+
function z() {
|
|
431
423
|
}
|
|
432
|
-
function O(e, n,
|
|
433
|
-
this.props = e, this.context = n, this.refs = _e, this.updater =
|
|
424
|
+
function O(e, n, o) {
|
|
425
|
+
this.props = e, this.context = n, this.refs = _e, this.updater = o || be;
|
|
434
426
|
}
|
|
435
|
-
function
|
|
427
|
+
function C() {
|
|
428
|
+
}
|
|
429
|
+
function G(e) {
|
|
436
430
|
return "" + e;
|
|
437
431
|
}
|
|
438
|
-
function
|
|
432
|
+
function B(e) {
|
|
439
433
|
try {
|
|
440
|
-
|
|
434
|
+
G(e);
|
|
441
435
|
var n = !1;
|
|
442
436
|
} catch {
|
|
443
437
|
n = !0;
|
|
444
438
|
}
|
|
445
439
|
if (n) {
|
|
446
440
|
n = console;
|
|
447
|
-
var
|
|
448
|
-
return
|
|
441
|
+
var o = n.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
442
|
+
return o.call(
|
|
449
443
|
n,
|
|
450
444
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
451
445
|
u
|
|
452
|
-
),
|
|
446
|
+
), G(e);
|
|
453
447
|
}
|
|
454
448
|
}
|
|
455
|
-
function
|
|
449
|
+
function Q(e) {
|
|
456
450
|
if (e == null) return null;
|
|
457
451
|
if (typeof e == "function")
|
|
458
|
-
return e.$$typeof ===
|
|
452
|
+
return e.$$typeof === We ? null : e.displayName || e.name || null;
|
|
459
453
|
if (typeof e == "string") return e;
|
|
460
454
|
switch (e) {
|
|
461
455
|
case t:
|
|
462
456
|
return "Fragment";
|
|
463
457
|
case c:
|
|
464
458
|
return "Profiler";
|
|
465
|
-
case
|
|
459
|
+
case s:
|
|
466
460
|
return "StrictMode";
|
|
467
|
-
case
|
|
461
|
+
case g:
|
|
468
462
|
return "Suspense";
|
|
469
|
-
case
|
|
463
|
+
case N:
|
|
470
464
|
return "SuspenseList";
|
|
471
|
-
case
|
|
465
|
+
case Te:
|
|
472
466
|
return "Activity";
|
|
473
467
|
}
|
|
474
468
|
if (typeof e == "object")
|
|
475
469
|
switch (typeof e.tag == "number" && console.error(
|
|
476
470
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
477
471
|
), e.$$typeof) {
|
|
478
|
-
case
|
|
472
|
+
case pe:
|
|
479
473
|
return "Portal";
|
|
480
|
-
case
|
|
481
|
-
return
|
|
474
|
+
case E:
|
|
475
|
+
return e.displayName || "Context";
|
|
482
476
|
case a:
|
|
483
477
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
484
|
-
case
|
|
478
|
+
case m:
|
|
485
479
|
var n = e.render;
|
|
486
480
|
return e = e.displayName, e || (e = n.displayName || n.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
487
|
-
case
|
|
488
|
-
return n = e.displayName || null, n !== null ? n :
|
|
489
|
-
case
|
|
481
|
+
case b:
|
|
482
|
+
return n = e.displayName || null, n !== null ? n : Q(e.type) || "Memo";
|
|
483
|
+
case $:
|
|
490
484
|
n = e._payload, e = e._init;
|
|
491
485
|
try {
|
|
492
|
-
return
|
|
486
|
+
return Q(e(n));
|
|
493
487
|
} catch {
|
|
494
488
|
}
|
|
495
489
|
}
|
|
496
490
|
return null;
|
|
497
491
|
}
|
|
498
|
-
function
|
|
492
|
+
function x(e) {
|
|
499
493
|
if (e === t) return "<>";
|
|
500
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
494
|
+
if (typeof e == "object" && e !== null && e.$$typeof === $)
|
|
501
495
|
return "<...>";
|
|
502
496
|
try {
|
|
503
|
-
var n =
|
|
497
|
+
var n = Q(e);
|
|
504
498
|
return n ? "<" + n + ">" : "<...>";
|
|
505
499
|
} catch {
|
|
506
500
|
return "<...>";
|
|
507
501
|
}
|
|
508
502
|
}
|
|
509
|
-
function
|
|
510
|
-
var e =
|
|
503
|
+
function ce() {
|
|
504
|
+
var e = p.A;
|
|
511
505
|
return e === null ? null : e.getOwner();
|
|
512
506
|
}
|
|
513
|
-
function
|
|
507
|
+
function ee() {
|
|
514
508
|
return Error("react-stack-top-frame");
|
|
515
509
|
}
|
|
516
|
-
function
|
|
517
|
-
if (
|
|
510
|
+
function te(e) {
|
|
511
|
+
if (he.call(e, "key")) {
|
|
518
512
|
var n = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
519
513
|
if (n && n.isReactWarning) return !1;
|
|
520
514
|
}
|
|
521
515
|
return e.key !== void 0;
|
|
522
516
|
}
|
|
523
|
-
function
|
|
524
|
-
function
|
|
525
|
-
|
|
517
|
+
function fe(e, n) {
|
|
518
|
+
function o() {
|
|
519
|
+
ke || (ke = !0, console.error(
|
|
526
520
|
"%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)",
|
|
527
521
|
n
|
|
528
522
|
));
|
|
529
523
|
}
|
|
530
|
-
|
|
531
|
-
get:
|
|
524
|
+
o.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
525
|
+
get: o,
|
|
532
526
|
configurable: !0
|
|
533
527
|
});
|
|
534
528
|
}
|
|
535
529
|
function Y() {
|
|
536
|
-
var e =
|
|
537
|
-
return
|
|
530
|
+
var e = Q(this.type);
|
|
531
|
+
return Ne[e] || (Ne[e] = !0, console.error(
|
|
538
532
|
"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."
|
|
539
533
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
540
534
|
}
|
|
541
|
-
function
|
|
542
|
-
|
|
543
|
-
|
|
535
|
+
function X(e, n, o, u, i, h) {
|
|
536
|
+
var l = o.ref;
|
|
537
|
+
return e = {
|
|
538
|
+
$$typeof: F,
|
|
544
539
|
type: e,
|
|
545
540
|
key: n,
|
|
546
|
-
props:
|
|
547
|
-
_owner:
|
|
548
|
-
}, (
|
|
541
|
+
props: o,
|
|
542
|
+
_owner: u
|
|
543
|
+
}, (l !== void 0 ? l : null) !== null ? Object.defineProperty(e, "ref", {
|
|
549
544
|
enumerable: !1,
|
|
550
545
|
get: Y
|
|
551
546
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
@@ -562,48 +557,47 @@ function Qe() {
|
|
|
562
557
|
configurable: !1,
|
|
563
558
|
enumerable: !1,
|
|
564
559
|
writable: !0,
|
|
565
|
-
value:
|
|
560
|
+
value: i
|
|
566
561
|
}), Object.defineProperty(e, "_debugTask", {
|
|
567
562
|
configurable: !1,
|
|
568
563
|
enumerable: !1,
|
|
569
564
|
writable: !0,
|
|
570
|
-
value:
|
|
565
|
+
value: h
|
|
571
566
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
572
567
|
}
|
|
573
|
-
function
|
|
574
|
-
return n =
|
|
568
|
+
function ne(e, n) {
|
|
569
|
+
return n = X(
|
|
575
570
|
e.type,
|
|
576
571
|
n,
|
|
577
|
-
void 0,
|
|
578
|
-
void 0,
|
|
579
|
-
e._owner,
|
|
580
572
|
e.props,
|
|
573
|
+
e._owner,
|
|
581
574
|
e._debugStack,
|
|
582
575
|
e._debugTask
|
|
583
576
|
), e._store && (n._store.validated = e._store.validated), n;
|
|
584
577
|
}
|
|
585
|
-
function
|
|
586
|
-
|
|
578
|
+
function Z(e) {
|
|
579
|
+
D(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === $ && (e._payload.status === "fulfilled" ? D(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
587
580
|
}
|
|
588
|
-
function
|
|
581
|
+
function D(e) {
|
|
582
|
+
return typeof e == "object" && e !== null && e.$$typeof === F;
|
|
583
|
+
}
|
|
584
|
+
function re(e) {
|
|
589
585
|
var n = { "=": "=0", ":": "=2" };
|
|
590
|
-
return "$" + e.replace(/[=:]/g, function(
|
|
591
|
-
return n[
|
|
586
|
+
return "$" + e.replace(/[=:]/g, function(o) {
|
|
587
|
+
return n[o];
|
|
592
588
|
});
|
|
593
589
|
}
|
|
594
|
-
function
|
|
595
|
-
return typeof e == "object" && e !== null && e.key != null ? (
|
|
596
|
-
}
|
|
597
|
-
function te() {
|
|
590
|
+
function _(e, n) {
|
|
591
|
+
return typeof e == "object" && e !== null && e.key != null ? (B(e.key), re("" + e.key)) : n.toString(36);
|
|
598
592
|
}
|
|
599
|
-
function
|
|
593
|
+
function le(e) {
|
|
600
594
|
switch (e.status) {
|
|
601
595
|
case "fulfilled":
|
|
602
596
|
return e.value;
|
|
603
597
|
case "rejected":
|
|
604
598
|
throw e.reason;
|
|
605
599
|
default:
|
|
606
|
-
switch (typeof e.status == "string" ? e.then(
|
|
600
|
+
switch (typeof e.status == "string" ? e.then(C, C) : (e.status = "pending", e.then(
|
|
607
601
|
function(n) {
|
|
608
602
|
e.status === "pending" && (e.status = "fulfilled", e.value = n);
|
|
609
603
|
},
|
|
@@ -619,13 +613,13 @@ function Qe() {
|
|
|
619
613
|
}
|
|
620
614
|
throw e;
|
|
621
615
|
}
|
|
622
|
-
function
|
|
623
|
-
var
|
|
624
|
-
(
|
|
616
|
+
function I(e, n, o, u, i) {
|
|
617
|
+
var h = typeof e;
|
|
618
|
+
(h === "undefined" || h === "boolean") && (e = null);
|
|
625
619
|
var l = !1;
|
|
626
620
|
if (e === null) l = !0;
|
|
627
621
|
else
|
|
628
|
-
switch (
|
|
622
|
+
switch (h) {
|
|
629
623
|
case "bigint":
|
|
630
624
|
case "string":
|
|
631
625
|
case "number":
|
|
@@ -633,15 +627,15 @@ function Qe() {
|
|
|
633
627
|
break;
|
|
634
628
|
case "object":
|
|
635
629
|
switch (e.$$typeof) {
|
|
636
|
-
case
|
|
637
|
-
case
|
|
630
|
+
case F:
|
|
631
|
+
case pe:
|
|
638
632
|
l = !0;
|
|
639
633
|
break;
|
|
640
|
-
case
|
|
641
|
-
return l = e._init,
|
|
634
|
+
case $:
|
|
635
|
+
return l = e._init, I(
|
|
642
636
|
l(e._payload),
|
|
643
637
|
n,
|
|
644
|
-
|
|
638
|
+
o,
|
|
645
639
|
u,
|
|
646
640
|
i
|
|
647
641
|
);
|
|
@@ -649,43 +643,43 @@ function Qe() {
|
|
|
649
643
|
}
|
|
650
644
|
if (l) {
|
|
651
645
|
l = e, i = i(l);
|
|
652
|
-
var
|
|
653
|
-
return
|
|
654
|
-
return
|
|
655
|
-
})) : i != null && (
|
|
646
|
+
var v = u === "" ? "." + _(l, 0) : u;
|
|
647
|
+
return Se(i) ? (o = "", v != null && (o = v.replace(je, "$&/") + "/"), I(i, n, o, "", function(q) {
|
|
648
|
+
return q;
|
|
649
|
+
})) : i != null && (D(i) && (i.key != null && (l && l.key === i.key || B(i.key)), o = ne(
|
|
656
650
|
i,
|
|
657
|
-
|
|
658
|
-
|
|
651
|
+
o + (i.key == null || l && l.key === i.key ? "" : ("" + i.key).replace(
|
|
652
|
+
je,
|
|
659
653
|
"$&/"
|
|
660
|
-
) + "/") +
|
|
661
|
-
), u !== "" && l != null &&
|
|
654
|
+
) + "/") + v
|
|
655
|
+
), u !== "" && l != null && D(l) && l.key == null && l._store && !l._store.validated && (o._store.validated = 2), i = o), n.push(i)), 1;
|
|
662
656
|
}
|
|
663
|
-
if (l = 0,
|
|
657
|
+
if (l = 0, v = u === "" ? "." : u + ":", Se(e))
|
|
664
658
|
for (var d = 0; d < e.length; d++)
|
|
665
|
-
u = e[d],
|
|
659
|
+
u = e[d], h = v + _(u, d), l += I(
|
|
666
660
|
u,
|
|
667
661
|
n,
|
|
668
|
-
|
|
669
|
-
|
|
662
|
+
o,
|
|
663
|
+
h,
|
|
670
664
|
i
|
|
671
665
|
);
|
|
672
|
-
else if (d =
|
|
673
|
-
for (d === e.entries && (
|
|
666
|
+
else if (d = w(e), typeof d == "function")
|
|
667
|
+
for (d === e.entries && (Pe || console.warn(
|
|
674
668
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
675
|
-
),
|
|
676
|
-
u = u.value,
|
|
669
|
+
), Pe = !0), e = d.call(e), d = 0; !(u = e.next()).done; )
|
|
670
|
+
u = u.value, h = v + _(u, d++), l += I(
|
|
677
671
|
u,
|
|
678
672
|
n,
|
|
679
|
-
|
|
680
|
-
|
|
673
|
+
o,
|
|
674
|
+
h,
|
|
681
675
|
i
|
|
682
676
|
);
|
|
683
|
-
else if (
|
|
677
|
+
else if (h === "object") {
|
|
684
678
|
if (typeof e.then == "function")
|
|
685
|
-
return
|
|
686
|
-
|
|
679
|
+
return I(
|
|
680
|
+
le(e),
|
|
687
681
|
n,
|
|
688
|
-
|
|
682
|
+
o,
|
|
689
683
|
u,
|
|
690
684
|
i
|
|
691
685
|
);
|
|
@@ -695,24 +689,39 @@ function Qe() {
|
|
|
695
689
|
}
|
|
696
690
|
return l;
|
|
697
691
|
}
|
|
698
|
-
function
|
|
692
|
+
function V(e, n, o) {
|
|
699
693
|
if (e == null) return e;
|
|
700
694
|
var u = [], i = 0;
|
|
701
|
-
return
|
|
702
|
-
return n.call(
|
|
695
|
+
return I(e, u, "", "", function(h) {
|
|
696
|
+
return n.call(o, h, i++);
|
|
703
697
|
}), u;
|
|
704
698
|
}
|
|
705
|
-
function
|
|
699
|
+
function oe(e) {
|
|
706
700
|
if (e._status === -1) {
|
|
707
|
-
var n = e.
|
|
708
|
-
n = n(), n.
|
|
709
|
-
|
|
710
|
-
|
|
701
|
+
var n = e._ioInfo;
|
|
702
|
+
n != null && (n.start = n.end = performance.now()), n = e._result;
|
|
703
|
+
var o = n();
|
|
704
|
+
if (o.then(
|
|
705
|
+
function(i) {
|
|
706
|
+
if (e._status === 0 || e._status === -1) {
|
|
707
|
+
e._status = 1, e._result = i;
|
|
708
|
+
var h = e._ioInfo;
|
|
709
|
+
h != null && (h.end = performance.now()), o.status === void 0 && (o.status = "fulfilled", o.value = i);
|
|
710
|
+
}
|
|
711
711
|
},
|
|
712
|
-
function(
|
|
713
|
-
(e._status === 0 || e._status === -1)
|
|
712
|
+
function(i) {
|
|
713
|
+
if (e._status === 0 || e._status === -1) {
|
|
714
|
+
e._status = 2, e._result = i;
|
|
715
|
+
var h = e._ioInfo;
|
|
716
|
+
h != null && (h.end = performance.now()), o.status === void 0 && (o.status = "rejected", o.reason = i);
|
|
717
|
+
}
|
|
714
718
|
}
|
|
715
|
-
),
|
|
719
|
+
), n = e._ioInfo, n != null) {
|
|
720
|
+
n.value = o;
|
|
721
|
+
var u = o.displayName;
|
|
722
|
+
typeof u == "string" && (n.name = u);
|
|
723
|
+
}
|
|
724
|
+
e._status === -1 && (e._status = 0, e._result = o);
|
|
716
725
|
}
|
|
717
726
|
if (e._status === 1)
|
|
718
727
|
return n = e._result, n === void 0 && console.error(
|
|
@@ -732,8 +741,8 @@ Your code should look like:
|
|
|
732
741
|
), n.default;
|
|
733
742
|
throw e._result;
|
|
734
743
|
}
|
|
735
|
-
function
|
|
736
|
-
var e =
|
|
744
|
+
function R() {
|
|
745
|
+
var e = p.H;
|
|
737
746
|
return e === null && console.error(
|
|
738
747
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
739
748
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
@@ -742,79 +751,80 @@ Your code should look like:
|
|
|
742
751
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
743
752
|
), e;
|
|
744
753
|
}
|
|
745
|
-
function
|
|
754
|
+
function se() {
|
|
755
|
+
p.asyncTransitions--;
|
|
746
756
|
}
|
|
747
|
-
function
|
|
748
|
-
if (
|
|
757
|
+
function U(e) {
|
|
758
|
+
if (de === null)
|
|
749
759
|
try {
|
|
750
760
|
var n = ("require" + Math.random()).slice(0, 7);
|
|
751
|
-
|
|
752
|
-
|
|
761
|
+
de = (T && T[n]).call(
|
|
762
|
+
T,
|
|
753
763
|
"timers"
|
|
754
764
|
).setImmediate;
|
|
755
765
|
} catch {
|
|
756
|
-
|
|
757
|
-
|
|
766
|
+
de = function(u) {
|
|
767
|
+
Ie === !1 && (Ie = !0, typeof MessageChannel > "u" && console.error(
|
|
758
768
|
"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."
|
|
759
769
|
));
|
|
760
770
|
var i = new MessageChannel();
|
|
761
771
|
i.port1.onmessage = u, i.port2.postMessage(void 0);
|
|
762
772
|
};
|
|
763
773
|
}
|
|
764
|
-
return
|
|
774
|
+
return de(e);
|
|
765
775
|
}
|
|
766
776
|
function K(e) {
|
|
767
777
|
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
768
778
|
}
|
|
769
|
-
function
|
|
770
|
-
n !==
|
|
779
|
+
function L(e, n) {
|
|
780
|
+
n !== ye - 1 && console.error(
|
|
771
781
|
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
772
|
-
),
|
|
782
|
+
), ye = n;
|
|
773
783
|
}
|
|
774
|
-
function
|
|
775
|
-
var u =
|
|
784
|
+
function W(e, n, o) {
|
|
785
|
+
var u = p.actQueue;
|
|
776
786
|
if (u !== null)
|
|
777
787
|
if (u.length !== 0)
|
|
778
788
|
try {
|
|
779
|
-
|
|
780
|
-
return
|
|
789
|
+
ue(u), U(function() {
|
|
790
|
+
return W(e, n, o);
|
|
781
791
|
});
|
|
782
792
|
return;
|
|
783
793
|
} catch (i) {
|
|
784
|
-
|
|
794
|
+
p.thrownErrors.push(i);
|
|
785
795
|
}
|
|
786
|
-
else
|
|
787
|
-
0 <
|
|
796
|
+
else p.actQueue = null;
|
|
797
|
+
0 < p.thrownErrors.length ? (u = K(p.thrownErrors), p.thrownErrors.length = 0, o(u)) : n(e);
|
|
788
798
|
}
|
|
789
|
-
function
|
|
790
|
-
if (!
|
|
791
|
-
|
|
799
|
+
function ue(e) {
|
|
800
|
+
if (!ge) {
|
|
801
|
+
ge = !0;
|
|
792
802
|
var n = 0;
|
|
793
803
|
try {
|
|
794
804
|
for (; n < e.length; n++) {
|
|
795
|
-
var
|
|
805
|
+
var o = e[n];
|
|
796
806
|
do {
|
|
797
|
-
|
|
798
|
-
var u =
|
|
807
|
+
p.didUsePromise = !1;
|
|
808
|
+
var u = o(!1);
|
|
799
809
|
if (u !== null) {
|
|
800
|
-
if (
|
|
801
|
-
e[n] =
|
|
810
|
+
if (p.didUsePromise) {
|
|
811
|
+
e[n] = o, e.splice(0, n);
|
|
802
812
|
return;
|
|
803
813
|
}
|
|
804
|
-
|
|
814
|
+
o = u;
|
|
805
815
|
} else break;
|
|
806
816
|
} while (!0);
|
|
807
817
|
}
|
|
808
818
|
e.length = 0;
|
|
809
819
|
} catch (i) {
|
|
810
|
-
e.splice(0, n + 1),
|
|
820
|
+
e.splice(0, n + 1), p.thrownErrors.push(i);
|
|
811
821
|
} finally {
|
|
812
|
-
|
|
822
|
+
ge = !1;
|
|
813
823
|
}
|
|
814
824
|
}
|
|
815
825
|
}
|
|
816
826
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
817
|
-
var
|
|
827
|
+
var F = Symbol.for("react.transitional.element"), pe = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), E = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), Te = Symbol.for("react.activity"), Re = Symbol.iterator, we = {}, be = {
|
|
818
828
|
isMounted: function() {
|
|
819
829
|
return !1;
|
|
820
830
|
},
|
|
@@ -827,17 +837,17 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
827
837
|
enqueueSetState: function(e) {
|
|
828
838
|
M(e, "setState");
|
|
829
839
|
}
|
|
830
|
-
},
|
|
831
|
-
Object.freeze(_e),
|
|
840
|
+
}, Oe = Object.assign, _e = {};
|
|
841
|
+
Object.freeze(_e), A.prototype.isReactComponent = {}, A.prototype.setState = function(e, n) {
|
|
832
842
|
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
833
843
|
throw Error(
|
|
834
844
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
835
845
|
);
|
|
836
846
|
this.updater.enqueueSetState(this, e, n, "setState");
|
|
837
|
-
},
|
|
847
|
+
}, A.prototype.forceUpdate = function(e) {
|
|
838
848
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
839
849
|
};
|
|
840
|
-
var
|
|
850
|
+
var P = {
|
|
841
851
|
isMounted: [
|
|
842
852
|
"isMounted",
|
|
843
853
|
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
@@ -846,35 +856,35 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
846
856
|
"replaceState",
|
|
847
857
|
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
848
858
|
]
|
|
849
|
-
}
|
|
850
|
-
for (
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
var
|
|
859
|
+
};
|
|
860
|
+
for (ie in P)
|
|
861
|
+
P.hasOwnProperty(ie) && y(ie, P[ie]);
|
|
862
|
+
z.prototype = A.prototype, P = O.prototype = new z(), P.constructor = O, Oe(P, A.prototype), P.isPureReactComponent = !0;
|
|
863
|
+
var Se = Array.isArray, We = Symbol.for("react.client.reference"), p = {
|
|
854
864
|
H: null,
|
|
855
865
|
A: null,
|
|
856
866
|
T: null,
|
|
857
867
|
S: null,
|
|
858
|
-
V: null,
|
|
859
868
|
actQueue: null,
|
|
869
|
+
asyncTransitions: 0,
|
|
860
870
|
isBatchingLegacy: !1,
|
|
861
871
|
didScheduleLegacyUpdate: !1,
|
|
862
872
|
didUsePromise: !1,
|
|
863
873
|
thrownErrors: [],
|
|
864
874
|
getCurrentStack: null,
|
|
865
875
|
recentlyCreatedOwnerStacks: 0
|
|
866
|
-
},
|
|
876
|
+
}, he = Object.prototype.hasOwnProperty, Ce = console.createTask ? console.createTask : function() {
|
|
867
877
|
return null;
|
|
868
878
|
};
|
|
869
|
-
|
|
879
|
+
P = {
|
|
870
880
|
react_stack_bottom_frame: function(e) {
|
|
871
881
|
return e();
|
|
872
882
|
}
|
|
873
883
|
};
|
|
874
|
-
var
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
)(),
|
|
884
|
+
var ke, Ae, Ne = {}, qe = P.react_stack_bottom_frame.bind(
|
|
885
|
+
P,
|
|
886
|
+
ee
|
|
887
|
+
)(), ze = Ce(x(ee)), Pe = !1, je = /\/+/g, Le = typeof reportError == "function" ? reportError : function(e) {
|
|
878
888
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
879
889
|
var n = new window.ErrorEvent("error", {
|
|
880
890
|
bubbles: !0,
|
|
@@ -888,130 +898,134 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
888
898
|
return;
|
|
889
899
|
}
|
|
890
900
|
console.error(e);
|
|
891
|
-
},
|
|
901
|
+
}, Ie = !1, de = null, ye = 0, Ee = !1, ge = !1, Me = typeof queueMicrotask == "function" ? function(e) {
|
|
892
902
|
queueMicrotask(function() {
|
|
893
903
|
return queueMicrotask(e);
|
|
894
904
|
});
|
|
895
|
-
} :
|
|
896
|
-
|
|
905
|
+
} : U;
|
|
906
|
+
P = Object.freeze({
|
|
897
907
|
__proto__: null,
|
|
898
908
|
c: function(e) {
|
|
899
|
-
return
|
|
909
|
+
return R().useMemoCache(e);
|
|
900
910
|
}
|
|
901
|
-
})
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
911
|
+
});
|
|
912
|
+
var ie = {
|
|
913
|
+
map: V,
|
|
914
|
+
forEach: function(e, n, o) {
|
|
915
|
+
V(
|
|
905
916
|
e,
|
|
906
917
|
function() {
|
|
907
918
|
n.apply(this, arguments);
|
|
908
919
|
},
|
|
909
|
-
|
|
920
|
+
o
|
|
910
921
|
);
|
|
911
922
|
},
|
|
912
923
|
count: function(e) {
|
|
913
924
|
var n = 0;
|
|
914
|
-
return
|
|
925
|
+
return V(e, function() {
|
|
915
926
|
n++;
|
|
916
927
|
}), n;
|
|
917
928
|
},
|
|
918
929
|
toArray: function(e) {
|
|
919
|
-
return
|
|
930
|
+
return V(e, function(n) {
|
|
920
931
|
return n;
|
|
921
932
|
}) || [];
|
|
922
933
|
},
|
|
923
934
|
only: function(e) {
|
|
924
|
-
if (!
|
|
935
|
+
if (!D(e))
|
|
925
936
|
throw Error(
|
|
926
937
|
"React.Children.only expected to receive a single React element child."
|
|
927
938
|
);
|
|
928
939
|
return e;
|
|
929
940
|
}
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
941
|
+
};
|
|
942
|
+
r.Activity = Te, r.Children = ie, r.Component = A, r.Fragment = t, r.Profiler = c, r.PureComponent = O, r.StrictMode = s, r.Suspense = g, r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = p, r.__COMPILER_RUNTIME = P, r.act = function(e) {
|
|
943
|
+
var n = p.actQueue, o = ye;
|
|
944
|
+
ye++;
|
|
945
|
+
var u = p.actQueue = n !== null ? n : [], i = !1;
|
|
934
946
|
try {
|
|
935
|
-
var
|
|
947
|
+
var h = e();
|
|
936
948
|
} catch (d) {
|
|
937
|
-
|
|
949
|
+
p.thrownErrors.push(d);
|
|
938
950
|
}
|
|
939
|
-
if (0 <
|
|
940
|
-
throw
|
|
941
|
-
if (
|
|
942
|
-
var l =
|
|
943
|
-
return
|
|
944
|
-
i ||
|
|
951
|
+
if (0 < p.thrownErrors.length)
|
|
952
|
+
throw L(n, o), e = K(p.thrownErrors), p.thrownErrors.length = 0, e;
|
|
953
|
+
if (h !== null && typeof h == "object" && typeof h.then == "function") {
|
|
954
|
+
var l = h;
|
|
955
|
+
return Me(function() {
|
|
956
|
+
i || Ee || (Ee = !0, console.error(
|
|
945
957
|
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
946
958
|
));
|
|
947
959
|
}), {
|
|
948
|
-
then: function(d,
|
|
960
|
+
then: function(d, q) {
|
|
949
961
|
i = !0, l.then(
|
|
950
|
-
function(
|
|
951
|
-
if (
|
|
962
|
+
function(J) {
|
|
963
|
+
if (L(n, o), o === 0) {
|
|
952
964
|
try {
|
|
953
|
-
|
|
954
|
-
return
|
|
955
|
-
|
|
965
|
+
ue(u), U(function() {
|
|
966
|
+
return W(
|
|
967
|
+
J,
|
|
956
968
|
d,
|
|
957
|
-
|
|
969
|
+
q
|
|
958
970
|
);
|
|
959
971
|
});
|
|
960
|
-
} catch (
|
|
961
|
-
|
|
972
|
+
} catch (Be) {
|
|
973
|
+
p.thrownErrors.push(Be);
|
|
962
974
|
}
|
|
963
|
-
if (0 <
|
|
964
|
-
var
|
|
965
|
-
|
|
975
|
+
if (0 < p.thrownErrors.length) {
|
|
976
|
+
var Ge = K(
|
|
977
|
+
p.thrownErrors
|
|
966
978
|
);
|
|
967
|
-
|
|
979
|
+
p.thrownErrors.length = 0, q(Ge);
|
|
968
980
|
}
|
|
969
|
-
} else d(
|
|
981
|
+
} else d(J);
|
|
970
982
|
},
|
|
971
|
-
function(
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
),
|
|
983
|
+
function(J) {
|
|
984
|
+
L(n, o), 0 < p.thrownErrors.length && (J = K(
|
|
985
|
+
p.thrownErrors
|
|
986
|
+
), p.thrownErrors.length = 0), q(J);
|
|
975
987
|
}
|
|
976
988
|
);
|
|
977
989
|
}
|
|
978
990
|
};
|
|
979
991
|
}
|
|
980
|
-
var
|
|
981
|
-
if (
|
|
982
|
-
i ||
|
|
992
|
+
var v = h;
|
|
993
|
+
if (L(n, o), o === 0 && (ue(u), u.length !== 0 && Me(function() {
|
|
994
|
+
i || Ee || (Ee = !0, console.error(
|
|
983
995
|
"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(() => ...)"
|
|
984
996
|
));
|
|
985
|
-
}),
|
|
986
|
-
throw e = K(
|
|
997
|
+
}), p.actQueue = null), 0 < p.thrownErrors.length)
|
|
998
|
+
throw e = K(p.thrownErrors), p.thrownErrors.length = 0, e;
|
|
987
999
|
return {
|
|
988
|
-
then: function(d,
|
|
989
|
-
i = !0,
|
|
990
|
-
return
|
|
991
|
-
|
|
1000
|
+
then: function(d, q) {
|
|
1001
|
+
i = !0, o === 0 ? (p.actQueue = u, U(function() {
|
|
1002
|
+
return W(
|
|
1003
|
+
v,
|
|
992
1004
|
d,
|
|
993
|
-
|
|
1005
|
+
q
|
|
994
1006
|
);
|
|
995
|
-
})) : d(
|
|
1007
|
+
})) : d(v);
|
|
996
1008
|
}
|
|
997
1009
|
};
|
|
998
1010
|
}, r.cache = function(e) {
|
|
999
1011
|
return function() {
|
|
1000
1012
|
return e.apply(null, arguments);
|
|
1001
1013
|
};
|
|
1014
|
+
}, r.cacheSignal = function() {
|
|
1015
|
+
return null;
|
|
1002
1016
|
}, r.captureOwnerStack = function() {
|
|
1003
|
-
var e =
|
|
1017
|
+
var e = p.getCurrentStack;
|
|
1004
1018
|
return e === null ? null : e();
|
|
1005
|
-
}, r.cloneElement = function(e, n,
|
|
1019
|
+
}, r.cloneElement = function(e, n, o) {
|
|
1006
1020
|
if (e == null)
|
|
1007
1021
|
throw Error(
|
|
1008
1022
|
"The argument must be a React element, but you passed " + e + "."
|
|
1009
1023
|
);
|
|
1010
|
-
var u =
|
|
1024
|
+
var u = Oe({}, e.props), i = e.key, h = e._owner;
|
|
1011
1025
|
if (n != null) {
|
|
1012
1026
|
var l;
|
|
1013
1027
|
e: {
|
|
1014
|
-
if (
|
|
1028
|
+
if (he.call(n, "ref") && (l = Object.getOwnPropertyDescriptor(
|
|
1015
1029
|
n,
|
|
1016
1030
|
"ref"
|
|
1017
1031
|
).get) && l.isReactWarning) {
|
|
@@ -1020,33 +1034,31 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1020
1034
|
}
|
|
1021
1035
|
l = n.ref !== void 0;
|
|
1022
1036
|
}
|
|
1023
|
-
l && (
|
|
1024
|
-
for (
|
|
1025
|
-
!
|
|
1037
|
+
l && (h = ce()), te(n) && (B(n.key), i = "" + n.key);
|
|
1038
|
+
for (v in n)
|
|
1039
|
+
!he.call(n, v) || v === "key" || v === "__self" || v === "__source" || v === "ref" && n.ref === void 0 || (u[v] = n[v]);
|
|
1026
1040
|
}
|
|
1027
|
-
var
|
|
1028
|
-
if (
|
|
1029
|
-
else if (1 <
|
|
1030
|
-
l = Array(
|
|
1031
|
-
for (var d = 0; d <
|
|
1041
|
+
var v = arguments.length - 2;
|
|
1042
|
+
if (v === 1) u.children = o;
|
|
1043
|
+
else if (1 < v) {
|
|
1044
|
+
l = Array(v);
|
|
1045
|
+
for (var d = 0; d < v; d++)
|
|
1032
1046
|
l[d] = arguments[d + 2];
|
|
1033
1047
|
u.children = l;
|
|
1034
1048
|
}
|
|
1035
|
-
for (u =
|
|
1049
|
+
for (u = X(
|
|
1036
1050
|
e.type,
|
|
1037
1051
|
i,
|
|
1038
|
-
void 0,
|
|
1039
|
-
void 0,
|
|
1040
|
-
m,
|
|
1041
1052
|
u,
|
|
1053
|
+
h,
|
|
1042
1054
|
e._debugStack,
|
|
1043
1055
|
e._debugTask
|
|
1044
1056
|
), i = 2; i < arguments.length; i++)
|
|
1045
|
-
|
|
1057
|
+
Z(arguments[i]);
|
|
1046
1058
|
return u;
|
|
1047
1059
|
}, r.createContext = function(e) {
|
|
1048
1060
|
return e = {
|
|
1049
|
-
$$typeof:
|
|
1061
|
+
$$typeof: E,
|
|
1050
1062
|
_currentValue: e,
|
|
1051
1063
|
_currentValue2: e,
|
|
1052
1064
|
_threadCount: 0,
|
|
@@ -1056,46 +1068,44 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1056
1068
|
$$typeof: a,
|
|
1057
1069
|
_context: e
|
|
1058
1070
|
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1059
|
-
}, r.createElement = function(e, n,
|
|
1060
|
-
for (var u = 2; u < arguments.length; u++)
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
if (
|
|
1065
|
-
for (d in
|
|
1071
|
+
}, r.createElement = function(e, n, o) {
|
|
1072
|
+
for (var u = 2; u < arguments.length; u++)
|
|
1073
|
+
Z(arguments[u]);
|
|
1074
|
+
u = {};
|
|
1075
|
+
var i = null;
|
|
1076
|
+
if (n != null)
|
|
1077
|
+
for (d in Ae || !("__self" in n) || "key" in n || (Ae = !0, console.warn(
|
|
1066
1078
|
"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"
|
|
1067
|
-
)),
|
|
1068
|
-
|
|
1069
|
-
var
|
|
1070
|
-
if (
|
|
1071
|
-
else if (1 <
|
|
1072
|
-
for (var l = Array(
|
|
1073
|
-
l[
|
|
1079
|
+
)), te(n) && (B(n.key), i = "" + n.key), n)
|
|
1080
|
+
he.call(n, d) && d !== "key" && d !== "__self" && d !== "__source" && (u[d] = n[d]);
|
|
1081
|
+
var h = arguments.length - 2;
|
|
1082
|
+
if (h === 1) u.children = o;
|
|
1083
|
+
else if (1 < h) {
|
|
1084
|
+
for (var l = Array(h), v = 0; v < h; v++)
|
|
1085
|
+
l[v] = arguments[v + 2];
|
|
1074
1086
|
Object.freeze && Object.freeze(l), u.children = l;
|
|
1075
1087
|
}
|
|
1076
1088
|
if (e && e.defaultProps)
|
|
1077
|
-
for (d in
|
|
1078
|
-
u[d] === void 0 && (u[d] =
|
|
1079
|
-
i &&
|
|
1089
|
+
for (d in h = e.defaultProps, h)
|
|
1090
|
+
u[d] === void 0 && (u[d] = h[d]);
|
|
1091
|
+
i && fe(
|
|
1080
1092
|
u,
|
|
1081
1093
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
1082
1094
|
);
|
|
1083
|
-
var d = 1e4 >
|
|
1084
|
-
return
|
|
1095
|
+
var d = 1e4 > p.recentlyCreatedOwnerStacks++;
|
|
1096
|
+
return X(
|
|
1085
1097
|
e,
|
|
1086
1098
|
i,
|
|
1087
|
-
void 0,
|
|
1088
|
-
void 0,
|
|
1089
|
-
ue(),
|
|
1090
1099
|
u,
|
|
1091
|
-
|
|
1092
|
-
d ?
|
|
1100
|
+
ce(),
|
|
1101
|
+
d ? Error("react-stack-top-frame") : qe,
|
|
1102
|
+
d ? Ce(x(e)) : ze
|
|
1093
1103
|
);
|
|
1094
1104
|
}, r.createRef = function() {
|
|
1095
1105
|
var e = { current: null };
|
|
1096
1106
|
return Object.seal(e), e;
|
|
1097
1107
|
}, r.forwardRef = function(e) {
|
|
1098
|
-
e != null && e.$$typeof ===
|
|
1108
|
+
e != null && e.$$typeof === b ? console.error(
|
|
1099
1109
|
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1100
1110
|
) : typeof e != "function" ? console.error(
|
|
1101
1111
|
"forwardRef requires a render function but was given %s.",
|
|
@@ -1106,131 +1116,139 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1106
1116
|
), e != null && e.defaultProps != null && console.error(
|
|
1107
1117
|
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1108
1118
|
);
|
|
1109
|
-
var n = { $$typeof:
|
|
1119
|
+
var n = { $$typeof: m, render: e }, o;
|
|
1110
1120
|
return Object.defineProperty(n, "displayName", {
|
|
1111
1121
|
enumerable: !1,
|
|
1112
1122
|
configurable: !0,
|
|
1113
1123
|
get: function() {
|
|
1114
|
-
return
|
|
1124
|
+
return o;
|
|
1115
1125
|
},
|
|
1116
1126
|
set: function(u) {
|
|
1117
|
-
|
|
1127
|
+
o = u, e.name || e.displayName || (Object.defineProperty(e, "name", { value: u }), e.displayName = u);
|
|
1118
1128
|
}
|
|
1119
1129
|
}), n;
|
|
1120
|
-
}, r.isValidElement =
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1130
|
+
}, r.isValidElement = D, r.lazy = function(e) {
|
|
1131
|
+
e = { _status: -1, _result: e };
|
|
1132
|
+
var n = {
|
|
1133
|
+
$$typeof: $,
|
|
1134
|
+
_payload: e,
|
|
1135
|
+
_init: oe
|
|
1136
|
+
}, o = {
|
|
1137
|
+
name: "lazy",
|
|
1138
|
+
start: -1,
|
|
1139
|
+
end: -1,
|
|
1140
|
+
value: null,
|
|
1141
|
+
owner: null,
|
|
1142
|
+
debugStack: Error("react-stack-top-frame"),
|
|
1143
|
+
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1125
1144
|
};
|
|
1145
|
+
return e._ioInfo = o, n._debugInfo = [{ awaited: o }], n;
|
|
1126
1146
|
}, r.memo = function(e, n) {
|
|
1127
1147
|
e == null && console.error(
|
|
1128
1148
|
"memo: The first argument must be a component. Instead received: %s",
|
|
1129
1149
|
e === null ? "null" : typeof e
|
|
1130
1150
|
), n = {
|
|
1131
|
-
$$typeof:
|
|
1151
|
+
$$typeof: b,
|
|
1132
1152
|
type: e,
|
|
1133
1153
|
compare: n === void 0 ? null : n
|
|
1134
1154
|
};
|
|
1135
|
-
var
|
|
1155
|
+
var o;
|
|
1136
1156
|
return Object.defineProperty(n, "displayName", {
|
|
1137
1157
|
enumerable: !1,
|
|
1138
1158
|
configurable: !0,
|
|
1139
1159
|
get: function() {
|
|
1140
|
-
return
|
|
1160
|
+
return o;
|
|
1141
1161
|
},
|
|
1142
1162
|
set: function(u) {
|
|
1143
|
-
|
|
1163
|
+
o = u, e.name || e.displayName || (Object.defineProperty(e, "name", { value: u }), e.displayName = u);
|
|
1144
1164
|
}
|
|
1145
1165
|
}), n;
|
|
1146
1166
|
}, r.startTransition = function(e) {
|
|
1147
|
-
var n =
|
|
1148
|
-
|
|
1167
|
+
var n = p.T, o = {};
|
|
1168
|
+
o._updatedFibers = /* @__PURE__ */ new Set(), p.T = o;
|
|
1149
1169
|
try {
|
|
1150
|
-
var u = e(), i =
|
|
1151
|
-
i !== null && i(
|
|
1152
|
-
} catch (
|
|
1153
|
-
|
|
1170
|
+
var u = e(), i = p.S;
|
|
1171
|
+
i !== null && i(o, u), typeof u == "object" && u !== null && typeof u.then == "function" && (p.asyncTransitions++, u.then(se, se), u.then(C, Le));
|
|
1172
|
+
} catch (h) {
|
|
1173
|
+
Le(h);
|
|
1154
1174
|
} finally {
|
|
1155
|
-
n === null &&
|
|
1175
|
+
n === null && o._updatedFibers && (e = o._updatedFibers.size, o._updatedFibers.clear(), 10 < e && console.warn(
|
|
1156
1176
|
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1157
|
-
)),
|
|
1177
|
+
)), n !== null && o.types !== null && (n.types !== null && n.types !== o.types && console.error(
|
|
1178
|
+
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
1179
|
+
), n.types = o.types), p.T = n;
|
|
1158
1180
|
}
|
|
1159
1181
|
}, r.unstable_useCacheRefresh = function() {
|
|
1160
|
-
return
|
|
1182
|
+
return R().useCacheRefresh();
|
|
1161
1183
|
}, r.use = function(e) {
|
|
1162
|
-
return
|
|
1163
|
-
}, r.useActionState = function(e, n,
|
|
1164
|
-
return
|
|
1184
|
+
return R().use(e);
|
|
1185
|
+
}, r.useActionState = function(e, n, o) {
|
|
1186
|
+
return R().useActionState(
|
|
1165
1187
|
e,
|
|
1166
1188
|
n,
|
|
1167
|
-
|
|
1189
|
+
o
|
|
1168
1190
|
);
|
|
1169
1191
|
}, r.useCallback = function(e, n) {
|
|
1170
|
-
return
|
|
1192
|
+
return R().useCallback(e, n);
|
|
1171
1193
|
}, r.useContext = function(e) {
|
|
1172
|
-
var n =
|
|
1194
|
+
var n = R();
|
|
1173
1195
|
return e.$$typeof === a && console.error(
|
|
1174
1196
|
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1175
1197
|
), n.useContext(e);
|
|
1176
1198
|
}, r.useDebugValue = function(e, n) {
|
|
1177
|
-
return
|
|
1199
|
+
return R().useDebugValue(e, n);
|
|
1178
1200
|
}, r.useDeferredValue = function(e, n) {
|
|
1179
|
-
return
|
|
1180
|
-
}, r.useEffect = function(e, n
|
|
1181
|
-
e == null && console.warn(
|
|
1201
|
+
return R().useDeferredValue(e, n);
|
|
1202
|
+
}, r.useEffect = function(e, n) {
|
|
1203
|
+
return e == null && console.warn(
|
|
1182
1204
|
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1183
|
-
);
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
throw Error(
|
|
1187
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
1188
|
-
);
|
|
1189
|
-
return u.useEffect(e, n);
|
|
1205
|
+
), R().useEffect(e, n);
|
|
1206
|
+
}, r.useEffectEvent = function(e) {
|
|
1207
|
+
return R().useEffectEvent(e);
|
|
1190
1208
|
}, r.useId = function() {
|
|
1191
|
-
return
|
|
1192
|
-
}, r.useImperativeHandle = function(e, n,
|
|
1193
|
-
return
|
|
1209
|
+
return R().useId();
|
|
1210
|
+
}, r.useImperativeHandle = function(e, n, o) {
|
|
1211
|
+
return R().useImperativeHandle(e, n, o);
|
|
1194
1212
|
}, r.useInsertionEffect = function(e, n) {
|
|
1195
1213
|
return e == null && console.warn(
|
|
1196
1214
|
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1197
|
-
),
|
|
1215
|
+
), R().useInsertionEffect(e, n);
|
|
1198
1216
|
}, r.useLayoutEffect = function(e, n) {
|
|
1199
1217
|
return e == null && console.warn(
|
|
1200
1218
|
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1201
|
-
),
|
|
1219
|
+
), R().useLayoutEffect(e, n);
|
|
1202
1220
|
}, r.useMemo = function(e, n) {
|
|
1203
|
-
return
|
|
1221
|
+
return R().useMemo(e, n);
|
|
1204
1222
|
}, r.useOptimistic = function(e, n) {
|
|
1205
|
-
return
|
|
1206
|
-
}, r.useReducer = function(e, n,
|
|
1207
|
-
return
|
|
1223
|
+
return R().useOptimistic(e, n);
|
|
1224
|
+
}, r.useReducer = function(e, n, o) {
|
|
1225
|
+
return R().useReducer(e, n, o);
|
|
1208
1226
|
}, r.useRef = function(e) {
|
|
1209
|
-
return
|
|
1227
|
+
return R().useRef(e);
|
|
1210
1228
|
}, r.useState = function(e) {
|
|
1211
|
-
return
|
|
1212
|
-
}, r.useSyncExternalStore = function(e, n,
|
|
1213
|
-
return
|
|
1229
|
+
return R().useState(e);
|
|
1230
|
+
}, r.useSyncExternalStore = function(e, n, o) {
|
|
1231
|
+
return R().useSyncExternalStore(
|
|
1214
1232
|
e,
|
|
1215
1233
|
n,
|
|
1216
|
-
|
|
1234
|
+
o
|
|
1217
1235
|
);
|
|
1218
1236
|
}, r.useTransition = function() {
|
|
1219
|
-
return
|
|
1220
|
-
}, r.version = "19.
|
|
1237
|
+
return R().useTransition();
|
|
1238
|
+
}, r.version = "19.2.3", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1221
1239
|
})();
|
|
1222
|
-
})(
|
|
1240
|
+
})(ae, ae.exports)), ae.exports;
|
|
1223
1241
|
}
|
|
1224
|
-
var
|
|
1225
|
-
function
|
|
1226
|
-
return
|
|
1242
|
+
var Ue;
|
|
1243
|
+
function Ze() {
|
|
1244
|
+
return Ue || (Ue = 1, process.env.NODE_ENV === "production" ? me.exports = Qe() : me.exports = Xe()), me.exports;
|
|
1227
1245
|
}
|
|
1228
|
-
|
|
1229
|
-
const
|
|
1246
|
+
Ze();
|
|
1247
|
+
const k = class k {
|
|
1230
1248
|
constructor(r) {
|
|
1231
1249
|
H(this, "socket", null);
|
|
1232
1250
|
H(this, "config");
|
|
1233
|
-
H(this, "status",
|
|
1251
|
+
H(this, "status", j.DISCONNECTED);
|
|
1234
1252
|
H(this, "reconnectAttempts", 0);
|
|
1235
1253
|
H(this, "reconnectTimer", null);
|
|
1236
1254
|
H(this, "heartbeatTimer", null);
|
|
@@ -1247,17 +1265,17 @@ const S = class S {
|
|
|
1247
1265
|
* 获取单例实例
|
|
1248
1266
|
*/
|
|
1249
1267
|
static getInstance(r) {
|
|
1250
|
-
if (
|
|
1251
|
-
r && (JSON.stringify(
|
|
1252
|
-
...
|
|
1268
|
+
if (k.instance)
|
|
1269
|
+
r && (JSON.stringify(k.instance.config) !== JSON.stringify(r) && (k.instance = new k(r)), r && (k.instance.config = {
|
|
1270
|
+
...k.instance.config,
|
|
1253
1271
|
...r
|
|
1254
1272
|
}));
|
|
1255
1273
|
else {
|
|
1256
1274
|
if (!r)
|
|
1257
1275
|
throw new Error("首次创建SocketConnection实例时必须提供配置");
|
|
1258
|
-
|
|
1276
|
+
k.instance = new k(r);
|
|
1259
1277
|
}
|
|
1260
|
-
return
|
|
1278
|
+
return k.instance;
|
|
1261
1279
|
}
|
|
1262
1280
|
/**
|
|
1263
1281
|
* 连接WebSocket
|
|
@@ -1266,25 +1284,25 @@ const S = class S {
|
|
|
1266
1284
|
return this.config = {
|
|
1267
1285
|
...this.config,
|
|
1268
1286
|
...r
|
|
1269
|
-
}, new Promise((
|
|
1270
|
-
var
|
|
1271
|
-
if (((
|
|
1272
|
-
|
|
1287
|
+
}, new Promise((y, w) => {
|
|
1288
|
+
var A, z;
|
|
1289
|
+
if (((A = this.socket) == null ? void 0 : A.readyState) === WebSocket.OPEN) {
|
|
1290
|
+
y();
|
|
1273
1291
|
return;
|
|
1274
1292
|
}
|
|
1275
|
-
const M = this.config.url + ((
|
|
1293
|
+
const M = this.config.url + ((z = this.config) != null && z.params ? `?${Object.entries(this.config.params).map(([O, C]) => `${O}=${C}`).join("&")}` : "");
|
|
1276
1294
|
if (M) {
|
|
1277
|
-
this.setStatus(
|
|
1295
|
+
this.setStatus(j.CONNECTING), this.log("正在连接WebSocket...", M);
|
|
1278
1296
|
try {
|
|
1279
1297
|
this.socket = new WebSocket(M, this.config.protocols), this.setupEventListeners(), this.socket.onopen = () => {
|
|
1280
|
-
var O,
|
|
1281
|
-
this.log("WebSocket连接成功"), this.setStatus(
|
|
1298
|
+
var O, C;
|
|
1299
|
+
this.log("WebSocket连接成功"), this.setStatus(j.CONNECTED), this.reconnectAttempts = 0, this.startHeartbeat(), (C = (O = this.eventListeners).open) == null || C.call(O), y();
|
|
1282
1300
|
}, this.socket.onerror = (O) => {
|
|
1283
|
-
var
|
|
1284
|
-
this.log("WebSocket连接错误:", O), this.setStatus(
|
|
1301
|
+
var C, G;
|
|
1302
|
+
this.log("WebSocket连接错误:", O), this.setStatus(j.ERROR), (G = (C = this.eventListeners).error) == null || G.call(C, O), w(O);
|
|
1285
1303
|
};
|
|
1286
1304
|
} catch (O) {
|
|
1287
|
-
this.log("创建WebSocket连接失败:", O), this.setStatus(
|
|
1305
|
+
this.log("创建WebSocket连接失败:", O), this.setStatus(j.ERROR), w(O);
|
|
1288
1306
|
}
|
|
1289
1307
|
}
|
|
1290
1308
|
});
|
|
@@ -1293,14 +1311,14 @@ const S = class S {
|
|
|
1293
1311
|
* 断开连接
|
|
1294
1312
|
*/
|
|
1295
1313
|
disconnect() {
|
|
1296
|
-
this.log("正在断开WebSocket连接..."), this.stopHeartbeat(), this.clearReconnectTimer(), this.socket && (this.socket.close(1e3, "主动断开连接"), this.socket = null), this.setStatus(
|
|
1314
|
+
this.log("正在断开WebSocket连接..."), this.stopHeartbeat(), this.clearReconnectTimer(), this.socket && (this.socket.close(1e3, "主动断开连接"), this.socket = null), this.setStatus(j.DISCONNECTED);
|
|
1297
1315
|
}
|
|
1298
1316
|
/**
|
|
1299
1317
|
* 发送消息
|
|
1300
1318
|
*/
|
|
1301
1319
|
send(r) {
|
|
1302
|
-
var
|
|
1303
|
-
return ((
|
|
1320
|
+
var y;
|
|
1321
|
+
return ((y = this.socket) == null ? void 0 : y.readyState) === WebSocket.OPEN ? (this.socket.send(r), this.log("发送消息:", r), !0) : (this.log("WebSocket未连接,无法发送消息"), !1);
|
|
1304
1322
|
}
|
|
1305
1323
|
/**
|
|
1306
1324
|
* 发送JSON消息
|
|
@@ -1311,8 +1329,8 @@ const S = class S {
|
|
|
1311
1329
|
/**
|
|
1312
1330
|
* 添加事件监听器
|
|
1313
1331
|
*/
|
|
1314
|
-
on(r,
|
|
1315
|
-
this.eventListeners[r] =
|
|
1332
|
+
on(r, y) {
|
|
1333
|
+
this.eventListeners[r] = y;
|
|
1316
1334
|
}
|
|
1317
1335
|
/**
|
|
1318
1336
|
* 移除事件监听器
|
|
@@ -1331,35 +1349,35 @@ const S = class S {
|
|
|
1331
1349
|
*/
|
|
1332
1350
|
isConnected() {
|
|
1333
1351
|
var r;
|
|
1334
|
-
return this.status ===
|
|
1352
|
+
return this.status === j.CONNECTED && ((r = this.socket) == null ? void 0 : r.readyState) === WebSocket.OPEN;
|
|
1335
1353
|
}
|
|
1336
1354
|
/**
|
|
1337
1355
|
* 设置事件监听器
|
|
1338
1356
|
*/
|
|
1339
1357
|
setupEventListeners() {
|
|
1340
1358
|
this.socket && (this.socket.onmessage = (r) => {
|
|
1341
|
-
var
|
|
1342
|
-
this.log("收到消息:", r.data), r.data !== "pong" && ((
|
|
1359
|
+
var y, w;
|
|
1360
|
+
this.log("收到消息:", r.data), r.data !== "pong" && ((w = (y = this.eventListeners).message) == null || w.call(y, r.data));
|
|
1343
1361
|
}, this.socket.onclose = (r) => {
|
|
1344
|
-
var
|
|
1345
|
-
this.log("WebSocket连接关闭:", r.code, r.reason), this.setStatus(
|
|
1362
|
+
var y, w;
|
|
1363
|
+
this.log("WebSocket连接关闭:", r.code, r.reason), this.setStatus(j.DISCONNECTED), this.stopHeartbeat(), (w = (y = this.eventListeners).close) == null || w.call(y, r), r.code !== 1e3 && this.reconnectAttempts < (this.config.maxReconnectAttempts || 5) && this.scheduleReconnect();
|
|
1346
1364
|
}, this.socket.onerror = (r) => {
|
|
1347
|
-
var
|
|
1348
|
-
this.log("WebSocket错误:", r), this.setStatus(
|
|
1365
|
+
var y, w;
|
|
1366
|
+
this.log("WebSocket错误:", r), this.setStatus(j.ERROR), (w = (y = this.eventListeners).error) == null || w.call(y, r);
|
|
1349
1367
|
});
|
|
1350
1368
|
}
|
|
1351
1369
|
/**
|
|
1352
1370
|
* 设置连接状态
|
|
1353
1371
|
*/
|
|
1354
1372
|
setStatus(r) {
|
|
1355
|
-
var
|
|
1356
|
-
this.status !== r && (this.status = r, this.log("连接状态变更:", r), (
|
|
1373
|
+
var y, w;
|
|
1374
|
+
this.status !== r && (this.status = r, this.log("连接状态变更:", r), (w = (y = this.eventListeners).statusChange) == null || w.call(y, r));
|
|
1357
1375
|
}
|
|
1358
1376
|
/**
|
|
1359
1377
|
* 安排重连
|
|
1360
1378
|
*/
|
|
1361
1379
|
scheduleReconnect() {
|
|
1362
|
-
this.reconnectTimer || (this.reconnectAttempts++, this.setStatus(
|
|
1380
|
+
this.reconnectTimer || (this.reconnectAttempts++, this.setStatus(j.RECONNECTING), this.log(`准备重连 (第${this.reconnectAttempts}次)...`), this.reconnectTimer = setTimeout(() => {
|
|
1363
1381
|
this.reconnectTimer = null, this.connect().catch(() => {
|
|
1364
1382
|
});
|
|
1365
1383
|
}, this.config.reconnectInterval || 3e3));
|
|
@@ -1394,26 +1412,26 @@ const S = class S {
|
|
|
1394
1412
|
* 销毁实例
|
|
1395
1413
|
*/
|
|
1396
1414
|
destroy() {
|
|
1397
|
-
this.disconnect(), this.eventListeners = {},
|
|
1415
|
+
this.disconnect(), this.eventListeners = {}, k.instance = null;
|
|
1398
1416
|
}
|
|
1399
1417
|
};
|
|
1400
|
-
H(
|
|
1401
|
-
let
|
|
1402
|
-
self.onmessage = (
|
|
1403
|
-
const { type: r, data:
|
|
1418
|
+
H(k, "instance", null);
|
|
1419
|
+
let ve = k, S = null;
|
|
1420
|
+
self.onmessage = (T) => {
|
|
1421
|
+
const { type: r, data: y } = (T == null ? void 0 : T.data) || {};
|
|
1404
1422
|
switch (r) {
|
|
1405
1423
|
case "INIT":
|
|
1406
|
-
|
|
1424
|
+
S = ve.getInstance({ url: y == null ? void 0 : y.url, debug: (y == null ? void 0 : y.debug) ?? !0 }), S == null || S.connect(), S == null || S.on("open", () => {
|
|
1407
1425
|
self.postMessage({ type: "INIT_OK" });
|
|
1408
|
-
}),
|
|
1409
|
-
self.postMessage({ type: "RECEIVE_MESSAGE", data:
|
|
1426
|
+
}), S == null || S.on("message", (w) => {
|
|
1427
|
+
self.postMessage({ type: "RECEIVE_MESSAGE", data: w });
|
|
1410
1428
|
});
|
|
1411
1429
|
break;
|
|
1412
1430
|
case "SEND_MESSAGE":
|
|
1413
|
-
|
|
1431
|
+
S == null || S.send(JSON.stringify(y));
|
|
1414
1432
|
break;
|
|
1415
1433
|
case "CLOSE":
|
|
1416
|
-
|
|
1434
|
+
S == null || S.disconnect(), S = null;
|
|
1417
1435
|
break;
|
|
1418
1436
|
}
|
|
1419
1437
|
};
|