@everymatrix/casino-header-controller-nd 1.86.28 → 1.86.30

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,9 +1,9 @@
1
- import { b as st, $ as lt, T as ct, S as dt, i as ut, s as ft, f as K, d as pt, A as Ke, g as pe, m as R, o as he, p as E, w as V, x as fe, y as ht, O as mt, z as gt, F as yt, q as Ie, H as wt, B as _e, C as Ae, J as Ye, D as bt, K as ze, L as it, r as vt, P as Bt, Q as Tt, R as St, c as Ct } from "./CasinoHamburgerMenuNd-Djtdm8EV.js";
2
- function Qe(s, t) {
3
- st(s, t);
1
+ import { b as st, $ as lt, T as ct, S as dt, i as ut, s as ft, f as K, d as pt, A as Ke, g as pe, m as L, o as he, p as E, w as V, x as fe, y as ht, O as mt, z as gt, F as yt, q as Ie, H as wt, B as _e, C as Ae, J as Ye, D as vt, K as ze, L as it, r as bt, P as Bt, Q as Tt, R as St, c as Ct } from "./CasinoHamburgerMenuNd-Djtdm8EV.js";
2
+ function Qe(r, t) {
3
+ st(r, t);
4
4
  }
5
- function _t(s) {
6
- lt.set(s);
5
+ function _t(r) {
6
+ lt.set(r);
7
7
  }
8
8
  const Je = {
9
9
  en: {
@@ -229,13 +229,13 @@ var qe = { exports: {} };
229
229
  * Available under MIT License (MIT)
230
230
  * https://github.com/Yaffle/EventSource/
231
231
  */
232
- (function(s, t) {
232
+ (function(r, t) {
233
233
  (function(n) {
234
- var h = n.setTimeout, u = n.clearTimeout, l = n.XMLHttpRequest, g = n.XDomainRequest, f = n.ActiveXObject, T = n.EventSource, B = n.document, M = n.Promise, U = n.fetch, I = n.Response, S = n.TextDecoder, v = n.TextEncoder, H = n.AbortController;
235
- if (typeof window < "u" && typeof B < "u" && !("readyState" in B) && B.body == null && (B.readyState = "loading", window.addEventListener("load", function(a) {
236
- B.readyState = "complete";
237
- }, !1)), l == null && f != null && (l = function() {
238
- return new f("Microsoft.XMLHTTP");
234
+ var h = n.setTimeout, g = n.clearTimeout, l = n.XMLHttpRequest, d = n.XDomainRequest, w = n.ActiveXObject, p = n.EventSource, b = n.document, M = n.Promise, U = n.fetch, I = n.Response, S = n.TextDecoder, T = n.TextEncoder, H = n.AbortController;
235
+ if (typeof window < "u" && typeof b < "u" && !("readyState" in b) && b.body == null && (b.readyState = "loading", window.addEventListener("load", function(a) {
236
+ b.readyState = "complete";
237
+ }, !1)), l == null && w != null && (l = function() {
238
+ return new w("Microsoft.XMLHTTP");
239
239
  }), Object.create == null && (Object.create = function(a) {
240
240
  function i() {
241
241
  }
@@ -245,16 +245,16 @@ var qe = { exports: {} };
245
245
  }), H == null) {
246
246
  var me = U;
247
247
  U = function(a, i) {
248
- var d = i.signal;
248
+ var u = i.signal;
249
249
  return me(a, { headers: i.headers, credentials: i.credentials, cache: i.cache }).then(function(o) {
250
- var w = o.body.getReader();
251
- return d._reader = w, d._aborted && d._reader.cancel(), {
250
+ var v = o.body.getReader();
251
+ return u._reader = v, u._aborted && u._reader.cancel(), {
252
252
  status: o.status,
253
253
  statusText: o.statusText,
254
254
  headers: o.headers,
255
255
  body: {
256
256
  getReader: function() {
257
- return w;
257
+ return v;
258
258
  }
259
259
  }
260
260
  };
@@ -281,7 +281,7 @@ var qe = { exports: {} };
281
281
  return D >= 65536 >> k && D << k <= 1114111;
282
282
  throw new Error();
283
283
  }
284
- function d(D, k) {
284
+ function u(D, k) {
285
285
  if (D === 6 * 1)
286
286
  return k >> 6 > 15 ? 3 : k > 31 ? 2 : 1;
287
287
  if (D === 6 * 2)
@@ -290,21 +290,21 @@ var qe = { exports: {} };
290
290
  return 3;
291
291
  throw new Error();
292
292
  }
293
- for (var o = 65533, w = "", m = this.bitsNeeded, C = this.codePoint, N = 0; N < a.length; N += 1) {
293
+ for (var o = 65533, v = "", m = this.bitsNeeded, C = this.codePoint, N = 0; N < a.length; N += 1) {
294
294
  var A = a[N];
295
- m !== 0 && (A < 128 || A > 191 || !i(C << 6 | A & 63, m - 6, d(m, C))) && (m = 0, C = o, w += String.fromCharCode(C)), m === 0 ? (A >= 0 && A <= 127 ? (m = 0, C = A) : A >= 192 && A <= 223 ? (m = 6 * 1, C = A & 31) : A >= 224 && A <= 239 ? (m = 6 * 2, C = A & 15) : A >= 240 && A <= 247 ? (m = 6 * 3, C = A & 7) : (m = 0, C = o), m !== 0 && !i(C, m, d(m, C)) && (m = 0, C = o)) : (m -= 6, C = C << 6 | A & 63), m === 0 && (C <= 65535 ? w += String.fromCharCode(C) : (w += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), w += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
295
+ m !== 0 && (A < 128 || A > 191 || !i(C << 6 | A & 63, m - 6, u(m, C))) && (m = 0, C = o, v += String.fromCharCode(C)), m === 0 ? (A >= 0 && A <= 127 ? (m = 0, C = A) : A >= 192 && A <= 223 ? (m = 6 * 1, C = A & 31) : A >= 224 && A <= 239 ? (m = 6 * 2, C = A & 15) : A >= 240 && A <= 247 ? (m = 6 * 3, C = A & 7) : (m = 0, C = o), m !== 0 && !i(C, m, u(m, C)) && (m = 0, C = o)) : (m -= 6, C = C << 6 | A & 63), m === 0 && (C <= 65535 ? v += String.fromCharCode(C) : (v += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
296
296
  }
297
- return this.bitsNeeded = m, this.codePoint = C, w;
297
+ return this.bitsNeeded = m, this.codePoint = C, v;
298
298
  };
299
299
  var Be = function() {
300
300
  try {
301
- return new S().decode(new v().encode("test"), { stream: !0 }) === "test";
301
+ return new S().decode(new T().encode("test"), { stream: !0 }) === "test";
302
302
  } catch (a) {
303
303
  console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
304
304
  }
305
305
  return !1;
306
306
  };
307
- (S == null || v == null || !Be()) && (S = ce);
307
+ (S == null || T == null || !Be()) && (S = ce);
308
308
  var P = function() {
309
309
  };
310
310
  function q(a) {
@@ -312,46 +312,46 @@ var qe = { exports: {} };
312
312
  }
313
313
  q.prototype.open = function(a, i) {
314
314
  this._abort(!0);
315
- var d = this, o = this._xhr, w = 1, m = 0;
315
+ var u = this, o = this._xhr, v = 1, m = 0;
316
316
  this._abort = function(e) {
317
- d._sendTimeout !== 0 && (u(d._sendTimeout), d._sendTimeout = 0), (w === 1 || w === 2 || w === 3) && (w = 4, o.onload = P, o.onerror = P, o.onabort = P, o.onprogress = P, o.onreadystatechange = P, o.abort(), m !== 0 && (u(m), m = 0), e || (d.readyState = 4, d.onabort(null), d.onreadystatechange())), w = 0;
317
+ u._sendTimeout !== 0 && (g(u._sendTimeout), u._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, o.onload = P, o.onerror = P, o.onabort = P, o.onprogress = P, o.onreadystatechange = P, o.abort(), m !== 0 && (g(m), m = 0), e || (u.readyState = 4, u.onabort(null), u.onreadystatechange())), v = 0;
318
318
  };
319
319
  var C = function() {
320
- if (w === 1) {
321
- var e = 0, r = "", p = void 0;
320
+ if (v === 1) {
321
+ var e = 0, s = "", f = void 0;
322
322
  if ("contentType" in o)
323
- e = 200, r = "OK", p = o.contentType;
323
+ e = 200, s = "OK", f = o.contentType;
324
324
  else
325
325
  try {
326
- e = o.status, r = o.statusText, p = o.getResponseHeader("Content-Type");
326
+ e = o.status, s = o.statusText, f = o.getResponseHeader("Content-Type");
327
327
  } catch {
328
- e = 0, r = "", p = void 0;
328
+ e = 0, s = "", f = void 0;
329
329
  }
330
- e !== 0 && (w = 2, d.readyState = 2, d.status = e, d.statusText = r, d._contentType = p, d.onreadystatechange());
330
+ e !== 0 && (v = 2, u.readyState = 2, u.status = e, u.statusText = s, u._contentType = f, u.onreadystatechange());
331
331
  }
332
332
  }, N = function() {
333
- if (C(), w === 2 || w === 3) {
334
- w = 3;
333
+ if (C(), v === 2 || v === 3) {
334
+ v = 3;
335
335
  var e = "";
336
336
  try {
337
337
  e = o.responseText;
338
338
  } catch {
339
339
  }
340
- d.readyState = 3, d.responseText = e, d.onprogress();
340
+ u.readyState = 3, u.responseText = e, u.onprogress();
341
341
  }
342
- }, A = function(e, r) {
343
- if ((r == null || r.preventDefault == null) && (r = {
342
+ }, A = function(e, s) {
343
+ if ((s == null || s.preventDefault == null) && (s = {
344
344
  preventDefault: P
345
- }), N(), w === 1 || w === 2 || w === 3) {
346
- if (w = 4, m !== 0 && (u(m), m = 0), d.readyState = 4, e === "load")
347
- d.onload(r);
345
+ }), N(), v === 1 || v === 2 || v === 3) {
346
+ if (v = 4, m !== 0 && (g(m), m = 0), u.readyState = 4, e === "load")
347
+ u.onload(s);
348
348
  else if (e === "error")
349
- d.onerror(r);
349
+ u.onerror(s);
350
350
  else if (e === "abort")
351
- d.onabort(r);
351
+ u.onabort(s);
352
352
  else
353
353
  throw new TypeError();
354
- d.onreadystatechange();
354
+ u.onreadystatechange();
355
355
  }
356
356
  }, D = function(e) {
357
357
  o != null && (o.readyState === 4 ? (!("onload" in o) || !("onerror" in o) || !("onabort" in o)) && A(o.responseText === "" ? "error" : "load", e) : o.readyState === 3 ? "onprogress" in o || N() : o.readyState === 2 && C());
@@ -376,12 +376,12 @@ var qe = { exports: {} };
376
376
  }, q.prototype.getResponseHeader = function(a) {
377
377
  return this._contentType;
378
378
  }, q.prototype.setRequestHeader = function(a, i) {
379
- var d = this._xhr;
380
- "setRequestHeader" in d && d.setRequestHeader(a, i);
379
+ var u = this._xhr;
380
+ "setRequestHeader" in u && u.setRequestHeader(a, i);
381
381
  }, q.prototype.getAllResponseHeaders = function() {
382
382
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
383
383
  }, q.prototype.send = function() {
384
- if ((!("ontimeout" in l.prototype) || !("sendAsBinary" in l.prototype) && !("mozAnon" in l.prototype)) && B != null && B.readyState != null && B.readyState !== "complete") {
384
+ if ((!("ontimeout" in l.prototype) || !("sendAsBinary" in l.prototype) && !("mozAnon" in l.prototype)) && b != null && b.readyState != null && b.readyState !== "complete") {
385
385
  var a = this;
386
386
  a._sendTimeout = h(function() {
387
387
  a._sendTimeout = 0, a.send();
@@ -392,8 +392,8 @@ var qe = { exports: {} };
392
392
  "withCredentials" in i && (i.withCredentials = this.withCredentials);
393
393
  try {
394
394
  i.send(void 0);
395
- } catch (d) {
396
- throw d;
395
+ } catch (u) {
396
+ throw u;
397
397
  }
398
398
  };
399
399
  function ne(a) {
@@ -402,9 +402,9 @@ var qe = { exports: {} };
402
402
  });
403
403
  }
404
404
  function le(a) {
405
- for (var i = /* @__PURE__ */ Object.create(null), d = a.split(`\r
406
- `), o = 0; o < d.length; o += 1) {
407
- var w = d[o], m = w.split(": "), C = m.shift(), N = m.join(": ");
405
+ for (var i = /* @__PURE__ */ Object.create(null), u = a.split(`\r
406
+ `), o = 0; o < u.length; o += 1) {
407
+ var v = u[o], m = v.split(": "), C = m.shift(), N = m.join(": ");
408
408
  i[ne(C)] = N;
409
409
  }
410
410
  this._map = i;
@@ -414,12 +414,12 @@ var qe = { exports: {} };
414
414
  }, l != null && l.HEADERS_RECEIVED == null && (l.HEADERS_RECEIVED = 2);
415
415
  function ge() {
416
416
  }
417
- ge.prototype.open = function(a, i, d, o, w, m, C) {
418
- a.open("GET", w);
417
+ ge.prototype.open = function(a, i, u, o, v, m, C) {
418
+ a.open("GET", v);
419
419
  var N = 0;
420
420
  a.onprogress = function() {
421
421
  var D = a.responseText, k = D.slice(N);
422
- N += k.length, d(k);
422
+ N += k.length, u(k);
423
423
  }, a.onerror = function(D) {
424
424
  D.preventDefault(), o(new Error("NetworkError"));
425
425
  }, a.onload = function() {
@@ -428,8 +428,8 @@ var qe = { exports: {} };
428
428
  o(null);
429
429
  }, a.onreadystatechange = function() {
430
430
  if (a.readyState === l.HEADERS_RECEIVED) {
431
- var D = a.status, k = a.statusText, e = a.getResponseHeader("Content-Type"), r = a.getAllResponseHeaders();
432
- i(D, k, e, new le(r));
431
+ var D = a.status, k = a.statusText, e = a.getResponseHeader("Content-Type"), s = a.getAllResponseHeaders();
432
+ i(D, k, e, new le(s));
433
433
  }
434
434
  }, a.withCredentials = m;
435
435
  for (var A in C)
@@ -444,25 +444,25 @@ var qe = { exports: {} };
444
444
  };
445
445
  function O() {
446
446
  }
447
- O.prototype.open = function(a, i, d, o, w, m, C) {
447
+ O.prototype.open = function(a, i, u, o, v, m, C) {
448
448
  var N = null, A = new H(), D = A.signal, k = new S();
449
- return U(w, {
449
+ return U(v, {
450
450
  headers: C,
451
451
  credentials: m ? "include" : "same-origin",
452
452
  signal: D,
453
453
  cache: "no-store"
454
454
  }).then(function(e) {
455
- return N = e.body.getReader(), i(e.status, e.statusText, e.headers.get("Content-Type"), new W(e.headers)), new M(function(r, p) {
455
+ return N = e.body.getReader(), i(e.status, e.statusText, e.headers.get("Content-Type"), new W(e.headers)), new M(function(s, f) {
456
456
  var y = function() {
457
457
  N.read().then(function(_) {
458
458
  if (_.done)
459
- r(void 0);
459
+ s(void 0);
460
460
  else {
461
- var x = k.decode(_.value, { stream: !0 });
462
- d(x), y();
461
+ var R = k.decode(_.value, { stream: !0 });
462
+ u(R), y();
463
463
  }
464
464
  }).catch(function(_) {
465
- p(_);
465
+ f(_);
466
466
  });
467
467
  };
468
468
  y();
@@ -481,7 +481,7 @@ var qe = { exports: {} };
481
481
  function F() {
482
482
  this._listeners = /* @__PURE__ */ Object.create(null);
483
483
  }
484
- function L(a) {
484
+ function x(a) {
485
485
  h(function() {
486
486
  throw a;
487
487
  }, 0);
@@ -490,28 +490,28 @@ var qe = { exports: {} };
490
490
  a.target = this;
491
491
  var i = this._listeners[a.type];
492
492
  if (i != null)
493
- for (var d = i.length, o = 0; o < d; o += 1) {
494
- var w = i[o];
493
+ for (var u = i.length, o = 0; o < u; o += 1) {
494
+ var v = i[o];
495
495
  try {
496
- typeof w.handleEvent == "function" ? w.handleEvent(a) : w.call(this, a);
496
+ typeof v.handleEvent == "function" ? v.handleEvent(a) : v.call(this, a);
497
497
  } catch (m) {
498
- L(m);
498
+ x(m);
499
499
  }
500
500
  }
501
501
  }, F.prototype.addEventListener = function(a, i) {
502
502
  a = String(a);
503
- var d = this._listeners, o = d[a];
504
- o == null && (o = [], d[a] = o);
505
- for (var w = !1, m = 0; m < o.length; m += 1)
506
- o[m] === i && (w = !0);
507
- w || o.push(i);
503
+ var u = this._listeners, o = u[a];
504
+ o == null && (o = [], u[a] = o);
505
+ for (var v = !1, m = 0; m < o.length; m += 1)
506
+ o[m] === i && (v = !0);
507
+ v || o.push(i);
508
508
  }, F.prototype.removeEventListener = function(a, i) {
509
509
  a = String(a);
510
- var d = this._listeners, o = d[a];
510
+ var u = this._listeners, o = u[a];
511
511
  if (o != null) {
512
- for (var w = [], m = 0; m < o.length; m += 1)
513
- o[m] !== i && w.push(o[m]);
514
- w.length === 0 ? delete d[a] : d[a] = w;
512
+ for (var v = [], m = 0; m < o.length; m += 1)
513
+ o[m] !== i && v.push(o[m]);
514
+ v.length === 0 ? delete u[a] : u[a] = v;
515
515
  }
516
516
  };
517
517
  function z(a) {
@@ -530,30 +530,30 @@ var qe = { exports: {} };
530
530
  }
531
531
  ye.prototype = Object.create(z.prototype);
532
532
  var de = -1, J = 0, re = 1, Se = 2, c = -1, ae = 0, Me = 1, we = 2, ke = 3, Ve = /^text\/event\-stream(;.*)?$/i, Ue = 1e3, Pe = 18e6, Le = function(a, i) {
533
- var d = a == null ? i : parseInt(a, 10);
534
- return d !== d && (d = i), Re(d);
533
+ var u = a == null ? i : parseInt(a, 10);
534
+ return u !== u && (u = i), Re(u);
535
535
  }, Re = function(a) {
536
536
  return Math.min(Math.max(a, Ue), Pe);
537
- }, Ce = function(a, i, d) {
537
+ }, Ce = function(a, i, u) {
538
538
  try {
539
- typeof i == "function" && i.call(a, d);
539
+ typeof i == "function" && i.call(a, u);
540
540
  } catch (o) {
541
- L(o);
541
+ x(o);
542
542
  }
543
543
  };
544
544
  function $(a, i) {
545
545
  F.call(this), i = i || {}, 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, Oe(this, a, i);
546
546
  }
547
547
  function je() {
548
- return l != null && "withCredentials" in l.prototype || g == null ? new l() : new g();
548
+ return l != null && "withCredentials" in l.prototype || d == null ? new l() : new d();
549
549
  }
550
550
  var Ge = U != null && I != null && "body" in I.prototype;
551
- function Oe(a, i, d) {
551
+ function Oe(a, i, u) {
552
552
  i = String(i);
553
- var o = !!d.withCredentials, w = d.lastEventIdQueryParameterName || "lastEventId", m = Re(1e3), C = Le(d.heartbeatTimeout, 45e3), N = "", A = m, D = !1, k = 0, e = d.headers || {}, r = d.Transport, p = Ge && r == null ? void 0 : new q(r != null ? new r() : je()), y = r != null && typeof r != "string" ? new r() : p == null ? new O() : new ge(), _ = void 0, x = 0, b = de, G = "", se = "", ee = "", Ee = "", X = ae, Ne = 0, ue = 0, xe = function(Q, Y, oe, ie) {
554
- if (b === J)
553
+ var o = !!u.withCredentials, v = u.lastEventIdQueryParameterName || "lastEventId", m = Re(1e3), C = Le(u.heartbeatTimeout, 45e3), N = "", A = m, D = !1, k = 0, e = u.headers || {}, s = u.Transport, f = Ge && s == null ? void 0 : new q(s != null ? new s() : je()), y = s != null && typeof s != "string" ? new s() : f == null ? new O() : new ge(), _ = void 0, R = 0, B = de, G = "", se = "", ee = "", Ee = "", X = ae, Ne = 0, ue = 0, xe = function(Q, Y, oe, ie) {
554
+ if (B === J)
555
555
  if (Q === 200 && oe != null && Ve.test(oe)) {
556
- b = re, D = Date.now(), A = m, a.readyState = re;
556
+ B = re, D = Date.now(), A = m, a.readyState = re;
557
557
  var te = new Te("open", {
558
558
  status: Q,
559
559
  statusText: Y,
@@ -571,7 +571,7 @@ var qe = { exports: {} };
571
571
  a.dispatchEvent(te), Ce(a, a.onerror, te), console.error(Z);
572
572
  }
573
573
  }, rt = function(Q) {
574
- if (b === re) {
574
+ if (B === re) {
575
575
  for (var Y = -1, oe = 0; oe < Q.length; oe += 1) {
576
576
  var ie = Q.charCodeAt(oe);
577
577
  (ie === 10 || ie === 13) && (Y = oe);
@@ -585,9 +585,9 @@ var qe = { exports: {} };
585
585
  else if (X === c && (X = ae), ie === 13 || ie === 10) {
586
586
  if (X !== ae) {
587
587
  X === Me && (ue = Z + 1);
588
- var be = te.slice(Ne, ue - 1), ve = te.slice(ue + (ue < Z && te.charCodeAt(ue) === 32 ? 1 : 0), Z);
589
- be === "data" ? (G += `
590
- `, G += ve) : be === "id" ? se = ve : be === "event" ? ee = ve : be === "retry" ? (m = Le(ve, m), A = m) : be === "heartbeatTimeout" && (C = Le(ve, C), x !== 0 && (u(x), x = h(function() {
588
+ var ve = te.slice(Ne, ue - 1), be = te.slice(ue + (ue < Z && te.charCodeAt(ue) === 32 ? 1 : 0), Z);
589
+ ve === "data" ? (G += `
590
+ `, G += be) : ve === "id" ? se = be : ve === "event" ? ee = be : ve === "retry" ? (m = Le(be, m), A = m) : ve === "heartbeatTimeout" && (C = Le(be, C), R !== 0 && (g(R), R = h(function() {
591
591
  Fe();
592
592
  }, C)));
593
593
  }
@@ -598,7 +598,7 @@ var qe = { exports: {} };
598
598
  data: G.slice(1),
599
599
  lastEventId: se
600
600
  });
601
- if (a.dispatchEvent(De), ee === "open" ? Ce(a, a.onopen, De) : ee === "message" ? Ce(a, a.onmessage, De) : ee === "error" && Ce(a, a.onerror, De), b === Se)
601
+ if (a.dispatchEvent(De), ee === "open" ? Ce(a, a.onopen, De) : ee === "message" ? Ce(a, a.onmessage, De) : ee === "error" && Ce(a, a.onerror, De), B === Se)
602
602
  return;
603
603
  }
604
604
  G = "", ee = "";
@@ -609,47 +609,47 @@ var qe = { exports: {} };
609
609
  }
610
610
  }
611
611
  }, We = function(Q) {
612
- if (b === re || b === J) {
613
- b = de, x !== 0 && (u(x), x = 0), x = h(function() {
612
+ if (B === re || B === J) {
613
+ B = de, R !== 0 && (g(R), R = 0), R = h(function() {
614
614
  Fe();
615
615
  }, A), A = Re(Math.min(m * 16, A * 2)), a.readyState = J;
616
616
  var Y = new ye("error", { error: Q });
617
617
  a.dispatchEvent(Y), Ce(a, a.onerror, Y), Q != null && console.error(Q);
618
618
  }
619
619
  }, Xe = function() {
620
- b = Se, _ != null && (_.abort(), _ = void 0), x !== 0 && (u(x), x = 0), a.readyState = Se;
620
+ B = Se, _ != null && (_.abort(), _ = void 0), R !== 0 && (g(R), R = 0), a.readyState = Se;
621
621
  }, Fe = function() {
622
- if (x = 0, b !== de) {
622
+ if (R = 0, B !== de) {
623
623
  if (!D && _ != null)
624
- We(new Error("No activity within " + C + " milliseconds. " + (b === J ? "No response received." : k + " chars received.") + " Reconnecting.")), _ != null && (_.abort(), _ = void 0);
624
+ We(new Error("No activity within " + C + " milliseconds. " + (B === J ? "No response received." : k + " chars received.") + " Reconnecting.")), _ != null && (_.abort(), _ = void 0);
625
625
  else {
626
626
  var Q = Math.max((D || Date.now()) + C - Date.now(), 1);
627
- D = !1, x = h(function() {
627
+ D = !1, R = h(function() {
628
628
  Fe();
629
629
  }, Q);
630
630
  }
631
631
  return;
632
632
  }
633
- D = !1, k = 0, x = h(function() {
633
+ D = !1, k = 0, R = h(function() {
634
634
  Fe();
635
- }, C), b = J, G = "", ee = "", se = N, Ee = "", Ne = 0, ue = 0, X = ae;
635
+ }, C), B = J, G = "", ee = "", se = N, Ee = "", Ne = 0, ue = 0, X = ae;
636
636
  var Y = i;
637
637
  if (i.slice(0, 5) !== "data:" && i.slice(0, 5) !== "blob:" && N !== "") {
638
638
  var oe = i.indexOf("?");
639
- Y = oe === -1 ? i : i.slice(0, oe + 1) + i.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, De) {
640
- return De === w ? "" : ve;
641
- }), Y += (i.indexOf("?") === -1 ? "?" : "&") + w + "=" + encodeURIComponent(N);
639
+ Y = oe === -1 ? i : i.slice(0, oe + 1) + i.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(be, De) {
640
+ return De === v ? "" : be;
641
+ }), Y += (i.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(N);
642
642
  }
643
643
  var ie = a.withCredentials, te = {};
644
644
  te.Accept = "text/event-stream";
645
645
  var Z = a.headers;
646
646
  if (Z != null)
647
- for (var be in Z)
648
- Object.prototype.hasOwnProperty.call(Z, be) && (te[be] = Z[be]);
647
+ for (var ve in Z)
648
+ Object.prototype.hasOwnProperty.call(Z, ve) && (te[ve] = Z[ve]);
649
649
  try {
650
- _ = y.open(p, xe, rt, We, Y, ie, te);
651
- } catch (ve) {
652
- throw Xe(), ve;
650
+ _ = y.open(f, xe, rt, We, Y, ie, te);
651
+ } catch (be) {
652
+ throw Xe(), be;
653
653
  }
654
654
  };
655
655
  a.url = i, a.readyState = J, a.withCredentials = o, a.headers = e, a._close = Xe, Fe();
@@ -657,149 +657,149 @@ var qe = { exports: {} };
657
657
  $.prototype = Object.create(F.prototype), $.prototype.CONNECTING = J, $.prototype.OPEN = re, $.prototype.CLOSED = Se, $.prototype.close = function() {
658
658
  this._close();
659
659
  }, $.CONNECTING = J, $.OPEN = re, $.CLOSED = Se, $.prototype.withCredentials = void 0;
660
- var He = T;
661
- l != null && (T == null || !("withCredentials" in T.prototype)) && (He = $), function(a) {
660
+ var He = p;
661
+ l != null && (p == null || !("withCredentials" in p.prototype)) && (He = $), function(a) {
662
662
  {
663
663
  var i = a(t);
664
- i !== void 0 && (s.exports = i);
664
+ i !== void 0 && (r.exports = i);
665
665
  }
666
666
  }(function(a) {
667
- a.EventSourcePolyfill = $, a.NativeEventSource = T, a.EventSource = He;
667
+ a.EventSourcePolyfill = $, a.NativeEventSource = p, a.EventSource = He;
668
668
  });
669
669
  })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ct : globalThis);
670
670
  })(qe, qe.exports);
671
671
  var At = qe.exports;
672
- function Lt(s) {
673
- pt(s, "svelte-15fwckg", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);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;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));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, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.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, white))}.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, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px;gap:5px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
672
+ function Lt(r) {
673
+ pt(r, "svelte-15fwckg", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);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;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));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, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.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, white))}.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, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px;gap:5px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
674
674
  }
675
- function Ze(s, t, n) {
676
- const h = s.slice();
675
+ function Ze(r, t, n) {
676
+ const h = r.slice();
677
677
  return h[61] = t[n], h;
678
678
  }
679
- function $e(s, t, n) {
680
- const h = s.slice();
679
+ function $e(r, t, n) {
680
+ const h = r.slice();
681
681
  return h[64] = t[n], h;
682
682
  }
683
- function xt(s) {
684
- let t, n, h, u, l, g, f, T, B, M, U, I, S = (
683
+ function xt(r) {
684
+ let t, n, h, g, l, d, w, p, b, M, U, I, S = (
685
685
  /*showBalance*/
686
- s[5] && et(s)
686
+ r[5] && et(r)
687
687
  );
688
688
  return {
689
689
  c() {
690
690
  t = V("button"), n = V("p"), h = Ae(
691
691
  /*displayBalance*/
692
- s[7]
693
- ), u = fe(), l = V("span"), g = Ye("svg"), f = Ye("path"), B = fe(), S && S.c(), M = bt(), R(f, "id", "arrow"), R(f, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), R(f, "transform", "translate(-274.511 -441.088)"), R(f, "fill", "#d1d1d1"), R(g, "xmlns", "http://www.w3.org/2000/svg"), R(g, "width", "14"), R(g, "height", "6.835"), R(g, "viewBox", "0 0 14 6.835"), R(l, "class", T = /*isModalDisplayed*/
694
- s[4] ? "TriangleActive" : "TriangleInactive"), R(t, "class", "BalanceValue");
692
+ r[7]
693
+ ), g = fe(), l = V("span"), d = Ye("svg"), w = Ye("path"), b = fe(), S && S.c(), M = vt(), L(w, "id", "arrow"), L(w, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), L(w, "transform", "translate(-274.511 -441.088)"), L(w, "fill", "#d1d1d1"), L(d, "xmlns", "http://www.w3.org/2000/svg"), L(d, "width", "14"), L(d, "height", "6.835"), L(d, "viewBox", "0 0 14 6.835"), L(l, "class", p = /*isModalDisplayed*/
694
+ r[4] ? "TriangleActive" : "TriangleInactive"), L(t, "class", "BalanceValue");
695
695
  },
696
- m(v, H) {
697
- he(v, t, H), E(t, n), E(n, h), E(t, u), E(t, l), E(l, g), E(g, f), he(v, B, H), S && S.m(v, H), he(v, M, H), U || (I = Ie(
696
+ m(T, H) {
697
+ he(T, t, H), E(t, n), E(n, h), E(t, g), E(t, l), E(l, d), E(d, w), he(T, b, H), S && S.m(T, H), he(T, M, H), U || (I = Ie(
698
698
  t,
699
699
  "click",
700
700
  /*click_handler*/
701
- s[32]
701
+ r[32]
702
702
  ), U = !0);
703
703
  },
704
- p(v, H) {
704
+ p(T, H) {
705
705
  H[0] & /*displayBalance*/
706
706
  128 && _e(
707
707
  h,
708
708
  /*displayBalance*/
709
- v[7]
709
+ T[7]
710
710
  ), H[0] & /*isModalDisplayed*/
711
- 16 && T !== (T = /*isModalDisplayed*/
712
- v[4] ? "TriangleActive" : "TriangleInactive") && R(l, "class", T), /*showBalance*/
713
- v[5] ? S ? S.p(v, H) : (S = et(v), S.c(), S.m(M.parentNode, M)) : S && (S.d(1), S = null);
711
+ 16 && p !== (p = /*isModalDisplayed*/
712
+ T[4] ? "TriangleActive" : "TriangleInactive") && L(l, "class", p), /*showBalance*/
713
+ T[5] ? S ? S.p(T, H) : (S = et(T), S.c(), S.m(M.parentNode, M)) : S && (S.d(1), S = null);
714
714
  },
715
- d(v) {
716
- v && (pe(t), pe(B), pe(M)), S && S.d(v), U = !1, I();
715
+ d(T) {
716
+ T && (pe(t), pe(b), pe(M)), S && S.d(T), U = !1, I();
717
717
  }
718
718
  };
719
719
  }
720
- function Rt(s) {
720
+ function Rt(r) {
721
721
  let t, n = (
722
722
  /*$_*/
723
- s[8]("Loading") + ""
723
+ r[8]("Loading") + ""
724
724
  ), h;
725
725
  return {
726
726
  c() {
727
- t = V("p"), h = Ae(n), R(t, "class", "Loading");
727
+ t = V("p"), h = Ae(n), L(t, "class", "Loading");
728
728
  },
729
- m(u, l) {
730
- he(u, t, l), E(t, h);
729
+ m(g, l) {
730
+ he(g, t, l), E(t, h);
731
731
  },
732
- p(u, l) {
732
+ p(g, l) {
733
733
  l[0] & /*$_*/
734
734
  256 && n !== (n = /*$_*/
735
- u[8]("Loading") + "") && _e(h, n);
735
+ g[8]("Loading") + "") && _e(h, n);
736
736
  },
737
- d(u) {
738
- u && pe(t);
737
+ d(g) {
738
+ g && pe(t);
739
739
  }
740
740
  };
741
741
  }
742
- function et(s) {
743
- let t, n, h, u, l, g, f, T, B = (
742
+ function et(r) {
743
+ let t, n, h, g, l, d, w, p, b = (
744
744
  /*$_*/
745
- s[8]("Title") + ""
746
- ), M, U, I, S, v, H, me = (
745
+ r[8]("Title") + ""
746
+ ), M, U, I, S, T, H, me = (
747
747
  /*$_*/
748
- s[8]("DepositButton") + ""
748
+ r[8]("DepositButton") + ""
749
749
  ), ce, Be, P, q, ne, le, ge, W = ze(Object.keys(
750
750
  /*balances*/
751
- s[2]
751
+ r[2]
752
752
  )), O = [];
753
- for (let L = 0; L < W.length; L += 1)
754
- O[L] = at(Ze(s, W, L));
753
+ for (let x = 0; x < W.length; x += 1)
754
+ O[x] = at(Ze(r, W, x));
755
755
  let F = (
756
756
  /*balancelimitsbutton*/
757
- s[0] === "true" && nt(s)
757
+ r[0] === "true" && nt(r)
758
758
  );
759
759
  return {
760
760
  c() {
761
- t = V("div"), n = V("button"), u = fe(), l = V("div"), g = V("div"), f = V("div"), T = V("p"), M = Ae(B), U = fe(), I = V("div");
762
- for (let L = 0; L < O.length; L += 1)
763
- O[L].c();
764
- S = fe(), v = V("div"), H = V("button"), ce = Ae(me), Be = fe(), F && F.c(), R(n, "class", h = "BalanceModalClose " + /*isModalDisplayed*/
765
- (s[4] ? "Open" : "")), R(T, "class", "BalanceModalTitle"), R(f, "class", "BalanceModalHeader"), R(I, "class", "BalanceModalBody"), R(H, "class", "BalanceModalAction DepositButton"), R(v, "class", "BalanceModalFooter"), R(g, "class", P = "ModalContent " + /*isModalDisplayed*/
766
- (s[4] ? "Open" : "")), R(l, "class", q = "BalanceModal " + /*isModalDisplayed*/
767
- (s[4] ? "Open" : "")), R(t, "class", ne = "BalanceModalWrapper " + /*isModalDisplayed*/
768
- (s[4] ? "Open" : ""));
761
+ t = V("div"), n = V("button"), g = fe(), l = V("div"), d = V("div"), w = V("div"), p = V("p"), M = Ae(b), U = fe(), I = V("div");
762
+ for (let x = 0; x < O.length; x += 1)
763
+ O[x].c();
764
+ S = fe(), T = V("div"), H = V("button"), ce = Ae(me), Be = fe(), F && F.c(), L(n, "class", h = "BalanceModalClose " + /*isModalDisplayed*/
765
+ (r[4] ? "Open" : "")), L(p, "class", "BalanceModalTitle"), L(w, "class", "BalanceModalHeader"), L(I, "class", "BalanceModalBody"), L(H, "class", "BalanceModalAction DepositButton"), L(T, "class", "BalanceModalFooter"), L(d, "class", P = "ModalContent " + /*isModalDisplayed*/
766
+ (r[4] ? "Open" : "")), L(l, "class", q = "BalanceModal " + /*isModalDisplayed*/
767
+ (r[4] ? "Open" : "")), L(t, "class", ne = "BalanceModalWrapper " + /*isModalDisplayed*/
768
+ (r[4] ? "Open" : ""));
769
769
  },
770
- m(L, z) {
771
- he(L, t, z), E(t, n), E(t, u), E(t, l), E(l, g), E(g, f), E(f, T), E(T, M), E(g, U), E(g, I);
770
+ m(x, z) {
771
+ he(x, t, z), E(t, n), E(t, g), E(t, l), E(l, d), E(d, w), E(w, p), E(p, M), E(d, U), E(d, I);
772
772
  for (let j = 0; j < O.length; j += 1)
773
773
  O[j] && O[j].m(I, null);
774
- E(g, S), E(g, v), E(v, H), E(H, ce), E(v, Be), F && F.m(v, null), le || (ge = [
774
+ E(d, S), E(d, T), E(T, H), E(H, ce), E(T, Be), F && F.m(T, null), le || (ge = [
775
775
  Ie(
776
776
  n,
777
777
  "click",
778
778
  /*click_handler_1*/
779
- s[33]
779
+ r[33]
780
780
  ),
781
781
  Ie(
782
782
  H,
783
783
  "click",
784
784
  /*click_handler_2*/
785
- s[34]
785
+ r[34]
786
786
  )
787
787
  ], le = !0);
788
788
  },
789
- p(L, z) {
789
+ p(x, z) {
790
790
  if (z[0] & /*isModalDisplayed*/
791
791
  16 && h !== (h = "BalanceModalClose " + /*isModalDisplayed*/
792
- (L[4] ? "Open" : "")) && R(n, "class", h), z[0] & /*$_*/
793
- 256 && B !== (B = /*$_*/
794
- L[8]("Title") + "") && _e(M, B), z[0] & /*balances, formatBalance, getProductType, $_*/
792
+ (x[4] ? "Open" : "")) && L(n, "class", h), z[0] & /*$_*/
793
+ 256 && b !== (b = /*$_*/
794
+ x[8]("Title") + "") && _e(M, b), z[0] & /*balances, formatBalance, getProductType, $_*/
795
795
  5380) {
796
796
  W = ze(Object.keys(
797
797
  /*balances*/
798
- L[2]
798
+ x[2]
799
799
  ));
800
800
  let j;
801
801
  for (j = 0; j < W.length; j += 1) {
802
- const Te = Ze(L, W, j);
802
+ const Te = Ze(x, W, j);
803
803
  O[j] ? O[j].p(Te, z) : (O[j] = at(Te), O[j].c(), O[j].m(I, null));
804
804
  }
805
805
  for (; j < O.length; j += 1)
@@ -808,59 +808,59 @@ function et(s) {
808
808
  }
809
809
  z[0] & /*$_*/
810
810
  256 && me !== (me = /*$_*/
811
- L[8]("DepositButton") + "") && _e(ce, me), /*balancelimitsbutton*/
812
- L[0] === "true" ? F ? F.p(L, z) : (F = nt(L), F.c(), F.m(v, null)) : F && (F.d(1), F = null), z[0] & /*isModalDisplayed*/
811
+ x[8]("DepositButton") + "") && _e(ce, me), /*balancelimitsbutton*/
812
+ x[0] === "true" ? F ? F.p(x, z) : (F = nt(x), F.c(), F.m(T, null)) : F && (F.d(1), F = null), z[0] & /*isModalDisplayed*/
813
813
  16 && P !== (P = "ModalContent " + /*isModalDisplayed*/
814
- (L[4] ? "Open" : "")) && R(g, "class", P), z[0] & /*isModalDisplayed*/
814
+ (x[4] ? "Open" : "")) && L(d, "class", P), z[0] & /*isModalDisplayed*/
815
815
  16 && q !== (q = "BalanceModal " + /*isModalDisplayed*/
816
- (L[4] ? "Open" : "")) && R(l, "class", q), z[0] & /*isModalDisplayed*/
816
+ (x[4] ? "Open" : "")) && L(l, "class", q), z[0] & /*isModalDisplayed*/
817
817
  16 && ne !== (ne = "BalanceModalWrapper " + /*isModalDisplayed*/
818
- (L[4] ? "Open" : "")) && R(t, "class", ne);
818
+ (x[4] ? "Open" : "")) && L(t, "class", ne);
819
819
  },
820
- d(L) {
821
- L && pe(t), it(O, L), F && F.d(), le = !1, vt(ge);
820
+ d(x) {
821
+ x && pe(t), it(O, x), F && F.d(), le = !1, bt(ge);
822
822
  }
823
823
  };
824
824
  }
825
- function tt(s) {
825
+ function tt(r) {
826
826
  let t, n, h = (
827
827
  /*$_*/
828
- s[8](
828
+ r[8](
829
829
  /*k*/
830
- s[61]
830
+ r[61]
831
831
  ) + ""
832
- ), u, l, g = (
832
+ ), g, l, d = (
833
833
  /*getProductType*/
834
- s[12](
834
+ r[12](
835
835
  /*balance*/
836
- s[64]
836
+ r[64]
837
837
  ) + ""
838
- ), f, T, B, M, U = (
838
+ ), w, p, b, M, U = (
839
839
  /*formatBalance*/
840
- s[10](
840
+ r[10](
841
841
  /*balance*/
842
- s[64].amount
842
+ r[64].amount
843
843
  ) + ""
844
844
  ), I;
845
845
  return {
846
846
  c() {
847
- t = V("div"), n = V("p"), u = Ae(h), l = fe(), f = Ae(g), T = fe(), B = V("p"), M = V("span"), I = Ae(U), R(n, "class", "BalanceModalText"), R(M, "class", "BalanceModalAmount"), R(B, "class", "BalanceModalValue"), R(t, "class", "BalanceModalRowLine");
847
+ t = V("div"), n = V("p"), g = Ae(h), l = fe(), w = Ae(d), p = fe(), b = V("p"), M = V("span"), I = Ae(U), L(n, "class", "BalanceModalText"), L(M, "class", "BalanceModalAmount"), L(b, "class", "BalanceModalValue"), L(t, "class", "BalanceModalRowLine");
848
848
  },
849
- m(S, v) {
850
- he(S, t, v), E(t, n), E(n, u), E(n, l), E(n, f), E(t, T), E(t, B), E(B, M), E(M, I);
849
+ m(S, T) {
850
+ he(S, t, T), E(t, n), E(n, g), E(n, l), E(n, w), E(t, p), E(t, b), E(b, M), E(M, I);
851
851
  },
852
- p(S, v) {
853
- v[0] & /*$_, balances*/
852
+ p(S, T) {
853
+ T[0] & /*$_, balances*/
854
854
  260 && h !== (h = /*$_*/
855
855
  S[8](
856
856
  /*k*/
857
857
  S[61]
858
- ) + "") && _e(u, h), v[0] & /*balances*/
859
- 4 && g !== (g = /*getProductType*/
858
+ ) + "") && _e(g, h), T[0] & /*balances*/
859
+ 4 && d !== (d = /*getProductType*/
860
860
  S[12](
861
861
  /*balance*/
862
862
  S[64]
863
- ) + "") && _e(f, g), v[0] & /*balances*/
863
+ ) + "") && _e(w, d), T[0] & /*balances*/
864
864
  4 && U !== (U = /*formatBalance*/
865
865
  S[10](
866
866
  /*balance*/
@@ -872,140 +872,144 @@ function tt(s) {
872
872
  }
873
873
  };
874
874
  }
875
- function at(s) {
876
- let t, n, h = ze(
875
+ function at(r) {
876
+ let t, n, h, g = ze(
877
877
  /*balances*/
878
- s[2][
878
+ r[2][
879
879
  /*k*/
880
- s[61]
880
+ r[61]
881
881
  ]
882
- ), u = [];
883
- for (let l = 0; l < h.length; l += 1)
884
- u[l] = tt($e(s, h, l));
882
+ ), l = [];
883
+ for (let d = 0; d < g.length; d += 1)
884
+ l[d] = tt($e(r, g, d));
885
885
  return {
886
886
  c() {
887
887
  t = V("div");
888
- for (let l = 0; l < u.length; l += 1)
889
- u[l].c();
890
- n = fe(), R(t, "class", "BalanceModalRowBoth");
888
+ for (let d = 0; d < l.length; d += 1)
889
+ l[d].c();
890
+ n = fe(), L(t, "class", h = "BalanceModalRowBoth " + /*k*/
891
+ r[61]);
891
892
  },
892
- m(l, g) {
893
- he(l, t, g);
894
- for (let f = 0; f < u.length; f += 1)
895
- u[f] && u[f].m(t, null);
893
+ m(d, w) {
894
+ he(d, t, w);
895
+ for (let p = 0; p < l.length; p += 1)
896
+ l[p] && l[p].m(t, null);
896
897
  E(t, n);
897
898
  },
898
- p(l, g) {
899
- if (g[0] & /*formatBalance, balances, getProductType, $_*/
899
+ p(d, w) {
900
+ if (w[0] & /*formatBalance, balances, getProductType, $_*/
900
901
  5380) {
901
- h = ze(
902
+ g = ze(
902
903
  /*balances*/
903
- l[2][
904
+ d[2][
904
905
  /*k*/
905
- l[61]
906
+ d[61]
906
907
  ]
907
908
  );
908
- let f;
909
- for (f = 0; f < h.length; f += 1) {
910
- const T = $e(l, h, f);
911
- u[f] ? u[f].p(T, g) : (u[f] = tt(T), u[f].c(), u[f].m(t, n));
909
+ let p;
910
+ for (p = 0; p < g.length; p += 1) {
911
+ const b = $e(d, g, p);
912
+ l[p] ? l[p].p(b, w) : (l[p] = tt(b), l[p].c(), l[p].m(t, n));
912
913
  }
913
- for (; f < u.length; f += 1)
914
- u[f].d(1);
915
- u.length = h.length;
914
+ for (; p < l.length; p += 1)
915
+ l[p].d(1);
916
+ l.length = g.length;
916
917
  }
918
+ w[0] & /*balances*/
919
+ 4 && h !== (h = "BalanceModalRowBoth " + /*k*/
920
+ d[61]) && L(t, "class", h);
917
921
  },
918
- d(l) {
919
- l && pe(t), it(u, l);
922
+ d(d) {
923
+ d && pe(t), it(l, d);
920
924
  }
921
925
  };
922
926
  }
923
- function nt(s) {
927
+ function nt(r) {
924
928
  let t, n = (
925
929
  /*$_*/
926
- s[8]("LimitsButton") + ""
927
- ), h, u, l;
930
+ r[8]("LimitsButton") + ""
931
+ ), h, g, l;
928
932
  return {
929
933
  c() {
930
- t = V("button"), h = Ae(n), R(t, "class", "BalanceModalAction LimitsButton");
934
+ t = V("button"), h = Ae(n), L(t, "class", "BalanceModalAction LimitsButton");
931
935
  },
932
- m(g, f) {
933
- he(g, t, f), E(t, h), u || (l = Ie(
936
+ m(d, w) {
937
+ he(d, t, w), E(t, h), g || (l = Ie(
934
938
  t,
935
939
  "click",
936
940
  /*click_handler_3*/
937
- s[35]
938
- ), u = !0);
941
+ r[35]
942
+ ), g = !0);
939
943
  },
940
- p(g, f) {
941
- f[0] & /*$_*/
944
+ p(d, w) {
945
+ w[0] & /*$_*/
942
946
  256 && n !== (n = /*$_*/
943
- g[8]("LimitsButton") + "") && _e(h, n);
947
+ d[8]("LimitsButton") + "") && _e(h, n);
944
948
  },
945
- d(g) {
946
- g && pe(t), u = !1, l();
949
+ d(d) {
950
+ d && pe(t), g = !1, l();
947
951
  }
948
952
  };
949
953
  }
950
- function ot(s) {
954
+ function ot(r) {
951
955
  let t, n, h;
952
956
  return {
953
957
  c() {
954
- t = V("button"), R(t, "class", "ShowBalanceModalOverlay");
958
+ t = V("button"), L(t, "class", "ShowBalanceModalOverlay");
955
959
  },
956
- m(u, l) {
957
- he(u, t, l), n || (h = Ie(
960
+ m(g, l) {
961
+ he(g, t, l), n || (h = Ie(
958
962
  t,
959
963
  "click",
960
964
  /*click_handler_4*/
961
- s[36]
965
+ r[36]
962
966
  ), n = !0);
963
967
  },
964
968
  p: Ke,
965
- d(u) {
966
- u && pe(t), n = !1, h();
969
+ d(g) {
970
+ g && pe(t), n = !1, h();
967
971
  }
968
972
  };
969
973
  }
970
- function Et(s) {
971
- let t, n, h, u;
972
- function l(B, M) {
974
+ function Et(r) {
975
+ let t, n, h, g;
976
+ function l(b, M) {
973
977
  return (
974
978
  /*isLoading*/
975
- B[3] ? Rt : xt
979
+ b[3] ? Rt : xt
976
980
  );
977
981
  }
978
- let g = l(s), f = g(s), T = (
982
+ let d = l(r), w = d(r), p = (
979
983
  /*showBalance*/
980
- s[5] && ot(s)
984
+ r[5] && ot(r)
981
985
  );
982
986
  return {
983
987
  c() {
984
- t = V("div"), n = V("div"), f.c(), u = fe(), T && T.c(), R(n, "class", h = "ShowBalance " + /*mobileView*/
985
- (s[6] ? "Mobile" : ""));
988
+ t = V("div"), n = V("div"), w.c(), g = fe(), p && p.c(), L(n, "class", h = "ShowBalance " + /*mobileView*/
989
+ (r[6] ? "Mobile" : ""));
986
990
  },
987
- m(B, M) {
988
- he(B, t, M), E(t, n), f.m(n, null), E(t, u), T && T.m(t, null), s[37](t);
991
+ m(b, M) {
992
+ he(b, t, M), E(t, n), w.m(n, null), E(t, g), p && p.m(t, null), r[37](t);
989
993
  },
990
- p(B, M) {
991
- g === (g = l(B)) && f ? f.p(B, M) : (f.d(1), f = g(B), f && (f.c(), f.m(n, null))), M[0] & /*mobileView*/
994
+ p(b, M) {
995
+ d === (d = l(b)) && w ? w.p(b, M) : (w.d(1), w = d(b), w && (w.c(), w.m(n, null))), M[0] & /*mobileView*/
992
996
  64 && h !== (h = "ShowBalance " + /*mobileView*/
993
- (B[6] ? "Mobile" : "")) && R(n, "class", h), /*showBalance*/
994
- B[5] ? T ? T.p(B, M) : (T = ot(B), T.c(), T.m(t, null)) : T && (T.d(1), T = null);
997
+ (b[6] ? "Mobile" : "")) && L(n, "class", h), /*showBalance*/
998
+ b[5] ? p ? p.p(b, M) : (p = ot(b), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
995
999
  },
996
1000
  i: Ke,
997
1001
  o: Ke,
998
- d(B) {
999
- B && pe(t), f.d(), T && T.d(), s[37](null);
1002
+ d(b) {
1003
+ b && pe(t), w.d(), p && p.d(), r[37](null);
1000
1004
  }
1001
1005
  };
1002
1006
  }
1003
- function Dt(s, t, n) {
1007
+ function Dt(r, t, n) {
1004
1008
  let h;
1005
- ht(s, mt, (e) => n(8, h = e));
1006
- let { userid: u = "" } = t, { session: l = "" } = t, { endpoint: g = "" } = t, { lang: f = "en" } = t, { mbsource: T = "" } = t, { clientstyling: B = "" } = t, { clientstylingurl: M = "" } = t, { translationurl: U = "" } = t, { gmversion: I = "gm16" } = t, { displaybalanceoption: S = "All" } = t, { totalcalculationmode: v = "totalCashAmount" } = t, { primarybalancemode: H } = t, { balancelimitsbutton: me = "false" } = t, { hideproducttype: ce = "" } = t, { currencylocale: Be = "en" } = t, { currencydisplay: P = "symbol" } = t, { maximumfractiondigits: q = "2" } = t, { minimumfractiondigits: ne = "0" } = t, { customdisplayformat: le = "" } = t, { alwaysshowdecimals: ge = "true" } = t, W, O = !0, F = !1, L = !1, z = !1, j = !1, Te = window.navigator.userAgent, ye, de = "", J = [], re, Se = "0";
1009
+ ht(r, mt, (e) => n(8, h = e));
1010
+ let { userid: g = "" } = t, { session: l = "" } = t, { endpoint: d = "" } = t, { lang: w = "en" } = t, { mbsource: p = "" } = t, { clientstyling: b = "" } = t, { clientstylingurl: M = "" } = t, { translationurl: U = "" } = t, { gmversion: I = "gm16" } = t, { displaybalanceoption: S = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { primarybalancemode: H } = t, { balancelimitsbutton: me = "false" } = t, { hideproducttype: ce = "" } = t, { currencylocale: Be = "en" } = t, { currencydisplay: P = "symbol" } = t, { maximumfractiondigits: q = "2" } = t, { minimumfractiondigits: ne = "0" } = t, { customdisplayformat: le = "" } = t, { alwaysshowdecimals: ge = "true" } = t, W, O = !0, F = !1, x = !1, z = !1, j = !1, Te = window.navigator.userAgent, ye, de = "", J = [], re, Se = "0";
1007
1011
  const c = {}, ae = ["totalCashAmount", "totalRealAmount"], Me = () => {
1008
- fetch(U).then((e) => e.json()).then((e) => Object.keys(e).forEach((r) => Qe(r, e[r]))).catch((e) => console.log(e));
1012
+ fetch(U).then((e) => e.json()).then((e) => Object.keys(e).forEach((s) => Qe(s, e[s]))).catch((e) => console.log(e));
1009
1013
  };
1010
1014
  Object.keys(Je).forEach((e) => Qe(e, Je[e]));
1011
1015
  const we = (e) => {
@@ -1037,7 +1041,7 @@ function Dt(s, t, n) {
1037
1041
  }, ke = (e) => {
1038
1042
  if (le)
1039
1043
  return Ve(e);
1040
- const r = Be || f, p = {
1044
+ const s = Be || w, f = {
1041
1045
  style: "currency",
1042
1046
  currency: de,
1043
1047
  useGrouping: !0,
@@ -1045,51 +1049,51 @@ function Dt(s, t, n) {
1045
1049
  maximumFractionDigits: q === "" || isNaN(Number(q)) ? 2 : Number(q),
1046
1050
  minimumFractionDigits: ne === "" || isNaN(Number(ne)) ? 0 : Number(ne)
1047
1051
  };
1048
- return new Intl.NumberFormat(r, p).format(e);
1052
+ return new Intl.NumberFormat(s, f).format(e);
1049
1053
  }, Ve = (e) => {
1050
- const r = [];
1051
- let p = "";
1054
+ const s = [];
1055
+ let f = "";
1052
1056
  for (const y of le)
1053
1057
  switch (y) {
1054
1058
  default:
1055
- p += y;
1059
+ f += y;
1056
1060
  break;
1057
1061
  case "{":
1058
- p && r.push(p), p = "";
1062
+ f && s.push(f), f = "";
1059
1063
  break;
1060
1064
  case "}":
1061
- const [_, x] = p.split("|");
1062
- if (p = "", _.toLowerCase() === "currency")
1063
- p = de;
1065
+ const [_, R] = f.split("|");
1066
+ if (f = "", _.toLowerCase() === "currency")
1067
+ f = de;
1064
1068
  else if (_.toLowerCase() === "amount") {
1065
- let b = ",", G = ".", se = 2;
1066
- x && (x[0] !== " " && (b = x[0]), x[1] !== " " && (G = x[1]), x[2] !== " " && !isNaN(Number(x[2])) && (se = Number(x[2])));
1069
+ let B = ",", G = ".", se = 2;
1070
+ R && (R[0] !== " " && (B = R[0]), R[1] !== " " && (G = R[1]), R[2] !== " " && !isNaN(Number(R[2])) && (se = Number(R[2])));
1067
1071
  let [ee, Ee] = String(Math.floor(e * 10 ** se) / 10 ** se).split(".");
1068
- p += ee[0];
1072
+ f += ee[0];
1069
1073
  for (let xe = 1; xe < ee.length; ++xe)
1070
- (ee.length - xe) % 3 === 0 ? p += b + ee[xe] : p += ee[xe];
1074
+ (ee.length - xe) % 3 === 0 ? f += B + ee[xe] : f += ee[xe];
1071
1075
  let X = Ee || "";
1072
1076
  const Ne = ge === "true", ue = Number(q);
1073
1077
  if (Ne)
1074
1078
  X = X.padEnd(ue || 2, "0").substring(0, ue);
1075
1079
  else if (!X)
1076
1080
  break;
1077
- p += G + X;
1081
+ f += G + X;
1078
1082
  }
1079
- p && r.push(p), p = "";
1083
+ f && s.push(f), f = "";
1080
1084
  break;
1081
1085
  }
1082
- return r.push(p), r.join("");
1086
+ return s.push(f), s.join("");
1083
1087
  }, Ue = async () => {
1084
1088
  n(3, O = !0);
1085
- const e = new URL(`${g}/v1/player/${u}/account`);
1089
+ const e = new URL(`${d}/v1/player/${g}/account`);
1086
1090
  try {
1087
- const r = await fetch(e, {
1091
+ const s = await fetch(e, {
1088
1092
  method: "GET",
1089
1093
  headers: { "X-SessionID": l }
1090
- }), p = await r.json();
1091
- if (r.ok)
1092
- window.postMessage({ type: "BalancedFetched" }, window.location.href), J = p.items, de = J.find((y) => y.displayName === "Casino")?.currency, n(2, c.Total = [{ amount: p.totalAmount[de] }], c), n(
1094
+ }), f = await s.json();
1095
+ if (s.ok)
1096
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), J = f.items, de = J.find((y) => y.displayName === "Casino")?.currency, n(2, c.Total = [{ amount: f.totalAmount[de] }], c), n(
1093
1097
  2,
1094
1098
  c.Real = [
1095
1099
  {
@@ -1108,35 +1112,35 @@ function Dt(s, t, n) {
1108
1112
  );
1109
1113
  else
1110
1114
  throw new Error("Failed to fetch balance data !");
1111
- } catch (r) {
1112
- console.log("Balance error: ", r);
1115
+ } catch (s) {
1116
+ console.log("Balance error: ", s);
1113
1117
  } finally {
1114
1118
  n(3, O = !1);
1115
1119
  }
1116
1120
  }, Pe = () => {
1117
1121
  n(3, O = !0);
1118
- const e = new URL(`${g}/v2/player/${u}/balance`), r = new Headers();
1119
- r.append("X-SessionID", l), fetch(e, { method: "GET", headers: r }).then((y) => y.json()).then((y) => {
1120
- y[v] || n(13, v = ae[0]);
1121
- const _ = y.items.find((b) => b.type === "Real" && b.walletAccountType === "Ordinary");
1122
- if (de = _.currency, L = !!_.productType, n(2, c.Total = [{ amount: 0 }], c), n(2, c.Real = [], c), n(2, c.Bonus = [], c), n(2, c.Credit = [], c), !L) {
1122
+ const e = new URL(`${d}/v2/player/${g}/balance`), s = new Headers();
1123
+ s.append("X-SessionID", l), fetch(e, { method: "GET", headers: s }).then((y) => y.json()).then((y) => {
1124
+ y[T] || n(13, T = ae[0]);
1125
+ const _ = y.items.find((B) => B.type === "Real" && B.walletAccountType === "Ordinary");
1126
+ if (de = _.currency, x = !!_.productType, n(2, c.Total = [{ amount: 0 }], c), n(2, c.Real = [], c), n(2, c.Bonus = [], c), n(2, c.Credit = [], c), !x) {
1123
1127
  re = {
1124
1128
  lastOrdinaryAfterAmount: 0,
1125
1129
  showCreditLineAfterAmount: !1
1126
- }, n(2, c.Total[0].amount = y[v][de], c);
1127
- for (const b of y.items)
1128
- switch (b.type) {
1130
+ }, n(2, c.Total[0].amount = y[T][de], c);
1131
+ for (const B of y.items)
1132
+ switch (B.type) {
1129
1133
  case "Bonus":
1130
- c.Bonus.length === 0 ? c.Bonus.push({ amount: b.amount }) : n(2, c.Bonus[0].amount += b.amount, c);
1134
+ c.Bonus.length === 0 ? c.Bonus.push({ amount: B.amount }) : n(2, c.Bonus[0].amount += B.amount, c);
1131
1135
  break;
1132
1136
  case "Real":
1133
- if (b.creditLine && c.Credit.length === 0 && c.Credit.push({ amount: b.creditLine }), v === "totalRealAmount")
1137
+ if (B.creditLine && c.Credit.length === 0 && c.Credit.push({ amount: B.creditLine }), T === "totalRealAmount")
1134
1138
  continue;
1135
- c.Real.length === 0 ? c.Real.push({ amount: b.amount }) : n(2, c.Real[0].amount += b.amount, c);
1139
+ c.Real.length === 0 ? c.Real.push({ amount: B.amount }) : n(2, c.Real[0].amount += B.amount, c);
1136
1140
  break;
1137
1141
  }
1138
- for (const [b, G] of Object.entries(c))
1139
- G.length < 1 && delete c[b];
1142
+ for (const [B, G] of Object.entries(c))
1143
+ G.length < 1 && delete c[B];
1140
1144
  n(3, O = !1);
1141
1145
  return;
1142
1146
  }
@@ -1150,31 +1154,31 @@ function Dt(s, t, n) {
1150
1154
  showCreditLineAfterAmount: !1
1151
1155
  }
1152
1156
  };
1153
- let x = y.items;
1154
- S && S !== "All" && (x = y.items.filter((b) => b.productType === S));
1155
- for (const b of x) {
1157
+ let R = y.items;
1158
+ S && S !== "All" && (R = y.items.filter((B) => B.productType === S));
1159
+ for (const B of R) {
1156
1160
  let G;
1157
- switch (b.type) {
1161
+ switch (B.type) {
1158
1162
  case "Bonus":
1159
- G = c.Bonus.findIndex((se) => se.productType === b.productType), G > 0 ? n(2, c.Bonus[G].amount += b.amount, c) : c.Bonus.push({
1160
- amount: b.amount,
1161
- productType: b.productType
1163
+ G = c.Bonus.findIndex((se) => se.productType === B.productType), G > 0 ? n(2, c.Bonus[G].amount += B.amount, c) : c.Bonus.push({
1164
+ amount: B.amount,
1165
+ productType: B.productType
1162
1166
  });
1163
1167
  break;
1164
1168
  case "Real":
1165
- b.creditLine && c.Credit.push({
1166
- amount: b.creditLine,
1167
- productType: b.productType
1168
- }), G = c.Real.findIndex((se) => se.productType === b.productType), G > 0 ? n(2, c.Real[G].amount += b.amount, c) : c.Real.push({
1169
- amount: b.amount,
1170
- productType: b.productType
1169
+ B.creditLine && c.Credit.push({
1170
+ amount: B.creditLine,
1171
+ productType: B.productType
1172
+ }), G = c.Real.findIndex((se) => se.productType === B.productType), G > 0 ? n(2, c.Real[G].amount += B.amount, c) : c.Real.push({
1173
+ amount: B.amount,
1174
+ productType: B.productType
1171
1175
  });
1172
1176
  break;
1173
1177
  }
1174
1178
  }
1175
1179
  je();
1176
- for (const [b, G] of Object.entries(c))
1177
- G.length < 1 && delete c[b];
1180
+ for (const [B, G] of Object.entries(c))
1181
+ G.length < 1 && delete c[B];
1178
1182
  window.postMessage({ type: "playerBalanceInfo", balance: y }, window.location.href), n(3, O = !1);
1179
1183
  }).catch((y) => {
1180
1184
  throw n(3, O = !1), console.log("Balance fetch error", y), new Error("Failed to fetch balance data!");
@@ -1182,88 +1186,88 @@ function Dt(s, t, n) {
1182
1186
  }, Le = () => {
1183
1187
  if (ye && ye.close(), l.length < 1)
1184
1188
  return;
1185
- let e, r;
1189
+ let e, s;
1186
1190
  switch (I) {
1187
1191
  case "gm16":
1188
- e = new URL(`${g}/v2/player/${u}/information/updates`), r = (_) => Ge(_);
1192
+ e = new URL(`${d}/v2/player/${g}/information/updates`), s = (_) => Ge(_);
1189
1193
  break;
1190
1194
  case "gmcore":
1191
- e = new URL(`${g}/v1/player/${u}/balance/updates`), r = (_) => Ce(_);
1195
+ e = new URL(`${d}/v1/player/${g}/balance/updates`), s = (_) => Ce(_);
1192
1196
  break;
1193
1197
  }
1194
- const p = {
1198
+ const f = {
1195
1199
  accept: "text/event-stream",
1196
1200
  "X-SessionId": l
1197
- }, y = new At.EventSourcePolyfill(e, { headers: p });
1198
- ye = y, y.addEventListener("message", r);
1201
+ }, y = new At.EventSourcePolyfill(e, { headers: f });
1202
+ ye = y, y.addEventListener("message", s);
1199
1203
  }, Re = (e) => {
1200
- let r;
1204
+ let s;
1201
1205
  try {
1202
- r = JSON.parse(e);
1203
- } catch (p) {
1204
- console.log("Balance stream failed: ", p);
1206
+ s = JSON.parse(e);
1207
+ } catch (f) {
1208
+ console.log("Balance stream failed: ", f);
1205
1209
  return;
1206
1210
  }
1207
- return r;
1211
+ return s;
1208
1212
  }, Ce = (e) => {
1209
- const r = Re(e.data);
1210
- if (!r) {
1213
+ const s = Re(e.data);
1214
+ if (!s) {
1211
1215
  Le();
1212
1216
  return;
1213
1217
  }
1214
- let p = "0";
1215
- const y = r.balanceChange;
1218
+ let f = "0";
1219
+ const y = s.balanceChange;
1216
1220
  J = J.map((_) => (y && y[_.id] && (_ = {
1217
1221
  ..._,
1218
1222
  balanceAmount: y[_.id].afterAmount
1219
- }), p = (parseFloat(_?.balanceAmount) + parseFloat(p)).toString(), _)), n(2, c.Real = [{ amount: J[0]?.balanceAmount }], c), n(2, c.Bonus = [{ amount: J[1]?.balanceAmount }], c), n(2, c.Total = [{ amount: Number(p) }], c);
1220
- }, $ = (e, r, p) => {
1223
+ }), f = (parseFloat(_?.balanceAmount) + parseFloat(f)).toString(), _)), n(2, c.Real = [{ amount: J[0]?.balanceAmount }], c), n(2, c.Bonus = [{ amount: J[1]?.balanceAmount }], c), n(2, c.Total = [{ amount: Number(f) }], c);
1224
+ }, $ = (e, s, f) => {
1221
1225
  let y = null;
1222
- switch (p.walletAccountType) {
1226
+ switch (f.walletAccountType) {
1223
1227
  case "Ordinary":
1224
- (p.afterAmount !== p.affectedAmount || r.lastOrdinaryAfterAmount === 0) && (r.lastOrdinaryAfterAmount = p.afterAmount, r.showCreditLineAfterAmount || (y = p.afterAmount));
1228
+ (f.afterAmount !== f.affectedAmount || s.lastOrdinaryAfterAmount === 0) && (s.lastOrdinaryAfterAmount = f.afterAmount, s.showCreditLineAfterAmount || (y = f.afterAmount));
1225
1229
  break;
1226
1230
  case "CreditLine":
1227
- p.afterAmount !== 0 ? (y = p.afterAmount, r.showCreditLineAfterAmount = !0) : (y = r.lastOrdinaryAfterAmount, r.showCreditLineAfterAmount = !1);
1231
+ f.afterAmount !== 0 ? (y = f.afterAmount, s.showCreditLineAfterAmount = !0) : (y = s.lastOrdinaryAfterAmount, s.showCreditLineAfterAmount = !1);
1228
1232
  break;
1229
1233
  default:
1230
- y = p.afterAmount;
1234
+ y = f.afterAmount;
1231
1235
  }
1232
1236
  return y === null ? e : y;
1233
1237
  }, je = () => {
1234
- switch (v) {
1238
+ switch (T) {
1235
1239
  case "totalCashAmount":
1236
1240
  let e = 0;
1237
- for (const p of ["Real", "Bonus"])
1238
- for (const y of c[p])
1241
+ for (const f of ["Real", "Bonus"])
1242
+ for (const y of c[f])
1239
1243
  e += Math.max(y.amount, 0);
1240
1244
  n(2, c.Total[0].amount = e, c);
1241
1245
  break;
1242
1246
  case "totalRealAmount":
1243
- if (!L)
1247
+ if (!x)
1244
1248
  return;
1245
- let r = 0;
1246
- for (const p of c.Real)
1247
- r += p.amount;
1248
- n(2, c.Total[0].amount = r, c);
1249
+ let s = 0;
1250
+ for (const f of c.Real)
1251
+ s += f.amount;
1252
+ n(2, c.Total[0].amount = s, c);
1249
1253
  }
1250
1254
  }, Ge = (e) => {
1251
- const r = Re(e.data);
1252
- if (!r) {
1255
+ const s = Re(e.data);
1256
+ if (!s) {
1253
1257
  Le();
1254
1258
  return;
1255
1259
  }
1256
- if (He(r?.type) || r.type !== "BALANCE_UPDATE_V2")
1260
+ if (He(s?.type) || s.type !== "BALANCE_UPDATE_V2")
1257
1261
  return;
1258
- const p = r.body.balanceChange;
1259
- for (const [y, _] of Object.entries(p))
1260
- if (v === "totalRealAmount" && y === "Real" && !L && n(2, c.Total[0].amount = $(c.Total[0].amount, re, _), c), !!c[y])
1261
- for (const x of c[y]) {
1262
- if (!L) {
1263
- x.amount = y === "Real" ? $(x.amount, re, _) : _.afterAmount;
1262
+ const f = s.body.balanceChange;
1263
+ for (const [y, _] of Object.entries(f))
1264
+ if (T === "totalRealAmount" && y === "Real" && !x && n(2, c.Total[0].amount = $(c.Total[0].amount, re, _), c), !!c[y])
1265
+ for (const R of c[y]) {
1266
+ if (!x) {
1267
+ R.amount = y === "Real" ? $(R.amount, re, _) : _.afterAmount;
1264
1268
  continue;
1265
1269
  }
1266
- _.productType === x.productType && (x.amount = y === "Real" ? $(x.amount, re[x.productType], _) : _.afterAmount);
1270
+ _.productType === R.productType && (R.amount = y === "Real" ? $(R.amount, re[R.productType], _) : _.afterAmount);
1267
1271
  }
1268
1272
  je();
1269
1273
  }, Oe = (e) => {
@@ -1277,9 +1281,9 @@ function Dt(s, t, n) {
1277
1281
  }
1278
1282
  typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1279
1283
  }, He = (e) => e === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, a = () => {
1280
- ae.includes(v) || (console.error(`Unsupported value ('${v}') for totalcalculationmode parameter. Only the following values are supported ${ae}. Using default value ('${ae[0]}').`), n(13, v = ae[0]));
1284
+ ae.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${ae}. Using default value ('${ae[0]}').`), n(13, T = ae[0]));
1281
1285
  }, i = () => {
1282
- switch (_t(f), a(), I) {
1286
+ switch (_t(w), a(), I) {
1283
1287
  case "gmcore":
1284
1288
  Ue();
1285
1289
  break;
@@ -1289,9 +1293,9 @@ function Dt(s, t, n) {
1289
1293
  default:
1290
1294
  throw Error(`Invalid apiversion attribute: ${I}`);
1291
1295
  }
1292
- }, d = (e) => {
1293
- const { data: { type: r } = {} } = e || {};
1294
- switch (r) {
1296
+ }, u = (e) => {
1297
+ const { data: { type: s } = {} } = e || {};
1298
+ switch (s) {
1295
1299
  case "LogoutSuccessfull":
1296
1300
  ye.close();
1297
1301
  break;
@@ -1301,12 +1305,12 @@ function Dt(s, t, n) {
1301
1305
  }
1302
1306
  }, o = () => {
1303
1307
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
1304
- }, w = (e) => {
1305
- const r = ce.split(",").map((p) => p.trim());
1306
- return !e.productType || r.includes(e.productType) ? "" : h(e.productType);
1308
+ }, v = (e) => {
1309
+ const s = ce.split(",").map((f) => f.trim());
1310
+ return !e.productType || s.includes(e.productType) ? "" : h(e.productType);
1307
1311
  };
1308
- gt(() => (window.addEventListener("message", d, !1), n(6, j = yt(Te)), () => {
1309
- window.removeEventListener("message", d), ye && ye.close();
1312
+ gt(() => (window.addEventListener("message", u, !1), n(6, j = yt(Te)), () => {
1313
+ window.removeEventListener("message", u), ye && ye.close();
1310
1314
  }));
1311
1315
  const m = () => we("balance"), C = () => we("closebalance"), N = () => Oe("deposit"), A = () => Oe("limits"), D = () => we("closebalance");
1312
1316
  function k(e) {
@@ -1314,17 +1318,17 @@ function Dt(s, t, n) {
1314
1318
  W = e, n(1, W);
1315
1319
  });
1316
1320
  }
1317
- return s.$$set = (e) => {
1318
- "userid" in e && n(14, u = e.userid), "session" in e && n(15, l = e.session), "endpoint" in e && n(16, g = e.endpoint), "lang" in e && n(17, f = e.lang), "mbsource" in e && n(18, T = e.mbsource), "clientstyling" in e && n(19, B = e.clientstyling), "clientstylingurl" in e && n(20, M = e.clientstylingurl), "translationurl" in e && n(21, U = e.translationurl), "gmversion" in e && n(22, I = e.gmversion), "displaybalanceoption" in e && n(23, S = e.displaybalanceoption), "totalcalculationmode" in e && n(13, v = e.totalcalculationmode), "primarybalancemode" in e && n(24, H = e.primarybalancemode), "balancelimitsbutton" in e && n(0, me = e.balancelimitsbutton), "hideproducttype" in e && n(25, ce = e.hideproducttype), "currencylocale" in e && n(26, Be = e.currencylocale), "currencydisplay" in e && n(27, P = e.currencydisplay), "maximumfractiondigits" in e && n(28, q = e.maximumfractiondigits), "minimumfractiondigits" in e && n(29, ne = e.minimumfractiondigits), "customdisplayformat" in e && n(30, le = e.customdisplayformat), "alwaysshowdecimals" in e && n(31, ge = e.alwaysshowdecimals);
1319
- }, s.$$.update = () => {
1320
- s.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1321
- 12828672 && g && u && l && f && I && S && i(), s.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1322
- 4308992 && g && u && l && I && Le(), s.$$.dirty[0] & /*translationurl*/
1323
- 2097152 && U && Me(), s.$$.dirty[0] & /*balances*/
1324
- 4 && c.Total && o(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1325
- 524290 && B && W && Bt(W, B), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1326
- 1048578 && M && W && Tt(W, M), s.$$.dirty[0] & /*mbsource, customStylingContainer*/
1327
- 262146 && T && W && St(W, `${T}.Style`), s.$$.dirty[0] & /*primarybalancemode, balances*/
1321
+ return r.$$set = (e) => {
1322
+ "userid" in e && n(14, g = e.userid), "session" in e && n(15, l = e.session), "endpoint" in e && n(16, d = e.endpoint), "lang" in e && n(17, w = e.lang), "mbsource" in e && n(18, p = e.mbsource), "clientstyling" in e && n(19, b = e.clientstyling), "clientstylingurl" in e && n(20, M = e.clientstylingurl), "translationurl" in e && n(21, U = e.translationurl), "gmversion" in e && n(22, I = e.gmversion), "displaybalanceoption" in e && n(23, S = e.displaybalanceoption), "totalcalculationmode" in e && n(13, T = e.totalcalculationmode), "primarybalancemode" in e && n(24, H = e.primarybalancemode), "balancelimitsbutton" in e && n(0, me = e.balancelimitsbutton), "hideproducttype" in e && n(25, ce = e.hideproducttype), "currencylocale" in e && n(26, Be = e.currencylocale), "currencydisplay" in e && n(27, P = e.currencydisplay), "maximumfractiondigits" in e && n(28, q = e.maximumfractiondigits), "minimumfractiondigits" in e && n(29, ne = e.minimumfractiondigits), "customdisplayformat" in e && n(30, le = e.customdisplayformat), "alwaysshowdecimals" in e && n(31, ge = e.alwaysshowdecimals);
1323
+ }, r.$$.update = () => {
1324
+ r.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1325
+ 12828672 && d && g && l && w && I && S && i(), r.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1326
+ 4308992 && d && g && l && I && Le(), r.$$.dirty[0] & /*translationurl*/
1327
+ 2097152 && U && Me(), r.$$.dirty[0] & /*balances*/
1328
+ 4 && c.Total && o(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1329
+ 524290 && b && W && Bt(W, b), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1330
+ 1048578 && M && W && Tt(W, M), r.$$.dirty[0] & /*mbsource, customStylingContainer*/
1331
+ 262146 && p && W && St(W, `${p}.Style`), r.$$.dirty[0] & /*primarybalancemode, balances*/
1328
1332
  16777220 && n(7, Se = (() => {
1329
1333
  switch (H) {
1330
1334
  case "Real":
@@ -1346,14 +1350,14 @@ function Dt(s, t, n) {
1346
1350
  we,
1347
1351
  ke,
1348
1352
  Oe,
1349
- w,
1350
1353
  v,
1351
- u,
1352
- l,
1353
- g,
1354
- f,
1355
1354
  T,
1356
- B,
1355
+ g,
1356
+ l,
1357
+ d,
1358
+ w,
1359
+ p,
1360
+ b,
1357
1361
  M,
1358
1362
  U,
1359
1363
  I,