@everymatrix/casino-game-overlay 0.9.0 → 1.71.0

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