@everymatrix/casino-tournaments-slider-controller 1.44.0 → 1.45.2

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