@obb871001/api-integration-sdk 1.0.114 → 1.0.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,38 +1,38 @@
1
- import Ee, { createContext as li, useContext as ti, useCallback as B, useMemo as ia, 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 na, isEmpty as O, isObject as Ze, flatMap as Ve, isArray as ie, map as Ae, entries as ll, values as tl, get as He, replace as La, includes as nl } from "lodash";
5
- import ml from "react-dom";
6
- function rl(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 ol() {
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 sl() {
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
38
  for (var U = arguments.length, C = new Array(U > 1 ? U - 1 : 0), h = 1; h < U; h++)
@@ -42,31 +42,31 @@ function sl() {
42
42
  }
43
43
  function S(a, U, C) {
44
44
  {
45
- var h = c.ReactDebugCurrentFrame, L = h.getStackAddendum();
46
- L !== "" && (U += "%s", C = C.concat([L]));
47
- var M = C.map(function(D) {
48
- return String(D);
45
+ var h = d.ReactDebugCurrentFrame, G = h.getStackAddendum();
46
+ G !== "" && (U += "%s", C = C.concat([G]));
47
+ var M = C.map(function(N) {
48
+ return String(N);
49
49
  });
50
50
  M.unshift("Warning: " + U), Function.prototype.apply.call(console[a], console, M);
51
51
  }
52
52
  }
53
- var E = !1, v = !1, N = !1, G = !1, te = !1, ne;
54
- ne = Symbol.for("react.module.reference");
55
- function Ie(a) {
56
- return !!(typeof a == "string" || typeof a == "function" || a === t || a === p || te || a === r || a === g || a === s || G || a === n || E || v || N || 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 === ne || a.getModuleId !== void 0));
60
+ a.$$typeof === Q || a.getModuleId !== void 0));
61
61
  }
62
- function Le(a, U, C) {
62
+ function Ge(a, U, C) {
63
63
  var h = a.displayName;
64
64
  if (h)
65
65
  return h;
66
- var L = U.displayName || U.name || "";
67
- return L !== "" ? C + "(" + L + ")" : C;
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 sl() {
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
104
  var h = a.displayName || null;
105
105
  return h !== null ? h : w(a.type) || "Memo";
106
- case d: {
107
- var L = a, M = L._payload, D = L._init;
106
+ case c: {
107
+ var G = a, M = G._payload, N = G._init;
108
108
  try {
109
- return w(D(M));
109
+ return w(N(M));
110
110
  } catch {
111
111
  return null;
112
112
  }
@@ -114,14 +114,14 @@ function sl() {
114
114
  }
115
115
  return null;
116
116
  }
117
- var V = Object.assign, me = 0, j, Ge, Me, x, F, Q, Te;
117
+ var V = Object.assign, me = 0, q, Me, Re, x, F, Y, Ce;
118
118
  function re() {
119
119
  }
120
120
  re.__reactDisabledLog = !0;
121
- function ee() {
121
+ function ie() {
122
122
  {
123
123
  if (me === 0) {
124
- j = console.log, Ge = console.info, Me = console.warn, x = console.error, F = console.group, Q = console.groupCollapsed, Te = console.groupEnd;
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,
@@ -141,7 +141,7 @@ function sl() {
141
141
  me++;
142
142
  }
143
143
  }
144
- function Re() {
144
+ function Pe() {
145
145
  {
146
146
  if (me--, me === 0) {
147
147
  var a = {
@@ -151,13 +151,13 @@ function sl() {
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,72 +166,72 @@ function sl() {
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
176
  me < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
177
177
  }
178
178
  }
179
- var de = c.ReactCurrentDispatcher, q;
179
+ var de = d.ReactCurrentDispatcher, X;
180
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 h = L.stack.trim().match(/\n( *(at )?)/);
187
- q = h && h[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 oe = !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
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
206
  var h;
207
207
  oe = !0;
208
- var L = Error.prepareStackTrace;
208
+ var G = Error.prepareStackTrace;
209
209
  Error.prepareStackTrace = void 0;
210
210
  var M;
211
- M = de.current, de.current = null, ee();
211
+ M = de.current, de.current = null, ie();
212
212
  try {
213
213
  if (U) {
214
- var D = function() {
214
+ var N = function() {
215
215
  throw Error();
216
216
  };
217
- if (Object.defineProperty(D.prototype, "props", {
217
+ if (Object.defineProperty(N.prototype, "props", {
218
218
  set: function() {
219
219
  throw Error();
220
220
  }
221
221
  }), typeof Reflect == "object" && Reflect.construct) {
222
222
  try {
223
- Reflect.construct(D, []);
223
+ Reflect.construct(N, []);
224
224
  } catch (J) {
225
225
  h = J;
226
226
  }
227
- Reflect.construct(a, [], D);
227
+ Reflect.construct(a, [], N);
228
228
  } else {
229
229
  try {
230
- D.call();
230
+ N.call();
231
231
  } catch (J) {
232
232
  h = J;
233
233
  }
234
- a.call(D.prototype);
234
+ a.call(N.prototype);
235
235
  }
236
236
  } else {
237
237
  try {
@@ -254,30 +254,30 @@ function sl() {
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
- oe = !1, de.current = M, Re(), Error.prepareStackTrace = L;
264
+ oe = !1, de.current = M, Pe(), Error.prepareStackTrace = G;
265
265
  }
266
266
  var fe = a ? a.displayName || a.name : "", se = fe ? ce(fe) : "";
267
- return typeof a == "function" && Pe.set(a, se), se;
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
282
  return ce(a);
283
283
  switch (a) {
@@ -289,57 +289,57 @@ function sl() {
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 h = a, L = h._payload, M = h._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(M(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, h, L) {
313
+ function Pi(a, U, C, h, G) {
314
314
  {
315
- var M = Function.call.bind(Ce);
316
- for (var D in a)
317
- if (M(a, D)) {
315
+ var M = Function.call.bind(ve);
316
+ for (var N in a)
317
+ if (M(a, N)) {
318
318
  var k = void 0;
319
319
  try {
320
- if (typeof a[D] != "function") {
321
- var W = Error((h || "React class") + ": " + C + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
320
+ if (typeof a[N] != "function") {
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[D](U, D, h, 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).", h || "React class", C, D, 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;
332
+ var xi = Array.isArray;
333
333
  function Be(a) {
334
- return Pi(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 sl() {
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 sl() {
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 sl() {
400
400
  });
401
401
  }
402
402
  }
403
- var Zi = function(a, U, C, h, L, M, D) {
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,
@@ -408,7 +408,7 @@ function sl() {
408
408
  type: a,
409
409
  key: U,
410
410
  ref: C,
411
- props: D,
411
+ props: N,
412
412
  // Record the component responsible for creating this element.
413
413
  _owner: M
414
414
  };
@@ -426,31 +426,31 @@ function sl() {
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, h, L) {
432
+ function Ai(a, U, C, h, G) {
433
433
  {
434
- var M, D = {}, 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));
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
436
  for (M in U)
437
- Ce.call(U, M) && !Hi.hasOwnProperty(M) && (D[M] = U[M]);
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
440
  for (M in R)
441
- D[M] === void 0 && (D[M] = R[M]);
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(D, P), W && zi(D, P);
445
+ k && zi(N, P), W && Zi(N, P);
446
446
  }
447
- return Zi(a, k, W, L, h, ya.current, D);
447
+ return Vi(a, k, W, G, h, ya.current, N);
448
448
  }
449
449
  }
450
- var Ke = c.ReactCurrentOwner, Ca = c.ReactDebugCurrentFrame;
450
+ var Ke = d.ReactCurrentOwner, Ca = d.ReactDebugCurrentFrame;
451
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);
@@ -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,7 +493,7 @@ 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;
@@ -513,14 +513,14 @@ Check the top-level render call using <` + C + ">.");
513
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 M = L.call(a), D; !(D = M.next()).done; )
519
- Qe(D.value) && ka(D.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")
@@ -536,16 +536,16 @@ Check the top-level render call using <` + C + ">.");
536
536
  return;
537
537
  if (C) {
538
538
  var h = w(U);
539
- Ri(C, a.props, "prop", h, a);
539
+ Pi(C, a.props, "prop", h, a);
540
540
  } else if (U.PropTypes !== void 0 && !je) {
541
541
  je = !0;
542
- var L = w(U);
543
- T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
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
551
  var h = U[C];
@@ -558,21 +558,21 @@ Check the top-level render call using <` + C + ">.");
558
558
  }
559
559
  }
560
560
  var Na = {};
561
- function Da(a, U, C, h, L, M) {
561
+ function Da(a, U, C, h, G, M) {
562
562
  {
563
- var D = Ie(a);
564
- if (!D) {
563
+ var N = Te(a);
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
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, M);
572
+ var P = Ai(a, U, C, G, M);
573
573
  if (P == null)
574
574
  return P;
575
- if (D) {
575
+ if (N) {
576
576
  var Z = U.children;
577
577
  if (Z !== void 0)
578
578
  if (h)
@@ -585,45 +585,45 @@ Check the top-level render call using <` + C + ">.");
585
585
  else
586
586
  Sa(Z, a);
587
587
  }
588
- if (Ce.call(U, "key")) {
589
- var se = w(a), J = Object.keys(U).filter(function($i) {
590
- return $i !== "key";
588
+ if (ve.call(U, "key")) {
589
+ var se = w(a), J = Object.keys(U).filter(function(el) {
590
+ return el !== "key";
591
591
  }), qe = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
592
592
  if (!Na[se + qe]) {
593
- var Xi = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
593
+ var $i = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
594
594
  T(`A props object containing a "key" prop is being spread into JSX:
595
595
  let props = %s;
596
596
  <%s {...props} />
597
597
  React keys must be passed directly to JSX without using spread:
598
598
  let props = %s;
599
- <%s key={someKey} {...props} />`, qe, se, Xi, se), Na[se + 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 ul() {
617
- return Ra || (Ra = 1, process.env.NODE_ENV === "production" ? we.exports = ol() : we.exports = sl()), 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 = ul();
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 pl({
626
+ function gl({
627
627
  baseURL: e,
628
628
  getToken: i,
629
629
  timeoutMs: m = 15e3,
@@ -631,7 +631,7 @@ function pl({
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 pl({
648
648
  (_) => p ? p(_, { instance: f }) : Promise.reject(_)
649
649
  ), f;
650
650
  }
651
- const oi = li(null), rt = () => {
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
- }, ot = () => {
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), rt = () => {
674
674
  shouldShowErrorNotice: e,
675
675
  isMachineDomain: i
676
676
  };
677
- }, si = (e = [], i) => na(e, { gameTypeName: i })?.gameTypeUid, ui = (e = [], i) => na(e, { platform: i })?.platformUid, pi = (e = [], i) => na(e, { SubPlatformEnum: i }), gi = (e = [], i, m) => O(e) ? [] : e.filter((t) => m ? String(t?.SubPlatformEnumUid) === String(m?.SubPlatformEnumUid) : String(t.platformUid) === String(i)), gl = (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
- }, {}), dl = ({
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
- }, cl = ({
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 gl(p);
707
- }, _l = (e = {}) => !Ze(e) || O(e) ? [] : Ve(e), Pa = (e = []) => !ie(e) || O(e) ? [] : Ae(e, "platform"), fl = (e = []) => !ie(e) || O(e) ? [] : Ae(e, "gameTypeName"), Ul = (e = []) => !ie(e) || O(e) ? [] : Ae(e, "game_subtype"), yl = (e = {}) => !Ze(e) || O(e) ? [] : Ve(e), bl = (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
- }, {}), Tl = ({
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 _ = dl({
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), rt = () => {
724
724
  allPlatforms: r
725
725
  });
726
726
  return O(_) || (p[f] = _), p;
727
- }, {}), st = ({
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 = cl({
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
- }, {}), Cl = (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), {}), vl = (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), rt = () => {
755
755
  }
756
756
  }
757
757
  return i;
758
- }, hl = ({
758
+ }, kl = ({
759
759
  allGameList: e = {},
760
760
  allGamePlatform: i = [],
761
761
  allGameType: m = [],
@@ -768,24 +768,28 @@ const oi = li(null), rt = () => {
768
768
  highlightGames: g = [],
769
769
  originPlatform: s = []
770
770
  }) => {
771
- const l = _l(e), d = Pa(i), n = fl(m), o = Ul(t), y = Pa(s), b = yl(_), c = Tl({
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 = bl(l, t), S = Cl(c), E = vl(S), v = ll(c).reduce(
778
- (N, [G, te]) => {
779
- const ne = Ve(tl(te));
780
- return N[G] = ne, N;
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
781
  },
782
782
  {}
783
- );
783
+ ), D = La(d).reduce((L, A) => {
784
+ const Q = La(d[A]);
785
+ return L[A] = Q, L;
786
+ }, {});
784
787
  return {
785
788
  platform: {
786
- all: d,
789
+ all: c,
787
790
  origin: y,
788
- originPlatform: i
791
+ originPlatform: i,
792
+ byGameType: D
789
793
  },
790
794
  type: {
791
795
  main: n,
@@ -806,19 +810,19 @@ const oi = li(null), rt = () => {
806
810
  bySubType: { ...T, MyFavorite: b },
807
811
  byPlatform: S,
808
812
  byPlatformAndCategory: E,
809
- byGameTypeAndPlatform: c,
813
+ byGameTypeAndPlatform: d,
810
814
  byGameType: v
811
815
  },
812
816
  user: {
813
817
  favorite: b
814
818
  }
815
819
  };
816
- }, ut = (e = []) => !ie(e) || O(e) ? [] : Ve(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) => ({
817
821
  ...i,
818
822
  ...m,
819
823
  platform: m.SubPlatformEnum,
820
824
  platformEnum: m.SubPlatformEnum
821
- }))), di = (e) => {
825
+ }))), ci = (e) => {
822
826
  switch (e) {
823
827
  case "tw":
824
828
  return "zh_TW";
@@ -838,17 +842,17 @@ const oi = li(null), rt = () => {
838
842
  return e;
839
843
  }
840
844
  }, ye = () => {
841
- const { client: e } = le(), i = B(
845
+ const { client: e } = ne(), i = K(
842
846
  async (u) => {
843
- 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", {
844
848
  mac_address: g,
845
849
  app_version: s,
846
850
  anydesk_id: l
847
851
  });
848
- return d;
852
+ return c;
849
853
  },
850
854
  [e]
851
- ), 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(
852
856
  async (u) => {
853
857
  const { account: g, password: s, trans_code: l } = u;
854
858
  return await e.post("/login", {
@@ -858,7 +862,7 @@ const oi = li(null), rt = () => {
858
862
  });
859
863
  },
860
864
  [e]
861
- ), _ = B(async () => await e.post("/logout"), [e]);
865
+ ), _ = K(async () => await e.post("/logout"), [e]);
862
866
  return {
863
867
  machineLoginApi: i,
864
868
  userInfoApi: m,
@@ -868,8 +872,8 @@ const oi = li(null), rt = () => {
868
872
  userLoginApi: f,
869
873
  userLogoutApi: _
870
874
  };
871
- }, kl = {
872
- platform: { all: [], origin: [], originPlatform: [] },
875
+ }, Sl = {
876
+ platform: { all: [], origin: [], originPlatform: [], byGameType: {} },
873
877
  type: { main: [], sub: [], originMain: [], originSub: [] },
874
878
  gameList: {
875
879
  all: [],
@@ -888,8 +892,8 @@ const oi = li(null), rt = () => {
888
892
  byGameType: {}
889
893
  },
890
894
  user: { favorite: [] }
891
- }, Sl = ({ enabled: e = !0 } = {}) => {
892
- const { getToken: i } = le(), { userFavoriteGameApi: m, userGameListApi: t } = ye(), { 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({
893
897
  queryKey: ["gamesInfo"],
894
898
  queryFn: async () => {
895
899
  let u = {}, g = {};
@@ -898,14 +902,14 @@ const oi = li(null), rt = () => {
898
902
  } catch (s) {
899
903
  console.warn("Failed to fetch favorite games:", s);
900
904
  }
901
- return hl({
905
+ return kl({
902
906
  allGameList: g.gameTypeGroup || window.gameTypeGroup || {},
903
907
  allGamePlatform: g.platforms || window.platforms || [],
904
908
  allGameType: g.gameType || window.gameType || [],
905
909
  allGame_subtype: g.gameSubType || window.gameSubType || [],
906
910
  allNewGameList: g.newGames || window.newGames || [],
907
911
  allTopGameList: g.topGames || window.topGames || [],
908
- userFavoriteGame: u || {},
912
+ userFavoriteGame: u.userFavoriteGame || {},
909
913
  randomlySelectedGames: g.randomlySelectedGames || window.randomlySelectedGames || [],
910
914
  exclusiveBrandGames: g.exclusiveBrandGames || window.exclusiveBrandGames || [],
911
915
  highlightGames: g.highlightGames || window.highlightGames || [],
@@ -921,12 +925,12 @@ const oi = li(null), rt = () => {
921
925
  refetchOnWindowFocus: !1
922
926
  });
923
927
  return {
924
- gamesInfo: r || kl,
928
+ gamesInfo: r || Sl,
925
929
  isLoading: p,
926
930
  error: f,
927
931
  refetch: _
928
932
  };
929
- }, Nl = (e = !1) => {
933
+ }, Dl = (e = !1) => {
930
934
  if (!e && window.gameTypeGroup) {
931
935
  console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
932
936
  return;
@@ -27453,26 +27457,26 @@ const oi = li(null), rt = () => {
27453
27457
  is_invalid_bet: 0
27454
27458
  }
27455
27459
  });
27456
- }, Dl = ({
27460
+ }, El = ({
27457
27461
  children: e,
27458
27462
  autoFetch: i = !1,
27459
27463
  mockData: m = !1
27460
27464
  }) => {
27461
- Ne(() => {
27462
- m && Nl(!0);
27465
+ De(() => {
27466
+ m && Dl(!0);
27463
27467
  }, [m]);
27464
- const t = Sl({ enabled: i });
27465
- 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 });
27466
27470
  };
27467
- function pt({
27471
+ function gt({
27468
27472
  children: e,
27469
27473
  autoFetchGamesInfo: i = !1,
27470
27474
  useMockData: m = !1,
27471
27475
  queryClient: t,
27472
27476
  ...r
27473
27477
  }) {
27474
- const p = ia(() => pl(r), [r]), f = ia(
27475
- () => new el({
27478
+ const p = ia(() => gl(r), [r]), f = ia(
27479
+ () => new al({
27476
27480
  defaultOptions: {
27477
27481
  queries: {
27478
27482
  refetchOnWindowFocus: !1,
@@ -27482,11 +27486,11 @@ function pt({
27482
27486
  }),
27483
27487
  []
27484
27488
  ), _ = t || f;
27485
- return /* @__PURE__ */ Je.jsx(al, { client: _, children: /* @__PURE__ */ Je.jsx(ri.Provider, { value: { client: p, ...r }, children: /* @__PURE__ */ Je.jsx(Dl, { 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 }) }) });
27486
27490
  }
27487
- const gt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27488
- const { userCurrencyExchangeApi: m } = ye(), { getToken: t } = le(), { enabled: r, ...p } = i, _ = !!t?.() && (r ? r.every((u) => u) : !0);
27489
- 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({
27490
27494
  queries: [
27491
27495
  {
27492
27496
  queryKey: ["userCurrencyExchange", ...e],
@@ -27498,13 +27502,13 @@ const gt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27498
27502
  }
27499
27503
  ]
27500
27504
  });
27501
- }, dt = ({
27505
+ }, ct = ({
27502
27506
  refetchInterval: e = 5e4,
27503
27507
  trigger: i = [],
27504
27508
  enabled: m = !0
27505
27509
  } = {}) => {
27506
- const { getToken: t } = le(), r = t?.(), { userInfoApi: p } = ye();
27507
- return ni({
27510
+ const { getToken: t } = ne(), r = t?.(), { userInfoApi: p } = ye();
27511
+ return mi({
27508
27512
  queries: [
27509
27513
  {
27510
27514
  queryKey: ["getMemberInfo", ...i],
@@ -27514,25 +27518,25 @@ const gt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27514
27518
  }
27515
27519
  ]
27516
27520
  });
27517
- }, ct = ({ enabled: e = !0 } = {}) => {
27521
+ }, _t = ({ enabled: e = !0 } = {}) => {
27518
27522
  const {
27519
27523
  userInfoApi: i,
27520
27524
  userFavoriteGameApi: m,
27521
27525
  userGameListApi: t,
27522
27526
  userCurrencyExchangeApi: r
27523
- } = ye(), p = ae({
27527
+ } = ye(), p = le({
27524
27528
  queryKey: ["getMemInfo"],
27525
27529
  queryFn: async () => i(),
27526
27530
  enabled: e
27527
- }), f = ae({
27531
+ }), f = le({
27528
27532
  queryKey: ["getFavoriteGame"],
27529
27533
  queryFn: async () => m(),
27530
27534
  enabled: e && p.isSuccess
27531
- }), _ = ae({
27535
+ }), _ = le({
27532
27536
  queryKey: ["getUserGameList"],
27533
27537
  queryFn: async () => t(),
27534
27538
  enabled: e && p.isSuccess && f.isSuccess
27535
- }), u = ae({
27539
+ }), u = le({
27536
27540
  queryKey: ["getUserCurrencyExchange"],
27537
27541
  queryFn: async () => r(),
27538
27542
  enabled: e && p.isSuccess && f.isSuccess && _.isSuccess
@@ -27544,9 +27548,9 @@ const gt = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27544
27548
  u
27545
27549
  ];
27546
27550
  };
27547
- var Ye = {}, z = {}, Xe = {}, xa;
27548
- function K() {
27549
- return xa || (xa = 1, (function(e) {
27551
+ var Ye = {}, z = {}, Xe = {}, Oa;
27552
+ function j() {
27553
+ return Oa || (Oa = 1, (function(e) {
27550
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;
27551
27555
  var i = 1, m = 1e3 * i;
27552
27556
  e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
@@ -27571,9 +27575,9 @@ function K() {
27571
27575
  e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && r();
27572
27576
  })(Xe)), Xe;
27573
27577
  }
27574
- var ke = {}, $e = {}, Oa;
27578
+ var Se = {}, $e = {}, Ha;
27575
27579
  function ma() {
27576
- return Oa || (Oa = 1, (function(e) {
27580
+ return Ha || (Ha = 1, (function(e) {
27577
27581
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
27578
27582
  var i = function(m) {
27579
27583
  if (m && e.sharedWebSockets.hasOwnProperty(m))
@@ -27585,11 +27589,11 @@ function ma() {
27585
27589
  e.resetWebSockets = i;
27586
27590
  })($e)), $e;
27587
27591
  }
27588
- var ue = {}, Y = {}, Ha;
27592
+ var ue = {}, $ = {}, wa;
27589
27593
  function ra() {
27590
- if (Ha) return Y;
27591
- Ha = 1, Object.defineProperty(Y, "__esModule", { value: !0 }), Y.setUpSocketIOPing = Y.appendQueryParams = Y.parseSocketIOUrl = void 0;
27592
- 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) {
27593
27597
  if (r) {
27594
27598
  var p = /^https|wss/.test(r), f = r.replace(/^(https?|wss?)(:\/\/)?/, ""), _ = f.replace(/\/$/, ""), u = p ? "wss" : "ws";
27595
27599
  return "".concat(u, "://").concat(_).concat(e.SOCKET_IO_PATH);
@@ -27599,16 +27603,16 @@ function ra() {
27599
27603
  }
27600
27604
  return r;
27601
27605
  };
27602
- Y.parseSocketIOUrl = i;
27606
+ $.parseSocketIOUrl = i;
27603
27607
  var m = function(r, p) {
27604
27608
  p === void 0 && (p = {});
27605
27609
  var f = /\?([\w]+=[\w]+)/, _ = f.test(r), u = "".concat(Object.entries(p).reduce(function(g, s) {
27606
- var l = s[0], d = s[1];
27607
- return g + "".concat(l, "=").concat(d, "&");
27610
+ var l = s[0], c = s[1];
27611
+ return g + "".concat(l, "=").concat(c, "&");
27608
27612
  }, "").slice(0, -1));
27609
27613
  return "".concat(r).concat(_ ? "&" : "?").concat(u);
27610
27614
  };
27611
- Y.appendQueryParams = m;
27615
+ $.appendQueryParams = m;
27612
27616
  var t = function(r, p) {
27613
27617
  p === void 0 && (p = e.SOCKET_IO_PING_INTERVAL);
27614
27618
  var f = function() {
@@ -27616,26 +27620,26 @@ function ra() {
27616
27620
  };
27617
27621
  return window.setInterval(f, p);
27618
27622
  };
27619
- return Y.setUpSocketIOPing = t, Y;
27623
+ return $.setUpSocketIOPing = t, $;
27620
27624
  }
27621
- var Fe = {}, wa;
27622
- function ci() {
27623
- if (wa) return Fe;
27624
- wa = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.heartbeat = m;
27625
- 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();
27626
27630
  function i(t) {
27627
27631
  return Array.isArray(t) ? t.reduce(function(r, p) {
27628
27632
  return r.current > p.current ? r : p;
27629
27633
  }).current : t.current;
27630
27634
  }
27631
27635
  function m(t, r, p) {
27632
- 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() {
27633
- var b = Date.now(), c = i(r);
27634
- if (c + s <= b)
27635
- 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();
27636
- 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)
27637
27641
  try {
27638
- typeof d == "function" ? t.send(d()) : t.send(d), o = b;
27642
+ typeof c == "function" ? t.send(c()) : t.send(c), o = b;
27639
27643
  } catch (T) {
27640
27644
  console.error("Heartbeat failed, closing connection", T instanceof Error ? T.message : T), t.close();
27641
27645
  }
@@ -27645,11 +27649,11 @@ function ci() {
27645
27649
  }), function() {
27646
27650
  };
27647
27651
  }
27648
- return Fe;
27652
+ return We;
27649
27653
  }
27650
- var Se = {}, ea = {}, Fa;
27654
+ var Ne = {}, ea = {}, Wa;
27651
27655
  function oa() {
27652
- return Fa || (Fa = 1, (function(e) {
27656
+ return Wa || (Wa = 1, (function(e) {
27653
27657
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
27654
27658
  var i = {}, m = [], t = function(u) {
27655
27659
  return (0, e.hasSubscribers)(u) ? Array.from(i[u]) : m;
@@ -27678,10 +27682,10 @@ function oa() {
27678
27682
  e.resetSubscribers = _;
27679
27683
  })(ea)), ea;
27680
27684
  }
27681
- var Wa;
27685
+ var Ja;
27682
27686
  function sa() {
27683
- if (Wa) return Se;
27684
- 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;
27685
27689
  var e = ma(), i = oa();
27686
27690
  function m(r, p) {
27687
27691
  if (!p && !(r instanceof WebSocket))
@@ -27690,44 +27694,44 @@ function sa() {
27690
27694
  function t(r) {
27691
27695
  (0, i.resetSubscribers)(r), (0, e.resetWebSockets)(r);
27692
27696
  }
27693
- return Se;
27697
+ return Ne;
27694
27698
  }
27695
- var Ja;
27696
- function El() {
27697
- if (Ja) return ue;
27698
- Ja = 1;
27699
+ var za;
27700
+ function Ll() {
27701
+ if (za) return ue;
27702
+ za = 1;
27699
27703
  var e = ue && ue.__assign || function() {
27700
27704
  return e = Object.assign || function(s) {
27701
- for (var l, d = 1, n = arguments.length; d < n; d++) {
27702
- l = arguments[d];
27705
+ for (var l, c = 1, n = arguments.length; c < n; c++) {
27706
+ l = arguments[c];
27703
27707
  for (var o in l) Object.prototype.hasOwnProperty.call(l, o) && (s[o] = l[o]);
27704
27708
  }
27705
27709
  return s;
27706
27710
  }, e.apply(this, arguments);
27707
27711
  };
27708
27712
  Object.defineProperty(ue, "__esModule", { value: !0 }), ue.attachListeners = void 0;
27709
- var i = ra(), m = ci(), t = K(), r = sa(), p = function(s, l, d, n) {
27713
+ var i = ra(), m = _i(), t = j(), r = sa(), p = function(s, l, c, n) {
27710
27714
  s.onmessage = function(o) {
27711
27715
  var y;
27712
- 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));
27713
27717
  };
27714
- }, f = function(s, l, d, n, o) {
27718
+ }, f = function(s, l, c, n, o) {
27715
27719
  s.onopen = function(y) {
27716
- 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) {
27717
27721
  var b = typeof l.current.heartbeat == "boolean" ? void 0 : l.current.heartbeat;
27718
27722
  o.current = Date.now(), (0, m.heartbeat)(s, o, b);
27719
27723
  }
27720
27724
  };
27721
- }, _ = function(s, l, d, n, o) {
27725
+ }, _ = function(s, l, c, n, o) {
27722
27726
  if (t.isEventSourceSupported && s instanceof EventSource)
27723
27727
  return function() {
27724
27728
  };
27725
27729
  (0, r.assertIsWebSocket)(s, l.current.skipAssert);
27726
27730
  var y;
27727
27731
  return s.onclose = function(b) {
27728
- var c;
27729
- if (l.current.onClose && l.current.onClose(b), d(t.ReadyState.CLOSED), l.current.shouldReconnect && l.current.shouldReconnect(b)) {
27730
- 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;
27731
27735
  if (o.current < T) {
27732
27736
  var S = typeof l.current.reconnectInterval == "function" ? l.current.reconnectInterval(o.current) : l.current.reconnectInterval;
27733
27737
  y = window.setTimeout(function() {
@@ -27739,12 +27743,12 @@ function El() {
27739
27743
  }, function() {
27740
27744
  return y && window.clearTimeout(y);
27741
27745
  };
27742
- }, u = function(s, l, d, n, o) {
27746
+ }, u = function(s, l, c, n, o) {
27743
27747
  var y;
27744
27748
  return s.onerror = function(b) {
27745
- var c;
27746
- 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)
27747
- 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)) {
27748
27752
  var T = typeof l.current.reconnectInterval == "function" ? l.current.reconnectInterval(o.current) : l.current.reconnectInterval;
27749
27753
  y = window.setTimeout(function() {
27750
27754
  o.current++, n();
@@ -27754,124 +27758,124 @@ function El() {
27754
27758
  }, function() {
27755
27759
  return y && window.clearTimeout(y);
27756
27760
  };
27757
- }, g = function(s, l, d, n, o, y, b) {
27758
- var c = l.setLastMessage, T = l.setReadyState, S, E, v;
27759
- return d.current.fromSocketIO && (S = (0, i.setUpSocketIOPing)(b)), p(s, d, c, y), f(s, d, T, o, y), E = _(s, d, T, n, o), v = u(s, d, T, n, o), function() {
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() {
27760
27764
  T(t.ReadyState.CLOSING), E(), v(), s.close(), S && clearInterval(S);
27761
27765
  };
27762
27766
  };
27763
27767
  return ue.attachListeners = g, ue;
27764
27768
  }
27765
- var pe = {}, za;
27766
- function Ll() {
27767
- if (za) return pe;
27768
- za = 1;
27769
+ var pe = {}, Za;
27770
+ function Gl() {
27771
+ if (Za) return pe;
27772
+ Za = 1;
27769
27773
  var e = pe && pe.__assign || function() {
27770
27774
  return e = Object.assign || function(l) {
27771
- for (var d, n = 1, o = arguments.length; n < o; n++) {
27772
- d = arguments[n];
27773
- 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]);
27774
27778
  }
27775
27779
  return l;
27776
27780
  }, e.apply(this, arguments);
27777
27781
  };
27778
27782
  Object.defineProperty(pe, "__esModule", { value: !0 }), pe.attachSharedListeners = void 0;
27779
- var i = ma(), m = K(), t = oa(), r = ra(), p = ci(), f = function(l, d, n) {
27783
+ var i = ma(), m = j(), t = oa(), r = ra(), p = _i(), f = function(l, c, n) {
27780
27784
  l.onmessage = function(o) {
27781
- (0, t.getSubscribers)(d).forEach(function(y) {
27785
+ (0, t.getSubscribers)(c).forEach(function(y) {
27782
27786
  var b;
27783
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));
27784
27788
  });
27785
27789
  };
27786
- }, _ = function(l, d, n) {
27790
+ }, _ = function(l, c, n) {
27787
27791
  l.onopen = function(o) {
27788
- var y = (0, t.getSubscribers)(d);
27792
+ var y = (0, t.getSubscribers)(c);
27789
27793
  y.forEach(function(b) {
27790
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());
27791
27795
  }), n && l instanceof WebSocket && (0, p.heartbeat)(l, y.map(function(b) {
27792
27796
  return b.lastMessageTime;
27793
27797
  }), typeof n == "boolean" ? void 0 : n);
27794
27798
  };
27795
- }, u = function(l, d) {
27799
+ }, u = function(l, c) {
27796
27800
  l instanceof WebSocket && (l.onclose = function(n) {
27797
- (0, t.getSubscribers)(d).forEach(function(o) {
27801
+ (0, t.getSubscribers)(c).forEach(function(o) {
27798
27802
  o.optionsRef.current.onClose && o.optionsRef.current.onClose(n), o.setReadyState(m.ReadyState.CLOSED);
27799
- }), delete i.sharedWebSockets[d], (0, t.getSubscribers)(d).forEach(function(o) {
27803
+ }), delete i.sharedWebSockets[c], (0, t.getSubscribers)(c).forEach(function(o) {
27800
27804
  var y;
27801
27805
  if (o.optionsRef.current.shouldReconnect && o.optionsRef.current.shouldReconnect(n)) {
27802
27806
  var b = (y = o.optionsRef.current.reconnectAttempts) !== null && y !== void 0 ? y : m.DEFAULT_RECONNECT_LIMIT;
27803
27807
  if (o.reconnectCount.current < b) {
27804
- 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;
27805
27809
  setTimeout(function() {
27806
27810
  o.reconnectCount.current++, o.reconnect.current();
27807
- }, c ?? m.DEFAULT_RECONNECT_INTERVAL_MS);
27811
+ }, d ?? m.DEFAULT_RECONNECT_INTERVAL_MS);
27808
27812
  } else
27809
27813
  o.optionsRef.current.onReconnectStop && o.optionsRef.current.onReconnectStop(o.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(b, " exceeded"));
27810
27814
  }
27811
27815
  });
27812
27816
  });
27813
- }, g = function(l, d) {
27817
+ }, g = function(l, c) {
27814
27818
  l.onerror = function(n) {
27815
- (0, t.getSubscribers)(d).forEach(function(o) {
27819
+ (0, t.getSubscribers)(c).forEach(function(o) {
27816
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));
27817
27821
  }), m.isEventSourceSupported && l instanceof EventSource && l.close();
27818
27822
  };
27819
- }, s = function(l, d, n, o) {
27823
+ }, s = function(l, c, n, o) {
27820
27824
  var y;
27821
- 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() {
27822
27826
  y && clearInterval(y);
27823
27827
  };
27824
27828
  };
27825
27829
  return pe.attachSharedListeners = s, pe;
27826
27830
  }
27827
- var Za;
27828
- function Gl() {
27829
- if (Za) return ke;
27830
- Za = 1, Object.defineProperty(ke, "__esModule", { value: !0 }), ke.createOrJoinSocket = void 0;
27831
- var e = ma(), i = K(), m = El(), t = Ll(), 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) {
27832
27836
  return function() {
27833
27837
  if ((0, r.removeSubscriber)(_, u), !(0, r.hasSubscribers)(_)) {
27834
27838
  try {
27835
- var d = e.sharedWebSockets[_];
27836
- d instanceof WebSocket && (d.onclose = function(n) {
27839
+ var c = e.sharedWebSockets[_];
27840
+ c instanceof WebSocket && (c.onclose = function(n) {
27837
27841
  g.current.onClose && g.current.onClose(n), s(i.ReadyState.CLOSED);
27838
- }), d.close();
27842
+ }), c.close();
27839
27843
  } catch {
27840
27844
  }
27841
27845
  l && l(), delete e.sharedWebSockets[_];
27842
27846
  }
27843
27847
  };
27844
- }, f = function(_, u, g, s, l, d, n, o, y) {
27848
+ }, f = function(_, u, g, s, l, c, n, o, y) {
27845
27849
  if (!i.isEventSourceSupported && s.current.eventSourceOptions)
27846
27850
  throw i.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
27847
27851
  if (s.current.share) {
27848
27852
  var b = null;
27849
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));
27850
- var c = {
27854
+ var d = {
27851
27855
  setLastMessage: l,
27852
27856
  setReadyState: g,
27853
27857
  optionsRef: s,
27854
27858
  reconnectCount: n,
27855
27859
  lastMessageTime: o,
27856
- reconnect: d
27860
+ reconnect: c
27857
27861
  };
27858
- 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);
27859
27863
  } else {
27860
27864
  if (_.current = s.current.eventSourceOptions ? new EventSource(u, s.current.eventSourceOptions) : new WebSocket(u, s.current.protocols), g(i.ReadyState.CONNECTING), !_.current)
27861
27865
  throw new Error("WebSocket failed to be created");
27862
27866
  return (0, m.attachListeners)(_.current, {
27863
27867
  setLastMessage: l,
27864
27868
  setReadyState: g
27865
- }, s, d.current, n, o, y);
27869
+ }, s, c.current, n, o, y);
27866
27870
  }
27867
27871
  };
27868
- return ke.createOrJoinSocket = f, ke;
27872
+ return Se.createOrJoinSocket = f, Se;
27869
27873
  }
27870
- var X = {}, Va;
27871
- function Ml() {
27872
- return Va || (Va = 1, (function(e) {
27873
- var i = X && X.__awaiter || function(u, g, s, l) {
27874
- 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) {
27875
27879
  return n instanceof s ? n : new s(function(o) {
27876
27880
  o(n);
27877
27881
  });
@@ -27879,112 +27883,112 @@ function Ml() {
27879
27883
  return new (s || (s = Promise))(function(n, o) {
27880
27884
  function y(T) {
27881
27885
  try {
27882
- c(l.next(T));
27886
+ d(l.next(T));
27883
27887
  } catch (S) {
27884
27888
  o(S);
27885
27889
  }
27886
27890
  }
27887
27891
  function b(T) {
27888
27892
  try {
27889
- c(l.throw(T));
27893
+ d(l.throw(T));
27890
27894
  } catch (S) {
27891
27895
  o(S);
27892
27896
  }
27893
27897
  }
27894
- function c(T) {
27895
- 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);
27896
27900
  }
27897
- c((l = l.apply(u, g || [])).next());
27901
+ d((l = l.apply(u, g || [])).next());
27898
27902
  });
27899
- }, m = X && X.__generator || function(u, g) {
27903
+ }, m = ee && ee.__generator || function(u, g) {
27900
27904
  var s = { label: 0, sent: function() {
27901
27905
  if (n[0] & 1) throw n[1];
27902
27906
  return n[1];
27903
- }, 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);
27904
27908
  return o.next = y(0), o.throw = y(1), o.return = y(2), typeof Symbol == "function" && (o[Symbol.iterator] = function() {
27905
27909
  return this;
27906
27910
  }), o;
27907
- function y(c) {
27911
+ function y(d) {
27908
27912
  return function(T) {
27909
- return b([c, T]);
27913
+ return b([d, T]);
27910
27914
  };
27911
27915
  }
27912
- function b(c) {
27916
+ function b(d) {
27913
27917
  if (l) throw new TypeError("Generator is already executing.");
27914
- for (; o && (o = 0, c[0] && (s = 0)), s; ) try {
27915
- 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;
27916
- 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]) {
27917
27921
  case 0:
27918
27922
  case 1:
27919
- n = c;
27923
+ n = d;
27920
27924
  break;
27921
27925
  case 4:
27922
- return s.label++, { value: c[1], done: !1 };
27926
+ return s.label++, { value: d[1], done: !1 };
27923
27927
  case 5:
27924
- s.label++, d = c[1], c = [0];
27928
+ s.label++, c = d[1], d = [0];
27925
27929
  continue;
27926
27930
  case 7:
27927
- c = s.ops.pop(), s.trys.pop();
27931
+ d = s.ops.pop(), s.trys.pop();
27928
27932
  continue;
27929
27933
  default:
27930
- 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)) {
27931
27935
  s = 0;
27932
27936
  continue;
27933
27937
  }
27934
- if (c[0] === 3 && (!n || c[1] > n[0] && c[1] < n[3])) {
27935
- s.label = c[1];
27938
+ if (d[0] === 3 && (!n || d[1] > n[0] && d[1] < n[3])) {
27939
+ s.label = d[1];
27936
27940
  break;
27937
27941
  }
27938
- if (c[0] === 6 && s.label < n[1]) {
27939
- s.label = n[1], n = c;
27942
+ if (d[0] === 6 && s.label < n[1]) {
27943
+ s.label = n[1], n = d;
27940
27944
  break;
27941
27945
  }
27942
27946
  if (n && s.label < n[2]) {
27943
- s.label = n[2], s.ops.push(c);
27947
+ s.label = n[2], s.ops.push(d);
27944
27948
  break;
27945
27949
  }
27946
27950
  n[2] && s.ops.pop(), s.trys.pop();
27947
27951
  continue;
27948
27952
  }
27949
- c = g.call(u, s);
27953
+ d = g.call(u, s);
27950
27954
  } catch (T) {
27951
- c = [6, T], d = 0;
27955
+ d = [6, T], c = 0;
27952
27956
  } finally {
27953
27957
  l = n = 0;
27954
27958
  }
27955
- if (c[0] & 5) throw c[1];
27956
- 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 };
27957
27961
  }
27958
- }, t = X && X.__spreadArray || function(u, g, s) {
27959
- 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++)
27960
27964
  (n || !(l in g)) && (n || (n = Array.prototype.slice.call(g, 0, l)), n[l] = g[l]);
27961
27965
  return u.concat(n || Array.prototype.slice.call(g));
27962
27966
  };
27963
27967
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
27964
- var r = ra(), p = K(), f = function(u) {
27968
+ var r = ra(), p = j(), f = function(u) {
27965
27969
  return new Promise(function(g) {
27966
27970
  return window.setTimeout(g, u);
27967
27971
  });
27968
27972
  }, _ = function(u, g) {
27969
27973
  for (var s = [], l = 2; l < arguments.length; l++)
27970
27974
  s[l - 2] = arguments[l];
27971
- return i(void 0, t([u, g], s, !0), void 0, function(d, n, o) {
27972
- var y, b, c, T, S, E, v, N;
27973
- return o === void 0 && (o = 0), m(this, function(G) {
27974
- switch (G.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) {
27975
27979
  case 0:
27976
- if (typeof d != "function") return [3, 10];
27977
- G.label = 1;
27980
+ if (typeof c != "function") return [3, 10];
27981
+ L.label = 1;
27978
27982
  case 1:
27979
- return G.trys.push([1, 3, , 9]), [4, d()];
27983
+ return L.trys.push([1, 3, , 9]), [4, c()];
27980
27984
  case 2:
27981
- return y = G.sent(), [3, 9];
27985
+ return y = L.sent(), [3, 9];
27982
27986
  case 3:
27983
- return G.sent(), n.current.retryOnError ? (b = (E = n.current.reconnectAttempts) !== null && E !== void 0 ? E : p.DEFAULT_RECONNECT_LIMIT, o < b ? (c = typeof n.current.reconnectInterval == "function" ? n.current.reconnectInterval(o) : n.current.reconnectInterval, [4, f(c ?? p.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
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];
27984
27988
  case 4:
27985
- return G.sent(), [2, (0, e.getUrl)(d, n, o + 1)];
27989
+ return L.sent(), [2, (0, e.getUrl)(c, n, o + 1)];
27986
27990
  case 5:
27987
- return (N = (v = n.current).onReconnectStop) === null || N === void 0 || N.call(v, o), [2, null];
27991
+ return (D = (v = n.current).onReconnectStop) === null || D === void 0 || D.call(v, o), [2, null];
27988
27992
  case 6:
27989
27993
  return [3, 8];
27990
27994
  case 7:
@@ -27994,7 +27998,7 @@ function Ml() {
27994
27998
  case 9:
27995
27999
  return [3, 11];
27996
28000
  case 10:
27997
- y = d, G.label = 11;
28001
+ y = c, L.label = 11;
27998
28002
  case 11:
27999
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];
28000
28004
  }
@@ -28002,11 +28006,11 @@ function Ml() {
28002
28006
  });
28003
28007
  };
28004
28008
  e.getUrl = _;
28005
- })(X)), X;
28009
+ })(ee)), ee;
28006
28010
  }
28007
- var aa = {}, Aa;
28008
- function Rl() {
28009
- return Aa || (Aa = 1, (function(e) {
28011
+ var aa = {}, Ia;
28012
+ function Pl() {
28013
+ return Ia || (Ia = 1, (function(e) {
28010
28014
  Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
28011
28015
  var i = function(m, t) {
28012
28016
  return new Proxy(m, {
@@ -28023,65 +28027,65 @@ function Rl() {
28023
28027
  e.websocketWrapper = i, e.default = e.websocketWrapper;
28024
28028
  })(aa)), aa;
28025
28029
  }
28026
- var Ia;
28030
+ var Ba;
28027
28031
  function ua() {
28028
- if (Ia) return z;
28029
- Ia = 1;
28032
+ if (Ba) return z;
28033
+ Ba = 1;
28030
28034
  var e = z && z.__assign || function() {
28031
- return e = Object.assign || function(d) {
28035
+ return e = Object.assign || function(c) {
28032
28036
  for (var n, o = 1, y = arguments.length; o < y; o++) {
28033
28037
  n = arguments[o];
28034
- 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]);
28035
28039
  }
28036
- return d;
28040
+ return c;
28037
28041
  }, e.apply(this, arguments);
28038
- }, i = z && z.__awaiter || function(d, n, o, y) {
28039
- function b(c) {
28040
- return c instanceof o ? c : new o(function(T) {
28041
- 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);
28042
28046
  });
28043
28047
  }
28044
- return new (o || (o = Promise))(function(c, T) {
28045
- function S(N) {
28048
+ return new (o || (o = Promise))(function(d, T) {
28049
+ function S(D) {
28046
28050
  try {
28047
- v(y.next(N));
28048
- } catch (G) {
28049
- T(G);
28051
+ v(y.next(D));
28052
+ } catch (L) {
28053
+ T(L);
28050
28054
  }
28051
28055
  }
28052
- function E(N) {
28056
+ function E(D) {
28053
28057
  try {
28054
- v(y.throw(N));
28055
- } catch (G) {
28056
- T(G);
28058
+ v(y.throw(D));
28059
+ } catch (L) {
28060
+ T(L);
28057
28061
  }
28058
28062
  }
28059
- function v(N) {
28060
- N.done ? c(N.value) : b(N.value).then(S, E);
28063
+ function v(D) {
28064
+ D.done ? d(D.value) : b(D.value).then(S, E);
28061
28065
  }
28062
- v((y = y.apply(d, n || [])).next());
28066
+ v((y = y.apply(c, n || [])).next());
28063
28067
  });
28064
- }, m = z && z.__generator || function(d, n) {
28068
+ }, m = z && z.__generator || function(c, n) {
28065
28069
  var o = { label: 0, sent: function() {
28066
- if (c[0] & 1) throw c[1];
28067
- return c[1];
28068
- }, 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);
28069
28073
  return T.next = S(0), T.throw = S(1), T.return = S(2), typeof Symbol == "function" && (T[Symbol.iterator] = function() {
28070
28074
  return this;
28071
28075
  }), T;
28072
28076
  function S(v) {
28073
- return function(N) {
28074
- return E([v, N]);
28077
+ return function(D) {
28078
+ return E([v, D]);
28075
28079
  };
28076
28080
  }
28077
28081
  function E(v) {
28078
28082
  if (y) throw new TypeError("Generator is already executing.");
28079
28083
  for (; T && (T = 0, v[0] && (o = 0)), o; ) try {
28080
- if (y = 1, b && (c = v[0] & 2 ? b.return : v[0] ? b.throw || ((c = b.return) && c.call(b), 0) : b.next) && !(c = c.call(b, v[1])).done) return c;
28081
- switch (b = 0, c && (v = [v[0] & 2, c.value]), v[0]) {
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]) {
28082
28086
  case 0:
28083
28087
  case 1:
28084
- c = v;
28088
+ d = v;
28085
28089
  break;
28086
28090
  case 4:
28087
28091
  return o.label++, { value: v[1], done: !1 };
@@ -28092,41 +28096,41 @@ function ua() {
28092
28096
  v = o.ops.pop(), o.trys.pop();
28093
28097
  continue;
28094
28098
  default:
28095
- if (c = o.trys, !(c = c.length > 0 && c[c.length - 1]) && (v[0] === 6 || v[0] === 2)) {
28099
+ if (d = o.trys, !(d = d.length > 0 && d[d.length - 1]) && (v[0] === 6 || v[0] === 2)) {
28096
28100
  o = 0;
28097
28101
  continue;
28098
28102
  }
28099
- if (v[0] === 3 && (!c || v[1] > c[0] && v[1] < c[3])) {
28103
+ if (v[0] === 3 && (!d || v[1] > d[0] && v[1] < d[3])) {
28100
28104
  o.label = v[1];
28101
28105
  break;
28102
28106
  }
28103
- if (v[0] === 6 && o.label < c[1]) {
28104
- o.label = c[1], c = v;
28107
+ if (v[0] === 6 && o.label < d[1]) {
28108
+ o.label = d[1], d = v;
28105
28109
  break;
28106
28110
  }
28107
- if (c && o.label < c[2]) {
28108
- o.label = c[2], o.ops.push(v);
28111
+ if (d && o.label < d[2]) {
28112
+ o.label = d[2], o.ops.push(v);
28109
28113
  break;
28110
28114
  }
28111
- c[2] && o.ops.pop(), o.trys.pop();
28115
+ d[2] && o.ops.pop(), o.trys.pop();
28112
28116
  continue;
28113
28117
  }
28114
- v = n.call(d, o);
28115
- } catch (N) {
28116
- v = [6, N], b = 0;
28118
+ v = n.call(c, o);
28119
+ } catch (D) {
28120
+ v = [6, D], b = 0;
28117
28121
  } finally {
28118
- y = c = 0;
28122
+ y = d = 0;
28119
28123
  }
28120
28124
  if (v[0] & 5) throw v[1];
28121
28125
  return { value: v[0] ? v[1] : void 0, done: !0 };
28122
28126
  }
28123
- }, t = z && z.__importDefault || function(d) {
28124
- return d && d.__esModule ? d : { default: d };
28127
+ }, t = z && z.__importDefault || function(c) {
28128
+ return c && c.__esModule ? c : { default: c };
28125
28129
  };
28126
28130
  Object.defineProperty(z, "__esModule", { value: !0 }), z.useWebSocket = void 0;
28127
- var r = Ee, p = ml, f = K(), _ = Gl(), u = Ml(), g = t(Rl()), 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) {
28128
28132
  n === void 0 && (n = f.DEFAULT_OPTIONS), o === void 0 && (o = !0);
28129
- var y = (0, r.useState)(null), b = y[0], c = y[1], T = (0, r.useState)({}), S = T[0], E = T[1], v = (0, r.useMemo)(function() {
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() {
28130
28134
  if (!n.disableJson && b)
28131
28135
  try {
28132
28136
  return JSON.parse(b.data);
@@ -28134,50 +28138,50 @@ function ua() {
28134
28138
  return f.UNPARSABLE_JSON_OBJECT;
28135
28139
  }
28136
28140
  return null;
28137
- }, [b, n.disableJson]), N = (0, r.useRef)(null), G = (0, r.useRef)(null), te = (0, r.useRef)(function() {
28138
- }), ne = (0, r.useRef)(0), Ie = (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);
28139
28143
  w.current = n;
28140
- var V = N.current && S[N.current] !== void 0 ? S[N.current] : d !== null && o === !0 ? f.ReadyState.CONNECTING : f.ReadyState.UNINSTANTIATED, me = n.queryParams ? JSON.stringify(n.queryParams) : null, j = (0, r.useCallback)(function(x, F) {
28141
- var Q;
28142
- if (F === void 0 && (F = !0), f.isEventSourceSupported && G.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) {
28143
28147
  console.warn("Unable to send a message from an eventSource");
28144
28148
  return;
28145
28149
  }
28146
- ((Q = G.current) === null || Q === void 0 ? void 0 : Q.readyState) === f.ReadyState.OPEN ? ((0, s.assertIsWebSocket)(G.current, w.current.skipAssert), G.current.send(x)) : F && Le.current.push(x);
28147
- }, []), Ge = (0, r.useCallback)(function(x, F) {
28148
- F === void 0 && (F = !0), j(JSON.stringify(x), F);
28149
- }, [j]), Me = (0, r.useCallback)(function() {
28150
- return w.current.share !== !0 || f.isEventSourceSupported && G.current instanceof EventSource ? G.current : (A.current === null && G.current && ((0, s.assertIsWebSocket)(G.current, w.current.skipAssert), A.current = (0, g.default)(G.current, te)), 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);
28151
28155
  }, []);
28152
28156
  return (0, r.useEffect)(function() {
28153
- if (d !== null && o === !0) {
28154
- var x, F = !1, Q = !0, Te = function() {
28157
+ if (c !== null && o === !0) {
28158
+ var x, F = !1, Y = !0, Ce = function() {
28155
28159
  return i(void 0, void 0, void 0, function() {
28156
- var re, ee, Re;
28160
+ var re, ie, Pe;
28157
28161
  return m(this, function(de) {
28158
28162
  switch (de.label) {
28159
28163
  case 0:
28160
- return re = N, [4, (0, u.getUrl)(d, w)];
28164
+ return re = D, [4, (0, u.getUrl)(c, w)];
28161
28165
  case 1:
28162
- return re.current = de.sent(), N.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), N.current = "ABORTED", (0, p.flushSync)(function() {
28163
- return E(function(q) {
28164
- 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 });
28165
28169
  });
28166
28170
  }), [
28167
28171
  2
28168
28172
  /*return*/
28169
- ]) : (ee = function(q) {
28173
+ ]) : (ie = function(X) {
28170
28174
  F || (0, p.flushSync)(function() {
28171
- return c(q);
28175
+ return d(X);
28172
28176
  });
28173
- }, Re = function(q) {
28177
+ }, Pe = function(X) {
28174
28178
  F || (0, p.flushSync)(function() {
28175
28179
  return E(function(ce) {
28176
28180
  var oe;
28177
- return e(e({}, ce), N.current && (oe = {}, oe[N.current] = q, oe));
28181
+ return e(e({}, ce), D.current && (oe = {}, oe[D.current] = X, oe));
28178
28182
  });
28179
28183
  });
28180
- }, Q && (x = (0, _.createOrJoinSocket)(G, N.current, Re, w, ee, te, ne, Ie, j)), [
28184
+ }, Y && (x = (0, _.createOrJoinSocket)(L, D.current, Pe, w, ie, A, Q, Te, q)), [
28181
28185
  2
28182
28186
  /*return*/
28183
28187
  ]);
@@ -28185,34 +28189,34 @@ function ua() {
28185
28189
  });
28186
28190
  });
28187
28191
  };
28188
- return te.current = function() {
28189
- F || (A.current && (A.current = null), x?.(), Te());
28190
- }, Te(), function() {
28191
- 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);
28192
28196
  };
28193
- } else (d === null || o === !1) && (ne.current = 0, E(function(re) {
28194
- var ee;
28195
- return e(e({}, re), N.current && (ee = {}, ee[N.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));
28196
28200
  }));
28197
- }, [d, o, me, j]), (0, r.useEffect)(function() {
28198
- V === f.ReadyState.OPEN && Le.current.splice(0).forEach(function(x) {
28199
- 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);
28200
28204
  });
28201
28205
  }, [V]), {
28202
- sendMessage: j,
28203
- sendJsonMessage: Ge,
28206
+ sendMessage: q,
28207
+ sendJsonMessage: Me,
28204
28208
  lastMessage: b,
28205
28209
  lastJsonMessage: v,
28206
28210
  readyState: V,
28207
- getWebSocket: Me
28211
+ getWebSocket: Re
28208
28212
  };
28209
28213
  };
28210
28214
  return z.useWebSocket = l, z;
28211
28215
  }
28212
- var ge = {}, Ba;
28213
- function Pl() {
28214
- if (Ba) return ge;
28215
- Ba = 1;
28216
+ var ge = {}, Ka;
28217
+ function xl() {
28218
+ if (Ka) return ge;
28219
+ Ka = 1;
28216
28220
  var e = ge && ge.__assign || function() {
28217
28221
  return e = Object.assign || function(_) {
28218
28222
  for (var u, g = 1, s = arguments.length; g < s; g++) {
@@ -28223,7 +28227,7 @@ function Pl() {
28223
28227
  }, e.apply(this, arguments);
28224
28228
  };
28225
28229
  Object.defineProperty(ge, "__esModule", { value: !0 }), ge.useSocketIO = void 0;
28226
- var i = Ee, m = ua(), t = K(), r = {
28230
+ var i = Le, m = ua(), t = j(), r = {
28227
28231
  type: "empty",
28228
28232
  payload: null
28229
28233
  }, p = function(_) {
@@ -28241,25 +28245,25 @@ function Pl() {
28241
28245
  u === void 0 && (u = t.DEFAULT_OPTIONS), g === void 0 && (g = !0);
28242
28246
  var s = (0, i.useMemo)(function() {
28243
28247
  return e(e({}, u), { fromSocketIO: !0 });
28244
- }, []), 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() {
28245
28249
  return p(o);
28246
28250
  }, [o]);
28247
28251
  return {
28248
- sendMessage: d,
28252
+ sendMessage: c,
28249
28253
  sendJsonMessage: n,
28250
- lastMessage: c,
28251
- lastJsonMessage: c,
28254
+ lastMessage: d,
28255
+ lastJsonMessage: d,
28252
28256
  readyState: y,
28253
28257
  getWebSocket: b
28254
28258
  };
28255
28259
  };
28256
28260
  return ge.useSocketIO = f, ge;
28257
28261
  }
28258
- var $ = {}, Ka;
28259
- function xl() {
28260
- if (Ka) return $;
28261
- Ka = 1;
28262
- 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() {
28263
28267
  return e = Object.assign || function(f) {
28264
28268
  for (var _, u = 1, g = arguments.length; u < g; u++) {
28265
28269
  _ = arguments[u];
@@ -28267,7 +28271,7 @@ function xl() {
28267
28271
  }
28268
28272
  return f;
28269
28273
  }, e.apply(this, arguments);
28270
- }, i = $ && $.__rest || function(f, _) {
28274
+ }, i = ae && ae.__rest || function(f, _) {
28271
28275
  var u = {};
28272
28276
  for (var g in f) Object.prototype.hasOwnProperty.call(f, g) && _.indexOf(g) < 0 && (u[g] = f[g]);
28273
28277
  if (f != null && typeof Object.getOwnPropertySymbols == "function")
@@ -28275,16 +28279,16 @@ function xl() {
28275
28279
  _.indexOf(g[s]) < 0 && Object.prototype.propertyIsEnumerable.call(f, g[s]) && (u[g[s]] = f[g[s]]);
28276
28280
  return u;
28277
28281
  };
28278
- Object.defineProperty($, "__esModule", { value: !0 }), $.useEventSource = void 0;
28279
- 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) {
28280
28284
  _ === void 0 && (_ = r.DEFAULT_EVENT_SOURCE_OPTIONS);
28281
28285
  var g = _.withCredentials, s = _.events, l = i(_, ["withCredentials", "events"]);
28282
28286
  u === void 0 && (u = !0);
28283
- var d = e(e({}, l), { eventSourceOptions: {
28287
+ var c = e(e({}, l), { eventSourceOptions: {
28284
28288
  withCredentials: g
28285
28289
  } }), n = (0, m.useRef)(r.EMPTY_EVENT_HANDLERS);
28286
28290
  s && (n.current = s);
28287
- 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;
28288
28292
  return (0, m.useEffect)(function() {
28289
28293
  y?.type && Object.entries(n.current).forEach(function(T) {
28290
28294
  var S = T[0], E = T[1];
@@ -28293,28 +28297,28 @@ function xl() {
28293
28297
  }, [y]), {
28294
28298
  lastEvent: y,
28295
28299
  readyState: b,
28296
- getEventSource: c
28300
+ getEventSource: d
28297
28301
  };
28298
28302
  };
28299
- return $.useEventSource = p, $;
28303
+ return ae.useEventSource = p, ae;
28300
28304
  }
28301
- var ja;
28302
- function Ol() {
28303
- return ja || (ja = 1, (function(e) {
28305
+ var Qa;
28306
+ function Hl() {
28307
+ return Qa || (Qa = 1, (function(e) {
28304
28308
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
28305
28309
  var i = ua();
28306
28310
  Object.defineProperty(e, "default", { enumerable: !0, get: function() {
28307
28311
  return i.useWebSocket;
28308
28312
  } });
28309
- var m = Pl();
28313
+ var m = xl();
28310
28314
  Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
28311
28315
  return m.useSocketIO;
28312
28316
  } });
28313
- var t = K();
28317
+ var t = j();
28314
28318
  Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
28315
28319
  return t.ReadyState;
28316
28320
  } });
28317
- var r = xl();
28321
+ var r = Ol();
28318
28322
  Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
28319
28323
  return r.useEventSource;
28320
28324
  } });
@@ -28324,8 +28328,8 @@ function Ol() {
28324
28328
  } });
28325
28329
  })(Ye)), Ye;
28326
28330
  }
28327
- var Hl = Ol();
28328
- const wl = /* @__PURE__ */ rl(Hl), I = {
28331
+ var wl = Hl();
28332
+ const Fl = /* @__PURE__ */ ol(wl), B = {
28329
28333
  DEPOSIT: "deposit",
28330
28334
  TRANS_CODE: "transCode",
28331
28335
  ERROR: "error",
@@ -28336,7 +28340,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28336
28340
  TRANSFER_IN_GAME: "transfer_in_game",
28337
28341
  CHECK_REQUEST: "CHECK_RREQUEST",
28338
28342
  CASH_REGISTER_LIMIT: "cash_register_limit"
28339
- }, Fl = 3e4, _t = ({
28343
+ }, Wl = 3e4, ft = ({
28340
28344
  socketUrl: e,
28341
28345
  socketHandlers: i = {},
28342
28346
  options: m = {}
@@ -28352,7 +28356,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28352
28356
  readyState: u
28353
28357
  // WebSocket 連線狀態
28354
28358
  // getWebSocket, // 獲取 WebSocket 實例
28355
- } = wl(e, {
28359
+ } = Fl(e, {
28356
28360
  queryParams: { key: "wsky" },
28357
28361
  onOpen: () => console.log("連線成功"),
28358
28362
  shouldReconnect: () => t.current === !1,
@@ -28366,95 +28370,95 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28366
28370
  return null;
28367
28371
  }
28368
28372
  }, [_?.data]);
28369
- return Ne(() => {
28373
+ return De(() => {
28370
28374
  const s = setInterval(
28371
28375
  () => p("ping"),
28372
- Fl
28376
+ Wl
28373
28377
  );
28374
28378
  return () => clearInterval(s);
28375
- }, [p]), Ne(() => {
28379
+ }, [p]), De(() => {
28376
28380
  r.current = i;
28377
- }, [i]), Ne(() => {
28381
+ }, [i]), De(() => {
28378
28382
  if (!g) return;
28379
28383
  const {
28380
28384
  onDeposit: s,
28381
28385
  onTransCode: l,
28382
- onError: d,
28386
+ onError: c,
28383
28387
  onUpdateMember: n,
28384
28388
  onMaintainNotice: o,
28385
28389
  onMaintainNoticeMember: y,
28386
28390
  onReload: b,
28387
- onTransferInGame: c,
28391
+ onTransferInGame: d,
28388
28392
  onCashRegisterLimit: T
28389
- } = r.current, S = He(g, "type", ""), E = {
28390
- memberInfoUid: He(g, "member_info_uid", null),
28391
- data: He(g, "data", null),
28392
- 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)
28393
28397
  };
28394
28398
  switch (S) {
28395
- case I.DEPOSIT:
28399
+ case B.DEPOSIT:
28396
28400
  s?.(E);
28397
28401
  break;
28398
- case I.TRANS_CODE:
28402
+ case B.TRANS_CODE:
28399
28403
  l?.(E);
28400
28404
  break;
28401
- case I.ERROR:
28402
- d?.(E);
28405
+ case B.ERROR:
28406
+ c?.(E);
28403
28407
  break;
28404
- case I.UPDATE_MEMBER:
28408
+ case B.UPDATE_MEMBER:
28405
28409
  n?.(E);
28406
28410
  break;
28407
- case I.MAINTAIN_NOTICE:
28411
+ case B.MAINTAIN_NOTICE:
28408
28412
  o?.(E);
28409
28413
  break;
28410
- case I.MAINTAIN_NOTICE_MEMBER:
28414
+ case B.MAINTAIN_NOTICE_MEMBER:
28411
28415
  y?.(E);
28412
28416
  break;
28413
- case I.RELOAD:
28417
+ case B.RELOAD:
28414
28418
  b?.(E);
28415
28419
  break;
28416
- case I.TRANSFER_IN_GAME:
28417
- case I.CHECK_REQUEST:
28418
- c?.(E);
28420
+ case B.TRANSFER_IN_GAME:
28421
+ case B.CHECK_REQUEST:
28422
+ d?.(E);
28419
28423
  break;
28420
- case I.CASH_REGISTER_LIMIT:
28424
+ case B.CASH_REGISTER_LIMIT:
28421
28425
  T?.(E);
28422
28426
  break;
28423
28427
  default:
28424
28428
  console.warn("Unknown socket type:", S);
28425
28429
  break;
28426
28430
  }
28427
- }, [g]), Ne(() => () => t.current = !0, []), {
28431
+ }, [g]), De(() => () => t.current = !0, []), {
28428
28432
  sendMessage: p,
28429
28433
  sendJsonMessage: f,
28430
28434
  readyState: u
28431
28435
  // WebSocket 連線狀態
28432
28436
  };
28433
- }, _i = () => {
28434
- const { client: e } = le(), i = B(async () => {
28437
+ }, fi = () => {
28438
+ const { client: e } = ne(), i = K(async () => {
28435
28439
  const { data: t } = await e.get("/carousels");
28436
28440
  return t;
28437
- }, [e]), m = B(async () => await e.get("/marquees"), [e]);
28441
+ }, [e]), m = K(async () => await e.get("/marquees"), [e]);
28438
28442
  return { commonCarouselApi: i, commonMarqueeApi: m };
28439
- }, ft = () => {
28440
- const { commonCarouselApi: e } = _i();
28441
- return ae({
28443
+ }, Ut = () => {
28444
+ const { commonCarouselApi: e } = fi();
28445
+ return le({
28442
28446
  queryKey: ["getCarouselList"],
28443
28447
  queryFn: async () => await e()
28444
28448
  });
28445
- }, Ut = () => {
28446
- const { lng: e } = le(), { commonMarqueeApi: i } = _i(), m = di(e);
28447
- return ae({
28449
+ }, yt = () => {
28450
+ const { lng: e } = ne(), { commonMarqueeApi: i } = fi(), m = ci(e);
28451
+ return le({
28448
28452
  queryKey: ["getMarqueeList"],
28449
28453
  queryFn: async () => i(),
28450
28454
  select: (t) => {
28451
28455
  const r = t.Marquees;
28452
- return Ae(r, (f) => f[m] || f["en-US"]);
28456
+ return Ie(r, (f) => f[m] || f["en-US"]);
28453
28457
  }
28454
28458
  });
28455
- }, Wl = () => {
28456
- const { client: e, lng: i } = le(), m = di(i || "tw");
28457
- return { playGameApi: B(
28459
+ }, Jl = () => {
28460
+ const { client: e, lng: i } = ne(), m = ci(i || "tw");
28461
+ return { playGameApi: K(
28458
28462
  async (r) => {
28459
28463
  const {
28460
28464
  gameUid: p = "",
@@ -28480,24 +28484,24 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28480
28484
  },
28481
28485
  [e, m]
28482
28486
  ) };
28483
- }, fi = "3.7.8", Jl = fi, be = typeof Buffer == "function", Qa = typeof TextDecoder == "function" ? new TextDecoder() : void 0, qa = typeof TextEncoder == "function" ? new TextEncoder() : void 0, zl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", De = Array.prototype.slice.call(zl), 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) => {
28484
28488
  let i = {};
28485
28489
  return e.forEach((m, t) => i[m] = t), i;
28486
- })(De), Zl = /^(?:[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) => {
28487
28491
  let i, m, t, r, p = "";
28488
28492
  const f = e.length % 3;
28489
28493
  for (let _ = 0; _ < e.length; ) {
28490
28494
  if ((m = e.charCodeAt(_++)) > 255 || (t = e.charCodeAt(_++)) > 255 || (r = e.charCodeAt(_++)) > 255)
28491
28495
  throw new TypeError("invalid character found");
28492
- 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];
28493
28497
  }
28494
28498
  return f ? p.slice(0, f - 3) + "===".substring(f) : p;
28495
- }, pa = typeof btoa == "function" ? (e) => btoa(e) : be ? (e) => Buffer.from(e, "binary").toString("base64") : bi, la = be ? (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) => {
28496
28500
  let m = [];
28497
28501
  for (let t = 0, r = e.length; t < r; t += 4096)
28498
28502
  m.push(H.apply(null, e.subarray(t, t + 4096)));
28499
28503
  return pa(m.join(""));
28500
- }, ze = (e, i = !1) => i ? Ui(la(e)) : la(e), Vl = (e) => {
28504
+ }, Ze = (e, i = !1) => i ? yi(la(e)) : la(e), Al = (e) => {
28501
28505
  if (e.length < 2) {
28502
28506
  var i = e.charCodeAt(0);
28503
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);
@@ -28505,7 +28509,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28505
28509
  var i = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
28506
28510
  return H(240 | i >>> 18 & 7) + H(128 | i >>> 12 & 63) + H(128 | i >>> 6 & 63) + H(128 | i & 63);
28507
28511
  }
28508
- }, Al = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Ti = (e) => e.replace(Al, Vl), Xa = be ? (e) => Buffer.from(e, "utf8").toString("base64") : qa ? (e) => la(qa.encode(e)) : (e) => pa(Ti(e)), Ue = (e, i = !1) => i ? Ui(Xa(e)) : Xa(e), $a = (e) => Ue(e, !0), Il = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Bl = (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) => {
28509
28513
  switch (e.length) {
28510
28514
  case 4:
28511
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;
@@ -28515,26 +28519,26 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28515
28519
  default:
28516
28520
  return H((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
28517
28521
  }
28518
- }, Ci = (e) => e.replace(Il, Bl), vi = (e) => {
28519
- if (e = e.replace(/\s+/g, ""), !Zl.test(e))
28522
+ }, vi = (e) => e.replace(Bl, Kl), hi = (e) => {
28523
+ if (e = e.replace(/\s+/g, ""), !Vl.test(e))
28520
28524
  throw new TypeError("malformed base64.");
28521
28525
  e += "==".slice(2 - (e.length & 3));
28522
28526
  let i, m, t, r = [];
28523
28527
  for (let p = 0; p < e.length; )
28524
- 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));
28525
28529
  return r.join("");
28526
- }, ga = typeof atob == "function" ? (e) => atob(yi(e)) : be ? (e) => Buffer.from(e, "base64").toString("binary") : vi, hi = be ? (e) => Ya(Buffer.from(e, "base64")) : (e) => Ya(ga(e).split("").map((i) => i.charCodeAt(0))), ki = (e) => hi(Si(e)), Kl = be ? (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 == "-" ? "+" : "/")), ta = (e) => Kl(Si(e)), jl = (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) => {
28527
28531
  if (typeof e != "string")
28528
28532
  return !1;
28529
28533
  const i = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
28530
28534
  return !/[^\s0-9a-zA-Z\+/]/.test(i) || !/[^\s0-9a-zA-Z\-_]/.test(i);
28531
- }, Ni = (e) => ({
28535
+ }, Di = (e) => ({
28532
28536
  value: e,
28533
28537
  enumerable: !1,
28534
28538
  writable: !0,
28535
28539
  configurable: !0
28536
- }), Di = function() {
28537
- 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));
28538
28542
  e("fromBase64", function() {
28539
28543
  return ta(this);
28540
28544
  }), e("toBase64", function(i) {
@@ -28544,43 +28548,43 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28544
28548
  }), e("toBase64URL", function() {
28545
28549
  return Ue(this, !0);
28546
28550
  }), e("toUint8Array", function() {
28547
- return ki(this);
28551
+ return Si(this);
28548
28552
  });
28549
- }, Ei = function() {
28550
- 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));
28551
28555
  e("toBase64", function(i) {
28552
- return ze(this, i);
28556
+ return Ze(this, i);
28553
28557
  }), e("toBase64URI", function() {
28554
- return ze(this, !0);
28558
+ return Ze(this, !0);
28555
28559
  }), e("toBase64URL", function() {
28556
- return ze(this, !0);
28560
+ return Ze(this, !0);
28557
28561
  });
28558
- }, Ql = () => {
28559
- Di(), Ei();
28560
- }, ql = {
28561
- version: fi,
28562
- VERSION: Jl,
28562
+ }, ql = () => {
28563
+ Ei(), Li();
28564
+ }, Yl = {
28565
+ version: Ui,
28566
+ VERSION: zl,
28563
28567
  atob: ga,
28564
- atobPolyfill: vi,
28568
+ atobPolyfill: hi,
28565
28569
  btoa: pa,
28566
- btoaPolyfill: bi,
28570
+ btoaPolyfill: Ti,
28567
28571
  fromBase64: ta,
28568
28572
  toBase64: Ue,
28569
28573
  encode: Ue,
28570
- encodeURI: $a,
28571
- encodeURL: $a,
28572
- utob: Ti,
28573
- btou: Ci,
28574
+ encodeURI: ei,
28575
+ encodeURL: ei,
28576
+ utob: Ci,
28577
+ btou: vi,
28574
28578
  decode: ta,
28575
- isValid: jl,
28576
- fromUint8Array: ze,
28577
- toUint8Array: ki,
28578
- extendString: Di,
28579
- extendUint8Array: Ei,
28580
- extendBuiltins: Ql
28581
- }, yt = (e, i) => {
28582
- const { playGameApi: m } = Wl();
28583
- return ae({
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({
28584
28588
  queryKey: ["playGame"],
28585
28589
  queryFn: async () => {
28586
28590
  const { gameUid: t, gameCode: r, isMobile: p, gameCurrency: f, currentCurrency: _ } = e || {}, u = await m({
@@ -28593,7 +28597,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28593
28597
  game_currency: g,
28594
28598
  lang: s,
28595
28599
  not_support_iframe: l,
28596
- portrait: d,
28600
+ portrait: c,
28597
28601
  url: n,
28598
28602
  is_html_code: o,
28599
28603
  message: y
@@ -28602,39 +28606,39 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28602
28606
  gameCurrency: g,
28603
28607
  lang: s,
28604
28608
  supportIframe: !l,
28605
- supportPortrait: d,
28609
+ supportPortrait: c,
28606
28610
  isHtmlCode: o,
28607
28611
  gameUrl: n,
28608
- decodeGameUrl: ql.decode(n),
28612
+ decodeGameUrl: Yl.decode(n),
28609
28613
  message: y
28610
28614
  };
28611
28615
  },
28612
28616
  enabled: !!e?.gameCode,
28613
28617
  ...i
28614
28618
  });
28615
- }, Yl = ({ options: e } = {}) => {
28619
+ }, Xl = ({ options: e } = {}) => {
28616
28620
  const { userLoginApi: i } = ye();
28617
- return mi({
28621
+ return ri({
28618
28622
  mutationKey: ["userLogin"],
28619
28623
  mutationFn: async (m) => i(m),
28620
28624
  ...e
28621
28625
  });
28622
- }, Xl = ({ options: e } = {}) => {
28626
+ }, $l = ({ options: e } = {}) => {
28623
28627
  const { userLogoutApi: i } = ye();
28624
- return mi({
28628
+ return ri({
28625
28629
  mutationKey: ["userLogout"],
28626
28630
  mutationFn: async () => i(),
28627
28631
  ...e
28628
28632
  });
28629
- }, bt = ({
28633
+ }, Tt = ({
28630
28634
  options: e = {
28631
28635
  login: {},
28632
28636
  logout: {}
28633
28637
  }
28634
28638
  } = {}) => {
28635
- const i = Yl({ options: e.login }), m = Xl({ options: e.logout });
28639
+ const i = Xl({ options: e.login }), m = $l({ options: e.logout });
28636
28640
  return { login: i, logout: m };
28637
- }, ei = (e) => {
28641
+ }, ai = (e) => {
28638
28642
  switch (e) {
28639
28643
  case "tw":
28640
28644
  return "Tw";
@@ -28653,8 +28657,8 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28653
28657
  default:
28654
28658
  return "En";
28655
28659
  }
28656
- }, $l = "https://d1h3qe8voog6w4.cloudfront.net", ai = "https://d3jx2uvukujuvn.cloudfront.net", ii = "game-icon-ds88", Tt = ({ gameData: e = {} } = {}) => {
28657
- 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), {
28658
28662
  gameCode: t,
28659
28663
  // 遊戲代碼
28660
28664
  gameUid: r,
@@ -28674,7 +28678,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28674
28678
  // 遊戲子類型
28675
28679
  game_type: l,
28676
28680
  // 遊戲類型
28677
- game_tags: d,
28681
+ game_tags: c,
28678
28682
  // 遊戲標籤
28679
28683
  isUnderMaintenance: n,
28680
28684
  // 是否維護中
@@ -28684,7 +28688,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28684
28688
  // 是否支援橫向
28685
28689
  userClickCount: b,
28686
28690
  // 用戶點擊次數
28687
- gameNameEn: c,
28691
+ gameNameEn: d,
28688
28692
  // 英文名稱
28689
28693
  gameNameZh: T,
28690
28694
  // 中文名稱
@@ -28692,7 +28696,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28692
28696
  // 越南名稱
28693
28697
  gameNameTw: E
28694
28698
  // 繁體中文名稱
28695
- } = e, v = e?.[`gameName${ei(m)}`], N = `${ai}/${ii}/en/${g}/${La(t, / /g, "_")}.webp`, G = `${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`;
28696
28700
  return {
28697
28701
  gameCode: t,
28698
28702
  gameUid: r,
@@ -28703,20 +28707,20 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28703
28707
  gamePlatform: g,
28704
28708
  gameSubType: s,
28705
28709
  gameType: l,
28706
- gameTags: d,
28710
+ gameTags: c,
28707
28711
  isUnderMaintenance: n,
28708
28712
  supportVertical: o,
28709
28713
  supportHorizontal: y,
28710
28714
  userClickCount: b,
28711
- gameNameEn: c,
28715
+ gameNameEn: d,
28712
28716
  gameNameZh: T,
28713
28717
  gameNameVi: S,
28714
28718
  gameNameTw: E,
28715
28719
  gameName: v,
28716
- gameImageUrl: N,
28717
- gameImageUrlAnimated: G
28720
+ gameImageUrl: D,
28721
+ gameImageUrlAnimated: L
28718
28722
  };
28719
- }, et = "ds88platformIcon", at = (e, i = !1) => nl([
28723
+ }, at = "ds88platformIcon", it = (e, i = !1) => ml([
28720
28724
  "EVO",
28721
28725
  "IMSPRIBE",
28722
28726
  "SABA",
@@ -28727,7 +28731,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28727
28731
  "HACK",
28728
28732
  "NAGA",
28729
28733
  "RSG"
28730
- ], e) && i ? `${e}_dark` : e, Ct = ({ platformData: e, darkMode: i } = {}) => {
28734
+ ], e) && i ? `${e}_dark` : e, vt = ({ platformData: e, darkMode: i } = {}) => {
28731
28735
  const {
28732
28736
  SubPlatformEnum: m,
28733
28737
  // 子平台枚舉
@@ -28749,7 +28753,7 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28749
28753
  // 臨時維護開始時間
28750
28754
  temp_maintenance_end_time: l
28751
28755
  // 臨時維護結束時間
28752
- } = e || {}, d = `${$l}/${et}/${at(t, i)}.png`;
28756
+ } = e || {}, c = `${et}/${at}/${it(t, i)}.png`;
28753
28757
  return {
28754
28758
  subPlatformEnum: m,
28755
28759
  platformEnum: t,
@@ -28761,48 +28765,48 @@ const wl = /* @__PURE__ */ rl(Hl), I = {
28761
28765
  platformMode: g,
28762
28766
  tempMaintenanceStartTime: s,
28763
28767
  tempMaintenanceEndTime: l,
28764
- platformImageUrl: d
28768
+ platformImageUrl: c
28765
28769
  };
28766
28770
  };
28767
28771
  export {
28768
- ri as ApiCtx,
28769
- pt as ApiProvider,
28770
- oi as GamesInfoCtx,
28771
- Tl as buildMultiTypes,
28772
- st as buildMultiTypesWithSubTypes,
28773
- cl as buildSinglePlatformWithSubTypes,
28774
- dl as buildSingleType,
28775
- bl as categorizeGames,
28776
- di as convertLanguageCode,
28777
- ot as createLogoutHandler,
28778
- Ul as extractGameSubTypeNames,
28779
- fl as extractGameTypeNames,
28780
- Pa as extractPlatformNames,
28781
- gi as filterGamesByPlatform,
28782
- si as findGameTypeUid,
28783
- ui as findPlatformUid,
28784
- pi as findSubPlatform,
28785
- _l as flattenAllGames,
28786
- yl as flattenFavoriteGames,
28787
- Cl as groupGamesByPlatform,
28788
- vl as groupGamesByPlatformAndSubType,
28789
- gl as groupGamesBySubType,
28790
- Nl as initMockWindowData,
28791
- hl as processGameInfo,
28792
- ut as processPlatformData,
28793
- le as useApiContext,
28794
- gt as useBalanceGetter,
28795
- _t as useClientWebSocket,
28796
- Tt as useGameConfig,
28797
- rt as useGameInfoContext,
28798
- Sl as useGamesInfo,
28799
- ft as useGetCarouseList,
28800
- Ut as useGetMarquee,
28801
- dt as useGetMemberInfo,
28802
- ct as useInitializeWithToken,
28803
- Yl as useLogin,
28804
- Xl as useLogout,
28805
- Ct as usePlatformConfig,
28806
- yt as usePlayGame,
28807
- bt 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
28808
28812
  };