@obb871001/api-integration-sdk 1.0.113 → 1.0.115

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,72 +1,72 @@
1
- import Ee, { createContext as li, useContext as ti, useCallback as B, useMemo as aa, useEffect as Ne, useRef as Ea } from "react";
2
- import { useQuery as ae, QueryClient as el, QueryClientProvider as al, useQueries as ni, useMutation as mi } from "@tanstack/react-query";
3
- import il from "axios";
4
- import { find as ta, isEmpty as O, isObject as Ze, flatMap as na, isArray as ie, map as Ve, get as He, replace as La, includes as ll } from "lodash";
5
- import tl from "react-dom";
6
- function nl(e) {
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) {
7
7
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
8
8
  }
9
- var we = { exports: {} }, ve = {};
10
- var Ga;
11
- function ml() {
12
- if (Ga) return ve;
13
- Ga = 1;
14
- var e = Ee, 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 };
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
15
  function f(_, u, g) {
16
- var s, l = {}, d = null, n = null;
17
- g !== void 0 && (d = "" + g), u.key !== void 0 && (d = "" + u.key), u.ref !== void 0 && (n = u.ref);
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
18
  for (s in u) t.call(u, s) && !p.hasOwnProperty(s) && (l[s] = u[s]);
19
19
  if (_ && _.defaultProps) for (s in u = _.defaultProps, u) l[s] === void 0 && (l[s] = u[s]);
20
- return { $$typeof: i, type: _, key: d, ref: n, props: l, _owner: r.current };
20
+ return { $$typeof: i, type: _, key: c, ref: n, props: l, _owner: r.current };
21
21
  }
22
- return ve.Fragment = m, ve.jsx = f, ve.jsxs = f, ve;
22
+ return he.Fragment = m, he.jsx = f, he.jsxs = f, he;
23
23
  }
24
- var he = {};
25
- var Ma;
26
- function rl() {
27
- return Ma || (Ma = 1, process.env.NODE_ENV !== "production" && (function() {
28
- var e = Ee, 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"), d = Symbol.for("react.lazy"), n = Symbol.for("react.offscreen"), o = Symbol.iterator, y = "@@iterator";
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";
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 c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
35
+ var d = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
36
36
  function T(a) {
37
37
  {
38
- for (var U = arguments.length, C = new Array(U > 1 ? U - 1 : 0), v = 1; v < U; v++)
39
- C[v - 1] = arguments[v];
38
+ for (var U = arguments.length, C = new Array(U > 1 ? U - 1 : 0), h = 1; h < U; h++)
39
+ C[h - 1] = arguments[h];
40
40
  S("error", a, C);
41
41
  }
42
42
  }
43
43
  function S(a, U, C) {
44
44
  {
45
- var v = c.ReactDebugCurrentFrame, L = v.getStackAddendum();
46
- L !== "" && (U += "%s", C = C.concat([L]));
47
- var G = C.map(function(N) {
45
+ var h = d.ReactDebugCurrentFrame, G = h.getStackAddendum();
46
+ G !== "" && (U += "%s", C = C.concat([G]));
47
+ var M = C.map(function(N) {
48
48
  return String(N);
49
49
  });
50
- G.unshift("Warning: " + U), Function.prototype.apply.call(console[a], console, G);
50
+ M.unshift("Warning: " + U), Function.prototype.apply.call(console[a], console, M);
51
51
  }
52
52
  }
53
- var D = !1, h = !1, E = !1, M = !1, ye = !1, be;
54
- be = Symbol.for("react.module.reference");
55
- function Ae(a) {
56
- return !!(typeof a == "string" || typeof a == "function" || a === t || a === p || ye || a === r || a === g || a === s || M || a === n || D || h || E || typeof a == "object" && a !== null && (a.$$typeof === d || a.$$typeof === l || a.$$typeof === f || a.$$typeof === _ || a.$$typeof === u || // This needs to include all possible module reference object
53
+ var E = !1, v = !1, D = !1, L = !1, A = !1, Q;
54
+ Q = Symbol.for("react.module.reference");
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
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.
60
- a.$$typeof === be || a.getModuleId !== void 0));
60
+ a.$$typeof === Q || a.getModuleId !== void 0));
61
61
  }
62
- function Le(a, U, C) {
63
- var v = a.displayName;
64
- if (v)
65
- return v;
66
- var L = U.displayName || U.name || "";
67
- return L !== "" ? C + "(" + L + ")" : C;
62
+ function Ge(a, U, C) {
63
+ var h = a.displayName;
64
+ if (h)
65
+ return h;
66
+ var G = U.displayName || U.name || "";
67
+ return G !== "" ? C + "(" + G + ")" : C;
68
68
  }
69
- function A(a) {
69
+ function I(a) {
70
70
  return a.displayName || "Context";
71
71
  }
72
72
  function w(a) {
@@ -94,19 +94,19 @@ function rl() {
94
94
  switch (a.$$typeof) {
95
95
  case _:
96
96
  var U = a;
97
- return A(U) + ".Consumer";
97
+ return I(U) + ".Consumer";
98
98
  case f:
99
99
  var C = a;
100
- return A(C._context) + ".Provider";
100
+ return I(C._context) + ".Provider";
101
101
  case u:
102
- return Le(a, a.render, "ForwardRef");
102
+ return Ge(a, a.render, "ForwardRef");
103
103
  case l:
104
- var v = a.displayName || null;
105
- return v !== null ? v : w(a.type) || "Memo";
106
- case d: {
107
- var L = a, G = L._payload, N = L._init;
104
+ var h = a.displayName || null;
105
+ return h !== null ? h : w(a.type) || "Memo";
106
+ case c: {
107
+ var G = a, M = G._payload, N = G._init;
108
108
  try {
109
- return w(N(G));
109
+ return w(N(M));
110
110
  } catch {
111
111
  return null;
112
112
  }
@@ -114,18 +114,18 @@ function rl() {
114
114
  }
115
115
  return null;
116
116
  }
117
- var V = Object.assign, te = 0, j, Ge, Me, x, F, Q, Te;
118
- function ne() {
117
+ var V = Object.assign, me = 0, q, Me, Re, x, F, Y, Ce;
118
+ function re() {
119
119
  }
120
- ne.__reactDisabledLog = !0;
121
- function ee() {
120
+ re.__reactDisabledLog = !0;
121
+ function ie() {
122
122
  {
123
- if (te === 0) {
124
- j = console.log, Ge = console.info, Me = console.warn, x = console.error, F = console.group, Q = console.groupCollapsed, Te = console.groupEnd;
123
+ if (me === 0) {
124
+ q = console.log, Me = console.info, Re = console.warn, x = console.error, F = console.group, Y = console.groupCollapsed, Ce = console.groupEnd;
125
125
  var a = {
126
126
  configurable: !0,
127
127
  enumerable: !0,
128
- value: ne,
128
+ value: re,
129
129
  writable: !0
130
130
  };
131
131
  Object.defineProperties(console, {
@@ -138,12 +138,12 @@ function rl() {
138
138
  groupEnd: a
139
139
  });
140
140
  }
141
- te++;
141
+ me++;
142
142
  }
143
143
  }
144
- function Re() {
144
+ function Pe() {
145
145
  {
146
- if (te--, te === 0) {
146
+ if (me--, me === 0) {
147
147
  var a = {
148
148
  configurable: !0,
149
149
  enumerable: !0,
@@ -151,13 +151,13 @@ function rl() {
151
151
  };
152
152
  Object.defineProperties(console, {
153
153
  log: V({}, a, {
154
- value: j
154
+ value: q
155
155
  }),
156
156
  info: V({}, a, {
157
- value: Ge
157
+ value: Me
158
158
  }),
159
159
  warn: V({}, a, {
160
- value: Me
160
+ value: Re
161
161
  }),
162
162
  error: V({}, a, {
163
163
  value: x
@@ -166,49 +166,49 @@ function rl() {
166
166
  value: F
167
167
  }),
168
168
  groupCollapsed: V({}, a, {
169
- value: Q
169
+ value: Y
170
170
  }),
171
171
  groupEnd: V({}, a, {
172
- value: Te
172
+ value: Ce
173
173
  })
174
174
  });
175
175
  }
176
- te < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
176
+ me < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
177
177
  }
178
178
  }
179
- var pe = c.ReactCurrentDispatcher, q;
180
- function ge(a, U, C) {
179
+ var de = d.ReactCurrentDispatcher, X;
180
+ function ce(a, U, C) {
181
181
  {
182
- if (q === void 0)
182
+ if (X === void 0)
183
183
  try {
184
184
  throw Error();
185
- } catch (L) {
186
- var v = L.stack.trim().match(/\n( *(at )?)/);
187
- q = v && v[1] || "";
185
+ } catch (G) {
186
+ var h = G.stack.trim().match(/\n( *(at )?)/);
187
+ X = h && h[1] || "";
188
188
  }
189
189
  return `
190
- ` + q + a;
190
+ ` + X + a;
191
191
  }
192
192
  }
193
- var me = !1, Pe;
193
+ var oe = !1, xe;
194
194
  {
195
- var Li = typeof WeakMap == "function" ? WeakMap : Map;
196
- Pe = new Li();
195
+ var Gi = typeof WeakMap == "function" ? WeakMap : Map;
196
+ xe = new Gi();
197
197
  }
198
198
  function da(a, U) {
199
- if (!a || me)
199
+ if (!a || oe)
200
200
  return "";
201
201
  {
202
- var C = Pe.get(a);
202
+ var C = xe.get(a);
203
203
  if (C !== void 0)
204
204
  return C;
205
205
  }
206
- var v;
207
- me = !0;
208
- var L = Error.prepareStackTrace;
206
+ var h;
207
+ oe = !0;
208
+ var G = Error.prepareStackTrace;
209
209
  Error.prepareStackTrace = void 0;
210
- var G;
211
- G = pe.current, pe.current = null, ee();
210
+ var M;
211
+ M = de.current, de.current = null, ie();
212
212
  try {
213
213
  if (U) {
214
214
  var N = function() {
@@ -222,14 +222,14 @@ function rl() {
222
222
  try {
223
223
  Reflect.construct(N, []);
224
224
  } catch (J) {
225
- v = J;
225
+ h = J;
226
226
  }
227
227
  Reflect.construct(a, [], N);
228
228
  } else {
229
229
  try {
230
230
  N.call();
231
231
  } catch (J) {
232
- v = J;
232
+ h = J;
233
233
  }
234
234
  a.call(N.prototype);
235
235
  }
@@ -237,14 +237,14 @@ function rl() {
237
237
  try {
238
238
  throw Error();
239
239
  } catch (J) {
240
- v = J;
240
+ h = J;
241
241
  }
242
242
  a();
243
243
  }
244
244
  } catch (J) {
245
- if (J && v && typeof J.stack == "string") {
245
+ if (J && h && typeof J.stack == "string") {
246
246
  for (var k = J.stack.split(`
247
- `), W = v.stack.split(`
247
+ `), W = h.stack.split(`
248
248
  `), R = k.length - 1, P = W.length - 1; R >= 1 && P >= 0 && k[R] !== W[P]; )
249
249
  P--;
250
250
  for (; R >= 1 && P >= 0; R--, P--)
@@ -254,92 +254,92 @@ function rl() {
254
254
  if (R--, P--, P < 0 || k[R] !== W[P]) {
255
255
  var Z = `
256
256
  ` + k[R].replace(" at new ", " at ");
257
- return a.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", a.displayName)), typeof a == "function" && Pe.set(a, Z), Z;
257
+ return a.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", a.displayName)), typeof a == "function" && xe.set(a, Z), Z;
258
258
  }
259
259
  while (R >= 1 && P >= 0);
260
260
  break;
261
261
  }
262
262
  }
263
263
  } finally {
264
- me = !1, pe.current = G, Re(), Error.prepareStackTrace = L;
264
+ oe = !1, de.current = M, Pe(), Error.prepareStackTrace = G;
265
265
  }
266
- var ce = a ? a.displayName || a.name : "", re = ce ? ge(ce) : "";
267
- return typeof a == "function" && Pe.set(a, re), re;
266
+ var fe = a ? a.displayName || a.name : "", se = fe ? ce(fe) : "";
267
+ return typeof a == "function" && xe.set(a, se), se;
268
268
  }
269
- function Gi(a, U, C) {
269
+ function Mi(a, U, C) {
270
270
  return da(a, !1);
271
271
  }
272
- function Mi(a) {
272
+ function Ri(a) {
273
273
  var U = a.prototype;
274
274
  return !!(U && U.isReactComponent);
275
275
  }
276
- function xe(a, U, C) {
276
+ function Oe(a, U, C) {
277
277
  if (a == null)
278
278
  return "";
279
279
  if (typeof a == "function")
280
- return da(a, Mi(a));
280
+ return da(a, Ri(a));
281
281
  if (typeof a == "string")
282
- return ge(a);
282
+ return ce(a);
283
283
  switch (a) {
284
284
  case g:
285
- return ge("Suspense");
285
+ return ce("Suspense");
286
286
  case s:
287
- return ge("SuspenseList");
287
+ return ce("SuspenseList");
288
288
  }
289
289
  if (typeof a == "object")
290
290
  switch (a.$$typeof) {
291
291
  case u:
292
- return Gi(a.render);
292
+ return Mi(a.render);
293
293
  case l:
294
- return xe(a.type, U, C);
295
- case d: {
296
- var v = a, L = v._payload, G = v._init;
294
+ return Oe(a.type, U, C);
295
+ case c: {
296
+ var h = a, G = h._payload, M = h._init;
297
297
  try {
298
- return xe(G(L), U, C);
298
+ return Oe(M(G), U, C);
299
299
  } catch {
300
300
  }
301
301
  }
302
302
  }
303
303
  return "";
304
304
  }
305
- var Ce = Object.prototype.hasOwnProperty, ca = {}, _a = c.ReactDebugCurrentFrame;
306
- function Oe(a) {
305
+ var ve = Object.prototype.hasOwnProperty, ca = {}, _a = d.ReactDebugCurrentFrame;
306
+ function He(a) {
307
307
  if (a) {
308
- var U = a._owner, C = xe(a.type, a._source, U ? U.type : null);
308
+ var U = a._owner, C = Oe(a.type, a._source, U ? U.type : null);
309
309
  _a.setExtraStackFrame(C);
310
310
  } else
311
311
  _a.setExtraStackFrame(null);
312
312
  }
313
- function Ri(a, U, C, v, L) {
313
+ function Pi(a, U, C, h, G) {
314
314
  {
315
- var G = Function.call.bind(Ce);
315
+ var M = Function.call.bind(ve);
316
316
  for (var N in a)
317
- if (G(a, N)) {
317
+ if (M(a, N)) {
318
318
  var k = void 0;
319
319
  try {
320
320
  if (typeof a[N] != "function") {
321
- var W = Error((v || "React class") + ": " + C + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
321
+ var W = Error((h || "React class") + ": " + C + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
322
322
  throw W.name = "Invariant Violation", W;
323
323
  }
324
- k = a[N](U, N, v, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
324
+ k = a[N](U, N, h, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
325
325
  } catch (R) {
326
326
  k = R;
327
327
  }
328
- k && !(k instanceof Error) && (Oe(L), 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).", v || "React class", C, N, typeof k), Oe(null)), k instanceof Error && !(k.message in ca) && (ca[k.message] = !0, Oe(L), T("Failed %s type: %s", C, k.message), Oe(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 ca) && (ca[k.message] = !0, He(G), T("Failed %s type: %s", C, k.message), He(null));
329
329
  }
330
330
  }
331
331
  }
332
- var Pi = Array.isArray;
333
- function Ie(a) {
334
- return Pi(a);
332
+ var xi = Array.isArray;
333
+ function Be(a) {
334
+ return xi(a);
335
335
  }
336
- function xi(a) {
336
+ function Oi(a) {
337
337
  {
338
338
  var U = typeof Symbol == "function" && Symbol.toStringTag, C = U && a[Symbol.toStringTag] || a.constructor.name || "Object";
339
339
  return C;
340
340
  }
341
341
  }
342
- function Oi(a) {
342
+ function Hi(a) {
343
343
  try {
344
344
  return fa(a), !1;
345
345
  } catch {
@@ -350,35 +350,35 @@ function rl() {
350
350
  return "" + a;
351
351
  }
352
352
  function Ua(a) {
353
- if (Oi(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.", xi(a)), fa(a);
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);
355
355
  }
356
- var ya = c.ReactCurrentOwner, Hi = {
356
+ var ya = d.ReactCurrentOwner, wi = {
357
357
  key: !0,
358
358
  ref: !0,
359
359
  __self: !0,
360
360
  __source: !0
361
361
  }, ba, Ta;
362
- function wi(a) {
363
- if (Ce.call(a, "ref")) {
362
+ function Fi(a) {
363
+ if (ve.call(a, "ref")) {
364
364
  var U = Object.getOwnPropertyDescriptor(a, "ref").get;
365
365
  if (U && U.isReactWarning)
366
366
  return !1;
367
367
  }
368
368
  return a.ref !== void 0;
369
369
  }
370
- function Fi(a) {
371
- if (Ce.call(a, "key")) {
370
+ function Wi(a) {
371
+ if (ve.call(a, "key")) {
372
372
  var U = Object.getOwnPropertyDescriptor(a, "key").get;
373
373
  if (U && U.isReactWarning)
374
374
  return !1;
375
375
  }
376
376
  return a.key !== void 0;
377
377
  }
378
- function Wi(a, U) {
378
+ function Ji(a, U) {
379
379
  typeof a.ref == "string" && ya.current;
380
380
  }
381
- function Ji(a, U) {
381
+ function zi(a, U) {
382
382
  {
383
383
  var C = function() {
384
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));
@@ -389,7 +389,7 @@ function rl() {
389
389
  });
390
390
  }
391
391
  }
392
- function zi(a, U) {
392
+ function Zi(a, U) {
393
393
  {
394
394
  var C = function() {
395
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));
@@ -400,7 +400,7 @@ function rl() {
400
400
  });
401
401
  }
402
402
  }
403
- var Zi = function(a, U, C, v, L, G, N) {
403
+ var Vi = function(a, U, C, h, G, M, N) {
404
404
  var k = {
405
405
  // This tag allows us to uniquely identify this as a React Element
406
406
  $$typeof: i,
@@ -410,7 +410,7 @@ function rl() {
410
410
  ref: C,
411
411
  props: N,
412
412
  // Record the component responsible for creating this element.
413
- _owner: G
413
+ _owner: M
414
414
  };
415
415
  return k._store = {}, Object.defineProperty(k._store, "validated", {
416
416
  configurable: !1,
@@ -421,49 +421,49 @@ function rl() {
421
421
  configurable: !1,
422
422
  enumerable: !1,
423
423
  writable: !1,
424
- value: v
424
+ value: h
425
425
  }), Object.defineProperty(k, "_source", {
426
426
  configurable: !1,
427
427
  enumerable: !1,
428
428
  writable: !1,
429
- value: L
429
+ value: G
430
430
  }), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
431
431
  };
432
- function Vi(a, U, C, v, L) {
432
+ function Ai(a, U, C, h, G) {
433
433
  {
434
- var G, N = {}, k = null, W = null;
435
- C !== void 0 && (Ua(C), k = "" + C), Fi(U) && (Ua(U.key), k = "" + U.key), wi(U) && (W = U.ref, Wi(U, L));
436
- for (G in U)
437
- Ce.call(U, G) && !Hi.hasOwnProperty(G) && (N[G] = U[G]);
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));
436
+ for (M in U)
437
+ ve.call(U, M) && !wi.hasOwnProperty(M) && (N[M] = U[M]);
438
438
  if (a && a.defaultProps) {
439
439
  var R = a.defaultProps;
440
- for (G in R)
441
- N[G] === void 0 && (N[G] = R[G]);
440
+ for (M in R)
441
+ N[M] === void 0 && (N[M] = R[M]);
442
442
  }
443
443
  if (k || W) {
444
444
  var P = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
445
- k && Ji(N, P), W && zi(N, P);
445
+ k && zi(N, P), W && Zi(N, P);
446
446
  }
447
- return Zi(a, k, W, L, v, ya.current, N);
447
+ return Vi(a, k, W, G, h, ya.current, N);
448
448
  }
449
449
  }
450
- var Be = c.ReactCurrentOwner, Ca = c.ReactDebugCurrentFrame;
451
- function de(a) {
450
+ var Ke = d.ReactCurrentOwner, Ca = d.ReactDebugCurrentFrame;
451
+ function _e(a) {
452
452
  if (a) {
453
- var U = a._owner, C = xe(a.type, a._source, U ? U.type : null);
453
+ var U = a._owner, C = Oe(a.type, a._source, U ? U.type : null);
454
454
  Ca.setExtraStackFrame(C);
455
455
  } else
456
456
  Ca.setExtraStackFrame(null);
457
457
  }
458
- var Ke;
459
- Ke = !1;
460
- function je(a) {
458
+ var je;
459
+ je = !1;
460
+ function Qe(a) {
461
461
  return typeof a == "object" && a !== null && a.$$typeof === i;
462
462
  }
463
463
  function va() {
464
464
  {
465
- if (Be.current) {
466
- var a = w(Be.current.type);
465
+ if (Ke.current) {
466
+ var a = w(Ke.current.type);
467
467
  if (a)
468
468
  return `
469
469
 
@@ -472,11 +472,11 @@ Check the render method of \`` + a + "`.";
472
472
  return "";
473
473
  }
474
474
  }
475
- function Ai(a) {
475
+ function Ii(a) {
476
476
  return "";
477
477
  }
478
478
  var ha = {};
479
- function Ii(a) {
479
+ function Bi(a) {
480
480
  {
481
481
  var U = va();
482
482
  if (!U) {
@@ -493,34 +493,34 @@ Check the top-level render call using <` + C + ">.");
493
493
  if (!a._store || a._store.validated || a.key != null)
494
494
  return;
495
495
  a._store.validated = !0;
496
- var C = Ii(U);
496
+ var C = Bi(U);
497
497
  if (ha[C])
498
498
  return;
499
499
  ha[C] = !0;
500
- var v = "";
501
- a && a._owner && a._owner !== Be.current && (v = " It was passed a child from " + w(a._owner.type) + "."), de(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, v), de(null);
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);
502
502
  }
503
503
  }
504
504
  function Sa(a, U) {
505
505
  {
506
506
  if (typeof a != "object")
507
507
  return;
508
- if (Ie(a))
508
+ if (Be(a))
509
509
  for (var C = 0; C < a.length; C++) {
510
- var v = a[C];
511
- je(v) && ka(v, U);
510
+ var h = a[C];
511
+ Qe(h) && ka(h, U);
512
512
  }
513
- else if (je(a))
513
+ else if (Qe(a))
514
514
  a._store && (a._store.validated = !0);
515
515
  else if (a) {
516
- var L = b(a);
517
- if (typeof L == "function" && L !== a.entries)
518
- for (var G = L.call(a), N; !(N = G.next()).done; )
519
- je(N.value) && ka(N.value, U);
516
+ var G = b(a);
517
+ if (typeof G == "function" && G !== a.entries)
518
+ for (var M = G.call(a), N; !(N = M.next()).done; )
519
+ Qe(N.value) && ka(N.value, U);
520
520
  }
521
521
  }
522
522
  }
523
- function Bi(a) {
523
+ function Ki(a) {
524
524
  {
525
525
  var U = a.type;
526
526
  if (U == null || typeof U == "string")
@@ -535,95 +535,95 @@ Check the top-level render call using <` + C + ">.");
535
535
  else
536
536
  return;
537
537
  if (C) {
538
- var v = w(U);
539
- Ri(C, a.props, "prop", v, a);
540
- } else if (U.PropTypes !== void 0 && !Ke) {
541
- Ke = !0;
542
- var L = w(U);
543
- T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
538
+ var h = w(U);
539
+ Pi(C, a.props, "prop", h, a);
540
+ } else if (U.PropTypes !== void 0 && !je) {
541
+ je = !0;
542
+ var G = w(U);
543
+ T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
544
544
  }
545
545
  typeof U.getDefaultProps == "function" && !U.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
546
546
  }
547
547
  }
548
- function Ki(a) {
548
+ function ji(a) {
549
549
  {
550
550
  for (var U = Object.keys(a.props), C = 0; C < U.length; C++) {
551
- var v = U[C];
552
- if (v !== "children" && v !== "key") {
553
- de(a), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), de(null);
551
+ var h = U[C];
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);
554
554
  break;
555
555
  }
556
556
  }
557
- a.ref !== null && (de(a), T("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
557
+ a.ref !== null && (_e(a), T("Invalid attribute `ref` supplied to `React.Fragment`."), _e(null));
558
558
  }
559
559
  }
560
560
  var Na = {};
561
- function Da(a, U, C, v, L, G) {
561
+ function Da(a, U, C, h, G, M) {
562
562
  {
563
- var N = Ae(a);
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
- var W = Ai();
567
+ var W = Ii();
568
568
  W ? k += W : k += va();
569
569
  var R;
570
- a === null ? R = "null" : Ie(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);
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
  }
572
- var P = Vi(a, U, C, L, G);
572
+ var P = Ai(a, U, C, G, M);
573
573
  if (P == null)
574
574
  return P;
575
575
  if (N) {
576
576
  var Z = U.children;
577
577
  if (Z !== void 0)
578
- if (v)
579
- if (Ie(Z)) {
580
- for (var ce = 0; ce < Z.length; ce++)
581
- Sa(Z[ce], a);
578
+ if (h)
579
+ if (Be(Z)) {
580
+ for (var fe = 0; fe < Z.length; fe++)
581
+ Sa(Z[fe], 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
586
  Sa(Z, a);
587
587
  }
588
- if (Ce.call(U, "key")) {
589
- var re = w(a), J = Object.keys(U).filter(function($i) {
590
- return $i !== "key";
591
- }), Qe = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
592
- if (!Na[re + Qe]) {
593
- var Xi = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
588
+ if (ve.call(U, "key")) {
589
+ var se = w(a), J = Object.keys(U).filter(function(el) {
590
+ return el !== "key";
591
+ }), qe = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
592
+ if (!Na[se + qe]) {
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, re, Xi, re), Na[re + Qe] = !0;
599
+ <%s key={someKey} {...props} />`, qe, se, $i, se), Na[se + qe] = !0;
600
600
  }
601
601
  }
602
- return a === t ? Ki(P) : Bi(P), P;
602
+ return a === t ? ji(P) : Ki(P), P;
603
603
  }
604
604
  }
605
- function ji(a, U, C) {
605
+ function Qi(a, U, C) {
606
606
  return Da(a, U, C, !0);
607
607
  }
608
- function Qi(a, U, C) {
608
+ function qi(a, U, C) {
609
609
  return Da(a, U, C, !1);
610
610
  }
611
- var qi = Qi, Yi = ji;
612
- he.Fragment = t, he.jsx = qi, he.jsxs = Yi;
613
- })()), he;
611
+ var Yi = qi, Xi = Qi;
612
+ ke.Fragment = t, ke.jsx = Yi, ke.jsxs = Xi;
613
+ })()), ke;
614
614
  }
615
- var Ra;
616
- function ol() {
617
- return Ra || (Ra = 1, process.env.NODE_ENV === "production" ? we.exports = ml() : we.exports = rl()), we.exports;
615
+ var Pa;
616
+ function pl() {
617
+ return Pa || (Pa = 1, process.env.NODE_ENV === "production" ? Fe.exports = sl() : Fe.exports = ul()), Fe.exports;
618
618
  }
619
- var Je = ol();
620
- const ri = li(null), le = () => {
621
- const e = ti(ri);
619
+ var ze = pl();
620
+ const oi = ti(null), ne = () => {
621
+ const e = ni(oi);
622
622
  if (!e)
623
623
  throw new Error("useApiContext must be used within ApiProvider");
624
624
  return e;
625
625
  };
626
- function sl({
626
+ function gl({
627
627
  baseURL: e,
628
628
  getToken: i,
629
629
  timeoutMs: m = 15e3,
@@ -631,7 +631,7 @@ function sl({
631
631
  store: r,
632
632
  onError: p
633
633
  } = {}) {
634
- const f = il.create({
634
+ const f = ll.create({
635
635
  baseURL: e,
636
636
  timeout: m,
637
637
  headers: { "Content-Type": "application/json" }
@@ -648,14 +648,14 @@ function sl({
648
648
  (_) => p ? p(_, { instance: f }) : Promise.reject(_)
649
649
  ), f;
650
650
  }
651
- const oi = li(null), nt = () => {
652
- const e = ti(oi);
651
+ const si = ti(null), ot = () => {
652
+ const e = ni(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
- }, mt = () => {
658
+ }, st = () => {
659
659
  const e = (t, r) => !t && !r, i = (t) => t.startsWith("pc.");
660
660
  return {
661
661
  executeLogout: ({
@@ -674,49 +674,49 @@ const oi = li(null), nt = () => {
674
674
  shouldShowErrorNotice: e,
675
675
  isMachineDomain: i
676
676
  };
677
- }, si = (e = [], i) => ta(e, { gameTypeName: i })?.gameTypeUid, ui = (e = [], i) => ta(e, { platform: i })?.platformUid, pi = (e = [], i) => ta(e, { SubPlatformEnum: i }), gi = (e = [], i, m) => O(e) ? [] : e.filter((t) => m ? String(t?.SubPlatformEnumUid) === String(m?.SubPlatformEnumUid) : String(t.platformUid) === String(i)), ul = (e = []) => O(e) ? {} : e.reduce((i, m) => {
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
678
  const t = m?.game_subtype || "UNKNOWN";
679
679
  return i[t] || (i[t] = []), i[t].push(m), i;
680
- }, {}), pl = ({
680
+ }, {}), cl = ({
681
681
  gameTypeName: e,
682
682
  platforms: i,
683
683
  gameList: m,
684
684
  allGameTypes: t,
685
685
  allPlatforms: r
686
686
  }) => {
687
- const p = si(t, e);
687
+ const p = ui(t, e);
688
688
  return p ? i.reduce((f, _) => {
689
- const u = ui(r, _), g = pi(r, _), s = m[p] || [], l = gi(
689
+ const u = pi(r, _), g = gi(r, _), s = m[p] || [], l = di(
690
690
  s,
691
691
  u,
692
692
  g
693
693
  );
694
694
  return O(l) || (f[_] = l), f;
695
695
  }, {}) : {};
696
- }, gl = ({
696
+ }, _l = ({
697
697
  platformName: e,
698
698
  gamesOfType: i = [],
699
699
  allPlatforms: m = []
700
700
  }) => {
701
- const t = ui(m, e), r = pi(m, e), p = gi(
701
+ const t = pi(m, e), r = gi(m, e), p = di(
702
702
  i,
703
703
  t,
704
704
  r
705
705
  );
706
- return ul(p);
707
- }, dl = (e = {}) => !Ze(e) || O(e) ? [] : na(e), Pa = (e = []) => !ie(e) || O(e) ? [] : Ve(e, "platform"), cl = (e = []) => !ie(e) || O(e) ? [] : Ve(e, "gameTypeName"), _l = (e = []) => !ie(e) || O(e) ? [] : Ve(e, "game_subtype"), fl = (e = {}) => !Ze(e) || O(e) ? [] : na(e), Ul = (e = [], i = []) => !ie(e) || O(e) ? {} : !ie(i) || O(i) ? {} : e.reduce((m, t) => {
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) => {
708
708
  const r = i.map((p) => p.game_subtype);
709
709
  return r.forEach((p) => {
710
710
  m[p] = m[p] || [];
711
711
  }), r.includes(t.game_subtype) && m[t.game_subtype].push(t), m;
712
- }, {}), yl = ({
712
+ }, {}), Cl = ({
713
713
  gameTypes: e = [],
714
714
  platforms: i = [],
715
715
  gameList: m = {},
716
716
  allGameTypes: t = [],
717
717
  allPlatforms: r = []
718
- }) => !ie(e) || !ie(i) ? {} : O(m) ? {} : e.reduce((p, f) => {
719
- const _ = pl({
718
+ }) => !te(e) || !te(i) ? {} : O(m) ? {} : e.reduce((p, f) => {
719
+ const _ = cl({
720
720
  gameTypeName: f,
721
721
  platforms: i,
722
722
  gameList: m,
@@ -724,28 +724,28 @@ const oi = li(null), nt = () => {
724
724
  allPlatforms: r
725
725
  });
726
726
  return O(_) || (p[f] = _), p;
727
- }, {}), rt = ({
727
+ }, {}), ut = ({
728
728
  types: e = [],
729
729
  platforms: i = [],
730
730
  allGameType: m = [],
731
731
  allGamePlatform: t = [],
732
732
  allGameList: r = {}
733
733
  } = {}) => !Array.isArray(e) || !Array.isArray(i) ? {} : e.reduce((p, f) => {
734
- const _ = si(m, f);
734
+ const _ = ui(m, f);
735
735
  if (!_) return p;
736
736
  const u = r[_] || [], g = i.reduce((s, l) => {
737
- const d = gl({
737
+ const c = _l({
738
738
  platformName: l,
739
739
  gamesOfType: u,
740
740
  allPlatforms: t
741
741
  });
742
- return O(d) ? s : { ...s, [l]: d };
742
+ return O(c) ? s : { ...s, [l]: c };
743
743
  }, {});
744
744
  return O(g) || (p[f] = g), p;
745
- }, {}), bl = (e = {}) => !Ze(e) || O(e) ? {} : Object.values(e).reduce((m, t) => (Object.entries(t).forEach(([r, p]) => {
745
+ }, {}), vl = (e = {}) => !Ve(e) || O(e) ? {} : Object.values(e).reduce((m, t) => (Object.entries(t).forEach(([r, p]) => {
746
746
  m[r] ? m[r] = [...m[r], ...p] : m[r] = p;
747
- }), m), {}), Tl = (e = {}) => {
748
- if (!Ze(e) || O(e)) return {};
747
+ }), m), {}), hl = (e = {}) => {
748
+ if (!Ve(e) || O(e)) return {};
749
749
  const i = {};
750
750
  for (const [m, t] of Object.entries(e)) {
751
751
  i[m] = {};
@@ -755,7 +755,7 @@ const oi = li(null), nt = () => {
755
755
  }
756
756
  }
757
757
  return i;
758
- }, Cl = ({
758
+ }, kl = ({
759
759
  allGameList: e = {},
760
760
  allGamePlatform: i = [],
761
761
  allGameType: m = [],
@@ -768,18 +768,28 @@ const oi = li(null), nt = () => {
768
768
  highlightGames: g = [],
769
769
  originPlatform: s = []
770
770
  }) => {
771
- const l = dl(e), d = Pa(i), n = cl(m), o = _l(t), y = Pa(s), b = fl(_), c = yl({
771
+ const l = fl(e), c = xa(i), n = Ul(m), o = yl(t), y = xa(s), b = bl(_), d = Cl({
772
772
  gameTypes: n,
773
- platforms: d,
773
+ platforms: c,
774
774
  gameList: e,
775
775
  allGameTypes: m,
776
776
  allPlatforms: i
777
- }), T = Ul(l, t), S = bl(c), D = Tl(S);
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;
781
+ },
782
+ {}
783
+ ), D = La(d).reduce((L, A) => {
784
+ const Q = La(d[A]);
785
+ return L[A] = Q, L;
786
+ }, {});
778
787
  return {
779
788
  platform: {
780
- all: d,
789
+ all: c,
781
790
  origin: y,
782
- originPlatform: i
791
+ originPlatform: i,
792
+ byGameType: D
783
793
  },
784
794
  type: {
785
795
  main: n,
@@ -799,19 +809,20 @@ const oi = li(null), nt = () => {
799
809
  categorized: {
800
810
  bySubType: { ...T, MyFavorite: b },
801
811
  byPlatform: S,
802
- byPlatformAndCategory: D,
803
- byGameType: c
812
+ byPlatformAndCategory: E,
813
+ byGameTypeAndPlatform: d,
814
+ byGameType: v
804
815
  },
805
816
  user: {
806
817
  favorite: b
807
818
  }
808
819
  };
809
- }, ot = (e = []) => !ie(e) || O(e) ? [] : na(e, (i) => O(i.SubPlatformEnum) ? i : i.SubPlatformEnum.map((m) => ({
820
+ }, pt = (e = []) => !te(e) || O(e) ? [] : Ae(e, (i) => O(i.SubPlatformEnum) ? i : i.SubPlatformEnum.map((m) => ({
810
821
  ...i,
811
822
  ...m,
812
823
  platform: m.SubPlatformEnum,
813
824
  platformEnum: m.SubPlatformEnum
814
- }))), di = (e) => {
825
+ }))), ci = (e) => {
815
826
  switch (e) {
816
827
  case "tw":
817
828
  return "zh_TW";
@@ -830,18 +841,18 @@ const oi = li(null), nt = () => {
830
841
  default:
831
842
  return e;
832
843
  }
833
- }, fe = () => {
834
- const { client: e } = le(), i = B(
844
+ }, ye = () => {
845
+ const { client: e } = ne(), i = K(
835
846
  async (u) => {
836
- const { mac_address: g = "", app_version: s = "", anydesk_id: l = "" } = u, { data: d } = await e.post("/cash-register/login", {
847
+ const { mac_address: g = "", app_version: s = "", anydesk_id: l = "" } = u, { data: c } = await e.post("/cash-register/login", {
837
848
  mac_address: g,
838
849
  app_version: s,
839
850
  anydesk_id: l
840
851
  });
841
- return d;
852
+ return c;
842
853
  },
843
854
  [e]
844
- ), m = B(async () => e.get("/member/getMemberInfo"), [e]), t = B(async () => await e.get("/member/getGameList"), [e]), r = B(async () => await e.get("/member/getNowCurrencyExchange"), [e]), p = B(async () => await e.get("member/getFavoriteGame"), [e]), f = B(
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(
845
856
  async (u) => {
846
857
  const { account: g, password: s, trans_code: l } = u;
847
858
  return await e.post("/login", {
@@ -851,7 +862,7 @@ const oi = li(null), nt = () => {
851
862
  });
852
863
  },
853
864
  [e]
854
- ), _ = B(async () => await e.post("/logout"), [e]);
865
+ ), _ = K(async () => await e.post("/logout"), [e]);
855
866
  return {
856
867
  machineLoginApi: i,
857
868
  userInfoApi: m,
@@ -861,8 +872,8 @@ const oi = li(null), nt = () => {
861
872
  userLoginApi: f,
862
873
  userLogoutApi: _
863
874
  };
864
- }, vl = {
865
- platform: { all: [], origin: [], originPlatform: [] },
875
+ }, Sl = {
876
+ platform: { all: [], origin: [], originPlatform: [], byGameType: {} },
866
877
  type: { main: [], sub: [], originMain: [], originSub: [] },
867
878
  gameList: {
868
879
  all: [],
@@ -877,11 +888,12 @@ const oi = li(null), nt = () => {
877
888
  bySubType: {},
878
889
  byPlatform: {},
879
890
  byPlatformAndCategory: {},
891
+ byGameTypeAndPlatform: {},
880
892
  byGameType: {}
881
893
  },
882
894
  user: { favorite: [] }
883
- }, hl = ({ enabled: e = !0 } = {}) => {
884
- const { getToken: i } = le(), { userFavoriteGameApi: m, userGameListApi: t } = fe(), { data: r, isLoading: p, error: f, refetch: _ } = ae({
895
+ }, Nl = ({ enabled: e = !0 } = {}) => {
896
+ const { getToken: i } = ne(), { userFavoriteGameApi: m, userGameListApi: t } = ye(), { data: r, isLoading: p, error: f, refetch: _ } = le({
885
897
  queryKey: ["gamesInfo"],
886
898
  queryFn: async () => {
887
899
  let u = {}, g = {};
@@ -890,7 +902,7 @@ const oi = li(null), nt = () => {
890
902
  } catch (s) {
891
903
  console.warn("Failed to fetch favorite games:", s);
892
904
  }
893
- return Cl({
905
+ return kl({
894
906
  allGameList: g.gameTypeGroup || window.gameTypeGroup || {},
895
907
  allGamePlatform: g.platforms || window.platforms || [],
896
908
  allGameType: g.gameType || window.gameType || [],
@@ -913,12 +925,12 @@ const oi = li(null), nt = () => {
913
925
  refetchOnWindowFocus: !1
914
926
  });
915
927
  return {
916
- gamesInfo: r || vl,
928
+ gamesInfo: r || Sl,
917
929
  isLoading: p,
918
930
  error: f,
919
931
  refetch: _
920
932
  };
921
- }, kl = (e = !1) => {
933
+ }, Dl = (e = !1) => {
922
934
  if (!e && window.gameTypeGroup) {
923
935
  console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
924
936
  return;
@@ -27445,26 +27457,26 @@ const oi = li(null), nt = () => {
27445
27457
  is_invalid_bet: 0
27446
27458
  }
27447
27459
  });
27448
- }, Sl = ({
27460
+ }, El = ({
27449
27461
  children: e,
27450
27462
  autoFetch: i = !1,
27451
27463
  mockData: m = !1
27452
27464
  }) => {
27453
- Ne(() => {
27454
- m && kl(!0);
27465
+ De(() => {
27466
+ m && Dl(!0);
27455
27467
  }, [m]);
27456
- const t = hl({ enabled: i });
27457
- return /* @__PURE__ */ Je.jsx(oi.Provider, { value: t, children: e });
27468
+ const t = Nl({ enabled: i });
27469
+ return /* @__PURE__ */ ze.jsx(si.Provider, { value: t, children: e });
27458
27470
  };
27459
- function st({
27471
+ function gt({
27460
27472
  children: e,
27461
27473
  autoFetchGamesInfo: i = !1,
27462
27474
  useMockData: m = !1,
27463
27475
  queryClient: t,
27464
27476
  ...r
27465
27477
  }) {
27466
- const p = aa(() => sl(r), [r]), f = aa(
27467
- () => new el({
27478
+ const p = ia(() => gl(r), [r]), f = ia(
27479
+ () => new al({
27468
27480
  defaultOptions: {
27469
27481
  queries: {
27470
27482
  refetchOnWindowFocus: !1,
@@ -27474,11 +27486,11 @@ function st({
27474
27486
  }),
27475
27487
  []
27476
27488
  ), _ = t || f;
27477
- return /* @__PURE__ */ Je.jsx(al, { client: _, children: /* @__PURE__ */ Je.jsx(ri.Provider, { value: { client: p, ...r }, children: /* @__PURE__ */ Je.jsx(Sl, { autoFetch: i, mockData: m, children: e }) }) });
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 }) }) });
27478
27490
  }
27479
- const ut = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27480
- const { userCurrencyExchangeApi: m } = fe(), { getToken: t } = le(), { enabled: r, ...p } = i, _ = !!t?.() && (r ? r.every((u) => u) : !0);
27481
- return ni({
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({
27482
27494
  queries: [
27483
27495
  {
27484
27496
  queryKey: ["userCurrencyExchange", ...e],
@@ -27490,13 +27502,13 @@ const ut = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27490
27502
  }
27491
27503
  ]
27492
27504
  });
27493
- }, pt = ({
27505
+ }, ct = ({
27494
27506
  refetchInterval: e = 5e4,
27495
27507
  trigger: i = [],
27496
27508
  enabled: m = !0
27497
27509
  } = {}) => {
27498
- const { getToken: t } = le(), r = t?.(), { userInfoApi: p } = fe();
27499
- return ni({
27510
+ const { getToken: t } = ne(), r = t?.(), { userInfoApi: p } = ye();
27511
+ return mi({
27500
27512
  queries: [
27501
27513
  {
27502
27514
  queryKey: ["getMemberInfo", ...i],
@@ -27506,25 +27518,25 @@ const ut = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27506
27518
  }
27507
27519
  ]
27508
27520
  });
27509
- }, gt = ({ enabled: e = !0 } = {}) => {
27521
+ }, _t = ({ enabled: e = !0 } = {}) => {
27510
27522
  const {
27511
27523
  userInfoApi: i,
27512
27524
  userFavoriteGameApi: m,
27513
27525
  userGameListApi: t,
27514
27526
  userCurrencyExchangeApi: r
27515
- } = fe(), p = ae({
27527
+ } = ye(), p = le({
27516
27528
  queryKey: ["getMemInfo"],
27517
27529
  queryFn: async () => i(),
27518
27530
  enabled: e
27519
- }), f = ae({
27531
+ }), f = le({
27520
27532
  queryKey: ["getFavoriteGame"],
27521
27533
  queryFn: async () => m(),
27522
27534
  enabled: e && p.isSuccess
27523
- }), _ = ae({
27535
+ }), _ = le({
27524
27536
  queryKey: ["getUserGameList"],
27525
27537
  queryFn: async () => t(),
27526
27538
  enabled: e && p.isSuccess && f.isSuccess
27527
- }), u = ae({
27539
+ }), u = le({
27528
27540
  queryKey: ["getUserCurrencyExchange"],
27529
27541
  queryFn: async () => r(),
27530
27542
  enabled: e && p.isSuccess && f.isSuccess && _.isSuccess
@@ -27536,9 +27548,9 @@ const ut = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27536
27548
  u
27537
27549
  ];
27538
27550
  };
27539
- var qe = {}, z = {}, Ye = {}, xa;
27540
- function K() {
27541
- return xa || (xa = 1, (function(e) {
27551
+ var Ye = {}, z = {}, Xe = {}, Oa;
27552
+ function j() {
27553
+ return Oa || (Oa = 1, (function(e) {
27542
27554
  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;
27543
27555
  var i = 1, m = 1e3 * i;
27544
27556
  e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
@@ -27561,11 +27573,11 @@ function K() {
27561
27573
  }
27562
27574
  };
27563
27575
  e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && r();
27564
- })(Ye)), Ye;
27576
+ })(Xe)), Xe;
27565
27577
  }
27566
- var ke = {}, Xe = {}, Oa;
27578
+ var Se = {}, $e = {}, Ha;
27567
27579
  function ma() {
27568
- return Oa || (Oa = 1, (function(e) {
27580
+ return Ha || (Ha = 1, (function(e) {
27569
27581
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
27570
27582
  var i = function(m) {
27571
27583
  if (m && e.sharedWebSockets.hasOwnProperty(m))
@@ -27575,13 +27587,13 @@ function ma() {
27575
27587
  e.sharedWebSockets.hasOwnProperty(t) && delete e.sharedWebSockets[t];
27576
27588
  };
27577
27589
  e.resetWebSockets = i;
27578
- })(Xe)), Xe;
27590
+ })($e)), $e;
27579
27591
  }
27580
- var oe = {}, Y = {}, Ha;
27592
+ var ue = {}, $ = {}, wa;
27581
27593
  function ra() {
27582
- if (Ha) return Y;
27583
- Ha = 1, Object.defineProperty(Y, "__esModule", { value: !0 }), Y.setUpSocketIOPing = Y.appendQueryParams = Y.parseSocketIOUrl = void 0;
27584
- var e = K(), i = function(r) {
27594
+ if (wa) return $;
27595
+ wa = 1, Object.defineProperty($, "__esModule", { value: !0 }), $.setUpSocketIOPing = $.appendQueryParams = $.parseSocketIOUrl = void 0;
27596
+ var e = j(), i = function(r) {
27585
27597
  if (r) {
27586
27598
  var p = /^https|wss/.test(r), f = r.replace(/^(https?|wss?)(:\/\/)?/, ""), _ = f.replace(/\/$/, ""), u = p ? "wss" : "ws";
27587
27599
  return "".concat(u, "://").concat(_).concat(e.SOCKET_IO_PATH);
@@ -27591,16 +27603,16 @@ function ra() {
27591
27603
  }
27592
27604
  return r;
27593
27605
  };
27594
- Y.parseSocketIOUrl = i;
27606
+ $.parseSocketIOUrl = i;
27595
27607
  var m = function(r, p) {
27596
27608
  p === void 0 && (p = {});
27597
27609
  var f = /\?([\w]+=[\w]+)/, _ = f.test(r), u = "".concat(Object.entries(p).reduce(function(g, s) {
27598
- var l = s[0], d = s[1];
27599
- return g + "".concat(l, "=").concat(d, "&");
27610
+ var l = s[0], c = s[1];
27611
+ return g + "".concat(l, "=").concat(c, "&");
27600
27612
  }, "").slice(0, -1));
27601
27613
  return "".concat(r).concat(_ ? "&" : "?").concat(u);
27602
27614
  };
27603
- Y.appendQueryParams = m;
27615
+ $.appendQueryParams = m;
27604
27616
  var t = function(r, p) {
27605
27617
  p === void 0 && (p = e.SOCKET_IO_PING_INTERVAL);
27606
27618
  var f = function() {
@@ -27608,26 +27620,26 @@ function ra() {
27608
27620
  };
27609
27621
  return window.setInterval(f, p);
27610
27622
  };
27611
- return Y.setUpSocketIOPing = t, Y;
27623
+ return $.setUpSocketIOPing = t, $;
27612
27624
  }
27613
- var Fe = {}, wa;
27614
- function ci() {
27615
- if (wa) return Fe;
27616
- wa = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.heartbeat = m;
27617
- var e = K();
27625
+ var We = {}, Fa;
27626
+ function _i() {
27627
+ if (Fa) return We;
27628
+ Fa = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.heartbeat = m;
27629
+ var e = j();
27618
27630
  function i(t) {
27619
27631
  return Array.isArray(t) ? t.reduce(function(r, p) {
27620
27632
  return r.current > p.current ? r : p;
27621
27633
  }).current : t.current;
27622
27634
  }
27623
27635
  function m(t, r, p) {
27624
- 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, d = l === void 0 ? e.DEFAULT_HEARTBEAT.message : l, n = Math.max(100, u / 10), o = Date.now(), y = setInterval(function() {
27625
- var b = Date.now(), c = i(r);
27626
- if (c + s <= b)
27627
- console.warn("Heartbeat timed out, closing connection, last message received ".concat(b - c, "ms ago, last ping sent ").concat(b - o, "ms ago")), t.close();
27628
- else if (c + u <= b && o + u <= b)
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)
27629
27641
  try {
27630
- typeof d == "function" ? t.send(d()) : t.send(d), o = b;
27642
+ typeof c == "function" ? t.send(c()) : t.send(c), o = b;
27631
27643
  } catch (T) {
27632
27644
  console.error("Heartbeat failed, closing connection", T instanceof Error ? T.message : T), t.close();
27633
27645
  }
@@ -27637,11 +27649,11 @@ function ci() {
27637
27649
  }), function() {
27638
27650
  };
27639
27651
  }
27640
- return Fe;
27652
+ return We;
27641
27653
  }
27642
- var Se = {}, $e = {}, Fa;
27654
+ var Ne = {}, ea = {}, Wa;
27643
27655
  function oa() {
27644
- return Fa || (Fa = 1, (function(e) {
27656
+ return Wa || (Wa = 1, (function(e) {
27645
27657
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
27646
27658
  var i = {}, m = [], t = function(u) {
27647
27659
  return (0, e.hasSubscribers)(u) ? Array.from(i[u]) : m;
@@ -27668,12 +27680,12 @@ function oa() {
27668
27680
  i.hasOwnProperty(g) && delete i[g];
27669
27681
  };
27670
27682
  e.resetSubscribers = _;
27671
- })($e)), $e;
27683
+ })(ea)), ea;
27672
27684
  }
27673
- var Wa;
27685
+ var Ja;
27674
27686
  function sa() {
27675
- if (Wa) return Se;
27676
- Wa = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.assertIsWebSocket = m, Se.resetGlobalState = t;
27687
+ if (Ja) return Ne;
27688
+ Ja = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.assertIsWebSocket = m, Ne.resetGlobalState = t;
27677
27689
  var e = ma(), i = oa();
27678
27690
  function m(r, p) {
27679
27691
  if (!p && !(r instanceof WebSocket))
@@ -27682,44 +27694,44 @@ function sa() {
27682
27694
  function t(r) {
27683
27695
  (0, i.resetSubscribers)(r), (0, e.resetWebSockets)(r);
27684
27696
  }
27685
- return Se;
27697
+ return Ne;
27686
27698
  }
27687
- var Ja;
27688
- function Nl() {
27689
- if (Ja) return oe;
27690
- Ja = 1;
27691
- var e = oe && oe.__assign || function() {
27699
+ var za;
27700
+ function Ll() {
27701
+ if (za) return ue;
27702
+ za = 1;
27703
+ var e = ue && ue.__assign || function() {
27692
27704
  return e = Object.assign || function(s) {
27693
- for (var l, d = 1, n = arguments.length; d < n; d++) {
27694
- l = arguments[d];
27705
+ for (var l, c = 1, n = arguments.length; c < n; c++) {
27706
+ l = arguments[c];
27695
27707
  for (var o in l) Object.prototype.hasOwnProperty.call(l, o) && (s[o] = l[o]);
27696
27708
  }
27697
27709
  return s;
27698
27710
  }, e.apply(this, arguments);
27699
27711
  };
27700
- Object.defineProperty(oe, "__esModule", { value: !0 }), oe.attachListeners = void 0;
27701
- var i = ra(), m = ci(), t = K(), r = sa(), p = function(s, l, d, n) {
27712
+ 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) {
27702
27714
  s.onmessage = function(o) {
27703
27715
  var y;
27704
- 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 || d(o));
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));
27705
27717
  };
27706
- }, f = function(s, l, d, n, o) {
27718
+ }, f = function(s, l, c, n, o) {
27707
27719
  s.onopen = function(y) {
27708
- if (l.current.onOpen && l.current.onOpen(y), n.current = 0, d(t.ReadyState.OPEN), l.current.heartbeat && s instanceof WebSocket) {
27720
+ if (l.current.onOpen && l.current.onOpen(y), n.current = 0, c(t.ReadyState.OPEN), l.current.heartbeat && s instanceof WebSocket) {
27709
27721
  var b = typeof l.current.heartbeat == "boolean" ? void 0 : l.current.heartbeat;
27710
27722
  o.current = Date.now(), (0, m.heartbeat)(s, o, b);
27711
27723
  }
27712
27724
  };
27713
- }, _ = function(s, l, d, n, o) {
27725
+ }, _ = function(s, l, c, n, o) {
27714
27726
  if (t.isEventSourceSupported && s instanceof EventSource)
27715
27727
  return function() {
27716
27728
  };
27717
27729
  (0, r.assertIsWebSocket)(s, l.current.skipAssert);
27718
27730
  var y;
27719
27731
  return s.onclose = function(b) {
27720
- var c;
27721
- if (l.current.onClose && l.current.onClose(b), d(t.ReadyState.CLOSED), l.current.shouldReconnect && l.current.shouldReconnect(b)) {
27722
- var T = (c = l.current.reconnectAttempts) !== null && c !== void 0 ? c : t.DEFAULT_RECONNECT_LIMIT;
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;
27723
27735
  if (o.current < T) {
27724
27736
  var S = typeof l.current.reconnectInterval == "function" ? l.current.reconnectInterval(o.current) : l.current.reconnectInterval;
27725
27737
  y = window.setTimeout(function() {
@@ -27731,12 +27743,12 @@ function Nl() {
27731
27743
  }, function() {
27732
27744
  return y && window.clearTimeout(y);
27733
27745
  };
27734
- }, u = function(s, l, d, n, o) {
27746
+ }, u = function(s, l, c, n, o) {
27735
27747
  var y;
27736
27748
  return s.onerror = function(b) {
27737
- var c;
27738
- 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 })), d(t.ReadyState.CLOSED), s.close()), l.current.retryOnError)
27739
- if (o.current < ((c = l.current.reconnectAttempts) !== null && c !== void 0 ? c : t.DEFAULT_RECONNECT_LIMIT)) {
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)) {
27740
27752
  var T = typeof l.current.reconnectInterval == "function" ? l.current.reconnectInterval(o.current) : l.current.reconnectInterval;
27741
27753
  y = window.setTimeout(function() {
27742
27754
  o.current++, n();
@@ -27746,124 +27758,124 @@ function Nl() {
27746
27758
  }, function() {
27747
27759
  return y && window.clearTimeout(y);
27748
27760
  };
27749
- }, g = function(s, l, d, n, o, y, b) {
27750
- var c = l.setLastMessage, T = l.setReadyState, S, D, h;
27751
- return d.current.fromSocketIO && (S = (0, i.setUpSocketIOPing)(b)), p(s, d, c, y), f(s, d, T, o, y), D = _(s, d, T, n, o), h = u(s, d, T, n, o), function() {
27752
- T(t.ReadyState.CLOSING), D(), h(), s.close(), S && clearInterval(S);
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);
27753
27765
  };
27754
27766
  };
27755
- return oe.attachListeners = g, oe;
27767
+ return ue.attachListeners = g, ue;
27756
27768
  }
27757
- var se = {}, za;
27758
- function Dl() {
27759
- if (za) return se;
27760
- za = 1;
27761
- var e = se && se.__assign || function() {
27769
+ var pe = {}, Za;
27770
+ function Gl() {
27771
+ if (Za) return pe;
27772
+ Za = 1;
27773
+ var e = pe && pe.__assign || function() {
27762
27774
  return e = Object.assign || function(l) {
27763
- for (var d, n = 1, o = arguments.length; n < o; n++) {
27764
- d = arguments[n];
27765
- for (var y in d) Object.prototype.hasOwnProperty.call(d, y) && (l[y] = d[y]);
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]);
27766
27778
  }
27767
27779
  return l;
27768
27780
  }, e.apply(this, arguments);
27769
27781
  };
27770
- Object.defineProperty(se, "__esModule", { value: !0 }), se.attachSharedListeners = void 0;
27771
- var i = ma(), m = K(), t = oa(), r = ra(), p = ci(), f = function(l, d, n) {
27782
+ 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) {
27772
27784
  l.onmessage = function(o) {
27773
- (0, t.getSubscribers)(d).forEach(function(y) {
27785
+ (0, t.getSubscribers)(c).forEach(function(y) {
27774
27786
  var b;
27775
27787
  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));
27776
27788
  });
27777
27789
  };
27778
- }, _ = function(l, d, n) {
27790
+ }, _ = function(l, c, n) {
27779
27791
  l.onopen = function(o) {
27780
- var y = (0, t.getSubscribers)(d);
27792
+ var y = (0, t.getSubscribers)(c);
27781
27793
  y.forEach(function(b) {
27782
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());
27783
27795
  }), n && l instanceof WebSocket && (0, p.heartbeat)(l, y.map(function(b) {
27784
27796
  return b.lastMessageTime;
27785
27797
  }), typeof n == "boolean" ? void 0 : n);
27786
27798
  };
27787
- }, u = function(l, d) {
27799
+ }, u = function(l, c) {
27788
27800
  l instanceof WebSocket && (l.onclose = function(n) {
27789
- (0, t.getSubscribers)(d).forEach(function(o) {
27801
+ (0, t.getSubscribers)(c).forEach(function(o) {
27790
27802
  o.optionsRef.current.onClose && o.optionsRef.current.onClose(n), o.setReadyState(m.ReadyState.CLOSED);
27791
- }), delete i.sharedWebSockets[d], (0, t.getSubscribers)(d).forEach(function(o) {
27803
+ }), delete i.sharedWebSockets[c], (0, t.getSubscribers)(c).forEach(function(o) {
27792
27804
  var y;
27793
27805
  if (o.optionsRef.current.shouldReconnect && o.optionsRef.current.shouldReconnect(n)) {
27794
27806
  var b = (y = o.optionsRef.current.reconnectAttempts) !== null && y !== void 0 ? y : m.DEFAULT_RECONNECT_LIMIT;
27795
27807
  if (o.reconnectCount.current < b) {
27796
- var c = typeof o.optionsRef.current.reconnectInterval == "function" ? o.optionsRef.current.reconnectInterval(o.reconnectCount.current) : o.optionsRef.current.reconnectInterval;
27808
+ var d = typeof o.optionsRef.current.reconnectInterval == "function" ? o.optionsRef.current.reconnectInterval(o.reconnectCount.current) : o.optionsRef.current.reconnectInterval;
27797
27809
  setTimeout(function() {
27798
27810
  o.reconnectCount.current++, o.reconnect.current();
27799
- }, c ?? m.DEFAULT_RECONNECT_INTERVAL_MS);
27811
+ }, d ?? m.DEFAULT_RECONNECT_INTERVAL_MS);
27800
27812
  } else
27801
27813
  o.optionsRef.current.onReconnectStop && o.optionsRef.current.onReconnectStop(o.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(b, " exceeded"));
27802
27814
  }
27803
27815
  });
27804
27816
  });
27805
- }, g = function(l, d) {
27817
+ }, g = function(l, c) {
27806
27818
  l.onerror = function(n) {
27807
- (0, t.getSubscribers)(d).forEach(function(o) {
27819
+ (0, t.getSubscribers)(c).forEach(function(o) {
27808
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));
27809
27821
  }), m.isEventSourceSupported && l instanceof EventSource && l.close();
27810
27822
  };
27811
- }, s = function(l, d, n, o) {
27823
+ }, s = function(l, c, n, o) {
27812
27824
  var y;
27813
- return n.current.fromSocketIO && (y = (0, r.setUpSocketIOPing)(o)), f(l, d, n.current.heartbeat), u(l, d), _(l, d, n.current.heartbeat), g(l, d), function() {
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() {
27814
27826
  y && clearInterval(y);
27815
27827
  };
27816
27828
  };
27817
- return se.attachSharedListeners = s, se;
27829
+ return pe.attachSharedListeners = s, pe;
27818
27830
  }
27819
- var Za;
27820
- function El() {
27821
- if (Za) return ke;
27822
- Za = 1, Object.defineProperty(ke, "__esModule", { value: !0 }), ke.createOrJoinSocket = void 0;
27823
- var e = ma(), i = K(), m = Nl(), t = Dl(), r = oa(), p = function(_, u, g, s, l) {
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) {
27824
27836
  return function() {
27825
27837
  if ((0, r.removeSubscriber)(_, u), !(0, r.hasSubscribers)(_)) {
27826
27838
  try {
27827
- var d = e.sharedWebSockets[_];
27828
- d instanceof WebSocket && (d.onclose = function(n) {
27839
+ var c = e.sharedWebSockets[_];
27840
+ c instanceof WebSocket && (c.onclose = function(n) {
27829
27841
  g.current.onClose && g.current.onClose(n), s(i.ReadyState.CLOSED);
27830
- }), d.close();
27842
+ }), c.close();
27831
27843
  } catch {
27832
27844
  }
27833
27845
  l && l(), delete e.sharedWebSockets[_];
27834
27846
  }
27835
27847
  };
27836
- }, f = function(_, u, g, s, l, d, n, o, y) {
27848
+ }, f = function(_, u, g, s, l, c, n, o, y) {
27837
27849
  if (!i.isEventSourceSupported && s.current.eventSourceOptions)
27838
27850
  throw i.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
27839
27851
  if (s.current.share) {
27840
27852
  var b = null;
27841
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));
27842
- var c = {
27854
+ var d = {
27843
27855
  setLastMessage: l,
27844
27856
  setReadyState: g,
27845
27857
  optionsRef: s,
27846
27858
  reconnectCount: n,
27847
27859
  lastMessageTime: o,
27848
- reconnect: d
27860
+ reconnect: c
27849
27861
  };
27850
- return (0, r.addSubscriber)(u, c), p(u, c, s, g, b);
27862
+ return (0, r.addSubscriber)(u, d), p(u, d, s, g, b);
27851
27863
  } else {
27852
27864
  if (_.current = s.current.eventSourceOptions ? new EventSource(u, s.current.eventSourceOptions) : new WebSocket(u, s.current.protocols), g(i.ReadyState.CONNECTING), !_.current)
27853
27865
  throw new Error("WebSocket failed to be created");
27854
27866
  return (0, m.attachListeners)(_.current, {
27855
27867
  setLastMessage: l,
27856
27868
  setReadyState: g
27857
- }, s, d.current, n, o, y);
27869
+ }, s, c.current, n, o, y);
27858
27870
  }
27859
27871
  };
27860
- return ke.createOrJoinSocket = f, ke;
27872
+ return Se.createOrJoinSocket = f, Se;
27861
27873
  }
27862
- var X = {}, Va;
27863
- function Ll() {
27864
- return Va || (Va = 1, (function(e) {
27865
- var i = X && X.__awaiter || function(u, g, s, l) {
27866
- function d(n) {
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) {
27867
27879
  return n instanceof s ? n : new s(function(o) {
27868
27880
  o(n);
27869
27881
  });
@@ -27871,112 +27883,112 @@ function Ll() {
27871
27883
  return new (s || (s = Promise))(function(n, o) {
27872
27884
  function y(T) {
27873
27885
  try {
27874
- c(l.next(T));
27886
+ d(l.next(T));
27875
27887
  } catch (S) {
27876
27888
  o(S);
27877
27889
  }
27878
27890
  }
27879
27891
  function b(T) {
27880
27892
  try {
27881
- c(l.throw(T));
27893
+ d(l.throw(T));
27882
27894
  } catch (S) {
27883
27895
  o(S);
27884
27896
  }
27885
27897
  }
27886
- function c(T) {
27887
- T.done ? n(T.value) : d(T.value).then(y, b);
27898
+ function d(T) {
27899
+ T.done ? n(T.value) : c(T.value).then(y, b);
27888
27900
  }
27889
- c((l = l.apply(u, g || [])).next());
27901
+ d((l = l.apply(u, g || [])).next());
27890
27902
  });
27891
- }, m = X && X.__generator || function(u, g) {
27903
+ }, m = ee && ee.__generator || function(u, g) {
27892
27904
  var s = { label: 0, sent: function() {
27893
27905
  if (n[0] & 1) throw n[1];
27894
27906
  return n[1];
27895
- }, trys: [], ops: [] }, l, d, n, o = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
27907
+ }, trys: [], ops: [] }, l, c, n, o = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
27896
27908
  return o.next = y(0), o.throw = y(1), o.return = y(2), typeof Symbol == "function" && (o[Symbol.iterator] = function() {
27897
27909
  return this;
27898
27910
  }), o;
27899
- function y(c) {
27911
+ function y(d) {
27900
27912
  return function(T) {
27901
- return b([c, T]);
27913
+ return b([d, T]);
27902
27914
  };
27903
27915
  }
27904
- function b(c) {
27916
+ function b(d) {
27905
27917
  if (l) throw new TypeError("Generator is already executing.");
27906
- for (; o && (o = 0, c[0] && (s = 0)), s; ) try {
27907
- if (l = 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;
27908
- switch (d = 0, n && (c = [c[0] & 2, n.value]), c[0]) {
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]) {
27909
27921
  case 0:
27910
27922
  case 1:
27911
- n = c;
27923
+ n = d;
27912
27924
  break;
27913
27925
  case 4:
27914
- return s.label++, { value: c[1], done: !1 };
27926
+ return s.label++, { value: d[1], done: !1 };
27915
27927
  case 5:
27916
- s.label++, d = c[1], c = [0];
27928
+ s.label++, c = d[1], d = [0];
27917
27929
  continue;
27918
27930
  case 7:
27919
- c = s.ops.pop(), s.trys.pop();
27931
+ d = s.ops.pop(), s.trys.pop();
27920
27932
  continue;
27921
27933
  default:
27922
- if (n = s.trys, !(n = n.length > 0 && n[n.length - 1]) && (c[0] === 6 || c[0] === 2)) {
27934
+ if (n = s.trys, !(n = n.length > 0 && n[n.length - 1]) && (d[0] === 6 || d[0] === 2)) {
27923
27935
  s = 0;
27924
27936
  continue;
27925
27937
  }
27926
- if (c[0] === 3 && (!n || c[1] > n[0] && c[1] < n[3])) {
27927
- s.label = c[1];
27938
+ if (d[0] === 3 && (!n || d[1] > n[0] && d[1] < n[3])) {
27939
+ s.label = d[1];
27928
27940
  break;
27929
27941
  }
27930
- if (c[0] === 6 && s.label < n[1]) {
27931
- s.label = n[1], n = c;
27942
+ if (d[0] === 6 && s.label < n[1]) {
27943
+ s.label = n[1], n = d;
27932
27944
  break;
27933
27945
  }
27934
27946
  if (n && s.label < n[2]) {
27935
- s.label = n[2], s.ops.push(c);
27947
+ s.label = n[2], s.ops.push(d);
27936
27948
  break;
27937
27949
  }
27938
27950
  n[2] && s.ops.pop(), s.trys.pop();
27939
27951
  continue;
27940
27952
  }
27941
- c = g.call(u, s);
27953
+ d = g.call(u, s);
27942
27954
  } catch (T) {
27943
- c = [6, T], d = 0;
27955
+ d = [6, T], c = 0;
27944
27956
  } finally {
27945
27957
  l = n = 0;
27946
27958
  }
27947
- if (c[0] & 5) throw c[1];
27948
- return { value: c[0] ? c[1] : void 0, done: !0 };
27959
+ if (d[0] & 5) throw d[1];
27960
+ return { value: d[0] ? d[1] : void 0, done: !0 };
27949
27961
  }
27950
- }, t = X && X.__spreadArray || function(u, g, s) {
27951
- if (s || arguments.length === 2) for (var l = 0, d = g.length, n; l < d; l++)
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++)
27952
27964
  (n || !(l in g)) && (n || (n = Array.prototype.slice.call(g, 0, l)), n[l] = g[l]);
27953
27965
  return u.concat(n || Array.prototype.slice.call(g));
27954
27966
  };
27955
27967
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
27956
- var r = ra(), p = K(), f = function(u) {
27968
+ var r = ra(), p = j(), f = function(u) {
27957
27969
  return new Promise(function(g) {
27958
27970
  return window.setTimeout(g, u);
27959
27971
  });
27960
27972
  }, _ = function(u, g) {
27961
27973
  for (var s = [], l = 2; l < arguments.length; l++)
27962
27974
  s[l - 2] = arguments[l];
27963
- return i(void 0, t([u, g], s, !0), void 0, function(d, n, o) {
27964
- var y, b, c, T, S, D, h, E;
27965
- return o === void 0 && (o = 0), m(this, function(M) {
27966
- switch (M.label) {
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;
27977
+ return o === void 0 && (o = 0), m(this, function(L) {
27978
+ switch (L.label) {
27967
27979
  case 0:
27968
- if (typeof d != "function") return [3, 10];
27969
- M.label = 1;
27980
+ if (typeof c != "function") return [3, 10];
27981
+ L.label = 1;
27970
27982
  case 1:
27971
- return M.trys.push([1, 3, , 9]), [4, d()];
27983
+ return L.trys.push([1, 3, , 9]), [4, c()];
27972
27984
  case 2:
27973
- return y = M.sent(), [3, 9];
27985
+ return y = L.sent(), [3, 9];
27974
27986
  case 3:
27975
- return M.sent(), n.current.retryOnError ? (b = (D = n.current.reconnectAttempts) !== null && D !== void 0 ? D : 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];
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];
27976
27988
  case 4:
27977
- return M.sent(), [2, (0, e.getUrl)(d, n, o + 1)];
27989
+ return L.sent(), [2, (0, e.getUrl)(c, n, o + 1)];
27978
27990
  case 5:
27979
- return (E = (h = n.current).onReconnectStop) === null || E === void 0 || E.call(h, o), [2, null];
27991
+ return (D = (v = n.current).onReconnectStop) === null || D === void 0 || D.call(v, o), [2, null];
27980
27992
  case 6:
27981
27993
  return [3, 8];
27982
27994
  case 7:
@@ -27986,7 +27998,7 @@ function Ll() {
27986
27998
  case 9:
27987
27999
  return [3, 11];
27988
28000
  case 10:
27989
- y = d, M.label = 11;
28001
+ y = c, L.label = 11;
27990
28002
  case 11:
27991
28003
  return T = n.current.fromSocketIO ? (0, r.parseSocketIOUrl)(y) : y, S = n.current.queryParams ? (0, r.appendQueryParams)(T, n.current.queryParams) : T, [2, S];
27992
28004
  }
@@ -27994,11 +28006,11 @@ function Ll() {
27994
28006
  });
27995
28007
  };
27996
28008
  e.getUrl = _;
27997
- })(X)), X;
28009
+ })(ee)), ee;
27998
28010
  }
27999
- var ea = {}, Aa;
28000
- function Gl() {
28001
- return Aa || (Aa = 1, (function(e) {
28011
+ var aa = {}, Ia;
28012
+ function Pl() {
28013
+ return Ia || (Ia = 1, (function(e) {
28002
28014
  Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
28003
28015
  var i = function(m, t) {
28004
28016
  return new Proxy(m, {
@@ -28013,112 +28025,112 @@ function Gl() {
28013
28025
  });
28014
28026
  };
28015
28027
  e.websocketWrapper = i, e.default = e.websocketWrapper;
28016
- })(ea)), ea;
28028
+ })(aa)), aa;
28017
28029
  }
28018
- var Ia;
28030
+ var Ba;
28019
28031
  function ua() {
28020
- if (Ia) return z;
28021
- Ia = 1;
28032
+ if (Ba) return z;
28033
+ Ba = 1;
28022
28034
  var e = z && z.__assign || function() {
28023
- return e = Object.assign || function(d) {
28035
+ return e = Object.assign || function(c) {
28024
28036
  for (var n, o = 1, y = arguments.length; o < y; o++) {
28025
28037
  n = arguments[o];
28026
- for (var b in n) Object.prototype.hasOwnProperty.call(n, b) && (d[b] = n[b]);
28038
+ for (var b in n) Object.prototype.hasOwnProperty.call(n, b) && (c[b] = n[b]);
28027
28039
  }
28028
- return d;
28040
+ return c;
28029
28041
  }, e.apply(this, arguments);
28030
- }, i = z && z.__awaiter || function(d, n, o, y) {
28031
- function b(c) {
28032
- return c instanceof o ? c : new o(function(T) {
28033
- T(c);
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);
28034
28046
  });
28035
28047
  }
28036
- return new (o || (o = Promise))(function(c, T) {
28037
- function S(E) {
28048
+ return new (o || (o = Promise))(function(d, T) {
28049
+ function S(D) {
28038
28050
  try {
28039
- h(y.next(E));
28040
- } catch (M) {
28041
- T(M);
28051
+ v(y.next(D));
28052
+ } catch (L) {
28053
+ T(L);
28042
28054
  }
28043
28055
  }
28044
- function D(E) {
28056
+ function E(D) {
28045
28057
  try {
28046
- h(y.throw(E));
28047
- } catch (M) {
28048
- T(M);
28058
+ v(y.throw(D));
28059
+ } catch (L) {
28060
+ T(L);
28049
28061
  }
28050
28062
  }
28051
- function h(E) {
28052
- E.done ? c(E.value) : b(E.value).then(S, D);
28063
+ function v(D) {
28064
+ D.done ? d(D.value) : b(D.value).then(S, E);
28053
28065
  }
28054
- h((y = y.apply(d, n || [])).next());
28066
+ v((y = y.apply(c, n || [])).next());
28055
28067
  });
28056
- }, m = z && z.__generator || function(d, n) {
28068
+ }, m = z && z.__generator || function(c, n) {
28057
28069
  var o = { label: 0, sent: function() {
28058
- if (c[0] & 1) throw c[1];
28059
- return c[1];
28060
- }, trys: [], ops: [] }, y, b, c, T = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
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);
28061
28073
  return T.next = S(0), T.throw = S(1), T.return = S(2), typeof Symbol == "function" && (T[Symbol.iterator] = function() {
28062
28074
  return this;
28063
28075
  }), T;
28064
- function S(h) {
28065
- return function(E) {
28066
- return D([h, E]);
28076
+ function S(v) {
28077
+ return function(D) {
28078
+ return E([v, D]);
28067
28079
  };
28068
28080
  }
28069
- function D(h) {
28081
+ function E(v) {
28070
28082
  if (y) throw new TypeError("Generator is already executing.");
28071
- for (; T && (T = 0, h[0] && (o = 0)), o; ) try {
28072
- if (y = 1, b && (c = h[0] & 2 ? b.return : h[0] ? b.throw || ((c = b.return) && c.call(b), 0) : b.next) && !(c = c.call(b, h[1])).done) return c;
28073
- switch (b = 0, c && (h = [h[0] & 2, c.value]), h[0]) {
28083
+ 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]) {
28074
28086
  case 0:
28075
28087
  case 1:
28076
- c = h;
28088
+ d = v;
28077
28089
  break;
28078
28090
  case 4:
28079
- return o.label++, { value: h[1], done: !1 };
28091
+ return o.label++, { value: v[1], done: !1 };
28080
28092
  case 5:
28081
- o.label++, b = h[1], h = [0];
28093
+ o.label++, b = v[1], v = [0];
28082
28094
  continue;
28083
28095
  case 7:
28084
- h = o.ops.pop(), o.trys.pop();
28096
+ v = o.ops.pop(), o.trys.pop();
28085
28097
  continue;
28086
28098
  default:
28087
- if (c = o.trys, !(c = c.length > 0 && c[c.length - 1]) && (h[0] === 6 || h[0] === 2)) {
28099
+ if (d = o.trys, !(d = d.length > 0 && d[d.length - 1]) && (v[0] === 6 || v[0] === 2)) {
28088
28100
  o = 0;
28089
28101
  continue;
28090
28102
  }
28091
- if (h[0] === 3 && (!c || h[1] > c[0] && h[1] < c[3])) {
28092
- o.label = h[1];
28103
+ if (v[0] === 3 && (!d || v[1] > d[0] && v[1] < d[3])) {
28104
+ o.label = v[1];
28093
28105
  break;
28094
28106
  }
28095
- if (h[0] === 6 && o.label < c[1]) {
28096
- o.label = c[1], c = h;
28107
+ if (v[0] === 6 && o.label < d[1]) {
28108
+ o.label = d[1], d = v;
28097
28109
  break;
28098
28110
  }
28099
- if (c && o.label < c[2]) {
28100
- o.label = c[2], o.ops.push(h);
28111
+ if (d && o.label < d[2]) {
28112
+ o.label = d[2], o.ops.push(v);
28101
28113
  break;
28102
28114
  }
28103
- c[2] && o.ops.pop(), o.trys.pop();
28115
+ d[2] && o.ops.pop(), o.trys.pop();
28104
28116
  continue;
28105
28117
  }
28106
- h = n.call(d, o);
28107
- } catch (E) {
28108
- h = [6, E], b = 0;
28118
+ v = n.call(c, o);
28119
+ } catch (D) {
28120
+ v = [6, D], b = 0;
28109
28121
  } finally {
28110
- y = c = 0;
28122
+ y = d = 0;
28111
28123
  }
28112
- if (h[0] & 5) throw h[1];
28113
- return { value: h[0] ? h[1] : void 0, done: !0 };
28124
+ if (v[0] & 5) throw v[1];
28125
+ return { value: v[0] ? v[1] : void 0, done: !0 };
28114
28126
  }
28115
- }, t = z && z.__importDefault || function(d) {
28116
- return d && d.__esModule ? d : { default: d };
28127
+ }, t = z && z.__importDefault || function(c) {
28128
+ return c && c.__esModule ? c : { default: c };
28117
28129
  };
28118
28130
  Object.defineProperty(z, "__esModule", { value: !0 }), z.useWebSocket = void 0;
28119
- var r = Ee, p = tl, f = K(), _ = El(), u = Ll(), g = t(Gl()), s = sa(), l = function(d, n, o) {
28131
+ var r = Le, p = rl, f = j(), _ = Ml(), u = Rl(), g = t(Pl()), s = sa(), l = function(c, n, o) {
28120
28132
  n === void 0 && (n = f.DEFAULT_OPTIONS), o === void 0 && (o = !0);
28121
- var y = (0, r.useState)(null), b = y[0], c = y[1], T = (0, r.useState)({}), S = T[0], D = T[1], h = (0, r.useMemo)(function() {
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() {
28122
28134
  if (!n.disableJson && b)
28123
28135
  try {
28124
28136
  return JSON.parse(b.data);
@@ -28126,50 +28138,50 @@ function ua() {
28126
28138
  return f.UNPARSABLE_JSON_OBJECT;
28127
28139
  }
28128
28140
  return null;
28129
- }, [b, n.disableJson]), E = (0, r.useRef)(null), M = (0, r.useRef)(null), ye = (0, r.useRef)(function() {
28130
- }), be = (0, r.useRef)(0), Ae = (0, r.useRef)(Date.now()), Le = (0, r.useRef)([]), A = (0, r.useRef)(null), w = (0, r.useRef)(n);
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);
28131
28143
  w.current = n;
28132
- var V = E.current && S[E.current] !== void 0 ? S[E.current] : d !== null && o === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED, te = n.queryParams ? JSON.stringify(n.queryParams) : null, j = (0, r.useCallback)(function(x, F) {
28133
- var Q;
28134
- if (F === void 0 && (F = !0), f.isEventSourceSupported && M.current instanceof EventSource) {
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) {
28145
+ var Y;
28146
+ if (F === void 0 && (F = !0), f.isEventSourceSupported && L.current instanceof EventSource) {
28135
28147
  console.warn("Unable to send a message from an eventSource");
28136
28148
  return;
28137
28149
  }
28138
- ((Q = M.current) === null || Q === void 0 ? void 0 : Q.readyState) === f.ReadyState.OPEN ? ((0, s.assertIsWebSocket)(M.current, w.current.skipAssert), M.current.send(x)) : F && Le.current.push(x);
28139
- }, []), Ge = (0, r.useCallback)(function(x, F) {
28140
- F === void 0 && (F = !0), j(JSON.stringify(x), F);
28141
- }, [j]), Me = (0, r.useCallback)(function() {
28142
- return w.current.share !== !0 || f.isEventSourceSupported && M.current instanceof EventSource ? M.current : (A.current === null && M.current && ((0, s.assertIsWebSocket)(M.current, w.current.skipAssert), A.current = (0, g.default)(M.current, ye)), A.current);
28150
+ ((Y = L.current) === null || Y === void 0 ? void 0 : Y.readyState) === f.ReadyState.OPEN ? ((0, s.assertIsWebSocket)(L.current, w.current.skipAssert), L.current.send(x)) : F && Ge.current.push(x);
28151
+ }, []), Me = (0, r.useCallback)(function(x, F) {
28152
+ F === void 0 && (F = !0), q(JSON.stringify(x), F);
28153
+ }, [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);
28143
28155
  }, []);
28144
28156
  return (0, r.useEffect)(function() {
28145
- if (d !== null && o === !0) {
28146
- var x, F = !1, Q = !0, Te = function() {
28157
+ if (c !== null && o === !0) {
28158
+ var x, F = !1, Y = !0, Ce = function() {
28147
28159
  return i(void 0, void 0, void 0, function() {
28148
- var ne, ee, Re;
28149
- return m(this, function(pe) {
28150
- switch (pe.label) {
28160
+ var re, ie, Pe;
28161
+ return m(this, function(de) {
28162
+ switch (de.label) {
28151
28163
  case 0:
28152
- return ne = E, [4, (0, u.getUrl)(d, w)];
28164
+ return re = D, [4, (0, u.getUrl)(c, w)];
28153
28165
  case 1:
28154
- return ne.current = pe.sent(), E.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), E.current = "ABORTED", (0, p.flushSync)(function() {
28155
- return D(function(q) {
28156
- return e(e({}, q), { ABORTED: f.ReadyState.CLOSED });
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() {
28167
+ return E(function(X) {
28168
+ return e(e({}, X), { ABORTED: f.ReadyState.CLOSED });
28157
28169
  });
28158
28170
  }), [
28159
28171
  2
28160
28172
  /*return*/
28161
- ]) : (ee = function(q) {
28173
+ ]) : (ie = function(X) {
28162
28174
  F || (0, p.flushSync)(function() {
28163
- return c(q);
28175
+ return d(X);
28164
28176
  });
28165
- }, Re = function(q) {
28177
+ }, Pe = function(X) {
28166
28178
  F || (0, p.flushSync)(function() {
28167
- return D(function(ge) {
28168
- var me;
28169
- return e(e({}, ge), E.current && (me = {}, me[E.current] = q, me));
28179
+ return E(function(ce) {
28180
+ var oe;
28181
+ return e(e({}, ce), D.current && (oe = {}, oe[D.current] = X, oe));
28170
28182
  });
28171
28183
  });
28172
- }, Q && (x = (0, _.createOrJoinSocket)(M, E.current, Re, w, ee, ye, be, Ae, j)), [
28184
+ }, Y && (x = (0, _.createOrJoinSocket)(L, D.current, Pe, w, ie, A, Q, Te, q)), [
28173
28185
  2
28174
28186
  /*return*/
28175
28187
  ]);
@@ -28177,35 +28189,35 @@ function ua() {
28177
28189
  });
28178
28190
  });
28179
28191
  };
28180
- return ye.current = function() {
28181
- F || (A.current && (A.current = null), x?.(), Te());
28182
- }, Te(), function() {
28183
- F = !0, Q = !1, A.current && (A.current = null), x?.(), c(null);
28192
+ return A.current = function() {
28193
+ F || (I.current && (I.current = null), x?.(), Ce());
28194
+ }, Ce(), function() {
28195
+ F = !0, Y = !1, I.current && (I.current = null), x?.(), d(null);
28184
28196
  };
28185
- } else (d === null || o === !1) && (be.current = 0, D(function(ne) {
28186
- var ee;
28187
- return e(e({}, ne), E.current && (ee = {}, ee[E.current] = f.ReadyState.CLOSED, ee));
28197
+ } else (c === null || o === !1) && (Q.current = 0, E(function(re) {
28198
+ var ie;
28199
+ return e(e({}, re), D.current && (ie = {}, ie[D.current] = f.ReadyState.CLOSED, ie));
28188
28200
  }));
28189
- }, [d, o, te, j]), (0, r.useEffect)(function() {
28190
- V === f.ReadyState.OPEN && Le.current.splice(0).forEach(function(x) {
28191
- j(x);
28201
+ }, [c, o, me, q]), (0, r.useEffect)(function() {
28202
+ V === f.ReadyState.OPEN && Ge.current.splice(0).forEach(function(x) {
28203
+ q(x);
28192
28204
  });
28193
28205
  }, [V]), {
28194
- sendMessage: j,
28195
- sendJsonMessage: Ge,
28206
+ sendMessage: q,
28207
+ sendJsonMessage: Me,
28196
28208
  lastMessage: b,
28197
- lastJsonMessage: h,
28209
+ lastJsonMessage: v,
28198
28210
  readyState: V,
28199
- getWebSocket: Me
28211
+ getWebSocket: Re
28200
28212
  };
28201
28213
  };
28202
28214
  return z.useWebSocket = l, z;
28203
28215
  }
28204
- var ue = {}, Ba;
28205
- function Ml() {
28206
- if (Ba) return ue;
28207
- Ba = 1;
28208
- var e = ue && ue.__assign || function() {
28216
+ var ge = {}, Ka;
28217
+ function xl() {
28218
+ if (Ka) return ge;
28219
+ Ka = 1;
28220
+ var e = ge && ge.__assign || function() {
28209
28221
  return e = Object.assign || function(_) {
28210
28222
  for (var u, g = 1, s = arguments.length; g < s; g++) {
28211
28223
  u = arguments[g];
@@ -28214,8 +28226,8 @@ function Ml() {
28214
28226
  return _;
28215
28227
  }, e.apply(this, arguments);
28216
28228
  };
28217
- Object.defineProperty(ue, "__esModule", { value: !0 }), ue.useSocketIO = void 0;
28218
- var i = Ee, m = ua(), t = K(), r = {
28229
+ Object.defineProperty(ge, "__esModule", { value: !0 }), ge.useSocketIO = void 0;
28230
+ var i = Le, m = ua(), t = j(), r = {
28219
28231
  type: "empty",
28220
28232
  payload: null
28221
28233
  }, p = function(_) {
@@ -28233,25 +28245,25 @@ function Ml() {
28233
28245
  u === void 0 && (u = t.DEFAULT_OPTIONS), g === void 0 && (g = !0);
28234
28246
  var s = (0, i.useMemo)(function() {
28235
28247
  return e(e({}, u), { fromSocketIO: !0 });
28236
- }, []), l = (0, m.useWebSocket)(_, s, g), d = l.sendMessage, n = l.sendJsonMessage, o = l.lastMessage, y = l.readyState, b = l.getWebSocket, c = (0, i.useMemo)(function() {
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() {
28237
28249
  return p(o);
28238
28250
  }, [o]);
28239
28251
  return {
28240
- sendMessage: d,
28252
+ sendMessage: c,
28241
28253
  sendJsonMessage: n,
28242
- lastMessage: c,
28243
- lastJsonMessage: c,
28254
+ lastMessage: d,
28255
+ lastJsonMessage: d,
28244
28256
  readyState: y,
28245
28257
  getWebSocket: b
28246
28258
  };
28247
28259
  };
28248
- return ue.useSocketIO = f, ue;
28260
+ return ge.useSocketIO = f, ge;
28249
28261
  }
28250
- var $ = {}, Ka;
28251
- function Rl() {
28252
- if (Ka) return $;
28253
- Ka = 1;
28254
- var e = $ && $.__assign || function() {
28262
+ var ae = {}, ja;
28263
+ function Ol() {
28264
+ if (ja) return ae;
28265
+ ja = 1;
28266
+ var e = ae && ae.__assign || function() {
28255
28267
  return e = Object.assign || function(f) {
28256
28268
  for (var _, u = 1, g = arguments.length; u < g; u++) {
28257
28269
  _ = arguments[u];
@@ -28259,7 +28271,7 @@ function Rl() {
28259
28271
  }
28260
28272
  return f;
28261
28273
  }, e.apply(this, arguments);
28262
- }, i = $ && $.__rest || function(f, _) {
28274
+ }, i = ae && ae.__rest || function(f, _) {
28263
28275
  var u = {};
28264
28276
  for (var g in f) Object.prototype.hasOwnProperty.call(f, g) && _.indexOf(g) < 0 && (u[g] = f[g]);
28265
28277
  if (f != null && typeof Object.getOwnPropertySymbols == "function")
@@ -28267,46 +28279,46 @@ function Rl() {
28267
28279
  _.indexOf(g[s]) < 0 && Object.prototype.propertyIsEnumerable.call(f, g[s]) && (u[g[s]] = f[g[s]]);
28268
28280
  return u;
28269
28281
  };
28270
- Object.defineProperty($, "__esModule", { value: !0 }), $.useEventSource = void 0;
28271
- var m = Ee, t = ua(), r = K(), p = function(f, _, u) {
28282
+ Object.defineProperty(ae, "__esModule", { value: !0 }), ae.useEventSource = void 0;
28283
+ var m = Le, t = ua(), r = j(), p = function(f, _, u) {
28272
28284
  _ === void 0 && (_ = r.DEFAULT_EVENT_SOURCE_OPTIONS);
28273
28285
  var g = _.withCredentials, s = _.events, l = i(_, ["withCredentials", "events"]);
28274
28286
  u === void 0 && (u = !0);
28275
- var d = e(e({}, l), { eventSourceOptions: {
28287
+ var c = e(e({}, l), { eventSourceOptions: {
28276
28288
  withCredentials: g
28277
28289
  } }), n = (0, m.useRef)(r.EMPTY_EVENT_HANDLERS);
28278
28290
  s && (n.current = s);
28279
- var o = (0, t.useWebSocket)(f, d, u), y = o.lastMessage, b = o.readyState, c = o.getWebSocket;
28291
+ var o = (0, t.useWebSocket)(f, c, u), y = o.lastMessage, b = o.readyState, d = o.getWebSocket;
28280
28292
  return (0, m.useEffect)(function() {
28281
28293
  y?.type && Object.entries(n.current).forEach(function(T) {
28282
- var S = T[0], D = T[1];
28283
- S === y.type && D(y);
28294
+ var S = T[0], E = T[1];
28295
+ S === y.type && E(y);
28284
28296
  });
28285
28297
  }, [y]), {
28286
28298
  lastEvent: y,
28287
28299
  readyState: b,
28288
- getEventSource: c
28300
+ getEventSource: d
28289
28301
  };
28290
28302
  };
28291
- return $.useEventSource = p, $;
28303
+ return ae.useEventSource = p, ae;
28292
28304
  }
28293
- var ja;
28294
- function Pl() {
28295
- return ja || (ja = 1, (function(e) {
28305
+ var Qa;
28306
+ function Hl() {
28307
+ return Qa || (Qa = 1, (function(e) {
28296
28308
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
28297
28309
  var i = ua();
28298
28310
  Object.defineProperty(e, "default", { enumerable: !0, get: function() {
28299
28311
  return i.useWebSocket;
28300
28312
  } });
28301
- var m = Ml();
28313
+ var m = xl();
28302
28314
  Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
28303
28315
  return m.useSocketIO;
28304
28316
  } });
28305
- var t = K();
28317
+ var t = j();
28306
28318
  Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
28307
28319
  return t.ReadyState;
28308
28320
  } });
28309
- var r = Rl();
28321
+ var r = Ol();
28310
28322
  Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
28311
28323
  return r.useEventSource;
28312
28324
  } });
@@ -28314,10 +28326,10 @@ function Pl() {
28314
28326
  Object.defineProperty(e, "resetGlobalState", { enumerable: !0, get: function() {
28315
28327
  return p.resetGlobalState;
28316
28328
  } });
28317
- })(qe)), qe;
28329
+ })(Ye)), Ye;
28318
28330
  }
28319
- var xl = Pl();
28320
- const Ol = /* @__PURE__ */ nl(xl), I = {
28331
+ var wl = Hl();
28332
+ const Fl = /* @__PURE__ */ ol(wl), B = {
28321
28333
  DEPOSIT: "deposit",
28322
28334
  TRANS_CODE: "transCode",
28323
28335
  ERROR: "error",
@@ -28328,7 +28340,7 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28328
28340
  TRANSFER_IN_GAME: "transfer_in_game",
28329
28341
  CHECK_REQUEST: "CHECK_RREQUEST",
28330
28342
  CASH_REGISTER_LIMIT: "cash_register_limit"
28331
- }, Hl = 3e4, dt = ({
28343
+ }, Wl = 3e4, ft = ({
28332
28344
  socketUrl: e,
28333
28345
  socketHandlers: i = {},
28334
28346
  options: m = {}
@@ -28344,109 +28356,109 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28344
28356
  readyState: u
28345
28357
  // WebSocket 連線狀態
28346
28358
  // getWebSocket, // 獲取 WebSocket 實例
28347
- } = Ol(e, {
28359
+ } = Fl(e, {
28348
28360
  queryParams: { key: "wsky" },
28349
28361
  onOpen: () => console.log("連線成功"),
28350
28362
  shouldReconnect: () => t.current === !1,
28351
28363
  reconnectAttempts: 9999,
28352
28364
  reconnectInterval: 1e3,
28353
28365
  ...m
28354
- }), g = aa(() => {
28366
+ }), g = ia(() => {
28355
28367
  try {
28356
28368
  return JSON.parse(_?.data);
28357
28369
  } catch {
28358
28370
  return null;
28359
28371
  }
28360
28372
  }, [_?.data]);
28361
- return Ne(() => {
28373
+ return De(() => {
28362
28374
  const s = setInterval(
28363
28375
  () => p("ping"),
28364
- Hl
28376
+ Wl
28365
28377
  );
28366
28378
  return () => clearInterval(s);
28367
- }, [p]), Ne(() => {
28379
+ }, [p]), De(() => {
28368
28380
  r.current = i;
28369
- }, [i]), Ne(() => {
28381
+ }, [i]), De(() => {
28370
28382
  if (!g) return;
28371
28383
  const {
28372
28384
  onDeposit: s,
28373
28385
  onTransCode: l,
28374
- onError: d,
28386
+ onError: c,
28375
28387
  onUpdateMember: n,
28376
28388
  onMaintainNotice: o,
28377
28389
  onMaintainNoticeMember: y,
28378
28390
  onReload: b,
28379
- onTransferInGame: c,
28391
+ onTransferInGame: d,
28380
28392
  onCashRegisterLimit: T
28381
- } = r.current, S = He(g, "type", ""), D = {
28382
- memberInfoUid: He(g, "member_info_uid", null),
28383
- data: He(g, "data", null),
28384
- memo: He(g, "memo", null)
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)
28385
28397
  };
28386
28398
  switch (S) {
28387
- case I.DEPOSIT:
28388
- s?.(D);
28399
+ case B.DEPOSIT:
28400
+ s?.(E);
28389
28401
  break;
28390
- case I.TRANS_CODE:
28391
- l?.(D);
28402
+ case B.TRANS_CODE:
28403
+ l?.(E);
28392
28404
  break;
28393
- case I.ERROR:
28394
- d?.(D);
28405
+ case B.ERROR:
28406
+ c?.(E);
28395
28407
  break;
28396
- case I.UPDATE_MEMBER:
28397
- n?.(D);
28408
+ case B.UPDATE_MEMBER:
28409
+ n?.(E);
28398
28410
  break;
28399
- case I.MAINTAIN_NOTICE:
28400
- o?.(D);
28411
+ case B.MAINTAIN_NOTICE:
28412
+ o?.(E);
28401
28413
  break;
28402
- case I.MAINTAIN_NOTICE_MEMBER:
28403
- y?.(D);
28414
+ case B.MAINTAIN_NOTICE_MEMBER:
28415
+ y?.(E);
28404
28416
  break;
28405
- case I.RELOAD:
28406
- b?.(D);
28417
+ case B.RELOAD:
28418
+ b?.(E);
28407
28419
  break;
28408
- case I.TRANSFER_IN_GAME:
28409
- case I.CHECK_REQUEST:
28410
- c?.(D);
28420
+ case B.TRANSFER_IN_GAME:
28421
+ case B.CHECK_REQUEST:
28422
+ d?.(E);
28411
28423
  break;
28412
- case I.CASH_REGISTER_LIMIT:
28413
- T?.(D);
28424
+ case B.CASH_REGISTER_LIMIT:
28425
+ T?.(E);
28414
28426
  break;
28415
28427
  default:
28416
28428
  console.warn("Unknown socket type:", S);
28417
28429
  break;
28418
28430
  }
28419
- }, [g]), Ne(() => () => t.current = !0, []), {
28431
+ }, [g]), De(() => () => t.current = !0, []), {
28420
28432
  sendMessage: p,
28421
28433
  sendJsonMessage: f,
28422
28434
  readyState: u
28423
28435
  // WebSocket 連線狀態
28424
28436
  };
28425
- }, _i = () => {
28426
- const { client: e } = le(), i = B(async () => {
28437
+ }, fi = () => {
28438
+ const { client: e } = ne(), i = K(async () => {
28427
28439
  const { data: t } = await e.get("/carousels");
28428
28440
  return t;
28429
- }, [e]), m = B(async () => await e.get("/marquees"), [e]);
28441
+ }, [e]), m = K(async () => await e.get("/marquees"), [e]);
28430
28442
  return { commonCarouselApi: i, commonMarqueeApi: m };
28431
- }, ct = () => {
28432
- const { commonCarouselApi: e } = _i();
28433
- return ae({
28443
+ }, Ut = () => {
28444
+ const { commonCarouselApi: e } = fi();
28445
+ return le({
28434
28446
  queryKey: ["getCarouselList"],
28435
28447
  queryFn: async () => await e()
28436
28448
  });
28437
- }, _t = () => {
28438
- const { lng: e } = le(), { commonMarqueeApi: i } = _i(), m = di(e);
28439
- return ae({
28449
+ }, yt = () => {
28450
+ const { lng: e } = ne(), { commonMarqueeApi: i } = fi(), m = ci(e);
28451
+ return le({
28440
28452
  queryKey: ["getMarqueeList"],
28441
28453
  queryFn: async () => i(),
28442
28454
  select: (t) => {
28443
28455
  const r = t.Marquees;
28444
- return Ve(r, (f) => f[m] || f["en-US"]);
28456
+ return Ie(r, (f) => f[m] || f["en-US"]);
28445
28457
  }
28446
28458
  });
28447
- }, wl = () => {
28448
- const { client: e, lng: i } = le(), m = di(i || "tw");
28449
- return { playGameApi: B(
28459
+ }, Jl = () => {
28460
+ const { client: e, lng: i } = ne(), m = ci(i || "tw");
28461
+ return { playGameApi: K(
28450
28462
  async (r) => {
28451
28463
  const {
28452
28464
  gameUid: p = "",
@@ -28472,24 +28484,24 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28472
28484
  },
28473
28485
  [e, m]
28474
28486
  ) };
28475
- }, fi = "3.7.8", Fl = fi, Ue = typeof Buffer == "function", Qa = typeof TextDecoder == "function" ? new TextDecoder() : void 0, qa = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Wl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", De = Array.prototype.slice.call(Wl), We = ((e) => {
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) => {
28476
28488
  let i = {};
28477
28489
  return e.forEach((m, t) => i[m] = t), i;
28478
- })(De), Jl = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, H = String.fromCharCode.bind(String), Ya = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), Ui = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (i) => i == "+" ? "-" : "_"), yi = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), bi = (e) => {
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) => {
28479
28491
  let i, m, t, r, p = "";
28480
28492
  const f = e.length % 3;
28481
28493
  for (let _ = 0; _ < e.length; ) {
28482
28494
  if ((m = e.charCodeAt(_++)) > 255 || (t = e.charCodeAt(_++)) > 255 || (r = e.charCodeAt(_++)) > 255)
28483
28495
  throw new TypeError("invalid character found");
28484
- i = m << 16 | t << 8 | r, p += De[i >> 18 & 63] + De[i >> 12 & 63] + De[i >> 6 & 63] + De[i & 63];
28496
+ i = m << 16 | t << 8 | r, p += Ee[i >> 18 & 63] + Ee[i >> 12 & 63] + Ee[i >> 6 & 63] + Ee[i & 63];
28485
28497
  }
28486
28498
  return f ? p.slice(0, f - 3) + "===".substring(f) : p;
28487
- }, pa = typeof btoa == "function" ? (e) => btoa(e) : Ue ? (e) => Buffer.from(e, "binary").toString("base64") : bi, ia = Ue ? (e) => Buffer.from(e).toString("base64") : (e) => {
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) => {
28488
28500
  let m = [];
28489
28501
  for (let t = 0, r = e.length; t < r; t += 4096)
28490
28502
  m.push(H.apply(null, e.subarray(t, t + 4096)));
28491
28503
  return pa(m.join(""));
28492
- }, ze = (e, i = !1) => i ? Ui(ia(e)) : ia(e), zl = (e) => {
28504
+ }, Ze = (e, i = !1) => i ? yi(la(e)) : la(e), Al = (e) => {
28493
28505
  if (e.length < 2) {
28494
28506
  var i = e.charCodeAt(0);
28495
28507
  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);
@@ -28497,7 +28509,7 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28497
28509
  var i = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
28498
28510
  return H(240 | i >>> 18 & 7) + H(128 | i >>> 12 & 63) + H(128 | i >>> 6 & 63) + H(128 | i & 63);
28499
28511
  }
28500
- }, Zl = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Ti = (e) => e.replace(Zl, zl), Xa = Ue ? (e) => Buffer.from(e, "utf8").toString("base64") : qa ? (e) => ia(qa.encode(e)) : (e) => pa(Ti(e)), _e = (e, i = !1) => i ? Ui(Xa(e)) : Xa(e), $a = (e) => _e(e, !0), Vl = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Al = (e) => {
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) => {
28501
28513
  switch (e.length) {
28502
28514
  case 4:
28503
28515
  var i = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), m = i - 65536;
@@ -28507,72 +28519,72 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28507
28519
  default:
28508
28520
  return H((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
28509
28521
  }
28510
- }, Ci = (e) => e.replace(Vl, Al), vi = (e) => {
28511
- if (e = e.replace(/\s+/g, ""), !Jl.test(e))
28522
+ }, vi = (e) => e.replace(Bl, Kl), hi = (e) => {
28523
+ if (e = e.replace(/\s+/g, ""), !Vl.test(e))
28512
28524
  throw new TypeError("malformed base64.");
28513
28525
  e += "==".slice(2 - (e.length & 3));
28514
28526
  let i, m, t, r = [];
28515
28527
  for (let p = 0; p < e.length; )
28516
- i = We[e.charAt(p++)] << 18 | We[e.charAt(p++)] << 12 | (m = We[e.charAt(p++)]) << 6 | (t = We[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));
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));
28517
28529
  return r.join("");
28518
- }, ga = typeof atob == "function" ? (e) => atob(yi(e)) : Ue ? (e) => Buffer.from(e, "base64").toString("binary") : vi, hi = Ue ? (e) => Ya(Buffer.from(e, "base64")) : (e) => Ya(ga(e).split("").map((i) => i.charCodeAt(0))), ki = (e) => hi(Si(e)), Il = Ue ? (e) => Buffer.from(e, "base64").toString("utf8") : Qa ? (e) => Qa.decode(hi(e)) : (e) => Ci(ga(e)), Si = (e) => yi(e.replace(/[-_]/g, (i) => i == "-" ? "+" : "/")), la = (e) => Il(Si(e)), Bl = (e) => {
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) => {
28519
28531
  if (typeof e != "string")
28520
28532
  return !1;
28521
28533
  const i = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
28522
28534
  return !/[^\s0-9a-zA-Z\+/]/.test(i) || !/[^\s0-9a-zA-Z\-_]/.test(i);
28523
- }, Ni = (e) => ({
28535
+ }, Di = (e) => ({
28524
28536
  value: e,
28525
28537
  enumerable: !1,
28526
28538
  writable: !0,
28527
28539
  configurable: !0
28528
- }), Di = function() {
28529
- const e = (i, m) => Object.defineProperty(String.prototype, i, Ni(m));
28540
+ }), Ei = function() {
28541
+ const e = (i, m) => Object.defineProperty(String.prototype, i, Di(m));
28530
28542
  e("fromBase64", function() {
28531
- return la(this);
28543
+ return ta(this);
28532
28544
  }), e("toBase64", function(i) {
28533
- return _e(this, i);
28545
+ return Ue(this, i);
28534
28546
  }), e("toBase64URI", function() {
28535
- return _e(this, !0);
28547
+ return Ue(this, !0);
28536
28548
  }), e("toBase64URL", function() {
28537
- return _e(this, !0);
28549
+ return Ue(this, !0);
28538
28550
  }), e("toUint8Array", function() {
28539
- return ki(this);
28551
+ return Si(this);
28540
28552
  });
28541
- }, Ei = function() {
28542
- const e = (i, m) => Object.defineProperty(Uint8Array.prototype, i, Ni(m));
28553
+ }, Li = function() {
28554
+ const e = (i, m) => Object.defineProperty(Uint8Array.prototype, i, Di(m));
28543
28555
  e("toBase64", function(i) {
28544
- return ze(this, i);
28556
+ return Ze(this, i);
28545
28557
  }), e("toBase64URI", function() {
28546
- return ze(this, !0);
28558
+ return Ze(this, !0);
28547
28559
  }), e("toBase64URL", function() {
28548
- return ze(this, !0);
28560
+ return Ze(this, !0);
28549
28561
  });
28550
- }, Kl = () => {
28551
- Di(), Ei();
28552
- }, jl = {
28553
- version: fi,
28554
- VERSION: Fl,
28562
+ }, ql = () => {
28563
+ Ei(), Li();
28564
+ }, Yl = {
28565
+ version: Ui,
28566
+ VERSION: zl,
28555
28567
  atob: ga,
28556
- atobPolyfill: vi,
28568
+ atobPolyfill: hi,
28557
28569
  btoa: pa,
28558
- btoaPolyfill: bi,
28559
- fromBase64: la,
28560
- toBase64: _e,
28561
- encode: _e,
28562
- encodeURI: $a,
28563
- encodeURL: $a,
28564
- utob: Ti,
28565
- btou: Ci,
28566
- decode: la,
28567
- isValid: Bl,
28568
- fromUint8Array: ze,
28569
- toUint8Array: ki,
28570
- extendString: Di,
28571
- extendUint8Array: Ei,
28572
- extendBuiltins: Kl
28573
- }, ft = (e, i) => {
28574
- const { playGameApi: m } = wl();
28575
- return ae({
28570
+ btoaPolyfill: Ti,
28571
+ fromBase64: ta,
28572
+ toBase64: Ue,
28573
+ encode: Ue,
28574
+ encodeURI: ei,
28575
+ encodeURL: ei,
28576
+ utob: Ci,
28577
+ btou: vi,
28578
+ decode: ta,
28579
+ isValid: Ql,
28580
+ fromUint8Array: Ze,
28581
+ toUint8Array: Si,
28582
+ extendString: Ei,
28583
+ extendUint8Array: Li,
28584
+ extendBuiltins: ql
28585
+ }, bt = (e, i) => {
28586
+ const { playGameApi: m } = Jl();
28587
+ return le({
28576
28588
  queryKey: ["playGame"],
28577
28589
  queryFn: async () => {
28578
28590
  const { gameUid: t, gameCode: r, isMobile: p, gameCurrency: f, currentCurrency: _ } = e || {}, u = await m({
@@ -28585,7 +28597,7 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28585
28597
  game_currency: g,
28586
28598
  lang: s,
28587
28599
  not_support_iframe: l,
28588
- portrait: d,
28600
+ portrait: c,
28589
28601
  url: n,
28590
28602
  is_html_code: o,
28591
28603
  message: y
@@ -28594,39 +28606,39 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28594
28606
  gameCurrency: g,
28595
28607
  lang: s,
28596
28608
  supportIframe: !l,
28597
- supportPortrait: d,
28609
+ supportPortrait: c,
28598
28610
  isHtmlCode: o,
28599
28611
  gameUrl: n,
28600
- decodeGameUrl: jl.decode(n),
28612
+ decodeGameUrl: Yl.decode(n),
28601
28613
  message: y
28602
28614
  };
28603
28615
  },
28604
28616
  enabled: !!e?.gameCode,
28605
28617
  ...i
28606
28618
  });
28607
- }, Ql = ({ options: e } = {}) => {
28608
- const { userLoginApi: i } = fe();
28609
- return mi({
28619
+ }, Xl = ({ options: e } = {}) => {
28620
+ const { userLoginApi: i } = ye();
28621
+ return ri({
28610
28622
  mutationKey: ["userLogin"],
28611
28623
  mutationFn: async (m) => i(m),
28612
28624
  ...e
28613
28625
  });
28614
- }, ql = ({ options: e } = {}) => {
28615
- const { userLogoutApi: i } = fe();
28616
- return mi({
28626
+ }, $l = ({ options: e } = {}) => {
28627
+ const { userLogoutApi: i } = ye();
28628
+ return ri({
28617
28629
  mutationKey: ["userLogout"],
28618
28630
  mutationFn: async () => i(),
28619
28631
  ...e
28620
28632
  });
28621
- }, Ut = ({
28633
+ }, Tt = ({
28622
28634
  options: e = {
28623
28635
  login: {},
28624
28636
  logout: {}
28625
28637
  }
28626
28638
  } = {}) => {
28627
- const i = Ql({ options: e.login }), m = ql({ options: e.logout });
28639
+ const i = Xl({ options: e.login }), m = $l({ options: e.logout });
28628
28640
  return { login: i, logout: m };
28629
- }, ei = (e) => {
28641
+ }, ai = (e) => {
28630
28642
  switch (e) {
28631
28643
  case "tw":
28632
28644
  return "Tw";
@@ -28645,8 +28657,8 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28645
28657
  default:
28646
28658
  return "En";
28647
28659
  }
28648
- }, Yl = "https://d1h3qe8voog6w4.cloudfront.net", ai = "https://d3jx2uvukujuvn.cloudfront.net", ii = "game-icon-ds88", yt = ({ gameData: e = {} } = {}) => {
28649
- const { lng: i } = le(), m = ei(i), {
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), {
28650
28662
  gameCode: t,
28651
28663
  // 遊戲代碼
28652
28664
  gameUid: r,
@@ -28666,7 +28678,7 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28666
28678
  // 遊戲子類型
28667
28679
  game_type: l,
28668
28680
  // 遊戲類型
28669
- game_tags: d,
28681
+ game_tags: c,
28670
28682
  // 遊戲標籤
28671
28683
  isUnderMaintenance: n,
28672
28684
  // 是否維護中
@@ -28676,15 +28688,15 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28676
28688
  // 是否支援橫向
28677
28689
  userClickCount: b,
28678
28690
  // 用戶點擊次數
28679
- gameNameEn: c,
28691
+ gameNameEn: d,
28680
28692
  // 英文名稱
28681
28693
  gameNameZh: T,
28682
28694
  // 中文名稱
28683
28695
  gameNameVi: S,
28684
28696
  // 越南名稱
28685
- gameNameTw: D
28697
+ gameNameTw: E
28686
28698
  // 繁體中文名稱
28687
- } = e, h = e?.[`gameName${ei(m)}`], E = `${ai}/${ii}/en/${g}/${La(t, / /g, "_")}.webp`, M = `${ai}/${ii}/en/${g}/${La(t, / /g, "_")}.gif`;
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`;
28688
28700
  return {
28689
28701
  gameCode: t,
28690
28702
  gameUid: r,
@@ -28695,20 +28707,20 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28695
28707
  gamePlatform: g,
28696
28708
  gameSubType: s,
28697
28709
  gameType: l,
28698
- gameTags: d,
28710
+ gameTags: c,
28699
28711
  isUnderMaintenance: n,
28700
28712
  supportVertical: o,
28701
28713
  supportHorizontal: y,
28702
28714
  userClickCount: b,
28703
- gameNameEn: c,
28715
+ gameNameEn: d,
28704
28716
  gameNameZh: T,
28705
28717
  gameNameVi: S,
28706
- gameNameTw: D,
28707
- gameName: h,
28708
- gameImageUrl: E,
28709
- gameImageUrlAnimated: M
28718
+ gameNameTw: E,
28719
+ gameName: v,
28720
+ gameImageUrl: D,
28721
+ gameImageUrlAnimated: L
28710
28722
  };
28711
- }, Xl = "ds88platformIcon", $l = (e, i = !1) => ll([
28723
+ }, at = "ds88platformIcon", it = (e, i = !1) => ml([
28712
28724
  "EVO",
28713
28725
  "IMSPRIBE",
28714
28726
  "SABA",
@@ -28719,7 +28731,7 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28719
28731
  "HACK",
28720
28732
  "NAGA",
28721
28733
  "RSG"
28722
- ], e) && i ? `${e}_dark` : e, bt = ({ platformData: e, darkMode: i } = {}) => {
28734
+ ], e) && i ? `${e}_dark` : e, vt = ({ platformData: e, darkMode: i } = {}) => {
28723
28735
  const {
28724
28736
  SubPlatformEnum: m,
28725
28737
  // 子平台枚舉
@@ -28741,7 +28753,7 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28741
28753
  // 臨時維護開始時間
28742
28754
  temp_maintenance_end_time: l
28743
28755
  // 臨時維護結束時間
28744
- } = e || {}, d = `${Yl}/${Xl}/${$l(t, i)}.png`;
28756
+ } = e || {}, c = `${et}/${at}/${it(t, i)}.png`;
28745
28757
  return {
28746
28758
  subPlatformEnum: m,
28747
28759
  platformEnum: t,
@@ -28753,48 +28765,48 @@ const Ol = /* @__PURE__ */ nl(xl), I = {
28753
28765
  platformMode: g,
28754
28766
  tempMaintenanceStartTime: s,
28755
28767
  tempMaintenanceEndTime: l,
28756
- platformImageUrl: d
28768
+ platformImageUrl: c
28757
28769
  };
28758
28770
  };
28759
28771
  export {
28760
- ri as ApiCtx,
28761
- st as ApiProvider,
28762
- oi as GamesInfoCtx,
28763
- yl as buildMultiTypes,
28764
- rt as buildMultiTypesWithSubTypes,
28765
- gl as buildSinglePlatformWithSubTypes,
28766
- pl as buildSingleType,
28767
- Ul as categorizeGames,
28768
- di as convertLanguageCode,
28769
- mt as createLogoutHandler,
28770
- _l as extractGameSubTypeNames,
28771
- cl as extractGameTypeNames,
28772
- Pa as extractPlatformNames,
28773
- gi as filterGamesByPlatform,
28774
- si as findGameTypeUid,
28775
- ui as findPlatformUid,
28776
- pi as findSubPlatform,
28777
- dl as flattenAllGames,
28778
- fl as flattenFavoriteGames,
28779
- bl as groupGamesByPlatform,
28780
- Tl as groupGamesByPlatformAndSubType,
28781
- ul as groupGamesBySubType,
28782
- kl as initMockWindowData,
28783
- Cl as processGameInfo,
28784
- ot as processPlatformData,
28785
- le as useApiContext,
28786
- ut as useBalanceGetter,
28787
- dt as useClientWebSocket,
28788
- yt as useGameConfig,
28789
- nt as useGameInfoContext,
28790
- hl as useGamesInfo,
28791
- ct as useGetCarouseList,
28792
- _t as useGetMarquee,
28793
- pt as useGetMemberInfo,
28794
- gt as useInitializeWithToken,
28795
- Ql as useLogin,
28796
- ql as useLogout,
28797
- bt as usePlatformConfig,
28798
- ft as usePlayGame,
28799
- Ut as useUser
28772
+ oi as ApiCtx,
28773
+ gt as ApiProvider,
28774
+ si as GamesInfoCtx,
28775
+ Cl as buildMultiTypes,
28776
+ ut as buildMultiTypesWithSubTypes,
28777
+ _l as buildSinglePlatformWithSubTypes,
28778
+ cl as buildSingleType,
28779
+ Tl as categorizeGames,
28780
+ ci as convertLanguageCode,
28781
+ st as createLogoutHandler,
28782
+ yl as extractGameSubTypeNames,
28783
+ Ul as extractGameTypeNames,
28784
+ xa as extractPlatformNames,
28785
+ di as filterGamesByPlatform,
28786
+ ui as findGameTypeUid,
28787
+ pi as findPlatformUid,
28788
+ 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,
28797
+ 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
28800
28812
  };