@everymatrix/casino-header-controller-nd 1.86.29 → 1.87.0

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.
@@ -10,28 +10,28 @@ var Ke = Math.pow, Je = (o, e, a) => e in o ? pt(o, e, { enumerable: !0, configu
10
10
  yt.call(e, a) && Je(o, a, e[a]);
11
11
  return o;
12
12
  }, $e = (o, e) => ht(o, mt(e));
13
- var et = (o, e, a) => new Promise((h, d) => {
14
- var s = (w) => {
13
+ var et = (o, e, a) => new Promise((m, y) => {
14
+ var l = (d) => {
15
15
  try {
16
- f(a.next(w));
17
- } catch (b) {
18
- d(b);
16
+ w(a.next(d));
17
+ } catch (v) {
18
+ y(v);
19
19
  }
20
- }, y = (w) => {
20
+ }, c = (d) => {
21
21
  try {
22
- f(a.throw(w));
23
- } catch (b) {
24
- d(b);
22
+ w(a.throw(d));
23
+ } catch (v) {
24
+ y(v);
25
25
  }
26
- }, f = (w) => w.done ? h(w.value) : Promise.resolve(w.value).then(s, y);
27
- f((a = a.apply(o, e)).next());
26
+ }, w = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(l, c);
27
+ w((a = a.apply(o, e)).next());
28
28
  });
29
- import { b as wt, $ as bt, T as vt, S as Bt, i as Tt, s as St, f as K, d as Ct, A as qe, g as pe, m as R, o as he, p as E, w as V, x as fe, y as _t, z as At, F as Lt, q as Ie, H as xt, B as _e, C as Ae, J as tt, D as Rt, K as ze, L as dt, r as Et, P as Mt, Q as Dt, R as kt, c as Ot, O as Nt } from "./CasinoHamburgerMenuNd-DqSrTenb.js";
29
+ import { b as wt, $ as vt, T as bt, S as Bt, i as Tt, s as St, f as K, d as Ct, A as qe, g as pe, m as x, o as he, p as E, w as V, x as fe, y as _t, z as At, F as Lt, q as Ie, H as xt, B as _e, C as Ae, J as tt, D as Rt, K as ze, L as dt, r as Et, P as Mt, Q as Dt, R as kt, c as Ot, O as Nt } from "./CasinoHamburgerMenuNd-DqSrTenb.js";
30
30
  function at(o, e) {
31
31
  wt(o, e);
32
32
  }
33
33
  function Ft(o) {
34
- bt.set(o);
34
+ vt.set(o);
35
35
  }
36
36
  const nt = {
37
37
  en: {
@@ -259,11 +259,11 @@ var We = { exports: {} };
259
259
  */
260
260
  (function(o, e) {
261
261
  (function(a) {
262
- var h = a.setTimeout, d = a.clearTimeout, s = a.XMLHttpRequest, y = a.XDomainRequest, f = a.ActiveXObject, w = a.EventSource, b = a.document, D = a.Promise, U = a.fetch, I = a.Response, S = a.TextDecoder, T = a.TextEncoder, H = a.AbortController;
263
- if (typeof window != "undefined" && typeof b != "undefined" && !("readyState" in b) && b.body == null && (b.readyState = "loading", window.addEventListener("load", function(n) {
264
- b.readyState = "complete";
265
- }, !1)), s == null && f != null && (s = function() {
266
- return new f("Microsoft.XMLHTTP");
262
+ var m = a.setTimeout, y = a.clearTimeout, l = a.XMLHttpRequest, c = a.XDomainRequest, w = a.ActiveXObject, d = a.EventSource, v = a.document, D = a.Promise, U = a.fetch, I = a.Response, S = a.TextDecoder, T = a.TextEncoder, H = a.AbortController;
263
+ if (typeof window != "undefined" && typeof v != "undefined" && !("readyState" in v) && v.body == null && (v.readyState = "loading", window.addEventListener("load", function(n) {
264
+ v.readyState = "complete";
265
+ }, !1)), l == null && w != null && (l = function() {
266
+ return new w("Microsoft.XMLHTTP");
267
267
  }), Object.create == null && (Object.create = function(n) {
268
268
  function r() {
269
269
  }
@@ -273,16 +273,16 @@ var We = { exports: {} };
273
273
  }), H == null) {
274
274
  var me = U;
275
275
  U = function(n, r) {
276
- var u = r.signal;
276
+ var f = r.signal;
277
277
  return me(n, { headers: r.headers, credentials: r.credentials, cache: r.cache }).then(function(i) {
278
- var v = i.body.getReader();
279
- return u._reader = v, u._aborted && u._reader.cancel(), {
278
+ var b = i.body.getReader();
279
+ return f._reader = b, f._aborted && f._reader.cancel(), {
280
280
  status: i.status,
281
281
  statusText: i.statusText,
282
282
  headers: i.headers,
283
283
  body: {
284
284
  getReader: function() {
285
- return v;
285
+ return b;
286
286
  }
287
287
  }
288
288
  };
@@ -309,7 +309,7 @@ var We = { exports: {} };
309
309
  return M >= 65536 >> k && M << k <= 1114111;
310
310
  throw new Error();
311
311
  }
312
- function u(M, k) {
312
+ function f(M, k) {
313
313
  if (M === 6 * 1)
314
314
  return k >> 6 > 15 ? 3 : k > 31 ? 2 : 1;
315
315
  if (M === 6 * 2)
@@ -318,11 +318,11 @@ var We = { exports: {} };
318
318
  return 3;
319
319
  throw new Error();
320
320
  }
321
- for (var i = 65533, v = "", g = this.bitsNeeded, _ = this.codePoint, N = 0; N < n.length; N += 1) {
321
+ for (var i = 65533, b = "", g = this.bitsNeeded, _ = this.codePoint, N = 0; N < n.length; N += 1) {
322
322
  var L = n[N];
323
- g !== 0 && (L < 128 || L > 191 || !r(_ << 6 | L & 63, g - 6, u(g, _))) && (g = 0, _ = i, v += String.fromCharCode(_)), g === 0 ? (L >= 0 && L <= 127 ? (g = 0, _ = L) : L >= 192 && L <= 223 ? (g = 6 * 1, _ = L & 31) : L >= 224 && L <= 239 ? (g = 6 * 2, _ = L & 15) : L >= 240 && L <= 247 ? (g = 6 * 3, _ = L & 7) : (g = 0, _ = i), g !== 0 && !r(_, g, u(g, _)) && (g = 0, _ = i)) : (g -= 6, _ = _ << 6 | L & 63), g === 0 && (_ <= 65535 ? v += String.fromCharCode(_) : (v += String.fromCharCode(55296 + (_ - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (_ - 65535 - 1 & 1023))));
323
+ g !== 0 && (L < 128 || L > 191 || !r(_ << 6 | L & 63, g - 6, f(g, _))) && (g = 0, _ = i, b += String.fromCharCode(_)), g === 0 ? (L >= 0 && L <= 127 ? (g = 0, _ = L) : L >= 192 && L <= 223 ? (g = 6 * 1, _ = L & 31) : L >= 224 && L <= 239 ? (g = 6 * 2, _ = L & 15) : L >= 240 && L <= 247 ? (g = 6 * 3, _ = L & 7) : (g = 0, _ = i), g !== 0 && !r(_, g, f(g, _)) && (g = 0, _ = i)) : (g -= 6, _ = _ << 6 | L & 63), g === 0 && (_ <= 65535 ? b += String.fromCharCode(_) : (b += String.fromCharCode(55296 + (_ - 65535 - 1 >> 10)), b += String.fromCharCode(56320 + (_ - 65535 - 1 & 1023))));
324
324
  }
325
- return this.bitsNeeded = g, this.codePoint = _, v;
325
+ return this.bitsNeeded = g, this.codePoint = _, b;
326
326
  };
327
327
  var Be = function() {
328
328
  try {
@@ -340,51 +340,51 @@ var We = { exports: {} };
340
340
  }
341
341
  q.prototype.open = function(n, r) {
342
342
  this._abort(!0);
343
- var u = this, i = this._xhr, v = 1, g = 0;
343
+ var f = this, i = this._xhr, b = 1, g = 0;
344
344
  this._abort = function(t) {
345
- u._sendTimeout !== 0 && (d(u._sendTimeout), u._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, i.onload = P, i.onerror = P, i.onabort = P, i.onprogress = P, i.onreadystatechange = P, i.abort(), g !== 0 && (d(g), g = 0), t || (u.readyState = 4, u.onabort(null), u.onreadystatechange())), v = 0;
345
+ f._sendTimeout !== 0 && (y(f._sendTimeout), f._sendTimeout = 0), (b === 1 || b === 2 || b === 3) && (b = 4, i.onload = P, i.onerror = P, i.onabort = P, i.onprogress = P, i.onreadystatechange = P, i.abort(), g !== 0 && (y(g), g = 0), t || (f.readyState = 4, f.onabort(null), f.onreadystatechange())), b = 0;
346
346
  };
347
347
  var _ = function() {
348
- if (v === 1) {
349
- var t = 0, l = "", m = void 0;
348
+ if (b === 1) {
349
+ var t = 0, s = "", h = void 0;
350
350
  if ("contentType" in i)
351
- t = 200, l = "OK", m = i.contentType;
351
+ t = 200, s = "OK", h = i.contentType;
352
352
  else
353
353
  try {
354
- t = i.status, l = i.statusText, m = i.getResponseHeader("Content-Type");
354
+ t = i.status, s = i.statusText, h = i.getResponseHeader("Content-Type");
355
355
  } catch (B) {
356
- t = 0, l = "", m = void 0;
356
+ t = 0, s = "", h = void 0;
357
357
  }
358
- t !== 0 && (v = 2, u.readyState = 2, u.status = t, u.statusText = l, u._contentType = m, u.onreadystatechange());
358
+ t !== 0 && (b = 2, f.readyState = 2, f.status = t, f.statusText = s, f._contentType = h, f.onreadystatechange());
359
359
  }
360
360
  }, N = function() {
361
- if (_(), v === 2 || v === 3) {
362
- v = 3;
361
+ if (_(), b === 2 || b === 3) {
362
+ b = 3;
363
363
  var t = "";
364
364
  try {
365
365
  t = i.responseText;
366
- } catch (l) {
366
+ } catch (s) {
367
367
  }
368
- u.readyState = 3, u.responseText = t, u.onprogress();
368
+ f.readyState = 3, f.responseText = t, f.onprogress();
369
369
  }
370
- }, L = function(t, l) {
371
- if ((l == null || l.preventDefault == null) && (l = {
370
+ }, L = function(t, s) {
371
+ if ((s == null || s.preventDefault == null) && (s = {
372
372
  preventDefault: P
373
- }), N(), v === 1 || v === 2 || v === 3) {
374
- if (v = 4, g !== 0 && (d(g), g = 0), u.readyState = 4, t === "load")
375
- u.onload(l);
373
+ }), N(), b === 1 || b === 2 || b === 3) {
374
+ if (b = 4, g !== 0 && (y(g), g = 0), f.readyState = 4, t === "load")
375
+ f.onload(s);
376
376
  else if (t === "error")
377
- u.onerror(l);
377
+ f.onerror(s);
378
378
  else if (t === "abort")
379
- u.onabort(l);
379
+ f.onabort(s);
380
380
  else
381
381
  throw new TypeError();
382
- u.onreadystatechange();
382
+ f.onreadystatechange();
383
383
  }
384
384
  }, M = function(t) {
385
385
  i != null && (i.readyState === 4 ? (!("onload" in i) || !("onerror" in i) || !("onabort" in i)) && L(i.responseText === "" ? "error" : "load", t) : i.readyState === 3 ? "onprogress" in i || N() : i.readyState === 2 && _());
386
386
  }, k = function() {
387
- g = h(function() {
387
+ g = m(function() {
388
388
  k();
389
389
  }, 500), i.readyState === 3 && N();
390
390
  };
@@ -396,7 +396,7 @@ var We = { exports: {} };
396
396
  L("abort", t);
397
397
  }), "onprogress" in i && (i.onprogress = N), "onreadystatechange" in i && (i.onreadystatechange = function(t) {
398
398
  M(t);
399
- }), ("contentType" in i || !("ontimeout" in s.prototype)) && (r += (r.indexOf("?") === -1 ? "?" : "&") + "padding=true"), i.open(n, r, !0), "readyState" in i && (g = h(function() {
399
+ }), ("contentType" in i || !("ontimeout" in l.prototype)) && (r += (r.indexOf("?") === -1 ? "?" : "&") + "padding=true"), i.open(n, r, !0), "readyState" in i && (g = m(function() {
400
400
  k();
401
401
  }, 0));
402
402
  }, q.prototype.abort = function() {
@@ -404,14 +404,14 @@ var We = { exports: {} };
404
404
  }, q.prototype.getResponseHeader = function(n) {
405
405
  return this._contentType;
406
406
  }, q.prototype.setRequestHeader = function(n, r) {
407
- var u = this._xhr;
408
- "setRequestHeader" in u && u.setRequestHeader(n, r);
407
+ var f = this._xhr;
408
+ "setRequestHeader" in f && f.setRequestHeader(n, r);
409
409
  }, q.prototype.getAllResponseHeaders = function() {
410
410
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
411
411
  }, q.prototype.send = function() {
412
- if ((!("ontimeout" in s.prototype) || !("sendAsBinary" in s.prototype) && !("mozAnon" in s.prototype)) && b != null && b.readyState != null && b.readyState !== "complete") {
412
+ if ((!("ontimeout" in l.prototype) || !("sendAsBinary" in l.prototype) && !("mozAnon" in l.prototype)) && v != null && v.readyState != null && v.readyState !== "complete") {
413
413
  var n = this;
414
- n._sendTimeout = h(function() {
414
+ n._sendTimeout = m(function() {
415
415
  n._sendTimeout = 0, n.send();
416
416
  }, 4);
417
417
  return;
@@ -420,8 +420,8 @@ var We = { exports: {} };
420
420
  "withCredentials" in r && (r.withCredentials = this.withCredentials);
421
421
  try {
422
422
  r.send(void 0);
423
- } catch (u) {
424
- throw u;
423
+ } catch (f) {
424
+ throw f;
425
425
  }
426
426
  };
427
427
  function ne(n) {
@@ -430,24 +430,24 @@ var We = { exports: {} };
430
430
  });
431
431
  }
432
432
  function le(n) {
433
- for (var r = /* @__PURE__ */ Object.create(null), u = n.split(`\r
434
- `), i = 0; i < u.length; i += 1) {
435
- var v = u[i], g = v.split(": "), _ = g.shift(), N = g.join(": ");
433
+ for (var r = /* @__PURE__ */ Object.create(null), f = n.split(`\r
434
+ `), i = 0; i < f.length; i += 1) {
435
+ var b = f[i], g = b.split(": "), _ = g.shift(), N = g.join(": ");
436
436
  r[ne(_)] = N;
437
437
  }
438
438
  this._map = r;
439
439
  }
440
440
  le.prototype.get = function(n) {
441
441
  return this._map[ne(n)];
442
- }, s != null && s.HEADERS_RECEIVED == null && (s.HEADERS_RECEIVED = 2);
442
+ }, l != null && l.HEADERS_RECEIVED == null && (l.HEADERS_RECEIVED = 2);
443
443
  function ge() {
444
444
  }
445
- ge.prototype.open = function(n, r, u, i, v, g, _) {
446
- n.open("GET", v);
445
+ ge.prototype.open = function(n, r, f, i, b, g, _) {
446
+ n.open("GET", b);
447
447
  var N = 0;
448
448
  n.onprogress = function() {
449
449
  var M = n.responseText, k = M.slice(N);
450
- N += k.length, u(k);
450
+ N += k.length, f(k);
451
451
  }, n.onerror = function(M) {
452
452
  M.preventDefault(), i(new Error("NetworkError"));
453
453
  }, n.onload = function() {
@@ -455,9 +455,9 @@ var We = { exports: {} };
455
455
  }, n.onabort = function() {
456
456
  i(null);
457
457
  }, n.onreadystatechange = function() {
458
- if (n.readyState === s.HEADERS_RECEIVED) {
459
- var M = n.status, k = n.statusText, t = n.getResponseHeader("Content-Type"), l = n.getAllResponseHeaders();
460
- r(M, k, t, new le(l));
458
+ if (n.readyState === l.HEADERS_RECEIVED) {
459
+ var M = n.status, k = n.statusText, t = n.getResponseHeader("Content-Type"), s = n.getAllResponseHeaders();
460
+ r(M, k, t, new le(s));
461
461
  }
462
462
  }, n.withCredentials = g;
463
463
  for (var L in _)
@@ -472,25 +472,25 @@ var We = { exports: {} };
472
472
  };
473
473
  function O() {
474
474
  }
475
- O.prototype.open = function(n, r, u, i, v, g, _) {
475
+ O.prototype.open = function(n, r, f, i, b, g, _) {
476
476
  var N = null, L = new H(), M = L.signal, k = new S();
477
- return U(v, {
477
+ return U(b, {
478
478
  headers: _,
479
479
  credentials: g ? "include" : "same-origin",
480
480
  signal: M,
481
481
  cache: "no-store"
482
482
  }).then(function(t) {
483
- return N = t.body.getReader(), r(t.status, t.statusText, t.headers.get("Content-Type"), new W(t.headers)), new D(function(l, m) {
483
+ return N = t.body.getReader(), r(t.status, t.statusText, t.headers.get("Content-Type"), new W(t.headers)), new D(function(s, h) {
484
484
  var B = function() {
485
485
  N.read().then(function(A) {
486
486
  if (A.done)
487
- l(void 0);
487
+ s(void 0);
488
488
  else {
489
489
  var C = k.decode(A.value, { stream: !0 });
490
- u(C), B();
490
+ f(C), B();
491
491
  }
492
492
  }).catch(function(A) {
493
- m(A);
493
+ h(A);
494
494
  });
495
495
  };
496
496
  B();
@@ -509,8 +509,8 @@ var We = { exports: {} };
509
509
  function F() {
510
510
  this._listeners = /* @__PURE__ */ Object.create(null);
511
511
  }
512
- function x(n) {
513
- h(function() {
512
+ function R(n) {
513
+ m(function() {
514
514
  throw n;
515
515
  }, 0);
516
516
  }
@@ -518,28 +518,28 @@ var We = { exports: {} };
518
518
  n.target = this;
519
519
  var r = this._listeners[n.type];
520
520
  if (r != null)
521
- for (var u = r.length, i = 0; i < u; i += 1) {
522
- var v = r[i];
521
+ for (var f = r.length, i = 0; i < f; i += 1) {
522
+ var b = r[i];
523
523
  try {
524
- typeof v.handleEvent == "function" ? v.handleEvent(n) : v.call(this, n);
524
+ typeof b.handleEvent == "function" ? b.handleEvent(n) : b.call(this, n);
525
525
  } catch (g) {
526
- x(g);
526
+ R(g);
527
527
  }
528
528
  }
529
529
  }, F.prototype.addEventListener = function(n, r) {
530
530
  n = String(n);
531
- var u = this._listeners, i = u[n];
532
- i == null && (i = [], u[n] = i);
533
- for (var v = !1, g = 0; g < i.length; g += 1)
534
- i[g] === r && (v = !0);
535
- v || i.push(r);
531
+ var f = this._listeners, i = f[n];
532
+ i == null && (i = [], f[n] = i);
533
+ for (var b = !1, g = 0; g < i.length; g += 1)
534
+ i[g] === r && (b = !0);
535
+ b || i.push(r);
536
536
  }, F.prototype.removeEventListener = function(n, r) {
537
537
  n = String(n);
538
- var u = this._listeners, i = u[n];
538
+ var f = this._listeners, i = f[n];
539
539
  if (i != null) {
540
- for (var v = [], g = 0; g < i.length; g += 1)
541
- i[g] !== r && v.push(i[g]);
542
- v.length === 0 ? delete u[n] : u[n] = v;
540
+ for (var b = [], g = 0; g < i.length; g += 1)
541
+ i[g] !== r && b.push(i[g]);
542
+ b.length === 0 ? delete f[n] : f[n] = b;
543
543
  }
544
544
  };
545
545
  function z(n) {
@@ -557,28 +557,28 @@ var We = { exports: {} };
557
557
  z.call(this, n), this.error = r.error;
558
558
  }
559
559
  ye.prototype = Object.create(z.prototype);
560
- var ue = -1, J = 0, re = 1, Se = 2, c = -1, ae = 0, De = 1, we = 2, ke = 3, Ve = /^text\/event\-stream(;.*)?$/i, Ue = 1e3, Pe = 18e6, Le = function(n, r) {
561
- var u = n == null ? r : parseInt(n, 10);
562
- return u !== u && (u = r), Re(u);
560
+ var ue = -1, J = 0, re = 1, Se = 2, u = -1, ae = 0, De = 1, we = 2, ke = 3, Ve = /^text\/event\-stream(;.*)?$/i, Ue = 1e3, Pe = 18e6, Le = function(n, r) {
561
+ var f = n == null ? r : parseInt(n, 10);
562
+ return f !== f && (f = r), Re(f);
563
563
  }, Re = function(n) {
564
564
  return Math.min(Math.max(n, Ue), Pe);
565
- }, Ce = function(n, r, u) {
565
+ }, Ce = function(n, r, f) {
566
566
  try {
567
- typeof r == "function" && r.call(n, u);
567
+ typeof r == "function" && r.call(n, f);
568
568
  } catch (i) {
569
- x(i);
569
+ R(i);
570
570
  }
571
571
  };
572
572
  function $(n, r) {
573
573
  F.call(this), r = r || {}, 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, n, r);
574
574
  }
575
575
  function je() {
576
- return s != null && "withCredentials" in s.prototype || y == null ? new s() : new y();
576
+ return l != null && "withCredentials" in l.prototype || c == null ? new l() : new c();
577
577
  }
578
578
  var Ge = U != null && I != null && "body" in I.prototype;
579
- function Oe(n, r, u) {
579
+ function Oe(n, r, f) {
580
580
  r = String(r);
581
- var i = !!u.withCredentials, v = u.lastEventIdQueryParameterName || "lastEventId", g = Re(1e3), _ = Le(u.heartbeatTimeout, 45e3), N = "", L = g, M = !1, k = 0, t = u.headers || {}, l = u.Transport, m = Ge && l == null ? void 0 : new q(l != null ? new l() : je()), B = l != null && typeof l != "string" ? new l() : m == null ? new O() : new ge(), A = void 0, C = 0, p = ue, G = "", se = "", ee = "", Ee = "", X = ae, Ne = 0, de = 0, xe = function(Q, Y, oe, ie) {
581
+ var i = !!f.withCredentials, b = f.lastEventIdQueryParameterName || "lastEventId", g = Re(1e3), _ = Le(f.heartbeatTimeout, 45e3), N = "", L = g, M = !1, k = 0, t = f.headers || {}, s = f.Transport, h = Ge && s == null ? void 0 : new q(s != null ? new s() : je()), B = s != null && typeof s != "string" ? new s() : h == null ? new O() : new ge(), A = void 0, C = 0, p = ue, G = "", se = "", ee = "", Ee = "", X = ae, Ne = 0, de = 0, xe = function(Q, Y, oe, ie) {
582
582
  if (p === J)
583
583
  if (Q === 200 && oe != null && Ve.test(oe)) {
584
584
  p = re, M = Date.now(), L = g, n.readyState = re;
@@ -608,14 +608,14 @@ var We = { exports: {} };
608
608
  Ee = (Y === -1 ? Ee : "") + Q.slice(Y + 1), Q !== "" && (M = Date.now(), k += Q.length);
609
609
  for (var Z = 0; Z < te.length; Z += 1) {
610
610
  var ie = te.charCodeAt(Z);
611
- if (X === c && ie === 10)
611
+ if (X === u && ie === 10)
612
612
  X = ae;
613
- else if (X === c && (X = ae), ie === 13 || ie === 10) {
613
+ else if (X === u && (X = ae), ie === 13 || ie === 10) {
614
614
  if (X !== ae) {
615
615
  X === De && (de = Z + 1);
616
- var be = te.slice(Ne, de - 1), ve = te.slice(de + (de < Z && te.charCodeAt(de) === 32 ? 1 : 0), Z);
617
- be === "data" ? (G += `
618
- `, G += ve) : be === "id" ? se = ve : be === "event" ? ee = ve : be === "retry" ? (g = Le(ve, g), L = g) : be === "heartbeatTimeout" && (_ = Le(ve, _), C !== 0 && (d(C), C = h(function() {
616
+ var ve = te.slice(Ne, de - 1), be = te.slice(de + (de < Z && te.charCodeAt(de) === 32 ? 1 : 0), Z);
617
+ ve === "data" ? (G += `
618
+ `, G += be) : ve === "id" ? se = be : ve === "event" ? ee = be : ve === "retry" ? (g = Le(be, g), L = g) : ve === "heartbeatTimeout" && (_ = Le(be, _), C !== 0 && (y(C), C = m(function() {
619
619
  Fe();
620
620
  }, _)));
621
621
  }
@@ -631,53 +631,53 @@ var We = { exports: {} };
631
631
  }
632
632
  G = "", ee = "";
633
633
  }
634
- X = ie === 13 ? c : ae;
634
+ X = ie === 13 ? u : ae;
635
635
  } else
636
636
  X === ae && (Ne = Z, X = De), X === De ? ie === 58 && (de = Z + 1, X = we) : X === we && (X = ke);
637
637
  }
638
638
  }
639
639
  }, Ye = function(Q) {
640
640
  if (p === re || p === J) {
641
- p = ue, C !== 0 && (d(C), C = 0), C = h(function() {
641
+ p = ue, C !== 0 && (y(C), C = 0), C = m(function() {
642
642
  Fe();
643
643
  }, L), L = Re(Math.min(g * 16, L * 2)), n.readyState = J;
644
644
  var Y = new ye("error", { error: Q });
645
645
  n.dispatchEvent(Y), Ce(n, n.onerror, Y), Q != null && console.error(Q);
646
646
  }
647
647
  }, Xe = function() {
648
- p = Se, A != null && (A.abort(), A = void 0), C !== 0 && (d(C), C = 0), n.readyState = Se;
648
+ p = Se, A != null && (A.abort(), A = void 0), C !== 0 && (y(C), C = 0), n.readyState = Se;
649
649
  }, Fe = function() {
650
650
  if (C = 0, p !== ue) {
651
651
  if (!M && A != null)
652
652
  Ye(new Error("No activity within " + _ + " milliseconds. " + (p === J ? "No response received." : k + " chars received.") + " Reconnecting.")), A != null && (A.abort(), A = void 0);
653
653
  else {
654
654
  var Q = Math.max((M || Date.now()) + _ - Date.now(), 1);
655
- M = !1, C = h(function() {
655
+ M = !1, C = m(function() {
656
656
  Fe();
657
657
  }, Q);
658
658
  }
659
659
  return;
660
660
  }
661
- M = !1, k = 0, C = h(function() {
661
+ M = !1, k = 0, C = m(function() {
662
662
  Fe();
663
663
  }, _), p = J, G = "", ee = "", se = N, Ee = "", Ne = 0, de = 0, X = ae;
664
664
  var Y = r;
665
665
  if (r.slice(0, 5) !== "data:" && r.slice(0, 5) !== "blob:" && N !== "") {
666
666
  var oe = r.indexOf("?");
667
- Y = oe === -1 ? r : r.slice(0, oe + 1) + r.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Me) {
668
- return Me === v ? "" : ve;
669
- }), Y += (r.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(N);
667
+ Y = oe === -1 ? r : r.slice(0, oe + 1) + r.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(be, Me) {
668
+ return Me === b ? "" : be;
669
+ }), Y += (r.indexOf("?") === -1 ? "?" : "&") + b + "=" + encodeURIComponent(N);
670
670
  }
671
671
  var ie = n.withCredentials, te = {};
672
672
  te.Accept = "text/event-stream";
673
673
  var Z = n.headers;
674
674
  if (Z != null)
675
- for (var be in Z)
676
- Object.prototype.hasOwnProperty.call(Z, be) && (te[be] = Z[be]);
675
+ for (var ve in Z)
676
+ Object.prototype.hasOwnProperty.call(Z, ve) && (te[ve] = Z[ve]);
677
677
  try {
678
- A = B.open(m, xe, ft, Ye, Y, ie, te);
679
- } catch (ve) {
680
- throw Xe(), ve;
678
+ A = B.open(h, xe, ft, Ye, Y, ie, te);
679
+ } catch (be) {
680
+ throw Xe(), be;
681
681
  }
682
682
  };
683
683
  n.url = r, n.readyState = J, n.withCredentials = i, n.headers = t, n._close = Xe, Fe();
@@ -685,44 +685,44 @@ var We = { exports: {} };
685
685
  $.prototype = Object.create(F.prototype), $.prototype.CONNECTING = J, $.prototype.OPEN = re, $.prototype.CLOSED = Se, $.prototype.close = function() {
686
686
  this._close();
687
687
  }, $.CONNECTING = J, $.OPEN = re, $.CLOSED = Se, $.prototype.withCredentials = void 0;
688
- var He = w;
689
- s != null && (w == null || !("withCredentials" in w.prototype)) && (He = $), function(n) {
688
+ var He = d;
689
+ l != null && (d == null || !("withCredentials" in d.prototype)) && (He = $), function(n) {
690
690
  {
691
691
  var r = n(e);
692
692
  r !== void 0 && (o.exports = r);
693
693
  }
694
694
  }(function(n) {
695
- n.EventSourcePolyfill = $, n.NativeEventSource = w, n.EventSource = He;
695
+ n.EventSourcePolyfill = $, n.NativeEventSource = d, n.EventSource = He;
696
696
  });
697
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : vt : globalThis);
697
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : bt : globalThis);
698
698
  })(We, We.exports);
699
699
  var It = We.exports;
700
700
  function jt(o) {
701
701
  Ct(o, "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}');
702
702
  }
703
703
  function ot(o, e, a) {
704
- const h = o.slice();
705
- return h[61] = e[a], h;
704
+ const m = o.slice();
705
+ return m[61] = e[a], m;
706
706
  }
707
707
  function it(o, e, a) {
708
- const h = o.slice();
709
- return h[64] = e[a], h;
708
+ const m = o.slice();
709
+ return m[64] = e[a], m;
710
710
  }
711
711
  function Ht(o) {
712
- let e, a, h, d, s, y, f, w, b, D, U, I, S = (
712
+ let e, a, m, y, l, c, w, d, v, D, U, I, S = (
713
713
  /*showBalance*/
714
714
  o[5] && rt(o)
715
715
  );
716
716
  return {
717
717
  c() {
718
- e = V("button"), a = V("p"), h = Ae(
718
+ e = V("button"), a = V("p"), m = Ae(
719
719
  /*displayBalance*/
720
720
  o[7]
721
- ), d = fe(), s = V("span"), y = tt("svg"), f = tt("path"), b = fe(), S && S.c(), D = Rt(), 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(y, "xmlns", "http://www.w3.org/2000/svg"), R(y, "width", "14"), R(y, "height", "6.835"), R(y, "viewBox", "0 0 14 6.835"), R(s, "class", w = /*isModalDisplayed*/
722
- o[4] ? "TriangleActive" : "TriangleInactive"), R(e, "class", "BalanceValue");
721
+ ), y = fe(), l = V("span"), c = tt("svg"), w = tt("path"), v = fe(), S && S.c(), D = Rt(), x(w, "id", "arrow"), x(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"), x(w, "transform", "translate(-274.511 -441.088)"), x(w, "fill", "#d1d1d1"), x(c, "xmlns", "http://www.w3.org/2000/svg"), x(c, "width", "14"), x(c, "height", "6.835"), x(c, "viewBox", "0 0 14 6.835"), x(l, "class", d = /*isModalDisplayed*/
722
+ o[4] ? "TriangleActive" : "TriangleInactive"), x(e, "class", "BalanceValue");
723
723
  },
724
724
  m(T, H) {
725
- he(T, e, H), E(e, a), E(a, h), E(e, d), E(e, s), E(s, y), E(y, f), he(T, b, H), S && S.m(T, H), he(T, D, H), U || (I = Ie(
725
+ he(T, e, H), E(e, a), E(a, m), E(e, y), E(e, l), E(l, c), E(c, w), he(T, v, H), S && S.m(T, H), he(T, D, H), U || (I = Ie(
726
726
  e,
727
727
  "click",
728
728
  /*click_handler*/
@@ -732,16 +732,16 @@ function Ht(o) {
732
732
  p(T, H) {
733
733
  H[0] & /*displayBalance*/
734
734
  128 && _e(
735
- h,
735
+ m,
736
736
  /*displayBalance*/
737
737
  T[7]
738
738
  ), H[0] & /*isModalDisplayed*/
739
- 16 && w !== (w = /*isModalDisplayed*/
740
- T[4] ? "TriangleActive" : "TriangleInactive") && R(s, "class", w), /*showBalance*/
739
+ 16 && d !== (d = /*isModalDisplayed*/
740
+ T[4] ? "TriangleActive" : "TriangleInactive") && x(l, "class", d), /*showBalance*/
741
741
  T[5] ? S ? S.p(T, H) : (S = rt(T), S.c(), S.m(D.parentNode, D)) : S && (S.d(1), S = null);
742
742
  },
743
743
  d(T) {
744
- T && (pe(e), pe(b), pe(D)), S && S.d(T), U = !1, I();
744
+ T && (pe(e), pe(v), pe(D)), S && S.d(T), U = !1, I();
745
745
  }
746
746
  };
747
747
  }
@@ -749,26 +749,26 @@ function zt(o) {
749
749
  let e, a = (
750
750
  /*$_*/
751
751
  o[8]("Loading") + ""
752
- ), h;
752
+ ), m;
753
753
  return {
754
754
  c() {
755
- e = V("p"), h = Ae(a), R(e, "class", "Loading");
755
+ e = V("p"), m = Ae(a), x(e, "class", "Loading");
756
756
  },
757
- m(d, s) {
758
- he(d, e, s), E(e, h);
757
+ m(y, l) {
758
+ he(y, e, l), E(e, m);
759
759
  },
760
- p(d, s) {
761
- s[0] & /*$_*/
760
+ p(y, l) {
761
+ l[0] & /*$_*/
762
762
  256 && a !== (a = /*$_*/
763
- d[8]("Loading") + "") && _e(h, a);
763
+ y[8]("Loading") + "") && _e(m, a);
764
764
  },
765
- d(d) {
766
- d && pe(e);
765
+ d(y) {
766
+ y && pe(e);
767
767
  }
768
768
  };
769
769
  }
770
770
  function rt(o) {
771
- let e, a, h, d, s, y, f, w, b = (
771
+ let e, a, m, y, l, c, w, d, v = (
772
772
  /*$_*/
773
773
  o[8]("Title") + ""
774
774
  ), D, U, I, S, T, H, me = (
@@ -778,28 +778,28 @@ function rt(o) {
778
778
  /*balances*/
779
779
  o[2]
780
780
  )), O = [];
781
- for (let x = 0; x < W.length; x += 1)
782
- O[x] = lt(ot(o, W, x));
781
+ for (let R = 0; R < W.length; R += 1)
782
+ O[R] = lt(ot(o, W, R));
783
783
  let F = (
784
784
  /*balancelimitsbutton*/
785
785
  o[0] === "true" && ct(o)
786
786
  );
787
787
  return {
788
788
  c() {
789
- e = V("div"), a = V("button"), d = fe(), s = V("div"), y = V("div"), f = V("div"), w = V("p"), D = Ae(b), U = fe(), I = V("div");
790
- for (let x = 0; x < O.length; x += 1)
791
- O[x].c();
792
- S = fe(), T = V("div"), H = V("button"), ce = Ae(me), Be = fe(), F && F.c(), R(a, "class", h = "BalanceModalClose " + /*isModalDisplayed*/
793
- (o[4] ? "Open" : "")), R(w, "class", "BalanceModalTitle"), R(f, "class", "BalanceModalHeader"), R(I, "class", "BalanceModalBody"), R(H, "class", "BalanceModalAction DepositButton"), R(T, "class", "BalanceModalFooter"), R(y, "class", P = "ModalContent " + /*isModalDisplayed*/
794
- (o[4] ? "Open" : "")), R(s, "class", q = "BalanceModal " + /*isModalDisplayed*/
795
- (o[4] ? "Open" : "")), R(e, "class", ne = "BalanceModalWrapper " + /*isModalDisplayed*/
789
+ e = V("div"), a = V("button"), y = fe(), l = V("div"), c = V("div"), w = V("div"), d = V("p"), D = Ae(v), U = fe(), I = V("div");
790
+ for (let R = 0; R < O.length; R += 1)
791
+ O[R].c();
792
+ S = fe(), T = V("div"), H = V("button"), ce = Ae(me), Be = fe(), F && F.c(), x(a, "class", m = "BalanceModalClose " + /*isModalDisplayed*/
793
+ (o[4] ? "Open" : "")), x(d, "class", "BalanceModalTitle"), x(w, "class", "BalanceModalHeader"), x(I, "class", "BalanceModalBody"), x(H, "class", "BalanceModalAction DepositButton"), x(T, "class", "BalanceModalFooter"), x(c, "class", P = "ModalContent " + /*isModalDisplayed*/
794
+ (o[4] ? "Open" : "")), x(l, "class", q = "BalanceModal " + /*isModalDisplayed*/
795
+ (o[4] ? "Open" : "")), x(e, "class", ne = "BalanceModalWrapper " + /*isModalDisplayed*/
796
796
  (o[4] ? "Open" : ""));
797
797
  },
798
- m(x, z) {
799
- he(x, e, z), E(e, a), E(e, d), E(e, s), E(s, y), E(y, f), E(f, w), E(w, D), E(y, U), E(y, I);
798
+ m(R, z) {
799
+ he(R, e, z), E(e, a), E(e, y), E(e, l), E(l, c), E(c, w), E(w, d), E(d, D), E(c, U), E(c, I);
800
800
  for (let j = 0; j < O.length; j += 1)
801
801
  O[j] && O[j].m(I, null);
802
- E(y, S), E(y, T), E(T, H), E(H, ce), E(T, Be), F && F.m(T, null), le || (ge = [
802
+ E(c, S), E(c, T), E(T, H), E(H, ce), E(T, Be), F && F.m(T, null), le || (ge = [
803
803
  Ie(
804
804
  a,
805
805
  "click",
@@ -814,20 +814,20 @@ function rt(o) {
814
814
  )
815
815
  ], le = !0);
816
816
  },
817
- p(x, z) {
817
+ p(R, z) {
818
818
  if (z[0] & /*isModalDisplayed*/
819
- 16 && h !== (h = "BalanceModalClose " + /*isModalDisplayed*/
820
- (x[4] ? "Open" : "")) && R(a, "class", h), z[0] & /*$_*/
821
- 256 && b !== (b = /*$_*/
822
- x[8]("Title") + "") && _e(D, b), z[0] & /*balances, formatBalance, getProductType, $_*/
819
+ 16 && m !== (m = "BalanceModalClose " + /*isModalDisplayed*/
820
+ (R[4] ? "Open" : "")) && x(a, "class", m), z[0] & /*$_*/
821
+ 256 && v !== (v = /*$_*/
822
+ R[8]("Title") + "") && _e(D, v), z[0] & /*balances, formatBalance, getProductType, $_*/
823
823
  5380) {
824
824
  W = ze(Object.keys(
825
825
  /*balances*/
826
- x[2]
826
+ R[2]
827
827
  ));
828
828
  let j;
829
829
  for (j = 0; j < W.length; j += 1) {
830
- const Te = ot(x, W, j);
830
+ const Te = ot(R, W, j);
831
831
  O[j] ? O[j].p(Te, z) : (O[j] = lt(Te), O[j].c(), O[j].m(I, null));
832
832
  }
833
833
  for (; j < O.length; j += 1)
@@ -836,34 +836,34 @@ function rt(o) {
836
836
  }
837
837
  z[0] & /*$_*/
838
838
  256 && me !== (me = /*$_*/
839
- x[8]("DepositButton") + "") && _e(ce, me), /*balancelimitsbutton*/
840
- x[0] === "true" ? F ? F.p(x, z) : (F = ct(x), F.c(), F.m(T, null)) : F && (F.d(1), F = null), z[0] & /*isModalDisplayed*/
839
+ R[8]("DepositButton") + "") && _e(ce, me), /*balancelimitsbutton*/
840
+ R[0] === "true" ? F ? F.p(R, z) : (F = ct(R), F.c(), F.m(T, null)) : F && (F.d(1), F = null), z[0] & /*isModalDisplayed*/
841
841
  16 && P !== (P = "ModalContent " + /*isModalDisplayed*/
842
- (x[4] ? "Open" : "")) && R(y, "class", P), z[0] & /*isModalDisplayed*/
842
+ (R[4] ? "Open" : "")) && x(c, "class", P), z[0] & /*isModalDisplayed*/
843
843
  16 && q !== (q = "BalanceModal " + /*isModalDisplayed*/
844
- (x[4] ? "Open" : "")) && R(s, "class", q), z[0] & /*isModalDisplayed*/
844
+ (R[4] ? "Open" : "")) && x(l, "class", q), z[0] & /*isModalDisplayed*/
845
845
  16 && ne !== (ne = "BalanceModalWrapper " + /*isModalDisplayed*/
846
- (x[4] ? "Open" : "")) && R(e, "class", ne);
846
+ (R[4] ? "Open" : "")) && x(e, "class", ne);
847
847
  },
848
- d(x) {
849
- x && pe(e), dt(O, x), F && F.d(), le = !1, Et(ge);
848
+ d(R) {
849
+ R && pe(e), dt(O, R), F && F.d(), le = !1, Et(ge);
850
850
  }
851
851
  };
852
852
  }
853
853
  function st(o) {
854
- let e, a, h = (
854
+ let e, a, m = (
855
855
  /*$_*/
856
856
  o[8](
857
857
  /*k*/
858
858
  o[61]
859
859
  ) + ""
860
- ), d, s, y = (
860
+ ), y, l, c = (
861
861
  /*getProductType*/
862
862
  o[12](
863
863
  /*balance*/
864
864
  o[64]
865
865
  ) + ""
866
- ), f, w, b, D, U = (
866
+ ), w, d, v, D, U = (
867
867
  /*formatBalance*/
868
868
  o[10](
869
869
  /*balance*/
@@ -872,23 +872,23 @@ function st(o) {
872
872
  ), I;
873
873
  return {
874
874
  c() {
875
- e = V("div"), a = V("p"), d = Ae(h), s = fe(), f = Ae(y), w = fe(), b = V("p"), D = V("span"), I = Ae(U), R(a, "class", "BalanceModalText"), R(D, "class", "BalanceModalAmount"), R(b, "class", "BalanceModalValue"), R(e, "class", "BalanceModalRowLine");
875
+ e = V("div"), a = V("p"), y = Ae(m), l = fe(), w = Ae(c), d = fe(), v = V("p"), D = V("span"), I = Ae(U), x(a, "class", "BalanceModalText"), x(D, "class", "BalanceModalAmount"), x(v, "class", "BalanceModalValue"), x(e, "class", "BalanceModalRowLine");
876
876
  },
877
877
  m(S, T) {
878
- he(S, e, T), E(e, a), E(a, d), E(a, s), E(a, f), E(e, w), E(e, b), E(b, D), E(D, I);
878
+ he(S, e, T), E(e, a), E(a, y), E(a, l), E(a, w), E(e, d), E(e, v), E(v, D), E(D, I);
879
879
  },
880
880
  p(S, T) {
881
881
  T[0] & /*$_, balances*/
882
- 260 && h !== (h = /*$_*/
882
+ 260 && m !== (m = /*$_*/
883
883
  S[8](
884
884
  /*k*/
885
885
  S[61]
886
- ) + "") && _e(d, h), T[0] & /*balances*/
887
- 4 && y !== (y = /*getProductType*/
886
+ ) + "") && _e(y, m), T[0] & /*balances*/
887
+ 4 && c !== (c = /*getProductType*/
888
888
  S[12](
889
889
  /*balance*/
890
890
  S[64]
891
- ) + "") && _e(f, y), T[0] & /*balances*/
891
+ ) + "") && _e(w, c), T[0] & /*balances*/
892
892
  4 && U !== (U = /*formatBalance*/
893
893
  S[10](
894
894
  /*balance*/
@@ -901,50 +901,54 @@ function st(o) {
901
901
  };
902
902
  }
903
903
  function lt(o) {
904
- let e, a, h = ze(
904
+ let e, a, m, y = ze(
905
905
  /*balances*/
906
906
  o[2][
907
907
  /*k*/
908
908
  o[61]
909
909
  ]
910
- ), d = [];
911
- for (let s = 0; s < h.length; s += 1)
912
- d[s] = st(it(o, h, s));
910
+ ), l = [];
911
+ for (let c = 0; c < y.length; c += 1)
912
+ l[c] = st(it(o, y, c));
913
913
  return {
914
914
  c() {
915
915
  e = V("div");
916
- for (let s = 0; s < d.length; s += 1)
917
- d[s].c();
918
- a = fe(), R(e, "class", "BalanceModalRowBoth");
916
+ for (let c = 0; c < l.length; c += 1)
917
+ l[c].c();
918
+ a = fe(), x(e, "class", m = "BalanceModalRowBoth " + /*k*/
919
+ o[61]);
919
920
  },
920
- m(s, y) {
921
- he(s, e, y);
922
- for (let f = 0; f < d.length; f += 1)
923
- d[f] && d[f].m(e, null);
921
+ m(c, w) {
922
+ he(c, e, w);
923
+ for (let d = 0; d < l.length; d += 1)
924
+ l[d] && l[d].m(e, null);
924
925
  E(e, a);
925
926
  },
926
- p(s, y) {
927
- if (y[0] & /*formatBalance, balances, getProductType, $_*/
927
+ p(c, w) {
928
+ if (w[0] & /*formatBalance, balances, getProductType, $_*/
928
929
  5380) {
929
- h = ze(
930
+ y = ze(
930
931
  /*balances*/
931
- s[2][
932
+ c[2][
932
933
  /*k*/
933
- s[61]
934
+ c[61]
934
935
  ]
935
936
  );
936
- let f;
937
- for (f = 0; f < h.length; f += 1) {
938
- const w = it(s, h, f);
939
- d[f] ? d[f].p(w, y) : (d[f] = st(w), d[f].c(), d[f].m(e, a));
937
+ let d;
938
+ for (d = 0; d < y.length; d += 1) {
939
+ const v = it(c, y, d);
940
+ l[d] ? l[d].p(v, w) : (l[d] = st(v), l[d].c(), l[d].m(e, a));
940
941
  }
941
- for (; f < d.length; f += 1)
942
- d[f].d(1);
943
- d.length = h.length;
942
+ for (; d < l.length; d += 1)
943
+ l[d].d(1);
944
+ l.length = y.length;
944
945
  }
946
+ w[0] & /*balances*/
947
+ 4 && m !== (m = "BalanceModalRowBoth " + /*k*/
948
+ c[61]) && x(e, "class", m);
945
949
  },
946
- d(s) {
947
- s && pe(e), dt(d, s);
950
+ d(c) {
951
+ c && pe(e), dt(l, c);
948
952
  }
949
953
  };
950
954
  }
@@ -952,37 +956,37 @@ function ct(o) {
952
956
  let e, a = (
953
957
  /*$_*/
954
958
  o[8]("LimitsButton") + ""
955
- ), h, d, s;
959
+ ), m, y, l;
956
960
  return {
957
961
  c() {
958
- e = V("button"), h = Ae(a), R(e, "class", "BalanceModalAction LimitsButton");
962
+ e = V("button"), m = Ae(a), x(e, "class", "BalanceModalAction LimitsButton");
959
963
  },
960
- m(y, f) {
961
- he(y, e, f), E(e, h), d || (s = Ie(
964
+ m(c, w) {
965
+ he(c, e, w), E(e, m), y || (l = Ie(
962
966
  e,
963
967
  "click",
964
968
  /*click_handler_3*/
965
969
  o[35]
966
- ), d = !0);
970
+ ), y = !0);
967
971
  },
968
- p(y, f) {
969
- f[0] & /*$_*/
972
+ p(c, w) {
973
+ w[0] & /*$_*/
970
974
  256 && a !== (a = /*$_*/
971
- y[8]("LimitsButton") + "") && _e(h, a);
975
+ c[8]("LimitsButton") + "") && _e(m, a);
972
976
  },
973
- d(y) {
974
- y && pe(e), d = !1, s();
977
+ d(c) {
978
+ c && pe(e), y = !1, l();
975
979
  }
976
980
  };
977
981
  }
978
982
  function ut(o) {
979
- let e, a, h;
983
+ let e, a, m;
980
984
  return {
981
985
  c() {
982
- e = V("button"), R(e, "class", "ShowBalanceModalOverlay");
986
+ e = V("button"), x(e, "class", "ShowBalanceModalOverlay");
983
987
  },
984
- m(d, s) {
985
- he(d, e, s), a || (h = Ie(
988
+ m(y, l) {
989
+ he(y, e, l), a || (m = Ie(
986
990
  e,
987
991
  "click",
988
992
  /*click_handler_4*/
@@ -990,50 +994,50 @@ function ut(o) {
990
994
  ), a = !0);
991
995
  },
992
996
  p: qe,
993
- d(d) {
994
- d && pe(e), a = !1, h();
997
+ d(y) {
998
+ y && pe(e), a = !1, m();
995
999
  }
996
1000
  };
997
1001
  }
998
1002
  function Vt(o) {
999
- let e, a, h, d;
1000
- function s(b, D) {
1003
+ let e, a, m, y;
1004
+ function l(v, D) {
1001
1005
  return (
1002
1006
  /*isLoading*/
1003
- b[3] ? zt : Ht
1007
+ v[3] ? zt : Ht
1004
1008
  );
1005
1009
  }
1006
- let y = s(o), f = y(o), w = (
1010
+ let c = l(o), w = c(o), d = (
1007
1011
  /*showBalance*/
1008
1012
  o[5] && ut(o)
1009
1013
  );
1010
1014
  return {
1011
1015
  c() {
1012
- e = V("div"), a = V("div"), f.c(), d = fe(), w && w.c(), R(a, "class", h = "ShowBalance " + /*mobileView*/
1016
+ e = V("div"), a = V("div"), w.c(), y = fe(), d && d.c(), x(a, "class", m = "ShowBalance " + /*mobileView*/
1013
1017
  (o[6] ? "Mobile" : ""));
1014
1018
  },
1015
- m(b, D) {
1016
- he(b, e, D), E(e, a), f.m(a, null), E(e, d), w && w.m(e, null), o[37](e);
1019
+ m(v, D) {
1020
+ he(v, e, D), E(e, a), w.m(a, null), E(e, y), d && d.m(e, null), o[37](e);
1017
1021
  },
1018
- p(b, D) {
1019
- y === (y = s(b)) && f ? f.p(b, D) : (f.d(1), f = y(b), f && (f.c(), f.m(a, null))), D[0] & /*mobileView*/
1020
- 64 && h !== (h = "ShowBalance " + /*mobileView*/
1021
- (b[6] ? "Mobile" : "")) && R(a, "class", h), /*showBalance*/
1022
- b[5] ? w ? w.p(b, D) : (w = ut(b), w.c(), w.m(e, null)) : w && (w.d(1), w = null);
1022
+ p(v, D) {
1023
+ c === (c = l(v)) && w ? w.p(v, D) : (w.d(1), w = c(v), w && (w.c(), w.m(a, null))), D[0] & /*mobileView*/
1024
+ 64 && m !== (m = "ShowBalance " + /*mobileView*/
1025
+ (v[6] ? "Mobile" : "")) && x(a, "class", m), /*showBalance*/
1026
+ v[5] ? d ? d.p(v, D) : (d = ut(v), d.c(), d.m(e, null)) : d && (d.d(1), d = null);
1023
1027
  },
1024
1028
  i: qe,
1025
1029
  o: qe,
1026
- d(b) {
1027
- b && pe(e), f.d(), w && w.d(), o[37](null);
1030
+ d(v) {
1031
+ v && pe(e), w.d(), d && d.d(), o[37](null);
1028
1032
  }
1029
1033
  };
1030
1034
  }
1031
1035
  function Ut(o, e, a) {
1032
- let h;
1033
- _t(o, Nt, (t) => a(8, h = t));
1034
- let { userid: d = "" } = e, { session: s = "" } = e, { endpoint: y = "" } = e, { lang: f = "en" } = e, { mbsource: w = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: D = "" } = e, { translationurl: U = "" } = e, { gmversion: I = "gm16" } = e, { displaybalanceoption: S = "All" } = e, { totalcalculationmode: T = "totalCashAmount" } = e, { primarybalancemode: H } = e, { balancelimitsbutton: me = "false" } = e, { hideproducttype: ce = "" } = e, { currencylocale: Be = "en" } = e, { currencydisplay: P = "symbol" } = e, { maximumfractiondigits: q = "2" } = e, { minimumfractiondigits: ne = "0" } = e, { customdisplayformat: le = "" } = e, { alwaysshowdecimals: ge = "true" } = e, W, O = !0, F = !1, x = !1, z = !1, j = !1, Te = window.navigator.userAgent, ye, ue = "", J = [], re, Se = "0";
1035
- const c = {}, ae = ["totalCashAmount", "totalRealAmount"], De = () => {
1036
- fetch(U).then((t) => t.json()).then((t) => Object.keys(t).forEach((l) => at(l, t[l]))).catch((t) => console.log(t));
1036
+ let m;
1037
+ _t(o, Nt, (t) => a(8, m = t));
1038
+ let { userid: y = "" } = e, { session: l = "" } = e, { endpoint: c = "" } = e, { lang: w = "en" } = e, { mbsource: d = "" } = e, { clientstyling: v = "" } = e, { clientstylingurl: D = "" } = e, { translationurl: U = "" } = e, { gmversion: I = "gm16" } = e, { displaybalanceoption: S = "All" } = e, { totalcalculationmode: T = "totalCashAmount" } = e, { primarybalancemode: H } = e, { balancelimitsbutton: me = "false" } = e, { hideproducttype: ce = "" } = e, { currencylocale: Be = "en" } = e, { currencydisplay: P = "symbol" } = e, { maximumfractiondigits: q = "2" } = e, { minimumfractiondigits: ne = "0" } = e, { customdisplayformat: le = "" } = e, { alwaysshowdecimals: ge = "true" } = e, W, O = !0, F = !1, R = !1, z = !1, j = !1, Te = window.navigator.userAgent, ye, ue = "", J = [], re, Se = "0";
1039
+ const u = {}, ae = ["totalCashAmount", "totalRealAmount"], De = () => {
1040
+ fetch(U).then((t) => t.json()).then((t) => Object.keys(t).forEach((s) => at(s, t[s]))).catch((t) => console.log(t));
1037
1041
  };
1038
1042
  Object.keys(nt).forEach((t) => at(t, nt[t]));
1039
1043
  const we = (t) => {
@@ -1065,7 +1069,7 @@ function Ut(o, e, a) {
1065
1069
  }, ke = (t) => {
1066
1070
  if (le)
1067
1071
  return Ve(t);
1068
- const l = Be || f, m = {
1072
+ const s = Be || w, h = {
1069
1073
  style: "currency",
1070
1074
  currency: ue,
1071
1075
  useGrouping: !0,
@@ -1073,67 +1077,67 @@ function Ut(o, e, a) {
1073
1077
  maximumFractionDigits: q === "" || isNaN(Number(q)) ? 2 : Number(q),
1074
1078
  minimumFractionDigits: ne === "" || isNaN(Number(ne)) ? 0 : Number(ne)
1075
1079
  };
1076
- return new Intl.NumberFormat(l, m).format(t);
1080
+ return new Intl.NumberFormat(s, h).format(t);
1077
1081
  }, Ve = (t) => {
1078
- const l = [];
1079
- let m = "";
1082
+ const s = [];
1083
+ let h = "";
1080
1084
  for (const B of le)
1081
1085
  switch (B) {
1082
1086
  default:
1083
- m += B;
1087
+ h += B;
1084
1088
  break;
1085
1089
  case "{":
1086
- m && l.push(m), m = "";
1090
+ h && s.push(h), h = "";
1087
1091
  break;
1088
1092
  case "}":
1089
- const [A, C] = m.split("|");
1090
- if (m = "", A.toLowerCase() === "currency")
1091
- m = ue;
1093
+ const [A, C] = h.split("|");
1094
+ if (h = "", A.toLowerCase() === "currency")
1095
+ h = ue;
1092
1096
  else if (A.toLowerCase() === "amount") {
1093
1097
  let p = ",", G = ".", se = 2;
1094
1098
  C && (C[0] !== " " && (p = C[0]), C[1] !== " " && (G = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (se = Number(C[2])));
1095
1099
  let [ee, Ee] = String(Math.floor(t * Ke(10, se)) / Ke(10, se)).split(".");
1096
- m += ee[0];
1100
+ h += ee[0];
1097
1101
  for (let xe = 1; xe < ee.length; ++xe)
1098
- (ee.length - xe) % 3 === 0 ? m += p + ee[xe] : m += ee[xe];
1102
+ (ee.length - xe) % 3 === 0 ? h += p + ee[xe] : h += ee[xe];
1099
1103
  let X = Ee || "";
1100
1104
  const Ne = ge === "true", de = Number(q);
1101
1105
  if (Ne)
1102
1106
  X = X.padEnd(de || 2, "0").substring(0, de);
1103
1107
  else if (!X)
1104
1108
  break;
1105
- m += G + X;
1109
+ h += G + X;
1106
1110
  }
1107
- m && l.push(m), m = "";
1111
+ h && s.push(h), h = "";
1108
1112
  break;
1109
1113
  }
1110
- return l.push(m), l.join("");
1114
+ return s.push(h), s.join("");
1111
1115
  }, Ue = () => et(this, null, function* () {
1112
- var l, m, B;
1116
+ var s, h, B;
1113
1117
  a(3, O = !0);
1114
- const t = new URL(`${y}/v1/player/${d}/account`);
1118
+ const t = new URL(`${c}/v1/player/${y}/account`);
1115
1119
  try {
1116
1120
  const A = yield fetch(t, {
1117
1121
  method: "GET",
1118
- headers: { "X-SessionID": s }
1122
+ headers: { "X-SessionID": l }
1119
1123
  }), C = yield A.json();
1120
1124
  if (A.ok)
1121
- window.postMessage({ type: "BalancedFetched" }, window.location.href), J = C.items, ue = (l = J.find((p) => p.displayName === "Casino")) == null ? void 0 : l.currency, a(2, c.Total = [{ amount: C.totalAmount[ue] }], c), a(
1125
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), J = C.items, ue = (s = J.find((p) => p.displayName === "Casino")) == null ? void 0 : s.currency, a(2, u.Total = [{ amount: C.totalAmount[ue] }], u), a(
1122
1126
  2,
1123
- c.Real = [
1127
+ u.Real = [
1124
1128
  {
1125
- amount: (m = J.find((p) => p.displayName === "Casino")) == null ? void 0 : m.balanceAmount
1129
+ amount: (h = J.find((p) => p.displayName === "Casino")) == null ? void 0 : h.balanceAmount
1126
1130
  }
1127
1131
  ],
1128
- c
1132
+ u
1129
1133
  ), a(
1130
1134
  2,
1131
- c.Bonus = [
1135
+ u.Bonus = [
1132
1136
  {
1133
1137
  amount: (B = J.find((p) => p.displayName === "UBS")) == null ? void 0 : B.balanceAmount
1134
1138
  }
1135
1139
  ],
1136
- c
1140
+ u
1137
1141
  );
1138
1142
  else
1139
1143
  throw new Error("Failed to fetch balance data !");
@@ -1144,28 +1148,28 @@ function Ut(o, e, a) {
1144
1148
  }
1145
1149
  }), Pe = () => {
1146
1150
  a(3, O = !0);
1147
- const t = new URL(`${y}/v2/player/${d}/balance`), l = new Headers();
1148
- l.append("X-SessionID", s), fetch(t, { method: "GET", headers: l }).then((B) => B.json()).then((B) => {
1151
+ const t = new URL(`${c}/v2/player/${y}/balance`), s = new Headers();
1152
+ s.append("X-SessionID", l), fetch(t, { method: "GET", headers: s }).then((B) => B.json()).then((B) => {
1149
1153
  B[T] || a(13, T = ae[0]);
1150
1154
  const A = B.items.find((p) => p.type === "Real" && p.walletAccountType === "Ordinary");
1151
- if (ue = A.currency, x = !!A.productType, a(2, c.Total = [{ amount: 0 }], c), a(2, c.Real = [], c), a(2, c.Bonus = [], c), a(2, c.Credit = [], c), !x) {
1155
+ if (ue = A.currency, R = !!A.productType, a(2, u.Total = [{ amount: 0 }], u), a(2, u.Real = [], u), a(2, u.Bonus = [], u), a(2, u.Credit = [], u), !R) {
1152
1156
  re = {
1153
1157
  lastOrdinaryAfterAmount: 0,
1154
1158
  showCreditLineAfterAmount: !1
1155
- }, a(2, c.Total[0].amount = B[T][ue], c);
1159
+ }, a(2, u.Total[0].amount = B[T][ue], u);
1156
1160
  for (const p of B.items)
1157
1161
  switch (p.type) {
1158
1162
  case "Bonus":
1159
- c.Bonus.length === 0 ? c.Bonus.push({ amount: p.amount }) : a(2, c.Bonus[0].amount += p.amount, c);
1163
+ u.Bonus.length === 0 ? u.Bonus.push({ amount: p.amount }) : a(2, u.Bonus[0].amount += p.amount, u);
1160
1164
  break;
1161
1165
  case "Real":
1162
- if (p.creditLine && c.Credit.length === 0 && c.Credit.push({ amount: p.creditLine }), T === "totalRealAmount")
1166
+ if (p.creditLine && u.Credit.length === 0 && u.Credit.push({ amount: p.creditLine }), T === "totalRealAmount")
1163
1167
  continue;
1164
- c.Real.length === 0 ? c.Real.push({ amount: p.amount }) : a(2, c.Real[0].amount += p.amount, c);
1168
+ u.Real.length === 0 ? u.Real.push({ amount: p.amount }) : a(2, u.Real[0].amount += p.amount, u);
1165
1169
  break;
1166
1170
  }
1167
- for (const [p, G] of Object.entries(c))
1168
- G.length < 1 && delete c[p];
1171
+ for (const [p, G] of Object.entries(u))
1172
+ G.length < 1 && delete u[p];
1169
1173
  a(3, O = !1);
1170
1174
  return;
1171
1175
  }
@@ -1185,16 +1189,16 @@ function Ut(o, e, a) {
1185
1189
  let G;
1186
1190
  switch (p.type) {
1187
1191
  case "Bonus":
1188
- G = c.Bonus.findIndex((se) => se.productType === p.productType), G > 0 ? a(2, c.Bonus[G].amount += p.amount, c) : c.Bonus.push({
1192
+ G = u.Bonus.findIndex((se) => se.productType === p.productType), G > 0 ? a(2, u.Bonus[G].amount += p.amount, u) : u.Bonus.push({
1189
1193
  amount: p.amount,
1190
1194
  productType: p.productType
1191
1195
  });
1192
1196
  break;
1193
1197
  case "Real":
1194
- p.creditLine && c.Credit.push({
1198
+ p.creditLine && u.Credit.push({
1195
1199
  amount: p.creditLine,
1196
1200
  productType: p.productType
1197
- }), G = c.Real.findIndex((se) => se.productType === p.productType), G > 0 ? a(2, c.Real[G].amount += p.amount, c) : c.Real.push({
1201
+ }), G = u.Real.findIndex((se) => se.productType === p.productType), G > 0 ? a(2, u.Real[G].amount += p.amount, u) : u.Real.push({
1198
1202
  amount: p.amount,
1199
1203
  productType: p.productType
1200
1204
  });
@@ -1202,93 +1206,93 @@ function Ut(o, e, a) {
1202
1206
  }
1203
1207
  }
1204
1208
  je();
1205
- for (const [p, G] of Object.entries(c))
1206
- G.length < 1 && delete c[p];
1209
+ for (const [p, G] of Object.entries(u))
1210
+ G.length < 1 && delete u[p];
1207
1211
  window.postMessage({ type: "playerBalanceInfo", balance: B }, window.location.href), a(3, O = !1);
1208
1212
  }).catch((B) => {
1209
1213
  throw a(3, O = !1), console.log("Balance fetch error", B), new Error("Failed to fetch balance data!");
1210
1214
  });
1211
1215
  }, Le = () => {
1212
- if (ye && ye.close(), s.length < 1)
1216
+ if (ye && ye.close(), l.length < 1)
1213
1217
  return;
1214
- let t, l;
1218
+ let t, s;
1215
1219
  switch (I) {
1216
1220
  case "gm16":
1217
- t = new URL(`${y}/v2/player/${d}/information/updates`), l = (A) => Ge(A);
1221
+ t = new URL(`${c}/v2/player/${y}/information/updates`), s = (A) => Ge(A);
1218
1222
  break;
1219
1223
  case "gmcore":
1220
- t = new URL(`${y}/v1/player/${d}/balance/updates`), l = (A) => Ce(A);
1224
+ t = new URL(`${c}/v1/player/${y}/balance/updates`), s = (A) => Ce(A);
1221
1225
  break;
1222
1226
  }
1223
- const m = {
1227
+ const h = {
1224
1228
  accept: "text/event-stream",
1225
- "X-SessionId": s
1226
- }, B = new It.EventSourcePolyfill(t, { headers: m });
1227
- ye = B, B.addEventListener("message", l);
1229
+ "X-SessionId": l
1230
+ }, B = new It.EventSourcePolyfill(t, { headers: h });
1231
+ ye = B, B.addEventListener("message", s);
1228
1232
  }, Re = (t) => {
1229
- let l;
1233
+ let s;
1230
1234
  try {
1231
- l = JSON.parse(t);
1232
- } catch (m) {
1233
- console.log("Balance stream failed: ", m);
1235
+ s = JSON.parse(t);
1236
+ } catch (h) {
1237
+ console.log("Balance stream failed: ", h);
1234
1238
  return;
1235
1239
  }
1236
- return l;
1240
+ return s;
1237
1241
  }, Ce = (t) => {
1238
1242
  var A, C;
1239
- const l = Re(t.data);
1240
- if (!l) {
1243
+ const s = Re(t.data);
1244
+ if (!s) {
1241
1245
  Le();
1242
1246
  return;
1243
1247
  }
1244
- let m = "0";
1245
- const B = l.balanceChange;
1248
+ let h = "0";
1249
+ const B = s.balanceChange;
1246
1250
  J = J.map((p) => (B && B[p.id] && (p = $e(Ze({}, p), {
1247
1251
  balanceAmount: B[p.id].afterAmount
1248
- })), m = (parseFloat(p == null ? void 0 : p.balanceAmount) + parseFloat(m)).toString(), p)), a(2, c.Real = [{ amount: (A = J[0]) == null ? void 0 : A.balanceAmount }], c), a(2, c.Bonus = [{ amount: (C = J[1]) == null ? void 0 : C.balanceAmount }], c), a(2, c.Total = [{ amount: Number(m) }], c);
1249
- }, $ = (t, l, m) => {
1252
+ })), h = (parseFloat(p == null ? void 0 : p.balanceAmount) + parseFloat(h)).toString(), p)), a(2, u.Real = [{ amount: (A = J[0]) == null ? void 0 : A.balanceAmount }], u), a(2, u.Bonus = [{ amount: (C = J[1]) == null ? void 0 : C.balanceAmount }], u), a(2, u.Total = [{ amount: Number(h) }], u);
1253
+ }, $ = (t, s, h) => {
1250
1254
  let B = null;
1251
- switch (m.walletAccountType) {
1255
+ switch (h.walletAccountType) {
1252
1256
  case "Ordinary":
1253
- (m.afterAmount !== m.affectedAmount || l.lastOrdinaryAfterAmount === 0) && (l.lastOrdinaryAfterAmount = m.afterAmount, l.showCreditLineAfterAmount || (B = m.afterAmount));
1257
+ (h.afterAmount !== h.affectedAmount || s.lastOrdinaryAfterAmount === 0) && (s.lastOrdinaryAfterAmount = h.afterAmount, s.showCreditLineAfterAmount || (B = h.afterAmount));
1254
1258
  break;
1255
1259
  case "CreditLine":
1256
- m.afterAmount !== 0 ? (B = m.afterAmount, l.showCreditLineAfterAmount = !0) : (B = l.lastOrdinaryAfterAmount, l.showCreditLineAfterAmount = !1);
1260
+ h.afterAmount !== 0 ? (B = h.afterAmount, s.showCreditLineAfterAmount = !0) : (B = s.lastOrdinaryAfterAmount, s.showCreditLineAfterAmount = !1);
1257
1261
  break;
1258
1262
  default:
1259
- B = m.afterAmount;
1263
+ B = h.afterAmount;
1260
1264
  }
1261
1265
  return B === null ? t : B;
1262
1266
  }, je = () => {
1263
1267
  switch (T) {
1264
1268
  case "totalCashAmount":
1265
1269
  let t = 0;
1266
- for (const m of ["Real", "Bonus"])
1267
- for (const B of c[m])
1270
+ for (const h of ["Real", "Bonus"])
1271
+ for (const B of u[h])
1268
1272
  t += Math.max(B.amount, 0);
1269
- a(2, c.Total[0].amount = t, c);
1273
+ a(2, u.Total[0].amount = t, u);
1270
1274
  break;
1271
1275
  case "totalRealAmount":
1272
- if (!x)
1276
+ if (!R)
1273
1277
  return;
1274
- let l = 0;
1275
- for (const m of c.Real)
1276
- l += m.amount;
1277
- a(2, c.Total[0].amount = l, c);
1278
+ let s = 0;
1279
+ for (const h of u.Real)
1280
+ s += h.amount;
1281
+ a(2, u.Total[0].amount = s, u);
1278
1282
  }
1279
1283
  }, Ge = (t) => {
1280
- const l = Re(t.data);
1281
- if (!l) {
1284
+ const s = Re(t.data);
1285
+ if (!s) {
1282
1286
  Le();
1283
1287
  return;
1284
1288
  }
1285
- if (He(l == null ? void 0 : l.type) || l.type !== "BALANCE_UPDATE_V2")
1289
+ if (He(s == null ? void 0 : s.type) || s.type !== "BALANCE_UPDATE_V2")
1286
1290
  return;
1287
- const m = l.body.balanceChange;
1288
- for (const [B, A] of Object.entries(m))
1289
- if (T === "totalRealAmount" && B === "Real" && !x && a(2, c.Total[0].amount = $(c.Total[0].amount, re, A), c), !!c[B])
1290
- for (const C of c[B]) {
1291
- if (!x) {
1291
+ const h = s.body.balanceChange;
1292
+ for (const [B, A] of Object.entries(h))
1293
+ if (T === "totalRealAmount" && B === "Real" && !R && a(2, u.Total[0].amount = $(u.Total[0].amount, re, A), u), !!u[B])
1294
+ for (const C of u[B]) {
1295
+ if (!R) {
1292
1296
  C.amount = B === "Real" ? $(C.amount, re, A) : A.afterAmount;
1293
1297
  continue;
1294
1298
  }
@@ -1308,7 +1312,7 @@ function Ut(o, e, a) {
1308
1312
  }, He = (t) => t === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, n = () => {
1309
1313
  ae.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${ae}. Using default value ('${ae[0]}').`), a(13, T = ae[0]));
1310
1314
  }, r = () => {
1311
- switch (Ft(f), n(), I) {
1315
+ switch (Ft(w), n(), I) {
1312
1316
  case "gmcore":
1313
1317
  Ue();
1314
1318
  break;
@@ -1318,9 +1322,9 @@ function Ut(o, e, a) {
1318
1322
  default:
1319
1323
  throw Error(`Invalid apiversion attribute: ${I}`);
1320
1324
  }
1321
- }, u = (t) => {
1322
- const { data: { type: l } = {} } = t || {};
1323
- switch (l) {
1325
+ }, f = (t) => {
1326
+ const { data: { type: s } = {} } = t || {};
1327
+ switch (s) {
1324
1328
  case "LogoutSuccessfull":
1325
1329
  ye.close();
1326
1330
  break;
@@ -1330,12 +1334,12 @@ function Ut(o, e, a) {
1330
1334
  }
1331
1335
  }, i = () => {
1332
1336
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
1333
- }, v = (t) => {
1334
- const l = ce.split(",").map((m) => m.trim());
1335
- return !t.productType || l.includes(t.productType) ? "" : h(t.productType);
1337
+ }, b = (t) => {
1338
+ const s = ce.split(",").map((h) => h.trim());
1339
+ return !t.productType || s.includes(t.productType) ? "" : m(t.productType);
1336
1340
  };
1337
- At(() => (window.addEventListener("message", u, !1), a(6, j = Lt(Te)), () => {
1338
- window.removeEventListener("message", u), ye && ye.close();
1341
+ At(() => (window.addEventListener("message", f, !1), a(6, j = Lt(Te)), () => {
1342
+ window.removeEventListener("message", f), ye && ye.close();
1339
1343
  }));
1340
1344
  const g = () => we("balance"), _ = () => we("closebalance"), N = () => Oe("deposit"), L = () => Oe("limits"), M = () => we("closebalance");
1341
1345
  function k(t) {
@@ -1344,45 +1348,45 @@ function Ut(o, e, a) {
1344
1348
  });
1345
1349
  }
1346
1350
  return o.$$set = (t) => {
1347
- "userid" in t && a(14, d = t.userid), "session" in t && a(15, s = t.session), "endpoint" in t && a(16, y = t.endpoint), "lang" in t && a(17, f = t.lang), "mbsource" in t && a(18, w = t.mbsource), "clientstyling" in t && a(19, b = t.clientstyling), "clientstylingurl" in t && a(20, D = t.clientstylingurl), "translationurl" in t && a(21, U = t.translationurl), "gmversion" in t && a(22, I = t.gmversion), "displaybalanceoption" in t && a(23, S = t.displaybalanceoption), "totalcalculationmode" in t && a(13, T = t.totalcalculationmode), "primarybalancemode" in t && a(24, H = t.primarybalancemode), "balancelimitsbutton" in t && a(0, me = t.balancelimitsbutton), "hideproducttype" in t && a(25, ce = t.hideproducttype), "currencylocale" in t && a(26, Be = t.currencylocale), "currencydisplay" in t && a(27, P = t.currencydisplay), "maximumfractiondigits" in t && a(28, q = t.maximumfractiondigits), "minimumfractiondigits" in t && a(29, ne = t.minimumfractiondigits), "customdisplayformat" in t && a(30, le = t.customdisplayformat), "alwaysshowdecimals" in t && a(31, ge = t.alwaysshowdecimals);
1351
+ "userid" in t && a(14, y = t.userid), "session" in t && a(15, l = t.session), "endpoint" in t && a(16, c = t.endpoint), "lang" in t && a(17, w = t.lang), "mbsource" in t && a(18, d = t.mbsource), "clientstyling" in t && a(19, v = t.clientstyling), "clientstylingurl" in t && a(20, D = t.clientstylingurl), "translationurl" in t && a(21, U = t.translationurl), "gmversion" in t && a(22, I = t.gmversion), "displaybalanceoption" in t && a(23, S = t.displaybalanceoption), "totalcalculationmode" in t && a(13, T = t.totalcalculationmode), "primarybalancemode" in t && a(24, H = t.primarybalancemode), "balancelimitsbutton" in t && a(0, me = t.balancelimitsbutton), "hideproducttype" in t && a(25, ce = t.hideproducttype), "currencylocale" in t && a(26, Be = t.currencylocale), "currencydisplay" in t && a(27, P = t.currencydisplay), "maximumfractiondigits" in t && a(28, q = t.maximumfractiondigits), "minimumfractiondigits" in t && a(29, ne = t.minimumfractiondigits), "customdisplayformat" in t && a(30, le = t.customdisplayformat), "alwaysshowdecimals" in t && a(31, ge = t.alwaysshowdecimals);
1348
1352
  }, o.$$.update = () => {
1349
1353
  o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1350
- 12828672 && y && d && s && f && I && S && r(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1351
- 4308992 && y && d && s && I && Le(), o.$$.dirty[0] & /*translationurl*/
1354
+ 12828672 && c && y && l && w && I && S && r(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1355
+ 4308992 && c && y && l && I && Le(), o.$$.dirty[0] & /*translationurl*/
1352
1356
  2097152 && U && De(), o.$$.dirty[0] & /*balances*/
1353
- 4 && c.Total && i(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1354
- 524290 && b && W && Mt(W, b), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1357
+ 4 && u.Total && i(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1358
+ 524290 && v && W && Mt(W, v), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1355
1359
  1048578 && D && W && Dt(W, D), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
1356
- 262146 && w && W && kt(W, `${w}.Style`), o.$$.dirty[0] & /*primarybalancemode, balances*/
1360
+ 262146 && d && W && kt(W, `${d}.Style`), o.$$.dirty[0] & /*primarybalancemode, balances*/
1357
1361
  16777220 && a(7, Se = (() => {
1358
1362
  switch (H) {
1359
1363
  case "Real":
1360
- return c.Real ? ke(c.Real[0].amount) : "0";
1364
+ return u.Real ? ke(u.Real[0].amount) : "0";
1361
1365
  default:
1362
- return c.Total ? ke(c.Total[0].amount) : "0";
1366
+ return u.Total ? ke(u.Total[0].amount) : "0";
1363
1367
  }
1364
1368
  })());
1365
1369
  }, [
1366
1370
  me,
1367
1371
  W,
1368
- c,
1372
+ u,
1369
1373
  O,
1370
1374
  F,
1371
1375
  z,
1372
1376
  j,
1373
1377
  Se,
1374
- h,
1378
+ m,
1375
1379
  we,
1376
1380
  ke,
1377
1381
  Oe,
1378
- v,
1382
+ b,
1379
1383
  T,
1380
- d,
1381
- s,
1382
1384
  y,
1383
- f,
1385
+ l,
1386
+ c,
1384
1387
  w,
1385
- b,
1388
+ d,
1389
+ v,
1386
1390
  D,
1387
1391
  U,
1388
1392
  I,