@everymatrix/casino-tournaments-slider-controller 1.53.0 → 1.53.10

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.
@@ -0,0 +1,919 @@
1
+ function M() {
2
+ }
3
+ const kt = (t) => t;
4
+ function gt(t) {
5
+ return t();
6
+ }
7
+ function at() {
8
+ return /* @__PURE__ */ Object.create(null);
9
+ }
10
+ function H(t) {
11
+ t.forEach(gt);
12
+ }
13
+ function rt(t) {
14
+ return typeof t == "function";
15
+ }
16
+ function bt(t, e) {
17
+ return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
18
+ }
19
+ let V;
20
+ function ct(t, e) {
21
+ return t === e ? !0 : (V || (V = document.createElement("a")), V.href = e, t === V.href);
22
+ }
23
+ function xt(t) {
24
+ return Object.keys(t).length === 0;
25
+ }
26
+ function vt(t, ...e) {
27
+ if (t == null) {
28
+ for (const i of e)
29
+ i(void 0);
30
+ return M;
31
+ }
32
+ const n = t.subscribe(...e);
33
+ return n.unsubscribe ? () => n.unsubscribe() : n;
34
+ }
35
+ function ie(t, e, n) {
36
+ t.$$.on_destroy.push(vt(e, n));
37
+ }
38
+ const mt = typeof window < "u";
39
+ let Ct = mt ? () => window.performance.now() : () => Date.now(), ot = mt ? (t) => requestAnimationFrame(t) : M;
40
+ const j = /* @__PURE__ */ new Set();
41
+ function _t(t) {
42
+ j.forEach((e) => {
43
+ e.c(t) || (j.delete(e), e.f());
44
+ }), j.size !== 0 && ot(_t);
45
+ }
46
+ function At(t) {
47
+ let e;
48
+ return j.size === 0 && ot(_t), {
49
+ promise: new Promise((n) => {
50
+ j.add(e = { c: t, f: n });
51
+ }),
52
+ abort() {
53
+ j.delete(e);
54
+ }
55
+ };
56
+ }
57
+ function v(t, e) {
58
+ t.appendChild(e);
59
+ }
60
+ function St(t, e, n) {
61
+ const i = lt(t);
62
+ if (!i.getElementById(e)) {
63
+ const s = R("style");
64
+ s.id = e, s.textContent = n, $t(i, s);
65
+ }
66
+ }
67
+ function lt(t) {
68
+ if (!t) return document;
69
+ const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
70
+ return e && /** @type {ShadowRoot} */
71
+ e.host ? (
72
+ /** @type {ShadowRoot} */
73
+ e
74
+ ) : t.ownerDocument;
75
+ }
76
+ function Et(t) {
77
+ const e = R("style");
78
+ return e.textContent = "/* empty */", $t(lt(t), e), e.sheet;
79
+ }
80
+ function $t(t, e) {
81
+ return v(
82
+ /** @type {Document} */
83
+ t.head || t,
84
+ e
85
+ ), e.sheet;
86
+ }
87
+ function Y(t, e, n) {
88
+ t.insertBefore(e, n || null);
89
+ }
90
+ function D(t) {
91
+ t.parentNode && t.parentNode.removeChild(t);
92
+ }
93
+ function se(t, e) {
94
+ for (let n = 0; n < t.length; n += 1)
95
+ t[n] && t[n].d(e);
96
+ }
97
+ function R(t) {
98
+ return document.createElement(t);
99
+ }
100
+ function re(t) {
101
+ return document.createElementNS("http://www.w3.org/2000/svg", t);
102
+ }
103
+ function Z(t) {
104
+ return document.createTextNode(t);
105
+ }
106
+ function B() {
107
+ return Z(" ");
108
+ }
109
+ function oe(t, e, n, i) {
110
+ return t.addEventListener(e, n, i), () => t.removeEventListener(e, n, i);
111
+ }
112
+ function h(t, e, n) {
113
+ n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
114
+ }
115
+ function le(t, e, n) {
116
+ const i = e.toLowerCase();
117
+ i in t ? t[i] = typeof t[i] == "boolean" && n === "" ? !0 : n : e in t ? t[e] = typeof t[e] == "boolean" && n === "" ? !0 : n : h(t, e, n);
118
+ }
119
+ function ae(t, e, n) {
120
+ t.setAttributeNS("http://www.w3.org/1999/xlink", e, n);
121
+ }
122
+ function Rt(t) {
123
+ return Array.from(t.childNodes);
124
+ }
125
+ function tt(t, e) {
126
+ e = "" + e, t.data !== e && (t.data = /** @type {string} */
127
+ e);
128
+ }
129
+ function ce(t, e, n, i) {
130
+ t.style.setProperty(e, n, "");
131
+ }
132
+ function zt(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
133
+ return new CustomEvent(t, { detail: e, bubbles: n, cancelable: i });
134
+ }
135
+ function Pt(t) {
136
+ const e = {};
137
+ return t.childNodes.forEach(
138
+ /** @param {Element} node */
139
+ (n) => {
140
+ e[n.slot || "default"] = !0;
141
+ }
142
+ ), e;
143
+ }
144
+ const Q = /* @__PURE__ */ new Map();
145
+ let W = 0;
146
+ function Lt(t) {
147
+ let e = 5381, n = t.length;
148
+ for (; n--; ) e = (e << 5) - e ^ t.charCodeAt(n);
149
+ return e >>> 0;
150
+ }
151
+ function Tt(t, e) {
152
+ const n = { stylesheet: Et(e), rules: {} };
153
+ return Q.set(t, n), n;
154
+ }
155
+ function ut(t, e, n, i, s, l, c, o = 0) {
156
+ const r = 16.666 / i;
157
+ let f = `{
158
+ `;
159
+ for (let m = 0; m <= 1; m += r) {
160
+ const C = e + (n - e) * l(m);
161
+ f += m * 100 + `%{${c(C, 1 - C)}}
162
+ `;
163
+ }
164
+ const p = f + `100% {${c(n, 1 - n)}}
165
+ }`, d = `__svelte_${Lt(p)}_${o}`, g = lt(t), { stylesheet: _, rules: u } = Q.get(g) || Tt(g, t);
166
+ u[d] || (u[d] = !0, _.insertRule(`@keyframes ${d} ${p}`, _.cssRules.length));
167
+ const w = t.style.animation || "";
168
+ return t.style.animation = `${w ? `${w}, ` : ""}${d} ${i}ms linear ${s}ms 1 both`, W += 1, d;
169
+ }
170
+ function Mt(t, e) {
171
+ const n = (t.style.animation || "").split(", "), i = n.filter(
172
+ e ? (l) => l.indexOf(e) < 0 : (l) => l.indexOf("__svelte") === -1
173
+ // remove all Svelte animations
174
+ ), s = n.length - i.length;
175
+ s && (t.style.animation = i.join(", "), W -= s, W || It());
176
+ }
177
+ function It() {
178
+ ot(() => {
179
+ W || (Q.forEach((t) => {
180
+ const { ownerNode: e } = t.stylesheet;
181
+ e && D(e);
182
+ }), Q.clear());
183
+ });
184
+ }
185
+ let J;
186
+ function F(t) {
187
+ J = t;
188
+ }
189
+ function Ut() {
190
+ if (!J) throw new Error("Function called outside component initialization");
191
+ return J;
192
+ }
193
+ function jt(t) {
194
+ Ut().$$.on_mount.push(t);
195
+ }
196
+ const U = [], it = [];
197
+ let O = [];
198
+ const ft = [], Ot = /* @__PURE__ */ Promise.resolve();
199
+ let st = !1;
200
+ function Ht() {
201
+ st || (st = !0, Ot.then(E));
202
+ }
203
+ function X(t) {
204
+ O.push(t);
205
+ }
206
+ const et = /* @__PURE__ */ new Set();
207
+ let I = 0;
208
+ function E() {
209
+ if (I !== 0)
210
+ return;
211
+ const t = J;
212
+ do {
213
+ try {
214
+ for (; I < U.length; ) {
215
+ const e = U[I];
216
+ I++, F(e), Dt(e.$$);
217
+ }
218
+ } catch (e) {
219
+ throw U.length = 0, I = 0, e;
220
+ }
221
+ for (F(null), U.length = 0, I = 0; it.length; ) it.pop()();
222
+ for (let e = 0; e < O.length; e += 1) {
223
+ const n = O[e];
224
+ et.has(n) || (et.add(n), n());
225
+ }
226
+ O.length = 0;
227
+ } while (U.length);
228
+ for (; ft.length; )
229
+ ft.pop()();
230
+ st = !1, et.clear(), F(t);
231
+ }
232
+ function Dt(t) {
233
+ if (t.fragment !== null) {
234
+ t.update(), H(t.before_update);
235
+ const e = t.dirty;
236
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(X);
237
+ }
238
+ }
239
+ function Nt(t) {
240
+ const e = [], n = [];
241
+ O.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), O = e;
242
+ }
243
+ let q;
244
+ function Bt() {
245
+ return q || (q = Promise.resolve(), q.then(() => {
246
+ q = null;
247
+ })), q;
248
+ }
249
+ function nt(t, e, n) {
250
+ t.dispatchEvent(zt(`${e ? "intro" : "outro"}${n}`));
251
+ }
252
+ const G = /* @__PURE__ */ new Set();
253
+ let L;
254
+ function ue() {
255
+ L = {
256
+ r: 0,
257
+ c: [],
258
+ p: L
259
+ // parent group
260
+ };
261
+ }
262
+ function fe() {
263
+ L.r || H(L.c), L = L.p;
264
+ }
265
+ function qt(t, e) {
266
+ t && t.i && (G.delete(t), t.i(e));
267
+ }
268
+ function he(t, e, n, i) {
269
+ if (t && t.o) {
270
+ if (G.has(t)) return;
271
+ G.add(t), L.c.push(() => {
272
+ G.delete(t), i && (n && t.d(1), i());
273
+ }), t.o(e);
274
+ } else i && i();
275
+ }
276
+ const Ft = { duration: 0 };
277
+ function de(t, e, n, i) {
278
+ let l = e(t, n, { direction: "both" }), c = i ? 0 : 1, o = null, r = null, f = null, p;
279
+ function d() {
280
+ f && Mt(t, f);
281
+ }
282
+ function g(u, w) {
283
+ const m = (
284
+ /** @type {Program['d']} */
285
+ u.b - c
286
+ );
287
+ return w *= Math.abs(m), {
288
+ a: c,
289
+ b: u.b,
290
+ d: m,
291
+ duration: w,
292
+ start: u.start,
293
+ end: u.start + w,
294
+ group: u.group
295
+ };
296
+ }
297
+ function _(u) {
298
+ const {
299
+ delay: w = 0,
300
+ duration: m = 300,
301
+ easing: C = kt,
302
+ tick: A = M,
303
+ css: z
304
+ } = l || Ft, y = {
305
+ start: Ct() + w,
306
+ b: u
307
+ };
308
+ u || (y.group = L, L.r += 1), "inert" in t && (u ? p !== void 0 && (t.inert = p) : (p = /** @type {HTMLElement} */
309
+ t.inert, t.inert = !0)), o || r ? r = y : (z && (d(), f = ut(t, c, u, m, w, C, z)), u && A(0, 1), o = g(y, m), X(() => nt(t, u, "start")), At((S) => {
310
+ if (r && S > r.start && (o = g(r, m), r = null, nt(t, o.b, "start"), z && (d(), f = ut(
311
+ t,
312
+ c,
313
+ o.b,
314
+ o.duration,
315
+ 0,
316
+ C,
317
+ l.css
318
+ ))), o) {
319
+ if (S >= o.end)
320
+ A(c = o.b, 1 - c), nt(t, o.b, "end"), r || (o.b ? d() : --o.group.r || H(o.group.c)), o = null;
321
+ else if (S >= o.start) {
322
+ const P = S - o.start;
323
+ c = o.a + o.d * C(P / o.duration), A(c, 1 - c);
324
+ }
325
+ }
326
+ return !!(o || r);
327
+ }));
328
+ }
329
+ return {
330
+ run(u) {
331
+ rt(l) ? Bt().then(() => {
332
+ l = l({ direction: u ? "in" : "out" }), _(u);
333
+ }) : _(u);
334
+ },
335
+ end() {
336
+ d(), o = r = null;
337
+ }
338
+ };
339
+ }
340
+ function ge(t) {
341
+ return t?.length !== void 0 ? t : Array.from(t);
342
+ }
343
+ function Jt(t, e, n) {
344
+ const { fragment: i, after_update: s } = t.$$;
345
+ i && i.m(e, n), X(() => {
346
+ const l = t.$$.on_mount.map(gt).filter(rt);
347
+ t.$$.on_destroy ? t.$$.on_destroy.push(...l) : H(l), t.$$.on_mount = [];
348
+ }), s.forEach(X);
349
+ }
350
+ function Vt(t, e) {
351
+ const n = t.$$;
352
+ n.fragment !== null && (Nt(n.after_update), H(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
353
+ }
354
+ function Zt(t, e) {
355
+ t.$$.dirty[0] === -1 && (U.push(t), Ht(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
356
+ }
357
+ function Gt(t, e, n, i, s, l, c = null, o = [-1]) {
358
+ const r = J;
359
+ F(t);
360
+ const f = t.$$ = {
361
+ fragment: null,
362
+ ctx: [],
363
+ // state
364
+ props: l,
365
+ update: M,
366
+ not_equal: s,
367
+ bound: at(),
368
+ // lifecycle
369
+ on_mount: [],
370
+ on_destroy: [],
371
+ on_disconnect: [],
372
+ before_update: [],
373
+ after_update: [],
374
+ context: new Map(e.context || (r ? r.$$.context : [])),
375
+ // everything else
376
+ callbacks: at(),
377
+ dirty: o,
378
+ skip_bound: !1,
379
+ root: e.target || r.$$.root
380
+ };
381
+ c && c(f.root);
382
+ let p = !1;
383
+ if (f.ctx = n ? n(t, e.props || {}, (d, g, ..._) => {
384
+ const u = _.length ? _[0] : g;
385
+ return f.ctx && s(f.ctx[d], f.ctx[d] = u) && (!f.skip_bound && f.bound[d] && f.bound[d](u), p && Zt(t, d)), g;
386
+ }) : [], f.update(), p = !0, H(f.before_update), f.fragment = i ? i(f.ctx) : !1, e.target) {
387
+ if (e.hydrate) {
388
+ const d = Rt(e.target);
389
+ f.fragment && f.fragment.l(d), d.forEach(D);
390
+ } else
391
+ f.fragment && f.fragment.c();
392
+ e.intro && qt(t.$$.fragment), Jt(t, e.target, e.anchor), E();
393
+ }
394
+ F(r);
395
+ }
396
+ let pt;
397
+ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
398
+ /** The Svelte component constructor */
399
+ $$ctor;
400
+ /** Slots */
401
+ $$s;
402
+ /** The Svelte component instance */
403
+ $$c;
404
+ /** Whether or not the custom element is connected */
405
+ $$cn = !1;
406
+ /** Component props data */
407
+ $$d = {};
408
+ /** `true` if currently in the process of reflecting component props back to attributes */
409
+ $$r = !1;
410
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
411
+ $$p_d = {};
412
+ /** @type {Record<string, Function[]>} Event listeners */
413
+ $$l = {};
414
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
415
+ $$l_u = /* @__PURE__ */ new Map();
416
+ constructor(t, e, n) {
417
+ super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
418
+ }
419
+ addEventListener(t, e, n) {
420
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
421
+ const i = this.$$c.$on(t, e);
422
+ this.$$l_u.set(e, i);
423
+ }
424
+ super.addEventListener(t, e, n);
425
+ }
426
+ removeEventListener(t, e, n) {
427
+ if (super.removeEventListener(t, e, n), this.$$c) {
428
+ const i = this.$$l_u.get(e);
429
+ i && (i(), this.$$l_u.delete(e));
430
+ }
431
+ }
432
+ async connectedCallback() {
433
+ if (this.$$cn = !0, !this.$$c) {
434
+ let t = function(s) {
435
+ return () => {
436
+ let l;
437
+ return {
438
+ c: function() {
439
+ l = R("slot"), s !== "default" && h(l, "name", s);
440
+ },
441
+ /**
442
+ * @param {HTMLElement} target
443
+ * @param {HTMLElement} [anchor]
444
+ */
445
+ m: function(r, f) {
446
+ Y(r, l, f);
447
+ },
448
+ d: function(r) {
449
+ r && D(l);
450
+ }
451
+ };
452
+ };
453
+ };
454
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
455
+ return;
456
+ const e = {}, n = Pt(this);
457
+ for (const s of this.$$s)
458
+ s in n && (e[s] = [t(s)]);
459
+ for (const s of this.attributes) {
460
+ const l = this.$$g_p(s.name);
461
+ l in this.$$d || (this.$$d[l] = K(l, s.value, this.$$p_d, "toProp"));
462
+ }
463
+ for (const s in this.$$p_d)
464
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
465
+ this.$$c = new this.$$ctor({
466
+ target: this.shadowRoot || this,
467
+ props: {
468
+ ...this.$$d,
469
+ $$slots: e,
470
+ $$scope: {
471
+ ctx: []
472
+ }
473
+ }
474
+ });
475
+ const i = () => {
476
+ this.$$r = !0;
477
+ for (const s in this.$$p_d)
478
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
479
+ const l = K(
480
+ s,
481
+ this.$$d[s],
482
+ this.$$p_d,
483
+ "toAttribute"
484
+ );
485
+ l == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, l);
486
+ }
487
+ this.$$r = !1;
488
+ };
489
+ this.$$c.$$.after_update.push(i), i();
490
+ for (const s in this.$$l)
491
+ for (const l of this.$$l[s]) {
492
+ const c = this.$$c.$on(s, l);
493
+ this.$$l_u.set(l, c);
494
+ }
495
+ this.$$l = {};
496
+ }
497
+ }
498
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
499
+ // and setting attributes through setAttribute etc, this is helpful
500
+ attributeChangedCallback(t, e, n) {
501
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = K(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
502
+ }
503
+ disconnectedCallback() {
504
+ this.$$cn = !1, Promise.resolve().then(() => {
505
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
506
+ });
507
+ }
508
+ $$g_p(t) {
509
+ return Object.keys(this.$$p_d).find(
510
+ (e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
511
+ ) || t;
512
+ }
513
+ });
514
+ function K(t, e, n, i) {
515
+ const s = n[t]?.type;
516
+ if (e = s === "Boolean" && typeof e != "boolean" ? e != null : e, !i || !n[t])
517
+ return e;
518
+ if (i === "toAttribute")
519
+ switch (s) {
520
+ case "Object":
521
+ case "Array":
522
+ return e == null ? null : JSON.stringify(e);
523
+ case "Boolean":
524
+ return e ? "" : null;
525
+ case "Number":
526
+ return e ?? null;
527
+ default:
528
+ return e;
529
+ }
530
+ else
531
+ switch (s) {
532
+ case "Object":
533
+ case "Array":
534
+ return e && JSON.parse(e);
535
+ case "Boolean":
536
+ return e;
537
+ case "Number":
538
+ return e != null ? +e : e;
539
+ default:
540
+ return e;
541
+ }
542
+ }
543
+ function Kt(t, e, n, i, s, l) {
544
+ let c = class extends pt {
545
+ constructor() {
546
+ super(t, n, s), this.$$p_d = e;
547
+ }
548
+ static get observedAttributes() {
549
+ return Object.keys(e).map(
550
+ (o) => (e[o].attribute || o).toLowerCase()
551
+ );
552
+ }
553
+ };
554
+ return Object.keys(e).forEach((o) => {
555
+ Object.defineProperty(c.prototype, o, {
556
+ get() {
557
+ return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
558
+ },
559
+ set(r) {
560
+ r = K(o, r, e), this.$$d[o] = r, this.$$c?.$set({ [o]: r });
561
+ }
562
+ });
563
+ }), i.forEach((o) => {
564
+ Object.defineProperty(c.prototype, o, {
565
+ get() {
566
+ return this.$$c?.[o];
567
+ }
568
+ });
569
+ }), t.element = /** @type {any} */
570
+ c, c;
571
+ }
572
+ class Qt {
573
+ /**
574
+ * ### PRIVATE API
575
+ *
576
+ * Do not use, may change at any time
577
+ *
578
+ * @type {any}
579
+ */
580
+ $$ = void 0;
581
+ /**
582
+ * ### PRIVATE API
583
+ *
584
+ * Do not use, may change at any time
585
+ *
586
+ * @type {any}
587
+ */
588
+ $$set = void 0;
589
+ /** @returns {void} */
590
+ $destroy() {
591
+ Vt(this, 1), this.$destroy = M;
592
+ }
593
+ /**
594
+ * @template {Extract<keyof Events, string>} K
595
+ * @param {K} type
596
+ * @param {((e: Events[K]) => void) | null | undefined} callback
597
+ * @returns {() => void}
598
+ */
599
+ $on(e, n) {
600
+ if (!rt(n))
601
+ return M;
602
+ const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
603
+ return i.push(n), () => {
604
+ const s = i.indexOf(n);
605
+ s !== -1 && i.splice(s, 1);
606
+ };
607
+ }
608
+ /**
609
+ * @param {Partial<Props>} props
610
+ * @returns {void}
611
+ */
612
+ $set(e) {
613
+ this.$$set && !xt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
614
+ }
615
+ }
616
+ const Wt = "4";
617
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Wt);
618
+ const Xt = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4.9999'%20cy='4.9999'%20r='4.9999'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1149)'%3e%3cline%20x1='4.93332'%20y1='4'%20x2='4.93332'%20y2='7.99992'%20stroke='%2359CA00'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%202L7.59699%204.99994H2.40094L4.99896%202Z'%20fill='%2359CA00'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1149'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='translate(1.99902%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Yt = "data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20r='4.9999'%20transform='matrix(1%200%200%20-1%204.9999%205.0001)'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1154)'%3e%3cline%20y1='-0.933315'%20x2='3.99992'%20y2='-0.933315'%20transform='matrix(0%20-1%20-1%200%204%206)'%20stroke='%23CA0000'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%208L7.59699%205.00006H2.40094L4.99896%208Z'%20fill='%23CA0000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1154'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='matrix(1%200%200%20-1%201.99902%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
619
+ function te(t) {
620
+ St(t, "svelte-1njm5xr", ".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}");
621
+ }
622
+ function ht(t) {
623
+ let e;
624
+ return {
625
+ c() {
626
+ e = R("span"), e.innerHTML = '<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"></path></svg>', h(e, "class", "Icon UserIcon"), h(e, "part", "Icon UserIcon");
627
+ },
628
+ m(n, i) {
629
+ Y(n, e, i);
630
+ },
631
+ d(n) {
632
+ n && D(e);
633
+ }
634
+ };
635
+ }
636
+ function dt(t) {
637
+ let e;
638
+ return {
639
+ c() {
640
+ e = R("span"), e.innerHTML = '<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="award" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-award fa-w-12 fa-3x"><path fill="currentColor" d="M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z" class=""></path></svg>', h(e, "class", "Icon PrizeIcon"), h(e, "part", "Icon PrizeIcon");
641
+ },
642
+ m(n, i) {
643
+ Y(n, e, i);
644
+ },
645
+ d(n) {
646
+ n && D(e);
647
+ }
648
+ };
649
+ }
650
+ function ee(t) {
651
+ let e, n, i, s, l, c, o, r, f, p, d, g, _, u, w, m, C, A, z, y, S, P, k = (
652
+ /*showicon*/
653
+ t[2] == "true" && ht()
654
+ ), b = (
655
+ /*showicon*/
656
+ t[2] == "true" && dt()
657
+ );
658
+ return {
659
+ c() {
660
+ e = R("div"), n = R("div"), k && k.c(), i = B(), s = R("span"), l = Z(
661
+ /*rankprefix*/
662
+ t[1]
663
+ ), c = Z(
664
+ /*rankinfo*/
665
+ t[7]
666
+ ), o = B(), r = R("img"), d = B(), g = R("img"), w = B(), m = R("div"), b && b.c(), C = B(), A = R("span"), z = Z(
667
+ /*prize*/
668
+ t[0]
669
+ ), h(r, "part", "Rank_Arror_UP"), h(r, "alt", "Rank Up"), ct(r.src, f = Xt) || h(r, "src", f), h(r, "width", "20"), h(r, "height", "20"), h(r, "class", p = "svg Arrow Up " + /*userRankChanged*/
670
+ (t[5] && /*isRankingUp*/
671
+ t[6] ? "Show" : "Hidden")), h(g, "part", "Rank_Arror_Down"), h(g, "alt", "Rank Down"), ct(g.src, _ = Yt) || h(g, "src", _), h(g, "width", "10"), h(g, "height", "10"), h(g, "class", u = "svg Arrow Down " + /*userRankChanged*/
672
+ (t[5] && !/*isRankingUp*/
673
+ t[6] ? "Show" : "Hidden")), h(s, "class", "RankInfo"), h(s, "part", "RankText"), h(n, "class", "RankSec"), h(n, "part", "Rank"), h(A, "class", "RankInfo UserPrize"), h(A, "part", "PrizeText"), h(m, "class", y = /*displayin*/
674
+ t[3] + " PrizeSec"), h(m, "part", "Prize"), h(e, "class", S = /*displayin*/
675
+ t[3] + " casino-tournaments-rank"), h(e, "part", P = /*displayin*/
676
+ t[3] + " casino-tournaments-rank");
677
+ },
678
+ m($, x) {
679
+ Y($, e, x), v(e, n), k && k.m(n, null), v(n, i), v(n, s), v(s, l), v(s, c), v(s, o), v(s, r), v(s, d), v(s, g), v(e, w), v(e, m), b && b.m(m, null), v(m, C), v(m, A), v(A, z), t[14](e);
680
+ },
681
+ p($, [x]) {
682
+ /*showicon*/
683
+ $[2] == "true" ? k || (k = ht(), k.c(), k.m(n, i)) : k && (k.d(1), k = null), x & /*rankprefix*/
684
+ 2 && tt(
685
+ l,
686
+ /*rankprefix*/
687
+ $[1]
688
+ ), x & /*rankinfo*/
689
+ 128 && tt(
690
+ c,
691
+ /*rankinfo*/
692
+ $[7]
693
+ ), x & /*userRankChanged, isRankingUp*/
694
+ 96 && p !== (p = "svg Arrow Up " + /*userRankChanged*/
695
+ ($[5] && /*isRankingUp*/
696
+ $[6] ? "Show" : "Hidden")) && h(r, "class", p), x & /*userRankChanged, isRankingUp*/
697
+ 96 && u !== (u = "svg Arrow Down " + /*userRankChanged*/
698
+ ($[5] && !/*isRankingUp*/
699
+ $[6] ? "Show" : "Hidden")) && h(g, "class", u), /*showicon*/
700
+ $[2] == "true" ? b || (b = dt(), b.c(), b.m(m, C)) : b && (b.d(1), b = null), x & /*prize*/
701
+ 1 && tt(
702
+ z,
703
+ /*prize*/
704
+ $[0]
705
+ ), x & /*displayin*/
706
+ 8 && y !== (y = /*displayin*/
707
+ $[3] + " PrizeSec") && h(m, "class", y), x & /*displayin*/
708
+ 8 && S !== (S = /*displayin*/
709
+ $[3] + " casino-tournaments-rank") && h(e, "class", S), x & /*displayin*/
710
+ 8 && P !== (P = /*displayin*/
711
+ $[3] + " casino-tournaments-rank") && h(e, "part", P);
712
+ },
713
+ i: M,
714
+ o: M,
715
+ d($) {
716
+ $ && D(e), k && k.d(), b && b.d(), t[14](null);
717
+ }
718
+ };
719
+ }
720
+ function ne(t, e, n) {
721
+ let { rankprefix: i = "#" } = e, { showicon: s = "true" } = e, { tournamentid: l = "" } = e, { overallrank: c = "0" } = e, { showoverallrank: o = "true" } = e, { userrank: r = "0" } = e, { prize: f = "PrizeName" } = e, { displayin: p = "row" } = e, { clientstyling: d = "" } = e, { clientstylingurl: g = "" } = e, _, u, w = !1, m = !0, C, A, z, y, S = "";
722
+ const P = (a) => {
723
+ a.data && a.data.type == `TournamentRankInfo_${l}` && (k(a.data.rankInfo), x());
724
+ }, k = (a) => {
725
+ let N = (T) => {
726
+ n(9, r = T.rank), n(8, c = T.overallRank), n(0, f = T.prize);
727
+ };
728
+ if (!y) {
729
+ y = u, N(a);
730
+ return;
731
+ }
732
+ u && (n(5, w = y != a.rank), n(6, m = y > a.rank), C = (/* @__PURE__ */ new Date()).getTime(), z = setTimeout(
733
+ () => {
734
+ A = (/* @__PURE__ */ new Date()).getTime(), (A - C) / 1e3 > 4 && n(5, w = !1), y = u;
735
+ },
736
+ 5e3
737
+ ), N(a));
738
+ }, b = () => {
739
+ let a = document.createElement("style");
740
+ a.innerHTML = d, _.appendChild(a);
741
+ }, $ = () => {
742
+ let a = new URL(g), N = document.createElement("style");
743
+ fetch(a.href).then((T) => T.text()).then((T) => {
744
+ N.innerHTML = T, setTimeout(
745
+ () => {
746
+ _.appendChild(N);
747
+ },
748
+ 1
749
+ ), setTimeout(
750
+ () => {
751
+ },
752
+ 500
753
+ );
754
+ });
755
+ }, x = () => {
756
+ n(7, S = o == "true" ? `${+r == 0 ? "-" : r || "-"}/${+c == 0 ? "-" : c}` : r);
757
+ };
758
+ jt(() => (u = r == null ? void 0 : parseInt(r), y = u, n(9, r = r ?? "-"), window.addEventListener("message", P, !0), x(), () => {
759
+ window.removeEventListener("message", P), clearTimeout(z);
760
+ }));
761
+ function yt(a) {
762
+ it[a ? "unshift" : "push"](() => {
763
+ _ = a, n(4, _);
764
+ });
765
+ }
766
+ return t.$$set = (a) => {
767
+ "rankprefix" in a && n(1, i = a.rankprefix), "showicon" in a && n(2, s = a.showicon), "tournamentid" in a && n(10, l = a.tournamentid), "overallrank" in a && n(8, c = a.overallrank), "showoverallrank" in a && n(11, o = a.showoverallrank), "userrank" in a && n(9, r = a.userrank), "prize" in a && n(0, f = a.prize), "displayin" in a && n(3, p = a.displayin), "clientstyling" in a && n(12, d = a.clientstyling), "clientstylingurl" in a && n(13, g = a.clientstylingurl);
768
+ }, t.$$.update = () => {
769
+ t.$$.dirty & /*customStylingContainer, clientstyling*/
770
+ 4112 && _ && d && b(), t.$$.dirty & /*customStylingContainer, clientstylingurl*/
771
+ 8208 && _ && g && $(), t.$$.dirty & /*userrank*/
772
+ 512 && (u = parseInt(r)), t.$$.dirty & /*userrank*/
773
+ 512 && r && x(), t.$$.dirty & /*overallrank*/
774
+ 256 && c && x();
775
+ }, [
776
+ f,
777
+ i,
778
+ s,
779
+ p,
780
+ _,
781
+ w,
782
+ m,
783
+ S,
784
+ c,
785
+ r,
786
+ l,
787
+ o,
788
+ d,
789
+ g,
790
+ yt
791
+ ];
792
+ }
793
+ class wt extends Qt {
794
+ constructor(e) {
795
+ super(), Gt(
796
+ this,
797
+ e,
798
+ ne,
799
+ ee,
800
+ bt,
801
+ {
802
+ rankprefix: 1,
803
+ showicon: 2,
804
+ tournamentid: 10,
805
+ overallrank: 8,
806
+ showoverallrank: 11,
807
+ userrank: 9,
808
+ prize: 0,
809
+ displayin: 3,
810
+ clientstyling: 12,
811
+ clientstylingurl: 13
812
+ },
813
+ te
814
+ );
815
+ }
816
+ get rankprefix() {
817
+ return this.$$.ctx[1];
818
+ }
819
+ set rankprefix(e) {
820
+ this.$$set({ rankprefix: e }), E();
821
+ }
822
+ get showicon() {
823
+ return this.$$.ctx[2];
824
+ }
825
+ set showicon(e) {
826
+ this.$$set({ showicon: e }), E();
827
+ }
828
+ get tournamentid() {
829
+ return this.$$.ctx[10];
830
+ }
831
+ set tournamentid(e) {
832
+ this.$$set({ tournamentid: e }), E();
833
+ }
834
+ get overallrank() {
835
+ return this.$$.ctx[8];
836
+ }
837
+ set overallrank(e) {
838
+ this.$$set({ overallrank: e }), E();
839
+ }
840
+ get showoverallrank() {
841
+ return this.$$.ctx[11];
842
+ }
843
+ set showoverallrank(e) {
844
+ this.$$set({ showoverallrank: e }), E();
845
+ }
846
+ get userrank() {
847
+ return this.$$.ctx[9];
848
+ }
849
+ set userrank(e) {
850
+ this.$$set({ userrank: e }), E();
851
+ }
852
+ get prize() {
853
+ return this.$$.ctx[0];
854
+ }
855
+ set prize(e) {
856
+ this.$$set({ prize: e }), E();
857
+ }
858
+ get displayin() {
859
+ return this.$$.ctx[3];
860
+ }
861
+ set displayin(e) {
862
+ this.$$set({ displayin: e }), E();
863
+ }
864
+ get clientstyling() {
865
+ return this.$$.ctx[12];
866
+ }
867
+ set clientstyling(e) {
868
+ this.$$set({ clientstyling: e }), E();
869
+ }
870
+ get clientstylingurl() {
871
+ return this.$$.ctx[13];
872
+ }
873
+ set clientstylingurl(e) {
874
+ this.$$set({ clientstylingurl: e }), E();
875
+ }
876
+ }
877
+ Kt(wt, { rankprefix: {}, showicon: {}, tournamentid: {}, overallrank: {}, showoverallrank: {}, userrank: {}, prize: {}, displayin: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
878
+ const me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
879
+ __proto__: null,
880
+ default: wt
881
+ }, Symbol.toStringTag, { value: "Module" }));
882
+ export {
883
+ ce as A,
884
+ tt as B,
885
+ ge as C,
886
+ X as D,
887
+ de as E,
888
+ se as F,
889
+ ue as G,
890
+ it as H,
891
+ me as I,
892
+ Qt as S,
893
+ bt as a,
894
+ rt as b,
895
+ Kt as c,
896
+ Gt as d,
897
+ St as e,
898
+ E as f,
899
+ R as g,
900
+ re as h,
901
+ kt as i,
902
+ B as j,
903
+ h as k,
904
+ Y as l,
905
+ v as m,
906
+ M as n,
907
+ oe as o,
908
+ he as p,
909
+ fe as q,
910
+ H as r,
911
+ vt as s,
912
+ qt as t,
913
+ D as u,
914
+ ie as v,
915
+ jt as w,
916
+ ae as x,
917
+ Z as y,
918
+ le as z
919
+ };