@everymatrix/casino-header-controller 1.53.11 → 1.54.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.
@@ -1,11 +1,39 @@
1
- import { b as ct, $ as ut, L as dt, S as ft, i as pt, f as Y, c as ht, s as mt, d as gt, g as N, e as oe, u as V, j as fe, v as R, n as qe, k as pe, l as yt, o as vt, w as Ve, p as wt, t as ue, B as bt, x as de, r as je, y as rt, z as Bt, D as Ct } from "./CasinoHamburgerMenu-Didvw1sl.js";
2
- function Qe(o, e) {
3
- ct(o, e);
1
+ var ht = Object.defineProperty, mt = Object.defineProperties;
2
+ var gt = Object.getOwnPropertyDescriptors;
3
+ var Qe = Object.getOwnPropertySymbols;
4
+ var yt = Object.prototype.hasOwnProperty, vt = Object.prototype.propertyIsEnumerable;
5
+ var Ze = (o, e, t) => e in o ? ht(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, $e = (o, e) => {
6
+ for (var t in e || (e = {}))
7
+ yt.call(e, t) && Ze(o, t, e[t]);
8
+ if (Qe)
9
+ for (var t of Qe(e))
10
+ vt.call(e, t) && Ze(o, t, e[t]);
11
+ return o;
12
+ }, et = (o, e) => mt(o, gt(e));
13
+ var tt = (o, e, t) => new Promise((r, c) => {
14
+ var u = (m) => {
15
+ try {
16
+ f(t.next(m));
17
+ } catch (y) {
18
+ c(y);
19
+ }
20
+ }, g = (m) => {
21
+ try {
22
+ f(t.throw(m));
23
+ } catch (y) {
24
+ c(y);
25
+ }
26
+ }, f = (m) => m.done ? r(m.value) : Promise.resolve(m.value).then(u, g);
27
+ f((t = t.apply(o, e)).next());
28
+ });
29
+ import { b as wt, $ as bt, L as Bt, S as Ct, i as Tt, f as Y, c as St, s as _t, d as At, g as N, e as oe, u as V, j as fe, v as R, n as qe, k as pe, l as Rt, o as Et, w as Ve, p as xt, t as ue, B as Dt, x as de, r as je, y as ut, z as Lt, D as Mt } from "./CasinoHamburgerMenu-qYeWUDPR.js";
30
+ function nt(o, e) {
31
+ wt(o, e);
4
32
  }
5
- function Tt(o) {
6
- ut.set(o);
33
+ function Ft(o) {
34
+ bt.set(o);
7
35
  }
8
- const Ze = {
36
+ const at = {
9
37
  en: {
10
38
  Title: "Your Balance",
11
39
  Total: "Total Balance",
@@ -212,31 +240,31 @@ var We = { exports: {} };
212
240
  * https://github.com/Yaffle/EventSource/
213
241
  */
214
242
  (function(o, e) {
215
- (function(n) {
216
- var r = n.setTimeout, l = n.clearTimeout, u = n.XMLHttpRequest, m = n.XDomainRequest, p = n.ActiveXObject, g = n.EventSource, y = n.document, x = n.Promise, F = n.fetch, B = n.Response, C = n.TextDecoder, _ = n.TextEncoder, U = n.AbortController;
217
- if (typeof window < "u" && typeof y < "u" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(t) {
243
+ (function(t) {
244
+ var r = t.setTimeout, c = t.clearTimeout, u = t.XMLHttpRequest, g = t.XDomainRequest, f = t.ActiveXObject, m = t.EventSource, y = t.document, x = t.Promise, F = t.fetch, B = t.Response, C = t.TextDecoder, _ = t.TextEncoder, U = t.AbortController;
245
+ if (typeof window != "undefined" && typeof y != "undefined" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(n) {
218
246
  y.readyState = "complete";
219
- }, !1)), u == null && p != null && (u = function() {
220
- return new p("Microsoft.XMLHTTP");
221
- }), Object.create == null && (Object.create = function(t) {
247
+ }, !1)), u == null && f != null && (u = function() {
248
+ return new f("Microsoft.XMLHTTP");
249
+ }), Object.create == null && (Object.create = function(n) {
222
250
  function a() {
223
251
  }
224
- return a.prototype = t, new a();
252
+ return a.prototype = n, new a();
225
253
  }), Date.now || (Date.now = function() {
226
254
  return (/* @__PURE__ */ new Date()).getTime();
227
255
  }), U == null) {
228
256
  var M = F;
229
- F = function(t, a) {
230
- var s = a.signal;
231
- return M(t, { headers: a.headers, credentials: a.credentials, cache: a.cache }).then(function(i) {
232
- var d = i.body.getReader();
233
- return s._reader = d, s._aborted && s._reader.cancel(), {
257
+ F = function(n, a) {
258
+ var l = a.signal;
259
+ return M(n, { headers: a.headers, credentials: a.credentials, cache: a.cache }).then(function(i) {
260
+ var s = i.body.getReader();
261
+ return l._reader = s, l._aborted && l._reader.cancel(), {
234
262
  status: i.status,
235
263
  statusText: i.statusText,
236
264
  headers: i.headers,
237
265
  body: {
238
266
  getReader: function() {
239
- return d;
267
+ return s;
240
268
  }
241
269
  }
242
270
  };
@@ -253,7 +281,7 @@ var We = { exports: {} };
253
281
  function H() {
254
282
  this.bitsNeeded = 0, this.codePoint = 0;
255
283
  }
256
- H.prototype.decode = function(t) {
284
+ H.prototype.decode = function(n) {
257
285
  function a(E, L, v) {
258
286
  if (v === 1)
259
287
  return E >= 128 >> L && E << L <= 2047;
@@ -263,7 +291,7 @@ var We = { exports: {} };
263
291
  return E >= 65536 >> L && E << L <= 1114111;
264
292
  throw new Error();
265
293
  }
266
- function s(E, L) {
294
+ function l(E, L) {
267
295
  if (E === 6 * 1)
268
296
  return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
269
297
  if (E === 6 * 2)
@@ -272,68 +300,68 @@ var We = { exports: {} };
272
300
  return 3;
273
301
  throw new Error();
274
302
  }
275
- for (var i = 65533, d = "", h = this.bitsNeeded, w = this.codePoint, k = 0; k < t.length; k += 1) {
276
- var S = t[k];
277
- h !== 0 && (S < 128 || S > 191 || !a(w << 6 | S & 63, h - 6, s(h, w))) && (h = 0, w = i, d += String.fromCharCode(w)), h === 0 ? (S >= 0 && S <= 127 ? (h = 0, w = S) : S >= 192 && S <= 223 ? (h = 6 * 1, w = S & 31) : S >= 224 && S <= 239 ? (h = 6 * 2, w = S & 15) : S >= 240 && S <= 247 ? (h = 6 * 3, w = S & 7) : (h = 0, w = i), h !== 0 && !a(w, h, s(h, w)) && (h = 0, w = i)) : (h -= 6, w = w << 6 | S & 63), h === 0 && (w <= 65535 ? d += String.fromCharCode(w) : (d += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), d += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
303
+ for (var i = 65533, s = "", h = this.bitsNeeded, w = this.codePoint, k = 0; k < n.length; k += 1) {
304
+ var S = n[k];
305
+ h !== 0 && (S < 128 || S > 191 || !a(w << 6 | S & 63, h - 6, l(h, w))) && (h = 0, w = i, s += String.fromCharCode(w)), h === 0 ? (S >= 0 && S <= 127 ? (h = 0, w = S) : S >= 192 && S <= 223 ? (h = 6 * 1, w = S & 31) : S >= 224 && S <= 239 ? (h = 6 * 2, w = S & 15) : S >= 240 && S <= 247 ? (h = 6 * 3, w = S & 7) : (h = 0, w = i), h !== 0 && !a(w, h, l(h, w)) && (h = 0, w = i)) : (h -= 6, w = w << 6 | S & 63), h === 0 && (w <= 65535 ? s += String.fromCharCode(w) : (s += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), s += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
278
306
  }
279
- return this.bitsNeeded = h, this.codePoint = w, d;
307
+ return this.bitsNeeded = h, this.codePoint = w, s;
280
308
  };
281
309
  var P = function() {
282
310
  try {
283
311
  return new C().decode(new _().encode("test"), { stream: !0 }) === "test";
284
- } catch (t) {
285
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + t);
312
+ } catch (n) {
313
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + n);
286
314
  }
287
315
  return !1;
288
316
  };
289
317
  (C == null || _ == null || !P()) && (C = H);
290
318
  var T = function() {
291
319
  };
292
- function A(t) {
293
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr = t, this._sendTimeout = 0, this._abort = T;
320
+ function A(n) {
321
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr = n, this._sendTimeout = 0, this._abort = T;
294
322
  }
295
- A.prototype.open = function(t, a) {
323
+ A.prototype.open = function(n, a) {
296
324
  this._abort(!0);
297
- var s = this, i = this._xhr, d = 1, h = 0;
325
+ var l = this, i = this._xhr, s = 1, h = 0;
298
326
  this._abort = function(v) {
299
- s._sendTimeout !== 0 && (l(s._sendTimeout), s._sendTimeout = 0), (d === 1 || d === 2 || d === 3) && (d = 4, i.onload = T, i.onerror = T, i.onabort = T, i.onprogress = T, i.onreadystatechange = T, i.abort(), h !== 0 && (l(h), h = 0), v || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), d = 0;
327
+ l._sendTimeout !== 0 && (c(l._sendTimeout), l._sendTimeout = 0), (s === 1 || s === 2 || s === 3) && (s = 4, i.onload = T, i.onerror = T, i.onabort = T, i.onprogress = T, i.onreadystatechange = T, i.abort(), h !== 0 && (c(h), h = 0), v || (l.readyState = 4, l.onabort(null), l.onreadystatechange())), s = 0;
300
328
  };
301
329
  var w = function() {
302
- if (d === 1) {
330
+ if (s === 1) {
303
331
  var v = 0, O = "", ie = void 0;
304
332
  if ("contentType" in i)
305
333
  v = 200, O = "OK", ie = i.contentType;
306
334
  else
307
335
  try {
308
336
  v = i.status, O = i.statusText, ie = i.getResponseHeader("Content-Type");
309
- } catch {
337
+ } catch (Le) {
310
338
  v = 0, O = "", ie = void 0;
311
339
  }
312
- v !== 0 && (d = 2, s.readyState = 2, s.status = v, s.statusText = O, s._contentType = ie, s.onreadystatechange());
340
+ v !== 0 && (s = 2, l.readyState = 2, l.status = v, l.statusText = O, l._contentType = ie, l.onreadystatechange());
313
341
  }
314
342
  }, k = function() {
315
- if (w(), d === 2 || d === 3) {
316
- d = 3;
343
+ if (w(), s === 2 || s === 3) {
344
+ s = 3;
317
345
  var v = "";
318
346
  try {
319
347
  v = i.responseText;
320
- } catch {
348
+ } catch (O) {
321
349
  }
322
- s.readyState = 3, s.responseText = v, s.onprogress();
350
+ l.readyState = 3, l.responseText = v, l.onprogress();
323
351
  }
324
352
  }, S = function(v, O) {
325
353
  if ((O == null || O.preventDefault == null) && (O = {
326
354
  preventDefault: T
327
- }), k(), d === 1 || d === 2 || d === 3) {
328
- if (d = 4, h !== 0 && (l(h), h = 0), s.readyState = 4, v === "load")
329
- s.onload(O);
355
+ }), k(), s === 1 || s === 2 || s === 3) {
356
+ if (s = 4, h !== 0 && (c(h), h = 0), l.readyState = 4, v === "load")
357
+ l.onload(O);
330
358
  else if (v === "error")
331
- s.onerror(O);
359
+ l.onerror(O);
332
360
  else if (v === "abort")
333
- s.onabort(O);
361
+ l.onabort(O);
334
362
  else
335
363
  throw new TypeError();
336
- s.onreadystatechange();
364
+ l.onreadystatechange();
337
365
  }
338
366
  }, E = function(v) {
339
367
  i != null && (i.readyState === 4 ? (!("onload" in i) || !("onerror" in i) || !("onabort" in i)) && S(i.responseText === "" ? "error" : "load", v) : i.readyState === 3 ? "onprogress" in i || k() : i.readyState === 2 && w());
@@ -350,23 +378,23 @@ var We = { exports: {} };
350
378
  S("abort", v);
351
379
  }), "onprogress" in i && (i.onprogress = k), "onreadystatechange" in i && (i.onreadystatechange = function(v) {
352
380
  E(v);
353
- }), ("contentType" in i || !("ontimeout" in u.prototype)) && (a += (a.indexOf("?") === -1 ? "?" : "&") + "padding=true"), i.open(t, a, !0), "readyState" in i && (h = r(function() {
381
+ }), ("contentType" in i || !("ontimeout" in u.prototype)) && (a += (a.indexOf("?") === -1 ? "?" : "&") + "padding=true"), i.open(n, a, !0), "readyState" in i && (h = r(function() {
354
382
  L();
355
383
  }, 0));
356
384
  }, A.prototype.abort = function() {
357
385
  this._abort(!1);
358
- }, A.prototype.getResponseHeader = function(t) {
386
+ }, A.prototype.getResponseHeader = function(n) {
359
387
  return this._contentType;
360
- }, A.prototype.setRequestHeader = function(t, a) {
361
- var s = this._xhr;
362
- "setRequestHeader" in s && s.setRequestHeader(t, a);
388
+ }, A.prototype.setRequestHeader = function(n, a) {
389
+ var l = this._xhr;
390
+ "setRequestHeader" in l && l.setRequestHeader(n, a);
363
391
  }, A.prototype.getAllResponseHeaders = function() {
364
392
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
365
393
  }, A.prototype.send = function() {
366
394
  if ((!("ontimeout" in u.prototype) || !("sendAsBinary" in u.prototype) && !("mozAnon" in u.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
367
- var t = this;
368
- t._sendTimeout = r(function() {
369
- t._sendTimeout = 0, t.send();
395
+ var n = this;
396
+ n._sendTimeout = r(function() {
397
+ n._sendTimeout = 0, n.send();
370
398
  }, 4);
371
399
  return;
372
400
  }
@@ -374,61 +402,61 @@ var We = { exports: {} };
374
402
  "withCredentials" in a && (a.withCredentials = this.withCredentials);
375
403
  try {
376
404
  a.send(void 0);
377
- } catch (s) {
378
- throw s;
405
+ } catch (l) {
406
+ throw l;
379
407
  }
380
408
  };
381
- function G(t) {
382
- return t.replace(/[A-Z]/g, function(a) {
409
+ function G(n) {
410
+ return n.replace(/[A-Z]/g, function(a) {
383
411
  return String.fromCharCode(a.charCodeAt(0) + 32);
384
412
  });
385
413
  }
386
- function D(t) {
387
- for (var a = /* @__PURE__ */ Object.create(null), s = t.split(`\r
388
- `), i = 0; i < s.length; i += 1) {
389
- var d = s[i], h = d.split(": "), w = h.shift(), k = h.join(": ");
414
+ function D(n) {
415
+ for (var a = /* @__PURE__ */ Object.create(null), l = n.split(`\r
416
+ `), i = 0; i < l.length; i += 1) {
417
+ var s = l[i], h = s.split(": "), w = h.shift(), k = h.join(": ");
390
418
  a[G(w)] = k;
391
419
  }
392
420
  this._map = a;
393
421
  }
394
- D.prototype.get = function(t) {
395
- return this._map[G(t)];
422
+ D.prototype.get = function(n) {
423
+ return this._map[G(n)];
396
424
  }, u != null && u.HEADERS_RECEIVED == null && (u.HEADERS_RECEIVED = 2);
397
425
  function W() {
398
426
  }
399
- W.prototype.open = function(t, a, s, i, d, h, w) {
400
- t.open("GET", d);
427
+ W.prototype.open = function(n, a, l, i, s, h, w) {
428
+ n.open("GET", s);
401
429
  var k = 0;
402
- t.onprogress = function() {
403
- var E = t.responseText, L = E.slice(k);
404
- k += L.length, s(L);
405
- }, t.onerror = function(E) {
430
+ n.onprogress = function() {
431
+ var E = n.responseText, L = E.slice(k);
432
+ k += L.length, l(L);
433
+ }, n.onerror = function(E) {
406
434
  E.preventDefault(), i(new Error("NetworkError"));
407
- }, t.onload = function() {
435
+ }, n.onload = function() {
408
436
  i(null);
409
- }, t.onabort = function() {
437
+ }, n.onabort = function() {
410
438
  i(null);
411
- }, t.onreadystatechange = function() {
412
- if (t.readyState === u.HEADERS_RECEIVED) {
413
- var E = t.status, L = t.statusText, v = t.getResponseHeader("Content-Type"), O = t.getAllResponseHeaders();
439
+ }, n.onreadystatechange = function() {
440
+ if (n.readyState === u.HEADERS_RECEIVED) {
441
+ var E = n.status, L = n.statusText, v = n.getResponseHeader("Content-Type"), O = n.getAllResponseHeaders();
414
442
  a(E, L, v, new D(O));
415
443
  }
416
- }, t.withCredentials = h;
444
+ }, n.withCredentials = h;
417
445
  for (var S in w)
418
- Object.prototype.hasOwnProperty.call(w, S) && t.setRequestHeader(S, w[S]);
419
- return t.send(), t;
446
+ Object.prototype.hasOwnProperty.call(w, S) && n.setRequestHeader(S, w[S]);
447
+ return n.send(), n;
420
448
  };
421
- function he(t) {
422
- this._headers = t;
449
+ function he(n) {
450
+ this._headers = n;
423
451
  }
424
- he.prototype.get = function(t) {
425
- return this._headers.get(t);
452
+ he.prototype.get = function(n) {
453
+ return this._headers.get(n);
426
454
  };
427
455
  function me() {
428
456
  }
429
- me.prototype.open = function(t, a, s, i, d, h, w) {
457
+ me.prototype.open = function(n, a, l, i, s, h, w) {
430
458
  var k = null, S = new U(), E = S.signal, L = new C();
431
- return F(d, {
459
+ return F(s, {
432
460
  headers: w,
433
461
  credentials: h ? "include" : "same-origin",
434
462
  signal: E,
@@ -441,7 +469,7 @@ var We = { exports: {} };
441
469
  O(void 0);
442
470
  else {
443
471
  var X = L.decode(Q.value, { stream: !0 });
444
- s(X), Le();
472
+ l(X), Le();
445
473
  }
446
474
  }).catch(function(Q) {
447
475
  ie(Q);
@@ -456,92 +484,92 @@ var We = { exports: {} };
456
484
  i(v);
457
485
  }), {
458
486
  abort: function() {
459
- k?.cancel(), S.abort();
487
+ k != null && k.cancel(), S.abort();
460
488
  }
461
489
  };
462
490
  };
463
- function f() {
491
+ function p() {
464
492
  this._listeners = /* @__PURE__ */ Object.create(null);
465
493
  }
466
- function ge(t) {
494
+ function ge(n) {
467
495
  r(function() {
468
- throw t;
496
+ throw n;
469
497
  }, 0);
470
498
  }
471
- f.prototype.dispatchEvent = function(t) {
472
- t.target = this;
473
- var a = this._listeners[t.type];
499
+ p.prototype.dispatchEvent = function(n) {
500
+ n.target = this;
501
+ var a = this._listeners[n.type];
474
502
  if (a != null)
475
- for (var s = a.length, i = 0; i < s; i += 1) {
476
- var d = a[i];
503
+ for (var l = a.length, i = 0; i < l; i += 1) {
504
+ var s = a[i];
477
505
  try {
478
- typeof d.handleEvent == "function" ? d.handleEvent(t) : d.call(this, t);
506
+ typeof s.handleEvent == "function" ? s.handleEvent(n) : s.call(this, n);
479
507
  } catch (h) {
480
508
  ge(h);
481
509
  }
482
510
  }
483
- }, f.prototype.addEventListener = function(t, a) {
484
- t = String(t);
485
- var s = this._listeners, i = s[t];
486
- i == null && (i = [], s[t] = i);
487
- for (var d = !1, h = 0; h < i.length; h += 1)
488
- i[h] === a && (d = !0);
489
- d || i.push(a);
490
- }, f.prototype.removeEventListener = function(t, a) {
491
- t = String(t);
492
- var s = this._listeners, i = s[t];
511
+ }, p.prototype.addEventListener = function(n, a) {
512
+ n = String(n);
513
+ var l = this._listeners, i = l[n];
514
+ i == null && (i = [], l[n] = i);
515
+ for (var s = !1, h = 0; h < i.length; h += 1)
516
+ i[h] === a && (s = !0);
517
+ s || i.push(a);
518
+ }, p.prototype.removeEventListener = function(n, a) {
519
+ n = String(n);
520
+ var l = this._listeners, i = l[n];
493
521
  if (i != null) {
494
- for (var d = [], h = 0; h < i.length; h += 1)
495
- i[h] !== a && d.push(i[h]);
496
- d.length === 0 ? delete s[t] : s[t] = d;
522
+ for (var s = [], h = 0; h < i.length; h += 1)
523
+ i[h] !== a && s.push(i[h]);
524
+ s.length === 0 ? delete l[n] : l[n] = s;
497
525
  }
498
526
  };
499
- function ye(t) {
500
- this.type = t, this.target = void 0;
527
+ function ye(n) {
528
+ this.type = n, this.target = void 0;
501
529
  }
502
- function Se(t, a) {
503
- ye.call(this, t), this.data = a.data, this.lastEventId = a.lastEventId;
530
+ function Se(n, a) {
531
+ ye.call(this, n), this.data = a.data, this.lastEventId = a.lastEventId;
504
532
  }
505
533
  Se.prototype = Object.create(ye.prototype);
506
- function _e(t, a) {
507
- ye.call(this, t), this.status = a.status, this.statusText = a.statusText, this.headers = a.headers;
534
+ function _e(n, a) {
535
+ ye.call(this, n), this.status = a.status, this.statusText = a.statusText, this.headers = a.headers;
508
536
  }
509
537
  _e.prototype = Object.create(ye.prototype);
510
- function Fe(t, a) {
511
- ye.call(this, t), this.error = a.error;
538
+ function Fe(n, a) {
539
+ ye.call(this, n), this.error = a.error;
512
540
  }
513
541
  Fe.prototype = Object.create(ye.prototype);
514
- var Ae = -1, ee = 0, re = 1, we = 2, be = -1, te = 0, Re = 1, Ee = 2, He = 3, ze = /^text\/event\-stream(;.*)?$/i, ke = 1e3, Ue = 18e6, xe = function(t, a) {
515
- var s = t == null ? a : parseInt(t, 10);
516
- return s !== s && (s = a), De(s);
517
- }, De = function(t) {
518
- return Math.min(Math.max(t, ke), Ue);
519
- }, ve = function(t, a, s) {
542
+ var Ae = -1, ee = 0, re = 1, we = 2, be = -1, te = 0, Re = 1, Ee = 2, He = 3, ze = /^text\/event\-stream(;.*)?$/i, ke = 1e3, Ue = 18e6, xe = function(n, a) {
543
+ var l = n == null ? a : parseInt(n, 10);
544
+ return l !== l && (l = a), De(l);
545
+ }, De = function(n) {
546
+ return Math.min(Math.max(n, ke), Ue);
547
+ }, ve = function(n, a, l) {
520
548
  try {
521
- typeof a == "function" && a.call(t, s);
549
+ typeof a == "function" && a.call(n, l);
522
550
  } catch (i) {
523
551
  ge(i);
524
552
  }
525
553
  };
526
- function J(t, a) {
527
- f.call(this), a = a || {}, 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, c(this, t, a);
554
+ function J(n, a) {
555
+ p.call(this), a = a || {}, 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, d(this, n, a);
528
556
  }
529
557
  function Pe() {
530
- return u != null && "withCredentials" in u.prototype || m == null ? new u() : new m();
558
+ return u != null && "withCredentials" in u.prototype || g == null ? new u() : new g();
531
559
  }
532
560
  var Ge = F != null && B != null && "body" in B.prototype;
533
- function c(t, a, s) {
561
+ function d(n, a, l) {
534
562
  a = String(a);
535
- var i = !!s.withCredentials, d = s.lastEventIdQueryParameterName || "lastEventId", h = De(1e3), w = xe(s.heartbeatTimeout, 45e3), k = "", S = h, E = !1, L = 0, v = s.headers || {}, O = s.Transport, ie = Ge && O == null ? void 0 : new A(O != null ? new O() : Pe()), Le = O != null && typeof O != "string" ? new O() : ie == null ? new me() : new W(), Q = void 0, X = 0, ne = Ae, Ce = "", Oe = "", se = "", Ne = "", K = te, Xe = 0, Be = 0, st = function(j, I, Z, $) {
563
+ var i = !!l.withCredentials, s = l.lastEventIdQueryParameterName || "lastEventId", h = De(1e3), w = xe(l.heartbeatTimeout, 45e3), k = "", S = h, E = !1, L = 0, v = l.headers || {}, O = l.Transport, ie = Ge && O == null ? void 0 : new A(O != null ? new O() : Pe()), Le = O != null && typeof O != "string" ? new O() : ie == null ? new me() : new W(), Q = void 0, X = 0, ne = Ae, Ce = "", Oe = "", se = "", Ne = "", K = te, Xe = 0, Be = 0, ft = function(j, I, Z, $) {
536
564
  if (ne === ee)
537
565
  if (j === 200 && Z != null && ze.test(Z)) {
538
- ne = re, E = Date.now(), S = h, t.readyState = re;
566
+ ne = re, E = Date.now(), S = h, n.readyState = re;
539
567
  var q = new _e("open", {
540
568
  status: j,
541
569
  statusText: I,
542
570
  headers: $
543
571
  });
544
- t.dispatchEvent(q), ve(t, t.onopen, q);
572
+ n.dispatchEvent(q), ve(n, n.onopen, q);
545
573
  } else {
546
574
  var z = "";
547
575
  j !== 200 ? (I && (I = I.replace(/\s+/g, " ")), z = "EventSource's response has a status " + j + " " + I + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (Z == null ? "-" : Z.replace(/\s+/g, " ")) + ". Aborting the connection.", Ke();
@@ -550,9 +578,9 @@ var We = { exports: {} };
550
578
  statusText: I,
551
579
  headers: $
552
580
  });
553
- t.dispatchEvent(q), ve(t, t.onerror, q), console.error(z);
581
+ n.dispatchEvent(q), ve(n, n.onerror, q), console.error(z);
554
582
  }
555
- }, lt = function(j) {
583
+ }, pt = function(j) {
556
584
  if (ne === re) {
557
585
  for (var I = -1, Z = 0; Z < j.length; Z += 1) {
558
586
  var $ = j.charCodeAt(Z);
@@ -569,7 +597,7 @@ var We = { exports: {} };
569
597
  K === Re && (Be = z + 1);
570
598
  var le = q.slice(Xe, Be - 1), ce = q.slice(Be + (Be < z && q.charCodeAt(Be) === 32 ? 1 : 0), z);
571
599
  le === "data" ? (Ce += `
572
- `, Ce += ce) : le === "id" ? Oe = ce : le === "event" ? se = ce : le === "retry" ? (h = xe(ce, h), S = h) : le === "heartbeatTimeout" && (w = xe(ce, w), X !== 0 && (l(X), X = r(function() {
600
+ `, Ce += ce) : le === "id" ? Oe = ce : le === "event" ? se = ce : le === "retry" ? (h = xe(ce, h), S = h) : le === "heartbeatTimeout" && (w = xe(ce, w), X !== 0 && (c(X), X = r(function() {
573
601
  Me();
574
602
  }, w)));
575
603
  }
@@ -580,7 +608,7 @@ var We = { exports: {} };
580
608
  data: Ce.slice(1),
581
609
  lastEventId: Oe
582
610
  });
583
- if (t.dispatchEvent(Te), se === "open" ? ve(t, t.onopen, Te) : se === "message" ? ve(t, t.onmessage, Te) : se === "error" && ve(t, t.onerror, Te), ne === we)
611
+ if (n.dispatchEvent(Te), se === "open" ? ve(n, n.onopen, Te) : se === "message" ? ve(n, n.onmessage, Te) : se === "error" && ve(n, n.onerror, Te), ne === we)
584
612
  return;
585
613
  }
586
614
  Ce = "", se = "";
@@ -592,14 +620,14 @@ var We = { exports: {} };
592
620
  }
593
621
  }, Je = function(j) {
594
622
  if (ne === re || ne === ee) {
595
- ne = Ae, X !== 0 && (l(X), X = 0), X = r(function() {
623
+ ne = Ae, X !== 0 && (c(X), X = 0), X = r(function() {
596
624
  Me();
597
- }, S), S = De(Math.min(h * 16, S * 2)), t.readyState = ee;
625
+ }, S), S = De(Math.min(h * 16, S * 2)), n.readyState = ee;
598
626
  var I = new Fe("error", { error: j });
599
- t.dispatchEvent(I), ve(t, t.onerror, I), j != null && console.error(j);
627
+ n.dispatchEvent(I), ve(n, n.onerror, I), j != null && console.error(j);
600
628
  }
601
629
  }, Ke = function() {
602
- ne = we, Q != null && (Q.abort(), Q = void 0), X !== 0 && (l(X), X = 0), t.readyState = we;
630
+ ne = we, Q != null && (Q.abort(), Q = void 0), X !== 0 && (c(X), X = 0), n.readyState = we;
603
631
  }, Me = function() {
604
632
  if (X = 0, ne !== Ae) {
605
633
  if (!E && Q != null)
@@ -619,38 +647,38 @@ var We = { exports: {} };
619
647
  if (a.slice(0, 5) !== "data:" && a.slice(0, 5) !== "blob:" && k !== "") {
620
648
  var Z = a.indexOf("?");
621
649
  I = Z === -1 ? a : a.slice(0, Z + 1) + a.slice(Z + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ce, Te) {
622
- return Te === d ? "" : ce;
623
- }), I += (a.indexOf("?") === -1 ? "?" : "&") + d + "=" + encodeURIComponent(k);
650
+ return Te === s ? "" : ce;
651
+ }), I += (a.indexOf("?") === -1 ? "?" : "&") + s + "=" + encodeURIComponent(k);
624
652
  }
625
- var $ = t.withCredentials, q = {};
653
+ var $ = n.withCredentials, q = {};
626
654
  q.Accept = "text/event-stream";
627
- var z = t.headers;
655
+ var z = n.headers;
628
656
  if (z != null)
629
657
  for (var le in z)
630
658
  Object.prototype.hasOwnProperty.call(z, le) && (q[le] = z[le]);
631
659
  try {
632
- Q = Le.open(ie, st, lt, Je, I, $, q);
660
+ Q = Le.open(ie, ft, pt, Je, I, $, q);
633
661
  } catch (ce) {
634
662
  throw Ke(), ce;
635
663
  }
636
664
  };
637
- t.url = a, t.readyState = ee, t.withCredentials = i, t.headers = v, t._close = Ke, Me();
665
+ n.url = a, n.readyState = ee, n.withCredentials = i, n.headers = v, n._close = Ke, Me();
638
666
  }
639
- J.prototype = Object.create(f.prototype), J.prototype.CONNECTING = ee, J.prototype.OPEN = re, J.prototype.CLOSED = we, J.prototype.close = function() {
667
+ J.prototype = Object.create(p.prototype), J.prototype.CONNECTING = ee, J.prototype.OPEN = re, J.prototype.CLOSED = we, J.prototype.close = function() {
640
668
  this._close();
641
669
  }, J.CONNECTING = ee, J.OPEN = re, J.CLOSED = we, J.prototype.withCredentials = void 0;
642
- var b = g;
643
- u != null && (g == null || !("withCredentials" in g.prototype)) && (b = J), function(t) {
670
+ var b = m;
671
+ u != null && (m == null || !("withCredentials" in m.prototype)) && (b = J), function(n) {
644
672
  {
645
- var a = t(e);
673
+ var a = n(e);
646
674
  a !== void 0 && (o.exports = a);
647
675
  }
648
- }(function(t) {
649
- t.EventSourcePolyfill = J, t.NativeEventSource = g, t.EventSource = b;
676
+ }(function(n) {
677
+ n.EventSourcePolyfill = J, n.NativeEventSource = m, n.EventSource = b;
650
678
  });
651
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : dt : globalThis);
679
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Bt : globalThis);
652
680
  })(We, We.exports);
653
- var St = We.exports;
681
+ var kt = We.exports;
654
682
  /*!
655
683
  * currency.js - v2.0.4
656
684
  * http://scurker.github.io/currency.js
@@ -658,7 +686,7 @@ var St = We.exports;
658
686
  * Copyright (c) 2021 Jason Wilson
659
687
  * Released under MIT license
660
688
  */
661
- var _t = {
689
+ var Ot = {
662
690
  symbol: "$",
663
691
  separator: ",",
664
692
  decimal: ".",
@@ -666,41 +694,41 @@ var _t = {
666
694
  precision: 2,
667
695
  pattern: "!#",
668
696
  negativePattern: "-!#",
669
- format: xt,
697
+ format: jt,
670
698
  fromCents: !1
671
- }, it = function(e) {
699
+ }, dt = function(e) {
672
700
  return Math.round(e);
673
701
  }, Ye = function(e) {
674
702
  return Math.pow(10, e);
675
- }, At = function(e, n) {
676
- return it(e / n) * n;
677
- }, Rt = /(\d)(?=(\d{3})+\b)/g, Et = /(\d)(?=(\d\d)+\d\b)/g;
703
+ }, Nt = function(e, t) {
704
+ return dt(e / t) * t;
705
+ }, It = /(\d)(?=(\d{3})+\b)/g, Vt = /(\d)(?=(\d\d)+\d\b)/g;
678
706
  function ae(o, e) {
679
- var n = this;
680
- if (!(n instanceof ae))
707
+ var t = this;
708
+ if (!(t instanceof ae))
681
709
  return new ae(o, e);
682
- var r = Object.assign({}, _t, e), l = Ye(r.precision), u = Ie(o, r);
683
- n.intValue = u, n.value = u / l, r.increment = r.increment || 1 / l, r.useVedic ? r.groups = Et : r.groups = Rt, this.s = r, this.p = l;
710
+ var r = Object.assign({}, Ot, e), c = Ye(r.precision), u = Ie(o, r);
711
+ t.intValue = u, t.value = u / c, r.increment = r.increment || 1 / c, r.useVedic ? r.groups = Vt : r.groups = It, this.s = r, this.p = c;
684
712
  }
685
713
  function Ie(o, e) {
686
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, l = e.decimal, u = e.errorOnInvalid, m = e.precision, p = e.fromCents, g = Ye(m), y = typeof o == "number", x = o instanceof ae;
687
- if (x && p)
714
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, c = e.decimal, u = e.errorOnInvalid, g = e.precision, f = e.fromCents, m = Ye(g), y = typeof o == "number", x = o instanceof ae;
715
+ if (x && f)
688
716
  return o.intValue;
689
717
  if (y || x)
690
718
  r = x ? o.value : o;
691
719
  else if (typeof o == "string") {
692
- var F = new RegExp("[^-\\d" + l + "]", "g"), B = new RegExp("\\" + l, "g");
720
+ var F = new RegExp("[^-\\d" + c + "]", "g"), B = new RegExp("\\" + c, "g");
693
721
  r = o.replace(/\((.*)\)/, "-$1").replace(F, "").replace(B, "."), r = r || 0;
694
722
  } else {
695
723
  if (u)
696
724
  throw Error("Invalid Input");
697
725
  r = 0;
698
726
  }
699
- return p || (r *= g, r = r.toFixed(4)), n ? it(r) : r;
727
+ return f || (r *= m, r = r.toFixed(4)), t ? dt(r) : r;
700
728
  }
701
- function xt(o, e) {
702
- var n = e.pattern, r = e.negativePattern, l = e.symbol, u = e.separator, m = e.decimal, p = e.groups, g = ("" + o).replace(/^-/, "").split("."), y = g[0], x = g[1];
703
- return (o.value >= 0 ? n : r).replace("!", l).replace("#", y.replace(p, "$1" + u) + (x ? m + x : ""));
729
+ function jt(o, e) {
730
+ var t = e.pattern, r = e.negativePattern, c = e.symbol, u = e.separator, g = e.decimal, f = e.groups, m = ("" + o).replace(/^-/, "").split("."), y = m[0], x = m[1];
731
+ return (o.value >= 0 ? t : r).replace("!", c).replace("#", y.replace(f, "$1" + u) + (x ? g + x : ""));
704
732
  }
705
733
  ae.prototype = {
706
734
  /**
@@ -709,8 +737,8 @@ ae.prototype = {
709
737
  * @returns {currency}
710
738
  */
711
739
  add: function(e) {
712
- var n = this.intValue, r = this.s, l = this.p;
713
- return ae((n += Ie(e, r)) / (r.fromCents ? 1 : l), r);
740
+ var t = this.intValue, r = this.s, c = this.p;
741
+ return ae((t += Ie(e, r)) / (r.fromCents ? 1 : c), r);
714
742
  },
715
743
  /**
716
744
  * Subtracts value.
@@ -718,8 +746,8 @@ ae.prototype = {
718
746
  * @returns {currency}
719
747
  */
720
748
  subtract: function(e) {
721
- var n = this.intValue, r = this.s, l = this.p;
722
- return ae((n -= Ie(e, r)) / (r.fromCents ? 1 : l), r);
749
+ var t = this.intValue, r = this.s, c = this.p;
750
+ return ae((t -= Ie(e, r)) / (r.fromCents ? 1 : c), r);
723
751
  },
724
752
  /**
725
753
  * Multiplies values.
@@ -727,8 +755,8 @@ ae.prototype = {
727
755
  * @returns {currency}
728
756
  */
729
757
  multiply: function(e) {
730
- var n = this.intValue, r = this.s;
731
- return ae((n *= e) / (r.fromCents ? 1 : Ye(r.precision)), r);
758
+ var t = this.intValue, r = this.s;
759
+ return ae((t *= e) / (r.fromCents ? 1 : Ye(r.precision)), r);
732
760
  },
733
761
  /**
734
762
  * Divides value.
@@ -736,8 +764,8 @@ ae.prototype = {
736
764
  * @returns {currency}
737
765
  */
738
766
  divide: function(e) {
739
- var n = this.intValue, r = this.s;
740
- return ae(n /= Ie(e, r, !1), r);
767
+ var t = this.intValue, r = this.s;
768
+ return ae(t /= Ie(e, r, !1), r);
741
769
  },
742
770
  /**
743
771
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -746,9 +774,9 @@ ae.prototype = {
746
774
  * @returns {array}
747
775
  */
748
776
  distribute: function(e) {
749
- for (var n = this.intValue, r = this.p, l = this.s, u = [], m = Math[n >= 0 ? "floor" : "ceil"](n / e), p = Math.abs(n - m * e), g = l.fromCents ? 1 : r; e !== 0; e--) {
750
- var y = ae(m / g, l);
751
- p-- > 0 && (y = y[n >= 0 ? "add" : "subtract"](1 / g)), u.push(y);
777
+ for (var t = this.intValue, r = this.p, c = this.s, u = [], g = Math[t >= 0 ? "floor" : "ceil"](t / e), f = Math.abs(t - g * e), m = c.fromCents ? 1 : r; e !== 0; e--) {
778
+ var y = ae(g / m, c);
779
+ f-- > 0 && (y = y[t >= 0 ? "add" : "subtract"](1 / m)), u.push(y);
752
780
  }
753
781
  return u;
754
782
  },
@@ -764,8 +792,8 @@ ae.prototype = {
764
792
  * @returns {number}
765
793
  */
766
794
  cents: function() {
767
- var e = this.intValue, n = this.p;
768
- return ~~(e % n);
795
+ var e = this.intValue, t = this.p;
796
+ return ~~(e % t);
769
797
  },
770
798
  /**
771
799
  * Formats the value as a string according to the formatting settings.
@@ -773,16 +801,16 @@ ae.prototype = {
773
801
  * @returns {string}
774
802
  */
775
803
  format: function(e) {
776
- var n = this.s;
777
- return typeof e == "function" ? e(this, n) : n.format(this, Object.assign({}, n, e));
804
+ var t = this.s;
805
+ return typeof e == "function" ? e(this, t) : t.format(this, Object.assign({}, t, e));
778
806
  },
779
807
  /**
780
808
  * Formats the value as a string according to the formatting settings.
781
809
  * @returns {string}
782
810
  */
783
811
  toString: function() {
784
- var e = this.intValue, n = this.p, r = this.s;
785
- return At(e / n, r.increment).toFixed(r.precision);
812
+ var e = this.intValue, t = this.p, r = this.s;
813
+ return Nt(e / t, r.increment).toFixed(r.precision);
786
814
  },
787
815
  /**
788
816
  * Value for JSON serialization.
@@ -792,19 +820,19 @@ ae.prototype = {
792
820
  return this.value;
793
821
  }
794
822
  };
795
- function Dt(o) {
796
- gt(o, "svelte-113krup", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
823
+ function Ht(o) {
824
+ At(o, "svelte-113krup", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
797
825
  }
798
- function $e(o, e, n) {
826
+ function ot(o, e, t) {
799
827
  const r = o.slice();
800
- return r[47] = e[n], r;
828
+ return r[47] = e[t], r;
801
829
  }
802
- function et(o, e, n) {
830
+ function rt(o, e, t) {
803
831
  const r = o.slice();
804
- return r[50] = e[n], r;
832
+ return r[50] = e[t], r;
805
833
  }
806
- function Lt(o) {
807
- let e, n = (
834
+ function zt(o) {
835
+ let e, t = (
808
836
  /*balances*/
809
837
  (o[4].Total ? (
810
838
  /*formatBalance*/
@@ -813,19 +841,19 @@ function Lt(o) {
813
841
  o[4].Total[0].amount
814
842
  )
815
843
  ) : "0") + ""
816
- ), r, l, u, m, p, g, y, x, F, B = (
844
+ ), r, c, u, g, f, m, y, x, F, B = (
817
845
  /*showBalance*/
818
- o[2] && tt(o)
846
+ o[2] && it(o)
819
847
  );
820
848
  return {
821
849
  c() {
822
- e = N("p"), r = ue(n), l = oe(), u = ue(
850
+ e = N("p"), r = ue(t), c = oe(), u = ue(
823
851
  /*currency*/
824
852
  o[3]
825
- ), m = oe(), p = N("span"), p.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = oe(), B && B.c(), y = bt(), V(e, "class", "BalanceValue"), V(e, "part", "BalanceValue");
853
+ ), g = oe(), f = N("span"), f.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', m = oe(), B && B.c(), y = Dt(), V(e, "class", "BalanceValue"), V(e, "part", "BalanceValue");
826
854
  },
827
855
  m(C, _) {
828
- fe(C, e, _), R(e, r), R(e, l), R(e, u), R(e, m), R(e, p), fe(C, g, _), B && B.m(C, _), fe(C, y, _), x || (F = Ve(
856
+ fe(C, e, _), R(e, r), R(e, c), R(e, u), R(e, g), R(e, f), fe(C, m, _), B && B.m(C, _), fe(C, y, _), x || (F = Ve(
829
857
  e,
830
858
  "click",
831
859
  /*click_handler*/
@@ -834,53 +862,53 @@ function Lt(o) {
834
862
  },
835
863
  p(C, _) {
836
864
  _[0] & /*balances*/
837
- 16 && n !== (n = /*balances*/
865
+ 16 && t !== (t = /*balances*/
838
866
  (C[4].Total ? (
839
867
  /*formatBalance*/
840
868
  C[6](
841
869
  /*balances*/
842
870
  C[4].Total[0].amount
843
871
  )
844
- ) : "0") + "") && de(r, n), _[0] & /*currency*/
872
+ ) : "0") + "") && de(r, t), _[0] & /*currency*/
845
873
  8 && de(
846
874
  u,
847
875
  /*currency*/
848
876
  C[3]
849
877
  ), /*showBalance*/
850
- C[2] ? B ? B.p(C, _) : (B = tt(C), B.c(), B.m(y.parentNode, y)) : B && (B.d(1), B = null);
878
+ C[2] ? B ? B.p(C, _) : (B = it(C), B.c(), B.m(y.parentNode, y)) : B && (B.d(1), B = null);
851
879
  },
852
880
  d(C) {
853
- C && (pe(e), pe(g), pe(y)), B && B.d(C), x = !1, F();
881
+ C && (pe(e), pe(m), pe(y)), B && B.d(C), x = !1, F();
854
882
  }
855
883
  };
856
884
  }
857
- function Mt(o) {
858
- let e, n = (
885
+ function Ut(o) {
886
+ let e, t = (
859
887
  /*$_*/
860
888
  o[5]("Loading") + ""
861
889
  ), r;
862
890
  return {
863
891
  c() {
864
- e = N("p"), r = ue(n);
892
+ e = N("p"), r = ue(t);
865
893
  },
866
- m(l, u) {
867
- fe(l, e, u), R(e, r);
894
+ m(c, u) {
895
+ fe(c, e, u), R(e, r);
868
896
  },
869
- p(l, u) {
897
+ p(c, u) {
870
898
  u[0] & /*$_*/
871
- 32 && n !== (n = /*$_*/
872
- l[5]("Loading") + "") && de(r, n);
899
+ 32 && t !== (t = /*$_*/
900
+ c[5]("Loading") + "") && de(r, t);
873
901
  },
874
- d(l) {
875
- l && pe(e);
902
+ d(c) {
903
+ c && pe(e);
876
904
  }
877
905
  };
878
906
  }
879
- function tt(o) {
880
- let e, n, r, l, u, m, p = (
907
+ function it(o) {
908
+ let e, t, r, c, u, g, f = (
881
909
  /*$_*/
882
910
  o[5]("Title") + ""
883
- ), g, y, x, F, B, C, _ = (
911
+ ), m, y, x, F, B, C, _ = (
884
912
  /*$_*/
885
913
  o[5]("DepositButton") + ""
886
914
  ), U, M, H, P = je(Object.keys(
@@ -888,21 +916,21 @@ function tt(o) {
888
916
  o[4]
889
917
  )), T = [];
890
918
  for (let A = 0; A < P.length; A += 1)
891
- T[A] = at($e(o, P, A));
919
+ T[A] = lt(ot(o, P, A));
892
920
  return {
893
921
  c() {
894
- e = N("div"), n = N("div"), r = oe(), l = N("div"), u = N("div"), m = N("p"), g = ue(p), y = oe(), x = N("div");
922
+ e = N("div"), t = N("div"), r = oe(), c = N("div"), u = N("div"), g = N("p"), m = ue(f), y = oe(), x = N("div");
895
923
  for (let A = 0; A < T.length; A += 1)
896
924
  T[A].c();
897
- F = oe(), B = N("div"), C = N("button"), U = ue(_), V(n, "class", "BalanceModalClose"), V(m, "class", "BalanceModalTitle"), V(u, "class", "BalanceModalHeader"), V(x, "class", "BalanceModalBody"), V(C, "class", "BalanceModalAction"), V(B, "class", "BalanceModalFooter"), V(l, "class", "BalanceModal"), V(e, "class", "BalanceModalWrapper");
925
+ F = oe(), B = N("div"), C = N("button"), U = ue(_), V(t, "class", "BalanceModalClose"), V(g, "class", "BalanceModalTitle"), V(u, "class", "BalanceModalHeader"), V(x, "class", "BalanceModalBody"), V(C, "class", "BalanceModalAction"), V(B, "class", "BalanceModalFooter"), V(c, "class", "BalanceModal"), V(e, "class", "BalanceModalWrapper");
898
926
  },
899
927
  m(A, G) {
900
- fe(A, e, G), R(e, n), R(e, r), R(e, l), R(l, u), R(u, m), R(m, g), R(l, y), R(l, x);
928
+ fe(A, e, G), R(e, t), R(e, r), R(e, c), R(c, u), R(u, g), R(g, m), R(c, y), R(c, x);
901
929
  for (let D = 0; D < T.length; D += 1)
902
930
  T[D] && T[D].m(x, null);
903
- R(l, F), R(l, B), R(B, C), R(C, U), M || (H = [
931
+ R(c, F), R(c, B), R(B, C), R(C, U), M || (H = [
904
932
  Ve(
905
- n,
933
+ t,
906
934
  "click",
907
935
  /*click_handler_1*/
908
936
  o[23]
@@ -917,8 +945,8 @@ function tt(o) {
917
945
  },
918
946
  p(A, G) {
919
947
  if (G[0] & /*$_*/
920
- 32 && p !== (p = /*$_*/
921
- A[5]("Title") + "") && de(g, p), G[0] & /*balances, currency, formatBalance, $_*/
948
+ 32 && f !== (f = /*$_*/
949
+ A[5]("Title") + "") && de(m, f), G[0] & /*balances, currency, formatBalance, $_*/
922
950
  120) {
923
951
  P = je(Object.keys(
924
952
  /*balances*/
@@ -926,8 +954,8 @@ function tt(o) {
926
954
  ));
927
955
  let D;
928
956
  for (D = 0; D < P.length; D += 1) {
929
- const W = $e(A, P, D);
930
- T[D] ? T[D].p(W, G) : (T[D] = at(W), T[D].c(), T[D].m(x, null));
957
+ const W = ot(A, P, D);
958
+ T[D] ? T[D].p(W, G) : (T[D] = lt(W), T[D].c(), T[D].m(x, null));
931
959
  }
932
960
  for (; D < T.length; D += 1)
933
961
  T[D].d(1);
@@ -938,18 +966,18 @@ function tt(o) {
938
966
  A[5]("DepositButton") + "") && de(U, _);
939
967
  },
940
968
  d(A) {
941
- A && pe(e), rt(T, A), M = !1, Bt(H);
969
+ A && pe(e), ut(T, A), M = !1, Lt(H);
942
970
  }
943
971
  };
944
972
  }
945
- function nt(o) {
946
- let e, n, r = (
973
+ function st(o) {
974
+ let e, t, r = (
947
975
  /*$_*/
948
976
  o[5](
949
977
  /*k*/
950
978
  o[47]
951
979
  ) + ""
952
- ), l, u, m = (
980
+ ), c, u, g = (
953
981
  /*b*/
954
982
  (o[50].productType ? (
955
983
  /*$_*/
@@ -958,7 +986,7 @@ function nt(o) {
958
986
  o[50].productType
959
987
  )
960
988
  ) : "") + ""
961
- ), p, g, y, x, F = (
989
+ ), f, m, y, x, F = (
962
990
  /*b*/
963
991
  (o[50].amount ? (
964
992
  /*formatBalance*/
@@ -970,13 +998,13 @@ function nt(o) {
970
998
  ), B, C, _, U;
971
999
  return {
972
1000
  c() {
973
- e = N("div"), n = N("p"), l = ue(r), u = oe(), p = ue(m), g = oe(), y = N("p"), x = N("span"), B = ue(F), C = oe(), _ = N("span"), U = ue(
1001
+ e = N("div"), t = N("p"), c = ue(r), u = oe(), f = ue(g), m = oe(), y = N("p"), x = N("span"), B = ue(F), C = oe(), _ = N("span"), U = ue(
974
1002
  /*currency*/
975
1003
  o[3]
976
- ), V(n, "class", "BalanceModalText"), V(x, "class", "BalanceModalAmount"), V(_, "class", "BalanceModalCurrency"), V(y, "class", "BalanceModalValue"), V(e, "class", "BalanceModalRowLine");
1004
+ ), V(t, "class", "BalanceModalText"), V(x, "class", "BalanceModalAmount"), V(_, "class", "BalanceModalCurrency"), V(y, "class", "BalanceModalValue"), V(e, "class", "BalanceModalRowLine");
977
1005
  },
978
1006
  m(M, H) {
979
- fe(M, e, H), R(e, n), R(n, l), R(n, u), R(n, p), R(e, g), R(e, y), R(y, x), R(x, B), R(y, C), R(y, _), R(_, U);
1007
+ fe(M, e, H), R(e, t), R(t, c), R(t, u), R(t, f), R(e, m), R(e, y), R(y, x), R(x, B), R(y, C), R(y, _), R(_, U);
980
1008
  },
981
1009
  p(M, H) {
982
1010
  H[0] & /*$_, balances*/
@@ -984,15 +1012,15 @@ function nt(o) {
984
1012
  M[5](
985
1013
  /*k*/
986
1014
  M[47]
987
- ) + "") && de(l, r), H[0] & /*balances, $_*/
988
- 48 && m !== (m = /*b*/
1015
+ ) + "") && de(c, r), H[0] & /*balances, $_*/
1016
+ 48 && g !== (g = /*b*/
989
1017
  (M[50].productType ? (
990
1018
  /*$_*/
991
1019
  M[5](
992
1020
  /*b*/
993
1021
  M[50].productType
994
1022
  )
995
- ) : "") + "") && de(p, m), H[0] & /*balances*/
1023
+ ) : "") + "") && de(f, g), H[0] & /*balances*/
996
1024
  16 && F !== (F = /*b*/
997
1025
  (M[50].amount ? (
998
1026
  /*formatBalance*/
@@ -1012,31 +1040,31 @@ function nt(o) {
1012
1040
  }
1013
1041
  };
1014
1042
  }
1015
- function at(o) {
1016
- let e, n, r = je(
1043
+ function lt(o) {
1044
+ let e, t, r = je(
1017
1045
  /*balances*/
1018
1046
  o[4][
1019
1047
  /*k*/
1020
1048
  o[47]
1021
1049
  ]
1022
- ), l = [];
1050
+ ), c = [];
1023
1051
  for (let u = 0; u < r.length; u += 1)
1024
- l[u] = nt(et(o, r, u));
1052
+ c[u] = st(rt(o, r, u));
1025
1053
  return {
1026
1054
  c() {
1027
1055
  e = N("div");
1028
- for (let u = 0; u < l.length; u += 1)
1029
- l[u].c();
1030
- n = oe(), V(e, "class", "BalanceModalRowBoth");
1056
+ for (let u = 0; u < c.length; u += 1)
1057
+ c[u].c();
1058
+ t = oe(), V(e, "class", "BalanceModalRowBoth");
1031
1059
  },
1032
- m(u, m) {
1033
- fe(u, e, m);
1034
- for (let p = 0; p < l.length; p += 1)
1035
- l[p] && l[p].m(e, null);
1036
- R(e, n);
1060
+ m(u, g) {
1061
+ fe(u, e, g);
1062
+ for (let f = 0; f < c.length; f += 1)
1063
+ c[f] && c[f].m(e, null);
1064
+ R(e, t);
1037
1065
  },
1038
- p(u, m) {
1039
- if (m[0] & /*currency, balances, formatBalance, $_*/
1066
+ p(u, g) {
1067
+ if (g[0] & /*currency, balances, formatBalance, $_*/
1040
1068
  120) {
1041
1069
  r = je(
1042
1070
  /*balances*/
@@ -1045,149 +1073,150 @@ function at(o) {
1045
1073
  u[47]
1046
1074
  ]
1047
1075
  );
1048
- let p;
1049
- for (p = 0; p < r.length; p += 1) {
1050
- const g = et(u, r, p);
1051
- l[p] ? l[p].p(g, m) : (l[p] = nt(g), l[p].c(), l[p].m(e, n));
1076
+ let f;
1077
+ for (f = 0; f < r.length; f += 1) {
1078
+ const m = rt(u, r, f);
1079
+ c[f] ? c[f].p(m, g) : (c[f] = st(m), c[f].c(), c[f].m(e, t));
1052
1080
  }
1053
- for (; p < l.length; p += 1)
1054
- l[p].d(1);
1055
- l.length = r.length;
1081
+ for (; f < c.length; f += 1)
1082
+ c[f].d(1);
1083
+ c.length = r.length;
1056
1084
  }
1057
1085
  },
1058
1086
  d(u) {
1059
- u && pe(e), rt(l, u);
1087
+ u && pe(e), ut(c, u);
1060
1088
  }
1061
1089
  };
1062
1090
  }
1063
- function ot(o) {
1064
- let e, n, r;
1091
+ function ct(o) {
1092
+ let e, t, r;
1065
1093
  return {
1066
1094
  c() {
1067
1095
  e = N("div"), V(e, "class", "ShowBalanceModalOverlay");
1068
1096
  },
1069
- m(l, u) {
1070
- fe(l, e, u), n || (r = Ve(
1097
+ m(c, u) {
1098
+ fe(c, e, u), t || (r = Ve(
1071
1099
  e,
1072
1100
  "click",
1073
1101
  /*click_handler_3*/
1074
1102
  o[25]
1075
- ), n = !0);
1103
+ ), t = !0);
1076
1104
  },
1077
1105
  p: qe,
1078
- d(l) {
1079
- l && pe(e), n = !1, r();
1106
+ d(c) {
1107
+ c && pe(e), t = !1, r();
1080
1108
  }
1081
1109
  };
1082
1110
  }
1083
- function Ft(o) {
1084
- let e, n, r;
1085
- function l(g, y) {
1111
+ function Pt(o) {
1112
+ let e, t, r;
1113
+ function c(m, y) {
1086
1114
  return (
1087
1115
  /*isLoading*/
1088
- g[1] ? Mt : Lt
1116
+ m[1] ? Ut : zt
1089
1117
  );
1090
1118
  }
1091
- let u = l(o), m = u(o), p = (
1119
+ let u = c(o), g = u(o), f = (
1092
1120
  /*showBalance*/
1093
- o[2] && ot(o)
1121
+ o[2] && ct(o)
1094
1122
  );
1095
1123
  return {
1096
1124
  c() {
1097
- e = N("div"), n = N("div"), m.c(), r = oe(), p && p.c(), V(n, "class", "ShowBalance"), V(n, "part", "ShowBalance");
1125
+ e = N("div"), t = N("div"), g.c(), r = oe(), f && f.c(), V(t, "class", "ShowBalance"), V(t, "part", "ShowBalance");
1098
1126
  },
1099
- m(g, y) {
1100
- fe(g, e, y), R(e, n), m.m(n, null), R(e, r), p && p.m(e, null), o[26](e);
1127
+ m(m, y) {
1128
+ fe(m, e, y), R(e, t), g.m(t, null), R(e, r), f && f.m(e, null), o[26](e);
1101
1129
  },
1102
- p(g, y) {
1103
- u === (u = l(g)) && m ? m.p(g, y) : (m.d(1), m = u(g), m && (m.c(), m.m(n, null))), /*showBalance*/
1104
- g[2] ? p ? p.p(g, y) : (p = ot(g), p.c(), p.m(e, null)) : p && (p.d(1), p = null);
1130
+ p(m, y) {
1131
+ u === (u = c(m)) && g ? g.p(m, y) : (g.d(1), g = u(m), g && (g.c(), g.m(t, null))), /*showBalance*/
1132
+ m[2] ? f ? f.p(m, y) : (f = ct(m), f.c(), f.m(e, null)) : f && (f.d(1), f = null);
1105
1133
  },
1106
1134
  i: qe,
1107
1135
  o: qe,
1108
- d(g) {
1109
- g && pe(e), m.d(), p && p.d(), o[26](null);
1136
+ d(m) {
1137
+ m && pe(e), g.d(), f && f.d(), o[26](null);
1110
1138
  }
1111
1139
  };
1112
1140
  }
1113
- function kt(o, e, n) {
1141
+ function Gt(o, e, t) {
1114
1142
  let r;
1115
- yt(o, Ct, (c) => n(5, r = c));
1116
- let { userid: l = "" } = e, { session: u = "" } = e, { endpoint: m = "" } = e, { lang: p = "en" } = e, { clientstyling: g = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: x = "" } = e, { customlocaleidentifier: F = "" } = e, { gmversion: B = "gm16" } = e, { displaybalanceoption: C = "All" } = e, { totalcalculationmode: _ = "totalCashAmount" } = e, { currencyseparator: U = "" } = e, { currencydecimal: M = "" } = e, { currencyprecision: H = "" } = e, P, T, A, G = !1, D = "", W = [], he, me = !1;
1117
- const f = {}, ge = ["totalCashAmount", "totalRealAmount"], ye = () => {
1118
- fetch(x).then((c) => c.json()).then((c) => Object.keys(c).forEach((b) => Qe(b, c[b]))).catch((c) => console.log(c));
1143
+ Rt(o, Mt, (d) => t(5, r = d));
1144
+ let { userid: c = "" } = e, { session: u = "" } = e, { endpoint: g = "" } = e, { lang: f = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: x = "" } = e, { customlocaleidentifier: F = "" } = e, { gmversion: B = "gm16" } = e, { displaybalanceoption: C = "All" } = e, { totalcalculationmode: _ = "totalCashAmount" } = e, { currencyseparator: U = "" } = e, { currencydecimal: M = "" } = e, { currencyprecision: H = "" } = e, P, T, A, G = !1, D = "", W = [], he, me = !1;
1145
+ const p = {}, ge = ["totalCashAmount", "totalRealAmount"], ye = () => {
1146
+ fetch(x).then((d) => d.json()).then((d) => Object.keys(d).forEach((b) => nt(b, d[b]))).catch((d) => console.log(d));
1119
1147
  };
1120
- Object.keys(Ze).forEach((c) => Qe(c, Ze[c]));
1148
+ Object.keys(at).forEach((d) => nt(d, at[d]));
1121
1149
  const Se = () => {
1122
- if (F.includes(p))
1150
+ if (F.includes(f))
1123
1151
  return F;
1124
- }, _e = (c) => F ? new Intl.NumberFormat(Se(), { useGrouping: !0 }).format(c) : U && M ? ae(c, {
1152
+ }, _e = (d) => F ? new Intl.NumberFormat(Se(), { useGrouping: !0 }).format(d) : U && M ? ae(d, {
1125
1153
  separator: U,
1126
1154
  decimal: M,
1127
1155
  symbol: "",
1128
1156
  precision: parseInt(H || "2", 10)
1129
- }).format() : ae(c, {
1157
+ }).format() : ae(d, {
1130
1158
  separator: ".",
1131
1159
  decimal: ",",
1132
1160
  symbol: "",
1133
1161
  precision: parseInt(H || "2", 10)
1134
- }).format(), Fe = async () => {
1135
- n(1, P = !0);
1136
- const c = new URL(`${m}/v1/player/${l}/account`);
1162
+ }).format(), Fe = () => tt(this, null, function* () {
1163
+ var b, n, a;
1164
+ t(1, P = !0);
1165
+ const d = new URL(`${g}/v1/player/${c}/account`);
1137
1166
  try {
1138
- const b = await fetch(c, {
1167
+ const l = yield fetch(d, {
1139
1168
  method: "GET",
1140
1169
  headers: { "X-SessionID": u }
1141
- }), t = await b.json();
1142
- if (b.ok)
1143
- W = t.items, n(3, D = W.find((a) => a.displayName === "Casino")?.currency), n(4, f.Total = [{ amount: t.totalAmount[D] }], f), n(
1170
+ }), i = yield l.json();
1171
+ if (l.ok)
1172
+ W = i.items, t(3, D = (b = W.find((s) => s.displayName === "Casino")) == null ? void 0 : b.currency), t(4, p.Total = [{ amount: i.totalAmount[D] }], p), t(
1144
1173
  4,
1145
- f.Real = [
1174
+ p.Real = [
1146
1175
  {
1147
- amount: W.find((a) => a.displayName === "Casino")?.balanceAmount
1176
+ amount: (n = W.find((s) => s.displayName === "Casino")) == null ? void 0 : n.balanceAmount
1148
1177
  }
1149
1178
  ],
1150
- f
1151
- ), n(
1179
+ p
1180
+ ), t(
1152
1181
  4,
1153
- f.Bonus = [
1182
+ p.Bonus = [
1154
1183
  {
1155
- amount: W.find((a) => a.displayName === "UBS")?.balanceAmount
1184
+ amount: (a = W.find((s) => s.displayName === "UBS")) == null ? void 0 : a.balanceAmount
1156
1185
  }
1157
1186
  ],
1158
- f
1187
+ p
1159
1188
  );
1160
1189
  else
1161
1190
  throw new Error("Failed to fetch balance data !");
1162
- } catch (b) {
1163
- console.log("Balance error: ", b);
1191
+ } catch (l) {
1192
+ console.log("Balance error: ", l);
1164
1193
  } finally {
1165
- n(1, P = !1);
1194
+ t(1, P = !1);
1166
1195
  }
1167
- }, Ae = () => {
1168
- n(1, P = !0);
1169
- const c = new URL(`${m}/v2/player/${l}/balance`), b = new Headers();
1170
- b.append("X-SessionID", u), fetch(c, { method: "GET", headers: b }).then((a) => a.json()).then((a) => {
1171
- a[_] || n(8, _ = ge[0]);
1172
- const s = a.items.find((d) => d.type === "Real" && d.walletAccountType === "Ordinary");
1173
- if (n(3, D = s.currency), me = !!s.productType, n(4, f.Total = [{ amount: 0 }], f), n(4, f.Real = [], f), n(4, f.Bonus = [], f), n(4, f.Credit = [], f), !me) {
1196
+ }), Ae = () => {
1197
+ t(1, P = !0);
1198
+ const d = new URL(`${g}/v2/player/${c}/balance`), b = new Headers();
1199
+ b.append("X-SessionID", u), fetch(d, { method: "GET", headers: b }).then((a) => a.json()).then((a) => {
1200
+ a[_] || t(8, _ = ge[0]);
1201
+ const l = a.items.find((s) => s.type === "Real" && s.walletAccountType === "Ordinary");
1202
+ if (t(3, D = l.currency), me = !!l.productType, t(4, p.Total = [{ amount: 0 }], p), t(4, p.Real = [], p), t(4, p.Bonus = [], p), t(4, p.Credit = [], p), !me) {
1174
1203
  he = {
1175
1204
  lastOrdinaryAfterAmount: 0,
1176
1205
  showCreditLineAfterAmount: !1
1177
- }, n(4, f.Total[0].amount = a[_][D], f);
1178
- for (const d of a.items)
1179
- switch (d.type) {
1206
+ }, t(4, p.Total[0].amount = a[_][D], p);
1207
+ for (const s of a.items)
1208
+ switch (s.type) {
1180
1209
  case "Bonus":
1181
- f.Bonus.length === 0 ? f.Bonus.push({ amount: d.amount }) : n(4, f.Bonus[0].amount += d.amount, f);
1210
+ p.Bonus.length === 0 ? p.Bonus.push({ amount: s.amount }) : t(4, p.Bonus[0].amount += s.amount, p);
1182
1211
  break;
1183
1212
  case "Real":
1184
- if (d.creditLine && f.Credit.length === 0 && f.Credit.push({ amount: d.creditLine }), _ === "totalRealAmount") continue;
1185
- f.Real.length === 0 ? f.Real.push({ amount: d.amount }) : n(4, f.Real[0].amount += d.amount, f);
1213
+ if (s.creditLine && p.Credit.length === 0 && p.Credit.push({ amount: s.creditLine }), _ === "totalRealAmount") continue;
1214
+ p.Real.length === 0 ? p.Real.push({ amount: s.amount }) : t(4, p.Real[0].amount += s.amount, p);
1186
1215
  break;
1187
1216
  }
1188
- for (const [d, h] of Object.entries(f))
1189
- h.length < 1 && delete f[d];
1190
- n(1, P = !1);
1217
+ for (const [s, h] of Object.entries(p))
1218
+ h.length < 1 && delete p[s];
1219
+ t(1, P = !1);
1191
1220
  return;
1192
1221
  }
1193
1222
  he = {
@@ -1201,125 +1230,125 @@ function kt(o, e, n) {
1201
1230
  }
1202
1231
  };
1203
1232
  let i = a.items;
1204
- C && C !== "All" && (i = a.items.filter((d) => d.productType === C));
1205
- for (const d of i) {
1233
+ C && C !== "All" && (i = a.items.filter((s) => s.productType === C));
1234
+ for (const s of i) {
1206
1235
  let h;
1207
- switch (d.type) {
1236
+ switch (s.type) {
1208
1237
  case "Bonus":
1209
- h = f.Bonus.findIndex((w) => w.productType === d.productType), h > 0 ? n(4, f.Bonus[h].amount += d.amount, f) : f.Bonus.push({
1210
- amount: d.amount,
1211
- productType: d.productType
1238
+ h = p.Bonus.findIndex((w) => w.productType === s.productType), h > 0 ? t(4, p.Bonus[h].amount += s.amount, p) : p.Bonus.push({
1239
+ amount: s.amount,
1240
+ productType: s.productType
1212
1241
  });
1213
1242
  break;
1214
1243
  case "Real":
1215
- d.creditLine && f.Credit.push({
1216
- amount: d.creditLine,
1217
- productType: d.productType
1218
- }), h = f.Real.findIndex((w) => w.productType === d.productType), h > 0 ? n(4, f.Real[h].amount += d.amount, f) : f.Real.push({
1219
- amount: d.amount,
1220
- productType: d.productType
1244
+ s.creditLine && p.Credit.push({
1245
+ amount: s.creditLine,
1246
+ productType: s.productType
1247
+ }), h = p.Real.findIndex((w) => w.productType === s.productType), h > 0 ? t(4, p.Real[h].amount += s.amount, p) : p.Real.push({
1248
+ amount: s.amount,
1249
+ productType: s.productType
1221
1250
  });
1222
1251
  break;
1223
1252
  }
1224
1253
  }
1225
1254
  te();
1226
- for (const [d, h] of Object.entries(f))
1227
- h.length < 1 && delete f[d];
1228
- n(1, P = !1);
1255
+ for (const [s, h] of Object.entries(p))
1256
+ h.length < 1 && delete p[s];
1257
+ t(1, P = !1);
1229
1258
  }).catch((a) => {
1230
- throw n(1, P = !1), new Error("Failed to fetch balance data !");
1259
+ throw t(1, P = !1), new Error("Failed to fetch balance data !");
1231
1260
  });
1232
1261
  }, ee = () => {
1233
1262
  if (A && A.close(), u.length < 1) return;
1234
- let c, b;
1263
+ let d, b;
1235
1264
  switch (B) {
1236
1265
  case "gm16":
1237
- c = new URL(`${m}/v2/player/${l}/information/updates`), b = (s) => Re(s);
1266
+ d = new URL(`${g}/v2/player/${c}/information/updates`), b = (l) => Re(l);
1238
1267
  break;
1239
1268
  case "gmcore":
1240
- c = new URL(`${m}/v1/player/${l}/balance/updates`), b = (s) => we(s);
1269
+ d = new URL(`${g}/v1/player/${c}/balance/updates`), b = (l) => we(l);
1241
1270
  break;
1242
1271
  }
1243
- const t = {
1272
+ const n = {
1244
1273
  accept: "text/event-stream",
1245
1274
  "X-SessionId": u
1246
- }, a = new St.EventSourcePolyfill(c, { headers: t });
1275
+ }, a = new kt.EventSourcePolyfill(d, { headers: n });
1247
1276
  A = a, a.addEventListener("message", b);
1248
- }, re = (c) => {
1277
+ }, re = (d) => {
1249
1278
  let b;
1250
1279
  try {
1251
- b = JSON.parse(c);
1252
- } catch (t) {
1253
- console.log("Balance stream failed: ", t);
1280
+ b = JSON.parse(d);
1281
+ } catch (n) {
1282
+ console.log("Balance stream failed: ", n);
1254
1283
  return;
1255
1284
  }
1256
1285
  return b;
1257
- }, we = (c) => {
1258
- const b = re(c.data);
1286
+ }, we = (d) => {
1287
+ var l, i;
1288
+ const b = re(d.data);
1259
1289
  if (!b) {
1260
1290
  ee();
1261
1291
  return;
1262
1292
  }
1263
- let t = "0";
1293
+ let n = "0";
1264
1294
  const a = b.balanceChange;
1265
- W = W.map((s) => (a && a[s.id] && (s = {
1266
- ...s,
1295
+ W = W.map((s) => (a && a[s.id] && (s = et($e({}, s), {
1267
1296
  balanceAmount: a[s.id].afterAmount
1268
- }), t = (parseFloat(s?.balanceAmount) + parseFloat(t)).toString(), s)), n(4, f.Real = [{ amount: W[0]?.balanceAmount }], f), n(4, f.Bonus = [{ amount: W[1]?.balanceAmount }], f), n(4, f.Total = [{ amount: Number(t) }], f);
1269
- }, be = (c, b, t) => {
1297
+ })), n = (parseFloat(s == null ? void 0 : s.balanceAmount) + parseFloat(n)).toString(), s)), t(4, p.Real = [{ amount: (l = W[0]) == null ? void 0 : l.balanceAmount }], p), t(4, p.Bonus = [{ amount: (i = W[1]) == null ? void 0 : i.balanceAmount }], p), t(4, p.Total = [{ amount: Number(n) }], p);
1298
+ }, be = (d, b, n) => {
1270
1299
  let a = null;
1271
- switch (t.walletAccountType) {
1300
+ switch (n.walletAccountType) {
1272
1301
  case "Ordinary":
1273
- t.afterAmount !== t.affectedAmount && (b.lastOrdinaryAfterAmount = t.afterAmount, b.showCreditLineAfterAmount || (a = t.afterAmount));
1302
+ n.afterAmount !== n.affectedAmount && (b.lastOrdinaryAfterAmount = n.afterAmount, b.showCreditLineAfterAmount || (a = n.afterAmount));
1274
1303
  break;
1275
1304
  case "CreditLine":
1276
- t.afterAmount !== 0 ? (a = t.afterAmount, b.showCreditLineAfterAmount = !0) : (a = b.lastOrdinaryAfterAmount, b.showCreditLineAfterAmount = !1);
1305
+ n.afterAmount !== 0 ? (a = n.afterAmount, b.showCreditLineAfterAmount = !0) : (a = b.lastOrdinaryAfterAmount, b.showCreditLineAfterAmount = !1);
1277
1306
  break;
1278
1307
  default:
1279
- a = t.afterAmount;
1308
+ a = n.afterAmount;
1280
1309
  }
1281
- return a === null ? c : a;
1310
+ return a === null ? d : a;
1282
1311
  }, te = () => {
1283
1312
  switch (_) {
1284
1313
  case "totalCashAmount":
1285
- let c = 0;
1286
- for (const t of ["Real", "Bonus"])
1287
- for (const a of f[t])
1288
- c += Math.max(a.amount, 0);
1289
- n(4, f.Total[0].amount = c, f);
1314
+ let d = 0;
1315
+ for (const n of ["Real", "Bonus"])
1316
+ for (const a of p[n])
1317
+ d += Math.max(a.amount, 0);
1318
+ t(4, p.Total[0].amount = d, p);
1290
1319
  break;
1291
1320
  case "totalRealAmount":
1292
1321
  if (!me) return;
1293
1322
  let b = 0;
1294
- for (const t of f.Real)
1295
- b += t.amount;
1296
- n(4, f.Total[0].amount = b, f);
1323
+ for (const n of p.Real)
1324
+ b += n.amount;
1325
+ t(4, p.Total[0].amount = b, p);
1297
1326
  }
1298
- }, Re = (c) => {
1299
- const b = re(c.data);
1327
+ }, Re = (d) => {
1328
+ const b = re(d.data);
1300
1329
  if (!b) {
1301
1330
  ee();
1302
1331
  return;
1303
1332
  }
1304
1333
  if (b.type !== "BALANCE_UPDATE_V2")
1305
1334
  return;
1306
- const t = b.body.balanceChange;
1307
- for (const [a, s] of Object.entries(t))
1308
- if (_ === "totalRealAmount" && a === "Real" && !me && n(4, f.Total[0].amount = be(f.Total[0].amount, he, s), f), !!f[a])
1309
- for (const i of f[a]) {
1335
+ const n = b.body.balanceChange;
1336
+ for (const [a, l] of Object.entries(n))
1337
+ if (_ === "totalRealAmount" && a === "Real" && !me && t(4, p.Total[0].amount = be(p.Total[0].amount, he, l), p), !!p[a])
1338
+ for (const i of p[a]) {
1310
1339
  if (!me) {
1311
- i.amount = a === "Real" ? be(i.amount, he, s) : s.afterAmount;
1340
+ i.amount = a === "Real" ? be(i.amount, he, l) : l.afterAmount;
1312
1341
  continue;
1313
1342
  }
1314
- s.productType === i.productType && (i.amount = a === "Real" ? be(i.amount, he[i.productType], s) : s.afterAmount);
1343
+ l.productType === i.productType && (i.amount = a === "Real" ? be(i.amount, he[i.productType], l) : l.afterAmount);
1315
1344
  }
1316
1345
  te();
1317
1346
  }, Ee = () => {
1318
- n(2, G = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1347
+ t(2, G = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1319
1348
  }, He = () => {
1320
- ge.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ge}. Using default value ('${ge[0]}').`), n(8, _ = ge[0]));
1349
+ ge.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ge}. Using default value ('${ge[0]}').`), t(8, _ = ge[0]));
1321
1350
  }, ze = () => {
1322
- switch (Tt(p), He(), B) {
1351
+ switch (Ft(f), He(), B) {
1323
1352
  case "gmcore":
1324
1353
  Fe();
1325
1354
  break;
@@ -1329,13 +1358,13 @@ function kt(o, e, n) {
1329
1358
  default:
1330
1359
  throw Error(`Invalid apiversion attribute: ${B}`);
1331
1360
  }
1332
- }, ke = (c) => c.data && c.data.type === "LogoutSuccessfull" && A.close(), Ue = () => {
1333
- const c = document.createElement("style");
1334
- c.innerHTML = g, T.appendChild(c);
1361
+ }, ke = (d) => d.data && d.data.type === "LogoutSuccessfull" && A.close(), Ue = () => {
1362
+ const d = document.createElement("style");
1363
+ d.innerHTML = m, T.appendChild(d);
1335
1364
  }, xe = () => {
1336
- const c = new URL(y), b = document.createElement("style");
1337
- fetch(c.href).then((t) => t.text()).then((t) => {
1338
- b.innerHTML = t, setTimeout(
1365
+ const d = new URL(y), b = document.createElement("style");
1366
+ fetch(d.href).then((n) => n.text()).then((n) => {
1367
+ b.innerHTML = n, setTimeout(
1339
1368
  () => {
1340
1369
  T.appendChild(b);
1341
1370
  },
@@ -1343,23 +1372,23 @@ function kt(o, e, n) {
1343
1372
  );
1344
1373
  });
1345
1374
  };
1346
- vt(() => (window.addEventListener("message", ke, !1), () => {
1375
+ Et(() => (window.addEventListener("message", ke, !1), () => {
1347
1376
  window.removeEventListener("message", ke), A && A.close();
1348
1377
  }));
1349
- const De = () => n(2, G = !0), ve = () => n(2, G = !1), J = () => Ee(), Pe = () => n(2, G = !1);
1350
- function Ge(c) {
1351
- wt[c ? "unshift" : "push"](() => {
1352
- T = c, n(0, T);
1378
+ const De = () => t(2, G = !0), ve = () => t(2, G = !1), J = () => Ee(), Pe = () => t(2, G = !1);
1379
+ function Ge(d) {
1380
+ xt[d ? "unshift" : "push"](() => {
1381
+ T = d, t(0, T);
1353
1382
  });
1354
1383
  }
1355
- return o.$$set = (c) => {
1356
- "userid" in c && n(9, l = c.userid), "session" in c && n(10, u = c.session), "endpoint" in c && n(11, m = c.endpoint), "lang" in c && n(12, p = c.lang), "clientstyling" in c && n(13, g = c.clientstyling), "clientstylingurl" in c && n(14, y = c.clientstylingurl), "translationurl" in c && n(15, x = c.translationurl), "customlocaleidentifier" in c && n(16, F = c.customlocaleidentifier), "gmversion" in c && n(17, B = c.gmversion), "displaybalanceoption" in c && n(18, C = c.displaybalanceoption), "totalcalculationmode" in c && n(8, _ = c.totalcalculationmode), "currencyseparator" in c && n(19, U = c.currencyseparator), "currencydecimal" in c && n(20, M = c.currencydecimal), "currencyprecision" in c && n(21, H = c.currencyprecision);
1384
+ return o.$$set = (d) => {
1385
+ "userid" in d && t(9, c = d.userid), "session" in d && t(10, u = d.session), "endpoint" in d && t(11, g = d.endpoint), "lang" in d && t(12, f = d.lang), "clientstyling" in d && t(13, m = d.clientstyling), "clientstylingurl" in d && t(14, y = d.clientstylingurl), "translationurl" in d && t(15, x = d.translationurl), "customlocaleidentifier" in d && t(16, F = d.customlocaleidentifier), "gmversion" in d && t(17, B = d.gmversion), "displaybalanceoption" in d && t(18, C = d.displaybalanceoption), "totalcalculationmode" in d && t(8, _ = d.totalcalculationmode), "currencyseparator" in d && t(19, U = d.currencyseparator), "currencydecimal" in d && t(20, M = d.currencydecimal), "currencyprecision" in d && t(21, H = d.currencyprecision);
1357
1386
  }, o.$$.update = () => {
1358
1387
  o.$$.dirty[0] & /*lang*/
1359
- 4096 && p && Se(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1360
- 400896 && m && l && u && p && B && C && ze(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1361
- 134656 && m && l && u && B && ee(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1362
- 8193 && g && T && Ue(), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1388
+ 4096 && f && Se(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1389
+ 400896 && g && c && u && f && B && C && ze(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1390
+ 134656 && g && c && u && B && ee(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1391
+ 8193 && m && T && Ue(), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1363
1392
  16385 && y && T && xe(), o.$$.dirty[0] & /*translationurl*/
1364
1393
  32768 && x && ye();
1365
1394
  }, [
@@ -1367,16 +1396,16 @@ function kt(o, e, n) {
1367
1396
  P,
1368
1397
  G,
1369
1398
  D,
1370
- f,
1399
+ p,
1371
1400
  r,
1372
1401
  _e,
1373
1402
  Ee,
1374
1403
  _,
1375
- l,
1404
+ c,
1376
1405
  u,
1377
- m,
1378
- p,
1379
1406
  g,
1407
+ f,
1408
+ m,
1380
1409
  y,
1381
1410
  x,
1382
1411
  F,
@@ -1392,14 +1421,14 @@ function kt(o, e, n) {
1392
1421
  Ge
1393
1422
  ];
1394
1423
  }
1395
- class Ot extends ft {
1424
+ class Xt extends Ct {
1396
1425
  constructor(e) {
1397
- super(), pt(
1426
+ super(), Tt(
1398
1427
  this,
1399
1428
  e,
1400
- kt,
1401
- Ft,
1402
- mt,
1429
+ Gt,
1430
+ Pt,
1431
+ _t,
1403
1432
  {
1404
1433
  userid: 9,
1405
1434
  session: 10,
@@ -1416,7 +1445,7 @@ class Ot extends ft {
1416
1445
  currencydecimal: 20,
1417
1446
  currencyprecision: 21
1418
1447
  },
1419
- Dt,
1448
+ Ht,
1420
1449
  [-1, -1]
1421
1450
  );
1422
1451
  }
@@ -1505,7 +1534,7 @@ class Ot extends ft {
1505
1534
  this.$$set({ currencyprecision: e }), Y();
1506
1535
  }
1507
1536
  }
1508
- ht(Ot, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
1537
+ St(Xt, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
1509
1538
  export {
1510
- Ot as default
1539
+ Xt as default
1511
1540
  };