@obb871001/api-integration-sdk 1.0.115 → 1.0.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,38 +1,38 @@
1
- import Le, { createContext as ti, useContext as ni, useCallback as K, useMemo as ia, useEffect as De, useRef as Ea } from "react";
2
- import { useQuery as le, QueryClient as al, QueryClientProvider as il, useQueries as mi, useMutation as ri } from "@tanstack/react-query";
3
- import ll from "axios";
4
- import { find as na, isEmpty as O, isObject as Ve, flatMap as Ae, isArray as te, map as Ie, entries as tl, values as nl, keys as La, get as we, replace as Ga, includes as ml } from "lodash";
5
- import rl from "react-dom";
6
- function ol(e) {
1
+ import Le, { createContext as ni, useContext as mi, useCallback as A, useMemo as ia, useEffect as De, useRef as La } from "react";
2
+ import { useQuery as te, QueryClient as at, QueryClientProvider as it, useQueries as ri, useMutation as na } from "@tanstack/react-query";
3
+ import tt from "axios";
4
+ import { find as ma, isEmpty as O, isObject as Ve, flatMap as Ae, isArray as le, map as Ie, entries as lt, values as nt, keys as Ga, get as we, replace as Ma, includes as mt } from "lodash";
5
+ import rt from "react-dom";
6
+ function ot(e) {
7
7
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
8
8
  }
9
9
  var Fe = { exports: {} }, he = {};
10
- var Ma;
11
- function sl() {
12
- if (Ma) return he;
13
- Ma = 1;
14
- var e = Le, i = Symbol.for("react.element"), m = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
15
- function f(_, u, g) {
16
- var s, l = {}, c = null, n = null;
17
- g !== void 0 && (c = "" + g), u.key !== void 0 && (c = "" + u.key), u.ref !== void 0 && (n = u.ref);
18
- for (s in u) t.call(u, s) && !p.hasOwnProperty(s) && (l[s] = u[s]);
19
- if (_ && _.defaultProps) for (s in u = _.defaultProps, u) l[s] === void 0 && (l[s] = u[s]);
20
- return { $$typeof: i, type: _, key: c, ref: n, props: l, _owner: r.current };
10
+ var Ra;
11
+ function st() {
12
+ if (Ra) return he;
13
+ Ra = 1;
14
+ var e = Le, i = Symbol.for("react.element"), m = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
15
+ function f(_, g, u) {
16
+ var s, t = {}, d = null, n = null;
17
+ u !== void 0 && (d = "" + u), g.key !== void 0 && (d = "" + g.key), g.ref !== void 0 && (n = g.ref);
18
+ for (s in g) l.call(g, s) && !p.hasOwnProperty(s) && (t[s] = g[s]);
19
+ if (_ && _.defaultProps) for (s in g = _.defaultProps, g) t[s] === void 0 && (t[s] = g[s]);
20
+ return { $$typeof: i, type: _, key: d, ref: n, props: t, _owner: r.current };
21
21
  }
22
22
  return he.Fragment = m, he.jsx = f, he.jsxs = f, he;
23
23
  }
24
24
  var ke = {};
25
- var Ra;
26
- function ul() {
27
- return Ra || (Ra = 1, process.env.NODE_ENV !== "production" && (function() {
28
- var e = Le, i = Symbol.for("react.element"), m = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), _ = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), n = Symbol.for("react.offscreen"), o = Symbol.iterator, y = "@@iterator";
25
+ var Pa;
26
+ function ut() {
27
+ return Pa || (Pa = 1, process.env.NODE_ENV !== "production" && (function() {
28
+ var e = Le, i = Symbol.for("react.element"), m = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), _ = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), t = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), n = Symbol.for("react.offscreen"), o = Symbol.iterator, y = "@@iterator";
29
29
  function b(a) {
30
30
  if (a === null || typeof a != "object")
31
31
  return null;
32
32
  var U = o && a[o] || a[y];
33
33
  return typeof U == "function" ? U : null;
34
34
  }
35
- var d = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
35
+ var c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
36
36
  function T(a) {
37
37
  {
38
38
  for (var U = arguments.length, C = new Array(U > 1 ? U - 1 : 0), h = 1; h < U; h++)
@@ -42,7 +42,7 @@ function ul() {
42
42
  }
43
43
  function S(a, U, C) {
44
44
  {
45
- var h = d.ReactDebugCurrentFrame, G = h.getStackAddendum();
45
+ var h = c.ReactDebugCurrentFrame, G = h.getStackAddendum();
46
46
  G !== "" && (U += "%s", C = C.concat([G]));
47
47
  var M = C.map(function(N) {
48
48
  return String(N);
@@ -50,10 +50,10 @@ function ul() {
50
50
  M.unshift("Warning: " + U), Function.prototype.apply.call(console[a], console, M);
51
51
  }
52
52
  }
53
- var E = !1, v = !1, D = !1, L = !1, A = !1, Q;
53
+ var E = !1, v = !1, D = !1, L = !1, I = !1, Q;
54
54
  Q = Symbol.for("react.module.reference");
55
55
  function Te(a) {
56
- return !!(typeof a == "string" || typeof a == "function" || a === t || a === p || A || a === r || a === g || a === s || L || a === n || E || v || D || typeof a == "object" && a !== null && (a.$$typeof === c || a.$$typeof === l || a.$$typeof === f || a.$$typeof === _ || a.$$typeof === u || // This needs to include all possible module reference object
56
+ return !!(typeof a == "string" || typeof a == "function" || a === l || a === p || I || a === r || a === u || a === s || L || a === n || E || v || D || typeof a == "object" && a !== null && (a.$$typeof === d || a.$$typeof === t || a.$$typeof === f || a.$$typeof === _ || a.$$typeof === g || // This needs to include all possible module reference object
57
57
  // types supported by any Flight configuration anywhere since
58
58
  // we don't know which Flight build this will end up being used
59
59
  // with.
@@ -66,7 +66,7 @@ function ul() {
66
66
  var G = U.displayName || U.name || "";
67
67
  return G !== "" ? C + "(" + G + ")" : C;
68
68
  }
69
- function I(a) {
69
+ function B(a) {
70
70
  return a.displayName || "Context";
71
71
  }
72
72
  function w(a) {
@@ -77,7 +77,7 @@ function ul() {
77
77
  if (typeof a == "string")
78
78
  return a;
79
79
  switch (a) {
80
- case t:
80
+ case l:
81
81
  return "Fragment";
82
82
  case m:
83
83
  return "Portal";
@@ -85,7 +85,7 @@ function ul() {
85
85
  return "Profiler";
86
86
  case r:
87
87
  return "StrictMode";
88
- case g:
88
+ case u:
89
89
  return "Suspense";
90
90
  case s:
91
91
  return "SuspenseList";
@@ -94,16 +94,16 @@ function ul() {
94
94
  switch (a.$$typeof) {
95
95
  case _:
96
96
  var U = a;
97
- return I(U) + ".Consumer";
97
+ return B(U) + ".Consumer";
98
98
  case f:
99
99
  var C = a;
100
- return I(C._context) + ".Provider";
101
- case u:
100
+ return B(C._context) + ".Provider";
101
+ case g:
102
102
  return Ge(a, a.render, "ForwardRef");
103
- case l:
103
+ case t:
104
104
  var h = a.displayName || null;
105
105
  return h !== null ? h : w(a.type) || "Memo";
106
- case c: {
106
+ case d: {
107
107
  var G = a, M = G._payload, N = G._init;
108
108
  try {
109
109
  return w(N(M));
@@ -176,8 +176,8 @@ function ul() {
176
176
  me < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
177
177
  }
178
178
  }
179
- var de = d.ReactCurrentDispatcher, X;
180
- function ce(a, U, C) {
179
+ var ce = c.ReactCurrentDispatcher, X;
180
+ function _e(a, U, C) {
181
181
  {
182
182
  if (X === void 0)
183
183
  try {
@@ -195,7 +195,7 @@ function ul() {
195
195
  var Gi = typeof WeakMap == "function" ? WeakMap : Map;
196
196
  xe = new Gi();
197
197
  }
198
- function da(a, U) {
198
+ function ca(a, U) {
199
199
  if (!a || oe)
200
200
  return "";
201
201
  {
@@ -208,7 +208,7 @@ function ul() {
208
208
  var G = Error.prepareStackTrace;
209
209
  Error.prepareStackTrace = void 0;
210
210
  var M;
211
- M = de.current, de.current = null, ie();
211
+ M = ce.current, ce.current = null, ie();
212
212
  try {
213
213
  if (U) {
214
214
  var N = function() {
@@ -261,13 +261,13 @@ function ul() {
261
261
  }
262
262
  }
263
263
  } finally {
264
- oe = !1, de.current = M, Pe(), Error.prepareStackTrace = G;
264
+ oe = !1, ce.current = M, Pe(), Error.prepareStackTrace = G;
265
265
  }
266
- var fe = a ? a.displayName || a.name : "", se = fe ? ce(fe) : "";
266
+ var Ue = a ? a.displayName || a.name : "", se = Ue ? _e(Ue) : "";
267
267
  return typeof a == "function" && xe.set(a, se), se;
268
268
  }
269
269
  function Mi(a, U, C) {
270
- return da(a, !1);
270
+ return ca(a, !1);
271
271
  }
272
272
  function Ri(a) {
273
273
  var U = a.prototype;
@@ -277,22 +277,22 @@ function ul() {
277
277
  if (a == null)
278
278
  return "";
279
279
  if (typeof a == "function")
280
- return da(a, Ri(a));
280
+ return ca(a, Ri(a));
281
281
  if (typeof a == "string")
282
- return ce(a);
282
+ return _e(a);
283
283
  switch (a) {
284
- case g:
285
- return ce("Suspense");
284
+ case u:
285
+ return _e("Suspense");
286
286
  case s:
287
- return ce("SuspenseList");
287
+ return _e("SuspenseList");
288
288
  }
289
289
  if (typeof a == "object")
290
290
  switch (a.$$typeof) {
291
- case u:
291
+ case g:
292
292
  return Mi(a.render);
293
- case l:
293
+ case t:
294
294
  return Oe(a.type, U, C);
295
- case c: {
295
+ case d: {
296
296
  var h = a, G = h._payload, M = h._init;
297
297
  try {
298
298
  return Oe(M(G), U, C);
@@ -302,13 +302,13 @@ function ul() {
302
302
  }
303
303
  return "";
304
304
  }
305
- var ve = Object.prototype.hasOwnProperty, ca = {}, _a = d.ReactDebugCurrentFrame;
305
+ var ve = Object.prototype.hasOwnProperty, _a = {}, fa = c.ReactDebugCurrentFrame;
306
306
  function He(a) {
307
307
  if (a) {
308
308
  var U = a._owner, C = Oe(a.type, a._source, U ? U.type : null);
309
- _a.setExtraStackFrame(C);
309
+ fa.setExtraStackFrame(C);
310
310
  } else
311
- _a.setExtraStackFrame(null);
311
+ fa.setExtraStackFrame(null);
312
312
  }
313
313
  function Pi(a, U, C, h, G) {
314
314
  {
@@ -325,7 +325,7 @@ function ul() {
325
325
  } catch (R) {
326
326
  k = R;
327
327
  }
328
- k && !(k instanceof Error) && (He(G), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", h || "React class", C, N, typeof k), He(null)), k instanceof Error && !(k.message in ca) && (ca[k.message] = !0, He(G), T("Failed %s type: %s", C, k.message), He(null));
328
+ k && !(k instanceof Error) && (He(G), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", h || "React class", C, N, typeof k), He(null)), k instanceof Error && !(k.message in _a) && (_a[k.message] = !0, He(G), T("Failed %s type: %s", C, k.message), He(null));
329
329
  }
330
330
  }
331
331
  }
@@ -341,24 +341,24 @@ function ul() {
341
341
  }
342
342
  function Hi(a) {
343
343
  try {
344
- return fa(a), !1;
344
+ return Ua(a), !1;
345
345
  } catch {
346
346
  return !0;
347
347
  }
348
348
  }
349
- function fa(a) {
349
+ function Ua(a) {
350
350
  return "" + a;
351
351
  }
352
- function Ua(a) {
352
+ function ya(a) {
353
353
  if (Hi(a))
354
- return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Oi(a)), fa(a);
354
+ return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Oi(a)), Ua(a);
355
355
  }
356
- var ya = d.ReactCurrentOwner, wi = {
356
+ var ba = c.ReactCurrentOwner, wi = {
357
357
  key: !0,
358
358
  ref: !0,
359
359
  __self: !0,
360
360
  __source: !0
361
- }, ba, Ta;
361
+ }, Ta, Ca;
362
362
  function Fi(a) {
363
363
  if (ve.call(a, "ref")) {
364
364
  var U = Object.getOwnPropertyDescriptor(a, "ref").get;
@@ -376,12 +376,12 @@ function ul() {
376
376
  return a.key !== void 0;
377
377
  }
378
378
  function Ji(a, U) {
379
- typeof a.ref == "string" && ya.current;
379
+ typeof a.ref == "string" && ba.current;
380
380
  }
381
381
  function zi(a, U) {
382
382
  {
383
383
  var C = function() {
384
- ba || (ba = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", U));
384
+ Ta || (Ta = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", U));
385
385
  };
386
386
  C.isReactWarning = !0, Object.defineProperty(a, "key", {
387
387
  get: C,
@@ -392,7 +392,7 @@ function ul() {
392
392
  function Zi(a, U) {
393
393
  {
394
394
  var C = function() {
395
- Ta || (Ta = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", U));
395
+ Ca || (Ca = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", U));
396
396
  };
397
397
  C.isReactWarning = !0, Object.defineProperty(a, "ref", {
398
398
  get: C,
@@ -432,7 +432,7 @@ function ul() {
432
432
  function Ai(a, U, C, h, G) {
433
433
  {
434
434
  var M, N = {}, k = null, W = null;
435
- C !== void 0 && (Ua(C), k = "" + C), Wi(U) && (Ua(U.key), k = "" + U.key), Fi(U) && (W = U.ref, Ji(U, G));
435
+ C !== void 0 && (ya(C), k = "" + C), Wi(U) && (ya(U.key), k = "" + U.key), Fi(U) && (W = U.ref, Ji(U, G));
436
436
  for (M in U)
437
437
  ve.call(U, M) && !wi.hasOwnProperty(M) && (N[M] = U[M]);
438
438
  if (a && a.defaultProps) {
@@ -444,23 +444,23 @@ function ul() {
444
444
  var P = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
445
445
  k && zi(N, P), W && Zi(N, P);
446
446
  }
447
- return Vi(a, k, W, G, h, ya.current, N);
447
+ return Vi(a, k, W, G, h, ba.current, N);
448
448
  }
449
449
  }
450
- var Ke = d.ReactCurrentOwner, Ca = d.ReactDebugCurrentFrame;
451
- function _e(a) {
450
+ var Ke = c.ReactCurrentOwner, va = c.ReactDebugCurrentFrame;
451
+ function fe(a) {
452
452
  if (a) {
453
453
  var U = a._owner, C = Oe(a.type, a._source, U ? U.type : null);
454
- Ca.setExtraStackFrame(C);
454
+ va.setExtraStackFrame(C);
455
455
  } else
456
- Ca.setExtraStackFrame(null);
456
+ va.setExtraStackFrame(null);
457
457
  }
458
458
  var je;
459
459
  je = !1;
460
460
  function Qe(a) {
461
461
  return typeof a == "object" && a !== null && a.$$typeof === i;
462
462
  }
463
- function va() {
463
+ function ha() {
464
464
  {
465
465
  if (Ke.current) {
466
466
  var a = w(Ke.current.type);
@@ -475,10 +475,10 @@ Check the render method of \`` + a + "`.";
475
475
  function Ii(a) {
476
476
  return "";
477
477
  }
478
- var ha = {};
478
+ var ka = {};
479
479
  function Bi(a) {
480
480
  {
481
- var U = va();
481
+ var U = ha();
482
482
  if (!U) {
483
483
  var C = typeof a == "string" ? a : a.displayName || a.name;
484
484
  C && (U = `
@@ -488,27 +488,27 @@ Check the top-level render call using <` + C + ">.");
488
488
  return U;
489
489
  }
490
490
  }
491
- function ka(a, U) {
491
+ function Sa(a, U) {
492
492
  {
493
493
  if (!a._store || a._store.validated || a.key != null)
494
494
  return;
495
495
  a._store.validated = !0;
496
496
  var C = Bi(U);
497
- if (ha[C])
497
+ if (ka[C])
498
498
  return;
499
- ha[C] = !0;
499
+ ka[C] = !0;
500
500
  var h = "";
501
- a && a._owner && a._owner !== Ke.current && (h = " It was passed a child from " + w(a._owner.type) + "."), _e(a), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, h), _e(null);
501
+ a && a._owner && a._owner !== Ke.current && (h = " It was passed a child from " + w(a._owner.type) + "."), fe(a), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, h), fe(null);
502
502
  }
503
503
  }
504
- function Sa(a, U) {
504
+ function Na(a, U) {
505
505
  {
506
506
  if (typeof a != "object")
507
507
  return;
508
508
  if (Be(a))
509
509
  for (var C = 0; C < a.length; C++) {
510
510
  var h = a[C];
511
- Qe(h) && ka(h, U);
511
+ Qe(h) && Sa(h, U);
512
512
  }
513
513
  else if (Qe(a))
514
514
  a._store && (a._store.validated = !0);
@@ -516,7 +516,7 @@ Check the top-level render call using <` + C + ">.");
516
516
  var G = b(a);
517
517
  if (typeof G == "function" && G !== a.entries)
518
518
  for (var M = G.call(a), N; !(N = M.next()).done; )
519
- Qe(N.value) && ka(N.value, U);
519
+ Qe(N.value) && Sa(N.value, U);
520
520
  }
521
521
  }
522
522
  }
@@ -528,9 +528,9 @@ Check the top-level render call using <` + C + ">.");
528
528
  var C;
529
529
  if (typeof U == "function")
530
530
  C = U.propTypes;
531
- else if (typeof U == "object" && (U.$$typeof === u || // Note: Memo only checks outer props here.
531
+ else if (typeof U == "object" && (U.$$typeof === g || // Note: Memo only checks outer props here.
532
532
  // Inner props are checked in the reconciler.
533
- U.$$typeof === l))
533
+ U.$$typeof === t))
534
534
  C = U.propTypes;
535
535
  else
536
536
  return;
@@ -550,22 +550,22 @@ Check the top-level render call using <` + C + ">.");
550
550
  for (var U = Object.keys(a.props), C = 0; C < U.length; C++) {
551
551
  var h = U[C];
552
552
  if (h !== "children" && h !== "key") {
553
- _e(a), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), _e(null);
553
+ fe(a), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), fe(null);
554
554
  break;
555
555
  }
556
556
  }
557
- a.ref !== null && (_e(a), T("Invalid attribute `ref` supplied to `React.Fragment`."), _e(null));
557
+ a.ref !== null && (fe(a), T("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
558
558
  }
559
559
  }
560
- var Na = {};
561
- function Da(a, U, C, h, G, M) {
560
+ var Da = {};
561
+ function Ea(a, U, C, h, G, M) {
562
562
  {
563
563
  var N = Te(a);
564
564
  if (!N) {
565
565
  var k = "";
566
566
  (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
567
567
  var W = Ii();
568
- W ? k += W : k += va();
568
+ W ? k += W : k += ha();
569
569
  var R;
570
570
  a === null ? R = "null" : Be(a) ? R = "array" : a !== void 0 && a.$$typeof === i ? (R = "<" + (w(a.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : R = typeof a, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, k);
571
571
  }
@@ -577,216 +577,216 @@ Check the top-level render call using <` + C + ">.");
577
577
  if (Z !== void 0)
578
578
  if (h)
579
579
  if (Be(Z)) {
580
- for (var fe = 0; fe < Z.length; fe++)
581
- Sa(Z[fe], a);
580
+ for (var Ue = 0; Ue < Z.length; Ue++)
581
+ Na(Z[Ue], a);
582
582
  Object.freeze && Object.freeze(Z);
583
583
  } else
584
584
  T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
585
585
  else
586
- Sa(Z, a);
586
+ Na(Z, a);
587
587
  }
588
588
  if (ve.call(U, "key")) {
589
- var se = w(a), J = Object.keys(U).filter(function(el) {
590
- return el !== "key";
589
+ var se = w(a), J = Object.keys(U).filter(function(et) {
590
+ return et !== "key";
591
591
  }), qe = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
592
- if (!Na[se + qe]) {
592
+ if (!Da[se + qe]) {
593
593
  var $i = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
594
594
  T(`A props object containing a "key" prop is being spread into JSX:
595
595
  let props = %s;
596
596
  <%s {...props} />
597
597
  React keys must be passed directly to JSX without using spread:
598
598
  let props = %s;
599
- <%s key={someKey} {...props} />`, qe, se, $i, se), Na[se + qe] = !0;
599
+ <%s key={someKey} {...props} />`, qe, se, $i, se), Da[se + qe] = !0;
600
600
  }
601
601
  }
602
- return a === t ? ji(P) : Ki(P), P;
602
+ return a === l ? ji(P) : Ki(P), P;
603
603
  }
604
604
  }
605
605
  function Qi(a, U, C) {
606
- return Da(a, U, C, !0);
606
+ return Ea(a, U, C, !0);
607
607
  }
608
608
  function qi(a, U, C) {
609
- return Da(a, U, C, !1);
609
+ return Ea(a, U, C, !1);
610
610
  }
611
611
  var Yi = qi, Xi = Qi;
612
- ke.Fragment = t, ke.jsx = Yi, ke.jsxs = Xi;
612
+ ke.Fragment = l, ke.jsx = Yi, ke.jsxs = Xi;
613
613
  })()), ke;
614
614
  }
615
- var Pa;
616
- function pl() {
617
- return Pa || (Pa = 1, process.env.NODE_ENV === "production" ? Fe.exports = sl() : Fe.exports = ul()), Fe.exports;
615
+ var xa;
616
+ function pt() {
617
+ return xa || (xa = 1, process.env.NODE_ENV === "production" ? Fe.exports = st() : Fe.exports = ut()), Fe.exports;
618
618
  }
619
- var ze = pl();
620
- const oi = ti(null), ne = () => {
621
- const e = ni(oi);
619
+ var ze = pt();
620
+ const oi = ni(null), ne = () => {
621
+ const e = mi(oi);
622
622
  if (!e)
623
623
  throw new Error("useApiContext must be used within ApiProvider");
624
624
  return e;
625
625
  };
626
- function gl({
626
+ function gt({
627
627
  baseURL: e,
628
628
  getToken: i,
629
629
  timeoutMs: m = 15e3,
630
- lng: t = "tw",
630
+ lng: l = "tw",
631
631
  store: r,
632
632
  onError: p
633
633
  } = {}) {
634
- const f = ll.create({
634
+ const f = tt.create({
635
635
  baseURL: e,
636
636
  timeout: m,
637
637
  headers: { "Content-Type": "application/json" }
638
638
  });
639
639
  return f.interceptors.request.use(async (_) => {
640
640
  if (_.headers = _.headers || {}, i) {
641
- const g = await i();
642
- g && (_.headers.Authorization = `Bearer ${g}`);
641
+ const u = await i();
642
+ u && (_.headers.Authorization = `Bearer ${u}`);
643
643
  }
644
- const u = r?.getState()?.isWalletCurrency || r?.getState()?.currency?.currentCurrency || "TWD";
645
- return _.headers.Currency = u, _.headers["currency-code"] = u, _.headers.lang = t, _;
644
+ const g = r?.getState()?.isWalletCurrency || r?.getState()?.currency?.currentCurrency || "TWD";
645
+ return _.headers.Currency = g, _.headers["currency-code"] = g, _.headers.lang = l, _;
646
646
  }), f.interceptors.response.use(
647
647
  (_) => _.data,
648
648
  (_) => p ? p(_, { instance: f }) : Promise.reject(_)
649
649
  ), f;
650
650
  }
651
- const si = ti(null), ot = () => {
652
- const e = ni(si);
651
+ const si = ni(null), sl = () => {
652
+ const e = mi(si);
653
653
  if (!e)
654
654
  throw new Error(
655
655
  "useGameInfoContext must be used within a GameInfoCtx.Provider"
656
656
  );
657
657
  return e;
658
- }, st = () => {
659
- const e = (t, r) => !t && !r, i = (t) => t.startsWith("pc.");
658
+ }, ul = () => {
659
+ const e = (l, r) => !l && !r, i = (l) => l.startsWith("pc.");
660
660
  return {
661
661
  executeLogout: ({
662
- isCallBackInvalid: t = !1,
662
+ isCallBackInvalid: l = !1,
663
663
  hostname: r = "",
664
664
  shouldRedirect: p,
665
665
  onShowError: f,
666
666
  onCleanup: _,
667
- onRemoveToken: u,
668
- onRedirect: g,
667
+ onRemoveToken: g,
668
+ onRedirect: u,
669
669
  onGoogleLogout: s
670
670
  }) => {
671
- const l = i(r);
672
- e(t, l) && f?.(), _?.(), u?.(), p && g?.("/"), s?.();
671
+ const t = i(r);
672
+ e(l, t) && f?.(), _?.(), g?.(), p && u?.("/"), s?.();
673
673
  },
674
674
  shouldShowErrorNotice: e,
675
675
  isMachineDomain: i
676
676
  };
677
- }, ui = (e = [], i) => na(e, { gameTypeName: i })?.gameTypeUid, pi = (e = [], i) => na(e, { platform: i })?.platformUid, gi = (e = [], i) => na(e, { SubPlatformEnum: i }), di = (e = [], i, m) => O(e) ? [] : e.filter((t) => m ? String(t?.SubPlatformEnumUid) === String(m?.SubPlatformEnumUid) : String(t.platformUid) === String(i)), dl = (e = []) => O(e) ? {} : e.reduce((i, m) => {
678
- const t = m?.game_subtype || "UNKNOWN";
679
- return i[t] || (i[t] = []), i[t].push(m), i;
680
- }, {}), cl = ({
677
+ }, ui = (e = [], i) => ma(e, { gameTypeName: i })?.gameTypeUid, pi = (e = [], i) => ma(e, { platform: i })?.platformUid, gi = (e = [], i) => ma(e, { SubPlatformEnum: i }), di = (e = [], i, m) => O(e) ? [] : e.filter((l) => m ? String(l?.SubPlatformEnumUid) === String(m?.SubPlatformEnumUid) : String(l.platformUid) === String(i)), dt = (e = []) => O(e) ? {} : e.reduce((i, m) => {
678
+ const l = m?.game_subtype || "UNKNOWN";
679
+ return i[l] || (i[l] = []), i[l].push(m), i;
680
+ }, {}), ct = ({
681
681
  gameTypeName: e,
682
682
  platforms: i,
683
683
  gameList: m,
684
- allGameTypes: t,
684
+ allGameTypes: l,
685
685
  allPlatforms: r
686
686
  }) => {
687
- const p = ui(t, e);
687
+ const p = ui(l, e);
688
688
  return p ? i.reduce((f, _) => {
689
- const u = pi(r, _), g = gi(r, _), s = m[p] || [], l = di(
689
+ const g = pi(r, _), u = gi(r, _), s = m[p] || [], t = di(
690
690
  s,
691
- u,
692
- g
691
+ g,
692
+ u
693
693
  );
694
- return O(l) || (f[_] = l), f;
694
+ return O(t) || (f[_] = t), f;
695
695
  }, {}) : {};
696
- }, _l = ({
696
+ }, _t = ({
697
697
  platformName: e,
698
698
  gamesOfType: i = [],
699
699
  allPlatforms: m = []
700
700
  }) => {
701
- const t = pi(m, e), r = gi(m, e), p = di(
701
+ const l = pi(m, e), r = gi(m, e), p = di(
702
702
  i,
703
- t,
703
+ l,
704
704
  r
705
705
  );
706
- return dl(p);
707
- }, fl = (e = {}) => !Ve(e) || O(e) ? [] : Ae(e), xa = (e = []) => !te(e) || O(e) ? [] : Ie(e, "platform"), Ul = (e = []) => !te(e) || O(e) ? [] : Ie(e, "gameTypeName"), yl = (e = []) => !te(e) || O(e) ? [] : Ie(e, "game_subtype"), bl = (e = {}) => !Ve(e) || O(e) ? [] : Ae(e), Tl = (e = [], i = []) => !te(e) || O(e) ? {} : !te(i) || O(i) ? {} : e.reduce((m, t) => {
706
+ return dt(p);
707
+ }, ft = (e = {}) => !Ve(e) || O(e) ? [] : Ae(e), Oa = (e = []) => !le(e) || O(e) ? [] : Ie(e, "platform"), Ut = (e = []) => !le(e) || O(e) ? [] : Ie(e, "gameTypeName"), yt = (e = []) => !le(e) || O(e) ? [] : Ie(e, "game_subtype"), bt = (e = {}) => !Ve(e) || O(e) ? [] : Ae(e), Tt = (e = [], i = []) => !le(e) || O(e) ? {} : !le(i) || O(i) ? {} : e.reduce((m, l) => {
708
708
  const r = i.map((p) => p.game_subtype);
709
709
  return r.forEach((p) => {
710
710
  m[p] = m[p] || [];
711
- }), r.includes(t.game_subtype) && m[t.game_subtype].push(t), m;
712
- }, {}), Cl = ({
711
+ }), r.includes(l.game_subtype) && m[l.game_subtype].push(l), m;
712
+ }, {}), Ct = ({
713
713
  gameTypes: e = [],
714
714
  platforms: i = [],
715
715
  gameList: m = {},
716
- allGameTypes: t = [],
716
+ allGameTypes: l = [],
717
717
  allPlatforms: r = []
718
- }) => !te(e) || !te(i) ? {} : O(m) ? {} : e.reduce((p, f) => {
719
- const _ = cl({
718
+ }) => !le(e) || !le(i) ? {} : O(m) ? {} : e.reduce((p, f) => {
719
+ const _ = ct({
720
720
  gameTypeName: f,
721
721
  platforms: i,
722
722
  gameList: m,
723
- allGameTypes: t,
723
+ allGameTypes: l,
724
724
  allPlatforms: r
725
725
  });
726
726
  return O(_) || (p[f] = _), p;
727
- }, {}), ut = ({
727
+ }, {}), pl = ({
728
728
  types: e = [],
729
729
  platforms: i = [],
730
730
  allGameType: m = [],
731
- allGamePlatform: t = [],
731
+ allGamePlatform: l = [],
732
732
  allGameList: r = {}
733
733
  } = {}) => !Array.isArray(e) || !Array.isArray(i) ? {} : e.reduce((p, f) => {
734
734
  const _ = ui(m, f);
735
735
  if (!_) return p;
736
- const u = r[_] || [], g = i.reduce((s, l) => {
737
- const c = _l({
738
- platformName: l,
739
- gamesOfType: u,
740
- allPlatforms: t
736
+ const g = r[_] || [], u = i.reduce((s, t) => {
737
+ const d = _t({
738
+ platformName: t,
739
+ gamesOfType: g,
740
+ allPlatforms: l
741
741
  });
742
- return O(c) ? s : { ...s, [l]: c };
742
+ return O(d) ? s : { ...s, [t]: d };
743
743
  }, {});
744
- return O(g) || (p[f] = g), p;
745
- }, {}), vl = (e = {}) => !Ve(e) || O(e) ? {} : Object.values(e).reduce((m, t) => (Object.entries(t).forEach(([r, p]) => {
744
+ return O(u) || (p[f] = u), p;
745
+ }, {}), vt = (e = {}) => !Ve(e) || O(e) ? {} : Object.values(e).reduce((m, l) => (Object.entries(l).forEach(([r, p]) => {
746
746
  m[r] ? m[r] = [...m[r], ...p] : m[r] = p;
747
- }), m), {}), hl = (e = {}) => {
747
+ }), m), {}), ht = (e = {}) => {
748
748
  if (!Ve(e) || O(e)) return {};
749
749
  const i = {};
750
- for (const [m, t] of Object.entries(e)) {
750
+ for (const [m, l] of Object.entries(e)) {
751
751
  i[m] = {};
752
- for (const r of t) {
752
+ for (const r of l) {
753
753
  const p = r.game_subtype;
754
754
  i[m][p] || (i[m][p] = []), i[m][p].push(r);
755
755
  }
756
756
  }
757
757
  return i;
758
- }, kl = ({
758
+ }, kt = ({
759
759
  allGameList: e = {},
760
760
  allGamePlatform: i = [],
761
761
  allGameType: m = [],
762
- allGame_subtype: t = [],
762
+ allGame_subtype: l = [],
763
763
  allNewGameList: r = [],
764
764
  allTopGameList: p = [],
765
765
  randomlySelectedGames: f = [],
766
766
  userFavoriteGame: _ = {},
767
- exclusiveBrandGames: u = [],
768
- highlightGames: g = [],
767
+ exclusiveBrandGames: g = [],
768
+ highlightGames: u = [],
769
769
  originPlatform: s = []
770
770
  }) => {
771
- const l = fl(e), c = xa(i), n = Ul(m), o = yl(t), y = xa(s), b = bl(_), d = Cl({
771
+ const t = ft(e), d = Oa(i), n = Ut(m), o = yt(l), y = Oa(s), b = bt(_), c = Ct({
772
772
  gameTypes: n,
773
- platforms: c,
773
+ platforms: d,
774
774
  gameList: e,
775
775
  allGameTypes: m,
776
776
  allPlatforms: i
777
- }), T = Tl(l, t), S = vl(d), E = hl(S), v = tl(d).reduce(
778
- (L, [A, Q]) => {
779
- const Te = Ae(nl(Q));
780
- return L[A] = Te, L;
777
+ }), T = Tt(t, l), S = vt(c), E = ht(S), v = lt(c).reduce(
778
+ (L, [I, Q]) => {
779
+ const Te = Ae(nt(Q));
780
+ return L[I] = Te, L;
781
781
  },
782
782
  {}
783
- ), D = La(d).reduce((L, A) => {
784
- const Q = La(d[A]);
785
- return L[A] = Q, L;
783
+ ), D = Ga(c).reduce((L, I) => {
784
+ const Q = Ga(c[I]);
785
+ return L[I] = Q, L;
786
786
  }, {});
787
787
  return {
788
788
  platform: {
789
- all: c,
789
+ all: d,
790
790
  origin: y,
791
791
  originPlatform: i,
792
792
  byGameType: D
@@ -795,29 +795,29 @@ const si = ti(null), ot = () => {
795
795
  main: n,
796
796
  sub: o,
797
797
  originMain: m,
798
- originSub: t
798
+ originSub: l
799
799
  },
800
800
  gameList: {
801
- all: l,
801
+ all: t,
802
802
  new: r,
803
803
  top: p,
804
804
  favorite: b,
805
- highlight: g,
806
- exclusiveBrand: u,
805
+ highlight: u,
806
+ exclusiveBrand: g,
807
807
  randomlySelected: f
808
808
  },
809
809
  categorized: {
810
810
  bySubType: { ...T, MyFavorite: b },
811
811
  byPlatform: S,
812
812
  byPlatformAndCategory: E,
813
- byGameTypeAndPlatform: d,
813
+ byGameTypeAndPlatform: c,
814
814
  byGameType: v
815
815
  },
816
816
  user: {
817
817
  favorite: b
818
818
  }
819
819
  };
820
- }, pt = (e = []) => !te(e) || O(e) ? [] : Ae(e, (i) => O(i.SubPlatformEnum) ? i : i.SubPlatformEnum.map((m) => ({
820
+ }, gl = (e = []) => !le(e) || O(e) ? [] : Ae(e, (i) => O(i.SubPlatformEnum) ? i : i.SubPlatformEnum.map((m) => ({
821
821
  ...i,
822
822
  ...m,
823
823
  platform: m.SubPlatformEnum,
@@ -841,38 +841,44 @@ const si = ti(null), ot = () => {
841
841
  default:
842
842
  return e;
843
843
  }
844
- }, ye = () => {
845
- const { client: e } = ne(), i = K(
844
+ }, de = () => {
845
+ const { client: e } = ne(), i = A(
846
846
  async (u) => {
847
- const { mac_address: g = "", app_version: s = "", anydesk_id: l = "" } = u, { data: c } = await e.post("/cash-register/login", {
848
- mac_address: g,
849
- app_version: s,
850
- anydesk_id: l
847
+ const { mac_address: s = "", app_version: t = "", anydesk_id: d = "" } = u, { data: n } = await e.post("/cash-register/login", {
848
+ mac_address: s,
849
+ app_version: t,
850
+ anydesk_id: d
851
851
  });
852
- return c;
852
+ return n;
853
853
  },
854
854
  [e]
855
- ), m = K(async () => e.get("/member/getMemberInfo"), [e]), t = K(async () => await e.get("/member/getGameList"), [e]), r = K(async () => await e.get("/member/getNowCurrencyExchange"), [e]), p = K(async () => await e.get("member/getFavoriteGame"), [e]), f = K(
855
+ ), m = A(async () => e.get("/member/getMemberInfo"), [e]), l = A(async () => await e.get("/member/getGameList"), [e]), r = A(async () => await e.get("/member/getNowCurrencyExchange"), [e]), p = A(async () => await e.get("member/getFavoriteGame"), [e]), f = A(
856
856
  async (u) => {
857
- const { account: g, password: s, trans_code: l } = u;
857
+ const { account: s, password: t, trans_code: d } = u;
858
858
  return await e.post("/login", {
859
- memId: g,
860
- passwd: s,
861
- trans_code: l
859
+ memId: s,
860
+ passwd: t,
861
+ trans_code: d
862
862
  });
863
863
  },
864
864
  [e]
865
- ), _ = K(async () => await e.post("/logout"), [e]);
865
+ ), _ = A(async () => await e.post("/logout"), [e]), g = A(
866
+ async (u, s) => await e.put(`/member/toggleFavoriteGame/${u}`, {
867
+ status: s
868
+ }),
869
+ [e]
870
+ );
866
871
  return {
867
872
  machineLoginApi: i,
868
873
  userInfoApi: m,
869
- userGameListApi: t,
874
+ userGameListApi: l,
870
875
  userFavoriteGameApi: p,
871
876
  userCurrencyExchangeApi: r,
872
877
  userLoginApi: f,
873
- userLogoutApi: _
878
+ userLogoutApi: _,
879
+ addOrRemoveFavoriteGameApi: g
874
880
  };
875
- }, Sl = {
881
+ }, St = {
876
882
  platform: { all: [], origin: [], originPlatform: [], byGameType: {} },
877
883
  type: { main: [], sub: [], originMain: [], originSub: [] },
878
884
  gameList: {
@@ -892,27 +898,27 @@ const si = ti(null), ot = () => {
892
898
  byGameType: {}
893
899
  },
894
900
  user: { favorite: [] }
895
- }, Nl = ({ enabled: e = !0 } = {}) => {
896
- const { getToken: i } = ne(), { userFavoriteGameApi: m, userGameListApi: t } = ye(), { data: r, isLoading: p, error: f, refetch: _ } = le({
901
+ }, Nt = ({ enabled: e = !0 } = {}) => {
902
+ const { getToken: i } = ne(), { userFavoriteGameApi: m, userGameListApi: l } = de(), { data: r, isLoading: p, error: f, refetch: _ } = te({
897
903
  queryKey: ["gamesInfo"],
898
904
  queryFn: async () => {
899
- let u = {}, g = {};
905
+ let g = {}, u = {};
900
906
  try {
901
- await i?.() && (g = await t(), u = await m());
907
+ await i?.() && (u = await l(), g = await m());
902
908
  } catch (s) {
903
909
  console.warn("Failed to fetch favorite games:", s);
904
910
  }
905
- return kl({
906
- allGameList: g.gameTypeGroup || window.gameTypeGroup || {},
907
- allGamePlatform: g.platforms || window.platforms || [],
908
- allGameType: g.gameType || window.gameType || [],
909
- allGame_subtype: g.gameSubType || window.gameSubType || [],
910
- allNewGameList: g.newGames || window.newGames || [],
911
- allTopGameList: g.topGames || window.topGames || [],
912
- userFavoriteGame: u || {},
913
- randomlySelectedGames: g.randomlySelectedGames || window.randomlySelectedGames || [],
914
- exclusiveBrandGames: g.exclusiveBrandGames || window.exclusiveBrandGames || [],
915
- highlightGames: g.highlightGames || window.highlightGames || [],
911
+ return kt({
912
+ allGameList: u.gameTypeGroup || window.gameTypeGroup || {},
913
+ allGamePlatform: u.platforms || window.platforms || [],
914
+ allGameType: u.gameType || window.gameType || [],
915
+ allGame_subtype: u.gameSubType || window.gameSubType || [],
916
+ allNewGameList: u.newGames || window.newGames || [],
917
+ allTopGameList: u.topGames || window.topGames || [],
918
+ userFavoriteGame: g.userFavoriteGame || {},
919
+ randomlySelectedGames: u.randomlySelectedGames || window.randomlySelectedGames || [],
920
+ exclusiveBrandGames: u.exclusiveBrandGames || window.exclusiveBrandGames || [],
921
+ highlightGames: u.highlightGames || window.highlightGames || [],
916
922
  originPlatform: window.originPlatform || []
917
923
  });
918
924
  },
@@ -925,12 +931,12 @@ const si = ti(null), ot = () => {
925
931
  refetchOnWindowFocus: !1
926
932
  });
927
933
  return {
928
- gamesInfo: r || Sl,
934
+ gamesInfo: r || St,
929
935
  isLoading: p,
930
936
  error: f,
931
937
  refetch: _
932
938
  };
933
- }, Dl = (e = !1) => {
939
+ }, Dt = (e = !1) => {
934
940
  if (!e && window.gameTypeGroup) {
935
941
  console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
936
942
  return;
@@ -27457,26 +27463,26 @@ const si = ti(null), ot = () => {
27457
27463
  is_invalid_bet: 0
27458
27464
  }
27459
27465
  });
27460
- }, El = ({
27466
+ }, Et = ({
27461
27467
  children: e,
27462
27468
  autoFetch: i = !1,
27463
27469
  mockData: m = !1
27464
27470
  }) => {
27465
27471
  De(() => {
27466
- m && Dl(!0);
27472
+ m && Dt(!0);
27467
27473
  }, [m]);
27468
- const t = Nl({ enabled: i });
27469
- return /* @__PURE__ */ ze.jsx(si.Provider, { value: t, children: e });
27474
+ const l = Nt({ enabled: i });
27475
+ return /* @__PURE__ */ ze.jsx(si.Provider, { value: l, children: e });
27470
27476
  };
27471
- function gt({
27477
+ function dl({
27472
27478
  children: e,
27473
27479
  autoFetchGamesInfo: i = !1,
27474
27480
  useMockData: m = !1,
27475
- queryClient: t,
27481
+ queryClient: l,
27476
27482
  ...r
27477
27483
  }) {
27478
- const p = ia(() => gl(r), [r]), f = ia(
27479
- () => new al({
27484
+ const p = ia(() => gt(r), [r]), f = ia(
27485
+ () => new at({
27480
27486
  defaultOptions: {
27481
27487
  queries: {
27482
27488
  refetchOnWindowFocus: !1,
@@ -27485,12 +27491,12 @@ function gt({
27485
27491
  }
27486
27492
  }),
27487
27493
  []
27488
- ), _ = t || f;
27489
- return /* @__PURE__ */ ze.jsx(il, { client: _, children: /* @__PURE__ */ ze.jsx(oi.Provider, { value: { client: p, ...r }, children: /* @__PURE__ */ ze.jsx(El, { autoFetch: i, mockData: m, children: e }) }) });
27494
+ ), _ = l || f;
27495
+ return /* @__PURE__ */ ze.jsx(it, { client: _, children: /* @__PURE__ */ ze.jsx(oi.Provider, { value: { client: p, ...r }, children: /* @__PURE__ */ ze.jsx(Et, { autoFetch: i, mockData: m, children: e }) }) });
27490
27496
  }
27491
- const dt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27492
- const { userCurrencyExchangeApi: m } = ye(), { getToken: t } = ne(), { enabled: r, ...p } = i, _ = !!t?.() && (r ? r.every((u) => u) : !0);
27493
- return mi({
27497
+ const cl = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27498
+ const { userCurrencyExchangeApi: m } = de(), { getToken: l } = ne(), { enabled: r, ...p } = i, _ = !!l?.() && (r ? r.every((g) => g) : !0);
27499
+ return ri({
27494
27500
  queries: [
27495
27501
  {
27496
27502
  queryKey: ["userCurrencyExchange", ...e],
@@ -27502,13 +27508,13 @@ const dt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27502
27508
  }
27503
27509
  ]
27504
27510
  });
27505
- }, ct = ({
27511
+ }, _l = ({
27506
27512
  refetchInterval: e = 5e4,
27507
27513
  trigger: i = [],
27508
27514
  enabled: m = !0
27509
27515
  } = {}) => {
27510
- const { getToken: t } = ne(), r = t?.(), { userInfoApi: p } = ye();
27511
- return mi({
27516
+ const { getToken: l } = ne(), r = l?.(), { userInfoApi: p } = de();
27517
+ return ri({
27512
27518
  queries: [
27513
27519
  {
27514
27520
  queryKey: ["getMemberInfo", ...i],
@@ -27518,25 +27524,25 @@ const dt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27518
27524
  }
27519
27525
  ]
27520
27526
  });
27521
- }, _t = ({ enabled: e = !0 } = {}) => {
27527
+ }, fl = ({ enabled: e = !0 } = {}) => {
27522
27528
  const {
27523
27529
  userInfoApi: i,
27524
27530
  userFavoriteGameApi: m,
27525
- userGameListApi: t,
27531
+ userGameListApi: l,
27526
27532
  userCurrencyExchangeApi: r
27527
- } = ye(), p = le({
27533
+ } = de(), p = te({
27528
27534
  queryKey: ["getMemInfo"],
27529
27535
  queryFn: async () => i(),
27530
27536
  enabled: e
27531
- }), f = le({
27537
+ }), f = te({
27532
27538
  queryKey: ["getFavoriteGame"],
27533
27539
  queryFn: async () => m(),
27534
27540
  enabled: e && p.isSuccess
27535
- }), _ = le({
27541
+ }), _ = te({
27536
27542
  queryKey: ["getUserGameList"],
27537
- queryFn: async () => t(),
27543
+ queryFn: async () => l(),
27538
27544
  enabled: e && p.isSuccess && f.isSuccess
27539
- }), u = le({
27545
+ }), g = te({
27540
27546
  queryKey: ["getUserCurrencyExchange"],
27541
27547
  queryFn: async () => r(),
27542
27548
  enabled: e && p.isSuccess && f.isSuccess && _.isSuccess
@@ -27545,12 +27551,12 @@ const dt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27545
27551
  p,
27546
27552
  f,
27547
27553
  _,
27548
- u
27554
+ g
27549
27555
  ];
27550
27556
  };
27551
- var Ye = {}, z = {}, Xe = {}, Oa;
27557
+ var Ye = {}, z = {}, Xe = {}, Ha;
27552
27558
  function j() {
27553
- return Oa || (Oa = 1, (function(e) {
27559
+ return Ha || (Ha = 1, (function(e) {
27554
27560
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isEventSourceSupported = e.isReactNative = e.ReadyState = e.DEFAULT_HEARTBEAT = e.UNPARSABLE_JSON_OBJECT = e.DEFAULT_RECONNECT_INTERVAL_MS = e.DEFAULT_RECONNECT_LIMIT = e.SOCKET_IO_PING_CODE = e.SOCKET_IO_PATH = e.SOCKET_IO_PING_INTERVAL = e.DEFAULT_EVENT_SOURCE_OPTIONS = e.EMPTY_EVENT_HANDLERS = e.DEFAULT_OPTIONS = void 0;
27555
27561
  var i = 1, m = 1e3 * i;
27556
27562
  e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
@@ -27561,10 +27567,10 @@ function j() {
27561
27567
  timeout: 6e4,
27562
27568
  interval: 25e3
27563
27569
  };
27564
- var t;
27570
+ var l;
27565
27571
  (function(p) {
27566
27572
  p[p.UNINSTANTIATED = -1] = "UNINSTANTIATED", p[p.CONNECTING = 0] = "CONNECTING", p[p.OPEN = 1] = "OPEN", p[p.CLOSING = 2] = "CLOSING", p[p.CLOSED = 3] = "CLOSED";
27567
- })(t || (e.ReadyState = t = {}));
27573
+ })(l || (e.ReadyState = l = {}));
27568
27574
  var r = function() {
27569
27575
  try {
27570
27576
  return "EventSource" in globalThis;
@@ -27575,307 +27581,307 @@ function j() {
27575
27581
  e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && r();
27576
27582
  })(Xe)), Xe;
27577
27583
  }
27578
- var Se = {}, $e = {}, Ha;
27579
- function ma() {
27580
- return Ha || (Ha = 1, (function(e) {
27584
+ var Se = {}, $e = {}, wa;
27585
+ function ra() {
27586
+ return wa || (wa = 1, (function(e) {
27581
27587
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
27582
27588
  var i = function(m) {
27583
27589
  if (m && e.sharedWebSockets.hasOwnProperty(m))
27584
27590
  delete e.sharedWebSockets[m];
27585
27591
  else
27586
- for (var t in e.sharedWebSockets)
27587
- e.sharedWebSockets.hasOwnProperty(t) && delete e.sharedWebSockets[t];
27592
+ for (var l in e.sharedWebSockets)
27593
+ e.sharedWebSockets.hasOwnProperty(l) && delete e.sharedWebSockets[l];
27588
27594
  };
27589
27595
  e.resetWebSockets = i;
27590
27596
  })($e)), $e;
27591
27597
  }
27592
- var ue = {}, $ = {}, wa;
27593
- function ra() {
27594
- if (wa) return $;
27595
- wa = 1, Object.defineProperty($, "__esModule", { value: !0 }), $.setUpSocketIOPing = $.appendQueryParams = $.parseSocketIOUrl = void 0;
27598
+ var ue = {}, $ = {}, Fa;
27599
+ function oa() {
27600
+ if (Fa) return $;
27601
+ Fa = 1, Object.defineProperty($, "__esModule", { value: !0 }), $.setUpSocketIOPing = $.appendQueryParams = $.parseSocketIOUrl = void 0;
27596
27602
  var e = j(), i = function(r) {
27597
27603
  if (r) {
27598
- var p = /^https|wss/.test(r), f = r.replace(/^(https?|wss?)(:\/\/)?/, ""), _ = f.replace(/\/$/, ""), u = p ? "wss" : "ws";
27599
- return "".concat(u, "://").concat(_).concat(e.SOCKET_IO_PATH);
27604
+ var p = /^https|wss/.test(r), f = r.replace(/^(https?|wss?)(:\/\/)?/, ""), _ = f.replace(/\/$/, ""), g = p ? "wss" : "ws";
27605
+ return "".concat(g, "://").concat(_).concat(e.SOCKET_IO_PATH);
27600
27606
  } else if (r === "") {
27601
- var p = /^https/.test(window.location.protocol), u = p ? "wss" : "ws", g = window.location.port ? ":".concat(window.location.port) : "";
27602
- return "".concat(u, "://").concat(window.location.hostname).concat(g).concat(e.SOCKET_IO_PATH);
27607
+ var p = /^https/.test(window.location.protocol), g = p ? "wss" : "ws", u = window.location.port ? ":".concat(window.location.port) : "";
27608
+ return "".concat(g, "://").concat(window.location.hostname).concat(u).concat(e.SOCKET_IO_PATH);
27603
27609
  }
27604
27610
  return r;
27605
27611
  };
27606
27612
  $.parseSocketIOUrl = i;
27607
27613
  var m = function(r, p) {
27608
27614
  p === void 0 && (p = {});
27609
- var f = /\?([\w]+=[\w]+)/, _ = f.test(r), u = "".concat(Object.entries(p).reduce(function(g, s) {
27610
- var l = s[0], c = s[1];
27611
- return g + "".concat(l, "=").concat(c, "&");
27615
+ var f = /\?([\w]+=[\w]+)/, _ = f.test(r), g = "".concat(Object.entries(p).reduce(function(u, s) {
27616
+ var t = s[0], d = s[1];
27617
+ return u + "".concat(t, "=").concat(d, "&");
27612
27618
  }, "").slice(0, -1));
27613
- return "".concat(r).concat(_ ? "&" : "?").concat(u);
27619
+ return "".concat(r).concat(_ ? "&" : "?").concat(g);
27614
27620
  };
27615
27621
  $.appendQueryParams = m;
27616
- var t = function(r, p) {
27622
+ var l = function(r, p) {
27617
27623
  p === void 0 && (p = e.SOCKET_IO_PING_INTERVAL);
27618
27624
  var f = function() {
27619
27625
  return r(e.SOCKET_IO_PING_CODE);
27620
27626
  };
27621
27627
  return window.setInterval(f, p);
27622
27628
  };
27623
- return $.setUpSocketIOPing = t, $;
27629
+ return $.setUpSocketIOPing = l, $;
27624
27630
  }
27625
- var We = {}, Fa;
27631
+ var We = {}, Wa;
27626
27632
  function _i() {
27627
- if (Fa) return We;
27628
- Fa = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.heartbeat = m;
27633
+ if (Wa) return We;
27634
+ Wa = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.heartbeat = m;
27629
27635
  var e = j();
27630
- function i(t) {
27631
- return Array.isArray(t) ? t.reduce(function(r, p) {
27636
+ function i(l) {
27637
+ return Array.isArray(l) ? l.reduce(function(r, p) {
27632
27638
  return r.current > p.current ? r : p;
27633
- }).current : t.current;
27639
+ }).current : l.current;
27634
27640
  }
27635
- function m(t, r, p) {
27636
- var f = p || {}, _ = f.interval, u = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, g = f.timeout, s = g === void 0 ? e.DEFAULT_HEARTBEAT.timeout : g, l = f.message, c = l === void 0 ? e.DEFAULT_HEARTBEAT.message : l, n = Math.max(100, u / 10), o = Date.now(), y = setInterval(function() {
27637
- var b = Date.now(), d = i(r);
27638
- if (d + s <= b)
27639
- console.warn("Heartbeat timed out, closing connection, last message received ".concat(b - d, "ms ago, last ping sent ").concat(b - o, "ms ago")), t.close();
27640
- else if (d + u <= b && o + u <= b)
27641
+ function m(l, r, p) {
27642
+ var f = p || {}, _ = f.interval, g = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, u = f.timeout, s = u === void 0 ? e.DEFAULT_HEARTBEAT.timeout : u, t = f.message, d = t === void 0 ? e.DEFAULT_HEARTBEAT.message : t, n = Math.max(100, g / 10), o = Date.now(), y = setInterval(function() {
27643
+ var b = Date.now(), c = i(r);
27644
+ if (c + s <= b)
27645
+ console.warn("Heartbeat timed out, closing connection, last message received ".concat(b - c, "ms ago, last ping sent ").concat(b - o, "ms ago")), l.close();
27646
+ else if (c + g <= b && o + g <= b)
27641
27647
  try {
27642
- typeof c == "function" ? t.send(c()) : t.send(c), o = b;
27648
+ typeof d == "function" ? l.send(d()) : l.send(d), o = b;
27643
27649
  } catch (T) {
27644
- console.error("Heartbeat failed, closing connection", T instanceof Error ? T.message : T), t.close();
27650
+ console.error("Heartbeat failed, closing connection", T instanceof Error ? T.message : T), l.close();
27645
27651
  }
27646
27652
  }, n);
27647
- return t.addEventListener("close", function() {
27653
+ return l.addEventListener("close", function() {
27648
27654
  clearInterval(y);
27649
27655
  }), function() {
27650
27656
  };
27651
27657
  }
27652
27658
  return We;
27653
27659
  }
27654
- var Ne = {}, ea = {}, Wa;
27655
- function oa() {
27656
- return Wa || (Wa = 1, (function(e) {
27660
+ var Ne = {}, ea = {}, Ja;
27661
+ function sa() {
27662
+ return Ja || (Ja = 1, (function(e) {
27657
27663
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
27658
- var i = {}, m = [], t = function(u) {
27659
- return (0, e.hasSubscribers)(u) ? Array.from(i[u]) : m;
27664
+ var i = {}, m = [], l = function(g) {
27665
+ return (0, e.hasSubscribers)(g) ? Array.from(i[g]) : m;
27660
27666
  };
27661
- e.getSubscribers = t;
27662
- var r = function(u) {
27663
- var g;
27664
- return ((g = i[u]) === null || g === void 0 ? void 0 : g.size) > 0;
27667
+ e.getSubscribers = l;
27668
+ var r = function(g) {
27669
+ var u;
27670
+ return ((u = i[g]) === null || u === void 0 ? void 0 : u.size) > 0;
27665
27671
  };
27666
27672
  e.hasSubscribers = r;
27667
- var p = function(u, g) {
27668
- i[u] = i[u] || /* @__PURE__ */ new Set(), i[u].add(g);
27673
+ var p = function(g, u) {
27674
+ i[g] = i[g] || /* @__PURE__ */ new Set(), i[g].add(u);
27669
27675
  };
27670
27676
  e.addSubscriber = p;
27671
- var f = function(u, g) {
27672
- i[u].delete(g);
27677
+ var f = function(g, u) {
27678
+ i[g].delete(u);
27673
27679
  };
27674
27680
  e.removeSubscriber = f;
27675
- var _ = function(u) {
27676
- if (u && i.hasOwnProperty(u))
27677
- delete i[u];
27681
+ var _ = function(g) {
27682
+ if (g && i.hasOwnProperty(g))
27683
+ delete i[g];
27678
27684
  else
27679
- for (var g in i)
27680
- i.hasOwnProperty(g) && delete i[g];
27685
+ for (var u in i)
27686
+ i.hasOwnProperty(u) && delete i[u];
27681
27687
  };
27682
27688
  e.resetSubscribers = _;
27683
27689
  })(ea)), ea;
27684
27690
  }
27685
- var Ja;
27686
- function sa() {
27687
- if (Ja) return Ne;
27688
- Ja = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.assertIsWebSocket = m, Ne.resetGlobalState = t;
27689
- var e = ma(), i = oa();
27691
+ var za;
27692
+ function ua() {
27693
+ if (za) return Ne;
27694
+ za = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.assertIsWebSocket = m, Ne.resetGlobalState = l;
27695
+ var e = ra(), i = sa();
27690
27696
  function m(r, p) {
27691
27697
  if (!p && !(r instanceof WebSocket))
27692
27698
  throw new Error("");
27693
27699
  }
27694
- function t(r) {
27700
+ function l(r) {
27695
27701
  (0, i.resetSubscribers)(r), (0, e.resetWebSockets)(r);
27696
27702
  }
27697
27703
  return Ne;
27698
27704
  }
27699
- var za;
27700
- function Ll() {
27701
- if (za) return ue;
27702
- za = 1;
27705
+ var Za;
27706
+ function Lt() {
27707
+ if (Za) return ue;
27708
+ Za = 1;
27703
27709
  var e = ue && ue.__assign || function() {
27704
27710
  return e = Object.assign || function(s) {
27705
- for (var l, c = 1, n = arguments.length; c < n; c++) {
27706
- l = arguments[c];
27707
- for (var o in l) Object.prototype.hasOwnProperty.call(l, o) && (s[o] = l[o]);
27711
+ for (var t, d = 1, n = arguments.length; d < n; d++) {
27712
+ t = arguments[d];
27713
+ for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (s[o] = t[o]);
27708
27714
  }
27709
27715
  return s;
27710
27716
  }, e.apply(this, arguments);
27711
27717
  };
27712
27718
  Object.defineProperty(ue, "__esModule", { value: !0 }), ue.attachListeners = void 0;
27713
- var i = ra(), m = _i(), t = j(), r = sa(), p = function(s, l, c, n) {
27719
+ var i = oa(), m = _i(), l = j(), r = ua(), p = function(s, t, d, n) {
27714
27720
  s.onmessage = function(o) {
27715
27721
  var y;
27716
- l.current.onMessage && l.current.onMessage(o), typeof n?.current == "number" && (n.current = Date.now()), !(typeof l.current.filter == "function" && l.current.filter(o) !== !0) && (l.current.heartbeat && typeof l.current.heartbeat != "boolean" && ((y = l.current.heartbeat) === null || y === void 0 ? void 0 : y.returnMessage) === o.data || c(o));
27722
+ t.current.onMessage && t.current.onMessage(o), typeof n?.current == "number" && (n.current = Date.now()), !(typeof t.current.filter == "function" && t.current.filter(o) !== !0) && (t.current.heartbeat && typeof t.current.heartbeat != "boolean" && ((y = t.current.heartbeat) === null || y === void 0 ? void 0 : y.returnMessage) === o.data || d(o));
27717
27723
  };
27718
- }, f = function(s, l, c, n, o) {
27724
+ }, f = function(s, t, d, n, o) {
27719
27725
  s.onopen = function(y) {
27720
- if (l.current.onOpen && l.current.onOpen(y), n.current = 0, c(t.ReadyState.OPEN), l.current.heartbeat && s instanceof WebSocket) {
27721
- var b = typeof l.current.heartbeat == "boolean" ? void 0 : l.current.heartbeat;
27726
+ if (t.current.onOpen && t.current.onOpen(y), n.current = 0, d(l.ReadyState.OPEN), t.current.heartbeat && s instanceof WebSocket) {
27727
+ var b = typeof t.current.heartbeat == "boolean" ? void 0 : t.current.heartbeat;
27722
27728
  o.current = Date.now(), (0, m.heartbeat)(s, o, b);
27723
27729
  }
27724
27730
  };
27725
- }, _ = function(s, l, c, n, o) {
27726
- if (t.isEventSourceSupported && s instanceof EventSource)
27731
+ }, _ = function(s, t, d, n, o) {
27732
+ if (l.isEventSourceSupported && s instanceof EventSource)
27727
27733
  return function() {
27728
27734
  };
27729
- (0, r.assertIsWebSocket)(s, l.current.skipAssert);
27735
+ (0, r.assertIsWebSocket)(s, t.current.skipAssert);
27730
27736
  var y;
27731
27737
  return s.onclose = function(b) {
27732
- var d;
27733
- if (l.current.onClose && l.current.onClose(b), c(t.ReadyState.CLOSED), l.current.shouldReconnect && l.current.shouldReconnect(b)) {
27734
- var T = (d = l.current.reconnectAttempts) !== null && d !== void 0 ? d : t.DEFAULT_RECONNECT_LIMIT;
27738
+ var c;
27739
+ if (t.current.onClose && t.current.onClose(b), d(l.ReadyState.CLOSED), t.current.shouldReconnect && t.current.shouldReconnect(b)) {
27740
+ var T = (c = t.current.reconnectAttempts) !== null && c !== void 0 ? c : l.DEFAULT_RECONNECT_LIMIT;
27735
27741
  if (o.current < T) {
27736
- var S = typeof l.current.reconnectInterval == "function" ? l.current.reconnectInterval(o.current) : l.current.reconnectInterval;
27742
+ var S = typeof t.current.reconnectInterval == "function" ? t.current.reconnectInterval(o.current) : t.current.reconnectInterval;
27737
27743
  y = window.setTimeout(function() {
27738
27744
  o.current++, n();
27739
- }, S ?? t.DEFAULT_RECONNECT_INTERVAL_MS);
27745
+ }, S ?? l.DEFAULT_RECONNECT_INTERVAL_MS);
27740
27746
  } else
27741
- l.current.onReconnectStop && l.current.onReconnectStop(T), console.warn("Max reconnect attempts of ".concat(T, " exceeded"));
27747
+ t.current.onReconnectStop && t.current.onReconnectStop(T), console.warn("Max reconnect attempts of ".concat(T, " exceeded"));
27742
27748
  }
27743
27749
  }, function() {
27744
27750
  return y && window.clearTimeout(y);
27745
27751
  };
27746
- }, u = function(s, l, c, n, o) {
27752
+ }, g = function(s, t, d, n, o) {
27747
27753
  var y;
27748
27754
  return s.onerror = function(b) {
27749
- var d;
27750
- if (l.current.onError && l.current.onError(b), t.isEventSourceSupported && s instanceof EventSource && (l.current.onClose && l.current.onClose(e(e({}, b), { code: 1006, reason: "An error occurred with the EventSource: ".concat(b), wasClean: !1 })), c(t.ReadyState.CLOSED), s.close()), l.current.retryOnError)
27751
- if (o.current < ((d = l.current.reconnectAttempts) !== null && d !== void 0 ? d : t.DEFAULT_RECONNECT_LIMIT)) {
27752
- var T = typeof l.current.reconnectInterval == "function" ? l.current.reconnectInterval(o.current) : l.current.reconnectInterval;
27755
+ var c;
27756
+ if (t.current.onError && t.current.onError(b), l.isEventSourceSupported && s instanceof EventSource && (t.current.onClose && t.current.onClose(e(e({}, b), { code: 1006, reason: "An error occurred with the EventSource: ".concat(b), wasClean: !1 })), d(l.ReadyState.CLOSED), s.close()), t.current.retryOnError)
27757
+ if (o.current < ((c = t.current.reconnectAttempts) !== null && c !== void 0 ? c : l.DEFAULT_RECONNECT_LIMIT)) {
27758
+ var T = typeof t.current.reconnectInterval == "function" ? t.current.reconnectInterval(o.current) : t.current.reconnectInterval;
27753
27759
  y = window.setTimeout(function() {
27754
27760
  o.current++, n();
27755
- }, T ?? t.DEFAULT_RECONNECT_INTERVAL_MS);
27761
+ }, T ?? l.DEFAULT_RECONNECT_INTERVAL_MS);
27756
27762
  } else
27757
- l.current.onReconnectStop && l.current.onReconnectStop(l.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(l.current.reconnectAttempts, " exceeded"));
27763
+ t.current.onReconnectStop && t.current.onReconnectStop(t.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(t.current.reconnectAttempts, " exceeded"));
27758
27764
  }, function() {
27759
27765
  return y && window.clearTimeout(y);
27760
27766
  };
27761
- }, g = function(s, l, c, n, o, y, b) {
27762
- var d = l.setLastMessage, T = l.setReadyState, S, E, v;
27763
- return c.current.fromSocketIO && (S = (0, i.setUpSocketIOPing)(b)), p(s, c, d, y), f(s, c, T, o, y), E = _(s, c, T, n, o), v = u(s, c, T, n, o), function() {
27764
- T(t.ReadyState.CLOSING), E(), v(), s.close(), S && clearInterval(S);
27767
+ }, u = function(s, t, d, n, o, y, b) {
27768
+ var c = t.setLastMessage, T = t.setReadyState, S, E, v;
27769
+ return d.current.fromSocketIO && (S = (0, i.setUpSocketIOPing)(b)), p(s, d, c, y), f(s, d, T, o, y), E = _(s, d, T, n, o), v = g(s, d, T, n, o), function() {
27770
+ T(l.ReadyState.CLOSING), E(), v(), s.close(), S && clearInterval(S);
27765
27771
  };
27766
27772
  };
27767
- return ue.attachListeners = g, ue;
27773
+ return ue.attachListeners = u, ue;
27768
27774
  }
27769
- var pe = {}, Za;
27770
- function Gl() {
27771
- if (Za) return pe;
27772
- Za = 1;
27775
+ var pe = {}, Va;
27776
+ function Gt() {
27777
+ if (Va) return pe;
27778
+ Va = 1;
27773
27779
  var e = pe && pe.__assign || function() {
27774
- return e = Object.assign || function(l) {
27775
- for (var c, n = 1, o = arguments.length; n < o; n++) {
27776
- c = arguments[n];
27777
- for (var y in c) Object.prototype.hasOwnProperty.call(c, y) && (l[y] = c[y]);
27780
+ return e = Object.assign || function(t) {
27781
+ for (var d, n = 1, o = arguments.length; n < o; n++) {
27782
+ d = arguments[n];
27783
+ for (var y in d) Object.prototype.hasOwnProperty.call(d, y) && (t[y] = d[y]);
27778
27784
  }
27779
- return l;
27785
+ return t;
27780
27786
  }, e.apply(this, arguments);
27781
27787
  };
27782
27788
  Object.defineProperty(pe, "__esModule", { value: !0 }), pe.attachSharedListeners = void 0;
27783
- var i = ma(), m = j(), t = oa(), r = ra(), p = _i(), f = function(l, c, n) {
27784
- l.onmessage = function(o) {
27785
- (0, t.getSubscribers)(c).forEach(function(y) {
27789
+ var i = ra(), m = j(), l = sa(), r = oa(), p = _i(), f = function(t, d, n) {
27790
+ t.onmessage = function(o) {
27791
+ (0, l.getSubscribers)(d).forEach(function(y) {
27786
27792
  var b;
27787
27793
  y.optionsRef.current.onMessage && y.optionsRef.current.onMessage(o), typeof ((b = y?.lastMessageTime) === null || b === void 0 ? void 0 : b.current) == "number" && (y.lastMessageTime.current = Date.now()), !(typeof y.optionsRef.current.filter == "function" && y.optionsRef.current.filter(o) !== !0) && (n && typeof n != "boolean" && n?.returnMessage === o.data || y.setLastMessage(o));
27788
27794
  });
27789
27795
  };
27790
- }, _ = function(l, c, n) {
27791
- l.onopen = function(o) {
27792
- var y = (0, t.getSubscribers)(c);
27796
+ }, _ = function(t, d, n) {
27797
+ t.onopen = function(o) {
27798
+ var y = (0, l.getSubscribers)(d);
27793
27799
  y.forEach(function(b) {
27794
- b.reconnectCount.current = 0, b.optionsRef.current.onOpen && b.optionsRef.current.onOpen(o), b.setReadyState(m.ReadyState.OPEN), n && l instanceof WebSocket && (b.lastMessageTime.current = Date.now());
27795
- }), n && l instanceof WebSocket && (0, p.heartbeat)(l, y.map(function(b) {
27800
+ b.reconnectCount.current = 0, b.optionsRef.current.onOpen && b.optionsRef.current.onOpen(o), b.setReadyState(m.ReadyState.OPEN), n && t instanceof WebSocket && (b.lastMessageTime.current = Date.now());
27801
+ }), n && t instanceof WebSocket && (0, p.heartbeat)(t, y.map(function(b) {
27796
27802
  return b.lastMessageTime;
27797
27803
  }), typeof n == "boolean" ? void 0 : n);
27798
27804
  };
27799
- }, u = function(l, c) {
27800
- l instanceof WebSocket && (l.onclose = function(n) {
27801
- (0, t.getSubscribers)(c).forEach(function(o) {
27805
+ }, g = function(t, d) {
27806
+ t instanceof WebSocket && (t.onclose = function(n) {
27807
+ (0, l.getSubscribers)(d).forEach(function(o) {
27802
27808
  o.optionsRef.current.onClose && o.optionsRef.current.onClose(n), o.setReadyState(m.ReadyState.CLOSED);
27803
- }), delete i.sharedWebSockets[c], (0, t.getSubscribers)(c).forEach(function(o) {
27809
+ }), delete i.sharedWebSockets[d], (0, l.getSubscribers)(d).forEach(function(o) {
27804
27810
  var y;
27805
27811
  if (o.optionsRef.current.shouldReconnect && o.optionsRef.current.shouldReconnect(n)) {
27806
27812
  var b = (y = o.optionsRef.current.reconnectAttempts) !== null && y !== void 0 ? y : m.DEFAULT_RECONNECT_LIMIT;
27807
27813
  if (o.reconnectCount.current < b) {
27808
- var d = typeof o.optionsRef.current.reconnectInterval == "function" ? o.optionsRef.current.reconnectInterval(o.reconnectCount.current) : o.optionsRef.current.reconnectInterval;
27814
+ var c = typeof o.optionsRef.current.reconnectInterval == "function" ? o.optionsRef.current.reconnectInterval(o.reconnectCount.current) : o.optionsRef.current.reconnectInterval;
27809
27815
  setTimeout(function() {
27810
27816
  o.reconnectCount.current++, o.reconnect.current();
27811
- }, d ?? m.DEFAULT_RECONNECT_INTERVAL_MS);
27817
+ }, c ?? m.DEFAULT_RECONNECT_INTERVAL_MS);
27812
27818
  } else
27813
27819
  o.optionsRef.current.onReconnectStop && o.optionsRef.current.onReconnectStop(o.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(b, " exceeded"));
27814
27820
  }
27815
27821
  });
27816
27822
  });
27817
- }, g = function(l, c) {
27818
- l.onerror = function(n) {
27819
- (0, t.getSubscribers)(c).forEach(function(o) {
27820
- o.optionsRef.current.onError && o.optionsRef.current.onError(n), m.isEventSourceSupported && l instanceof EventSource && (o.optionsRef.current.onClose && o.optionsRef.current.onClose(e(e({}, n), { code: 1006, reason: "An error occurred with the EventSource: ".concat(n), wasClean: !1 })), o.setReadyState(m.ReadyState.CLOSED));
27821
- }), m.isEventSourceSupported && l instanceof EventSource && l.close();
27823
+ }, u = function(t, d) {
27824
+ t.onerror = function(n) {
27825
+ (0, l.getSubscribers)(d).forEach(function(o) {
27826
+ o.optionsRef.current.onError && o.optionsRef.current.onError(n), m.isEventSourceSupported && t instanceof EventSource && (o.optionsRef.current.onClose && o.optionsRef.current.onClose(e(e({}, n), { code: 1006, reason: "An error occurred with the EventSource: ".concat(n), wasClean: !1 })), o.setReadyState(m.ReadyState.CLOSED));
27827
+ }), m.isEventSourceSupported && t instanceof EventSource && t.close();
27822
27828
  };
27823
- }, s = function(l, c, n, o) {
27829
+ }, s = function(t, d, n, o) {
27824
27830
  var y;
27825
- return n.current.fromSocketIO && (y = (0, r.setUpSocketIOPing)(o)), f(l, c, n.current.heartbeat), u(l, c), _(l, c, n.current.heartbeat), g(l, c), function() {
27831
+ return n.current.fromSocketIO && (y = (0, r.setUpSocketIOPing)(o)), f(t, d, n.current.heartbeat), g(t, d), _(t, d, n.current.heartbeat), u(t, d), function() {
27826
27832
  y && clearInterval(y);
27827
27833
  };
27828
27834
  };
27829
27835
  return pe.attachSharedListeners = s, pe;
27830
27836
  }
27831
- var Va;
27832
- function Ml() {
27833
- if (Va) return Se;
27834
- Va = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.createOrJoinSocket = void 0;
27835
- var e = ma(), i = j(), m = Ll(), t = Gl(), r = oa(), p = function(_, u, g, s, l) {
27837
+ var Aa;
27838
+ function Mt() {
27839
+ if (Aa) return Se;
27840
+ Aa = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.createOrJoinSocket = void 0;
27841
+ var e = ra(), i = j(), m = Lt(), l = Gt(), r = sa(), p = function(_, g, u, s, t) {
27836
27842
  return function() {
27837
- if ((0, r.removeSubscriber)(_, u), !(0, r.hasSubscribers)(_)) {
27843
+ if ((0, r.removeSubscriber)(_, g), !(0, r.hasSubscribers)(_)) {
27838
27844
  try {
27839
- var c = e.sharedWebSockets[_];
27840
- c instanceof WebSocket && (c.onclose = function(n) {
27841
- g.current.onClose && g.current.onClose(n), s(i.ReadyState.CLOSED);
27842
- }), c.close();
27845
+ var d = e.sharedWebSockets[_];
27846
+ d instanceof WebSocket && (d.onclose = function(n) {
27847
+ u.current.onClose && u.current.onClose(n), s(i.ReadyState.CLOSED);
27848
+ }), d.close();
27843
27849
  } catch {
27844
27850
  }
27845
- l && l(), delete e.sharedWebSockets[_];
27851
+ t && t(), delete e.sharedWebSockets[_];
27846
27852
  }
27847
27853
  };
27848
- }, f = function(_, u, g, s, l, c, n, o, y) {
27854
+ }, f = function(_, g, u, s, t, d, n, o, y) {
27849
27855
  if (!i.isEventSourceSupported && s.current.eventSourceOptions)
27850
27856
  throw i.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
27851
27857
  if (s.current.share) {
27852
27858
  var b = null;
27853
- e.sharedWebSockets[u] === void 0 ? (e.sharedWebSockets[u] = s.current.eventSourceOptions ? new EventSource(u, s.current.eventSourceOptions) : new WebSocket(u, s.current.protocols), _.current = e.sharedWebSockets[u], g(i.ReadyState.CONNECTING), b = (0, t.attachSharedListeners)(e.sharedWebSockets[u], u, s, y)) : (_.current = e.sharedWebSockets[u], g(e.sharedWebSockets[u].readyState));
27854
- var d = {
27855
- setLastMessage: l,
27856
- setReadyState: g,
27859
+ e.sharedWebSockets[g] === void 0 ? (e.sharedWebSockets[g] = s.current.eventSourceOptions ? new EventSource(g, s.current.eventSourceOptions) : new WebSocket(g, s.current.protocols), _.current = e.sharedWebSockets[g], u(i.ReadyState.CONNECTING), b = (0, l.attachSharedListeners)(e.sharedWebSockets[g], g, s, y)) : (_.current = e.sharedWebSockets[g], u(e.sharedWebSockets[g].readyState));
27860
+ var c = {
27861
+ setLastMessage: t,
27862
+ setReadyState: u,
27857
27863
  optionsRef: s,
27858
27864
  reconnectCount: n,
27859
27865
  lastMessageTime: o,
27860
- reconnect: c
27866
+ reconnect: d
27861
27867
  };
27862
- return (0, r.addSubscriber)(u, d), p(u, d, s, g, b);
27868
+ return (0, r.addSubscriber)(g, c), p(g, c, s, u, b);
27863
27869
  } else {
27864
- if (_.current = s.current.eventSourceOptions ? new EventSource(u, s.current.eventSourceOptions) : new WebSocket(u, s.current.protocols), g(i.ReadyState.CONNECTING), !_.current)
27870
+ if (_.current = s.current.eventSourceOptions ? new EventSource(g, s.current.eventSourceOptions) : new WebSocket(g, s.current.protocols), u(i.ReadyState.CONNECTING), !_.current)
27865
27871
  throw new Error("WebSocket failed to be created");
27866
27872
  return (0, m.attachListeners)(_.current, {
27867
- setLastMessage: l,
27868
- setReadyState: g
27869
- }, s, c.current, n, o, y);
27873
+ setLastMessage: t,
27874
+ setReadyState: u
27875
+ }, s, d.current, n, o, y);
27870
27876
  }
27871
27877
  };
27872
27878
  return Se.createOrJoinSocket = f, Se;
27873
27879
  }
27874
- var ee = {}, Aa;
27875
- function Rl() {
27876
- return Aa || (Aa = 1, (function(e) {
27877
- var i = ee && ee.__awaiter || function(u, g, s, l) {
27878
- function c(n) {
27880
+ var ee = {}, Ia;
27881
+ function Rt() {
27882
+ return Ia || (Ia = 1, (function(e) {
27883
+ var i = ee && ee.__awaiter || function(g, u, s, t) {
27884
+ function d(n) {
27879
27885
  return n instanceof s ? n : new s(function(o) {
27880
27886
  o(n);
27881
27887
  });
@@ -27883,110 +27889,110 @@ function Rl() {
27883
27889
  return new (s || (s = Promise))(function(n, o) {
27884
27890
  function y(T) {
27885
27891
  try {
27886
- d(l.next(T));
27892
+ c(t.next(T));
27887
27893
  } catch (S) {
27888
27894
  o(S);
27889
27895
  }
27890
27896
  }
27891
27897
  function b(T) {
27892
27898
  try {
27893
- d(l.throw(T));
27899
+ c(t.throw(T));
27894
27900
  } catch (S) {
27895
27901
  o(S);
27896
27902
  }
27897
27903
  }
27898
- function d(T) {
27899
- T.done ? n(T.value) : c(T.value).then(y, b);
27904
+ function c(T) {
27905
+ T.done ? n(T.value) : d(T.value).then(y, b);
27900
27906
  }
27901
- d((l = l.apply(u, g || [])).next());
27907
+ c((t = t.apply(g, u || [])).next());
27902
27908
  });
27903
- }, m = ee && ee.__generator || function(u, g) {
27909
+ }, m = ee && ee.__generator || function(g, u) {
27904
27910
  var s = { label: 0, sent: function() {
27905
27911
  if (n[0] & 1) throw n[1];
27906
27912
  return n[1];
27907
- }, trys: [], ops: [] }, l, c, n, o = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
27913
+ }, trys: [], ops: [] }, t, d, n, o = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
27908
27914
  return o.next = y(0), o.throw = y(1), o.return = y(2), typeof Symbol == "function" && (o[Symbol.iterator] = function() {
27909
27915
  return this;
27910
27916
  }), o;
27911
- function y(d) {
27917
+ function y(c) {
27912
27918
  return function(T) {
27913
- return b([d, T]);
27919
+ return b([c, T]);
27914
27920
  };
27915
27921
  }
27916
- function b(d) {
27917
- if (l) throw new TypeError("Generator is already executing.");
27918
- for (; o && (o = 0, d[0] && (s = 0)), s; ) try {
27919
- if (l = 1, c && (n = d[0] & 2 ? c.return : d[0] ? c.throw || ((n = c.return) && n.call(c), 0) : c.next) && !(n = n.call(c, d[1])).done) return n;
27920
- switch (c = 0, n && (d = [d[0] & 2, n.value]), d[0]) {
27922
+ function b(c) {
27923
+ if (t) throw new TypeError("Generator is already executing.");
27924
+ for (; o && (o = 0, c[0] && (s = 0)), s; ) try {
27925
+ if (t = 1, d && (n = c[0] & 2 ? d.return : c[0] ? d.throw || ((n = d.return) && n.call(d), 0) : d.next) && !(n = n.call(d, c[1])).done) return n;
27926
+ switch (d = 0, n && (c = [c[0] & 2, n.value]), c[0]) {
27921
27927
  case 0:
27922
27928
  case 1:
27923
- n = d;
27929
+ n = c;
27924
27930
  break;
27925
27931
  case 4:
27926
- return s.label++, { value: d[1], done: !1 };
27932
+ return s.label++, { value: c[1], done: !1 };
27927
27933
  case 5:
27928
- s.label++, c = d[1], d = [0];
27934
+ s.label++, d = c[1], c = [0];
27929
27935
  continue;
27930
27936
  case 7:
27931
- d = s.ops.pop(), s.trys.pop();
27937
+ c = s.ops.pop(), s.trys.pop();
27932
27938
  continue;
27933
27939
  default:
27934
- if (n = s.trys, !(n = n.length > 0 && n[n.length - 1]) && (d[0] === 6 || d[0] === 2)) {
27940
+ if (n = s.trys, !(n = n.length > 0 && n[n.length - 1]) && (c[0] === 6 || c[0] === 2)) {
27935
27941
  s = 0;
27936
27942
  continue;
27937
27943
  }
27938
- if (d[0] === 3 && (!n || d[1] > n[0] && d[1] < n[3])) {
27939
- s.label = d[1];
27944
+ if (c[0] === 3 && (!n || c[1] > n[0] && c[1] < n[3])) {
27945
+ s.label = c[1];
27940
27946
  break;
27941
27947
  }
27942
- if (d[0] === 6 && s.label < n[1]) {
27943
- s.label = n[1], n = d;
27948
+ if (c[0] === 6 && s.label < n[1]) {
27949
+ s.label = n[1], n = c;
27944
27950
  break;
27945
27951
  }
27946
27952
  if (n && s.label < n[2]) {
27947
- s.label = n[2], s.ops.push(d);
27953
+ s.label = n[2], s.ops.push(c);
27948
27954
  break;
27949
27955
  }
27950
27956
  n[2] && s.ops.pop(), s.trys.pop();
27951
27957
  continue;
27952
27958
  }
27953
- d = g.call(u, s);
27959
+ c = u.call(g, s);
27954
27960
  } catch (T) {
27955
- d = [6, T], c = 0;
27961
+ c = [6, T], d = 0;
27956
27962
  } finally {
27957
- l = n = 0;
27963
+ t = n = 0;
27958
27964
  }
27959
- if (d[0] & 5) throw d[1];
27960
- return { value: d[0] ? d[1] : void 0, done: !0 };
27965
+ if (c[0] & 5) throw c[1];
27966
+ return { value: c[0] ? c[1] : void 0, done: !0 };
27961
27967
  }
27962
- }, t = ee && ee.__spreadArray || function(u, g, s) {
27963
- if (s || arguments.length === 2) for (var l = 0, c = g.length, n; l < c; l++)
27964
- (n || !(l in g)) && (n || (n = Array.prototype.slice.call(g, 0, l)), n[l] = g[l]);
27965
- return u.concat(n || Array.prototype.slice.call(g));
27968
+ }, l = ee && ee.__spreadArray || function(g, u, s) {
27969
+ if (s || arguments.length === 2) for (var t = 0, d = u.length, n; t < d; t++)
27970
+ (n || !(t in u)) && (n || (n = Array.prototype.slice.call(u, 0, t)), n[t] = u[t]);
27971
+ return g.concat(n || Array.prototype.slice.call(u));
27966
27972
  };
27967
27973
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
27968
- var r = ra(), p = j(), f = function(u) {
27969
- return new Promise(function(g) {
27970
- return window.setTimeout(g, u);
27974
+ var r = oa(), p = j(), f = function(g) {
27975
+ return new Promise(function(u) {
27976
+ return window.setTimeout(u, g);
27971
27977
  });
27972
- }, _ = function(u, g) {
27973
- for (var s = [], l = 2; l < arguments.length; l++)
27974
- s[l - 2] = arguments[l];
27975
- return i(void 0, t([u, g], s, !0), void 0, function(c, n, o) {
27976
- var y, b, d, T, S, E, v, D;
27978
+ }, _ = function(g, u) {
27979
+ for (var s = [], t = 2; t < arguments.length; t++)
27980
+ s[t - 2] = arguments[t];
27981
+ return i(void 0, l([g, u], s, !0), void 0, function(d, n, o) {
27982
+ var y, b, c, T, S, E, v, D;
27977
27983
  return o === void 0 && (o = 0), m(this, function(L) {
27978
27984
  switch (L.label) {
27979
27985
  case 0:
27980
- if (typeof c != "function") return [3, 10];
27986
+ if (typeof d != "function") return [3, 10];
27981
27987
  L.label = 1;
27982
27988
  case 1:
27983
- return L.trys.push([1, 3, , 9]), [4, c()];
27989
+ return L.trys.push([1, 3, , 9]), [4, d()];
27984
27990
  case 2:
27985
27991
  return y = L.sent(), [3, 9];
27986
27992
  case 3:
27987
- return L.sent(), n.current.retryOnError ? (b = (E = n.current.reconnectAttempts) !== null && E !== void 0 ? E : p.DEFAULT_RECONNECT_LIMIT, o < b ? (d = typeof n.current.reconnectInterval == "function" ? n.current.reconnectInterval(o) : n.current.reconnectInterval, [4, f(d ?? p.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
27993
+ return L.sent(), n.current.retryOnError ? (b = (E = n.current.reconnectAttempts) !== null && E !== void 0 ? E : p.DEFAULT_RECONNECT_LIMIT, o < b ? (c = typeof n.current.reconnectInterval == "function" ? n.current.reconnectInterval(o) : n.current.reconnectInterval, [4, f(c ?? p.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
27988
27994
  case 4:
27989
- return L.sent(), [2, (0, e.getUrl)(c, n, o + 1)];
27995
+ return L.sent(), [2, (0, e.getUrl)(d, n, o + 1)];
27990
27996
  case 5:
27991
27997
  return (D = (v = n.current).onReconnectStop) === null || D === void 0 || D.call(v, o), [2, null];
27992
27998
  case 6:
@@ -27998,7 +28004,7 @@ function Rl() {
27998
28004
  case 9:
27999
28005
  return [3, 11];
28000
28006
  case 10:
28001
- y = c, L.label = 11;
28007
+ y = d, L.label = 11;
28002
28008
  case 11:
28003
28009
  return T = n.current.fromSocketIO ? (0, r.parseSocketIOUrl)(y) : y, S = n.current.queryParams ? (0, r.appendQueryParams)(T, n.current.queryParams) : T, [2, S];
28004
28010
  }
@@ -28008,15 +28014,15 @@ function Rl() {
28008
28014
  e.getUrl = _;
28009
28015
  })(ee)), ee;
28010
28016
  }
28011
- var aa = {}, Ia;
28012
- function Pl() {
28013
- return Ia || (Ia = 1, (function(e) {
28017
+ var aa = {}, Ba;
28018
+ function Pt() {
28019
+ return Ba || (Ba = 1, (function(e) {
28014
28020
  Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
28015
- var i = function(m, t) {
28021
+ var i = function(m, l) {
28016
28022
  return new Proxy(m, {
28017
28023
  get: function(r, p) {
28018
28024
  var f = r[p];
28019
- return p === "reconnect" ? t : typeof f == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
28025
+ return p === "reconnect" ? l : typeof f == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
28020
28026
  }) : f;
28021
28027
  },
28022
28028
  set: function(r, p, f) {
@@ -28027,25 +28033,25 @@ function Pl() {
28027
28033
  e.websocketWrapper = i, e.default = e.websocketWrapper;
28028
28034
  })(aa)), aa;
28029
28035
  }
28030
- var Ba;
28031
- function ua() {
28032
- if (Ba) return z;
28033
- Ba = 1;
28036
+ var Ka;
28037
+ function pa() {
28038
+ if (Ka) return z;
28039
+ Ka = 1;
28034
28040
  var e = z && z.__assign || function() {
28035
- return e = Object.assign || function(c) {
28041
+ return e = Object.assign || function(d) {
28036
28042
  for (var n, o = 1, y = arguments.length; o < y; o++) {
28037
28043
  n = arguments[o];
28038
- for (var b in n) Object.prototype.hasOwnProperty.call(n, b) && (c[b] = n[b]);
28044
+ for (var b in n) Object.prototype.hasOwnProperty.call(n, b) && (d[b] = n[b]);
28039
28045
  }
28040
- return c;
28046
+ return d;
28041
28047
  }, e.apply(this, arguments);
28042
- }, i = z && z.__awaiter || function(c, n, o, y) {
28043
- function b(d) {
28044
- return d instanceof o ? d : new o(function(T) {
28045
- T(d);
28048
+ }, i = z && z.__awaiter || function(d, n, o, y) {
28049
+ function b(c) {
28050
+ return c instanceof o ? c : new o(function(T) {
28051
+ T(c);
28046
28052
  });
28047
28053
  }
28048
- return new (o || (o = Promise))(function(d, T) {
28054
+ return new (o || (o = Promise))(function(c, T) {
28049
28055
  function S(D) {
28050
28056
  try {
28051
28057
  v(y.next(D));
@@ -28061,15 +28067,15 @@ function ua() {
28061
28067
  }
28062
28068
  }
28063
28069
  function v(D) {
28064
- D.done ? d(D.value) : b(D.value).then(S, E);
28070
+ D.done ? c(D.value) : b(D.value).then(S, E);
28065
28071
  }
28066
- v((y = y.apply(c, n || [])).next());
28072
+ v((y = y.apply(d, n || [])).next());
28067
28073
  });
28068
- }, m = z && z.__generator || function(c, n) {
28074
+ }, m = z && z.__generator || function(d, n) {
28069
28075
  var o = { label: 0, sent: function() {
28070
- if (d[0] & 1) throw d[1];
28071
- return d[1];
28072
- }, trys: [], ops: [] }, y, b, d, T = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
28076
+ if (c[0] & 1) throw c[1];
28077
+ return c[1];
28078
+ }, trys: [], ops: [] }, y, b, c, T = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
28073
28079
  return T.next = S(0), T.throw = S(1), T.return = S(2), typeof Symbol == "function" && (T[Symbol.iterator] = function() {
28074
28080
  return this;
28075
28081
  }), T;
@@ -28081,11 +28087,11 @@ function ua() {
28081
28087
  function E(v) {
28082
28088
  if (y) throw new TypeError("Generator is already executing.");
28083
28089
  for (; T && (T = 0, v[0] && (o = 0)), o; ) try {
28084
- if (y = 1, b && (d = v[0] & 2 ? b.return : v[0] ? b.throw || ((d = b.return) && d.call(b), 0) : b.next) && !(d = d.call(b, v[1])).done) return d;
28085
- switch (b = 0, d && (v = [v[0] & 2, d.value]), v[0]) {
28090
+ if (y = 1, b && (c = v[0] & 2 ? b.return : v[0] ? b.throw || ((c = b.return) && c.call(b), 0) : b.next) && !(c = c.call(b, v[1])).done) return c;
28091
+ switch (b = 0, c && (v = [v[0] & 2, c.value]), v[0]) {
28086
28092
  case 0:
28087
28093
  case 1:
28088
- d = v;
28094
+ c = v;
28089
28095
  break;
28090
28096
  case 4:
28091
28097
  return o.label++, { value: v[1], done: !1 };
@@ -28096,41 +28102,41 @@ function ua() {
28096
28102
  v = o.ops.pop(), o.trys.pop();
28097
28103
  continue;
28098
28104
  default:
28099
- if (d = o.trys, !(d = d.length > 0 && d[d.length - 1]) && (v[0] === 6 || v[0] === 2)) {
28105
+ if (c = o.trys, !(c = c.length > 0 && c[c.length - 1]) && (v[0] === 6 || v[0] === 2)) {
28100
28106
  o = 0;
28101
28107
  continue;
28102
28108
  }
28103
- if (v[0] === 3 && (!d || v[1] > d[0] && v[1] < d[3])) {
28109
+ if (v[0] === 3 && (!c || v[1] > c[0] && v[1] < c[3])) {
28104
28110
  o.label = v[1];
28105
28111
  break;
28106
28112
  }
28107
- if (v[0] === 6 && o.label < d[1]) {
28108
- o.label = d[1], d = v;
28113
+ if (v[0] === 6 && o.label < c[1]) {
28114
+ o.label = c[1], c = v;
28109
28115
  break;
28110
28116
  }
28111
- if (d && o.label < d[2]) {
28112
- o.label = d[2], o.ops.push(v);
28117
+ if (c && o.label < c[2]) {
28118
+ o.label = c[2], o.ops.push(v);
28113
28119
  break;
28114
28120
  }
28115
- d[2] && o.ops.pop(), o.trys.pop();
28121
+ c[2] && o.ops.pop(), o.trys.pop();
28116
28122
  continue;
28117
28123
  }
28118
- v = n.call(c, o);
28124
+ v = n.call(d, o);
28119
28125
  } catch (D) {
28120
28126
  v = [6, D], b = 0;
28121
28127
  } finally {
28122
- y = d = 0;
28128
+ y = c = 0;
28123
28129
  }
28124
28130
  if (v[0] & 5) throw v[1];
28125
28131
  return { value: v[0] ? v[1] : void 0, done: !0 };
28126
28132
  }
28127
- }, t = z && z.__importDefault || function(c) {
28128
- return c && c.__esModule ? c : { default: c };
28133
+ }, l = z && z.__importDefault || function(d) {
28134
+ return d && d.__esModule ? d : { default: d };
28129
28135
  };
28130
28136
  Object.defineProperty(z, "__esModule", { value: !0 }), z.useWebSocket = void 0;
28131
- var r = Le, p = rl, f = j(), _ = Ml(), u = Rl(), g = t(Pl()), s = sa(), l = function(c, n, o) {
28137
+ var r = Le, p = rt, f = j(), _ = Mt(), g = Rt(), u = l(Pt()), s = ua(), t = function(d, n, o) {
28132
28138
  n === void 0 && (n = f.DEFAULT_OPTIONS), o === void 0 && (o = !0);
28133
- var y = (0, r.useState)(null), b = y[0], d = y[1], T = (0, r.useState)({}), S = T[0], E = T[1], v = (0, r.useMemo)(function() {
28139
+ var y = (0, r.useState)(null), b = y[0], c = y[1], T = (0, r.useState)({}), S = T[0], E = T[1], v = (0, r.useMemo)(function() {
28134
28140
  if (!n.disableJson && b)
28135
28141
  try {
28136
28142
  return JSON.parse(b.data);
@@ -28138,10 +28144,10 @@ function ua() {
28138
28144
  return f.UNPARSABLE_JSON_OBJECT;
28139
28145
  }
28140
28146
  return null;
28141
- }, [b, n.disableJson]), D = (0, r.useRef)(null), L = (0, r.useRef)(null), A = (0, r.useRef)(function() {
28142
- }), Q = (0, r.useRef)(0), Te = (0, r.useRef)(Date.now()), Ge = (0, r.useRef)([]), I = (0, r.useRef)(null), w = (0, r.useRef)(n);
28147
+ }, [b, n.disableJson]), D = (0, r.useRef)(null), L = (0, r.useRef)(null), I = (0, r.useRef)(function() {
28148
+ }), Q = (0, r.useRef)(0), Te = (0, r.useRef)(Date.now()), Ge = (0, r.useRef)([]), B = (0, r.useRef)(null), w = (0, r.useRef)(n);
28143
28149
  w.current = n;
28144
- var V = D.current && S[D.current] !== void 0 ? S[D.current] : c !== null && o === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED, me = n.queryParams ? JSON.stringify(n.queryParams) : null, q = (0, r.useCallback)(function(x, F) {
28150
+ var V = D.current && S[D.current] !== void 0 ? S[D.current] : d !== null && o === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED, me = n.queryParams ? JSON.stringify(n.queryParams) : null, q = (0, r.useCallback)(function(x, F) {
28145
28151
  var Y;
28146
28152
  if (F === void 0 && (F = !0), f.isEventSourceSupported && L.current instanceof EventSource) {
28147
28153
  console.warn("Unable to send a message from an eventSource");
@@ -28151,19 +28157,19 @@ function ua() {
28151
28157
  }, []), Me = (0, r.useCallback)(function(x, F) {
28152
28158
  F === void 0 && (F = !0), q(JSON.stringify(x), F);
28153
28159
  }, [q]), Re = (0, r.useCallback)(function() {
28154
- return w.current.share !== !0 || f.isEventSourceSupported && L.current instanceof EventSource ? L.current : (I.current === null && L.current && ((0, s.assertIsWebSocket)(L.current, w.current.skipAssert), I.current = (0, g.default)(L.current, A)), I.current);
28160
+ return w.current.share !== !0 || f.isEventSourceSupported && L.current instanceof EventSource ? L.current : (B.current === null && L.current && ((0, s.assertIsWebSocket)(L.current, w.current.skipAssert), B.current = (0, u.default)(L.current, I)), B.current);
28155
28161
  }, []);
28156
28162
  return (0, r.useEffect)(function() {
28157
- if (c !== null && o === !0) {
28163
+ if (d !== null && o === !0) {
28158
28164
  var x, F = !1, Y = !0, Ce = function() {
28159
28165
  return i(void 0, void 0, void 0, function() {
28160
28166
  var re, ie, Pe;
28161
- return m(this, function(de) {
28162
- switch (de.label) {
28167
+ return m(this, function(ce) {
28168
+ switch (ce.label) {
28163
28169
  case 0:
28164
- return re = D, [4, (0, u.getUrl)(c, w)];
28170
+ return re = D, [4, (0, g.getUrl)(d, w)];
28165
28171
  case 1:
28166
- return re.current = de.sent(), D.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), D.current = "ABORTED", (0, p.flushSync)(function() {
28172
+ return re.current = ce.sent(), D.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), D.current = "ABORTED", (0, p.flushSync)(function() {
28167
28173
  return E(function(X) {
28168
28174
  return e(e({}, X), { ABORTED: f.ReadyState.CLOSED });
28169
28175
  });
@@ -28172,16 +28178,16 @@ function ua() {
28172
28178
  /*return*/
28173
28179
  ]) : (ie = function(X) {
28174
28180
  F || (0, p.flushSync)(function() {
28175
- return d(X);
28181
+ return c(X);
28176
28182
  });
28177
28183
  }, Pe = function(X) {
28178
28184
  F || (0, p.flushSync)(function() {
28179
- return E(function(ce) {
28185
+ return E(function(_e) {
28180
28186
  var oe;
28181
- return e(e({}, ce), D.current && (oe = {}, oe[D.current] = X, oe));
28187
+ return e(e({}, _e), D.current && (oe = {}, oe[D.current] = X, oe));
28182
28188
  });
28183
28189
  });
28184
- }, Y && (x = (0, _.createOrJoinSocket)(L, D.current, Pe, w, ie, A, Q, Te, q)), [
28190
+ }, Y && (x = (0, _.createOrJoinSocket)(L, D.current, Pe, w, ie, I, Q, Te, q)), [
28185
28191
  2
28186
28192
  /*return*/
28187
28193
  ]);
@@ -28189,16 +28195,16 @@ function ua() {
28189
28195
  });
28190
28196
  });
28191
28197
  };
28192
- return A.current = function() {
28193
- F || (I.current && (I.current = null), x?.(), Ce());
28198
+ return I.current = function() {
28199
+ F || (B.current && (B.current = null), x?.(), Ce());
28194
28200
  }, Ce(), function() {
28195
- F = !0, Y = !1, I.current && (I.current = null), x?.(), d(null);
28201
+ F = !0, Y = !1, B.current && (B.current = null), x?.(), c(null);
28196
28202
  };
28197
- } else (c === null || o === !1) && (Q.current = 0, E(function(re) {
28203
+ } else (d === null || o === !1) && (Q.current = 0, E(function(re) {
28198
28204
  var ie;
28199
28205
  return e(e({}, re), D.current && (ie = {}, ie[D.current] = f.ReadyState.CLOSED, ie));
28200
28206
  }));
28201
- }, [c, o, me, q]), (0, r.useEffect)(function() {
28207
+ }, [d, o, me, q]), (0, r.useEffect)(function() {
28202
28208
  V === f.ReadyState.OPEN && Ge.current.splice(0).forEach(function(x) {
28203
28209
  q(x);
28204
28210
  });
@@ -28211,84 +28217,84 @@ function ua() {
28211
28217
  getWebSocket: Re
28212
28218
  };
28213
28219
  };
28214
- return z.useWebSocket = l, z;
28220
+ return z.useWebSocket = t, z;
28215
28221
  }
28216
- var ge = {}, Ka;
28217
- function xl() {
28218
- if (Ka) return ge;
28219
- Ka = 1;
28222
+ var ge = {}, ja;
28223
+ function xt() {
28224
+ if (ja) return ge;
28225
+ ja = 1;
28220
28226
  var e = ge && ge.__assign || function() {
28221
28227
  return e = Object.assign || function(_) {
28222
- for (var u, g = 1, s = arguments.length; g < s; g++) {
28223
- u = arguments[g];
28224
- for (var l in u) Object.prototype.hasOwnProperty.call(u, l) && (_[l] = u[l]);
28228
+ for (var g, u = 1, s = arguments.length; u < s; u++) {
28229
+ g = arguments[u];
28230
+ for (var t in g) Object.prototype.hasOwnProperty.call(g, t) && (_[t] = g[t]);
28225
28231
  }
28226
28232
  return _;
28227
28233
  }, e.apply(this, arguments);
28228
28234
  };
28229
28235
  Object.defineProperty(ge, "__esModule", { value: !0 }), ge.useSocketIO = void 0;
28230
- var i = Le, m = ua(), t = j(), r = {
28236
+ var i = Le, m = pa(), l = j(), r = {
28231
28237
  type: "empty",
28232
28238
  payload: null
28233
28239
  }, p = function(_) {
28234
28240
  if (!_ || !_.data)
28235
28241
  return r;
28236
- var u = _.data.match(/\[.*]/);
28237
- if (!u)
28242
+ var g = _.data.match(/\[.*]/);
28243
+ if (!g)
28238
28244
  return r;
28239
- var g = JSON.parse(u);
28240
- return !Array.isArray(g) || !g[1] ? r : {
28241
- type: g[0],
28242
- payload: g[1]
28245
+ var u = JSON.parse(g);
28246
+ return !Array.isArray(u) || !u[1] ? r : {
28247
+ type: u[0],
28248
+ payload: u[1]
28243
28249
  };
28244
- }, f = function(_, u, g) {
28245
- u === void 0 && (u = t.DEFAULT_OPTIONS), g === void 0 && (g = !0);
28250
+ }, f = function(_, g, u) {
28251
+ g === void 0 && (g = l.DEFAULT_OPTIONS), u === void 0 && (u = !0);
28246
28252
  var s = (0, i.useMemo)(function() {
28247
- return e(e({}, u), { fromSocketIO: !0 });
28248
- }, []), l = (0, m.useWebSocket)(_, s, g), c = l.sendMessage, n = l.sendJsonMessage, o = l.lastMessage, y = l.readyState, b = l.getWebSocket, d = (0, i.useMemo)(function() {
28253
+ return e(e({}, g), { fromSocketIO: !0 });
28254
+ }, []), t = (0, m.useWebSocket)(_, s, u), d = t.sendMessage, n = t.sendJsonMessage, o = t.lastMessage, y = t.readyState, b = t.getWebSocket, c = (0, i.useMemo)(function() {
28249
28255
  return p(o);
28250
28256
  }, [o]);
28251
28257
  return {
28252
- sendMessage: c,
28258
+ sendMessage: d,
28253
28259
  sendJsonMessage: n,
28254
- lastMessage: d,
28255
- lastJsonMessage: d,
28260
+ lastMessage: c,
28261
+ lastJsonMessage: c,
28256
28262
  readyState: y,
28257
28263
  getWebSocket: b
28258
28264
  };
28259
28265
  };
28260
28266
  return ge.useSocketIO = f, ge;
28261
28267
  }
28262
- var ae = {}, ja;
28263
- function Ol() {
28264
- if (ja) return ae;
28265
- ja = 1;
28268
+ var ae = {}, Qa;
28269
+ function Ot() {
28270
+ if (Qa) return ae;
28271
+ Qa = 1;
28266
28272
  var e = ae && ae.__assign || function() {
28267
28273
  return e = Object.assign || function(f) {
28268
- for (var _, u = 1, g = arguments.length; u < g; u++) {
28269
- _ = arguments[u];
28274
+ for (var _, g = 1, u = arguments.length; g < u; g++) {
28275
+ _ = arguments[g];
28270
28276
  for (var s in _) Object.prototype.hasOwnProperty.call(_, s) && (f[s] = _[s]);
28271
28277
  }
28272
28278
  return f;
28273
28279
  }, e.apply(this, arguments);
28274
28280
  }, i = ae && ae.__rest || function(f, _) {
28275
- var u = {};
28276
- for (var g in f) Object.prototype.hasOwnProperty.call(f, g) && _.indexOf(g) < 0 && (u[g] = f[g]);
28281
+ var g = {};
28282
+ for (var u in f) Object.prototype.hasOwnProperty.call(f, u) && _.indexOf(u) < 0 && (g[u] = f[u]);
28277
28283
  if (f != null && typeof Object.getOwnPropertySymbols == "function")
28278
- for (var s = 0, g = Object.getOwnPropertySymbols(f); s < g.length; s++)
28279
- _.indexOf(g[s]) < 0 && Object.prototype.propertyIsEnumerable.call(f, g[s]) && (u[g[s]] = f[g[s]]);
28280
- return u;
28284
+ for (var s = 0, u = Object.getOwnPropertySymbols(f); s < u.length; s++)
28285
+ _.indexOf(u[s]) < 0 && Object.prototype.propertyIsEnumerable.call(f, u[s]) && (g[u[s]] = f[u[s]]);
28286
+ return g;
28281
28287
  };
28282
28288
  Object.defineProperty(ae, "__esModule", { value: !0 }), ae.useEventSource = void 0;
28283
- var m = Le, t = ua(), r = j(), p = function(f, _, u) {
28289
+ var m = Le, l = pa(), r = j(), p = function(f, _, g) {
28284
28290
  _ === void 0 && (_ = r.DEFAULT_EVENT_SOURCE_OPTIONS);
28285
- var g = _.withCredentials, s = _.events, l = i(_, ["withCredentials", "events"]);
28286
- u === void 0 && (u = !0);
28287
- var c = e(e({}, l), { eventSourceOptions: {
28288
- withCredentials: g
28291
+ var u = _.withCredentials, s = _.events, t = i(_, ["withCredentials", "events"]);
28292
+ g === void 0 && (g = !0);
28293
+ var d = e(e({}, t), { eventSourceOptions: {
28294
+ withCredentials: u
28289
28295
  } }), n = (0, m.useRef)(r.EMPTY_EVENT_HANDLERS);
28290
28296
  s && (n.current = s);
28291
- var o = (0, t.useWebSocket)(f, c, u), y = o.lastMessage, b = o.readyState, d = o.getWebSocket;
28297
+ var o = (0, l.useWebSocket)(f, d, g), y = o.lastMessage, b = o.readyState, c = o.getWebSocket;
28292
28298
  return (0, m.useEffect)(function() {
28293
28299
  y?.type && Object.entries(n.current).forEach(function(T) {
28294
28300
  var S = T[0], E = T[1];
@@ -28297,39 +28303,39 @@ function Ol() {
28297
28303
  }, [y]), {
28298
28304
  lastEvent: y,
28299
28305
  readyState: b,
28300
- getEventSource: d
28306
+ getEventSource: c
28301
28307
  };
28302
28308
  };
28303
28309
  return ae.useEventSource = p, ae;
28304
28310
  }
28305
- var Qa;
28306
- function Hl() {
28307
- return Qa || (Qa = 1, (function(e) {
28311
+ var qa;
28312
+ function Ht() {
28313
+ return qa || (qa = 1, (function(e) {
28308
28314
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
28309
- var i = ua();
28315
+ var i = pa();
28310
28316
  Object.defineProperty(e, "default", { enumerable: !0, get: function() {
28311
28317
  return i.useWebSocket;
28312
28318
  } });
28313
- var m = xl();
28319
+ var m = xt();
28314
28320
  Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
28315
28321
  return m.useSocketIO;
28316
28322
  } });
28317
- var t = j();
28323
+ var l = j();
28318
28324
  Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
28319
- return t.ReadyState;
28325
+ return l.ReadyState;
28320
28326
  } });
28321
- var r = Ol();
28327
+ var r = Ot();
28322
28328
  Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
28323
28329
  return r.useEventSource;
28324
28330
  } });
28325
- var p = sa();
28331
+ var p = ua();
28326
28332
  Object.defineProperty(e, "resetGlobalState", { enumerable: !0, get: function() {
28327
28333
  return p.resetGlobalState;
28328
28334
  } });
28329
28335
  })(Ye)), Ye;
28330
28336
  }
28331
- var wl = Hl();
28332
- const Fl = /* @__PURE__ */ ol(wl), B = {
28337
+ var wt = Ht();
28338
+ const Ft = /* @__PURE__ */ ot(wt), K = {
28333
28339
  DEPOSIT: "deposit",
28334
28340
  TRANS_CODE: "transCode",
28335
28341
  ERROR: "error",
@@ -28340,12 +28346,12 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28340
28346
  TRANSFER_IN_GAME: "transfer_in_game",
28341
28347
  CHECK_REQUEST: "CHECK_RREQUEST",
28342
28348
  CASH_REGISTER_LIMIT: "cash_register_limit"
28343
- }, Wl = 3e4, ft = ({
28349
+ }, Wt = 3e4, Ul = ({
28344
28350
  socketUrl: e,
28345
28351
  socketHandlers: i = {},
28346
28352
  options: m = {}
28347
28353
  }) => {
28348
- const t = Ea(!1), r = Ea(i), {
28354
+ const l = La(!1), r = La(i), {
28349
28355
  sendMessage: p,
28350
28356
  // 發送普通訊息
28351
28357
  sendJsonMessage: f,
@@ -28353,17 +28359,17 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28353
28359
  lastMessage: _,
28354
28360
  // 最後接收到的訊息
28355
28361
  // lastJsonMessage, // 最後接收到的 JSON 訊息
28356
- readyState: u
28362
+ readyState: g
28357
28363
  // WebSocket 連線狀態
28358
28364
  // getWebSocket, // 獲取 WebSocket 實例
28359
- } = Fl(e, {
28365
+ } = Ft(e, {
28360
28366
  queryParams: { key: "wsky" },
28361
28367
  onOpen: () => console.log("連線成功"),
28362
- shouldReconnect: () => t.current === !1,
28368
+ shouldReconnect: () => l.current === !1,
28363
28369
  reconnectAttempts: 9999,
28364
28370
  reconnectInterval: 1e3,
28365
28371
  ...m
28366
- }), g = ia(() => {
28372
+ }), u = ia(() => {
28367
28373
  try {
28368
28374
  return JSON.parse(_?.data);
28369
28375
  } catch {
@@ -28373,92 +28379,92 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28373
28379
  return De(() => {
28374
28380
  const s = setInterval(
28375
28381
  () => p("ping"),
28376
- Wl
28382
+ Wt
28377
28383
  );
28378
28384
  return () => clearInterval(s);
28379
28385
  }, [p]), De(() => {
28380
28386
  r.current = i;
28381
28387
  }, [i]), De(() => {
28382
- if (!g) return;
28388
+ if (!u) return;
28383
28389
  const {
28384
28390
  onDeposit: s,
28385
- onTransCode: l,
28386
- onError: c,
28391
+ onTransCode: t,
28392
+ onError: d,
28387
28393
  onUpdateMember: n,
28388
28394
  onMaintainNotice: o,
28389
28395
  onMaintainNoticeMember: y,
28390
28396
  onReload: b,
28391
- onTransferInGame: d,
28397
+ onTransferInGame: c,
28392
28398
  onCashRegisterLimit: T
28393
- } = r.current, S = we(g, "type", ""), E = {
28394
- memberInfoUid: we(g, "member_info_uid", null),
28395
- data: we(g, "data", null),
28396
- memo: we(g, "memo", null)
28399
+ } = r.current, S = we(u, "type", ""), E = {
28400
+ memberInfoUid: we(u, "member_info_uid", null),
28401
+ data: we(u, "data", null),
28402
+ memo: we(u, "memo", null)
28397
28403
  };
28398
28404
  switch (S) {
28399
- case B.DEPOSIT:
28405
+ case K.DEPOSIT:
28400
28406
  s?.(E);
28401
28407
  break;
28402
- case B.TRANS_CODE:
28403
- l?.(E);
28408
+ case K.TRANS_CODE:
28409
+ t?.(E);
28404
28410
  break;
28405
- case B.ERROR:
28406
- c?.(E);
28411
+ case K.ERROR:
28412
+ d?.(E);
28407
28413
  break;
28408
- case B.UPDATE_MEMBER:
28414
+ case K.UPDATE_MEMBER:
28409
28415
  n?.(E);
28410
28416
  break;
28411
- case B.MAINTAIN_NOTICE:
28417
+ case K.MAINTAIN_NOTICE:
28412
28418
  o?.(E);
28413
28419
  break;
28414
- case B.MAINTAIN_NOTICE_MEMBER:
28420
+ case K.MAINTAIN_NOTICE_MEMBER:
28415
28421
  y?.(E);
28416
28422
  break;
28417
- case B.RELOAD:
28423
+ case K.RELOAD:
28418
28424
  b?.(E);
28419
28425
  break;
28420
- case B.TRANSFER_IN_GAME:
28421
- case B.CHECK_REQUEST:
28422
- d?.(E);
28426
+ case K.TRANSFER_IN_GAME:
28427
+ case K.CHECK_REQUEST:
28428
+ c?.(E);
28423
28429
  break;
28424
- case B.CASH_REGISTER_LIMIT:
28430
+ case K.CASH_REGISTER_LIMIT:
28425
28431
  T?.(E);
28426
28432
  break;
28427
28433
  default:
28428
28434
  console.warn("Unknown socket type:", S);
28429
28435
  break;
28430
28436
  }
28431
- }, [g]), De(() => () => t.current = !0, []), {
28437
+ }, [u]), De(() => () => l.current = !0, []), {
28432
28438
  sendMessage: p,
28433
28439
  sendJsonMessage: f,
28434
- readyState: u
28440
+ readyState: g
28435
28441
  // WebSocket 連線狀態
28436
28442
  };
28437
28443
  }, fi = () => {
28438
- const { client: e } = ne(), i = K(async () => {
28439
- const { data: t } = await e.get("/carousels");
28440
- return t;
28441
- }, [e]), m = K(async () => await e.get("/marquees"), [e]);
28444
+ const { client: e } = ne(), i = A(async () => {
28445
+ const { data: l } = await e.get("/carousels");
28446
+ return l;
28447
+ }, [e]), m = A(async () => await e.get("/marquees"), [e]);
28442
28448
  return { commonCarouselApi: i, commonMarqueeApi: m };
28443
- }, Ut = () => {
28449
+ }, yl = () => {
28444
28450
  const { commonCarouselApi: e } = fi();
28445
- return le({
28451
+ return te({
28446
28452
  queryKey: ["getCarouselList"],
28447
28453
  queryFn: async () => await e()
28448
28454
  });
28449
- }, yt = () => {
28455
+ }, bl = () => {
28450
28456
  const { lng: e } = ne(), { commonMarqueeApi: i } = fi(), m = ci(e);
28451
- return le({
28457
+ return te({
28452
28458
  queryKey: ["getMarqueeList"],
28453
28459
  queryFn: async () => i(),
28454
- select: (t) => {
28455
- const r = t.Marquees;
28460
+ select: (l) => {
28461
+ const r = l.Marquees;
28456
28462
  return Ie(r, (f) => f[m] || f["en-US"]);
28457
28463
  }
28458
28464
  });
28459
- }, Jl = () => {
28465
+ }, Jt = () => {
28460
28466
  const { client: e, lng: i } = ne(), m = ci(i || "tw");
28461
- return { playGameApi: K(
28467
+ return { playGameApi: A(
28462
28468
  async (r) => {
28463
28469
  const {
28464
28470
  gameUid: p = "",
@@ -28467,9 +28473,9 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28467
28473
  // 遊戲代碼
28468
28474
  isMobile: _ = !1,
28469
28475
  // 是否為行動裝置
28470
- gameCurrency: u = "",
28476
+ gameCurrency: g = "",
28471
28477
  // 遊戲幣別
28472
- currentCurrency: g = ""
28478
+ currentCurrency: u = ""
28473
28479
  // 目前使用的幣別
28474
28480
  } = r;
28475
28481
  return await e.post("/game/go", {
@@ -28477,31 +28483,31 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28477
28483
  gameCode: f,
28478
28484
  lang: m,
28479
28485
  is_mobile: _,
28480
- currency_code: u,
28481
- gameCurrencyNow: g,
28482
- walletCurrencyNow: g
28486
+ currency_code: g,
28487
+ gameCurrencyNow: u,
28488
+ walletCurrencyNow: u
28483
28489
  });
28484
28490
  },
28485
28491
  [e, m]
28486
28492
  ) };
28487
- }, Ui = "3.7.8", zl = Ui, be = typeof Buffer == "function", qa = typeof TextDecoder == "function" ? new TextDecoder() : void 0, Ya = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Zl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ee = Array.prototype.slice.call(Zl), Je = ((e) => {
28493
+ }, Ui = "3.7.8", zt = Ui, be = typeof Buffer == "function", Ya = typeof TextDecoder == "function" ? new TextDecoder() : void 0, Xa = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Zt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ee = Array.prototype.slice.call(Zt), Je = ((e) => {
28488
28494
  let i = {};
28489
- return e.forEach((m, t) => i[m] = t), i;
28490
- })(Ee), Vl = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, H = String.fromCharCode.bind(String), Xa = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), yi = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (i) => i == "+" ? "-" : "_"), bi = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Ti = (e) => {
28491
- let i, m, t, r, p = "";
28495
+ return e.forEach((m, l) => i[m] = l), i;
28496
+ })(Ee), Vt = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, H = String.fromCharCode.bind(String), $a = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), yi = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (i) => i == "+" ? "-" : "_"), bi = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Ti = (e) => {
28497
+ let i, m, l, r, p = "";
28492
28498
  const f = e.length % 3;
28493
28499
  for (let _ = 0; _ < e.length; ) {
28494
- if ((m = e.charCodeAt(_++)) > 255 || (t = e.charCodeAt(_++)) > 255 || (r = e.charCodeAt(_++)) > 255)
28500
+ if ((m = e.charCodeAt(_++)) > 255 || (l = e.charCodeAt(_++)) > 255 || (r = e.charCodeAt(_++)) > 255)
28495
28501
  throw new TypeError("invalid character found");
28496
- i = m << 16 | t << 8 | r, p += Ee[i >> 18 & 63] + Ee[i >> 12 & 63] + Ee[i >> 6 & 63] + Ee[i & 63];
28502
+ i = m << 16 | l << 8 | r, p += Ee[i >> 18 & 63] + Ee[i >> 12 & 63] + Ee[i >> 6 & 63] + Ee[i & 63];
28497
28503
  }
28498
28504
  return f ? p.slice(0, f - 3) + "===".substring(f) : p;
28499
- }, pa = typeof btoa == "function" ? (e) => btoa(e) : be ? (e) => Buffer.from(e, "binary").toString("base64") : Ti, la = be ? (e) => Buffer.from(e).toString("base64") : (e) => {
28505
+ }, ga = typeof btoa == "function" ? (e) => btoa(e) : be ? (e) => Buffer.from(e, "binary").toString("base64") : Ti, ta = be ? (e) => Buffer.from(e).toString("base64") : (e) => {
28500
28506
  let m = [];
28501
- for (let t = 0, r = e.length; t < r; t += 4096)
28502
- m.push(H.apply(null, e.subarray(t, t + 4096)));
28503
- return pa(m.join(""));
28504
- }, Ze = (e, i = !1) => i ? yi(la(e)) : la(e), Al = (e) => {
28507
+ for (let l = 0, r = e.length; l < r; l += 4096)
28508
+ m.push(H.apply(null, e.subarray(l, l + 4096)));
28509
+ return ga(m.join(""));
28510
+ }, Ze = (e, i = !1) => i ? yi(ta(e)) : ta(e), At = (e) => {
28505
28511
  if (e.length < 2) {
28506
28512
  var i = e.charCodeAt(0);
28507
28513
  return i < 128 ? e : i < 2048 ? H(192 | i >>> 6) + H(128 | i & 63) : H(224 | i >>> 12 & 15) + H(128 | i >>> 6 & 63) + H(128 | i & 63);
@@ -28509,7 +28515,7 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28509
28515
  var i = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
28510
28516
  return H(240 | i >>> 18 & 7) + H(128 | i >>> 12 & 63) + H(128 | i >>> 6 & 63) + H(128 | i & 63);
28511
28517
  }
28512
- }, Il = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Ci = (e) => e.replace(Il, Al), $a = be ? (e) => Buffer.from(e, "utf8").toString("base64") : Ya ? (e) => la(Ya.encode(e)) : (e) => pa(Ci(e)), Ue = (e, i = !1) => i ? yi($a(e)) : $a(e), ei = (e) => Ue(e, !0), Bl = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Kl = (e) => {
28518
+ }, It = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Ci = (e) => e.replace(It, At), ei = be ? (e) => Buffer.from(e, "utf8").toString("base64") : Xa ? (e) => ta(Xa.encode(e)) : (e) => ga(Ci(e)), ye = (e, i = !1) => i ? yi(ei(e)) : ei(e), ai = (e) => ye(e, !0), Bt = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Kt = (e) => {
28513
28519
  switch (e.length) {
28514
28520
  case 4:
28515
28521
  var i = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), m = i - 65536;
@@ -28519,15 +28525,15 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28519
28525
  default:
28520
28526
  return H((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
28521
28527
  }
28522
- }, vi = (e) => e.replace(Bl, Kl), hi = (e) => {
28523
- if (e = e.replace(/\s+/g, ""), !Vl.test(e))
28528
+ }, vi = (e) => e.replace(Bt, Kt), hi = (e) => {
28529
+ if (e = e.replace(/\s+/g, ""), !Vt.test(e))
28524
28530
  throw new TypeError("malformed base64.");
28525
28531
  e += "==".slice(2 - (e.length & 3));
28526
- let i, m, t, r = [];
28532
+ let i, m, l, r = [];
28527
28533
  for (let p = 0; p < e.length; )
28528
- i = Je[e.charAt(p++)] << 18 | Je[e.charAt(p++)] << 12 | (m = Je[e.charAt(p++)]) << 6 | (t = Je[e.charAt(p++)]), m === 64 ? r.push(H(i >> 16 & 255)) : t === 64 ? r.push(H(i >> 16 & 255, i >> 8 & 255)) : r.push(H(i >> 16 & 255, i >> 8 & 255, i & 255));
28534
+ i = Je[e.charAt(p++)] << 18 | Je[e.charAt(p++)] << 12 | (m = Je[e.charAt(p++)]) << 6 | (l = Je[e.charAt(p++)]), m === 64 ? r.push(H(i >> 16 & 255)) : l === 64 ? r.push(H(i >> 16 & 255, i >> 8 & 255)) : r.push(H(i >> 16 & 255, i >> 8 & 255, i & 255));
28529
28535
  return r.join("");
28530
- }, ga = typeof atob == "function" ? (e) => atob(bi(e)) : be ? (e) => Buffer.from(e, "base64").toString("binary") : hi, ki = be ? (e) => Xa(Buffer.from(e, "base64")) : (e) => Xa(ga(e).split("").map((i) => i.charCodeAt(0))), Si = (e) => ki(Ni(e)), jl = be ? (e) => Buffer.from(e, "base64").toString("utf8") : qa ? (e) => qa.decode(ki(e)) : (e) => vi(ga(e)), Ni = (e) => bi(e.replace(/[-_]/g, (i) => i == "-" ? "+" : "/")), ta = (e) => jl(Ni(e)), Ql = (e) => {
28536
+ }, da = typeof atob == "function" ? (e) => atob(bi(e)) : be ? (e) => Buffer.from(e, "base64").toString("binary") : hi, ki = be ? (e) => $a(Buffer.from(e, "base64")) : (e) => $a(da(e).split("").map((i) => i.charCodeAt(0))), Si = (e) => ki(Ni(e)), jt = be ? (e) => Buffer.from(e, "base64").toString("utf8") : Ya ? (e) => Ya.decode(ki(e)) : (e) => vi(da(e)), Ni = (e) => bi(e.replace(/[-_]/g, (i) => i == "-" ? "+" : "/")), la = (e) => jt(Ni(e)), Qt = (e) => {
28531
28537
  if (typeof e != "string")
28532
28538
  return !1;
28533
28539
  const i = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
@@ -28540,13 +28546,13 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28540
28546
  }), Ei = function() {
28541
28547
  const e = (i, m) => Object.defineProperty(String.prototype, i, Di(m));
28542
28548
  e("fromBase64", function() {
28543
- return ta(this);
28549
+ return la(this);
28544
28550
  }), e("toBase64", function(i) {
28545
- return Ue(this, i);
28551
+ return ye(this, i);
28546
28552
  }), e("toBase64URI", function() {
28547
- return Ue(this, !0);
28553
+ return ye(this, !0);
28548
28554
  }), e("toBase64URL", function() {
28549
- return Ue(this, !0);
28555
+ return ye(this, !0);
28550
28556
  }), e("toUint8Array", function() {
28551
28557
  return Si(this);
28552
28558
  });
@@ -28559,86 +28565,95 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28559
28565
  }), e("toBase64URL", function() {
28560
28566
  return Ze(this, !0);
28561
28567
  });
28562
- }, ql = () => {
28568
+ }, qt = () => {
28563
28569
  Ei(), Li();
28564
- }, Yl = {
28570
+ }, Yt = {
28565
28571
  version: Ui,
28566
- VERSION: zl,
28567
- atob: ga,
28572
+ VERSION: zt,
28573
+ atob: da,
28568
28574
  atobPolyfill: hi,
28569
- btoa: pa,
28575
+ btoa: ga,
28570
28576
  btoaPolyfill: Ti,
28571
- fromBase64: ta,
28572
- toBase64: Ue,
28573
- encode: Ue,
28574
- encodeURI: ei,
28575
- encodeURL: ei,
28577
+ fromBase64: la,
28578
+ toBase64: ye,
28579
+ encode: ye,
28580
+ encodeURI: ai,
28581
+ encodeURL: ai,
28576
28582
  utob: Ci,
28577
28583
  btou: vi,
28578
- decode: ta,
28579
- isValid: Ql,
28584
+ decode: la,
28585
+ isValid: Qt,
28580
28586
  fromUint8Array: Ze,
28581
28587
  toUint8Array: Si,
28582
28588
  extendString: Ei,
28583
28589
  extendUint8Array: Li,
28584
- extendBuiltins: ql
28585
- }, bt = (e, i) => {
28586
- const { playGameApi: m } = Jl();
28587
- return le({
28590
+ extendBuiltins: qt
28591
+ }, Tl = (e, i) => {
28592
+ const { playGameApi: m } = Jt();
28593
+ return te({
28588
28594
  queryKey: ["playGame"],
28589
28595
  queryFn: async () => {
28590
- const { gameUid: t, gameCode: r, isMobile: p, gameCurrency: f, currentCurrency: _ } = e || {}, u = await m({
28591
- gameUid: t,
28596
+ const { gameUid: l, gameCode: r, isMobile: p, gameCurrency: f, currentCurrency: _ } = e || {}, g = await m({
28597
+ gameUid: l,
28592
28598
  gameCode: r,
28593
28599
  isMobile: p,
28594
28600
  gameCurrency: f,
28595
28601
  currentCurrency: _
28596
28602
  }), {
28597
- game_currency: g,
28603
+ game_currency: u,
28598
28604
  lang: s,
28599
- not_support_iframe: l,
28600
- portrait: c,
28605
+ not_support_iframe: t,
28606
+ portrait: d,
28601
28607
  url: n,
28602
28608
  is_html_code: o,
28603
28609
  message: y
28604
- } = u;
28610
+ } = g;
28605
28611
  return {
28606
- gameCurrency: g,
28612
+ gameCurrency: u,
28607
28613
  lang: s,
28608
- supportIframe: !l,
28609
- supportPortrait: c,
28614
+ supportIframe: !t,
28615
+ supportPortrait: d,
28610
28616
  isHtmlCode: o,
28611
28617
  gameUrl: n,
28612
- decodeGameUrl: Yl.decode(n),
28618
+ decodeGameUrl: Yt.decode(n),
28613
28619
  message: y
28614
28620
  };
28615
28621
  },
28616
28622
  enabled: !!e?.gameCode,
28617
28623
  ...i
28618
28624
  });
28619
- }, Xl = ({ options: e } = {}) => {
28620
- const { userLoginApi: i } = ye();
28621
- return ri({
28625
+ }, Xt = ({ options: e } = {}) => {
28626
+ const { userLoginApi: i } = de();
28627
+ return na({
28622
28628
  mutationKey: ["userLogin"],
28623
28629
  mutationFn: async (m) => i(m),
28624
28630
  ...e
28625
28631
  });
28626
- }, $l = ({ options: e } = {}) => {
28627
- const { userLogoutApi: i } = ye();
28628
- return ri({
28632
+ }, $t = ({ options: e } = {}) => {
28633
+ const { userLogoutApi: i } = de();
28634
+ return na({
28629
28635
  mutationKey: ["userLogout"],
28630
28636
  mutationFn: async () => i(),
28631
28637
  ...e
28632
28638
  });
28633
- }, Tt = ({
28639
+ }, el = ({ options: e } = {}) => {
28640
+ const { addOrRemoveFavoriteGameApi: i } = de();
28641
+ return na({
28642
+ mutationKey: ["toggleFavoriteGame"],
28643
+ mutationFn: async (m, l) => i(m, l),
28644
+ ...e
28645
+ });
28646
+ }, Cl = ({
28634
28647
  options: e = {
28635
28648
  login: {},
28636
28649
  logout: {}
28637
28650
  }
28638
28651
  } = {}) => {
28639
- const i = Xl({ options: e.login }), m = $l({ options: e.logout });
28640
- return { login: i, logout: m };
28641
- }, ai = (e) => {
28652
+ const i = Xt({ options: e.login }), m = $t({ options: e.logout }), l = el({
28653
+ options: e.toggleFavoriteGame
28654
+ });
28655
+ return { login: i, logout: m, toggleFavoriteGame: l };
28656
+ }, ii = (e) => {
28642
28657
  switch (e) {
28643
28658
  case "tw":
28644
28659
  return "Tw";
@@ -28657,9 +28672,9 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28657
28672
  default:
28658
28673
  return "En";
28659
28674
  }
28660
- }, et = "https://d1h3qe8voog6w4.cloudfront.net", ii = "https://d3jx2uvukujuvn.cloudfront.net", li = "game-icon-ds88", Ct = ({ gameData: e = {} } = {}) => {
28661
- const { lng: i } = ne(), m = ai(i), {
28662
- gameCode: t,
28675
+ }, al = "https://d1h3qe8voog6w4.cloudfront.net", ti = "https://d3jx2uvukujuvn.cloudfront.net", li = "game-icon-ds88", vl = ({ gameData: e = {} } = {}) => {
28676
+ const { lng: i } = ne(), m = ii(i), {
28677
+ gameCode: l,
28663
28678
  // 遊戲代碼
28664
28679
  gameUid: r,
28665
28680
  // 遊戲唯一標識符
@@ -28670,15 +28685,15 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28670
28685
  // platform_enum: platformEnum, // 平台枚舉
28671
28686
  currencyCode: _,
28672
28687
  // 支援貨幣
28673
- enterLobbyMode: u,
28688
+ enterLobbyMode: g,
28674
28689
  // 進入大廳模式
28675
- game_platform: g,
28690
+ game_platform: u,
28676
28691
  // 遊戲平台
28677
28692
  game_subtype: s,
28678
28693
  // 遊戲子類型
28679
- game_type: l,
28694
+ game_type: t,
28680
28695
  // 遊戲類型
28681
- game_tags: c,
28696
+ game_tags: d,
28682
28697
  // 遊戲標籤
28683
28698
  isUnderMaintenance: n,
28684
28699
  // 是否維護中
@@ -28688,7 +28703,7 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28688
28703
  // 是否支援橫向
28689
28704
  userClickCount: b,
28690
28705
  // 用戶點擊次數
28691
- gameNameEn: d,
28706
+ gameNameEn: c,
28692
28707
  // 英文名稱
28693
28708
  gameNameZh: T,
28694
28709
  // 中文名稱
@@ -28696,23 +28711,23 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28696
28711
  // 越南名稱
28697
28712
  gameNameTw: E
28698
28713
  // 繁體中文名稱
28699
- } = e, v = e?.[`gameName${ai(m)}`], D = `${ii}/${li}/en/${g}/${Ga(t, / /g, "_")}.webp`, L = `${ii}/${li}/en/${g}/${Ga(t, / /g, "_")}.gif`;
28714
+ } = e, v = e?.[`gameName${ii(m)}`], D = `${ti}/${li}/en/${u}/${Ma(l, / /g, "_")}.webp`, L = `${ti}/${li}/en/${u}/${Ma(l, / /g, "_")}.gif`;
28700
28715
  return {
28701
- gameCode: t,
28716
+ gameCode: l,
28702
28717
  gameUid: r,
28703
28718
  gameTypeUid: p,
28704
28719
  providerUid: f,
28705
28720
  supportCurrency: _,
28706
- enterLobbyMode: u,
28707
- gamePlatform: g,
28721
+ enterLobbyMode: g,
28722
+ gamePlatform: u,
28708
28723
  gameSubType: s,
28709
- gameType: l,
28710
- gameTags: c,
28724
+ gameType: t,
28725
+ gameTags: d,
28711
28726
  isUnderMaintenance: n,
28712
28727
  supportVertical: o,
28713
28728
  supportHorizontal: y,
28714
28729
  userClickCount: b,
28715
- gameNameEn: d,
28730
+ gameNameEn: c,
28716
28731
  gameNameZh: T,
28717
28732
  gameNameVi: S,
28718
28733
  gameNameTw: E,
@@ -28720,7 +28735,7 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28720
28735
  gameImageUrl: D,
28721
28736
  gameImageUrlAnimated: L
28722
28737
  };
28723
- }, at = "ds88platformIcon", it = (e, i = !1) => ml([
28738
+ }, il = "ds88platformIcon", tl = (e, i = !1) => mt([
28724
28739
  "EVO",
28725
28740
  "IMSPRIBE",
28726
28741
  "SABA",
@@ -28731,11 +28746,11 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28731
28746
  "HACK",
28732
28747
  "NAGA",
28733
28748
  "RSG"
28734
- ], e) && i ? `${e}_dark` : e, vt = ({ platformData: e, darkMode: i } = {}) => {
28749
+ ], e) && i ? `${e}_dark` : e, hl = ({ platformData: e, darkMode: i } = {}) => {
28735
28750
  const {
28736
28751
  SubPlatformEnum: m,
28737
28752
  // 子平台枚舉
28738
- platformEnum: t,
28753
+ platformEnum: l,
28739
28754
  // 平台枚舉
28740
28755
  isUnderMaintenance: r,
28741
28756
  // 是否維護中
@@ -28745,68 +28760,69 @@ const Fl = /* @__PURE__ */ ol(wl), B = {
28745
28760
  // 維護結束時間
28746
28761
  platform: _,
28747
28762
  // 平台代碼
28748
- platformUid: u,
28763
+ platformUid: g,
28749
28764
  // 平台唯一標識符
28750
- platformMode: g,
28765
+ platformMode: u,
28751
28766
  // 平台模式
28752
28767
  temp_maintenance_start_time: s,
28753
28768
  // 臨時維護開始時間
28754
- temp_maintenance_end_time: l
28769
+ temp_maintenance_end_time: t
28755
28770
  // 臨時維護結束時間
28756
- } = e || {}, c = `${et}/${at}/${it(t, i)}.png`;
28771
+ } = e || {}, d = `${al}/${il}/${tl(l, i)}.png`;
28757
28772
  return {
28758
28773
  subPlatformEnum: m,
28759
- platformEnum: t,
28774
+ platformEnum: l,
28760
28775
  isUnderMaintenance: r,
28761
28776
  maintenanceStartTime: p,
28762
28777
  maintenanceEndTime: f,
28763
28778
  platform: _,
28764
- platformUid: u,
28765
- platformMode: g,
28779
+ platformUid: g,
28780
+ platformMode: u,
28766
28781
  tempMaintenanceStartTime: s,
28767
- tempMaintenanceEndTime: l,
28768
- platformImageUrl: c
28782
+ tempMaintenanceEndTime: t,
28783
+ platformImageUrl: d
28769
28784
  };
28770
28785
  };
28771
28786
  export {
28772
28787
  oi as ApiCtx,
28773
- gt as ApiProvider,
28788
+ dl as ApiProvider,
28774
28789
  si as GamesInfoCtx,
28775
- Cl as buildMultiTypes,
28776
- ut as buildMultiTypesWithSubTypes,
28777
- _l as buildSinglePlatformWithSubTypes,
28778
- cl as buildSingleType,
28779
- Tl as categorizeGames,
28790
+ Ct as buildMultiTypes,
28791
+ pl as buildMultiTypesWithSubTypes,
28792
+ _t as buildSinglePlatformWithSubTypes,
28793
+ ct as buildSingleType,
28794
+ Tt as categorizeGames,
28780
28795
  ci as convertLanguageCode,
28781
- st as createLogoutHandler,
28782
- yl as extractGameSubTypeNames,
28783
- Ul as extractGameTypeNames,
28784
- xa as extractPlatformNames,
28796
+ ul as createLogoutHandler,
28797
+ yt as extractGameSubTypeNames,
28798
+ Ut as extractGameTypeNames,
28799
+ Oa as extractPlatformNames,
28785
28800
  di as filterGamesByPlatform,
28786
28801
  ui as findGameTypeUid,
28787
28802
  pi as findPlatformUid,
28788
28803
  gi as findSubPlatform,
28789
- fl as flattenAllGames,
28790
- bl as flattenFavoriteGames,
28791
- vl as groupGamesByPlatform,
28792
- hl as groupGamesByPlatformAndSubType,
28793
- dl as groupGamesBySubType,
28794
- Dl as initMockWindowData,
28795
- kl as processGameInfo,
28796
- pt as processPlatformData,
28804
+ ft as flattenAllGames,
28805
+ bt as flattenFavoriteGames,
28806
+ vt as groupGamesByPlatform,
28807
+ ht as groupGamesByPlatformAndSubType,
28808
+ dt as groupGamesBySubType,
28809
+ Dt as initMockWindowData,
28810
+ kt as processGameInfo,
28811
+ gl as processPlatformData,
28797
28812
  ne as useApiContext,
28798
- dt as useBalanceGetter,
28799
- ft as useClientWebSocket,
28800
- Ct as useGameConfig,
28801
- ot as useGameInfoContext,
28802
- Nl as useGamesInfo,
28803
- Ut as useGetCarouseList,
28804
- yt as useGetMarquee,
28805
- ct as useGetMemberInfo,
28806
- _t as useInitializeWithToken,
28807
- Xl as useLogin,
28808
- $l as useLogout,
28809
- vt as usePlatformConfig,
28810
- bt as usePlayGame,
28811
- Tt as useUser
28813
+ cl as useBalanceGetter,
28814
+ Ul as useClientWebSocket,
28815
+ vl as useGameConfig,
28816
+ sl as useGameInfoContext,
28817
+ Nt as useGamesInfo,
28818
+ yl as useGetCarouseList,
28819
+ bl as useGetMarquee,
28820
+ _l as useGetMemberInfo,
28821
+ fl as useInitializeWithToken,
28822
+ Xt as useLogin,
28823
+ $t as useLogout,
28824
+ hl as usePlatformConfig,
28825
+ Tl as usePlayGame,
28826
+ el as useToggleFavoriteGame,
28827
+ Cl as useUser
28812
28828
  };