@everymatrix/casino-game-overlay 0.9.0 → 1.70.1

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 (54) hide show
  1. package/components/CasinoCoinroyaleContainer-BgtHuBp9.cjs +18 -0
  2. package/components/CasinoCoinroyaleContainer-D9k7i57b.js +4844 -0
  3. package/components/CasinoCoinroyaleContainer-DtpSh_fd.js +4889 -0
  4. package/components/CasinoCoinroyaleDetails-CChe_Ht0.js +470 -0
  5. package/components/CasinoCoinroyaleDetails-DnKN1CLM.cjs +2 -0
  6. package/components/CasinoCoinroyaleDetails-GDRjYHPf.js +512 -0
  7. package/components/CasinoCoinroyaleList-BEdmTcEU.cjs +1 -0
  8. package/components/CasinoCoinroyaleList-CRcT0rBz.js +2205 -0
  9. package/components/CasinoCoinroyaleList-TWLzYA-s.js +2162 -0
  10. package/components/CasinoGameOverlay-BAWGOpb1.js +380 -0
  11. package/components/CasinoGameOverlay-CqmQdqll.cjs +1 -0
  12. package/components/CasinoGameOverlay-DgaM5fTp.js +414 -0
  13. package/components/CasinoMysteryChestContainer-D9g9lN7U.cjs +1 -0
  14. package/components/CasinoMysteryChestContainer-SYxzIj7Y.js +522 -0
  15. package/components/CasinoMysteryChestContainer-poX1US08.js +511 -0
  16. package/components/{CasinoMysteryChestDetails-BgNPkInT.js → CasinoMysteryChestDetails-AyBcarTM.js} +28 -29
  17. package/components/{CasinoMysteryChestDetails-NOcxZc0D.js → CasinoMysteryChestDetails-BOgwf3A3.js} +31 -32
  18. package/components/CasinoMysteryChestDetails-EZZHFTGo.cjs +2 -0
  19. package/components/{CasinoMysteryChestModal-Z9ncUjsj.js → CasinoMysteryChestModal-BT9M8GwH.js} +8 -8
  20. package/components/CasinoMysteryChestModal-DdMeTnKH.cjs +1 -0
  21. package/components/{CasinoMysteryChestModal-Bfi5s9Ft.js → CasinoMysteryChestModal-Dw9N73cZ.js} +12 -12
  22. package/components/CasinoMysteryChestsList-Bx8TJAxU.cjs +1 -0
  23. package/components/CasinoMysteryChestsList-CRKuUNe0.js +931 -0
  24. package/components/CasinoMysteryChestsList-Coc0hV94.js +974 -0
  25. package/components/{GeneralAnimationLoading-DOGoUxcL.js → GeneralAnimationLoading-CT8Vfpo8.js} +8 -7
  26. package/components/{GeneralAnimationLoading-DSRknRMt.js → GeneralAnimationLoading-CY1sZFSS.js} +10 -9
  27. package/components/GeneralAnimationLoading-CtSXYOM9.cjs +1 -0
  28. package/es2015/casino-game-overlay.cjs +1 -1
  29. package/es2015/casino-game-overlay.js +7 -7
  30. package/esnext/casino-game-overlay.js +1 -1
  31. package/package.json +1 -1
  32. package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
  33. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  34. package/stencil/index-b2193545-BeKKnKhR.js +519 -0
  35. package/stencil/index-b2193545-HC0t7mHa.js +503 -0
  36. package/stencil/index-b2193545-YW9b062G.cjs +1 -0
  37. package/stencil/ui-skeleton-BL4789dS.cjs +1 -0
  38. package/stencil/ui-skeleton-Ca5rz3Hv.js +29 -0
  39. package/stencil/ui-skeleton-ae35c6f2-BDBUiN3S.js +155 -0
  40. package/stencil/ui-skeleton-ae35c6f2-Cn0ZM_hs.js +155 -0
  41. package/stencil/ui-skeleton-ae35c6f2-xLf3HyeB.cjs +55 -0
  42. package/stencil/ui-skeleton-hI4GeaLk.js +11 -0
  43. package/components/CasinoGameOverlay-B4fmPt-6.js +0 -831
  44. package/components/CasinoGameOverlay-D_eBABXn.js +0 -879
  45. package/components/CasinoGameOverlay-Dh1TQe_g.cjs +0 -1
  46. package/components/CasinoMysteryChestContainer-B4lSPYc5.cjs +0 -18
  47. package/components/CasinoMysteryChestContainer-CP66Zhf-.js +0 -4326
  48. package/components/CasinoMysteryChestContainer-c21xTovs.js +0 -4315
  49. package/components/CasinoMysteryChestDetails-CCtDkMES.cjs +0 -2
  50. package/components/CasinoMysteryChestModal-DHOS9He6.cjs +0 -1
  51. package/components/CasinoMysteryChestsList-CX_D9fNt.cjs +0 -1
  52. package/components/CasinoMysteryChestsList-Ck7fKo5Z.js +0 -2231
  53. package/components/CasinoMysteryChestsList-o6ZeGRkS.js +0 -2188
  54. package/components/GeneralAnimationLoading-CocnPJaM.cjs +0 -1
@@ -0,0 +1,2162 @@
1
+ import { a as Ve, $ as Ze, S as Je, i as Ke, s as $e, f as $, b as et, n as xe, d as R, r as tt, c as O, y as se, e as q, g as s, l as J, h as p, j as _, t as P, k as h, m as nt, p as rt, o as at, q as it, z as ke, A as ce, B as Ce, v as ve, w as ot, x as st } from "./CasinoCoinroyaleContainer-D9k7i57b.js";
2
+ import { s as lt, a as ut, b as ct } from "./CasinoCoinroyaleDetails-CChe_Ht0.js";
3
+ import "../stencil/ui-skeleton-hI4GeaLk.js";
4
+ function pe(n) {
5
+ "@babel/helpers - typeof";
6
+ return pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
7
+ return typeof e;
8
+ } : function(e) {
9
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
10
+ }, pe(n);
11
+ }
12
+ function oe(n) {
13
+ if (n === null || n === !0 || n === !1)
14
+ return NaN;
15
+ var e = Number(n);
16
+ return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
17
+ }
18
+ function H(n, e) {
19
+ if (e.length < n)
20
+ throw new TypeError(n + " argument" + (n > 1 ? "s" : "") + " required, but only " + e.length + " present");
21
+ }
22
+ function X(n) {
23
+ H(1, arguments);
24
+ var e = Object.prototype.toString.call(n);
25
+ return n instanceof Date || pe(n) === "object" && e === "[object Date]" ? new Date(n.getTime()) : typeof n == "number" || e === "[object Number]" ? new Date(n) : ((typeof n == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
26
+ }
27
+ function dt(n, e) {
28
+ H(2, arguments);
29
+ var t = X(n).getTime(), r = oe(e);
30
+ return new Date(t + r);
31
+ }
32
+ var ft = {};
33
+ function _e() {
34
+ return ft;
35
+ }
36
+ function mt(n) {
37
+ var e = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
38
+ return e.setUTCFullYear(n.getFullYear()), n.getTime() - e.getTime();
39
+ }
40
+ function ht(n) {
41
+ return H(1, arguments), n instanceof Date || pe(n) === "object" && Object.prototype.toString.call(n) === "[object Date]";
42
+ }
43
+ function gt(n) {
44
+ if (H(1, arguments), !ht(n) && typeof n != "number")
45
+ return !1;
46
+ var e = X(n);
47
+ return !isNaN(Number(e));
48
+ }
49
+ function vt(n, e) {
50
+ H(2, arguments);
51
+ var t = oe(e);
52
+ return dt(n, -t);
53
+ }
54
+ var pt = 864e5;
55
+ function bt(n) {
56
+ H(1, arguments);
57
+ var e = X(n), t = e.getTime();
58
+ e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
59
+ var r = e.getTime(), a = t - r;
60
+ return Math.floor(a / pt) + 1;
61
+ }
62
+ function be(n) {
63
+ H(1, arguments);
64
+ var e = 1, t = X(n), r = t.getUTCDay(), a = (r < e ? 7 : 0) + r - e;
65
+ return t.setUTCDate(t.getUTCDate() - a), t.setUTCHours(0, 0, 0, 0), t;
66
+ }
67
+ function Ie(n) {
68
+ H(1, arguments);
69
+ var e = X(n), t = e.getUTCFullYear(), r = /* @__PURE__ */ new Date(0);
70
+ r.setUTCFullYear(t + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
71
+ var a = be(r), i = /* @__PURE__ */ new Date(0);
72
+ i.setUTCFullYear(t, 0, 4), i.setUTCHours(0, 0, 0, 0);
73
+ var o = be(i);
74
+ return e.getTime() >= a.getTime() ? t + 1 : e.getTime() >= o.getTime() ? t : t - 1;
75
+ }
76
+ function wt(n) {
77
+ H(1, arguments);
78
+ var e = Ie(n), t = /* @__PURE__ */ new Date(0);
79
+ t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
80
+ var r = be(t);
81
+ return r;
82
+ }
83
+ var _t = 6048e5;
84
+ function yt(n) {
85
+ H(1, arguments);
86
+ var e = X(n), t = be(e).getTime() - wt(e).getTime();
87
+ return Math.round(t / _t) + 1;
88
+ }
89
+ function we(n, e) {
90
+ var t, r, a, i, o, l, m, d;
91
+ H(1, arguments);
92
+ var f = _e(), u = oe((t = (r = (a = (i = e?.weekStartsOn) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && a !== void 0 ? a : f.weekStartsOn) !== null && r !== void 0 ? r : (m = f.locale) === null || m === void 0 || (d = m.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && t !== void 0 ? t : 0);
93
+ if (!(u >= 0 && u <= 6))
94
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
95
+ var g = X(n), v = g.getUTCDay(), b = (v < u ? 7 : 0) + v - u;
96
+ return g.setUTCDate(g.getUTCDate() - b), g.setUTCHours(0, 0, 0, 0), g;
97
+ }
98
+ function Ge(n, e) {
99
+ var t, r, a, i, o, l, m, d;
100
+ H(1, arguments);
101
+ var f = X(n), u = f.getUTCFullYear(), g = _e(), v = oe((t = (r = (a = (i = e?.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && a !== void 0 ? a : g.firstWeekContainsDate) !== null && r !== void 0 ? r : (m = g.locale) === null || m === void 0 || (d = m.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
102
+ if (!(v >= 1 && v <= 7))
103
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
104
+ var b = /* @__PURE__ */ new Date(0);
105
+ b.setUTCFullYear(u + 1, 0, v), b.setUTCHours(0, 0, 0, 0);
106
+ var k = we(b, e), y = /* @__PURE__ */ new Date(0);
107
+ y.setUTCFullYear(u, 0, v), y.setUTCHours(0, 0, 0, 0);
108
+ var C = we(y, e);
109
+ return f.getTime() >= k.getTime() ? u + 1 : f.getTime() >= C.getTime() ? u : u - 1;
110
+ }
111
+ function xt(n, e) {
112
+ var t, r, a, i, o, l, m, d;
113
+ H(1, arguments);
114
+ var f = _e(), u = oe((t = (r = (a = (i = e?.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && a !== void 0 ? a : f.firstWeekContainsDate) !== null && r !== void 0 ? r : (m = f.locale) === null || m === void 0 || (d = m.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), g = Ge(n, e), v = /* @__PURE__ */ new Date(0);
115
+ v.setUTCFullYear(g, 0, u), v.setUTCHours(0, 0, 0, 0);
116
+ var b = we(v, e);
117
+ return b;
118
+ }
119
+ var kt = 6048e5;
120
+ function Ct(n, e) {
121
+ H(1, arguments);
122
+ var t = X(n), r = we(t, e).getTime() - xt(t, e).getTime();
123
+ return Math.round(r / kt) + 1;
124
+ }
125
+ function x(n, e) {
126
+ for (var t = n < 0 ? "-" : "", r = Math.abs(n).toString(); r.length < e; )
127
+ r = "0" + r;
128
+ return t + r;
129
+ }
130
+ var ee = {
131
+ // Year
132
+ y: function(e, t) {
133
+ var r = e.getUTCFullYear(), a = r > 0 ? r : 1 - r;
134
+ return x(t === "yy" ? a % 100 : a, t.length);
135
+ },
136
+ // Month
137
+ M: function(e, t) {
138
+ var r = e.getUTCMonth();
139
+ return t === "M" ? String(r + 1) : x(r + 1, 2);
140
+ },
141
+ // Day of the month
142
+ d: function(e, t) {
143
+ return x(e.getUTCDate(), t.length);
144
+ },
145
+ // AM or PM
146
+ a: function(e, t) {
147
+ var r = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
148
+ switch (t) {
149
+ case "a":
150
+ case "aa":
151
+ return r.toUpperCase();
152
+ case "aaa":
153
+ return r;
154
+ case "aaaaa":
155
+ return r[0];
156
+ case "aaaa":
157
+ default:
158
+ return r === "am" ? "a.m." : "p.m.";
159
+ }
160
+ },
161
+ // Hour [1-12]
162
+ h: function(e, t) {
163
+ return x(e.getUTCHours() % 12 || 12, t.length);
164
+ },
165
+ // Hour [0-23]
166
+ H: function(e, t) {
167
+ return x(e.getUTCHours(), t.length);
168
+ },
169
+ // Minute
170
+ m: function(e, t) {
171
+ return x(e.getUTCMinutes(), t.length);
172
+ },
173
+ // Second
174
+ s: function(e, t) {
175
+ return x(e.getUTCSeconds(), t.length);
176
+ },
177
+ // Fraction of second
178
+ S: function(e, t) {
179
+ var r = t.length, a = e.getUTCMilliseconds(), i = Math.floor(a * Math.pow(10, r - 3));
180
+ return x(i, t.length);
181
+ }
182
+ }, le = {
183
+ midnight: "midnight",
184
+ noon: "noon",
185
+ morning: "morning",
186
+ afternoon: "afternoon",
187
+ evening: "evening",
188
+ night: "night"
189
+ }, Tt = {
190
+ // Era
191
+ G: function(e, t, r) {
192
+ var a = e.getUTCFullYear() > 0 ? 1 : 0;
193
+ switch (t) {
194
+ case "G":
195
+ case "GG":
196
+ case "GGG":
197
+ return r.era(a, {
198
+ width: "abbreviated"
199
+ });
200
+ case "GGGGG":
201
+ return r.era(a, {
202
+ width: "narrow"
203
+ });
204
+ case "GGGG":
205
+ default:
206
+ return r.era(a, {
207
+ width: "wide"
208
+ });
209
+ }
210
+ },
211
+ // Year
212
+ y: function(e, t, r) {
213
+ if (t === "yo") {
214
+ var a = e.getUTCFullYear(), i = a > 0 ? a : 1 - a;
215
+ return r.ordinalNumber(i, {
216
+ unit: "year"
217
+ });
218
+ }
219
+ return ee.y(e, t);
220
+ },
221
+ // Local week-numbering year
222
+ Y: function(e, t, r, a) {
223
+ var i = Ge(e, a), o = i > 0 ? i : 1 - i;
224
+ if (t === "YY") {
225
+ var l = o % 100;
226
+ return x(l, 2);
227
+ }
228
+ return t === "Yo" ? r.ordinalNumber(o, {
229
+ unit: "year"
230
+ }) : x(o, t.length);
231
+ },
232
+ // ISO week-numbering year
233
+ R: function(e, t) {
234
+ var r = Ie(e);
235
+ return x(r, t.length);
236
+ },
237
+ // Extended year. This is a single number designating the year of this calendar system.
238
+ // The main difference between `y` and `u` localizers are B.C. years:
239
+ // | Year | `y` | `u` |
240
+ // |------|-----|-----|
241
+ // | AC 1 | 1 | 1 |
242
+ // | BC 1 | 1 | 0 |
243
+ // | BC 2 | 2 | -1 |
244
+ // Also `yy` always returns the last two digits of a year,
245
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
246
+ u: function(e, t) {
247
+ var r = e.getUTCFullYear();
248
+ return x(r, t.length);
249
+ },
250
+ // Quarter
251
+ Q: function(e, t, r) {
252
+ var a = Math.ceil((e.getUTCMonth() + 1) / 3);
253
+ switch (t) {
254
+ case "Q":
255
+ return String(a);
256
+ case "QQ":
257
+ return x(a, 2);
258
+ case "Qo":
259
+ return r.ordinalNumber(a, {
260
+ unit: "quarter"
261
+ });
262
+ case "QQQ":
263
+ return r.quarter(a, {
264
+ width: "abbreviated",
265
+ context: "formatting"
266
+ });
267
+ case "QQQQQ":
268
+ return r.quarter(a, {
269
+ width: "narrow",
270
+ context: "formatting"
271
+ });
272
+ case "QQQQ":
273
+ default:
274
+ return r.quarter(a, {
275
+ width: "wide",
276
+ context: "formatting"
277
+ });
278
+ }
279
+ },
280
+ // Stand-alone quarter
281
+ q: function(e, t, r) {
282
+ var a = Math.ceil((e.getUTCMonth() + 1) / 3);
283
+ switch (t) {
284
+ case "q":
285
+ return String(a);
286
+ case "qq":
287
+ return x(a, 2);
288
+ case "qo":
289
+ return r.ordinalNumber(a, {
290
+ unit: "quarter"
291
+ });
292
+ case "qqq":
293
+ return r.quarter(a, {
294
+ width: "abbreviated",
295
+ context: "standalone"
296
+ });
297
+ case "qqqqq":
298
+ return r.quarter(a, {
299
+ width: "narrow",
300
+ context: "standalone"
301
+ });
302
+ case "qqqq":
303
+ default:
304
+ return r.quarter(a, {
305
+ width: "wide",
306
+ context: "standalone"
307
+ });
308
+ }
309
+ },
310
+ // Month
311
+ M: function(e, t, r) {
312
+ var a = e.getUTCMonth();
313
+ switch (t) {
314
+ case "M":
315
+ case "MM":
316
+ return ee.M(e, t);
317
+ case "Mo":
318
+ return r.ordinalNumber(a + 1, {
319
+ unit: "month"
320
+ });
321
+ case "MMM":
322
+ return r.month(a, {
323
+ width: "abbreviated",
324
+ context: "formatting"
325
+ });
326
+ case "MMMMM":
327
+ return r.month(a, {
328
+ width: "narrow",
329
+ context: "formatting"
330
+ });
331
+ case "MMMM":
332
+ default:
333
+ return r.month(a, {
334
+ width: "wide",
335
+ context: "formatting"
336
+ });
337
+ }
338
+ },
339
+ // Stand-alone month
340
+ L: function(e, t, r) {
341
+ var a = e.getUTCMonth();
342
+ switch (t) {
343
+ case "L":
344
+ return String(a + 1);
345
+ case "LL":
346
+ return x(a + 1, 2);
347
+ case "Lo":
348
+ return r.ordinalNumber(a + 1, {
349
+ unit: "month"
350
+ });
351
+ case "LLL":
352
+ return r.month(a, {
353
+ width: "abbreviated",
354
+ context: "standalone"
355
+ });
356
+ case "LLLLL":
357
+ return r.month(a, {
358
+ width: "narrow",
359
+ context: "standalone"
360
+ });
361
+ case "LLLL":
362
+ default:
363
+ return r.month(a, {
364
+ width: "wide",
365
+ context: "standalone"
366
+ });
367
+ }
368
+ },
369
+ // Local week of year
370
+ w: function(e, t, r, a) {
371
+ var i = Ct(e, a);
372
+ return t === "wo" ? r.ordinalNumber(i, {
373
+ unit: "week"
374
+ }) : x(i, t.length);
375
+ },
376
+ // ISO week of year
377
+ I: function(e, t, r) {
378
+ var a = yt(e);
379
+ return t === "Io" ? r.ordinalNumber(a, {
380
+ unit: "week"
381
+ }) : x(a, t.length);
382
+ },
383
+ // Day of the month
384
+ d: function(e, t, r) {
385
+ return t === "do" ? r.ordinalNumber(e.getUTCDate(), {
386
+ unit: "date"
387
+ }) : ee.d(e, t);
388
+ },
389
+ // Day of year
390
+ D: function(e, t, r) {
391
+ var a = bt(e);
392
+ return t === "Do" ? r.ordinalNumber(a, {
393
+ unit: "dayOfYear"
394
+ }) : x(a, t.length);
395
+ },
396
+ // Day of week
397
+ E: function(e, t, r) {
398
+ var a = e.getUTCDay();
399
+ switch (t) {
400
+ case "E":
401
+ case "EE":
402
+ case "EEE":
403
+ return r.day(a, {
404
+ width: "abbreviated",
405
+ context: "formatting"
406
+ });
407
+ case "EEEEE":
408
+ return r.day(a, {
409
+ width: "narrow",
410
+ context: "formatting"
411
+ });
412
+ case "EEEEEE":
413
+ return r.day(a, {
414
+ width: "short",
415
+ context: "formatting"
416
+ });
417
+ case "EEEE":
418
+ default:
419
+ return r.day(a, {
420
+ width: "wide",
421
+ context: "formatting"
422
+ });
423
+ }
424
+ },
425
+ // Local day of week
426
+ e: function(e, t, r, a) {
427
+ var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
428
+ switch (t) {
429
+ case "e":
430
+ return String(o);
431
+ case "ee":
432
+ return x(o, 2);
433
+ case "eo":
434
+ return r.ordinalNumber(o, {
435
+ unit: "day"
436
+ });
437
+ case "eee":
438
+ return r.day(i, {
439
+ width: "abbreviated",
440
+ context: "formatting"
441
+ });
442
+ case "eeeee":
443
+ return r.day(i, {
444
+ width: "narrow",
445
+ context: "formatting"
446
+ });
447
+ case "eeeeee":
448
+ return r.day(i, {
449
+ width: "short",
450
+ context: "formatting"
451
+ });
452
+ case "eeee":
453
+ default:
454
+ return r.day(i, {
455
+ width: "wide",
456
+ context: "formatting"
457
+ });
458
+ }
459
+ },
460
+ // Stand-alone local day of week
461
+ c: function(e, t, r, a) {
462
+ var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
463
+ switch (t) {
464
+ case "c":
465
+ return String(o);
466
+ case "cc":
467
+ return x(o, t.length);
468
+ case "co":
469
+ return r.ordinalNumber(o, {
470
+ unit: "day"
471
+ });
472
+ case "ccc":
473
+ return r.day(i, {
474
+ width: "abbreviated",
475
+ context: "standalone"
476
+ });
477
+ case "ccccc":
478
+ return r.day(i, {
479
+ width: "narrow",
480
+ context: "standalone"
481
+ });
482
+ case "cccccc":
483
+ return r.day(i, {
484
+ width: "short",
485
+ context: "standalone"
486
+ });
487
+ case "cccc":
488
+ default:
489
+ return r.day(i, {
490
+ width: "wide",
491
+ context: "standalone"
492
+ });
493
+ }
494
+ },
495
+ // ISO day of week
496
+ i: function(e, t, r) {
497
+ var a = e.getUTCDay(), i = a === 0 ? 7 : a;
498
+ switch (t) {
499
+ case "i":
500
+ return String(i);
501
+ case "ii":
502
+ return x(i, t.length);
503
+ case "io":
504
+ return r.ordinalNumber(i, {
505
+ unit: "day"
506
+ });
507
+ case "iii":
508
+ return r.day(a, {
509
+ width: "abbreviated",
510
+ context: "formatting"
511
+ });
512
+ case "iiiii":
513
+ return r.day(a, {
514
+ width: "narrow",
515
+ context: "formatting"
516
+ });
517
+ case "iiiiii":
518
+ return r.day(a, {
519
+ width: "short",
520
+ context: "formatting"
521
+ });
522
+ case "iiii":
523
+ default:
524
+ return r.day(a, {
525
+ width: "wide",
526
+ context: "formatting"
527
+ });
528
+ }
529
+ },
530
+ // AM or PM
531
+ a: function(e, t, r) {
532
+ var a = e.getUTCHours(), i = a / 12 >= 1 ? "pm" : "am";
533
+ switch (t) {
534
+ case "a":
535
+ case "aa":
536
+ return r.dayPeriod(i, {
537
+ width: "abbreviated",
538
+ context: "formatting"
539
+ });
540
+ case "aaa":
541
+ return r.dayPeriod(i, {
542
+ width: "abbreviated",
543
+ context: "formatting"
544
+ }).toLowerCase();
545
+ case "aaaaa":
546
+ return r.dayPeriod(i, {
547
+ width: "narrow",
548
+ context: "formatting"
549
+ });
550
+ case "aaaa":
551
+ default:
552
+ return r.dayPeriod(i, {
553
+ width: "wide",
554
+ context: "formatting"
555
+ });
556
+ }
557
+ },
558
+ // AM, PM, midnight, noon
559
+ b: function(e, t, r) {
560
+ var a = e.getUTCHours(), i;
561
+ switch (a === 12 ? i = le.noon : a === 0 ? i = le.midnight : i = a / 12 >= 1 ? "pm" : "am", t) {
562
+ case "b":
563
+ case "bb":
564
+ return r.dayPeriod(i, {
565
+ width: "abbreviated",
566
+ context: "formatting"
567
+ });
568
+ case "bbb":
569
+ return r.dayPeriod(i, {
570
+ width: "abbreviated",
571
+ context: "formatting"
572
+ }).toLowerCase();
573
+ case "bbbbb":
574
+ return r.dayPeriod(i, {
575
+ width: "narrow",
576
+ context: "formatting"
577
+ });
578
+ case "bbbb":
579
+ default:
580
+ return r.dayPeriod(i, {
581
+ width: "wide",
582
+ context: "formatting"
583
+ });
584
+ }
585
+ },
586
+ // in the morning, in the afternoon, in the evening, at night
587
+ B: function(e, t, r) {
588
+ var a = e.getUTCHours(), i;
589
+ switch (a >= 17 ? i = le.evening : a >= 12 ? i = le.afternoon : a >= 4 ? i = le.morning : i = le.night, t) {
590
+ case "B":
591
+ case "BB":
592
+ case "BBB":
593
+ return r.dayPeriod(i, {
594
+ width: "abbreviated",
595
+ context: "formatting"
596
+ });
597
+ case "BBBBB":
598
+ return r.dayPeriod(i, {
599
+ width: "narrow",
600
+ context: "formatting"
601
+ });
602
+ case "BBBB":
603
+ default:
604
+ return r.dayPeriod(i, {
605
+ width: "wide",
606
+ context: "formatting"
607
+ });
608
+ }
609
+ },
610
+ // Hour [1-12]
611
+ h: function(e, t, r) {
612
+ if (t === "ho") {
613
+ var a = e.getUTCHours() % 12;
614
+ return a === 0 && (a = 12), r.ordinalNumber(a, {
615
+ unit: "hour"
616
+ });
617
+ }
618
+ return ee.h(e, t);
619
+ },
620
+ // Hour [0-23]
621
+ H: function(e, t, r) {
622
+ return t === "Ho" ? r.ordinalNumber(e.getUTCHours(), {
623
+ unit: "hour"
624
+ }) : ee.H(e, t);
625
+ },
626
+ // Hour [0-11]
627
+ K: function(e, t, r) {
628
+ var a = e.getUTCHours() % 12;
629
+ return t === "Ko" ? r.ordinalNumber(a, {
630
+ unit: "hour"
631
+ }) : x(a, t.length);
632
+ },
633
+ // Hour [1-24]
634
+ k: function(e, t, r) {
635
+ var a = e.getUTCHours();
636
+ return a === 0 && (a = 24), t === "ko" ? r.ordinalNumber(a, {
637
+ unit: "hour"
638
+ }) : x(a, t.length);
639
+ },
640
+ // Minute
641
+ m: function(e, t, r) {
642
+ return t === "mo" ? r.ordinalNumber(e.getUTCMinutes(), {
643
+ unit: "minute"
644
+ }) : ee.m(e, t);
645
+ },
646
+ // Second
647
+ s: function(e, t, r) {
648
+ return t === "so" ? r.ordinalNumber(e.getUTCSeconds(), {
649
+ unit: "second"
650
+ }) : ee.s(e, t);
651
+ },
652
+ // Fraction of second
653
+ S: function(e, t) {
654
+ return ee.S(e, t);
655
+ },
656
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
657
+ X: function(e, t, r, a) {
658
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
659
+ if (o === 0)
660
+ return "Z";
661
+ switch (t) {
662
+ case "X":
663
+ return Me(o);
664
+ case "XXXX":
665
+ case "XX":
666
+ return ie(o);
667
+ case "XXXXX":
668
+ case "XXX":
669
+ default:
670
+ return ie(o, ":");
671
+ }
672
+ },
673
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
674
+ x: function(e, t, r, a) {
675
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
676
+ switch (t) {
677
+ case "x":
678
+ return Me(o);
679
+ case "xxxx":
680
+ case "xx":
681
+ return ie(o);
682
+ case "xxxxx":
683
+ case "xxx":
684
+ default:
685
+ return ie(o, ":");
686
+ }
687
+ },
688
+ // Timezone (GMT)
689
+ O: function(e, t, r, a) {
690
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
691
+ switch (t) {
692
+ case "O":
693
+ case "OO":
694
+ case "OOO":
695
+ return "GMT" + Te(o, ":");
696
+ case "OOOO":
697
+ default:
698
+ return "GMT" + ie(o, ":");
699
+ }
700
+ },
701
+ // Timezone (specific non-location)
702
+ z: function(e, t, r, a) {
703
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
704
+ switch (t) {
705
+ case "z":
706
+ case "zz":
707
+ case "zzz":
708
+ return "GMT" + Te(o, ":");
709
+ case "zzzz":
710
+ default:
711
+ return "GMT" + ie(o, ":");
712
+ }
713
+ },
714
+ // Seconds timestamp
715
+ t: function(e, t, r, a) {
716
+ var i = a._originalDate || e, o = Math.floor(i.getTime() / 1e3);
717
+ return x(o, t.length);
718
+ },
719
+ // Milliseconds timestamp
720
+ T: function(e, t, r, a) {
721
+ var i = a._originalDate || e, o = i.getTime();
722
+ return x(o, t.length);
723
+ }
724
+ };
725
+ function Te(n, e) {
726
+ var t = n > 0 ? "-" : "+", r = Math.abs(n), a = Math.floor(r / 60), i = r % 60;
727
+ if (i === 0)
728
+ return t + String(a);
729
+ var o = e;
730
+ return t + String(a) + o + x(i, 2);
731
+ }
732
+ function Me(n, e) {
733
+ if (n % 60 === 0) {
734
+ var t = n > 0 ? "-" : "+";
735
+ return t + x(Math.abs(n) / 60, 2);
736
+ }
737
+ return ie(n, e);
738
+ }
739
+ function ie(n, e) {
740
+ var t = e || "", r = n > 0 ? "-" : "+", a = Math.abs(n), i = x(Math.floor(a / 60), 2), o = x(a % 60, 2);
741
+ return r + i + t + o;
742
+ }
743
+ var Oe = function(e, t) {
744
+ switch (e) {
745
+ case "P":
746
+ return t.date({
747
+ width: "short"
748
+ });
749
+ case "PP":
750
+ return t.date({
751
+ width: "medium"
752
+ });
753
+ case "PPP":
754
+ return t.date({
755
+ width: "long"
756
+ });
757
+ case "PPPP":
758
+ default:
759
+ return t.date({
760
+ width: "full"
761
+ });
762
+ }
763
+ }, Qe = function(e, t) {
764
+ switch (e) {
765
+ case "p":
766
+ return t.time({
767
+ width: "short"
768
+ });
769
+ case "pp":
770
+ return t.time({
771
+ width: "medium"
772
+ });
773
+ case "ppp":
774
+ return t.time({
775
+ width: "long"
776
+ });
777
+ case "pppp":
778
+ default:
779
+ return t.time({
780
+ width: "full"
781
+ });
782
+ }
783
+ }, Mt = function(e, t) {
784
+ var r = e.match(/(P+)(p+)?/) || [], a = r[1], i = r[2];
785
+ if (!i)
786
+ return Oe(e, t);
787
+ var o;
788
+ switch (a) {
789
+ case "P":
790
+ o = t.dateTime({
791
+ width: "short"
792
+ });
793
+ break;
794
+ case "PP":
795
+ o = t.dateTime({
796
+ width: "medium"
797
+ });
798
+ break;
799
+ case "PPP":
800
+ o = t.dateTime({
801
+ width: "long"
802
+ });
803
+ break;
804
+ case "PPPP":
805
+ default:
806
+ o = t.dateTime({
807
+ width: "full"
808
+ });
809
+ break;
810
+ }
811
+ return o.replace("{{date}}", Oe(a, t)).replace("{{time}}", Qe(i, t));
812
+ }, Ot = {
813
+ p: Qe,
814
+ P: Mt
815
+ }, Pt = ["D", "DD"], Dt = ["YY", "YYYY"];
816
+ function St(n) {
817
+ return Pt.indexOf(n) !== -1;
818
+ }
819
+ function Wt(n) {
820
+ return Dt.indexOf(n) !== -1;
821
+ }
822
+ function Pe(n, e, t) {
823
+ if (n === "YYYY")
824
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
825
+ if (n === "YY")
826
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(e, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
827
+ if (n === "D")
828
+ throw new RangeError("Use `d` instead of `D` (in `".concat(e, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
829
+ if (n === "DD")
830
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(e, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
831
+ }
832
+ var Ut = {
833
+ lessThanXSeconds: {
834
+ one: "less than a second",
835
+ other: "less than {{count}} seconds"
836
+ },
837
+ xSeconds: {
838
+ one: "1 second",
839
+ other: "{{count}} seconds"
840
+ },
841
+ halfAMinute: "half a minute",
842
+ lessThanXMinutes: {
843
+ one: "less than a minute",
844
+ other: "less than {{count}} minutes"
845
+ },
846
+ xMinutes: {
847
+ one: "1 minute",
848
+ other: "{{count}} minutes"
849
+ },
850
+ aboutXHours: {
851
+ one: "about 1 hour",
852
+ other: "about {{count}} hours"
853
+ },
854
+ xHours: {
855
+ one: "1 hour",
856
+ other: "{{count}} hours"
857
+ },
858
+ xDays: {
859
+ one: "1 day",
860
+ other: "{{count}} days"
861
+ },
862
+ aboutXWeeks: {
863
+ one: "about 1 week",
864
+ other: "about {{count}} weeks"
865
+ },
866
+ xWeeks: {
867
+ one: "1 week",
868
+ other: "{{count}} weeks"
869
+ },
870
+ aboutXMonths: {
871
+ one: "about 1 month",
872
+ other: "about {{count}} months"
873
+ },
874
+ xMonths: {
875
+ one: "1 month",
876
+ other: "{{count}} months"
877
+ },
878
+ aboutXYears: {
879
+ one: "about 1 year",
880
+ other: "about {{count}} years"
881
+ },
882
+ xYears: {
883
+ one: "1 year",
884
+ other: "{{count}} years"
885
+ },
886
+ overXYears: {
887
+ one: "over 1 year",
888
+ other: "over {{count}} years"
889
+ },
890
+ almostXYears: {
891
+ one: "almost 1 year",
892
+ other: "almost {{count}} years"
893
+ }
894
+ }, zt = function(e, t, r) {
895
+ var a, i = Ut[e];
896
+ return typeof i == "string" ? a = i : t === 1 ? a = i.one : a = i.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + a : a + " ago" : a;
897
+ };
898
+ function ye(n) {
899
+ return function() {
900
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.width ? String(e.width) : n.defaultWidth, r = n.formats[t] || n.formats[n.defaultWidth];
901
+ return r;
902
+ };
903
+ }
904
+ var Yt = {
905
+ full: "EEEE, MMMM do, y",
906
+ long: "MMMM do, y",
907
+ medium: "MMM d, y",
908
+ short: "MM/dd/yyyy"
909
+ }, Et = {
910
+ full: "h:mm:ss a zzzz",
911
+ long: "h:mm:ss a z",
912
+ medium: "h:mm:ss a",
913
+ short: "h:mm a"
914
+ }, Lt = {
915
+ full: "{{date}} 'at' {{time}}",
916
+ long: "{{date}} 'at' {{time}}",
917
+ medium: "{{date}}, {{time}}",
918
+ short: "{{date}}, {{time}}"
919
+ }, Ft = {
920
+ date: ye({
921
+ formats: Yt,
922
+ defaultWidth: "full"
923
+ }),
924
+ time: ye({
925
+ formats: Et,
926
+ defaultWidth: "full"
927
+ }),
928
+ dateTime: ye({
929
+ formats: Lt,
930
+ defaultWidth: "full"
931
+ })
932
+ }, Nt = {
933
+ lastWeek: "'last' eeee 'at' p",
934
+ yesterday: "'yesterday at' p",
935
+ today: "'today at' p",
936
+ tomorrow: "'tomorrow at' p",
937
+ nextWeek: "eeee 'at' p",
938
+ other: "P"
939
+ }, Rt = function(e, t, r, a) {
940
+ return Nt[e];
941
+ };
942
+ function fe(n) {
943
+ return function(e, t) {
944
+ var r = t != null && t.context ? String(t.context) : "standalone", a;
945
+ if (r === "formatting" && n.formattingValues) {
946
+ var i = n.defaultFormattingWidth || n.defaultWidth, o = t != null && t.width ? String(t.width) : i;
947
+ a = n.formattingValues[o] || n.formattingValues[i];
948
+ } else {
949
+ var l = n.defaultWidth, m = t != null && t.width ? String(t.width) : n.defaultWidth;
950
+ a = n.values[m] || n.values[l];
951
+ }
952
+ var d = n.argumentCallback ? n.argumentCallback(e) : e;
953
+ return a[d];
954
+ };
955
+ }
956
+ var qt = {
957
+ narrow: ["B", "A"],
958
+ abbreviated: ["BC", "AD"],
959
+ wide: ["Before Christ", "Anno Domini"]
960
+ }, Ht = {
961
+ narrow: ["1", "2", "3", "4"],
962
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
963
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
964
+ }, Bt = {
965
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
966
+ abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
967
+ wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
968
+ }, jt = {
969
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
970
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
971
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
972
+ wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
973
+ }, At = {
974
+ narrow: {
975
+ am: "a",
976
+ pm: "p",
977
+ midnight: "mi",
978
+ noon: "n",
979
+ morning: "morning",
980
+ afternoon: "afternoon",
981
+ evening: "evening",
982
+ night: "night"
983
+ },
984
+ abbreviated: {
985
+ am: "AM",
986
+ pm: "PM",
987
+ midnight: "midnight",
988
+ noon: "noon",
989
+ morning: "morning",
990
+ afternoon: "afternoon",
991
+ evening: "evening",
992
+ night: "night"
993
+ },
994
+ wide: {
995
+ am: "a.m.",
996
+ pm: "p.m.",
997
+ midnight: "midnight",
998
+ noon: "noon",
999
+ morning: "morning",
1000
+ afternoon: "afternoon",
1001
+ evening: "evening",
1002
+ night: "night"
1003
+ }
1004
+ }, It = {
1005
+ narrow: {
1006
+ am: "a",
1007
+ pm: "p",
1008
+ midnight: "mi",
1009
+ noon: "n",
1010
+ morning: "in the morning",
1011
+ afternoon: "in the afternoon",
1012
+ evening: "in the evening",
1013
+ night: "at night"
1014
+ },
1015
+ abbreviated: {
1016
+ am: "AM",
1017
+ pm: "PM",
1018
+ midnight: "midnight",
1019
+ noon: "noon",
1020
+ morning: "in the morning",
1021
+ afternoon: "in the afternoon",
1022
+ evening: "in the evening",
1023
+ night: "at night"
1024
+ },
1025
+ wide: {
1026
+ am: "a.m.",
1027
+ pm: "p.m.",
1028
+ midnight: "midnight",
1029
+ noon: "noon",
1030
+ morning: "in the morning",
1031
+ afternoon: "in the afternoon",
1032
+ evening: "in the evening",
1033
+ night: "at night"
1034
+ }
1035
+ }, Gt = function(e, t) {
1036
+ var r = Number(e), a = r % 100;
1037
+ if (a > 20 || a < 10)
1038
+ switch (a % 10) {
1039
+ case 1:
1040
+ return r + "st";
1041
+ case 2:
1042
+ return r + "nd";
1043
+ case 3:
1044
+ return r + "rd";
1045
+ }
1046
+ return r + "th";
1047
+ }, Qt = {
1048
+ ordinalNumber: Gt,
1049
+ era: fe({
1050
+ values: qt,
1051
+ defaultWidth: "wide"
1052
+ }),
1053
+ quarter: fe({
1054
+ values: Ht,
1055
+ defaultWidth: "wide",
1056
+ argumentCallback: function(e) {
1057
+ return e - 1;
1058
+ }
1059
+ }),
1060
+ month: fe({
1061
+ values: Bt,
1062
+ defaultWidth: "wide"
1063
+ }),
1064
+ day: fe({
1065
+ values: jt,
1066
+ defaultWidth: "wide"
1067
+ }),
1068
+ dayPeriod: fe({
1069
+ values: At,
1070
+ defaultWidth: "wide",
1071
+ formattingValues: It,
1072
+ defaultFormattingWidth: "wide"
1073
+ })
1074
+ };
1075
+ function me(n) {
1076
+ return function(e) {
1077
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.width, a = r && n.matchPatterns[r] || n.matchPatterns[n.defaultMatchWidth], i = e.match(a);
1078
+ if (!i)
1079
+ return null;
1080
+ var o = i[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], m = Array.isArray(l) ? Vt(l, function(u) {
1081
+ return u.test(o);
1082
+ }) : Xt(l, function(u) {
1083
+ return u.test(o);
1084
+ }), d;
1085
+ d = n.valueCallback ? n.valueCallback(m) : m, d = t.valueCallback ? t.valueCallback(d) : d;
1086
+ var f = e.slice(o.length);
1087
+ return {
1088
+ value: d,
1089
+ rest: f
1090
+ };
1091
+ };
1092
+ }
1093
+ function Xt(n, e) {
1094
+ for (var t in n)
1095
+ if (n.hasOwnProperty(t) && e(n[t]))
1096
+ return t;
1097
+ }
1098
+ function Vt(n, e) {
1099
+ for (var t = 0; t < n.length; t++)
1100
+ if (e(n[t]))
1101
+ return t;
1102
+ }
1103
+ function Zt(n) {
1104
+ return function(e) {
1105
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = e.match(n.matchPattern);
1106
+ if (!r)
1107
+ return null;
1108
+ var a = r[0], i = e.match(n.parsePattern);
1109
+ if (!i)
1110
+ return null;
1111
+ var o = n.valueCallback ? n.valueCallback(i[0]) : i[0];
1112
+ o = t.valueCallback ? t.valueCallback(o) : o;
1113
+ var l = e.slice(a.length);
1114
+ return {
1115
+ value: o,
1116
+ rest: l
1117
+ };
1118
+ };
1119
+ }
1120
+ var Jt = /^(\d+)(th|st|nd|rd)?/i, Kt = /\d+/i, $t = {
1121
+ narrow: /^(b|a)/i,
1122
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1123
+ wide: /^(before christ|before common era|anno domini|common era)/i
1124
+ }, en = {
1125
+ any: [/^b/i, /^(a|c)/i]
1126
+ }, tn = {
1127
+ narrow: /^[1234]/i,
1128
+ abbreviated: /^q[1234]/i,
1129
+ wide: /^[1234](th|st|nd|rd)? quarter/i
1130
+ }, nn = {
1131
+ any: [/1/i, /2/i, /3/i, /4/i]
1132
+ }, rn = {
1133
+ narrow: /^[jfmasond]/i,
1134
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1135
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1136
+ }, an = {
1137
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
1138
+ any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
1139
+ }, on = {
1140
+ narrow: /^[smtwf]/i,
1141
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1142
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1143
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1144
+ }, sn = {
1145
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1146
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1147
+ }, ln = {
1148
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1149
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1150
+ }, un = {
1151
+ any: {
1152
+ am: /^a/i,
1153
+ pm: /^p/i,
1154
+ midnight: /^mi/i,
1155
+ noon: /^no/i,
1156
+ morning: /morning/i,
1157
+ afternoon: /afternoon/i,
1158
+ evening: /evening/i,
1159
+ night: /night/i
1160
+ }
1161
+ }, cn = {
1162
+ ordinalNumber: Zt({
1163
+ matchPattern: Jt,
1164
+ parsePattern: Kt,
1165
+ valueCallback: function(e) {
1166
+ return parseInt(e, 10);
1167
+ }
1168
+ }),
1169
+ era: me({
1170
+ matchPatterns: $t,
1171
+ defaultMatchWidth: "wide",
1172
+ parsePatterns: en,
1173
+ defaultParseWidth: "any"
1174
+ }),
1175
+ quarter: me({
1176
+ matchPatterns: tn,
1177
+ defaultMatchWidth: "wide",
1178
+ parsePatterns: nn,
1179
+ defaultParseWidth: "any",
1180
+ valueCallback: function(e) {
1181
+ return e + 1;
1182
+ }
1183
+ }),
1184
+ month: me({
1185
+ matchPatterns: rn,
1186
+ defaultMatchWidth: "wide",
1187
+ parsePatterns: an,
1188
+ defaultParseWidth: "any"
1189
+ }),
1190
+ day: me({
1191
+ matchPatterns: on,
1192
+ defaultMatchWidth: "wide",
1193
+ parsePatterns: sn,
1194
+ defaultParseWidth: "any"
1195
+ }),
1196
+ dayPeriod: me({
1197
+ matchPatterns: ln,
1198
+ defaultMatchWidth: "any",
1199
+ parsePatterns: un,
1200
+ defaultParseWidth: "any"
1201
+ })
1202
+ }, dn = {
1203
+ code: "en-US",
1204
+ formatDistance: zt,
1205
+ formatLong: Ft,
1206
+ formatRelative: Rt,
1207
+ localize: Qt,
1208
+ match: cn,
1209
+ options: {
1210
+ weekStartsOn: 0,
1211
+ firstWeekContainsDate: 1
1212
+ }
1213
+ }, fn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, mn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, hn = /^'([^]*?)'?$/, gn = /''/g, vn = /[a-zA-Z]/;
1214
+ function pn(n, e, t) {
1215
+ var r, a, i, o, l, m, d, f, u, g, v, b, k, y;
1216
+ H(2, arguments);
1217
+ var C = String(e), S = _e(), W = (r = (a = void 0) !== null && a !== void 0 ? a : S.locale) !== null && r !== void 0 ? r : dn, I = oe((i = (o = (l = (m = void 0) !== null && m !== void 0 ? m : void 0) !== null && l !== void 0 ? l : S.firstWeekContainsDate) !== null && o !== void 0 ? o : (d = S.locale) === null || d === void 0 || (f = d.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
1218
+ if (!(I >= 1 && I <= 7))
1219
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1220
+ var T = oe((u = (g = (v = (b = void 0) !== null && b !== void 0 ? b : void 0) !== null && v !== void 0 ? v : S.weekStartsOn) !== null && g !== void 0 ? g : (k = S.locale) === null || k === void 0 || (y = k.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && u !== void 0 ? u : 0);
1221
+ if (!(T >= 0 && T <= 6))
1222
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1223
+ if (!W.localize)
1224
+ throw new RangeError("locale must contain localize property");
1225
+ if (!W.formatLong)
1226
+ throw new RangeError("locale must contain formatLong property");
1227
+ var E = X(n);
1228
+ if (!gt(E))
1229
+ throw new RangeError("Invalid time value");
1230
+ var G = mt(E), V = vt(E, G), U = {
1231
+ firstWeekContainsDate: I,
1232
+ weekStartsOn: T,
1233
+ locale: W,
1234
+ _originalDate: E
1235
+ }, B = C.match(mn).map(function(M) {
1236
+ var L = M[0];
1237
+ if (L === "p" || L === "P") {
1238
+ var N = Ot[L];
1239
+ return N(M, W.formatLong);
1240
+ }
1241
+ return M;
1242
+ }).join("").match(fn).map(function(M) {
1243
+ if (M === "''")
1244
+ return "'";
1245
+ var L = M[0];
1246
+ if (L === "'")
1247
+ return bn(M);
1248
+ var N = Tt[L];
1249
+ if (N)
1250
+ return Wt(M) && Pe(M, e, String(n)), St(M) && Pe(M, e, String(n)), N(V, M, W.localize, U);
1251
+ if (L.match(vn))
1252
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + L + "`");
1253
+ return M;
1254
+ }).join("");
1255
+ return B;
1256
+ }
1257
+ function bn(n) {
1258
+ var e = n.match(hn);
1259
+ return e ? e[1].replace(gn, "'") : n;
1260
+ }
1261
+ const De = (n) => window.postMessage(n, window.location.href), wn = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Se = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e", We = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e", _n = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.9124%204.83736C11.1402%205.06516%2011.1402%205.43451%2010.9124%205.66232L7.41243%209.16232C7.18462%209.39012%206.81528%209.39012%206.58747%209.16232L3.08747%205.66232C2.85966%205.43451%202.85966%205.06516%203.08747%204.83736C3.31528%204.60955%203.68462%204.60955%203.91243%204.83736L6.99995%207.92488L10.0875%204.83736C10.3153%204.60955%2010.6846%204.60955%2010.9124%204.83736Z'%20fill='url(%23paint0_linear_738_1669)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_738_1669'%20x1='6.99995'%20y1='4.6665'%20x2='6.99995'%20y2='9.33317'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
1262
+ var he = /* @__PURE__ */ ((n) => (n.lotteries = "lotteries", n.outcome = "outcome", n.draw = "draw", n))(he || {}), ue = /* @__PURE__ */ ((n) => (n.en = "en", n.default = "*", n))(ue || {});
1263
+ const yn = async (n) => {
1264
+ const { path: e, params: t = {}, options: r = {} } = n, a = new URL(e);
1265
+ return Object.keys(t).map((i) => {
1266
+ a.searchParams.append(i, t[i]);
1267
+ }), await xn(a, r);
1268
+ }, xn = async (n, e = {}) => {
1269
+ let t;
1270
+ try {
1271
+ t = await fetch(n, e), t = await t.text(), t = JSON.parse(t);
1272
+ } catch (r) {
1273
+ throw new Error(r.message);
1274
+ }
1275
+ return t;
1276
+ }, Ue = async (n, e, t) => {
1277
+ const { session: r } = t, a = {
1278
+ headers: {
1279
+ "Content-Type": "application/json",
1280
+ accept: "text/plain",
1281
+ ...r ? { "x-SessionId": r } : {}
1282
+ }
1283
+ }, o = {
1284
+ [he.lotteries]: () => ({
1285
+ path: "/wof/lotteries",
1286
+ params: {
1287
+ filter: "Types[]=flipCoin"
1288
+ },
1289
+ options: a
1290
+ }),
1291
+ [he.outcome]: () => {
1292
+ const { id: l } = t;
1293
+ return {
1294
+ path: `/wof/outcome/${l}`,
1295
+ params: {
1296
+ filter: "Types[]=flipCoin"
1297
+ },
1298
+ options: a
1299
+ };
1300
+ }
1301
+ }[n]();
1302
+ return o.path = e + "/v1" + o.path, await yn(o);
1303
+ }, ze = {
1304
+ lotteries: async (n, e) => (await Ue(he.lotteries, n, { session: e }))?.items || [],
1305
+ outcome: async (n, e, t) => await Ue(he.outcome, n, { session: e, id: t })
1306
+ }, kn = (n) => n?.current?.remainingTimes > 0 && n?.next;
1307
+ function Ye(n, e) {
1308
+ Ve(n, e);
1309
+ }
1310
+ function Cn(n) {
1311
+ Ze.set(n);
1312
+ }
1313
+ const Ee = {
1314
+ en: {
1315
+ headerTitle: "Coin Royales",
1316
+ infoTooltip: "Flip a virtual coin and take a chance to win!",
1317
+ play: "Play",
1318
+ history: "History",
1319
+ rules: "Rules",
1320
+ noCoinYet: "There are no available Coin Royale",
1321
+ noHistoryYet: "There is no history yet",
1322
+ more: "More",
1323
+ rulesDescription: "Coin Royale is a particularly interesting game, will bring you a lot of surprises; When you obtained the Coin Royale, means you got a chance to flip the Coin, and if you are lucky, you can get the surprise prize.",
1324
+ terms: "Terms&Conditions link",
1325
+ prizeAgenda: "Prize agenda",
1326
+ tournamentTicket: "Tournament ticket",
1327
+ freeSpins: "Free spins",
1328
+ bonusMoney: "Bonus Money",
1329
+ loyaltyPoints: "Loyalty Points&Coins",
1330
+ luckyWheel: "LuckyWheel",
1331
+ mysteryChest: "Mystery Chest",
1332
+ coinRoyale: "Coin Royale",
1333
+ customRewards: "Custom Rewards"
1334
+ }
1335
+ };
1336
+ function Tn(n) {
1337
+ et(n, "svelte-rd1kop", `.main::-webkit-scrollbar{width:0.25rem}.main::-webkit-scrollbar-track{background:#1e1e24}.main::-webkit-scrollbar-thumb{color:#93CAED}.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .tooltip-backdrop{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.mobile .tooltip-backdrop .tooltip{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .icon-button{width:24px;height:24px}.mobile .coins-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .coins-tabs{margin:20px 0}.mobile .coins-tabs__container{border-bottom:1px solid var(--emw--color-secondary, #729787)}.mobile .coins-tabs__tab{font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.mobile .coins-tabs__tab.active{border-bottom:1px solid}.mobile .coins-list{gap:16px}.mobile .coins-list__item{font-weight:var(--emw--font-weight-normal, 400);padding:20px;font-size:var(--emw--font-size-x-small, 12px);line-height:15px;border-radius:var(--emw--border-radius-large, 16px);height:56px}.mobile .coins-list__item__keys{gap:5px;font-size:var(--emw--font-size-medium, 16px)}.mobile .coins-rules{gap:24px}.mobile .coins-rules__description{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__terms{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-rules__prize-title{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__list{padding-inline-start:15px;margin:5px 0 0}.mobile .coins-rules__list__item{margin-bottom:5px;font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-empty{margin-top:50px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-history__title{font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list{margin-bottom:32px}.mobile .coins-history__list__item{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list__item .name img{width:14px;height:14px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:100;bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;bottom:0;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.help{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>')}.icon-button.close{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')}.tooltip-backdrop{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.tooltip-backdrop .tooltip{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:var(--emw--border-radius-large, 8px);line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.tooltip-backdrop .tooltip .icon-button{top:12px;right:12px;position:absolute}.coins-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.coins-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.coins-loader{border-radius:var(--emw--border-radius-large, 16px);overflow:hidden}.coins-tabs{margin:28px 0}.coins-tabs__container{display:flex;position:relative;border-bottom:2px solid var(--emw--color-secondary, #729787)}.coins-tabs__tab{padding:8px 10px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;flex-grow:1;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-tabs__tab.active{color:var(--emw--color-typography, #fff);border-image-source:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);border-image-slice:1;margin-bottom:-2px;border-bottom:2px solid}.coins-list{max-height:85%;overflow:auto;gap:24px;display:flex;flex-wrap:wrap}.coins-list__item{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-large, 22px);line-height:25px;padding:35px 48px;border-radius:var(--emw--border-radius-large, 28px);height:110px;color:var(--emw--color-primary, #d3ffed);width:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);cursor:pointer}.coins-list__item__keys{display:flex;align-items:center;font-weight:var(--emw--font-weight-bold, 700);background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-size:var(--emw--font-size-large, 22px);gap:7px}.coins-rules{display:flex;flex-flow:column;gap:40px;color:var(--emw--color-primary-variant, #a9ccbe)}.coins-rules__description{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-rules__terms{display:flex;gap:5px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);border:none;padding:0;cursor:pointer;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.coins-rules__terms .arrow-icon{width:14px;height:14px;background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.41 7.744a.833.833 0 0 0 0 1.179l5 5a.833.833 0 0 0 1.18 0l5-5a.833.833 0 1 0-1.18-1.179L10 12.154l-4.41-4.41a.833.833 0 0 0-1.18 0Z" fill="url(%23a)"/><defs><linearGradient id="a" x1="10" y1="7.5" x2="10" y2="14.167" gradientUnits="userSpaceOnUse"><stop stop-color="%2375FFE9"/><stop offset="1" stop-color="%23B2FF6D"/></linearGradient></defs></svg>') no-repeat}.coins-rules__prize-title{color:#ffffff;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-rules__list{padding-inline-start:25px;margin:15px 0 0}.coins-rules__list__item{font-weight:var(--emw--font-weight-normal, 400);margin-bottom:12px;font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-empty{text-align:center;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);line-height:24px;margin-top:75px;font-size:var(--emw--font-size-medium, 16px)}.coins-history__title{font-weight:var(--emw--font-weight-bold, 700);color:#ffffff;font-size:var(--emw--font-size-medium, 16px);line-height:18px;margin-bottom:16px}.coins-history__more{border:none;display:flex;gap:4px;padding:0;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;cursor:pointer;font-weight:var(--emw--font-weight-medium, 500);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-history__list{margin-bottom:40px;overflow:auto;max-height:215px}.coins-history__list__item{display:flex;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:16px;margin-bottom:16px}.coins-history__list__item .index{margin-right:20px}.coins-history__list__item .name{flex-grow:1;margin:0;display:flex;gap:6px}.coins-history__list__item .name img{width:18px;height:18px}`);
1338
+ }
1339
+ function Le(n, e, t) {
1340
+ const r = n.slice();
1341
+ return r[36] = e[t], r;
1342
+ }
1343
+ function Fe(n, e, t) {
1344
+ const r = n.slice();
1345
+ return r[39] = e[t], r[41] = t, r;
1346
+ }
1347
+ function Ne(n, e, t) {
1348
+ const r = n.slice();
1349
+ return r[33] = e[t], r[35] = t, r;
1350
+ }
1351
+ function Re(n) {
1352
+ let e, t, r, a, i, o = (
1353
+ /*$_*/
1354
+ n[10]("infoTooltip") + ""
1355
+ ), l, m, d;
1356
+ return {
1357
+ c() {
1358
+ e = p("div"), t = p("div"), r = p("button"), a = _(), i = p("span"), l = P(o), h(r, "class", "icon-button close"), h(t, "class", "tooltip"), h(e, "class", "tooltip-backdrop");
1359
+ },
1360
+ m(f, u) {
1361
+ q(f, e, u), s(e, t), s(t, r), s(t, a), s(t, i), s(i, l), m || (d = J(
1362
+ r,
1363
+ "click",
1364
+ /*showHideToolip*/
1365
+ n[13]
1366
+ ), m = !0);
1367
+ },
1368
+ p(f, u) {
1369
+ u[0] & /*$_*/
1370
+ 1024 && o !== (o = /*$_*/
1371
+ f[10]("infoTooltip") + "") && O(l, o);
1372
+ },
1373
+ d(f) {
1374
+ f && R(e), m = !1, d();
1375
+ }
1376
+ };
1377
+ }
1378
+ function Mn(n) {
1379
+ let e, t, r = (
1380
+ /*$_*/
1381
+ n[10]("rulesDescription") + ""
1382
+ ), a, i, o, l, m, d = (
1383
+ /*$_*/
1384
+ n[10]("prizeAgenda") + ""
1385
+ ), f, u, g, v, b = (
1386
+ /*$_*/
1387
+ n[10]("tournamentTicket") + ""
1388
+ ), k, y, C, S = (
1389
+ /*$_*/
1390
+ n[10]("freeSpins") + ""
1391
+ ), W, I, T, E = (
1392
+ /*$_*/
1393
+ n[10]("bonusMoney") + ""
1394
+ ), G, V, U, B = (
1395
+ /*$_*/
1396
+ n[10]("loyaltyPoints") + ""
1397
+ ), M, L, N, Z = (
1398
+ /*$_*/
1399
+ n[10]("luckyWheel") + ""
1400
+ ), D, te, Q, z = (
1401
+ /*$_*/
1402
+ n[10]("mysteryChest") + ""
1403
+ ), c, w, j, ne = (
1404
+ /*$_*/
1405
+ n[10]("coinRoyale") + ""
1406
+ ), ge, re, K, ae = (
1407
+ /*$_*/
1408
+ n[10]("customRewards") + ""
1409
+ ), de, F = (
1410
+ /*hasUrl*/
1411
+ n[8] && qe(n)
1412
+ );
1413
+ return {
1414
+ c() {
1415
+ e = p("div"), t = p("span"), a = P(r), i = _(), F && F.c(), o = _(), l = p("section"), m = p("span"), f = P(d), u = _(), g = p("ul"), v = p("li"), k = P(b), y = _(), C = p("li"), W = P(S), I = _(), T = p("li"), G = P(E), V = _(), U = p("li"), M = P(B), L = _(), N = p("li"), D = P(Z), te = _(), Q = p("li"), c = P(z), w = _(), j = p("li"), ge = P(ne), re = _(), K = p("li"), de = P(ae), h(t, "class", "coins-rules__description"), h(m, "class", "coins-rules__prize-title"), h(v, "class", "coins-rules__list__item"), h(C, "class", "coins-rules__list__item"), h(T, "class", "coins-rules__list__item"), h(U, "class", "coins-rules__list__item"), h(N, "class", "coins-rules__list__item"), h(Q, "class", "coins-rules__list__item"), h(j, "class", "coins-rules__list__item"), h(K, "class", "coins-rules__list__item"), h(g, "class", "coins-rules__list"), h(e, "class", "coins-rules");
1416
+ },
1417
+ m(Y, A) {
1418
+ q(Y, e, A), s(e, t), s(t, a), s(e, i), F && F.m(e, null), s(e, o), s(e, l), s(l, m), s(m, f), s(l, u), s(l, g), s(g, v), s(v, k), s(g, y), s(g, C), s(C, W), s(g, I), s(g, T), s(T, G), s(g, V), s(g, U), s(U, M), s(g, L), s(g, N), s(N, D), s(g, te), s(g, Q), s(Q, c), s(g, w), s(g, j), s(j, ge), s(g, re), s(g, K), s(K, de);
1419
+ },
1420
+ p(Y, A) {
1421
+ A[0] & /*$_*/
1422
+ 1024 && r !== (r = /*$_*/
1423
+ Y[10]("rulesDescription") + "") && O(a, r), /*hasUrl*/
1424
+ Y[8] ? F ? F.p(Y, A) : (F = qe(Y), F.c(), F.m(e, o)) : F && (F.d(1), F = null), A[0] & /*$_*/
1425
+ 1024 && d !== (d = /*$_*/
1426
+ Y[10]("prizeAgenda") + "") && O(f, d), A[0] & /*$_*/
1427
+ 1024 && b !== (b = /*$_*/
1428
+ Y[10]("tournamentTicket") + "") && O(k, b), A[0] & /*$_*/
1429
+ 1024 && S !== (S = /*$_*/
1430
+ Y[10]("freeSpins") + "") && O(W, S), A[0] & /*$_*/
1431
+ 1024 && E !== (E = /*$_*/
1432
+ Y[10]("bonusMoney") + "") && O(G, E), A[0] & /*$_*/
1433
+ 1024 && B !== (B = /*$_*/
1434
+ Y[10]("loyaltyPoints") + "") && O(M, B), A[0] & /*$_*/
1435
+ 1024 && Z !== (Z = /*$_*/
1436
+ Y[10]("luckyWheel") + "") && O(D, Z), A[0] & /*$_*/
1437
+ 1024 && z !== (z = /*$_*/
1438
+ Y[10]("mysteryChest") + "") && O(c, z), A[0] & /*$_*/
1439
+ 1024 && ne !== (ne = /*$_*/
1440
+ Y[10]("coinRoyale") + "") && O(ge, ne), A[0] & /*$_*/
1441
+ 1024 && ae !== (ae = /*$_*/
1442
+ Y[10]("customRewards") + "") && O(de, ae);
1443
+ },
1444
+ d(Y) {
1445
+ Y && R(e), F && F.d();
1446
+ }
1447
+ };
1448
+ }
1449
+ function On(n) {
1450
+ let e;
1451
+ function t(i, o) {
1452
+ return (
1453
+ /*coinRoyalesHistory*/
1454
+ i[9].length > 0 ? Wn : Sn
1455
+ );
1456
+ }
1457
+ let r = t(n), a = r(n);
1458
+ return {
1459
+ c() {
1460
+ a.c(), e = ke();
1461
+ },
1462
+ m(i, o) {
1463
+ a.m(i, o), q(i, e, o);
1464
+ },
1465
+ p(i, o) {
1466
+ r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
1467
+ },
1468
+ d(i) {
1469
+ i && R(e), a.d(i);
1470
+ }
1471
+ };
1472
+ }
1473
+ function Pn(n) {
1474
+ let e;
1475
+ function t(i, o) {
1476
+ return (
1477
+ /*coinRoyales*/
1478
+ i[6].length > 0 ? zn : Un
1479
+ );
1480
+ }
1481
+ let r = t(n), a = r(n);
1482
+ return {
1483
+ c() {
1484
+ a.c(), e = ke();
1485
+ },
1486
+ m(i, o) {
1487
+ a.m(i, o), q(i, e, o);
1488
+ },
1489
+ p(i, o) {
1490
+ r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
1491
+ },
1492
+ d(i) {
1493
+ i && R(e), a.d(i);
1494
+ }
1495
+ };
1496
+ }
1497
+ function Dn(n) {
1498
+ let e;
1499
+ return {
1500
+ c() {
1501
+ e = p("div"), e.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="110px"></ui-skeleton>', h(e, "class", "coins-loader");
1502
+ },
1503
+ m(t, r) {
1504
+ q(t, e, r);
1505
+ },
1506
+ p: xe,
1507
+ d(t) {
1508
+ t && R(e);
1509
+ }
1510
+ };
1511
+ }
1512
+ function qe(n) {
1513
+ let e, t, r = (
1514
+ /*$_*/
1515
+ n[10]("terms") + ""
1516
+ ), a, i, o;
1517
+ return {
1518
+ c() {
1519
+ e = p("a"), t = p("span"), a = P(r), i = _(), o = p("span"), h(o, "class", "arrow-icon"), h(e, "class", "coins-rules__terms"), h(
1520
+ e,
1521
+ "href",
1522
+ /*terms*/
1523
+ n[0]
1524
+ ), h(e, "target", "_blank");
1525
+ },
1526
+ m(l, m) {
1527
+ q(l, e, m), s(e, t), s(t, a), s(e, i), s(e, o);
1528
+ },
1529
+ p(l, m) {
1530
+ m[0] & /*$_*/
1531
+ 1024 && r !== (r = /*$_*/
1532
+ l[10]("terms") + "") && O(a, r), m[0] & /*terms*/
1533
+ 1 && h(
1534
+ e,
1535
+ "href",
1536
+ /*terms*/
1537
+ l[0]
1538
+ );
1539
+ },
1540
+ d(l) {
1541
+ l && R(e);
1542
+ }
1543
+ };
1544
+ }
1545
+ function Sn(n) {
1546
+ let e, t = (
1547
+ /*$_*/
1548
+ n[10]("noHistoryYet") + ""
1549
+ ), r;
1550
+ return {
1551
+ c() {
1552
+ e = p("div"), r = P(t), h(e, "class", "coins-empty");
1553
+ },
1554
+ m(a, i) {
1555
+ q(a, e, i), s(e, r);
1556
+ },
1557
+ p(a, i) {
1558
+ i[0] & /*$_*/
1559
+ 1024 && t !== (t = /*$_*/
1560
+ a[10]("noHistoryYet") + "") && O(r, t);
1561
+ },
1562
+ d(a) {
1563
+ a && R(e);
1564
+ }
1565
+ };
1566
+ }
1567
+ function Wn(n) {
1568
+ let e, t = ce(
1569
+ /*coinRoyalesHistory*/
1570
+ n[9]
1571
+ ), r = [];
1572
+ for (let a = 0; a < t.length; a += 1)
1573
+ r[a] = je(Le(n, t, a));
1574
+ return {
1575
+ c() {
1576
+ for (let a = 0; a < r.length; a += 1)
1577
+ r[a].c();
1578
+ e = ke();
1579
+ },
1580
+ m(a, i) {
1581
+ for (let o = 0; o < r.length; o += 1)
1582
+ r[o] && r[o].m(a, i);
1583
+ q(a, e, i);
1584
+ },
1585
+ p(a, i) {
1586
+ if (i[0] & /*showMore, coinRoyalesHistory, $_*/
1587
+ 17920) {
1588
+ t = ce(
1589
+ /*coinRoyalesHistory*/
1590
+ a[9]
1591
+ );
1592
+ let o;
1593
+ for (o = 0; o < t.length; o += 1) {
1594
+ const l = Le(a, t, o);
1595
+ r[o] ? r[o].p(l, i) : (r[o] = je(l), r[o].c(), r[o].m(e.parentNode, e));
1596
+ }
1597
+ for (; o < r.length; o += 1)
1598
+ r[o].d(1);
1599
+ r.length = t.length;
1600
+ }
1601
+ },
1602
+ d(a) {
1603
+ a && R(e), Ce(r, a);
1604
+ }
1605
+ };
1606
+ }
1607
+ function He(n) {
1608
+ let e, t, r, a, i = (
1609
+ /*outcome*/
1610
+ n[39]?.name + ""
1611
+ ), o, l, m, d, f, u, g = (
1612
+ /*outcome*/
1613
+ n[39]?.date + ""
1614
+ ), v;
1615
+ return {
1616
+ c() {
1617
+ e = p("div"), t = p("span"), t.textContent = `${/*index*/
1618
+ n[41] + 1}`, r = _(), a = p("p"), o = P(i), l = _(), m = p("img"), f = _(), u = p("span"), v = P(g), h(t, "class", "index"), ve(m.src, d = /*outcome*/
1619
+ n[39]?.state ? We : Se) || h(m, "src", d), h(m, "alt", ""), h(a, "class", "name"), h(u, "class", "time"), h(e, "class", "coins-history__list__item");
1620
+ },
1621
+ m(b, k) {
1622
+ q(b, e, k), s(e, t), s(e, r), s(e, a), s(a, o), s(a, l), s(a, m), s(e, f), s(e, u), s(u, v);
1623
+ },
1624
+ p(b, k) {
1625
+ k[0] & /*coinRoyalesHistory*/
1626
+ 512 && i !== (i = /*outcome*/
1627
+ b[39]?.name + "") && O(o, i), k[0] & /*coinRoyalesHistory*/
1628
+ 512 && !ve(m.src, d = /*outcome*/
1629
+ b[39]?.state ? We : Se) && h(m, "src", d), k[0] & /*coinRoyalesHistory*/
1630
+ 512 && g !== (g = /*outcome*/
1631
+ b[39]?.date + "") && O(v, g);
1632
+ },
1633
+ d(b) {
1634
+ b && R(e);
1635
+ }
1636
+ };
1637
+ }
1638
+ function Be(n) {
1639
+ let e, t = (
1640
+ /*$_*/
1641
+ n[10]("more") + ""
1642
+ ), r, a, i, o, l, m;
1643
+ function d() {
1644
+ return (
1645
+ /*click_handler_1*/
1646
+ n[24](
1647
+ /*history*/
1648
+ n[36]
1649
+ )
1650
+ );
1651
+ }
1652
+ return {
1653
+ c() {
1654
+ e = p("button"), r = P(t), a = _(), i = p("img"), ve(i.src, o = _n) || h(i, "src", o), h(i, "alt", "More"), h(e, "class", "coins-history__more");
1655
+ },
1656
+ m(f, u) {
1657
+ q(f, e, u), s(e, r), s(e, a), s(e, i), l || (m = J(e, "click", d), l = !0);
1658
+ },
1659
+ p(f, u) {
1660
+ n = f, u[0] & /*$_*/
1661
+ 1024 && t !== (t = /*$_*/
1662
+ n[10]("more") + "") && O(r, t);
1663
+ },
1664
+ d(f) {
1665
+ f && R(e), l = !1, m();
1666
+ }
1667
+ };
1668
+ }
1669
+ function je(n) {
1670
+ let e, t, r = (
1671
+ /*history*/
1672
+ n[36].name + ""
1673
+ ), a, i, o, l, m = ce(
1674
+ /*history*/
1675
+ n[36].outcomes.slice(
1676
+ 0,
1677
+ /*history*/
1678
+ n[36].endPos
1679
+ )
1680
+ ), d = [];
1681
+ for (let u = 0; u < m.length; u += 1)
1682
+ d[u] = He(Fe(n, m, u));
1683
+ let f = (
1684
+ /*history*/
1685
+ n[36].outcomes?.length > 3 && /*history*/
1686
+ n[36].endPos === 3 && Be(n)
1687
+ );
1688
+ return {
1689
+ c() {
1690
+ e = p("div"), t = p("div"), a = P(r), i = _();
1691
+ for (let u = 0; u < d.length; u += 1)
1692
+ d[u].c();
1693
+ o = _(), f && f.c(), l = _(), h(t, "class", "coins-history__title"), h(e, "class", "coins-history__list");
1694
+ },
1695
+ m(u, g) {
1696
+ q(u, e, g), s(e, t), s(t, a), s(e, i);
1697
+ for (let v = 0; v < d.length; v += 1)
1698
+ d[v] && d[v].m(e, null);
1699
+ s(e, o), f && f.m(e, null), s(e, l);
1700
+ },
1701
+ p(u, g) {
1702
+ if (g[0] & /*coinRoyalesHistory*/
1703
+ 512 && r !== (r = /*history*/
1704
+ u[36].name + "") && O(a, r), g[0] & /*coinRoyalesHistory*/
1705
+ 512) {
1706
+ m = ce(
1707
+ /*history*/
1708
+ u[36].outcomes.slice(
1709
+ 0,
1710
+ /*history*/
1711
+ u[36].endPos
1712
+ )
1713
+ );
1714
+ let v;
1715
+ for (v = 0; v < m.length; v += 1) {
1716
+ const b = Fe(u, m, v);
1717
+ d[v] ? d[v].p(b, g) : (d[v] = He(b), d[v].c(), d[v].m(e, o));
1718
+ }
1719
+ for (; v < d.length; v += 1)
1720
+ d[v].d(1);
1721
+ d.length = m.length;
1722
+ }
1723
+ /*history*/
1724
+ u[36].outcomes?.length > 3 && /*history*/
1725
+ u[36].endPos === 3 ? f ? f.p(u, g) : (f = Be(u), f.c(), f.m(e, l)) : f && (f.d(1), f = null);
1726
+ },
1727
+ d(u) {
1728
+ u && R(e), Ce(d, u), f && f.d();
1729
+ }
1730
+ };
1731
+ }
1732
+ function Un(n) {
1733
+ let e, t = (
1734
+ /*$_*/
1735
+ n[10]("noCoinYet") + ""
1736
+ ), r;
1737
+ return {
1738
+ c() {
1739
+ e = p("div"), r = P(t), h(e, "class", "coins-empty");
1740
+ },
1741
+ m(a, i) {
1742
+ q(a, e, i), s(e, r);
1743
+ },
1744
+ p(a, i) {
1745
+ i[0] & /*$_*/
1746
+ 1024 && t !== (t = /*$_*/
1747
+ a[10]("noCoinYet") + "") && O(r, t);
1748
+ },
1749
+ d(a) {
1750
+ a && R(e);
1751
+ }
1752
+ };
1753
+ }
1754
+ function zn(n) {
1755
+ let e, t = ce(
1756
+ /*coinRoyales*/
1757
+ n[6]
1758
+ ), r = [];
1759
+ for (let a = 0; a < t.length; a += 1)
1760
+ r[a] = Ae(Ne(n, t, a));
1761
+ return {
1762
+ c() {
1763
+ e = p("div");
1764
+ for (let a = 0; a < r.length; a += 1)
1765
+ r[a].c();
1766
+ h(e, "class", "coins-list");
1767
+ },
1768
+ m(a, i) {
1769
+ q(a, e, i);
1770
+ for (let o = 0; o < r.length; o += 1)
1771
+ r[o] && r[o].m(e, null);
1772
+ },
1773
+ p(a, i) {
1774
+ if (i[0] & /*openCoinDetails, coinRoyales, lang*/
1775
+ 65602) {
1776
+ t = ce(
1777
+ /*coinRoyales*/
1778
+ a[6]
1779
+ );
1780
+ let o;
1781
+ for (o = 0; o < t.length; o += 1) {
1782
+ const l = Ne(a, t, o);
1783
+ r[o] ? r[o].p(l, i) : (r[o] = Ae(l), r[o].c(), r[o].m(e, null));
1784
+ }
1785
+ for (; o < r.length; o += 1)
1786
+ r[o].d(1);
1787
+ r.length = t.length;
1788
+ }
1789
+ },
1790
+ d(a) {
1791
+ a && R(e), Ce(r, a);
1792
+ }
1793
+ };
1794
+ }
1795
+ function Ae(n) {
1796
+ let e, t = (
1797
+ /*coin*/
1798
+ (n[33].program.name[
1799
+ /*lang*/
1800
+ n[1]
1801
+ ] || /*coin*/
1802
+ n[33].program.name[ue.default]) + ""
1803
+ ), r, a, i, o, l, m, d, f = (
1804
+ /*coin*/
1805
+ n[33]?.current?.remainingTimes + ""
1806
+ ), u, g, v, b;
1807
+ function k() {
1808
+ return (
1809
+ /*click_handler*/
1810
+ n[23](
1811
+ /*coin*/
1812
+ n[33]
1813
+ )
1814
+ );
1815
+ }
1816
+ return {
1817
+ c() {
1818
+ e = p("button"), r = P(t), a = _(), i = p("div"), o = p("img"), m = _(), d = p("span"), u = P(f), g = _(), ve(o.src, l = wn) || h(o, "src", l), h(o, "alt", "Key"), h(i, "class", "coins-list__item__keys"), h(e, "class", "coins-list__item");
1819
+ },
1820
+ m(y, C) {
1821
+ q(y, e, C), s(e, r), s(e, a), s(e, i), s(i, o), s(i, m), s(i, d), s(d, u), s(e, g), v || (b = J(e, "click", k), v = !0);
1822
+ },
1823
+ p(y, C) {
1824
+ n = y, C[0] & /*coinRoyales, lang*/
1825
+ 66 && t !== (t = /*coin*/
1826
+ (n[33].program.name[
1827
+ /*lang*/
1828
+ n[1]
1829
+ ] || /*coin*/
1830
+ n[33].program.name[ue.default]) + "") && O(r, t), C[0] & /*coinRoyales*/
1831
+ 64 && f !== (f = /*coin*/
1832
+ n[33]?.current?.remainingTimes + "") && O(u, f);
1833
+ },
1834
+ d(y) {
1835
+ y && R(e), v = !1, b();
1836
+ }
1837
+ };
1838
+ }
1839
+ function Yn(n) {
1840
+ let e, t, r, a, i, o, l, m, d, f = (
1841
+ /*$_*/
1842
+ n[10]("headerTitle") + ""
1843
+ ), u, g, v, b, k, y, C, S = (
1844
+ /*$_*/
1845
+ n[10]("play") + ""
1846
+ ), W, I, T, E = (
1847
+ /*$_*/
1848
+ n[10]("history") + ""
1849
+ ), G, V, U, B = (
1850
+ /*$_*/
1851
+ n[10]("rules") + ""
1852
+ ), M, L, N, Z, D = (
1853
+ /*tooltip*/
1854
+ n[7] && Re(n)
1855
+ );
1856
+ function te(c, w) {
1857
+ return (
1858
+ /*coinsLoading*/
1859
+ c[5] || /*historyLoading*/
1860
+ c[4] ? Dn : (
1861
+ /*activeTab*/
1862
+ c[3] === 1 ? Pn : (
1863
+ /*activeTab*/
1864
+ c[3] === 2 ? On : Mn
1865
+ )
1866
+ )
1867
+ );
1868
+ }
1869
+ let Q = te(n), z = Q(n);
1870
+ return {
1871
+ c() {
1872
+ e = p("div"), t = p("button"), r = _(), a = p("div"), D && D.c(), i = _(), o = p("div"), l = p("button"), m = _(), d = p("div"), u = P(f), g = _(), v = p("button"), b = _(), k = p("div"), y = p("div"), C = p("button"), W = P(S), I = _(), T = p("button"), G = P(E), V = _(), U = p("button"), M = P(B), L = _(), z.c(), h(t, "class", "overlay"), h(l, "class", "icon-button help"), h(d, "class", "coins-header__title"), h(v, "class", "icon-button close"), h(o, "class", "coins-header"), h(C, "data-index", "1"), h(C, "class", "coins-tabs__tab"), se(
1873
+ C,
1874
+ "active",
1875
+ /*activeTab*/
1876
+ n[3] === 1
1877
+ ), h(T, "data-index", "2"), h(T, "class", "coins-tabs__tab"), se(
1878
+ T,
1879
+ "active",
1880
+ /*activeTab*/
1881
+ n[3] === 2
1882
+ ), h(U, "data-index", "3"), h(U, "class", "coins-tabs__tab"), se(
1883
+ U,
1884
+ "active",
1885
+ /*activeTab*/
1886
+ n[3] === 3
1887
+ ), h(y, "class", "coins-tabs__container"), h(k, "class", "coins-tabs"), h(a, "class", "drawer " + /*mobileView*/
1888
+ (n[11] ? "mobile" : "")), h(e, "part", "CustomStylingContainer");
1889
+ },
1890
+ m(c, w) {
1891
+ q(c, e, w), s(e, t), s(e, r), s(e, a), D && D.m(a, null), s(a, i), s(a, o), s(o, l), s(o, m), s(o, d), s(d, u), s(o, g), s(o, v), s(a, b), s(a, k), s(k, y), s(y, C), s(C, W), s(y, I), s(y, T), s(T, G), s(y, V), s(y, U), s(U, M), s(a, L), z.m(a, null), n[25](e), N || (Z = [
1892
+ J(
1893
+ t,
1894
+ "click",
1895
+ /*onClose*/
1896
+ n[12]
1897
+ ),
1898
+ J(
1899
+ l,
1900
+ "click",
1901
+ /*showHideToolip*/
1902
+ n[13]
1903
+ ),
1904
+ J(
1905
+ v,
1906
+ "click",
1907
+ /*onClose*/
1908
+ n[12]
1909
+ ),
1910
+ J(
1911
+ C,
1912
+ "click",
1913
+ /*handleTabChange*/
1914
+ n[15]
1915
+ ),
1916
+ J(
1917
+ T,
1918
+ "click",
1919
+ /*handleTabChange*/
1920
+ n[15]
1921
+ ),
1922
+ J(
1923
+ U,
1924
+ "click",
1925
+ /*handleTabChange*/
1926
+ n[15]
1927
+ )
1928
+ ], N = !0);
1929
+ },
1930
+ p(c, w) {
1931
+ /*tooltip*/
1932
+ c[7] ? D ? D.p(c, w) : (D = Re(c), D.c(), D.m(a, i)) : D && (D.d(1), D = null), w[0] & /*$_*/
1933
+ 1024 && f !== (f = /*$_*/
1934
+ c[10]("headerTitle") + "") && O(u, f), w[0] & /*$_*/
1935
+ 1024 && S !== (S = /*$_*/
1936
+ c[10]("play") + "") && O(W, S), w[0] & /*activeTab*/
1937
+ 8 && se(
1938
+ C,
1939
+ "active",
1940
+ /*activeTab*/
1941
+ c[3] === 1
1942
+ ), w[0] & /*$_*/
1943
+ 1024 && E !== (E = /*$_*/
1944
+ c[10]("history") + "") && O(G, E), w[0] & /*activeTab*/
1945
+ 8 && se(
1946
+ T,
1947
+ "active",
1948
+ /*activeTab*/
1949
+ c[3] === 2
1950
+ ), w[0] & /*$_*/
1951
+ 1024 && B !== (B = /*$_*/
1952
+ c[10]("rules") + "") && O(M, B), w[0] & /*activeTab*/
1953
+ 8 && se(
1954
+ U,
1955
+ "active",
1956
+ /*activeTab*/
1957
+ c[3] === 3
1958
+ ), Q === (Q = te(c)) && z ? z.p(c, w) : (z.d(1), z = Q(c), z && (z.c(), z.m(a, null)));
1959
+ },
1960
+ i: xe,
1961
+ o: xe,
1962
+ d(c) {
1963
+ c && R(e), D && D.d(), z.d(), n[25](null), N = !1, tt(Z);
1964
+ }
1965
+ };
1966
+ }
1967
+ function En(n, e, t) {
1968
+ let r;
1969
+ nt(n, st, (c) => t(10, r = c));
1970
+ let { terms: a = "" } = e, { lang: i = ue.en } = e, { endpoint: o = "" } = e, { session: l = "" } = e, { clientstyling: m = "" } = e, { clientstylingurl: d = "" } = e, { translationurl: f = "" } = e, { mbsource: u } = e, g = window.navigator.userAgent, v = rt(g), b, k = 1, y = !1, C = !1, S = [], W = !1, I = !1, T;
1971
+ const E = (c) => /(https?:\/\/[^\s]+)/g.test(c), G = () => {
1972
+ De({ type: "CloseCoinRoyaleDrawer" });
1973
+ }, V = () => {
1974
+ t(7, W = !W);
1975
+ }, U = async () => {
1976
+ t(4, y = !0);
1977
+ let c = S.map((w) => ({
1978
+ id: w.program.id,
1979
+ name: w.program.name[i] || w.program.name[ue.default],
1980
+ partitions: w.program.wheelOfFortune.partitions,
1981
+ endPos: 0,
1982
+ outcomes: []
1983
+ }));
1984
+ if (c.length > 0) {
1985
+ const w = c.map(async (j, ne) => {
1986
+ const re = (await ze.outcome(o, l, j?.id)).items || [];
1987
+ if (re.length === 0) {
1988
+ c[ne] = null;
1989
+ return;
1990
+ }
1991
+ c[ne] = {
1992
+ ...j,
1993
+ endPos: re.length > 3 ? 3 : re.length,
1994
+ outcomes: re.map((K) => {
1995
+ const ae = j.partitions[K.draw.result.wheelOfFortunePartitionIndex]?.name || {}, de = K.draw.state === "fulfilled", F = pn(new Date(K.draw.time), "LLL d, yyyy HH:mm:ss");
1996
+ return {
1997
+ name: ae[i] || ae[ue.default],
1998
+ state: de,
1999
+ date: F
2000
+ };
2001
+ })
2002
+ };
2003
+ });
2004
+ await Promise.all(w);
2005
+ }
2006
+ t(9, T = c.filter((w) => !!w)), t(4, y = !1);
2007
+ }, B = async () => {
2008
+ t(5, C = !0);
2009
+ const c = await ze.lotteries(o, l);
2010
+ t(6, S = c.filter((w) => kn(w))), t(5, C = !1);
2011
+ }, M = (c) => {
2012
+ const w = T.findIndex((j) => j.id === c);
2013
+ t(9, T[w].endPos = T[w].outcomes?.length, T);
2014
+ }, L = async (c) => {
2015
+ t(3, k = +c.target.getAttribute("data-index")), k === 2 && await U();
2016
+ }, N = () => {
2017
+ fetch(f).then((w) => w.json()).then((w) => {
2018
+ Object.keys(w).forEach((j) => {
2019
+ Ye(j, w[j]);
2020
+ });
2021
+ });
2022
+ };
2023
+ Object.keys(Ee).forEach((c) => {
2024
+ Ye(c, Ee[c]);
2025
+ });
2026
+ const Z = () => {
2027
+ Cn(i);
2028
+ }, D = (c) => {
2029
+ De({
2030
+ type: "OpenCoinRoyaleDetails",
2031
+ data: c
2032
+ });
2033
+ };
2034
+ at(() => {
2035
+ t(8, I = E(a)), B();
2036
+ });
2037
+ const te = (c) => {
2038
+ D(c);
2039
+ }, Q = (c) => M(c.id);
2040
+ function z(c) {
2041
+ it[c ? "unshift" : "push"](() => {
2042
+ b = c, t(2, b);
2043
+ });
2044
+ }
2045
+ return n.$$set = (c) => {
2046
+ "terms" in c && t(0, a = c.terms), "lang" in c && t(1, i = c.lang), "endpoint" in c && t(17, o = c.endpoint), "session" in c && t(18, l = c.session), "clientstyling" in c && t(19, m = c.clientstyling), "clientstylingurl" in c && t(20, d = c.clientstylingurl), "translationurl" in c && t(21, f = c.translationurl), "mbsource" in c && t(22, u = c.mbsource);
2047
+ }, n.$$.update = () => {
2048
+ n.$$.dirty[0] & /*lang*/
2049
+ 2 && i && Z(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
2050
+ 524292 && m && b && lt(b, m), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
2051
+ 1048580 && d && b && ut(b, d), n.$$.dirty[0] & /*translationurl*/
2052
+ 2097152 && f && N(), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
2053
+ 4194308 && u && b && ct(b, `${u}.Style`);
2054
+ }, [
2055
+ a,
2056
+ i,
2057
+ b,
2058
+ k,
2059
+ y,
2060
+ C,
2061
+ S,
2062
+ W,
2063
+ I,
2064
+ T,
2065
+ r,
2066
+ v,
2067
+ G,
2068
+ V,
2069
+ M,
2070
+ L,
2071
+ D,
2072
+ o,
2073
+ l,
2074
+ m,
2075
+ d,
2076
+ f,
2077
+ u,
2078
+ te,
2079
+ Q,
2080
+ z
2081
+ ];
2082
+ }
2083
+ class Xe extends Je {
2084
+ constructor(e) {
2085
+ super(), Ke(
2086
+ this,
2087
+ e,
2088
+ En,
2089
+ Yn,
2090
+ $e,
2091
+ {
2092
+ terms: 0,
2093
+ lang: 1,
2094
+ endpoint: 17,
2095
+ session: 18,
2096
+ clientstyling: 19,
2097
+ clientstylingurl: 20,
2098
+ translationurl: 21,
2099
+ mbsource: 22
2100
+ },
2101
+ Tn,
2102
+ [-1, -1]
2103
+ );
2104
+ }
2105
+ get terms() {
2106
+ return this.$$.ctx[0];
2107
+ }
2108
+ set terms(e) {
2109
+ this.$$set({ terms: e }), $();
2110
+ }
2111
+ get lang() {
2112
+ return this.$$.ctx[1];
2113
+ }
2114
+ set lang(e) {
2115
+ this.$$set({ lang: e }), $();
2116
+ }
2117
+ get endpoint() {
2118
+ return this.$$.ctx[17];
2119
+ }
2120
+ set endpoint(e) {
2121
+ this.$$set({ endpoint: e }), $();
2122
+ }
2123
+ get session() {
2124
+ return this.$$.ctx[18];
2125
+ }
2126
+ set session(e) {
2127
+ this.$$set({ session: e }), $();
2128
+ }
2129
+ get clientstyling() {
2130
+ return this.$$.ctx[19];
2131
+ }
2132
+ set clientstyling(e) {
2133
+ this.$$set({ clientstyling: e }), $();
2134
+ }
2135
+ get clientstylingurl() {
2136
+ return this.$$.ctx[20];
2137
+ }
2138
+ set clientstylingurl(e) {
2139
+ this.$$set({ clientstylingurl: e }), $();
2140
+ }
2141
+ get translationurl() {
2142
+ return this.$$.ctx[21];
2143
+ }
2144
+ set translationurl(e) {
2145
+ this.$$set({ translationurl: e }), $();
2146
+ }
2147
+ get mbsource() {
2148
+ return this.$$.ctx[22];
2149
+ }
2150
+ set mbsource(e) {
2151
+ this.$$set({ mbsource: e }), $();
2152
+ }
2153
+ }
2154
+ ot(Xe, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
2155
+ const Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2156
+ __proto__: null,
2157
+ default: Xe
2158
+ }, Symbol.toStringTag, { value: "Module" }));
2159
+ export {
2160
+ Rn as C,
2161
+ pn as f
2162
+ };