@everymatrix/casino-header-controller-nd 1.86.2 → 1.86.4

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.
Files changed (69) hide show
  1. package/components/{CasinoHamburgerMenuNd-Djtdm8EV.js → CasinoHamburgerMenuNd-BNAIOl2X.js} +998 -1019
  2. package/components/CasinoHamburgerMenuNd-Ca3ViCCa.cjs +18 -0
  3. package/components/{CasinoHamburgerMenuNd-DqSrTenb.js → CasinoHamburgerMenuNd-ESbaCJ67.js} +1007 -1028
  4. package/components/{CasinoHeaderControllerNd-sEiDpmDd.js → CasinoHeaderControllerNd-C1O-84Ak.js} +98 -98
  5. package/components/{CasinoHeaderControllerNd--WCWhMwa.js → CasinoHeaderControllerNd-CnCcafEj.js} +94 -94
  6. package/components/{CasinoHeaderControllerNd-DOLTMzh0.cjs → CasinoHeaderControllerNd-Doy6dpQ5.cjs} +1 -1
  7. package/components/PlayerAccountBalanceModalNd-BOVCsk2w.js +1564 -0
  8. package/components/PlayerAccountBalanceModalNd-CZjcJwul.js +1535 -0
  9. package/components/PlayerAccountBalanceModalNd-Cj7-G7Z3.cjs +7 -0
  10. package/components/PlayerDeposit-D4d7MVd3.cjs +1 -0
  11. package/components/{PlayerDeposit-qsZYITrf.js → PlayerDeposit-D_Pd3fvu.js} +74 -74
  12. package/components/{PlayerDeposit-C910Gf1y.js → PlayerDeposit-DmubnzW9.js} +77 -77
  13. package/es2015/casino-header-controller-nd.cjs +1 -1
  14. package/es2015/casino-header-controller-nd.js +1 -1
  15. package/esnext/casino-header-controller-nd.js +1 -1
  16. package/lazy/{casino-hamburger-menu-nd-CAOIXMkM.cjs → casino-hamburger-menu-nd-CMEc__oS.cjs} +1 -1
  17. package/lazy/{casino-hamburger-menu-nd-DrYJDNro.js → casino-hamburger-menu-nd-DlmawdHt.js} +1 -1
  18. package/lazy/{casino-hamburger-menu-nd-DWZz6hns.js → casino-hamburger-menu-nd-ouF1QHns.js} +1 -1
  19. package/lazy/{gamification-dropdown-P2zG2HBt.js → gamification-dropdown-0spy0_Jv.js} +271 -267
  20. package/lazy/gamification-dropdown-BCWzT1QK.js +758 -0
  21. package/lazy/gamification-dropdown-D0wAisNS.cjs +1 -0
  22. package/lazy/{player-account-balance-modal-nd-BY8xnPL2.js → player-account-balance-modal-nd-Ci4Zg6Hh.js} +1 -1
  23. package/lazy/{player-account-balance-modal-nd-D1AAY1_s.js → player-account-balance-modal-nd-rPH9AN9Y.js} +1 -1
  24. package/lazy/{player-account-balance-modal-nd-CWxFg0Rd.cjs → player-account-balance-modal-nd-zGnJas1c.cjs} +1 -1
  25. package/lazy/{player-deposit-Mn3IRhQ6.js → player-deposit-CaMa6djz.js} +1 -1
  26. package/lazy/{player-deposit-BZMECdu0.js → player-deposit-CaycmoDv.js} +1 -1
  27. package/lazy/{player-deposit-CgdF-jd5.cjs → player-deposit-MHWzbfWP.cjs} +1 -1
  28. package/lazy/user-deposit-withdrawal-AwhSDCus.js +557 -0
  29. package/lazy/user-deposit-withdrawal-B_Nv4rDM.js +573 -0
  30. package/lazy/user-deposit-withdrawal-d-w0__HO.cjs +1 -0
  31. package/package.json +1 -1
  32. package/stencil/{gamification-dropdown-92e6c856-B8vweing.js → gamification-dropdown-92e6c856-BAc7XsCF.js} +1 -1
  33. package/stencil/{gamification-dropdown-92e6c856-BZ8VQIG4.cjs → gamification-dropdown-92e6c856-Bcy-54uI.cjs} +1 -1
  34. package/stencil/{gamification-dropdown-92e6c856-AyLEePRL.js → gamification-dropdown-92e6c856-D4kHGze1.js} +1 -1
  35. package/stencil/{gamification-dropdown-CglkdhCZ.js → gamification-dropdown-BK7OkFdV.js} +2 -2
  36. package/stencil/{gamification-dropdown-HmEzwf9M.cjs → gamification-dropdown-BRlTQDui.cjs} +1 -1
  37. package/stencil/{gamification-dropdown-Chg7QhVL.js → gamification-dropdown-yJyqxtor.js} +2 -2
  38. package/stencil/{gamification-dropdown_4-CDqbYkpV.js → gamification-dropdown_4-B4cK84RN.js} +6 -6
  39. package/stencil/{gamification-dropdown_4-DxW8ztP7.js → gamification-dropdown_4-BLkHBk3K.js} +6 -6
  40. package/stencil/gamification-dropdown_4-D64dMPom.cjs +192 -0
  41. package/stencil/{locale-TxlOHoKi.js → locale-CIZHVMDe.js} +28 -22
  42. package/stencil/{locale-B_6Rn5-v.cjs → locale-m6IHPAzW.cjs} +1 -1
  43. package/stencil/{player-elevate-card-D61zzjoE.js → player-elevate-card-BA8G0Mqx.js} +3 -3
  44. package/stencil/{player-elevate-card-BbWKuYfj.js → player-elevate-card-BrJpawbF.js} +3 -3
  45. package/stencil/{player-elevate-card-BXMauXgU.cjs → player-elevate-card-DKW2eHTs.cjs} +1 -1
  46. package/stencil/{player-elevate-card-items-08c6fbd8-M94MmEsh.js → player-elevate-card-items-b4571def-B5YwItYc.js} +238 -236
  47. package/stencil/{player-elevate-card-items-08c6fbd8-BRpYa59u.js → player-elevate-card-items-b4571def-BCXN9g53.js} +238 -236
  48. package/stencil/player-elevate-card-items-b4571def-H9aHZjN2.cjs +102 -0
  49. package/stencil/{player-elevate-pointcard-CnJ1h4uy.js → player-elevate-pointcard-DJahPWy0.js} +3 -3
  50. package/stencil/{player-elevate-pointcard-BL1XZLER.js → player-elevate-pointcard-DP-ENbxI.js} +3 -3
  51. package/stencil/{player-elevate-pointcard-CIGh8PLS.cjs → player-elevate-pointcard-DyRqojWr.cjs} +1 -1
  52. package/stencil/{player-rakeback-card-B_-fQFE_.js → player-rakeback-card-5QTpE9MZ.js} +2 -2
  53. package/stencil/{player-rakeback-card-B3uCylZm.cjs → player-rakeback-card-CWJd5hs8.cjs} +1 -1
  54. package/stencil/{player-rakeback-card-C79YOrb9.js → player-rakeback-card-Cx54ZYxX.js} +2 -2
  55. package/stencil/{user-deposit-withdrawal-Bgmu_v3L.js → user-deposit-withdrawal-BxOnNff1.js} +1 -1
  56. package/stencil/{user-deposit-withdrawal-D-OTOuVZ.cjs → user-deposit-withdrawal-DeaqutF7.cjs} +1 -1
  57. package/stencil/{user-deposit-withdrawal-C1ZuOfGY.js → user-deposit-withdrawal-iO3aTWUP.js} +1 -1
  58. package/components/CasinoHamburgerMenuNd-BWhQR6n1.cjs +0 -18
  59. package/components/PlayerAccountBalanceModalNd-BxspHx1P.js +0 -1564
  60. package/components/PlayerAccountBalanceModalNd-C9GnwJNI.cjs +0 -7
  61. package/components/PlayerAccountBalanceModalNd-UlBTfRN6.js +0 -1535
  62. package/components/PlayerDeposit-BDPi60xU.cjs +0 -1
  63. package/lazy/gamification-dropdown-92gu40Vl.js +0 -754
  64. package/lazy/gamification-dropdown-CmhvGtFZ.cjs +0 -1
  65. package/lazy/user-deposit-withdrawal-CWhRaiMB.cjs +0 -1
  66. package/lazy/user-deposit-withdrawal-DS7RI4jZ.js +0 -573
  67. package/lazy/user-deposit-withdrawal-fYrP9plZ.js +0 -557
  68. package/stencil/gamification-dropdown_4-Dm2tmI-r.cjs +0 -192
  69. package/stencil/player-elevate-card-items-08c6fbd8-ChUSMyWt.cjs +0 -102
@@ -0,0 +1,1564 @@
1
+ var pt = Object.defineProperty, ht = Object.defineProperties;
2
+ var mt = Object.getOwnPropertyDescriptors;
3
+ var Je = Object.getOwnPropertySymbols;
4
+ var gt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable;
5
+ var We = Math.pow, Ze = (o, e, t) => e in o ? pt(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, $e = (o, e) => {
6
+ for (var t in e || (e = {}))
7
+ gt.call(e, t) && Ze(o, t, e[t]);
8
+ if (Je)
9
+ for (var t of Je(e))
10
+ yt.call(e, t) && Ze(o, t, e[t]);
11
+ return o;
12
+ }, et = (o, e) => ht(o, mt(e));
13
+ var tt = (o, e, t) => new Promise((f, u) => {
14
+ var l = (b) => {
15
+ try {
16
+ d(t.next(b));
17
+ } catch (v) {
18
+ u(v);
19
+ }
20
+ }, y = (b) => {
21
+ try {
22
+ d(t.throw(b));
23
+ } catch (v) {
24
+ u(v);
25
+ }
26
+ }, d = (b) => b.done ? f(b.value) : Promise.resolve(b.value).then(l, y);
27
+ d((t = t.apply(o, e)).next());
28
+ });
29
+ import { b as wt, $ as bt, T as vt, S as Bt, i as Tt, s as St, f as X, c as Ct, d as _t, g as V, h as fe, j as R, l as pe, m as E, H as qe, w as he, y as At, Q as Lt, z as xt, J as Rt, N as Et, O as Mt, A as Dt, n as Ie, M as kt, F as Ae, D as at, B as Ot, G as Le, C as Ue, E as ft, x as Nt } from "./CasinoHamburgerMenuNd-ESbaCJ67.js";
30
+ function nt(o, e) {
31
+ wt(o, e);
32
+ }
33
+ function Ft(o) {
34
+ bt.set(o);
35
+ }
36
+ const ot = {
37
+ en: {
38
+ Title: "Your Balance",
39
+ Total: "Total Balance",
40
+ Real: "Cash Balance",
41
+ Bonus: "Bonus Balance",
42
+ Credit: "Credit Balance",
43
+ Casino: "Casino",
44
+ Sports: "Sports",
45
+ LimitsButton: "Limits",
46
+ DepositButton: "Deposit",
47
+ Loading: "Loading ..."
48
+ },
49
+ "zh-hk": {
50
+ Title: "您的結餘",
51
+ Total: "總結餘",
52
+ Real: "現金結餘",
53
+ Bonus: "紅利結餘",
54
+ Credit: "信用結餘",
55
+ Casino: "賭場",
56
+ Sports: "體育",
57
+ LimitsButton: "Limits",
58
+ DepositButton: "存款",
59
+ Loading: "載入中 ..."
60
+ },
61
+ de: {
62
+ Title: "Ihr Guthaben",
63
+ Total: "Gesamtguthaben",
64
+ Real: "Barguthaben",
65
+ Bonus: "Bonusguthaben",
66
+ Credit: "Kreditguthaben",
67
+ Casino: "Casino",
68
+ Sports: "Sport",
69
+ LimitsButton: "Limits",
70
+ DepositButton: "Einzahlen",
71
+ Loading: "Wird geladen ..."
72
+ },
73
+ it: {
74
+ Title: "Il tuo saldo",
75
+ Total: "Saldo totale",
76
+ Real: "Saldo in contanti",
77
+ Bonus: "Saldo bonus",
78
+ Credit: "Saldo di credito",
79
+ Casino: "Casinò",
80
+ Sports: "Sport",
81
+ LimitsButton: "Limits",
82
+ DepositButton: "Deposita",
83
+ Loading: "Caricamento ..."
84
+ },
85
+ fr: {
86
+ Title: "Votre solde",
87
+ Total: "Solde total",
88
+ Real: "Solde en espèces",
89
+ Bonus: "Solde bonus",
90
+ Credit: "Solde de crédit",
91
+ Casino: "Casino",
92
+ Sports: "Sports",
93
+ LimitsButton: "Limits",
94
+ DepositButton: "Dépôt",
95
+ Loading: "Chargement ..."
96
+ },
97
+ es: {
98
+ Title: "Tu saldo",
99
+ Total: "Saldo total",
100
+ Real: "Saldo en efectivo",
101
+ Bonus: "Saldo de bono",
102
+ Credit: "Saldo de crédito",
103
+ Casino: "Casino",
104
+ Sports: "Deportes",
105
+ LimitsButton: "Limits",
106
+ DepositButton: "Depósito",
107
+ Loading: "Cargando ..."
108
+ },
109
+ tr: {
110
+ Title: "Bakiyeniz",
111
+ Total: "Toplam Bakiye",
112
+ Real: "Nakit Bakiye",
113
+ Bonus: "Bonus Bakiyesi",
114
+ Credit: "Kredi Bakiyesi",
115
+ Casino: "Kumarhane",
116
+ Sports: "Spor",
117
+ LimitsButton: "Limits",
118
+ DepositButton: "Yatır",
119
+ Loading: "Yükleniyor ..."
120
+ },
121
+ ru: {
122
+ Title: "Ваш баланс",
123
+ Total: "Общий баланс",
124
+ Real: "Денежный баланс",
125
+ Bonus: "Бонусный баланс",
126
+ Credit: "Кредитный баланс",
127
+ Casino: "Казино",
128
+ Sports: "Спорт",
129
+ LimitsButton: "Limits",
130
+ DepositButton: "Депозит",
131
+ Loading: "Загружается ..."
132
+ },
133
+ ro: {
134
+ Title: "Soldul tău",
135
+ Total: "Sold total",
136
+ Real: "Sold în numerar",
137
+ Bonus: "Sold bonus",
138
+ Credit: "Sold credit",
139
+ Casino: "Cazinou",
140
+ Sports: "Sporturi",
141
+ LimitsButton: "Limits",
142
+ DepositButton: "Depozit",
143
+ Loading: "Se încarcă ..."
144
+ },
145
+ hr: {
146
+ Title: "Vaš saldo",
147
+ Total: "Ukupni saldo",
148
+ Real: "Gotovinski saldo",
149
+ Bonus: "Bonus saldo",
150
+ Credit: "Kreditni saldo",
151
+ Casino: "Casino",
152
+ Sports: "Sportovi",
153
+ LimitsButton: "Limits",
154
+ DepositButton: "Depozit",
155
+ Loading: "Učitavanje ..."
156
+ },
157
+ hu: {
158
+ Title: "Az egyenleged",
159
+ Total: "Teljes egyenleg",
160
+ Real: "Készpénz egyenleg",
161
+ Bonus: "Bónusz egyenleg",
162
+ Credit: "Hitel egyenleg",
163
+ Casino: "Kaszinó",
164
+ Sports: "Sport",
165
+ LimitsButton: "Limits",
166
+ DepositButton: "Befizetés",
167
+ Loading: "Betöltés ..."
168
+ },
169
+ pl: {
170
+ Title: "Twoje saldo",
171
+ Total: "Całkowite saldo",
172
+ Real: "Saldo gotówkowe",
173
+ Bonus: "Saldo bonusowe",
174
+ Credit: "Saldo kredytowe",
175
+ Casino: "Kasyno",
176
+ Sports: "Sport",
177
+ LimitsButton: "Limits",
178
+ DepositButton: "Wpłać",
179
+ Loading: "Ładowanie ..."
180
+ },
181
+ pt: {
182
+ Title: "Seu Saldo",
183
+ Total: "Saldo Total",
184
+ Real: "Saldo em Dinheiro",
185
+ Bonus: "Saldo de Bônus",
186
+ Credit: "Saldo de Crédito",
187
+ Casino: "Cassino",
188
+ Sports: "Esportes",
189
+ LimitsButton: "Limits",
190
+ DepositButton: "Depositar",
191
+ Loading: "Carregando ..."
192
+ },
193
+ sl: {
194
+ Title: "Vaš saldo",
195
+ Total: "Skupni saldo",
196
+ Real: "Gotovinski saldo",
197
+ Bonus: "Bonus saldo",
198
+ Credit: "Kreditni saldo",
199
+ Casino: "Kasino",
200
+ Sports: "Šport",
201
+ LimitsButton: "Limits",
202
+ DepositButton: "Depozit",
203
+ Loading: "Nalaganje ..."
204
+ },
205
+ sr: {
206
+ Title: "Vaš saldo",
207
+ Total: "Ukupan saldo",
208
+ Real: "Gotovinski saldo",
209
+ Bonus: "Bonus saldo",
210
+ Credit: "Kreditni saldo",
211
+ Casino: "Kasino",
212
+ Sports: "Sport",
213
+ LimitsButton: "Limits",
214
+ DepositButton: "Depozit",
215
+ Loading: "Učitavanje ..."
216
+ },
217
+ "pt-br": {
218
+ Title: "Seu Saldo",
219
+ Total: "Saldo Total",
220
+ Real: "Saldo em Dinheiro",
221
+ Bonus: "Saldo de Bônus",
222
+ Credit: "Saldo de Crédito",
223
+ Casino: "Cassino",
224
+ Sports: "Esportes",
225
+ LimitsButton: "Limits",
226
+ DepositButton: "Depositar",
227
+ Loading: "Carregando ..."
228
+ },
229
+ "es-mx": {
230
+ Title: "Tu saldo",
231
+ Total: "Saldo total",
232
+ Real: "Saldo en efectivo",
233
+ Bonus: "Saldo de bono",
234
+ Credit: "Saldo de crédito",
235
+ Casino: "Casino",
236
+ Sports: "Deportes",
237
+ LimitsButton: "Limits",
238
+ DepositButton: "Depósito",
239
+ Loading: "Cargando ..."
240
+ },
241
+ "en-us": {
242
+ Title: "Your Balance",
243
+ Total: "Total Balance",
244
+ Real: "Cash Balance",
245
+ Bonus: "Bonus Balance",
246
+ Credit: "Credit Balance",
247
+ Casino: "Casino",
248
+ Sports: "Sports",
249
+ LimitsButton: "Limits",
250
+ DepositButton: "Deposit",
251
+ Loading: "Loading ..."
252
+ }
253
+ };
254
+ var Ye = { exports: {} };
255
+ /** @license
256
+ * eventsource.js
257
+ * Available under MIT License (MIT)
258
+ * https://github.com/Yaffle/EventSource/
259
+ */
260
+ (function(o, e) {
261
+ (function(t) {
262
+ var f = t.setTimeout, u = t.clearTimeout, l = t.XMLHttpRequest, y = t.XDomainRequest, d = t.ActiveXObject, b = t.EventSource, v = t.document, k = t.Promise, U = t.fetch, H = t.Response, C = t.TextDecoder, S = t.TextEncoder, z = t.AbortController;
263
+ if (typeof window != "undefined" && typeof v != "undefined" && !("readyState" in v) && v.body == null && (v.readyState = "loading", window.addEventListener("load", function(a) {
264
+ v.readyState = "complete";
265
+ }, !1)), l == null && d != null && (l = function() {
266
+ return new d("Microsoft.XMLHTTP");
267
+ }), Object.create == null && (Object.create = function(a) {
268
+ function r() {
269
+ }
270
+ return r.prototype = a, new r();
271
+ }), Date.now || (Date.now = function() {
272
+ return (/* @__PURE__ */ new Date()).getTime();
273
+ }), z == null) {
274
+ var me = U;
275
+ U = function(a, r) {
276
+ var c = r.signal;
277
+ return me(a, { headers: r.headers, credentials: r.credentials, cache: r.cache }).then(function(i) {
278
+ var B = i.body.getReader();
279
+ return c._reader = B, c._aborted && c._reader.cancel(), {
280
+ status: i.status,
281
+ statusText: i.statusText,
282
+ headers: i.headers,
283
+ body: {
284
+ getReader: function() {
285
+ return B;
286
+ }
287
+ }
288
+ };
289
+ });
290
+ }, z = function() {
291
+ this.signal = {
292
+ _reader: null,
293
+ _aborted: !1
294
+ }, this.abort = function() {
295
+ this.signal._reader != null && this.signal._reader.cancel(), this.signal._aborted = !0;
296
+ };
297
+ };
298
+ }
299
+ function ce() {
300
+ this.bitsNeeded = 0, this.codePoint = 0;
301
+ }
302
+ ce.prototype.decode = function(a) {
303
+ function r(D, N, T) {
304
+ if (T === 1)
305
+ return D >= 128 >> N && D << N <= 2047;
306
+ if (T === 2)
307
+ return D >= 2048 >> N && D << N <= 55295 || D >= 57344 >> N && D << N <= 65535;
308
+ if (T === 3)
309
+ return D >= 65536 >> N && D << N <= 1114111;
310
+ throw new Error();
311
+ }
312
+ function c(D, N) {
313
+ if (D === 6 * 1)
314
+ return N >> 6 > 15 ? 3 : N > 31 ? 2 : 1;
315
+ if (D === 6 * 2)
316
+ return N > 15 ? 3 : 2;
317
+ if (D === 6 * 3)
318
+ return 3;
319
+ throw new Error();
320
+ }
321
+ for (var i = 65533, B = "", m = this.bitsNeeded, A = this.codePoint, F = 0; F < a.length; F += 1) {
322
+ var L = a[F];
323
+ m !== 0 && (L < 128 || L > 191 || !r(A << 6 | L & 63, m - 6, c(m, A))) && (m = 0, A = i, B += String.fromCharCode(A)), m === 0 ? (L >= 0 && L <= 127 ? (m = 0, A = L) : L >= 192 && L <= 223 ? (m = 6 * 1, A = L & 31) : L >= 224 && L <= 239 ? (m = 6 * 2, A = L & 15) : L >= 240 && L <= 247 ? (m = 6 * 3, A = L & 7) : (m = 0, A = i), m !== 0 && !r(A, m, c(m, A)) && (m = 0, A = i)) : (m -= 6, A = A << 6 | L & 63), m === 0 && (A <= 65535 ? B += String.fromCharCode(A) : (B += String.fromCharCode(55296 + (A - 65535 - 1 >> 10)), B += String.fromCharCode(56320 + (A - 65535 - 1 & 1023))));
324
+ }
325
+ return this.bitsNeeded = m, this.codePoint = A, B;
326
+ };
327
+ var Se = function() {
328
+ try {
329
+ return new C().decode(new S().encode("test"), { stream: !0 }) === "test";
330
+ } catch (a) {
331
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
332
+ }
333
+ return !1;
334
+ };
335
+ (C == null || S == null || !Se()) && (C = ce);
336
+ var G = function() {
337
+ };
338
+ function K(a) {
339
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = G, this.onload = G, this.onerror = G, this.onreadystatechange = G, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = G;
340
+ }
341
+ K.prototype.open = function(a, r) {
342
+ this._abort(!0);
343
+ var c = this, i = this._xhr, B = 1, m = 0;
344
+ this._abort = function(T) {
345
+ c._sendTimeout !== 0 && (u(c._sendTimeout), c._sendTimeout = 0), (B === 1 || B === 2 || B === 3) && (B = 4, i.onload = G, i.onerror = G, i.onabort = G, i.onprogress = G, i.onreadystatechange = G, i.abort(), m !== 0 && (u(m), m = 0), T || (c.readyState = 4, c.onabort(null), c.onreadystatechange())), B = 0;
346
+ };
347
+ var A = function() {
348
+ if (B === 1) {
349
+ var T = 0, n = "", p = void 0;
350
+ if ("contentType" in i)
351
+ T = 200, n = "OK", p = i.contentType;
352
+ else
353
+ try {
354
+ T = i.status, n = i.statusText, p = i.getResponseHeader("Content-Type");
355
+ } catch (w) {
356
+ T = 0, n = "", p = void 0;
357
+ }
358
+ T !== 0 && (B = 2, c.readyState = 2, c.status = T, c.statusText = n, c._contentType = p, c.onreadystatechange());
359
+ }
360
+ }, F = function() {
361
+ if (A(), B === 2 || B === 3) {
362
+ B = 3;
363
+ var T = "";
364
+ try {
365
+ T = i.responseText;
366
+ } catch (n) {
367
+ }
368
+ c.readyState = 3, c.responseText = T, c.onprogress();
369
+ }
370
+ }, L = function(T, n) {
371
+ if ((n == null || n.preventDefault == null) && (n = {
372
+ preventDefault: G
373
+ }), F(), B === 1 || B === 2 || B === 3) {
374
+ if (B = 4, m !== 0 && (u(m), m = 0), c.readyState = 4, T === "load")
375
+ c.onload(n);
376
+ else if (T === "error")
377
+ c.onerror(n);
378
+ else if (T === "abort")
379
+ c.onabort(n);
380
+ else
381
+ throw new TypeError();
382
+ c.onreadystatechange();
383
+ }
384
+ }, D = function(T) {
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 || F() : i.readyState === 2 && A());
386
+ }, N = function() {
387
+ m = f(function() {
388
+ N();
389
+ }, 500), i.readyState === 3 && F();
390
+ };
391
+ "onload" in i && (i.onload = function(T) {
392
+ L("load", T);
393
+ }), "onerror" in i && (i.onerror = function(T) {
394
+ L("error", T);
395
+ }), "onabort" in i && (i.onabort = function(T) {
396
+ L("abort", T);
397
+ }), "onprogress" in i && (i.onprogress = F), "onreadystatechange" in i && (i.onreadystatechange = function(T) {
398
+ D(T);
399
+ }), ("contentType" in i || !("ontimeout" in l.prototype)) && (r += (r.indexOf("?") === -1 ? "?" : "&") + "padding=true"), i.open(a, r, !0), "readyState" in i && (m = f(function() {
400
+ N();
401
+ }, 0));
402
+ }, K.prototype.abort = function() {
403
+ this._abort(!1);
404
+ }, K.prototype.getResponseHeader = function(a) {
405
+ return this._contentType;
406
+ }, K.prototype.setRequestHeader = function(a, r) {
407
+ var c = this._xhr;
408
+ "setRequestHeader" in c && c.setRequestHeader(a, r);
409
+ }, K.prototype.getAllResponseHeaders = function() {
410
+ return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
411
+ }, K.prototype.send = function() {
412
+ if ((!("ontimeout" in l.prototype) || !("sendAsBinary" in l.prototype) && !("mozAnon" in l.prototype)) && v != null && v.readyState != null && v.readyState !== "complete") {
413
+ var a = this;
414
+ a._sendTimeout = f(function() {
415
+ a._sendTimeout = 0, a.send();
416
+ }, 4);
417
+ return;
418
+ }
419
+ var r = this._xhr;
420
+ "withCredentials" in r && (r.withCredentials = this.withCredentials);
421
+ try {
422
+ r.send(void 0);
423
+ } catch (c) {
424
+ throw c;
425
+ }
426
+ };
427
+ function ne(a) {
428
+ return a.replace(/[A-Z]/g, function(r) {
429
+ return String.fromCharCode(r.charCodeAt(0) + 32);
430
+ });
431
+ }
432
+ function se(a) {
433
+ for (var r = /* @__PURE__ */ Object.create(null), c = a.split(`\r
434
+ `), i = 0; i < c.length; i += 1) {
435
+ var B = c[i], m = B.split(": "), A = m.shift(), F = m.join(": ");
436
+ r[ne(A)] = F;
437
+ }
438
+ this._map = r;
439
+ }
440
+ se.prototype.get = function(a) {
441
+ return this._map[ne(a)];
442
+ }, l != null && l.HEADERS_RECEIVED == null && (l.HEADERS_RECEIVED = 2);
443
+ function ge() {
444
+ }
445
+ ge.prototype.open = function(a, r, c, i, B, m, A) {
446
+ a.open("GET", B);
447
+ var F = 0;
448
+ a.onprogress = function() {
449
+ var D = a.responseText, N = D.slice(F);
450
+ F += N.length, c(N);
451
+ }, a.onerror = function(D) {
452
+ D.preventDefault(), i(new Error("NetworkError"));
453
+ }, a.onload = function() {
454
+ i(null);
455
+ }, a.onabort = function() {
456
+ i(null);
457
+ }, a.onreadystatechange = function() {
458
+ if (a.readyState === l.HEADERS_RECEIVED) {
459
+ var D = a.status, N = a.statusText, T = a.getResponseHeader("Content-Type"), n = a.getAllResponseHeaders();
460
+ r(D, N, T, new se(n));
461
+ }
462
+ }, a.withCredentials = m;
463
+ for (var L in A)
464
+ Object.prototype.hasOwnProperty.call(A, L) && a.setRequestHeader(L, A[L]);
465
+ return a.send(), a;
466
+ };
467
+ function W(a) {
468
+ this._headers = a;
469
+ }
470
+ W.prototype.get = function(a) {
471
+ return this._headers.get(a);
472
+ };
473
+ function P() {
474
+ }
475
+ P.prototype.open = function(a, r, c, i, B, m, A) {
476
+ var F = null, L = new z(), D = L.signal, N = new C();
477
+ return U(B, {
478
+ headers: A,
479
+ credentials: m ? "include" : "same-origin",
480
+ signal: D,
481
+ cache: "no-store"
482
+ }).then(function(T) {
483
+ return F = T.body.getReader(), r(T.status, T.statusText, T.headers.get("Content-Type"), new W(T.headers)), new k(function(n, p) {
484
+ var w = function() {
485
+ F.read().then(function(g) {
486
+ if (g.done)
487
+ n(void 0);
488
+ else {
489
+ var _ = N.decode(g.value, { stream: !0 });
490
+ c(_), w();
491
+ }
492
+ }).catch(function(g) {
493
+ p(g);
494
+ });
495
+ };
496
+ w();
497
+ });
498
+ }).catch(function(T) {
499
+ if (T.name !== "AbortError")
500
+ return T;
501
+ }).then(function(T) {
502
+ i(T);
503
+ }), {
504
+ abort: function() {
505
+ F != null && F.cancel(), L.abort();
506
+ }
507
+ };
508
+ };
509
+ function O() {
510
+ this._listeners = /* @__PURE__ */ Object.create(null);
511
+ }
512
+ function M(a) {
513
+ f(function() {
514
+ throw a;
515
+ }, 0);
516
+ }
517
+ O.prototype.dispatchEvent = function(a) {
518
+ a.target = this;
519
+ var r = this._listeners[a.type];
520
+ if (r != null)
521
+ for (var c = r.length, i = 0; i < c; i += 1) {
522
+ var B = r[i];
523
+ try {
524
+ typeof B.handleEvent == "function" ? B.handleEvent(a) : B.call(this, a);
525
+ } catch (m) {
526
+ M(m);
527
+ }
528
+ }
529
+ }, O.prototype.addEventListener = function(a, r) {
530
+ a = String(a);
531
+ var c = this._listeners, i = c[a];
532
+ i == null && (i = [], c[a] = i);
533
+ for (var B = !1, m = 0; m < i.length; m += 1)
534
+ i[m] === r && (B = !0);
535
+ B || i.push(r);
536
+ }, O.prototype.removeEventListener = function(a, r) {
537
+ a = String(a);
538
+ var c = this._listeners, i = c[a];
539
+ if (i != null) {
540
+ for (var B = [], m = 0; m < i.length; m += 1)
541
+ i[m] !== r && B.push(i[m]);
542
+ B.length === 0 ? delete c[a] : c[a] = B;
543
+ }
544
+ };
545
+ function I(a) {
546
+ this.type = a, this.target = void 0;
547
+ }
548
+ function j(a, r) {
549
+ I.call(this, a), this.data = r.data, this.lastEventId = r.lastEventId;
550
+ }
551
+ j.prototype = Object.create(I.prototype);
552
+ function ye(a, r) {
553
+ I.call(this, a), this.status = r.status, this.statusText = r.statusText, this.headers = r.headers;
554
+ }
555
+ ye.prototype = Object.create(I.prototype);
556
+ function je(a, r) {
557
+ I.call(this, a), this.error = r.error;
558
+ }
559
+ je.prototype = Object.create(I.prototype);
560
+ var ue = -1, ee = 0, te = 1, le = 2, Ee = -1, s = 0, we = 1, He = 2, Ce = 3, ke = /^text\/event\-stream(;.*)?$/i, Pe = 1e3, Ge = 18e6, Oe = function(a, r) {
561
+ var c = a == null ? r : parseInt(a, 10);
562
+ return c !== c && (c = r), xe(c);
563
+ }, xe = function(a) {
564
+ return Math.min(Math.max(a, Pe), Ge);
565
+ }, be = function(a, r, c) {
566
+ try {
567
+ typeof r == "function" && r.call(a, c);
568
+ } catch (i) {
569
+ M(i);
570
+ }
571
+ };
572
+ function oe(a, r) {
573
+ O.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, Xe(this, a, r);
574
+ }
575
+ function Ne() {
576
+ return l != null && "withCredentials" in l.prototype || y == null ? new l() : new y();
577
+ }
578
+ var ze = U != null && H != null && "body" in H.prototype;
579
+ function Xe(a, r, c) {
580
+ r = String(r);
581
+ var i = !!c.withCredentials, B = c.lastEventIdQueryParameterName || "lastEventId", m = xe(1e3), A = Oe(c.heartbeatTimeout, 45e3), F = "", L = m, D = !1, N = 0, T = c.headers || {}, n = c.Transport, p = ze && n == null ? void 0 : new K(n != null ? new n() : Ne()), w = n != null && typeof n != "string" ? new n() : p == null ? new P() : new ge(), g = void 0, _ = 0, x = ue, h = "", Y = "", J = "", de = "", Z = s, _e = 0, ve = 0, Ve = function(Q, q, ie, re) {
582
+ if (x === ee)
583
+ if (Q === 200 && ie != null && ke.test(ie)) {
584
+ x = te, D = Date.now(), L = m, a.readyState = te;
585
+ var ae = new ye("open", {
586
+ status: Q,
587
+ statusText: q,
588
+ headers: re
589
+ });
590
+ a.dispatchEvent(ae), be(a, a.onopen, ae);
591
+ } else {
592
+ var $ = "";
593
+ Q !== 200 ? (q && (q = q.replace(/\s+/g, " ")), $ = "EventSource's response has a status " + Q + " " + q + " that is not 200. Aborting the connection.") : $ = "EventSource's response has a Content-Type specifying an unsupported type: " + (ie == null ? "-" : ie.replace(/\s+/g, " ")) + ". Aborting the connection.", Ke();
594
+ var ae = new ye("error", {
595
+ status: Q,
596
+ statusText: q,
597
+ headers: re
598
+ });
599
+ a.dispatchEvent(ae), be(a, a.onerror, ae), console.error($);
600
+ }
601
+ }, Re = function(Q) {
602
+ if (x === te) {
603
+ for (var q = -1, ie = 0; ie < Q.length; ie += 1) {
604
+ var re = Q.charCodeAt(ie);
605
+ (re === 10 || re === 13) && (q = ie);
606
+ }
607
+ var ae = (q !== -1 ? de : "") + Q.slice(0, q + 1);
608
+ de = (q === -1 ? de : "") + Q.slice(q + 1), Q !== "" && (D = Date.now(), N += Q.length);
609
+ for (var $ = 0; $ < ae.length; $ += 1) {
610
+ var re = ae.charCodeAt($);
611
+ if (Z === Ee && re === 10)
612
+ Z = s;
613
+ else if (Z === Ee && (Z = s), re === 13 || re === 10) {
614
+ if (Z !== s) {
615
+ Z === we && (ve = $ + 1);
616
+ var Be = ae.slice(_e, ve - 1), Te = ae.slice(ve + (ve < $ && ae.charCodeAt(ve) === 32 ? 1 : 0), $);
617
+ Be === "data" ? (h += `
618
+ `, h += Te) : Be === "id" ? Y = Te : Be === "event" ? J = Te : Be === "retry" ? (m = Oe(Te, m), L = m) : Be === "heartbeatTimeout" && (A = Oe(Te, A), _ !== 0 && (u(_), _ = f(function() {
619
+ Fe();
620
+ }, A)));
621
+ }
622
+ if (Z === s) {
623
+ if (h !== "") {
624
+ F = Y, J === "" && (J = "message");
625
+ var De = new j(J, {
626
+ data: h.slice(1),
627
+ lastEventId: Y
628
+ });
629
+ if (a.dispatchEvent(De), J === "open" ? be(a, a.onopen, De) : J === "message" ? be(a, a.onmessage, De) : J === "error" && be(a, a.onerror, De), x === le)
630
+ return;
631
+ }
632
+ h = "", J = "";
633
+ }
634
+ Z = re === 13 ? Ee : s;
635
+ } else
636
+ Z === s && (_e = $, Z = we), Z === we ? re === 58 && (ve = $ + 1, Z = He) : Z === He && (Z = Ce);
637
+ }
638
+ }
639
+ }, Qe = function(Q) {
640
+ if (x === te || x === ee) {
641
+ x = ue, _ !== 0 && (u(_), _ = 0), _ = f(function() {
642
+ Fe();
643
+ }, L), L = xe(Math.min(m * 16, L * 2)), a.readyState = ee;
644
+ var q = new je("error", { error: Q });
645
+ a.dispatchEvent(q), be(a, a.onerror, q), Q != null && console.error(Q);
646
+ }
647
+ }, Ke = function() {
648
+ x = le, g != null && (g.abort(), g = void 0), _ !== 0 && (u(_), _ = 0), a.readyState = le;
649
+ }, Fe = function() {
650
+ if (_ = 0, x !== ue) {
651
+ if (!D && g != null)
652
+ Qe(new Error("No activity within " + A + " milliseconds. " + (x === ee ? "No response received." : N + " chars received.") + " Reconnecting.")), g != null && (g.abort(), g = void 0);
653
+ else {
654
+ var Q = Math.max((D || Date.now()) + A - Date.now(), 1);
655
+ D = !1, _ = f(function() {
656
+ Fe();
657
+ }, Q);
658
+ }
659
+ return;
660
+ }
661
+ D = !1, N = 0, _ = f(function() {
662
+ Fe();
663
+ }, A), x = ee, h = "", J = "", Y = F, de = "", _e = 0, ve = 0, Z = s;
664
+ var q = r;
665
+ if (r.slice(0, 5) !== "data:" && r.slice(0, 5) !== "blob:" && F !== "") {
666
+ var ie = r.indexOf("?");
667
+ q = ie === -1 ? r : r.slice(0, ie + 1) + r.slice(ie + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Te, De) {
668
+ return De === B ? "" : Te;
669
+ }), q += (r.indexOf("?") === -1 ? "?" : "&") + B + "=" + encodeURIComponent(F);
670
+ }
671
+ var re = a.withCredentials, ae = {};
672
+ ae.Accept = "text/event-stream";
673
+ var $ = a.headers;
674
+ if ($ != null)
675
+ for (var Be in $)
676
+ Object.prototype.hasOwnProperty.call($, Be) && (ae[Be] = $[Be]);
677
+ try {
678
+ g = w.open(p, Ve, Re, Qe, q, re, ae);
679
+ } catch (Te) {
680
+ throw Ke(), Te;
681
+ }
682
+ };
683
+ a.url = r, a.readyState = ee, a.withCredentials = i, a.headers = T, a._close = Ke, Fe();
684
+ }
685
+ oe.prototype = Object.create(O.prototype), oe.prototype.CONNECTING = ee, oe.prototype.OPEN = te, oe.prototype.CLOSED = le, oe.prototype.close = function() {
686
+ this._close();
687
+ }, oe.CONNECTING = ee, oe.OPEN = te, oe.CLOSED = le, oe.prototype.withCredentials = void 0;
688
+ var Me = b;
689
+ l != null && (b == null || !("withCredentials" in b.prototype)) && (Me = oe), function(a) {
690
+ {
691
+ var r = a(e);
692
+ r !== void 0 && (o.exports = r);
693
+ }
694
+ }(function(a) {
695
+ a.EventSourcePolyfill = oe, a.NativeEventSource = b, a.EventSource = Me;
696
+ });
697
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : vt : globalThis);
698
+ })(Ye, Ye.exports);
699
+ var It = Ye.exports;
700
+ function jt(o) {
701
+ _t(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
+ }
703
+ function it(o, e, t) {
704
+ const f = o.slice();
705
+ return f[61] = e[t], f;
706
+ }
707
+ function rt(o, e, t) {
708
+ const f = o.slice();
709
+ return f[64] = e[t], f;
710
+ }
711
+ function Ht(o) {
712
+ let e, t, f, u, l, y, d, b, v, k, U, H, C = (
713
+ /*showBalance*/
714
+ o[5] && st(o)
715
+ );
716
+ return {
717
+ c() {
718
+ e = V("button"), t = V("p"), f = Ae(
719
+ /*displayBalance*/
720
+ o[7]
721
+ ), u = fe(), l = V("span"), y = at("svg"), d = at("path"), v = fe(), C && C.c(), k = Ot(), R(d, "id", "arrow"), R(d, "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(d, "transform", "translate(-274.511 -441.088)"), R(d, "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(l, "class", b = /*isModalDisplayed*/
722
+ o[4] ? "TriangleActive" : "TriangleInactive"), R(e, "class", "BalanceValue");
723
+ },
724
+ m(S, z) {
725
+ pe(S, e, z), E(e, t), E(t, f), E(e, u), E(e, l), E(l, y), E(y, d), pe(S, v, z), C && C.m(S, z), pe(S, k, z), U || (H = Ie(
726
+ e,
727
+ "click",
728
+ /*click_handler*/
729
+ o[32]
730
+ ), U = !0);
731
+ },
732
+ p(S, z) {
733
+ z[0] & /*displayBalance*/
734
+ 128 && Le(
735
+ f,
736
+ /*displayBalance*/
737
+ S[7]
738
+ ), z[0] & /*isModalDisplayed*/
739
+ 16 && b !== (b = /*isModalDisplayed*/
740
+ S[4] ? "TriangleActive" : "TriangleInactive") && R(l, "class", b), /*showBalance*/
741
+ S[5] ? C ? C.p(S, z) : (C = st(S), C.c(), C.m(k.parentNode, k)) : C && (C.d(1), C = null);
742
+ },
743
+ d(S) {
744
+ S && (he(e), he(v), he(k)), C && C.d(S), U = !1, H();
745
+ }
746
+ };
747
+ }
748
+ function zt(o) {
749
+ let e, t = (
750
+ /*$_*/
751
+ o[8]("Loading") + ""
752
+ ), f;
753
+ return {
754
+ c() {
755
+ e = V("p"), f = Ae(t), R(e, "class", "Loading");
756
+ },
757
+ m(u, l) {
758
+ pe(u, e, l), E(e, f);
759
+ },
760
+ p(u, l) {
761
+ l[0] & /*$_*/
762
+ 256 && t !== (t = /*$_*/
763
+ u[8]("Loading") + "") && Le(f, t);
764
+ },
765
+ d(u) {
766
+ u && he(e);
767
+ }
768
+ };
769
+ }
770
+ function st(o) {
771
+ let e, t, f, u, l, y, d, b, v = (
772
+ /*$_*/
773
+ o[8]("Title") + ""
774
+ ), k, U, H, C, S, z, me = (
775
+ /*$_*/
776
+ o[8]("DepositButton") + ""
777
+ ), ce, Se, G, K, ne, se, ge, W = Ue(Object.keys(
778
+ /*balances*/
779
+ o[2]
780
+ )), P = [];
781
+ for (let M = 0; M < W.length; M += 1)
782
+ P[M] = ct(it(o, W, M));
783
+ let O = (
784
+ /*balancelimitsbutton*/
785
+ o[0] === "true" && ut(o)
786
+ );
787
+ return {
788
+ c() {
789
+ e = V("div"), t = V("button"), u = fe(), l = V("div"), y = V("div"), d = V("div"), b = V("p"), k = Ae(v), U = fe(), H = V("div");
790
+ for (let M = 0; M < P.length; M += 1)
791
+ P[M].c();
792
+ C = fe(), S = V("div"), z = V("button"), ce = Ae(me), Se = fe(), O && O.c(), R(t, "class", f = "BalanceModalClose " + /*isModalDisplayed*/
793
+ (o[4] ? "Open" : "")), R(b, "class", "BalanceModalTitle"), R(d, "class", "BalanceModalHeader"), R(H, "class", "BalanceModalBody"), R(z, "class", "BalanceModalAction DepositButton"), R(S, "class", "BalanceModalFooter"), R(y, "class", G = "ModalContent " + /*isModalDisplayed*/
794
+ (o[4] ? "Open" : "")), R(l, "class", K = "BalanceModal " + /*isModalDisplayed*/
795
+ (o[4] ? "Open" : "")), R(e, "class", ne = "BalanceModalWrapper " + /*isModalDisplayed*/
796
+ (o[4] ? "Open" : ""));
797
+ },
798
+ m(M, I) {
799
+ pe(M, e, I), E(e, t), E(e, u), E(e, l), E(l, y), E(y, d), E(d, b), E(b, k), E(y, U), E(y, H);
800
+ for (let j = 0; j < P.length; j += 1)
801
+ P[j] && P[j].m(H, null);
802
+ E(y, C), E(y, S), E(S, z), E(z, ce), E(S, Se), O && O.m(S, null), se || (ge = [
803
+ Ie(
804
+ t,
805
+ "click",
806
+ /*click_handler_1*/
807
+ o[33]
808
+ ),
809
+ Ie(
810
+ z,
811
+ "click",
812
+ /*click_handler_2*/
813
+ o[34]
814
+ )
815
+ ], se = !0);
816
+ },
817
+ p(M, I) {
818
+ if (I[0] & /*isModalDisplayed*/
819
+ 16 && f !== (f = "BalanceModalClose " + /*isModalDisplayed*/
820
+ (M[4] ? "Open" : "")) && R(t, "class", f), I[0] & /*$_*/
821
+ 256 && v !== (v = /*$_*/
822
+ M[8]("Title") + "") && Le(k, v), I[0] & /*balances, formatBalance, getProductType, $_*/
823
+ 5380) {
824
+ W = Ue(Object.keys(
825
+ /*balances*/
826
+ M[2]
827
+ ));
828
+ let j;
829
+ for (j = 0; j < W.length; j += 1) {
830
+ const ye = it(M, W, j);
831
+ P[j] ? P[j].p(ye, I) : (P[j] = ct(ye), P[j].c(), P[j].m(H, null));
832
+ }
833
+ for (; j < P.length; j += 1)
834
+ P[j].d(1);
835
+ P.length = W.length;
836
+ }
837
+ I[0] & /*$_*/
838
+ 256 && me !== (me = /*$_*/
839
+ M[8]("DepositButton") + "") && Le(ce, me), /*balancelimitsbutton*/
840
+ M[0] === "true" ? O ? O.p(M, I) : (O = ut(M), O.c(), O.m(S, null)) : O && (O.d(1), O = null), I[0] & /*isModalDisplayed*/
841
+ 16 && G !== (G = "ModalContent " + /*isModalDisplayed*/
842
+ (M[4] ? "Open" : "")) && R(y, "class", G), I[0] & /*isModalDisplayed*/
843
+ 16 && K !== (K = "BalanceModal " + /*isModalDisplayed*/
844
+ (M[4] ? "Open" : "")) && R(l, "class", K), I[0] & /*isModalDisplayed*/
845
+ 16 && ne !== (ne = "BalanceModalWrapper " + /*isModalDisplayed*/
846
+ (M[4] ? "Open" : "")) && R(e, "class", ne);
847
+ },
848
+ d(M) {
849
+ M && he(e), ft(P, M), O && O.d(), se = !1, Nt(ge);
850
+ }
851
+ };
852
+ }
853
+ function lt(o) {
854
+ let e, t, f = (
855
+ /*$_*/
856
+ o[8](
857
+ /*k*/
858
+ o[61]
859
+ ) + ""
860
+ ), u, l, y = (
861
+ /*getProductType*/
862
+ o[12](
863
+ /*balance*/
864
+ o[64]
865
+ ) + ""
866
+ ), d, b, v, k, U = (
867
+ /*formatBalance*/
868
+ o[10](
869
+ /*balance*/
870
+ o[64].amount
871
+ ) + ""
872
+ ), H;
873
+ return {
874
+ c() {
875
+ e = V("div"), t = V("p"), u = Ae(f), l = fe(), d = Ae(y), b = fe(), v = V("p"), k = V("span"), H = Ae(U), R(t, "class", "BalanceModalText"), R(k, "class", "BalanceModalAmount"), R(v, "class", "BalanceModalValue"), R(e, "class", "BalanceModalRowLine");
876
+ },
877
+ m(C, S) {
878
+ pe(C, e, S), E(e, t), E(t, u), E(t, l), E(t, d), E(e, b), E(e, v), E(v, k), E(k, H);
879
+ },
880
+ p(C, S) {
881
+ S[0] & /*$_, balances*/
882
+ 260 && f !== (f = /*$_*/
883
+ C[8](
884
+ /*k*/
885
+ C[61]
886
+ ) + "") && Le(u, f), S[0] & /*balances*/
887
+ 4 && y !== (y = /*getProductType*/
888
+ C[12](
889
+ /*balance*/
890
+ C[64]
891
+ ) + "") && Le(d, y), S[0] & /*balances*/
892
+ 4 && U !== (U = /*formatBalance*/
893
+ C[10](
894
+ /*balance*/
895
+ C[64].amount
896
+ ) + "") && Le(H, U);
897
+ },
898
+ d(C) {
899
+ C && he(e);
900
+ }
901
+ };
902
+ }
903
+ function ct(o) {
904
+ let e, t, f = Ue(
905
+ /*balances*/
906
+ o[2][
907
+ /*k*/
908
+ o[61]
909
+ ]
910
+ ), u = [];
911
+ for (let l = 0; l < f.length; l += 1)
912
+ u[l] = lt(rt(o, f, l));
913
+ return {
914
+ c() {
915
+ e = V("div");
916
+ for (let l = 0; l < u.length; l += 1)
917
+ u[l].c();
918
+ t = fe(), R(e, "class", "BalanceModalRowBoth");
919
+ },
920
+ m(l, y) {
921
+ pe(l, e, y);
922
+ for (let d = 0; d < u.length; d += 1)
923
+ u[d] && u[d].m(e, null);
924
+ E(e, t);
925
+ },
926
+ p(l, y) {
927
+ if (y[0] & /*formatBalance, balances, getProductType, $_*/
928
+ 5380) {
929
+ f = Ue(
930
+ /*balances*/
931
+ l[2][
932
+ /*k*/
933
+ l[61]
934
+ ]
935
+ );
936
+ let d;
937
+ for (d = 0; d < f.length; d += 1) {
938
+ const b = rt(l, f, d);
939
+ u[d] ? u[d].p(b, y) : (u[d] = lt(b), u[d].c(), u[d].m(e, t));
940
+ }
941
+ for (; d < u.length; d += 1)
942
+ u[d].d(1);
943
+ u.length = f.length;
944
+ }
945
+ },
946
+ d(l) {
947
+ l && he(e), ft(u, l);
948
+ }
949
+ };
950
+ }
951
+ function ut(o) {
952
+ let e, t = (
953
+ /*$_*/
954
+ o[8]("LimitsButton") + ""
955
+ ), f, u, l;
956
+ return {
957
+ c() {
958
+ e = V("button"), f = Ae(t), R(e, "class", "BalanceModalAction LimitsButton");
959
+ },
960
+ m(y, d) {
961
+ pe(y, e, d), E(e, f), u || (l = Ie(
962
+ e,
963
+ "click",
964
+ /*click_handler_3*/
965
+ o[35]
966
+ ), u = !0);
967
+ },
968
+ p(y, d) {
969
+ d[0] & /*$_*/
970
+ 256 && t !== (t = /*$_*/
971
+ y[8]("LimitsButton") + "") && Le(f, t);
972
+ },
973
+ d(y) {
974
+ y && he(e), u = !1, l();
975
+ }
976
+ };
977
+ }
978
+ function dt(o) {
979
+ let e, t, f;
980
+ return {
981
+ c() {
982
+ e = V("button"), R(e, "class", "ShowBalanceModalOverlay");
983
+ },
984
+ m(u, l) {
985
+ pe(u, e, l), t || (f = Ie(
986
+ e,
987
+ "click",
988
+ /*click_handler_4*/
989
+ o[36]
990
+ ), t = !0);
991
+ },
992
+ p: qe,
993
+ d(u) {
994
+ u && he(e), t = !1, f();
995
+ }
996
+ };
997
+ }
998
+ function Vt(o) {
999
+ let e, t, f, u;
1000
+ function l(v, k) {
1001
+ return (
1002
+ /*isLoading*/
1003
+ v[3] ? zt : Ht
1004
+ );
1005
+ }
1006
+ let y = l(o), d = y(o), b = (
1007
+ /*showBalance*/
1008
+ o[5] && dt(o)
1009
+ );
1010
+ return {
1011
+ c() {
1012
+ e = V("div"), t = V("div"), d.c(), u = fe(), b && b.c(), R(t, "class", f = "ShowBalance " + /*mobileView*/
1013
+ (o[6] ? "Mobile" : ""));
1014
+ },
1015
+ m(v, k) {
1016
+ pe(v, e, k), E(e, t), d.m(t, null), E(e, u), b && b.m(e, null), o[37](e);
1017
+ },
1018
+ p(v, k) {
1019
+ y === (y = l(v)) && d ? d.p(v, k) : (d.d(1), d = y(v), d && (d.c(), d.m(t, null))), k[0] & /*mobileView*/
1020
+ 64 && f !== (f = "ShowBalance " + /*mobileView*/
1021
+ (v[6] ? "Mobile" : "")) && R(t, "class", f), /*showBalance*/
1022
+ v[5] ? b ? b.p(v, k) : (b = dt(v), b.c(), b.m(e, null)) : b && (b.d(1), b = null);
1023
+ },
1024
+ i: qe,
1025
+ o: qe,
1026
+ d(v) {
1027
+ v && he(e), d.d(), b && b.d(), o[37](null);
1028
+ }
1029
+ };
1030
+ }
1031
+ function Ut(o, e, t) {
1032
+ let f;
1033
+ At(o, Lt, (n) => t(8, f = n));
1034
+ let { userid: u = "" } = e, { session: l = "" } = e, { endpoint: y = "" } = e, { lang: d = "en" } = e, { mbsource: b = "" } = e, { clientstyling: v = "" } = e, { clientstylingurl: k = "" } = e, { translationurl: U = "" } = e, { gmversion: H = "gm16" } = e, { displaybalanceoption: C = "All" } = e, { totalcalculationmode: S = "totalCashAmount" } = e, { primarybalancemode: z } = e, { balancelimitsbutton: me = "false" } = e, { hideproducttype: ce = "" } = e, { currencylocale: Se = "en" } = e, { currencydisplay: G = "symbol" } = e, { maximumfractiondigits: K = "2" } = e, { minimumfractiondigits: ne = "0" } = e, { customdisplayformat: se = "" } = e, { alwaysshowdecimals: ge = "true" } = e, W, P, O = !0, M = !1, I = !1, j = !1, ye = !1, je = window.navigator.userAgent, ue, ee = "", te = [], le, Ee = "0";
1035
+ const s = {}, we = ["totalCashAmount", "totalRealAmount"], He = () => {
1036
+ fetch(U).then((n) => n.json()).then((n) => Object.keys(n).forEach((p) => nt(p, n[p]))).catch((n) => console.log(n));
1037
+ };
1038
+ Object.keys(ot).forEach((n) => nt(n, ot[n]));
1039
+ const Ce = (n) => {
1040
+ switch (n) {
1041
+ case "balance":
1042
+ window.postMessage(
1043
+ {
1044
+ type: "BalanceModalStatus",
1045
+ status: "open"
1046
+ },
1047
+ window.location.href
1048
+ ), t(5, j = !0), setTimeout(() => t(4, M = !0), 150);
1049
+ break;
1050
+ case "closebalance":
1051
+ t(4, M = !1), window.postMessage(
1052
+ {
1053
+ type: "BalanceModalStatus",
1054
+ status: "close"
1055
+ },
1056
+ window.location.href
1057
+ ), setTimeout(
1058
+ () => {
1059
+ t(5, j = !1);
1060
+ },
1061
+ 150
1062
+ );
1063
+ break;
1064
+ }
1065
+ }, ke = (n) => {
1066
+ if (se)
1067
+ return Pe(n);
1068
+ const p = Se || d, w = {
1069
+ style: "currency",
1070
+ currency: ee,
1071
+ useGrouping: !0,
1072
+ currencyDisplay: G || "code",
1073
+ maximumFractionDigits: K === "" || isNaN(Number(K)) ? 2 : Number(K),
1074
+ minimumFractionDigits: ne === "" || isNaN(Number(ne)) ? 0 : Number(ne)
1075
+ };
1076
+ return new Intl.NumberFormat(p, w).format(n);
1077
+ }, Pe = (n) => {
1078
+ const p = [];
1079
+ let w = "";
1080
+ for (const g of se)
1081
+ switch (g) {
1082
+ default:
1083
+ w += g;
1084
+ break;
1085
+ case "{":
1086
+ w && p.push(w), w = "";
1087
+ break;
1088
+ case "}":
1089
+ const [_, x] = w.split("|");
1090
+ if (w = "", _.toLowerCase() === "currency")
1091
+ w = ee;
1092
+ else if (_.toLowerCase() === "amount") {
1093
+ let h = ",", Y = ".", J = 2;
1094
+ x && (x[0] !== " " && (h = x[0]), x[1] !== " " && (Y = x[1]), x[2] !== " " && !isNaN(Number(x[2])) && (J = Number(x[2])));
1095
+ let [de, Z] = String(Math.floor(n * We(10, J)) / We(10, J)).split(".");
1096
+ w += de[0];
1097
+ for (let Re = 1; Re < de.length; ++Re)
1098
+ (de.length - Re) % 3 === 0 ? w += h + de[Re] : w += de[Re];
1099
+ let _e = Z || "";
1100
+ const ve = ge === "true", Ve = Number(K);
1101
+ if (ve)
1102
+ _e = _e.padEnd(Ve || 2, "0").substring(0, Ve);
1103
+ else if (!_e)
1104
+ break;
1105
+ w += Y + _e;
1106
+ }
1107
+ w && p.push(w), w = "";
1108
+ break;
1109
+ }
1110
+ return p.push(w), p.join("");
1111
+ }, Ge = () => tt(this, null, function* () {
1112
+ var p, w, g;
1113
+ t(3, O = !0);
1114
+ const n = new URL(`${y}/v1/player/${u}/account`);
1115
+ try {
1116
+ const _ = yield fetch(n, {
1117
+ method: "GET",
1118
+ headers: { "X-SessionID": l }
1119
+ }), x = yield _.json();
1120
+ if (_.ok)
1121
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), te = x.items, ee = (p = te.find((h) => h.displayName === "Casino")) == null ? void 0 : p.currency, t(2, s.Total = [{ amount: x.totalAmount[ee] }], s), t(
1122
+ 2,
1123
+ s.Real = [
1124
+ {
1125
+ amount: (w = te.find((h) => h.displayName === "Casino")) == null ? void 0 : w.balanceAmount
1126
+ }
1127
+ ],
1128
+ s
1129
+ ), t(
1130
+ 2,
1131
+ s.Bonus = [
1132
+ {
1133
+ amount: (g = te.find((h) => h.displayName === "UBS")) == null ? void 0 : g.balanceAmount
1134
+ }
1135
+ ],
1136
+ s
1137
+ );
1138
+ else
1139
+ throw new Error("Failed to fetch balance data !");
1140
+ } catch (_) {
1141
+ console.log("Balance error: ", _);
1142
+ } finally {
1143
+ t(3, O = !1);
1144
+ }
1145
+ }), Oe = () => {
1146
+ t(3, O = !0);
1147
+ const n = new URL(`${y}/v2/player/${u}/balance`), p = new Headers();
1148
+ p.append("X-SessionID", l), fetch(n, { method: "GET", headers: p }).then((g) => g.json()).then((g) => {
1149
+ g[S] || t(13, S = we[0]);
1150
+ const _ = g.items.find((h) => h.type === "Real" && h.walletAccountType === "Ordinary");
1151
+ if (ee = _.currency, I = !!_.productType, t(2, s.Total = [{ amount: 0 }], s), t(2, s.Real = [], s), t(2, s.Bonus = [], s), t(2, s.Credit = [], s), !I) {
1152
+ le = {
1153
+ lastOrdinaryAfterAmount: 0,
1154
+ showCreditLineAfterAmount: !1
1155
+ }, t(2, s.Total[0].amount = g[S][ee], s);
1156
+ for (const h of g.items)
1157
+ switch (h.type) {
1158
+ case "Bonus":
1159
+ s.Bonus.length === 0 ? s.Bonus.push({ amount: h.amount }) : t(2, s.Bonus[0].amount += h.amount, s);
1160
+ break;
1161
+ case "Real":
1162
+ if (h.creditLine && s.Credit.length === 0 && s.Credit.push({ amount: h.creditLine }), S === "totalRealAmount")
1163
+ continue;
1164
+ s.Real.length === 0 ? s.Real.push({ amount: h.amount }) : t(2, s.Real[0].amount += h.amount, s);
1165
+ break;
1166
+ }
1167
+ for (const [h, Y] of Object.entries(s))
1168
+ Y.length < 1 && delete s[h];
1169
+ t(3, O = !1);
1170
+ return;
1171
+ }
1172
+ le = {
1173
+ Casino: {
1174
+ lastOrdinaryAfterAmount: 0,
1175
+ showCreditLineAfterAmount: !1
1176
+ },
1177
+ Sports: {
1178
+ lastOrdinaryAfterAmount: 0,
1179
+ showCreditLineAfterAmount: !1
1180
+ }
1181
+ };
1182
+ let x = g.items;
1183
+ C && C !== "All" && (x = g.items.filter((h) => h.productType === C));
1184
+ for (const h of x) {
1185
+ let Y;
1186
+ switch (h.type) {
1187
+ case "Bonus":
1188
+ Y = s.Bonus.findIndex((J) => J.productType === h.productType), Y > 0 ? t(2, s.Bonus[Y].amount += h.amount, s) : s.Bonus.push({
1189
+ amount: h.amount,
1190
+ productType: h.productType
1191
+ });
1192
+ break;
1193
+ case "Real":
1194
+ h.creditLine && s.Credit.push({
1195
+ amount: h.creditLine,
1196
+ productType: h.productType
1197
+ }), Y = s.Real.findIndex((J) => J.productType === h.productType), Y > 0 ? t(2, s.Real[Y].amount += h.amount, s) : s.Real.push({
1198
+ amount: h.amount,
1199
+ productType: h.productType
1200
+ });
1201
+ break;
1202
+ }
1203
+ }
1204
+ ze();
1205
+ for (const [h, Y] of Object.entries(s))
1206
+ Y.length < 1 && delete s[h];
1207
+ window.postMessage({ type: "playerBalanceInfo", balance: g }, window.location.href), t(3, O = !1);
1208
+ }).catch((g) => {
1209
+ throw t(3, O = !1), console.log("Balance fetch error", g), new Error("Failed to fetch balance data!");
1210
+ });
1211
+ }, xe = () => {
1212
+ if (ue && ue.close(), l.length < 1)
1213
+ return;
1214
+ let n, p;
1215
+ switch (H) {
1216
+ case "gm16":
1217
+ n = new URL(`${y}/v2/player/${u}/information/updates`), p = (_) => Xe(_);
1218
+ break;
1219
+ case "gmcore":
1220
+ n = new URL(`${y}/v1/player/${u}/balance/updates`), p = (_) => oe(_);
1221
+ break;
1222
+ }
1223
+ const w = {
1224
+ accept: "text/event-stream",
1225
+ "X-SessionId": l
1226
+ }, g = new It.EventSourcePolyfill(n, { headers: w });
1227
+ ue = g, g.addEventListener("message", p);
1228
+ }, be = (n) => {
1229
+ let p;
1230
+ try {
1231
+ p = JSON.parse(n);
1232
+ } catch (w) {
1233
+ console.log("Balance stream failed: ", w);
1234
+ return;
1235
+ }
1236
+ return p;
1237
+ }, oe = (n) => {
1238
+ var _, x;
1239
+ const p = be(n.data);
1240
+ if (!p) {
1241
+ xe();
1242
+ return;
1243
+ }
1244
+ let w = "0";
1245
+ const g = p.balanceChange;
1246
+ te = te.map((h) => (g && g[h.id] && (h = et($e({}, h), {
1247
+ balanceAmount: g[h.id].afterAmount
1248
+ })), w = (parseFloat(h == null ? void 0 : h.balanceAmount) + parseFloat(w)).toString(), h)), t(2, s.Real = [{ amount: (_ = te[0]) == null ? void 0 : _.balanceAmount }], s), t(2, s.Bonus = [{ amount: (x = te[1]) == null ? void 0 : x.balanceAmount }], s), t(2, s.Total = [{ amount: Number(w) }], s);
1249
+ }, Ne = (n, p, w) => {
1250
+ let g = null;
1251
+ switch (w.walletAccountType) {
1252
+ case "Ordinary":
1253
+ (w.afterAmount !== w.affectedAmount || p.lastOrdinaryAfterAmount === 0) && (p.lastOrdinaryAfterAmount = w.afterAmount, p.showCreditLineAfterAmount || (g = w.afterAmount));
1254
+ break;
1255
+ case "CreditLine":
1256
+ w.afterAmount !== 0 ? (g = w.afterAmount, p.showCreditLineAfterAmount = !0) : (g = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
1257
+ break;
1258
+ default:
1259
+ g = w.afterAmount;
1260
+ }
1261
+ return g === null ? n : g;
1262
+ }, ze = () => {
1263
+ switch (S) {
1264
+ case "totalCashAmount":
1265
+ let n = 0;
1266
+ for (const w of ["Real", "Bonus"])
1267
+ for (const g of s[w])
1268
+ n += Math.max(g.amount, 0);
1269
+ t(2, s.Total[0].amount = n, s);
1270
+ break;
1271
+ case "totalRealAmount":
1272
+ if (!I)
1273
+ return;
1274
+ let p = 0;
1275
+ for (const w of s.Real)
1276
+ p += w.amount;
1277
+ t(2, s.Total[0].amount = p, s);
1278
+ }
1279
+ }, Xe = (n) => {
1280
+ const p = be(n.data);
1281
+ if (!p) {
1282
+ xe();
1283
+ return;
1284
+ }
1285
+ if (a(p == null ? void 0 : p.type) || p.type !== "BALANCE_UPDATE_V2")
1286
+ return;
1287
+ const w = p.body.balanceChange;
1288
+ for (const [g, _] of Object.entries(w))
1289
+ if (S === "totalRealAmount" && g === "Real" && !I && t(2, s.Total[0].amount = Ne(s.Total[0].amount, le, _), s), !!s[g])
1290
+ for (const x of s[g]) {
1291
+ if (!I) {
1292
+ x.amount = g === "Real" ? Ne(x.amount, le, _) : _.afterAmount;
1293
+ continue;
1294
+ }
1295
+ _.productType === x.productType && (x.amount = g === "Real" ? Ne(x.amount, le[x.productType], _) : _.afterAmount);
1296
+ }
1297
+ ze();
1298
+ }, Me = (n) => {
1299
+ switch (Ce("closebalance"), n) {
1300
+ case "deposit":
1301
+ window.postMessage({ type: "GoToDeposit" }, window.location.href);
1302
+ break;
1303
+ case "limits":
1304
+ window.postMessage({ type: "GoToLimits" }, window.location.href);
1305
+ break;
1306
+ }
1307
+ typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1308
+ }, a = (n) => n === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, r = () => {
1309
+ we.includes(S) || (console.error(`Unsupported value ('${S}') for totalcalculationmode parameter. Only the following values are supported ${we}. Using default value ('${we[0]}').`), t(13, S = we[0]));
1310
+ }, c = () => {
1311
+ switch (Ft(d), r(), H) {
1312
+ case "gmcore":
1313
+ Ge();
1314
+ break;
1315
+ case "gm16":
1316
+ Oe();
1317
+ break;
1318
+ default:
1319
+ throw Error(`Invalid apiversion attribute: ${H}`);
1320
+ }
1321
+ }, i = (n) => {
1322
+ const { data: { type: p } = {} } = n || {};
1323
+ switch (p) {
1324
+ case "LogoutSuccessfull":
1325
+ ue.close();
1326
+ break;
1327
+ case "CloseBalance":
1328
+ Ce("closebalance");
1329
+ break;
1330
+ }
1331
+ }, B = () => {
1332
+ window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
1333
+ }, m = (n) => {
1334
+ const p = ce.split(",").map((w) => w.trim());
1335
+ return !n.productType || p.includes(n.productType) ? "" : f(n.productType);
1336
+ };
1337
+ xt(() => (window.addEventListener("message", i, !1), t(6, ye = Rt(je)), () => {
1338
+ window.emMessageBus && P && P.unsubscribe(), window.removeEventListener("message", i), ue && ue.close();
1339
+ }));
1340
+ const A = () => Ce("balance"), F = () => Ce("closebalance"), L = () => Me("deposit"), D = () => Me("limits"), N = () => Ce("closebalance");
1341
+ function T(n) {
1342
+ kt[n ? "unshift" : "push"](() => {
1343
+ W = n, t(1, W);
1344
+ });
1345
+ }
1346
+ return o.$$set = (n) => {
1347
+ "userid" in n && t(14, u = n.userid), "session" in n && t(15, l = n.session), "endpoint" in n && t(16, y = n.endpoint), "lang" in n && t(17, d = n.lang), "mbsource" in n && t(18, b = n.mbsource), "clientstyling" in n && t(19, v = n.clientstyling), "clientstylingurl" in n && t(20, k = n.clientstylingurl), "translationurl" in n && t(21, U = n.translationurl), "gmversion" in n && t(22, H = n.gmversion), "displaybalanceoption" in n && t(23, C = n.displaybalanceoption), "totalcalculationmode" in n && t(13, S = n.totalcalculationmode), "primarybalancemode" in n && t(24, z = n.primarybalancemode), "balancelimitsbutton" in n && t(0, me = n.balancelimitsbutton), "hideproducttype" in n && t(25, ce = n.hideproducttype), "currencylocale" in n && t(26, Se = n.currencylocale), "currencydisplay" in n && t(27, G = n.currencydisplay), "maximumfractiondigits" in n && t(28, K = n.maximumfractiondigits), "minimumfractiondigits" in n && t(29, ne = n.minimumfractiondigits), "customdisplayformat" in n && t(30, se = n.customdisplayformat), "alwaysshowdecimals" in n && t(31, ge = n.alwaysshowdecimals);
1348
+ }, o.$$.update = () => {
1349
+ o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1350
+ 12828672 && y && u && l && d && H && C && c(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1351
+ 4308992 && y && u && l && H && xe(), o.$$.dirty[0] & /*translationurl*/
1352
+ 2097152 && U && He(), o.$$.dirty[0] & /*balances*/
1353
+ 4 && s.Total && B(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1354
+ 524290 && v && W && Et(W, v), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1355
+ 1048578 && k && W && Mt(W, k), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
1356
+ 262146 && b && W && Dt(W, `${b}.Style`), o.$$.dirty[0] & /*primarybalancemode, balances*/
1357
+ 16777220 && t(7, Ee = (() => {
1358
+ switch (z) {
1359
+ case "Real":
1360
+ return s.Real ? ke(s.Real[0].amount) : "0";
1361
+ default:
1362
+ return s.Total ? ke(s.Total[0].amount) : "0";
1363
+ }
1364
+ })());
1365
+ }, [
1366
+ me,
1367
+ W,
1368
+ s,
1369
+ O,
1370
+ M,
1371
+ j,
1372
+ ye,
1373
+ Ee,
1374
+ f,
1375
+ Ce,
1376
+ ke,
1377
+ Me,
1378
+ m,
1379
+ S,
1380
+ u,
1381
+ l,
1382
+ y,
1383
+ d,
1384
+ b,
1385
+ v,
1386
+ k,
1387
+ U,
1388
+ H,
1389
+ C,
1390
+ z,
1391
+ ce,
1392
+ Se,
1393
+ G,
1394
+ K,
1395
+ ne,
1396
+ se,
1397
+ ge,
1398
+ A,
1399
+ F,
1400
+ L,
1401
+ D,
1402
+ N,
1403
+ T
1404
+ ];
1405
+ }
1406
+ class Pt extends Bt {
1407
+ constructor(e) {
1408
+ super(), Tt(
1409
+ this,
1410
+ e,
1411
+ Ut,
1412
+ Vt,
1413
+ St,
1414
+ {
1415
+ userid: 14,
1416
+ session: 15,
1417
+ endpoint: 16,
1418
+ lang: 17,
1419
+ mbsource: 18,
1420
+ clientstyling: 19,
1421
+ clientstylingurl: 20,
1422
+ translationurl: 21,
1423
+ gmversion: 22,
1424
+ displaybalanceoption: 23,
1425
+ totalcalculationmode: 13,
1426
+ primarybalancemode: 24,
1427
+ balancelimitsbutton: 0,
1428
+ hideproducttype: 25,
1429
+ currencylocale: 26,
1430
+ currencydisplay: 27,
1431
+ maximumfractiondigits: 28,
1432
+ minimumfractiondigits: 29,
1433
+ customdisplayformat: 30,
1434
+ alwaysshowdecimals: 31
1435
+ },
1436
+ jt,
1437
+ [-1, -1, -1]
1438
+ );
1439
+ }
1440
+ get userid() {
1441
+ return this.$$.ctx[14];
1442
+ }
1443
+ set userid(e) {
1444
+ this.$$set({ userid: e }), X();
1445
+ }
1446
+ get session() {
1447
+ return this.$$.ctx[15];
1448
+ }
1449
+ set session(e) {
1450
+ this.$$set({ session: e }), X();
1451
+ }
1452
+ get endpoint() {
1453
+ return this.$$.ctx[16];
1454
+ }
1455
+ set endpoint(e) {
1456
+ this.$$set({ endpoint: e }), X();
1457
+ }
1458
+ get lang() {
1459
+ return this.$$.ctx[17];
1460
+ }
1461
+ set lang(e) {
1462
+ this.$$set({ lang: e }), X();
1463
+ }
1464
+ get mbsource() {
1465
+ return this.$$.ctx[18];
1466
+ }
1467
+ set mbsource(e) {
1468
+ this.$$set({ mbsource: e }), X();
1469
+ }
1470
+ get clientstyling() {
1471
+ return this.$$.ctx[19];
1472
+ }
1473
+ set clientstyling(e) {
1474
+ this.$$set({ clientstyling: e }), X();
1475
+ }
1476
+ get clientstylingurl() {
1477
+ return this.$$.ctx[20];
1478
+ }
1479
+ set clientstylingurl(e) {
1480
+ this.$$set({ clientstylingurl: e }), X();
1481
+ }
1482
+ get translationurl() {
1483
+ return this.$$.ctx[21];
1484
+ }
1485
+ set translationurl(e) {
1486
+ this.$$set({ translationurl: e }), X();
1487
+ }
1488
+ get gmversion() {
1489
+ return this.$$.ctx[22];
1490
+ }
1491
+ set gmversion(e) {
1492
+ this.$$set({ gmversion: e }), X();
1493
+ }
1494
+ get displaybalanceoption() {
1495
+ return this.$$.ctx[23];
1496
+ }
1497
+ set displaybalanceoption(e) {
1498
+ this.$$set({ displaybalanceoption: e }), X();
1499
+ }
1500
+ get totalcalculationmode() {
1501
+ return this.$$.ctx[13];
1502
+ }
1503
+ set totalcalculationmode(e) {
1504
+ this.$$set({ totalcalculationmode: e }), X();
1505
+ }
1506
+ get primarybalancemode() {
1507
+ return this.$$.ctx[24];
1508
+ }
1509
+ set primarybalancemode(e) {
1510
+ this.$$set({ primarybalancemode: e }), X();
1511
+ }
1512
+ get balancelimitsbutton() {
1513
+ return this.$$.ctx[0];
1514
+ }
1515
+ set balancelimitsbutton(e) {
1516
+ this.$$set({ balancelimitsbutton: e }), X();
1517
+ }
1518
+ get hideproducttype() {
1519
+ return this.$$.ctx[25];
1520
+ }
1521
+ set hideproducttype(e) {
1522
+ this.$$set({ hideproducttype: e }), X();
1523
+ }
1524
+ get currencylocale() {
1525
+ return this.$$.ctx[26];
1526
+ }
1527
+ set currencylocale(e) {
1528
+ this.$$set({ currencylocale: e }), X();
1529
+ }
1530
+ get currencydisplay() {
1531
+ return this.$$.ctx[27];
1532
+ }
1533
+ set currencydisplay(e) {
1534
+ this.$$set({ currencydisplay: e }), X();
1535
+ }
1536
+ get maximumfractiondigits() {
1537
+ return this.$$.ctx[28];
1538
+ }
1539
+ set maximumfractiondigits(e) {
1540
+ this.$$set({ maximumfractiondigits: e }), X();
1541
+ }
1542
+ get minimumfractiondigits() {
1543
+ return this.$$.ctx[29];
1544
+ }
1545
+ set minimumfractiondigits(e) {
1546
+ this.$$set({ minimumfractiondigits: e }), X();
1547
+ }
1548
+ get customdisplayformat() {
1549
+ return this.$$.ctx[30];
1550
+ }
1551
+ set customdisplayformat(e) {
1552
+ this.$$set({ customdisplayformat: e }), X();
1553
+ }
1554
+ get alwaysshowdecimals() {
1555
+ return this.$$.ctx[31];
1556
+ }
1557
+ set alwaysshowdecimals(e) {
1558
+ this.$$set({ alwaysshowdecimals: e }), X();
1559
+ }
1560
+ }
1561
+ Ct(Pt, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, primarybalancemode: {}, balancelimitsbutton: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {}, alwaysshowdecimals: {} }, [], [], !0);
1562
+ export {
1563
+ Pt as default
1564
+ };