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