@ichaingo/web-worker 1.5.2 → 1.5.3

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