@everymatrix/casino-header-controller 1.64.0 → 1.64.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { b as ct, $ as ut, O as dt, S as ft, i as pt, s as ht, f as W, d as mt, n as qe, e as ge, h as ye, v as R, k as I, j as se, z as U, l as gt, o as yt, w as He, p as vt, u as he, y as me, r as wt, A as ze, B as rt, t as bt, J as Bt, K as Ct, L as Tt, c as St, I as _t } from "./CasinoHamburgerMenu-CTVc2-UF.js";
1
+ import { b as ct, $ as ut, O as dt, S as ft, i as pt, s as ht, f as W, d as mt, n as qe, e as ge, h as ye, v as R, k as I, j as se, z as U, l as gt, o as yt, w as He, p as vt, u as he, y as me, r as bt, A as ze, B as rt, t as wt, J as Bt, K as Ct, L as Tt, c as St, I as _t } from "./CasinoHamburgerMenu-CTVc2-UF.js";
2
2
  function Qe(r, t) {
3
3
  ct(r, t);
4
4
  }
@@ -213,7 +213,7 @@ var We = { exports: {} };
213
213
  */
214
214
  (function(r, t) {
215
215
  (function(n) {
216
- var i = n.setTimeout, s = n.clearTimeout, l = n.XMLHttpRequest, m = n.XDomainRequest, d = n.ActiveXObject, g = n.EventSource, y = n.document, D = n.Promise, k = n.fetch, b = n.Response, B = n.TextDecoder, A = n.TextEncoder, P = n.AbortController;
216
+ var i = n.setTimeout, s = n.clearTimeout, l = n.XMLHttpRequest, m = n.XDomainRequest, d = n.ActiveXObject, g = n.EventSource, y = n.document, D = n.Promise, O = n.fetch, B = n.Response, C = n.TextDecoder, A = n.TextEncoder, P = n.AbortController;
217
217
  if (typeof window < "u" && typeof y < "u" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(e) {
218
218
  y.readyState = "complete";
219
219
  }, !1)), l == null && d != null && (l = function() {
@@ -225,8 +225,8 @@ var We = { exports: {} };
225
225
  }), Date.now || (Date.now = function() {
226
226
  return (/* @__PURE__ */ new Date()).getTime();
227
227
  }), P == null) {
228
- var F = k;
229
- k = function(e, o) {
228
+ var F = O;
229
+ O = function(e, o) {
230
230
  var u = o.signal;
231
231
  return F(e, { headers: o.headers, credentials: o.credentials, cache: o.cache }).then(function(a) {
232
232
  var h = a.body.getReader();
@@ -272,31 +272,31 @@ var We = { exports: {} };
272
272
  return 3;
273
273
  throw new Error();
274
274
  }
275
- for (var a = 65533, h = "", p = this.bitsNeeded, w = this.codePoint, O = 0; O < e.length; O += 1) {
276
- var _ = e[O];
275
+ for (var a = 65533, h = "", p = this.bitsNeeded, w = this.codePoint, k = 0; k < e.length; k += 1) {
276
+ var _ = e[k];
277
277
  p !== 0 && (_ < 128 || _ > 191 || !o(w << 6 | _ & 63, p - 6, u(p, w))) && (p = 0, w = a, h += String.fromCharCode(w)), p === 0 ? (_ >= 0 && _ <= 127 ? (p = 0, w = _) : _ >= 192 && _ <= 223 ? (p = 6 * 1, w = _ & 31) : _ >= 224 && _ <= 239 ? (p = 6 * 2, w = _ & 15) : _ >= 240 && _ <= 247 ? (p = 6 * 3, w = _ & 7) : (p = 0, w = a), p !== 0 && !o(w, p, u(p, w)) && (p = 0, w = a)) : (p -= 6, w = w << 6 | _ & 63), p === 0 && (w <= 65535 ? h += String.fromCharCode(w) : (h += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), h += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
278
278
  }
279
279
  return this.bitsNeeded = p, this.codePoint = w, h;
280
280
  };
281
281
  var $ = function() {
282
282
  try {
283
- return new B().decode(new A().encode("test"), { stream: !0 }) === "test";
283
+ return new C().decode(new A().encode("test"), { stream: !0 }) === "test";
284
284
  } catch (e) {
285
285
  console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + e);
286
286
  }
287
287
  return !1;
288
288
  };
289
- (B == null || A == null || !$()) && (B = H);
290
- var T = function() {
289
+ (C == null || A == null || !$()) && (C = H);
290
+ var b = function() {
291
291
  };
292
- function C(e) {
293
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = T;
292
+ function S(e) {
293
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = b, this.onload = b, this.onerror = b, this.onreadystatechange = b, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = b;
294
294
  }
295
- C.prototype.open = function(e, o) {
295
+ S.prototype.open = function(e, o) {
296
296
  this._abort(!0);
297
297
  var u = this, a = this._xhr, h = 1, p = 0;
298
298
  this._abort = function(v) {
299
- u._sendTimeout !== 0 && (s(u._sendTimeout), u._sendTimeout = 0), (h === 1 || h === 2 || h === 3) && (h = 4, a.onload = T, a.onerror = T, a.onabort = T, a.onprogress = T, a.onreadystatechange = T, a.abort(), p !== 0 && (s(p), p = 0), v || (u.readyState = 4, u.onabort(null), u.onreadystatechange())), h = 0;
299
+ u._sendTimeout !== 0 && (s(u._sendTimeout), u._sendTimeout = 0), (h === 1 || h === 2 || h === 3) && (h = 4, a.onload = b, a.onerror = b, a.onabort = b, a.onprogress = b, a.onreadystatechange = b, a.abort(), p !== 0 && (s(p), p = 0), v || (u.readyState = 4, u.onabort(null), u.onreadystatechange())), h = 0;
300
300
  };
301
301
  var w = function() {
302
302
  if (h === 1) {
@@ -311,7 +311,7 @@ var We = { exports: {} };
311
311
  }
312
312
  v !== 0 && (h = 2, u.readyState = 2, u.status = v, u.statusText = N, u._contentType = ue, u.onreadystatechange());
313
313
  }
314
- }, O = function() {
314
+ }, k = function() {
315
315
  if (w(), h === 2 || h === 3) {
316
316
  h = 3;
317
317
  var v = "";
@@ -323,8 +323,8 @@ var We = { exports: {} };
323
323
  }
324
324
  }, _ = function(v, N) {
325
325
  if ((N == null || N.preventDefault == null) && (N = {
326
- preventDefault: T
327
- }), O(), h === 1 || h === 2 || h === 3) {
326
+ preventDefault: b
327
+ }), k(), h === 1 || h === 2 || h === 3) {
328
328
  if (h = 4, p !== 0 && (s(p), p = 0), u.readyState = 4, v === "load")
329
329
  u.onload(N);
330
330
  else if (v === "error")
@@ -336,11 +336,11 @@ var We = { exports: {} };
336
336
  u.onreadystatechange();
337
337
  }
338
338
  }, x = function(v) {
339
- a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && _(a.responseText === "" ? "error" : "load", v) : a.readyState === 3 ? "onprogress" in a || O() : a.readyState === 2 && w());
339
+ a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && _(a.responseText === "" ? "error" : "load", v) : a.readyState === 3 ? "onprogress" in a || k() : a.readyState === 2 && w());
340
340
  }, M = function() {
341
341
  p = i(function() {
342
342
  M();
343
- }, 500), a.readyState === 3 && O();
343
+ }, 500), a.readyState === 3 && k();
344
344
  };
345
345
  "onload" in a && (a.onload = function(v) {
346
346
  _("load", v);
@@ -348,21 +348,21 @@ var We = { exports: {} };
348
348
  _("error", v);
349
349
  }), "onabort" in a && (a.onabort = function(v) {
350
350
  _("abort", v);
351
- }), "onprogress" in a && (a.onprogress = O), "onreadystatechange" in a && (a.onreadystatechange = function(v) {
351
+ }), "onprogress" in a && (a.onprogress = k), "onreadystatechange" in a && (a.onreadystatechange = function(v) {
352
352
  x(v);
353
353
  }), ("contentType" in a || !("ontimeout" in l.prototype)) && (o += (o.indexOf("?") === -1 ? "?" : "&") + "padding=true"), a.open(e, o, !0), "readyState" in a && (p = i(function() {
354
354
  M();
355
355
  }, 0));
356
- }, C.prototype.abort = function() {
356
+ }, S.prototype.abort = function() {
357
357
  this._abort(!1);
358
- }, C.prototype.getResponseHeader = function(e) {
358
+ }, S.prototype.getResponseHeader = function(e) {
359
359
  return this._contentType;
360
- }, C.prototype.setRequestHeader = function(e, o) {
360
+ }, S.prototype.setRequestHeader = function(e, o) {
361
361
  var u = this._xhr;
362
362
  "setRequestHeader" in u && u.setRequestHeader(e, o);
363
- }, C.prototype.getAllResponseHeaders = function() {
363
+ }, S.prototype.getAllResponseHeaders = function() {
364
364
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
365
- }, C.prototype.send = function() {
365
+ }, S.prototype.send = function() {
366
366
  if ((!("ontimeout" in l.prototype) || !("sendAsBinary" in l.prototype) && !("mozAnon" in l.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
367
367
  var e = this;
368
368
  e._sendTimeout = i(function() {
@@ -386,22 +386,22 @@ var We = { exports: {} };
386
386
  function L(e) {
387
387
  for (var o = /* @__PURE__ */ Object.create(null), u = e.split(`\r
388
388
  `), a = 0; a < u.length; a += 1) {
389
- var h = u[a], p = h.split(": "), w = p.shift(), O = p.join(": ");
390
- o[G(w)] = O;
389
+ var h = u[a], p = h.split(": "), w = p.shift(), k = p.join(": ");
390
+ o[G(w)] = k;
391
391
  }
392
392
  this._map = o;
393
393
  }
394
394
  L.prototype.get = function(e) {
395
395
  return this._map[G(e)];
396
396
  }, l != null && l.HEADERS_RECEIVED == null && (l.HEADERS_RECEIVED = 2);
397
- function ne() {
397
+ function ee() {
398
398
  }
399
- ne.prototype.open = function(e, o, u, a, h, p, w) {
399
+ ee.prototype.open = function(e, o, u, a, h, p, w) {
400
400
  e.open("GET", h);
401
- var O = 0;
401
+ var k = 0;
402
402
  e.onprogress = function() {
403
- var x = e.responseText, M = x.slice(O);
404
- O += M.length, u(M);
403
+ var x = e.responseText, M = x.slice(k);
404
+ k += M.length, u(M);
405
405
  }, e.onerror = function(x) {
406
406
  x.preventDefault(), a(new Error("NetworkError"));
407
407
  }, e.onload = function() {
@@ -418,25 +418,25 @@ var We = { exports: {} };
418
418
  Object.prototype.hasOwnProperty.call(w, _) && e.setRequestHeader(_, w[_]);
419
419
  return e.send(), e;
420
420
  };
421
- function ae(e) {
421
+ function ve(e) {
422
422
  this._headers = e;
423
423
  }
424
- ae.prototype.get = function(e) {
424
+ ve.prototype.get = function(e) {
425
425
  return this._headers.get(e);
426
426
  };
427
- function ve() {
427
+ function ae() {
428
428
  }
429
- ve.prototype.open = function(e, o, u, a, h, p, w) {
430
- var O = null, _ = new P(), x = _.signal, M = new B();
431
- return k(h, {
429
+ ae.prototype.open = function(e, o, u, a, h, p, w) {
430
+ var k = null, _ = new P(), x = _.signal, M = new C();
431
+ return O(h, {
432
432
  headers: w,
433
433
  credentials: p ? "include" : "same-origin",
434
434
  signal: x,
435
435
  cache: "no-store"
436
436
  }).then(function(v) {
437
- return O = v.body.getReader(), o(v.status, v.statusText, v.headers.get("Content-Type"), new ae(v.headers)), new D(function(N, ue) {
437
+ return k = v.body.getReader(), o(v.status, v.statusText, v.headers.get("Content-Type"), new ve(v.headers)), new D(function(N, ue) {
438
438
  var De = function() {
439
- O.read().then(function(Y) {
439
+ k.read().then(function(Y) {
440
440
  if (Y.done)
441
441
  N(void 0);
442
442
  else {
@@ -456,7 +456,7 @@ var We = { exports: {} };
456
456
  a(v);
457
457
  }), {
458
458
  abort: function() {
459
- O?.cancel(), _.abort();
459
+ k?.cancel(), _.abort();
460
460
  }
461
461
  };
462
462
  };
@@ -496,27 +496,27 @@ var We = { exports: {} };
496
496
  h.length === 0 ? delete u[e] : u[e] = h;
497
497
  }
498
498
  };
499
- function ee(e) {
499
+ function te(e) {
500
500
  this.type = e, this.target = void 0;
501
501
  }
502
502
  function Me(e, o) {
503
- ee.call(this, e), this.data = o.data, this.lastEventId = o.lastEventId;
503
+ te.call(this, e), this.data = o.data, this.lastEventId = o.lastEventId;
504
504
  }
505
- Me.prototype = Object.create(ee.prototype);
505
+ Me.prototype = Object.create(te.prototype);
506
506
  function Ce(e, o) {
507
- ee.call(this, e), this.status = o.status, this.statusText = o.statusText, this.headers = o.headers;
507
+ te.call(this, e), this.status = o.status, this.statusText = o.statusText, this.headers = o.headers;
508
508
  }
509
- Ce.prototype = Object.create(ee.prototype);
509
+ Ce.prototype = Object.create(te.prototype);
510
510
  function Fe(e, o) {
511
- ee.call(this, e), this.error = o.error;
511
+ te.call(this, e), this.error = o.error;
512
512
  }
513
- Fe.prototype = Object.create(ee.prototype);
514
- var Ae = -1, le = 0, ce = 1, we = 2, Re = -1, te = 0, Te = 1, ke = 2, Oe = 3, Ue = /^text\/event\-stream(;.*)?$/i, Pe = 1e3, Ne = 18e6, Ee = function(e, o) {
513
+ Fe.prototype = Object.create(te.prototype);
514
+ var Ae = -1, le = 0, ce = 1, be = 2, Re = -1, ne = 0, Te = 1, Oe = 2, ke = 3, Ue = /^text\/event\-stream(;.*)?$/i, Pe = 1e3, Ne = 18e6, Ee = function(e, o) {
515
515
  var u = e == null ? o : parseInt(e, 10);
516
516
  return u !== u && (u = o), xe(u);
517
517
  }, xe = function(e) {
518
518
  return Math.min(Math.max(e, Pe), Ne);
519
- }, be = function(e, o, u) {
519
+ }, we = function(e, o, u) {
520
520
  try {
521
521
  typeof o == "function" && o.call(e, u);
522
522
  } catch (a) {
@@ -524,15 +524,15 @@ var We = { exports: {} };
524
524
  }
525
525
  };
526
526
  function J(e, o) {
527
- oe.call(this), o = o || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, S(this, e, o);
527
+ oe.call(this), o = o || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, T(this, e, o);
528
528
  }
529
529
  function Ge() {
530
530
  return l != null && "withCredentials" in l.prototype || m == null ? new l() : new m();
531
531
  }
532
- var c = k != null && b != null && "body" in b.prototype;
533
- function S(e, o, u) {
532
+ var c = O != null && B != null && "body" in B.prototype;
533
+ function T(e, o, u) {
534
534
  o = String(o);
535
- var a = !!u.withCredentials, h = u.lastEventIdQueryParameterName || "lastEventId", p = xe(1e3), w = Ee(u.heartbeatTimeout, 45e3), O = "", _ = p, x = !1, M = 0, v = u.headers || {}, N = u.Transport, ue = c && N == null ? void 0 : new C(N != null ? new N() : Ge()), De = N != null && typeof N != "string" ? new N() : ue == null ? new ve() : new ne(), Y = void 0, X = 0, re = Ae, Se = "", Ie = "", de = "", Ve = "", K = te, Xe = 0, Be = 0, st = function(j, V, Q, Z) {
535
+ var a = !!u.withCredentials, h = u.lastEventIdQueryParameterName || "lastEventId", p = xe(1e3), w = Ee(u.heartbeatTimeout, 45e3), k = "", _ = p, x = !1, M = 0, v = u.headers || {}, N = u.Transport, ue = c && N == null ? void 0 : new S(N != null ? new N() : Ge()), De = N != null && typeof N != "string" ? new N() : ue == null ? new ae() : new ee(), Y = void 0, X = 0, re = Ae, Se = "", Ie = "", de = "", Ve = "", K = ne, Xe = 0, Be = 0, st = function(j, V, Q, Z) {
536
536
  if (re === le)
537
537
  if (j === 200 && Q != null && Ue.test(Q)) {
538
538
  re = ce, x = Date.now(), _ = p, e.readyState = ce;
@@ -541,7 +541,7 @@ var We = { exports: {} };
541
541
  statusText: V,
542
542
  headers: Z
543
543
  });
544
- e.dispatchEvent(q), be(e, e.onopen, q);
544
+ e.dispatchEvent(q), we(e, e.onopen, q);
545
545
  } else {
546
546
  var z = "";
547
547
  j !== 200 ? (V && (V = V.replace(/\s+/g, " ")), z = "EventSource's response has a status " + j + " " + V + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (Q == null ? "-" : Q.replace(/\s+/g, " ")) + ". Aborting the connection.", Ke();
@@ -550,7 +550,7 @@ var We = { exports: {} };
550
550
  statusText: V,
551
551
  headers: Z
552
552
  });
553
- e.dispatchEvent(q), be(e, e.onerror, q), console.error(z);
553
+ e.dispatchEvent(q), we(e, e.onerror, q), console.error(z);
554
554
  }
555
555
  }, lt = function(j) {
556
556
  if (re === ce) {
@@ -563,9 +563,9 @@ var We = { exports: {} };
563
563
  for (var z = 0; z < q.length; z += 1) {
564
564
  var Z = q.charCodeAt(z);
565
565
  if (K === Re && Z === 10)
566
- K = te;
567
- else if (K === Re && (K = te), Z === 13 || Z === 10) {
568
- if (K !== te) {
566
+ K = ne;
567
+ else if (K === Re && (K = ne), Z === 13 || Z === 10) {
568
+ if (K !== ne) {
569
569
  K === Te && (Be = z + 1);
570
570
  var fe = q.slice(Xe, Be - 1), pe = q.slice(Be + (Be < z && q.charCodeAt(Be) === 32 ? 1 : 0), z);
571
571
  fe === "data" ? (Se += `
@@ -573,21 +573,21 @@ var We = { exports: {} };
573
573
  Le();
574
574
  }, w)));
575
575
  }
576
- if (K === te) {
576
+ if (K === ne) {
577
577
  if (Se !== "") {
578
- O = Ie, de === "" && (de = "message");
578
+ k = Ie, de === "" && (de = "message");
579
579
  var _e = new Me(de, {
580
580
  data: Se.slice(1),
581
581
  lastEventId: Ie
582
582
  });
583
- if (e.dispatchEvent(_e), de === "open" ? be(e, e.onopen, _e) : de === "message" ? be(e, e.onmessage, _e) : de === "error" && be(e, e.onerror, _e), re === we)
583
+ if (e.dispatchEvent(_e), de === "open" ? we(e, e.onopen, _e) : de === "message" ? we(e, e.onmessage, _e) : de === "error" && we(e, e.onerror, _e), re === be)
584
584
  return;
585
585
  }
586
586
  Se = "", de = "";
587
587
  }
588
- K = Z === 13 ? Re : te;
588
+ K = Z === 13 ? Re : ne;
589
589
  } else
590
- K === te && (Xe = z, K = Te), K === Te ? Z === 58 && (Be = z + 1, K = ke) : K === ke && (K = Oe);
590
+ K === ne && (Xe = z, K = Te), K === Te ? Z === 58 && (Be = z + 1, K = Oe) : K === Oe && (K = ke);
591
591
  }
592
592
  }
593
593
  }, Ye = function(j) {
@@ -596,10 +596,10 @@ var We = { exports: {} };
596
596
  Le();
597
597
  }, _), _ = xe(Math.min(p * 16, _ * 2)), e.readyState = le;
598
598
  var V = new Fe("error", { error: j });
599
- e.dispatchEvent(V), be(e, e.onerror, V), j != null && console.error(j);
599
+ e.dispatchEvent(V), we(e, e.onerror, V), j != null && console.error(j);
600
600
  }
601
601
  }, Ke = function() {
602
- re = we, Y != null && (Y.abort(), Y = void 0), X !== 0 && (s(X), X = 0), e.readyState = we;
602
+ re = be, Y != null && (Y.abort(), Y = void 0), X !== 0 && (s(X), X = 0), e.readyState = be;
603
603
  }, Le = function() {
604
604
  if (X = 0, re !== Ae) {
605
605
  if (!x && Y != null)
@@ -614,13 +614,13 @@ var We = { exports: {} };
614
614
  }
615
615
  x = !1, M = 0, X = i(function() {
616
616
  Le();
617
- }, w), re = le, Se = "", de = "", Ie = O, Ve = "", Xe = 0, Be = 0, K = te;
617
+ }, w), re = le, Se = "", de = "", Ie = k, Ve = "", Xe = 0, Be = 0, K = ne;
618
618
  var V = o;
619
- if (o.slice(0, 5) !== "data:" && o.slice(0, 5) !== "blob:" && O !== "") {
619
+ if (o.slice(0, 5) !== "data:" && o.slice(0, 5) !== "blob:" && k !== "") {
620
620
  var Q = o.indexOf("?");
621
621
  V = Q === -1 ? o : o.slice(0, Q + 1) + o.slice(Q + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(pe, _e) {
622
622
  return _e === h ? "" : pe;
623
- }), V += (o.indexOf("?") === -1 ? "?" : "&") + h + "=" + encodeURIComponent(O);
623
+ }), V += (o.indexOf("?") === -1 ? "?" : "&") + h + "=" + encodeURIComponent(k);
624
624
  }
625
625
  var Z = e.withCredentials, q = {};
626
626
  q.Accept = "text/event-stream";
@@ -636,9 +636,9 @@ var We = { exports: {} };
636
636
  };
637
637
  e.url = o, e.readyState = le, e.withCredentials = a, e.headers = v, e._close = Ke, Le();
638
638
  }
639
- J.prototype = Object.create(oe.prototype), J.prototype.CONNECTING = le, J.prototype.OPEN = ce, J.prototype.CLOSED = we, J.prototype.close = function() {
639
+ J.prototype = Object.create(oe.prototype), J.prototype.CONNECTING = le, J.prototype.OPEN = ce, J.prototype.CLOSED = be, J.prototype.close = function() {
640
640
  this._close();
641
- }, J.CONNECTING = le, J.OPEN = ce, J.CLOSED = we, J.prototype.withCredentials = void 0;
641
+ }, J.CONNECTING = le, J.OPEN = ce, J.CLOSED = be, J.prototype.withCredentials = void 0;
642
642
  var E = g;
643
643
  l != null && (g == null || !("withCredentials" in g.prototype)) && (E = J), function(e) {
644
644
  {
@@ -689,8 +689,8 @@ function je(r, t) {
689
689
  if (y || D)
690
690
  i = D ? r.value : r;
691
691
  else if (typeof r == "string") {
692
- var k = new RegExp("[^-\\d" + s + "]", "g"), b = new RegExp("\\" + s, "g");
693
- i = r.replace(/\((.*)\)/, "-$1").replace(k, "").replace(b, "."), i = i || 0;
692
+ var O = new RegExp("[^-\\d" + s + "]", "g"), B = new RegExp("\\" + s, "g");
693
+ i = r.replace(/\((.*)\)/, "-$1").replace(O, "").replace(B, "."), i = i || 0;
694
694
  } else {
695
695
  if (l)
696
696
  throw Error("Invalid Input");
@@ -793,7 +793,7 @@ ie.prototype = {
793
793
  }
794
794
  };
795
795
  function Ft(r) {
796
- mt(r, "svelte-4pkr1", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
796
+ mt(r, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
797
797
  }
798
798
  function $e(r, t, n) {
799
799
  const i = r.slice();
@@ -803,7 +803,7 @@ function et(r, t, n) {
803
803
  const i = r.slice();
804
804
  return i[50] = t[n], i;
805
805
  }
806
- function kt(r) {
806
+ function Ot(r) {
807
807
  let t, n = (
808
808
  /*balances*/
809
809
  (r[4].Total ? (
@@ -813,48 +813,48 @@ function kt(r) {
813
813
  r[4].Total[0].amount
814
814
  )
815
815
  ) : "0") + ""
816
- ), i, s, l, m, d, g, y, D, k, b = (
817
- /*showBalance*/
816
+ ), i, s, l, m, d, g, y, D, O, B = (
817
+ /*isModalDisplayed*/
818
818
  r[2] && tt(r)
819
819
  );
820
820
  return {
821
821
  c() {
822
- t = I("p"), i = me(n), s = se(), l = me(
822
+ t = I("button"), i = me(n), s = se(), l = me(
823
823
  /*currency*/
824
824
  r[3]
825
- ), m = se(), d = I("span"), d.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = se(), b && b.c(), y = wt(), U(t, "class", "BalanceValue");
825
+ ), m = se(), d = I("span"), d.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = se(), B && B.c(), y = bt(), U(t, "class", "BalanceValue");
826
826
  },
827
- m(B, A) {
828
- ye(B, t, A), R(t, i), R(t, s), R(t, l), R(t, m), R(t, d), ye(B, g, A), b && b.m(B, A), ye(B, y, A), D || (k = He(
827
+ m(C, A) {
828
+ ye(C, t, A), R(t, i), R(t, s), R(t, l), R(t, m), R(t, d), ye(C, g, A), B && B.m(C, A), ye(C, y, A), D || (O = He(
829
829
  t,
830
830
  "click",
831
831
  /*click_handler*/
832
832
  r[23]
833
833
  ), D = !0);
834
834
  },
835
- p(B, A) {
835
+ p(C, A) {
836
836
  A[0] & /*balances*/
837
837
  16 && n !== (n = /*balances*/
838
- (B[4].Total ? (
838
+ (C[4].Total ? (
839
839
  /*formatBalance*/
840
- B[6](
840
+ C[6](
841
841
  /*balances*/
842
- B[4].Total[0].amount
842
+ C[4].Total[0].amount
843
843
  )
844
844
  ) : "0") + "") && he(i, n), A[0] & /*currency*/
845
845
  8 && he(
846
846
  l,
847
847
  /*currency*/
848
- B[3]
849
- ), /*showBalance*/
850
- B[2] ? b ? b.p(B, A) : (b = tt(B), b.c(), b.m(y.parentNode, y)) : b && (b.d(1), b = null);
848
+ C[3]
849
+ ), /*isModalDisplayed*/
850
+ C[2] ? B ? B.p(C, A) : (B = tt(C), B.c(), B.m(y.parentNode, y)) : B && (B.d(1), B = null);
851
851
  },
852
- d(B) {
853
- B && (ge(t), ge(g), ge(y)), b && b.d(B), D = !1, k();
852
+ d(C) {
853
+ C && (ge(t), ge(g), ge(y)), B && B.d(C), D = !1, O();
854
854
  }
855
855
  };
856
856
  }
857
- function Ot(r) {
857
+ function kt(r) {
858
858
  let t, n = (
859
859
  /*$_*/
860
860
  r[5]("Loading") + ""
@@ -880,27 +880,27 @@ function tt(r) {
880
880
  let t, n, i, s, l, m, d = (
881
881
  /*$_*/
882
882
  r[5]("Title") + ""
883
- ), g, y, D, k, b, B, A = (
883
+ ), g, y, D, O, B, C, A = (
884
884
  /*$_*/
885
885
  r[5]("DepositButton") + ""
886
886
  ), P, F, H, $ = ze(Object.keys(
887
887
  /*balances*/
888
888
  r[4]
889
- )), T = [];
890
- for (let C = 0; C < $.length; C += 1)
891
- T[C] = at($e(r, $, C));
889
+ )), b = [];
890
+ for (let S = 0; S < $.length; S += 1)
891
+ b[S] = at($e(r, $, S));
892
892
  return {
893
893
  c() {
894
- t = I("div"), n = I("div"), i = se(), s = I("div"), l = I("div"), m = I("p"), g = me(d), y = se(), D = I("div");
895
- for (let C = 0; C < T.length; C += 1)
896
- T[C].c();
897
- k = se(), b = I("div"), B = I("button"), P = me(A), U(n, "class", "BalanceModalClose"), U(m, "class", "BalanceModalTitle"), U(l, "class", "BalanceModalHeader"), U(D, "class", "BalanceModalBody"), U(B, "class", "BalanceModalAction"), U(b, "class", "BalanceModalFooter"), U(s, "class", "BalanceModal"), U(t, "class", "BalanceModalWrapper");
894
+ t = I("div"), n = I("button"), i = se(), s = I("div"), l = I("div"), m = I("p"), g = me(d), y = se(), D = I("div");
895
+ for (let S = 0; S < b.length; S += 1)
896
+ b[S].c();
897
+ O = se(), B = I("div"), C = I("button"), P = me(A), U(n, "class", "BalanceModalClose"), U(m, "class", "BalanceModalTitle"), U(l, "class", "BalanceModalHeader"), U(D, "class", "BalanceModalBody"), U(C, "class", "BalanceModalAction"), U(B, "class", "BalanceModalFooter"), U(s, "class", "BalanceModal"), U(t, "class", "BalanceModalWrapper");
898
898
  },
899
- m(C, G) {
900
- ye(C, t, G), R(t, n), R(t, i), R(t, s), R(s, l), R(l, m), R(m, g), R(s, y), R(s, D);
901
- for (let L = 0; L < T.length; L += 1)
902
- T[L] && T[L].m(D, null);
903
- R(s, k), R(s, b), R(b, B), R(B, P), F || (H = [
899
+ m(S, G) {
900
+ ye(S, t, G), R(t, n), R(t, i), R(t, s), R(s, l), R(l, m), R(m, g), R(s, y), R(s, D);
901
+ for (let L = 0; L < b.length; L += 1)
902
+ b[L] && b[L].m(D, null);
903
+ R(s, O), R(s, B), R(B, C), R(C, P), F || (H = [
904
904
  He(
905
905
  n,
906
906
  "click",
@@ -908,37 +908,37 @@ function tt(r) {
908
908
  r[24]
909
909
  ),
910
910
  He(
911
- B,
911
+ C,
912
912
  "click",
913
913
  /*click_handler_2*/
914
914
  r[25]
915
915
  )
916
916
  ], F = !0);
917
917
  },
918
- p(C, G) {
918
+ p(S, G) {
919
919
  if (G[0] & /*$_*/
920
920
  32 && d !== (d = /*$_*/
921
- C[5]("Title") + "") && he(g, d), G[0] & /*balances, currency, formatBalance, $_*/
921
+ S[5]("Title") + "") && he(g, d), G[0] & /*balances, currency, formatBalance, $_*/
922
922
  120) {
923
923
  $ = ze(Object.keys(
924
924
  /*balances*/
925
- C[4]
925
+ S[4]
926
926
  ));
927
927
  let L;
928
928
  for (L = 0; L < $.length; L += 1) {
929
- const ne = $e(C, $, L);
930
- T[L] ? T[L].p(ne, G) : (T[L] = at(ne), T[L].c(), T[L].m(D, null));
929
+ const ee = $e(S, $, L);
930
+ b[L] ? b[L].p(ee, G) : (b[L] = at(ee), b[L].c(), b[L].m(D, null));
931
931
  }
932
- for (; L < T.length; L += 1)
933
- T[L].d(1);
934
- T.length = $.length;
932
+ for (; L < b.length; L += 1)
933
+ b[L].d(1);
934
+ b.length = $.length;
935
935
  }
936
936
  G[0] & /*$_*/
937
937
  32 && A !== (A = /*$_*/
938
- C[5]("DepositButton") + "") && he(P, A);
938
+ S[5]("DepositButton") + "") && he(P, A);
939
939
  },
940
- d(C) {
941
- C && ge(t), rt(T, C), F = !1, bt(H);
940
+ d(S) {
941
+ S && ge(t), rt(b, S), F = !1, wt(H);
942
942
  }
943
943
  };
944
944
  }
@@ -958,7 +958,7 @@ function nt(r) {
958
958
  r[50].productType
959
959
  )
960
960
  ) : "") + ""
961
- ), d, g, y, D, k = (
961
+ ), d, g, y, D, O = (
962
962
  /*b*/
963
963
  (r[50].amount ? (
964
964
  /*formatBalance*/
@@ -967,16 +967,16 @@ function nt(r) {
967
967
  r[50].amount
968
968
  )
969
969
  ) : "0") + ""
970
- ), b, B, A, P;
970
+ ), B, C, A, P;
971
971
  return {
972
972
  c() {
973
- t = I("div"), n = I("p"), s = me(i), l = se(), d = me(m), g = se(), y = I("p"), D = I("span"), b = me(k), B = se(), A = I("span"), P = me(
973
+ t = I("div"), n = I("p"), s = me(i), l = se(), d = me(m), g = se(), y = I("p"), D = I("span"), B = me(O), C = se(), A = I("span"), P = me(
974
974
  /*currency*/
975
975
  r[3]
976
976
  ), U(n, "class", "BalanceModalText"), U(D, "class", "BalanceModalAmount"), U(A, "class", "BalanceModalCurrency"), U(y, "class", "BalanceModalValue"), U(t, "class", "BalanceModalRowLine");
977
977
  },
978
978
  m(F, H) {
979
- ye(F, t, H), R(t, n), R(n, s), R(n, l), R(n, d), R(t, g), R(t, y), R(y, D), R(D, b), R(y, B), R(y, A), R(A, P);
979
+ ye(F, t, H), R(t, n), R(n, s), R(n, l), R(n, d), R(t, g), R(t, y), R(y, D), R(D, B), R(y, C), R(y, A), R(A, P);
980
980
  },
981
981
  p(F, H) {
982
982
  H[0] & /*$_, balances*/
@@ -993,14 +993,14 @@ function nt(r) {
993
993
  F[50].productType
994
994
  )
995
995
  ) : "") + "") && he(d, m), H[0] & /*balances*/
996
- 16 && k !== (k = /*b*/
996
+ 16 && O !== (O = /*b*/
997
997
  (F[50].amount ? (
998
998
  /*formatBalance*/
999
999
  F[6](
1000
1000
  /*b*/
1001
1001
  F[50].amount
1002
1002
  )
1003
- ) : "0") + "") && he(b, k), H[0] & /*currency*/
1003
+ ) : "0") + "") && he(B, O), H[0] & /*currency*/
1004
1004
  8 && he(
1005
1005
  P,
1006
1006
  /*currency*/
@@ -1064,7 +1064,7 @@ function ot(r) {
1064
1064
  let t, n, i;
1065
1065
  return {
1066
1066
  c() {
1067
- t = I("div"), U(t, "class", "ShowBalanceModalOverlay");
1067
+ t = I("button"), U(t, "class", "ShowBalanceModalOverlay");
1068
1068
  },
1069
1069
  m(s, l) {
1070
1070
  ye(s, t, l), n || (i = He(
@@ -1085,11 +1085,11 @@ function Nt(r) {
1085
1085
  function s(g, y) {
1086
1086
  return (
1087
1087
  /*isLoading*/
1088
- g[1] ? Ot : kt
1088
+ g[1] ? kt : Ot
1089
1089
  );
1090
1090
  }
1091
1091
  let l = s(r), m = l(r), d = (
1092
- /*showBalance*/
1092
+ /*isModalDisplayed*/
1093
1093
  r[2] && ot(r)
1094
1094
  );
1095
1095
  return {
@@ -1100,7 +1100,7 @@ function Nt(r) {
1100
1100
  ye(g, t, y), R(t, n), m.m(n, null), R(t, i), d && d.m(t, null), r[27](t);
1101
1101
  },
1102
1102
  p(g, y) {
1103
- l === (l = s(g)) && m ? m.p(g, y) : (m.d(1), m = l(g), m && (m.c(), m.m(n, null))), /*showBalance*/
1103
+ l === (l = s(g)) && m ? m.p(g, y) : (m.d(1), m = l(g), m && (m.c(), m.m(n, null))), /*isModalDisplayed*/
1104
1104
  g[2] ? d ? d.p(g, y) : (d = ot(g), d.c(), d.m(t, null)) : d && (d.d(1), d = null);
1105
1105
  },
1106
1106
  i: qe,
@@ -1113,15 +1113,15 @@ function Nt(r) {
1113
1113
  function It(r, t, n) {
1114
1114
  let i;
1115
1115
  gt(r, _t, (c) => n(5, i = c));
1116
- let { userid: s = "" } = t, { session: l = "" } = t, { endpoint: m = "" } = t, { lang: d = "en" } = t, { clientstyling: g = "" } = t, { clientstylingurl: y = "" } = t, { translationurl: D = "" } = t, { customlocaleidentifier: k = "" } = t, { gmversion: b = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: A = "totalCashAmount" } = t, { currencyseparator: P = "" } = t, { currencydecimal: F = "" } = t, { currencyprecision: H = "" } = t, { mbsource: $ } = t, T, C, G, L = !1, ne = "", ae = [], ve, oe = !1;
1117
- const f = {}, ee = ["totalCashAmount", "totalRealAmount"], Me = () => {
1118
- fetch(D).then((c) => c.json()).then((c) => Object.keys(c).forEach((S) => Qe(S, c[S]))).catch((c) => console.log(c));
1116
+ let { userid: s = "" } = t, { session: l = "" } = t, { endpoint: m = "" } = t, { lang: d = "en" } = t, { clientstyling: g = "" } = t, { clientstylingurl: y = "" } = t, { translationurl: D = "" } = t, { customlocaleidentifier: O = "" } = t, { gmversion: B = "gm16" } = t, { displaybalanceoption: C = "All" } = t, { totalcalculationmode: A = "totalCashAmount" } = t, { currencyseparator: P = "" } = t, { currencydecimal: F = "" } = t, { currencyprecision: H = "" } = t, { mbsource: $ } = t, b, S = !0, G = !1, L = !1, ee, ve = "", ae = [], oe;
1117
+ const f = {}, te = ["totalCashAmount", "totalRealAmount"], Me = () => {
1118
+ fetch(D).then((c) => c.json()).then((c) => Object.keys(c).forEach((T) => Qe(T, c[T]))).catch((c) => console.log(c));
1119
1119
  };
1120
1120
  Object.keys(Ze).forEach((c) => Qe(c, Ze[c]));
1121
1121
  const Ce = () => {
1122
- if (k.includes(d))
1123
- return k;
1124
- }, Fe = (c) => k ? new Intl.NumberFormat(Ce(), { useGrouping: !0 }).format(c) : P && F ? ie(c, {
1122
+ if (O.includes(d))
1123
+ return O;
1124
+ }, Fe = (c) => O ? new Intl.NumberFormat(Ce(), { useGrouping: !0 }).format(c) : P && F ? ie(c, {
1125
1125
  separator: P,
1126
1126
  decimal: F,
1127
1127
  symbol: "",
@@ -1132,15 +1132,15 @@ function It(r, t, n) {
1132
1132
  symbol: "",
1133
1133
  precision: parseInt(H || "2", 10)
1134
1134
  }).format(), Ae = async () => {
1135
- n(1, T = !0);
1135
+ n(1, S = !0);
1136
1136
  const c = new URL(`${m}/v1/player/${s}/account`);
1137
1137
  try {
1138
- const S = await fetch(c, {
1138
+ const T = await fetch(c, {
1139
1139
  method: "GET",
1140
1140
  headers: { "X-SessionID": l }
1141
- }), E = await S.json();
1142
- if (S.ok)
1143
- ae = E.items, n(3, ne = ae.find((e) => e.displayName === "Casino")?.currency), n(4, f.Total = [{ amount: E.totalAmount[ne] }], f), n(
1141
+ }), E = await T.json();
1142
+ if (T.ok)
1143
+ ae = E.items, n(3, ve = ae.find((e) => e.displayName === "Casino")?.currency), n(4, f.Total = [{ amount: E.totalAmount[ve] }], f), n(
1144
1144
  4,
1145
1145
  f.Real = [
1146
1146
  {
@@ -1159,22 +1159,22 @@ function It(r, t, n) {
1159
1159
  );
1160
1160
  else
1161
1161
  throw new Error("Failed to fetch balance data !");
1162
- } catch (S) {
1163
- console.log("Balance error: ", S);
1162
+ } catch (T) {
1163
+ console.log("Balance error: ", T);
1164
1164
  } finally {
1165
- n(1, T = !1);
1165
+ n(1, S = !1);
1166
1166
  }
1167
1167
  }, le = () => {
1168
- n(1, T = !0);
1169
- const c = new URL(`${m}/v2/player/${s}/balance`), S = new Headers();
1170
- S.append("X-SessionID", l), fetch(c, { method: "GET", headers: S }).then((e) => e.json()).then((e) => {
1171
- e[A] || n(8, A = ee[0]);
1168
+ n(1, S = !0);
1169
+ const c = new URL(`${m}/v2/player/${s}/balance`), T = new Headers();
1170
+ T.append("X-SessionID", l), fetch(c, { method: "GET", headers: T }).then((e) => e.json()).then((e) => {
1171
+ e[A] || n(8, A = te[0]);
1172
1172
  const o = e.items.find((a) => a.type === "Real" && a.walletAccountType === "Ordinary");
1173
- if (n(3, ne = o.currency), oe = !!o.productType, n(4, f.Total = [{ amount: 0 }], f), n(4, f.Real = [], f), n(4, f.Bonus = [], f), n(4, f.Credit = [], f), !oe) {
1174
- ve = {
1173
+ if (n(3, ve = o.currency), L = !!o.productType, n(4, f.Total = [{ amount: 0 }], f), n(4, f.Real = [], f), n(4, f.Bonus = [], f), n(4, f.Credit = [], f), !L) {
1174
+ oe = {
1175
1175
  lastOrdinaryAfterAmount: 0,
1176
1176
  showCreditLineAfterAmount: !1
1177
- }, n(4, f.Total[0].amount = e[A][ne], f);
1177
+ }, n(4, f.Total[0].amount = e[A][ve], f);
1178
1178
  for (const a of e.items)
1179
1179
  switch (a.type) {
1180
1180
  case "Bonus":
@@ -1188,10 +1188,10 @@ function It(r, t, n) {
1188
1188
  }
1189
1189
  for (const [a, h] of Object.entries(f))
1190
1190
  h.length < 1 && delete f[a];
1191
- n(1, T = !1);
1191
+ n(1, S = !1);
1192
1192
  return;
1193
1193
  }
1194
- ve = {
1194
+ oe = {
1195
1195
  Casino: {
1196
1196
  lastOrdinaryAfterAmount: 0,
1197
1197
  showCreditLineAfterAmount: !1
@@ -1202,7 +1202,7 @@ function It(r, t, n) {
1202
1202
  }
1203
1203
  };
1204
1204
  let u = e.items;
1205
- B && B !== "All" && (u = e.items.filter((a) => a.productType === B));
1205
+ C && C !== "All" && (u = e.items.filter((a) => a.productType === C));
1206
1206
  for (const a of u) {
1207
1207
  let h;
1208
1208
  switch (a.type) {
@@ -1226,56 +1226,56 @@ function It(r, t, n) {
1226
1226
  Te();
1227
1227
  for (const [a, h] of Object.entries(f))
1228
1228
  h.length < 1 && delete f[a];
1229
- n(1, T = !1);
1230
- }).catch((e) => {
1231
- throw n(1, T = !1), new Error("Failed to fetch balance data !");
1229
+ n(1, S = !1);
1230
+ }).catch(() => {
1231
+ throw n(1, S = !1), new Error("Failed to fetch balance data !");
1232
1232
  });
1233
1233
  }, ce = () => {
1234
- if (G && G.close(), l.length < 1)
1234
+ if (ee && ee.close(), l.length < 1)
1235
1235
  return;
1236
- let c, S;
1237
- switch (b) {
1236
+ let c, T;
1237
+ switch (B) {
1238
1238
  case "gm16":
1239
- c = new URL(`${m}/v2/player/${s}/information/updates`), S = (o) => ke(o);
1239
+ c = new URL(`${m}/v2/player/${s}/information/updates`), T = (o) => Oe(o);
1240
1240
  break;
1241
1241
  case "gmcore":
1242
- c = new URL(`${m}/v1/player/${s}/balance/updates`), S = (o) => Re(o);
1242
+ c = new URL(`${m}/v1/player/${s}/balance/updates`), T = (o) => Re(o);
1243
1243
  break;
1244
1244
  }
1245
1245
  const E = {
1246
1246
  accept: "text/event-stream",
1247
1247
  "X-SessionId": l
1248
1248
  }, e = new Rt.EventSourcePolyfill(c, { headers: E });
1249
- G = e, e.addEventListener("message", S);
1250
- }, we = (c) => {
1251
- let S;
1249
+ ee = e, e.addEventListener("message", T);
1250
+ }, be = (c) => {
1251
+ let T;
1252
1252
  try {
1253
- S = JSON.parse(c);
1253
+ T = JSON.parse(c);
1254
1254
  } catch (E) {
1255
1255
  console.log("Balance stream failed: ", E);
1256
1256
  return;
1257
1257
  }
1258
- return S;
1258
+ return T;
1259
1259
  }, Re = (c) => {
1260
- const S = we(c.data);
1261
- if (!S) {
1260
+ const T = be(c.data);
1261
+ if (!T) {
1262
1262
  ce();
1263
1263
  return;
1264
1264
  }
1265
1265
  let E = "0";
1266
- const e = S.balanceChange;
1266
+ const e = T.balanceChange;
1267
1267
  ae = ae.map((o) => (e && e[o.id] && (o = {
1268
1268
  ...o,
1269
1269
  balanceAmount: e[o.id].afterAmount
1270
1270
  }), E = (parseFloat(o?.balanceAmount) + parseFloat(E)).toString(), o)), n(4, f.Real = [{ amount: ae[0]?.balanceAmount }], f), n(4, f.Bonus = [{ amount: ae[1]?.balanceAmount }], f), n(4, f.Total = [{ amount: Number(E) }], f);
1271
- }, te = (c, S, E) => {
1271
+ }, ne = (c, T, E) => {
1272
1272
  let e = null;
1273
1273
  switch (E.walletAccountType) {
1274
1274
  case "Ordinary":
1275
- E.afterAmount !== E.affectedAmount && (S.lastOrdinaryAfterAmount = E.afterAmount, S.showCreditLineAfterAmount || (e = E.afterAmount));
1275
+ (E.afterAmount !== E.affectedAmount || T.lastOrdinaryAfterAmount === 0) && (T.lastOrdinaryAfterAmount = E.afterAmount, T.showCreditLineAfterAmount || (e = E.afterAmount));
1276
1276
  break;
1277
1277
  case "CreditLine":
1278
- E.afterAmount !== 0 ? (e = E.afterAmount, S.showCreditLineAfterAmount = !0) : (e = S.lastOrdinaryAfterAmount, S.showCreditLineAfterAmount = !1);
1278
+ E.afterAmount !== 0 ? (e = E.afterAmount, T.showCreditLineAfterAmount = !0) : (e = T.lastOrdinaryAfterAmount, T.showCreditLineAfterAmount = !1);
1279
1279
  break;
1280
1280
  default:
1281
1281
  e = E.afterAmount;
@@ -1291,38 +1291,38 @@ function It(r, t, n) {
1291
1291
  n(4, f.Total[0].amount = c, f);
1292
1292
  break;
1293
1293
  case "totalRealAmount":
1294
- if (!oe)
1294
+ if (!L)
1295
1295
  return;
1296
- let S = 0;
1296
+ let T = 0;
1297
1297
  for (const E of f.Real)
1298
- S += E.amount;
1299
- n(4, f.Total[0].amount = S, f);
1298
+ T += E.amount;
1299
+ n(4, f.Total[0].amount = T, f);
1300
1300
  }
1301
- }, ke = (c) => {
1302
- const S = we(c.data);
1303
- if (!S) {
1301
+ }, Oe = (c) => {
1302
+ const T = be(c.data);
1303
+ if (!T) {
1304
1304
  ce();
1305
1305
  return;
1306
1306
  }
1307
- if (S.type !== "BALANCE_UPDATE_V2")
1307
+ if (T.type !== "BALANCE_UPDATE_V2")
1308
1308
  return;
1309
- const E = S.body.balanceChange;
1309
+ const E = T.body.balanceChange;
1310
1310
  for (const [e, o] of Object.entries(E))
1311
- if (A === "totalRealAmount" && e === "Real" && !oe && n(4, f.Total[0].amount = te(f.Total[0].amount, ve, o), f), !!f[e])
1311
+ if (A === "totalRealAmount" && e === "Real" && !L && n(4, f.Total[0].amount = ne(f.Total[0].amount, oe, o), f), !!f[e])
1312
1312
  for (const u of f[e]) {
1313
- if (!oe) {
1314
- u.amount = e === "Real" ? te(u.amount, ve, o) : o.afterAmount;
1313
+ if (!L) {
1314
+ u.amount = e === "Real" ? ne(u.amount, oe, o) : o.afterAmount;
1315
1315
  continue;
1316
1316
  }
1317
- o.productType === u.productType && (u.amount = e === "Real" ? te(u.amount, ve[u.productType], o) : o.afterAmount);
1317
+ o.productType === u.productType && (u.amount = e === "Real" ? ne(u.amount, oe[u.productType], o) : o.afterAmount);
1318
1318
  }
1319
1319
  Te();
1320
- }, Oe = () => {
1321
- n(2, L = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1320
+ }, ke = () => {
1321
+ n(2, G = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1322
1322
  }, Ue = () => {
1323
- ee.includes(A) || (console.error(`Unsupported value ('${A}') for totalcalculationmode parameter. Only the following values are supported ${ee}. Using default value ('${ee[0]}').`), n(8, A = ee[0]));
1323
+ te.includes(A) || (console.error(`Unsupported value ('${A}') for totalcalculationmode parameter. Only the following values are supported ${te}. Using default value ('${te[0]}').`), n(8, A = te[0]));
1324
1324
  }, Pe = () => {
1325
- switch (At(d), Ue(), b) {
1325
+ switch (At(d), Ue(), B) {
1326
1326
  case "gmcore":
1327
1327
  Ae();
1328
1328
  break;
@@ -1330,38 +1330,38 @@ function It(r, t, n) {
1330
1330
  le();
1331
1331
  break;
1332
1332
  default:
1333
- throw Error(`Invalid apiversion attribute: ${b}`);
1333
+ throw Error(`Invalid apiversion attribute: ${B}`);
1334
1334
  }
1335
- }, Ne = (c) => c.data && c.data.type === "LogoutSuccessfull" && G.close();
1335
+ }, Ne = (c) => c.data && c.data.type === "LogoutSuccessfull" && ee.close();
1336
1336
  yt(() => (window.addEventListener("message", Ne, !1), () => {
1337
- window.removeEventListener("message", Ne), G && G.close();
1337
+ window.removeEventListener("message", Ne), ee && ee.close();
1338
1338
  }));
1339
- const Ee = () => n(2, L = !0), xe = () => n(2, L = !1), be = () => Oe(), J = () => n(2, L = !1);
1339
+ const Ee = () => n(2, G = !0), xe = () => n(2, G = !1), we = () => ke(), J = () => n(2, G = !1);
1340
1340
  function Ge(c) {
1341
1341
  vt[c ? "unshift" : "push"](() => {
1342
- C = c, n(0, C);
1342
+ b = c, n(0, b);
1343
1343
  });
1344
1344
  }
1345
1345
  return r.$$set = (c) => {
1346
- "userid" in c && n(9, s = c.userid), "session" in c && n(10, l = c.session), "endpoint" in c && n(11, m = c.endpoint), "lang" in c && n(12, d = c.lang), "clientstyling" in c && n(13, g = c.clientstyling), "clientstylingurl" in c && n(14, y = c.clientstylingurl), "translationurl" in c && n(15, D = c.translationurl), "customlocaleidentifier" in c && n(16, k = c.customlocaleidentifier), "gmversion" in c && n(17, b = c.gmversion), "displaybalanceoption" in c && n(18, B = c.displaybalanceoption), "totalcalculationmode" in c && n(8, A = c.totalcalculationmode), "currencyseparator" in c && n(19, P = c.currencyseparator), "currencydecimal" in c && n(20, F = c.currencydecimal), "currencyprecision" in c && n(21, H = c.currencyprecision), "mbsource" in c && n(22, $ = c.mbsource);
1346
+ "userid" in c && n(9, s = c.userid), "session" in c && n(10, l = c.session), "endpoint" in c && n(11, m = c.endpoint), "lang" in c && n(12, d = c.lang), "clientstyling" in c && n(13, g = c.clientstyling), "clientstylingurl" in c && n(14, y = c.clientstylingurl), "translationurl" in c && n(15, D = c.translationurl), "customlocaleidentifier" in c && n(16, O = c.customlocaleidentifier), "gmversion" in c && n(17, B = c.gmversion), "displaybalanceoption" in c && n(18, C = c.displaybalanceoption), "totalcalculationmode" in c && n(8, A = c.totalcalculationmode), "currencyseparator" in c && n(19, P = c.currencyseparator), "currencydecimal" in c && n(20, F = c.currencydecimal), "currencyprecision" in c && n(21, H = c.currencyprecision), "mbsource" in c && n(22, $ = c.mbsource);
1347
1347
  }, r.$$.update = () => {
1348
1348
  r.$$.dirty[0] & /*lang*/
1349
1349
  4096 && d && Ce(), r.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1350
- 400896 && m && s && l && d && b && B && Pe(), r.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1351
- 134656 && m && s && l && b && ce(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1352
- 8193 && g && C && Bt(C, g), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1353
- 16385 && y && C && Ct(C, y), r.$$.dirty[0] & /*customStylingContainer, mbsource*/
1354
- 4194305 && C && Tt(C, `${$}.Style`), r.$$.dirty[0] & /*translationurl*/
1350
+ 400896 && m && s && l && d && B && C && Pe(), r.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1351
+ 134656 && m && s && l && B && ce(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1352
+ 8193 && g && b && Bt(b, g), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1353
+ 16385 && y && b && Ct(b, y), r.$$.dirty[0] & /*customStylingContainer, mbsource*/
1354
+ 4194305 && b && Tt(b, `${$}.Style`), r.$$.dirty[0] & /*translationurl*/
1355
1355
  32768 && D && Me();
1356
1356
  }, [
1357
- C,
1358
- T,
1359
- L,
1360
- ne,
1357
+ b,
1358
+ S,
1359
+ G,
1360
+ ve,
1361
1361
  f,
1362
1362
  i,
1363
1363
  Fe,
1364
- Oe,
1364
+ ke,
1365
1365
  A,
1366
1366
  s,
1367
1367
  l,
@@ -1370,16 +1370,16 @@ function It(r, t, n) {
1370
1370
  g,
1371
1371
  y,
1372
1372
  D,
1373
- k,
1374
- b,
1373
+ O,
1375
1374
  B,
1375
+ C,
1376
1376
  P,
1377
1377
  F,
1378
1378
  H,
1379
1379
  $,
1380
1380
  Ee,
1381
1381
  xe,
1382
- be,
1382
+ we,
1383
1383
  J,
1384
1384
  Ge
1385
1385
  ];