@everymatrix/casino-tournaments-rank 1.76.3 → 1.76.4

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.
@@ -15,16 +15,16 @@ var it = (e, t, n) => new Promise((i, r) => {
15
15
  var c = (s) => {
16
16
  try {
17
17
  f(n.next(s));
18
- } catch (l) {
19
- r(l);
18
+ } catch (o) {
19
+ r(o);
20
20
  }
21
- }, o = (s) => {
21
+ }, l = (s) => {
22
22
  try {
23
23
  f(n.throw(s));
24
- } catch (l) {
25
- r(l);
24
+ } catch (o) {
25
+ r(o);
26
26
  }
27
- }, f = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(c, o);
27
+ }, f = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(c, l);
28
28
  f((n = n.apply(e, t)).next());
29
29
  });
30
30
  function j() {
@@ -190,10 +190,10 @@ function Mt(e, t) {
190
190
  function Tt(e, t) {
191
191
  e.$$.dirty[0] === -1 && (T.push(e), Ct(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
192
192
  }
193
- function Ut(e, t, n, i, r, c, o = null, f = [-1]) {
193
+ function Ut(e, t, n, i, r, c, l = null, f = [-1]) {
194
194
  const s = D;
195
195
  H(e);
196
- const l = e.$$ = {
196
+ const o = e.$$ = {
197
197
  fragment: null,
198
198
  ctx: [],
199
199
  // state
@@ -214,17 +214,17 @@ function Ut(e, t, n, i, r, c, o = null, f = [-1]) {
214
214
  skip_bound: !1,
215
215
  root: t.target || s.$$.root
216
216
  };
217
- o && o(l.root);
217
+ l && l(o.root);
218
218
  let _ = !1;
219
- if (l.ctx = n(e, t.props || {}, (p, d, ...A) => {
219
+ if (o.ctx = n ? n(e, t.props || {}, (p, d, ...A) => {
220
220
  const g = A.length ? A[0] : d;
221
- return l.ctx && r(l.ctx[p], l.ctx[p] = g) && (!l.skip_bound && l.bound[p] && l.bound[p](g), _ && Tt(e, p)), d;
222
- }), l.update(), _ = !0, J(l.before_update), l.fragment = i(l.ctx), t.target) {
221
+ return o.ctx && r(o.ctx[p], o.ctx[p] = g) && (!o.skip_bound && o.bound[p] && o.bound[p](g), _ && Tt(e, p)), d;
222
+ }) : [], o.update(), _ = !0, J(o.before_update), o.fragment = i ? i(o.ctx) : !1, t.target) {
223
223
  if (t.hydrate) {
224
224
  const p = bt(t.target);
225
- l.fragment && l.fragment.l(p), p.forEach(O);
225
+ o.fragment && o.fragment.l(p), p.forEach(O);
226
226
  } else
227
- l.fragment && l.fragment.c();
227
+ o.fragment && o.fragment.c();
228
228
  t.intro && Lt(e.$$.fragment), Pt(e, t.target, t.anchor), y();
229
229
  }
230
230
  H(s);
@@ -271,20 +271,20 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
271
271
  if (this.$$cn = !0, !this.$$c) {
272
272
  let t = function(c) {
273
273
  return () => {
274
- let o;
274
+ let l;
275
275
  return {
276
276
  c: function() {
277
- o = S("slot"), c !== "default" && u(o, "name", c);
277
+ l = S("slot"), c !== "default" && u(l, "name", c);
278
278
  },
279
279
  /**
280
280
  * @param {HTMLElement} target
281
281
  * @param {HTMLElement} [anchor]
282
282
  */
283
- m: function(l, _) {
284
- V(l, o, _);
283
+ m: function(o, _) {
284
+ V(o, l, _);
285
285
  },
286
- d: function(l) {
287
- l && O(o);
286
+ d: function(o) {
287
+ o && O(l);
288
288
  }
289
289
  };
290
290
  };
@@ -295,8 +295,8 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
295
295
  for (const c of this.$$s)
296
296
  c in i && (n[c] = [t(c)]);
297
297
  for (const c of this.attributes) {
298
- const o = this.$$g_p(c.name);
299
- o in this.$$d || (this.$$d[o] = F(o, c.value, this.$$p_d, "toProp"));
298
+ const l = this.$$g_p(c.name);
299
+ l in this.$$d || (this.$$d[l] = F(l, c.value, this.$$p_d, "toProp"));
300
300
  }
301
301
  for (const c in this.$$p_d)
302
302
  !(c in this.$$d) && this[c] !== void 0 && (this.$$d[c] = this[c], delete this[c]);
@@ -313,21 +313,21 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
313
313
  this.$$r = !0;
314
314
  for (const c in this.$$p_d)
315
315
  if (this.$$d[c] = this.$$c.$$.ctx[this.$$c.$$.props[c]], this.$$p_d[c].reflect) {
316
- const o = F(
316
+ const l = F(
317
317
  c,
318
318
  this.$$d[c],
319
319
  this.$$p_d,
320
320
  "toAttribute"
321
321
  );
322
- o == null ? this.removeAttribute(this.$$p_d[c].attribute || c) : this.setAttribute(this.$$p_d[c].attribute || c, o);
322
+ l == null ? this.removeAttribute(this.$$p_d[c].attribute || c) : this.setAttribute(this.$$p_d[c].attribute || c, l);
323
323
  }
324
324
  this.$$r = !1;
325
325
  };
326
326
  this.$$c.$$.after_update.push(r), r();
327
327
  for (const c in this.$$l)
328
- for (const o of this.$$l[c]) {
329
- const f = this.$$c.$on(c, o);
330
- this.$$l_u.set(o, f);
328
+ for (const l of this.$$l[c]) {
329
+ const f = this.$$c.$on(c, l);
330
+ this.$$l_u.set(l, f);
331
331
  }
332
332
  this.$$l = {};
333
333
  }
@@ -381,7 +381,7 @@ function F(e, t, n, i) {
381
381
  }
382
382
  }
383
383
  function It(e, t, n, i, r, c) {
384
- let o = class extends ft {
384
+ let l = class extends ft {
385
385
  constructor() {
386
386
  super(e, n, r), this.$$p_d = t;
387
387
  }
@@ -392,24 +392,24 @@ function It(e, t, n, i, r, c) {
392
392
  }
393
393
  };
394
394
  return Object.keys(t).forEach((f) => {
395
- Object.defineProperty(o.prototype, f, {
395
+ Object.defineProperty(l.prototype, f, {
396
396
  get() {
397
397
  return this.$$c && f in this.$$c ? this.$$c[f] : this.$$d[f];
398
398
  },
399
399
  set(s) {
400
- var l;
401
- s = F(f, s, t), this.$$d[f] = s, (l = this.$$c) == null || l.$set({ [f]: s });
400
+ var o;
401
+ s = F(f, s, t), this.$$d[f] = s, (o = this.$$c) == null || o.$set({ [f]: s });
402
402
  }
403
403
  });
404
404
  }), i.forEach((f) => {
405
- Object.defineProperty(o.prototype, f, {
405
+ Object.defineProperty(l.prototype, f, {
406
406
  get() {
407
407
  var s;
408
408
  return (s = this.$$c) == null ? void 0 : s[f];
409
409
  }
410
410
  });
411
411
  }), e.element = /** @type {any} */
412
- o, o;
412
+ l, l;
413
413
  }
414
414
  class Ht {
415
415
  constructor() {
@@ -486,7 +486,7 @@ const Bt = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%20
486
486
  function Ft(e) {
487
487
  pt(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}}");
488
488
  }
489
- function ot(e) {
489
+ function lt(e) {
490
490
  let t;
491
491
  return {
492
492
  c() {
@@ -500,7 +500,7 @@ function ot(e) {
500
500
  }
501
501
  };
502
502
  }
503
- function lt(e) {
503
+ function ot(e) {
504
504
  let t;
505
505
  return {
506
506
  c() {
@@ -515,25 +515,25 @@ function lt(e) {
515
515
  };
516
516
  }
517
517
  function Jt(e) {
518
- let t, n, i, r, c, o, f, s, l, _, p, d, A, g, C, k, L, R, P, z, v, E, $ = (
518
+ let t, n, i, r, c, l, f, s, o, _, p, d, A, g, C, k, L, R, P, z, v, E, $ = (
519
519
  /*showicon*/
520
- e[2] == "true" && ot()
520
+ e[2] == "true" && lt()
521
521
  ), m = (
522
522
  /*showicon*/
523
- e[2] == "true" && lt()
523
+ e[2] == "true" && ot()
524
524
  );
525
525
  return {
526
526
  c() {
527
527
  t = S("div"), n = S("div"), $ && $.c(), i = I(), r = S("span"), c = q(
528
528
  /*rankprefix*/
529
529
  e[1]
530
- ), o = q(
530
+ ), l = q(
531
531
  /*rankinfo*/
532
532
  e[7]
533
533
  ), f = I(), s = S("img"), p = I(), d = S("img"), C = I(), k = S("div"), m && m.c(), L = I(), R = S("span"), P = q(
534
534
  /*prize*/
535
535
  e[0]
536
- ), u(s, "part", "Rank_Arror_UP"), u(s, "alt", "Rank Up"), st(s.src, l = Bt) || u(s, "src", l), u(s, "width", "20"), u(s, "height", "20"), u(s, "class", _ = "svg Arrow Up " + /*userRankChanged*/
536
+ ), u(s, "part", "Rank_Arror_UP"), u(s, "alt", "Rank Up"), st(s.src, o = Bt) || u(s, "src", o), u(s, "width", "20"), u(s, "height", "20"), u(s, "class", _ = "svg Arrow Up " + /*userRankChanged*/
537
537
  (e[5] && /*isRankingUp*/
538
538
  e[6] ? "Show" : "Hidden")), u(d, "part", "Rank_Arror_Down"), u(d, "alt", "Rank Down"), st(d.src, A = qt) || u(d, "src", A), u(d, "width", "10"), u(d, "height", "10"), u(d, "class", g = "svg Arrow Down " + /*userRankChanged*/
539
539
  (e[5] && !/*isRankingUp*/
@@ -543,18 +543,18 @@ function Jt(e) {
543
543
  e[3] + " casino-tournaments-rank");
544
544
  },
545
545
  m(h, b) {
546
- V(h, t, b), w(t, n), $ && $.m(n, null), w(n, i), w(n, r), w(r, c), w(r, o), w(r, f), w(r, s), w(r, p), w(r, d), w(t, C), w(t, k), m && m.m(k, null), w(k, L), w(k, R), w(R, P), e[15](t);
546
+ V(h, t, b), w(t, n), $ && $.m(n, null), w(n, i), w(n, r), w(r, c), w(r, l), w(r, f), w(r, s), w(r, p), w(r, d), w(t, C), w(t, k), m && m.m(k, null), w(k, L), w(k, R), w(R, P), e[15](t);
547
547
  },
548
548
  p(h, [b]) {
549
549
  /*showicon*/
550
- h[2] == "true" ? $ || ($ = ot(), $.c(), $.m(n, i)) : $ && ($.d(1), $ = null), b & /*rankprefix*/
550
+ h[2] == "true" ? $ || ($ = lt(), $.c(), $.m(n, i)) : $ && ($.d(1), $ = null), b & /*rankprefix*/
551
551
  2 && G(
552
552
  c,
553
553
  /*rankprefix*/
554
554
  h[1]
555
555
  ), b & /*rankinfo*/
556
556
  128 && G(
557
- o,
557
+ l,
558
558
  /*rankinfo*/
559
559
  h[7]
560
560
  ), b & /*userRankChanged, isRankingUp*/
@@ -564,7 +564,7 @@ function Jt(e) {
564
564
  96 && g !== (g = "svg Arrow Down " + /*userRankChanged*/
565
565
  (h[5] && !/*isRankingUp*/
566
566
  h[6] ? "Show" : "Hidden")) && u(d, "class", g), /*showicon*/
567
- h[2] == "true" ? m || (m = lt(), m.c(), m.m(k, L)) : m && (m.d(1), m = null), b & /*prize*/
567
+ h[2] == "true" ? m || (m = ot(), m.c(), m.m(k, L)) : m && (m.d(1), m = null), b & /*prize*/
568
568
  1 && G(
569
569
  P,
570
570
  /*prize*/
@@ -585,12 +585,12 @@ function Jt(e) {
585
585
  };
586
586
  }
587
587
  function Vt(e, t, n) {
588
- let { rankprefix: i = "#" } = t, { showicon: r = "true" } = t, { tournamentid: c = "" } = t, { overallrank: o = "0" } = t, { showoverallrank: f = "true" } = t, { userrank: s = "0" } = t, { prize: l = "PrizeName" } = t, { mbsource: _ } = t, { displayin: p = "row" } = t, { clientstyling: d = "" } = t, { clientstylingurl: A = "" } = t, g, C, k = !1, L = !0, R, P, z, v, E = "";
588
+ let { rankprefix: i = "#" } = t, { showicon: r = "true" } = t, { tournamentid: c = "" } = t, { overallrank: l = "0" } = t, { showoverallrank: f = "true" } = t, { userrank: s = "0" } = t, { prize: o = "PrizeName" } = t, { mbsource: _ } = t, { displayin: p = "row" } = t, { clientstyling: d = "" } = t, { clientstylingurl: A = "" } = t, g, C, k = !1, L = !0, R, P, z, v, E = "";
589
589
  const $ = (a) => {
590
590
  a.data && a.data.type == `TournamentRankInfo_${c}` && (m(a.data.rankInfo), h());
591
591
  }, m = (a) => {
592
592
  let Y = (N) => {
593
- n(9, s = N.rank), n(8, o = N.overallRank), n(0, l = N.prize);
593
+ n(9, s = N.rank), n(8, l = N.overallRank), n(0, o = N.prize);
594
594
  };
595
595
  if (!v) {
596
596
  v = C, Y(a);
@@ -603,7 +603,7 @@ function Vt(e, t, n) {
603
603
  5e3
604
604
  ), Y(a));
605
605
  }, h = () => {
606
- n(7, E = f == "true" ? `${+s == 0 ? "-" : s || "-"}/${+o == 0 ? "-" : o}` : s);
606
+ n(7, E = f == "true" ? `${+s == 0 ? "-" : s || "-"}/${+l == 0 ? "-" : l}` : s);
607
607
  };
608
608
  St(() => (C = s == null ? void 0 : parseInt(s), v = C, n(9, s = s == null ? "-" : s), window.addEventListener("message", $, !0), h(), () => {
609
609
  window.removeEventListener("message", $), clearTimeout(z);
@@ -614,7 +614,7 @@ function Vt(e, t, n) {
614
614
  });
615
615
  }
616
616
  return e.$$set = (a) => {
617
- "rankprefix" in a && n(1, i = a.rankprefix), "showicon" in a && n(2, r = a.showicon), "tournamentid" in a && n(10, c = a.tournamentid), "overallrank" in a && n(8, o = a.overallrank), "showoverallrank" in a && n(11, f = a.showoverallrank), "userrank" in a && n(9, s = a.userrank), "prize" in a && n(0, l = a.prize), "mbsource" in a && n(12, _ = a.mbsource), "displayin" in a && n(3, p = a.displayin), "clientstyling" in a && n(13, d = a.clientstyling), "clientstylingurl" in a && n(14, A = a.clientstylingurl);
617
+ "rankprefix" in a && n(1, i = a.rankprefix), "showicon" in a && n(2, r = a.showicon), "tournamentid" in a && n(10, c = a.tournamentid), "overallrank" in a && n(8, l = a.overallrank), "showoverallrank" in a && n(11, f = a.showoverallrank), "userrank" in a && n(9, s = a.userrank), "prize" in a && n(0, o = a.prize), "mbsource" in a && n(12, _ = a.mbsource), "displayin" in a && n(3, p = a.displayin), "clientstyling" in a && n(13, d = a.clientstyling), "clientstylingurl" in a && n(14, A = a.clientstylingurl);
618
618
  }, e.$$.update = () => {
619
619
  e.$$.dirty & /*clientstyling, customStylingContainer*/
620
620
  8208 && d && g && Dt(g, d), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
@@ -622,9 +622,9 @@ function Vt(e, t, n) {
622
622
  4112 && _ && g && Nt(g, `${_}.Style`), e.$$.dirty & /*userrank*/
623
623
  512 && (C = parseInt(s)), e.$$.dirty & /*userrank*/
624
624
  512 && s && h(), e.$$.dirty & /*overallrank*/
625
- 256 && o && h();
625
+ 256 && l && h();
626
626
  }, [
627
- l,
627
+ o,
628
628
  i,
629
629
  r,
630
630
  p,
@@ -632,7 +632,7 @@ function Vt(e, t, n) {
632
632
  k,
633
633
  L,
634
634
  E,
635
- o,
635
+ l,
636
636
  s,
637
637
  c,
638
638
  f,
@@ -0,0 +1 @@
1
+ "use strict";var dt=Object.defineProperty,gt=Object.defineProperties;var $t=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable;var Z=(e,t,n)=>t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))mt.call(t,n)&&Z(e,n,t[n]);if(tt)for(var n of tt(t))wt.call(t,n)&&Z(e,n,t[n]);return e},nt=(e,t)=>gt(e,$t(t));var x=(e,t,n)=>(Z(e,typeof t!="symbol"?t+"":t,n),n);var it=(e,t,n)=>new Promise((i,r)=>{var c=s=>{try{f(n.next(s))}catch(o){r(o)}},l=s=>{try{f(n.throw(s))}catch(o){r(o)}},f=s=>s.done?i(s.value):Promise.resolve(s.value).then(c,l);f((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function j(){}function at(e){return e()}function rt(){return Object.create(null)}function J(e){e.forEach(at)}function ut(e){return typeof e=="function"}function _t(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let B;function st(e,t){return e===t?!0:(B||(B=document.createElement("a")),B.href=t,e===B.href)}function pt(e){return Object.keys(e).length===0}function w(e,t){e.appendChild(t)}function kt(e,t,n){const i=yt(e);if(!i.getElementById(t)){const r=S("style");r.id=t,r.textContent=n,bt(i,r)}}function yt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function bt(e,t){return w(e.head||e,t),t.sheet}function V(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode&&e.parentNode.removeChild(e)}function S(e){return document.createElement(e)}function q(e){return document.createTextNode(e)}function I(){return q(" ")}function u(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function xt(e){return Array.from(e.childNodes)}function G(e,t){t=""+t,e.data!==t&&(e.data=t)}function vt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let O;function H(e){O=e}function St(){if(!O)throw new Error("Function called outside component initialization");return O}function At(e){St().$$.on_mount.push(e)}const T=[],Q=[];let U=[];const ct=[],Ct=Promise.resolve();let W=!1;function Rt(){W||(W=!0,Ct.then(y))}function X(e){U.push(e)}const K=new Set;let M=0;function y(){if(M!==0)return;const e=O;do{try{for(;M<T.length;){const t=T[M];M++,H(t),zt(t.$$)}}catch(t){throw T.length=0,M=0,t}for(H(null),T.length=0,M=0;Q.length;)Q.pop()();for(let t=0;t<U.length;t+=1){const n=U[t];K.has(n)||(K.add(n),n())}U.length=0}while(T.length);for(;ct.length;)ct.pop()();W=!1,K.clear(),H(e)}function zt(e){if(e.fragment!==null){e.update(),J(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(X)}}function Et(e){const t=[],n=[];U.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),U=t}const Lt=new Set;function Pt(e,t){e&&e.i&&(Lt.delete(e),e.i(t))}function Mt(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),X(()=>{const c=e.$$.on_mount.map(at).filter(ut);e.$$.on_destroy?e.$$.on_destroy.push(...c):J(c),e.$$.on_mount=[]}),r.forEach(X)}function Tt(e,t){const n=e.$$;n.fragment!==null&&(Et(n.after_update),J(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ut(e,t){e.$$.dirty[0]===-1&&(T.push(e),Rt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function It(e,t,n,i,r,c,l=null,f=[-1]){const s=O;H(e);const o=e.$$={fragment:null,ctx:[],props:c,update:j,not_equal:r,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(s?s.$$.context:[])),callbacks:rt(),dirty:f,skip_bound:!1,root:t.target||s.$$.root};l&&l(o.root);let _=!1;if(o.ctx=n?n(e,t.props||{},(p,d,...A)=>{const g=A.length?A[0]:d;return o.ctx&&r(o.ctx[p],o.ctx[p]=g)&&(!o.skip_bound&&o.bound[p]&&o.bound[p](g),_&&Ut(e,p)),d}):[],o.update(),_=!0,J(o.before_update),o.fragment=i?i(o.ctx):!1,t.target){if(t.hydrate){const p=xt(t.target);o.fragment&&o.fragment.l(p),p.forEach(D)}else o.fragment&&o.fragment.c();t.intro&&Pt(e.$$.fragment),Mt(e,t.target,t.anchor),y()}H(s)}let ft;typeof HTMLElement=="function"&&(ft=class extends HTMLElement{constructor(t,n,i){super();x(this,"$$ctor");x(this,"$$s");x(this,"$$c");x(this,"$$cn",!1);x(this,"$$d",{});x(this,"$$r",!1);x(this,"$$p_d",{});x(this,"$$l",{});x(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return it(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(c){return()=>{let l;return{c:function(){l=S("slot"),c!=="default"&&u(l,"name",c)},m:function(o,_){V(o,l,_)},d:function(o){o&&D(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=vt(this);for(const c of this.$$s)c in i&&(n[c]=[t(c)]);for(const c of this.attributes){const l=this.$$g_p(c.name);l in this.$$d||(this.$$d[l]=F(l,c.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)!(c in this.$$d)&&this[c]!==void 0&&(this.$$d[c]=this[c],delete this[c]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nt(et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const c in this.$$p_d)if(this.$$d[c]=this.$$c.$$.ctx[this.$$c.$$.props[c]],this.$$p_d[c].reflect){const l=F(c,this.$$d[c],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[c].attribute||c):this.setAttribute(this.$$p_d[c].attribute||c,l)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const c in this.$$l)for(const l of this.$$l[c]){const f=this.$$c.$on(c,l);this.$$l_u.set(l,f)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=F(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function F(e,t,n,i){var c;const r=(c=n[e])==null?void 0:c.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ht(e,t,n,i,r,c){let l=class extends ft{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(f=>(t[f].attribute||f).toLowerCase())}};return Object.keys(t).forEach(f=>{Object.defineProperty(l.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(s){var o;s=F(f,s,t),this.$$d[f]=s,(o=this.$$c)==null||o.$set({[f]:s})}})}),i.forEach(f=>{Object.defineProperty(l.prototype,f,{get(){var s;return(s=this.$$c)==null?void 0:s[f]}})}),e.element=l,l}class jt{constructor(){x(this,"$$");x(this,"$$set")}$destroy(){Tt(this,1),this.$destroy=j}$on(t,n){if(!ut(n))return j;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!pt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ot="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ot);function Dt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Nt(e,t){const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,e&&e.appendChild(r)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Bt(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,r=>{i.innerHTML=r,e&&e.appendChild(i)})}}const qt="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",Ft="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";function Jt(e){kt(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}}")}function lt(e){let t;return{c(){t=S("span"),t.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>',u(t,"class","Icon UserIcon"),u(t,"part","Icon UserIcon")},m(n,i){V(n,t,i)},d(n){n&&D(t)}}}function ot(e){let t;return{c(){t=S("span"),t.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>',u(t,"class","Icon PrizeIcon"),u(t,"part","Icon PrizeIcon")},m(n,i){V(n,t,i)},d(n){n&&D(t)}}}function Vt(e){let t,n,i,r,c,l,f,s,o,_,p,d,A,g,C,k,L,R,P,z,v,E,$=e[2]=="true"&&lt(),m=e[2]=="true"&&ot();return{c(){t=S("div"),n=S("div"),$&&$.c(),i=I(),r=S("span"),c=q(e[1]),l=q(e[7]),f=I(),s=S("img"),p=I(),d=S("img"),C=I(),k=S("div"),m&&m.c(),L=I(),R=S("span"),P=q(e[0]),u(s,"part","Rank_Arror_UP"),u(s,"alt","Rank Up"),st(s.src,o=qt)||u(s,"src",o),u(s,"width","20"),u(s,"height","20"),u(s,"class",_="svg Arrow Up "+(e[5]&&e[6]?"Show":"Hidden")),u(d,"part","Rank_Arror_Down"),u(d,"alt","Rank Down"),st(d.src,A=Ft)||u(d,"src",A),u(d,"width","10"),u(d,"height","10"),u(d,"class",g="svg Arrow Down "+(e[5]&&!e[6]?"Show":"Hidden")),u(r,"class","RankInfo"),u(r,"part","RankText"),u(n,"class","RankSec"),u(n,"part","Rank"),u(R,"class","RankInfo UserPrize"),u(R,"part","PrizeText"),u(k,"class",z=e[3]+" PrizeSec"),u(k,"part","Prize"),u(t,"class",v=e[3]+" casino-tournaments-rank"),u(t,"part",E=e[3]+" casino-tournaments-rank")},m(h,b){V(h,t,b),w(t,n),$&&$.m(n,null),w(n,i),w(n,r),w(r,c),w(r,l),w(r,f),w(r,s),w(r,p),w(r,d),w(t,C),w(t,k),m&&m.m(k,null),w(k,L),w(k,R),w(R,P),e[15](t)},p(h,[b]){h[2]=="true"?$||($=lt(),$.c(),$.m(n,i)):$&&($.d(1),$=null),b&2&&G(c,h[1]),b&128&&G(l,h[7]),b&96&&_!==(_="svg Arrow Up "+(h[5]&&h[6]?"Show":"Hidden"))&&u(s,"class",_),b&96&&g!==(g="svg Arrow Down "+(h[5]&&!h[6]?"Show":"Hidden"))&&u(d,"class",g),h[2]=="true"?m||(m=ot(),m.c(),m.m(k,L)):m&&(m.d(1),m=null),b&1&&G(P,h[0]),b&8&&z!==(z=h[3]+" PrizeSec")&&u(k,"class",z),b&8&&v!==(v=h[3]+" casino-tournaments-rank")&&u(t,"class",v),b&8&&E!==(E=h[3]+" casino-tournaments-rank")&&u(t,"part",E)},i:j,o:j,d(h){h&&D(t),$&&$.d(),m&&m.d(),e[15](null)}}}function Zt(e,t,n){let{rankprefix:i="#"}=t,{showicon:r="true"}=t,{tournamentid:c=""}=t,{overallrank:l="0"}=t,{showoverallrank:f="true"}=t,{userrank:s="0"}=t,{prize:o="PrizeName"}=t,{mbsource:_}=t,{displayin:p="row"}=t,{clientstyling:d=""}=t,{clientstylingurl:A=""}=t,g,C,k=!1,L=!0,R,P,z,v,E="";const $=a=>{a.data&&a.data.type==`TournamentRankInfo_${c}`&&(m(a.data.rankInfo),h())},m=a=>{let Y=N=>{n(9,s=N.rank),n(8,l=N.overallRank),n(0,o=N.prize)};if(!v){v=C,Y(a);return}C&&(n(5,k=v!=a.rank),n(6,L=v>a.rank),R=new Date().getTime(),z=setTimeout(()=>{P=new Date().getTime(),(P-R)/1e3>4&&n(5,k=!1),v=C},5e3),Y(a))},h=()=>{n(7,E=f=="true"?`${+s==0?"-":s||"-"}/${+l==0?"-":l}`:s)};At(()=>(C=s==null?void 0:parseInt(s),v=C,n(9,s=s==null?"-":s),window.addEventListener("message",$,!0),h(),()=>{window.removeEventListener("message",$),clearTimeout(z)}));function b(a){Q[a?"unshift":"push"](()=>{g=a,n(4,g)})}return e.$$set=a=>{"rankprefix"in a&&n(1,i=a.rankprefix),"showicon"in a&&n(2,r=a.showicon),"tournamentid"in a&&n(10,c=a.tournamentid),"overallrank"in a&&n(8,l=a.overallrank),"showoverallrank"in a&&n(11,f=a.showoverallrank),"userrank"in a&&n(9,s=a.userrank),"prize"in a&&n(0,o=a.prize),"mbsource"in a&&n(12,_=a.mbsource),"displayin"in a&&n(3,p=a.displayin),"clientstyling"in a&&n(13,d=a.clientstyling),"clientstylingurl"in a&&n(14,A=a.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&8208&&d&&g&&Dt(g,d),e.$$.dirty&16400&&A&&g&&Nt(g,A),e.$$.dirty&4112&&_&&g&&Bt(g,`${_}.Style`),e.$$.dirty&512&&(C=parseInt(s)),e.$$.dirty&512&&s&&h(),e.$$.dirty&256&&l&&h()},[o,i,r,p,g,k,L,E,l,s,c,f,_,d,A,b]}class ht extends jt{constructor(t){super(),It(this,t,Zt,Vt,_t,{rankprefix:1,showicon:2,tournamentid:10,overallrank:8,showoverallrank:11,userrank:9,prize:0,mbsource:12,displayin:3,clientstyling:13,clientstylingurl:14},Jt)}get rankprefix(){return this.$$.ctx[1]}set rankprefix(t){this.$$set({rankprefix:t}),y()}get showicon(){return this.$$.ctx[2]}set showicon(t){this.$$set({showicon:t}),y()}get tournamentid(){return this.$$.ctx[10]}set tournamentid(t){this.$$set({tournamentid:t}),y()}get overallrank(){return this.$$.ctx[8]}set overallrank(t){this.$$set({overallrank:t}),y()}get showoverallrank(){return this.$$.ctx[11]}set showoverallrank(t){this.$$set({showoverallrank:t}),y()}get userrank(){return this.$$.ctx[9]}set userrank(t){this.$$set({userrank:t}),y()}get prize(){return this.$$.ctx[0]}set prize(t){this.$$set({prize:t}),y()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),y()}get displayin(){return this.$$.ctx[3]}set displayin(t){this.$$set({displayin:t}),y()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),y()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),y()}}Ht(ht,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},showoverallrank:{},userrank:{},prize:{},mbsource:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=ht;
@@ -187,10 +187,10 @@ function vt(e, t, n, r, i, l, f = null, a = [-1]) {
187
187
  };
188
188
  f && f(u.root);
189
189
  let y = !1;
190
- if (u.ctx = n(e, t.props || {}, (_, d, ...S) => {
190
+ if (u.ctx = n ? n(e, t.props || {}, (_, d, ...S) => {
191
191
  const g = S.length ? S[0] : d;
192
192
  return u.ctx && i(u.ctx[_], u.ctx[_] = g) && (!u.skip_bound && u.bound[_] && u.bound[_](g), y && xt(e, _)), d;
193
- }), u.update(), y = !0, F(u.before_update), u.fragment = r(u.ctx), t.target) {
193
+ }) : [], u.update(), y = !0, F(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
194
194
  if (t.hydrate) {
195
195
  const _ = ft(t.target);
196
196
  u.fragment && u.fragment.l(_), _.forEach(D);
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsRank-D_ebUS7l.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-rank")&&customElements.define("casino-tournaments-rank",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsRank-DjmXz_3C.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-rank")&&customElements.define("casino-tournaments-rank",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoTournamentsRank-Cmc7YScB.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoTournamentsRank-CtMtyEbG.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-tournaments-rank") && customElements.define("casino-tournaments-rank", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoTournamentsRank-qyxMOF5v.js";
1
+ import { C as s } from "../components/CasinoTournamentsRank-DwQElvz9.js";
2
2
  function a(n) {
3
3
  return function(...t) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-rank",
3
- "version": "1.76.3",
3
+ "version": "1.76.4",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-tournaments-rank.cjs",
6
6
  "module": "esnext/casino-tournaments-rank.js",
@@ -1 +0,0 @@
1
- "use strict";var dt=Object.defineProperty,gt=Object.defineProperties;var $t=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable;var Z=(e,t,n)=>t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))mt.call(t,n)&&Z(e,n,t[n]);if(tt)for(var n of tt(t))wt.call(t,n)&&Z(e,n,t[n]);return e},nt=(e,t)=>gt(e,$t(t));var x=(e,t,n)=>(Z(e,typeof t!="symbol"?t+"":t,n),n);var it=(e,t,n)=>new Promise((i,r)=>{var c=s=>{try{f(n.next(s))}catch(l){r(l)}},o=s=>{try{f(n.throw(s))}catch(l){r(l)}},f=s=>s.done?i(s.value):Promise.resolve(s.value).then(c,o);f((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function j(){}function at(e){return e()}function rt(){return Object.create(null)}function J(e){e.forEach(at)}function ut(e){return typeof e=="function"}function _t(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let B;function st(e,t){return e===t?!0:(B||(B=document.createElement("a")),B.href=t,e===B.href)}function pt(e){return Object.keys(e).length===0}function w(e,t){e.appendChild(t)}function kt(e,t,n){const i=yt(e);if(!i.getElementById(t)){const r=S("style");r.id=t,r.textContent=n,bt(i,r)}}function yt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function bt(e,t){return w(e.head||e,t),t.sheet}function V(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode&&e.parentNode.removeChild(e)}function S(e){return document.createElement(e)}function q(e){return document.createTextNode(e)}function I(){return q(" ")}function u(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function xt(e){return Array.from(e.childNodes)}function G(e,t){t=""+t,e.data!==t&&(e.data=t)}function vt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let O;function H(e){O=e}function St(){if(!O)throw new Error("Function called outside component initialization");return O}function At(e){St().$$.on_mount.push(e)}const T=[],Q=[];let U=[];const ct=[],Ct=Promise.resolve();let W=!1;function Rt(){W||(W=!0,Ct.then(y))}function X(e){U.push(e)}const K=new Set;let M=0;function y(){if(M!==0)return;const e=O;do{try{for(;M<T.length;){const t=T[M];M++,H(t),zt(t.$$)}}catch(t){throw T.length=0,M=0,t}for(H(null),T.length=0,M=0;Q.length;)Q.pop()();for(let t=0;t<U.length;t+=1){const n=U[t];K.has(n)||(K.add(n),n())}U.length=0}while(T.length);for(;ct.length;)ct.pop()();W=!1,K.clear(),H(e)}function zt(e){if(e.fragment!==null){e.update(),J(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(X)}}function Et(e){const t=[],n=[];U.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),U=t}const Lt=new Set;function Pt(e,t){e&&e.i&&(Lt.delete(e),e.i(t))}function Mt(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),X(()=>{const c=e.$$.on_mount.map(at).filter(ut);e.$$.on_destroy?e.$$.on_destroy.push(...c):J(c),e.$$.on_mount=[]}),r.forEach(X)}function Tt(e,t){const n=e.$$;n.fragment!==null&&(Et(n.after_update),J(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ut(e,t){e.$$.dirty[0]===-1&&(T.push(e),Rt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function It(e,t,n,i,r,c,o=null,f=[-1]){const s=O;H(e);const l=e.$$={fragment:null,ctx:[],props:c,update:j,not_equal:r,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(s?s.$$.context:[])),callbacks:rt(),dirty:f,skip_bound:!1,root:t.target||s.$$.root};o&&o(l.root);let _=!1;if(l.ctx=n(e,t.props||{},(p,d,...A)=>{const g=A.length?A[0]:d;return l.ctx&&r(l.ctx[p],l.ctx[p]=g)&&(!l.skip_bound&&l.bound[p]&&l.bound[p](g),_&&Ut(e,p)),d}),l.update(),_=!0,J(l.before_update),l.fragment=i(l.ctx),t.target){if(t.hydrate){const p=xt(t.target);l.fragment&&l.fragment.l(p),p.forEach(D)}else l.fragment&&l.fragment.c();t.intro&&Pt(e.$$.fragment),Mt(e,t.target,t.anchor),y()}H(s)}let ft;typeof HTMLElement=="function"&&(ft=class extends HTMLElement{constructor(t,n,i){super();x(this,"$$ctor");x(this,"$$s");x(this,"$$c");x(this,"$$cn",!1);x(this,"$$d",{});x(this,"$$r",!1);x(this,"$$p_d",{});x(this,"$$l",{});x(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return it(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(c){return()=>{let o;return{c:function(){o=S("slot"),c!=="default"&&u(o,"name",c)},m:function(l,_){V(l,o,_)},d:function(l){l&&D(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=vt(this);for(const c of this.$$s)c in i&&(n[c]=[t(c)]);for(const c of this.attributes){const o=this.$$g_p(c.name);o in this.$$d||(this.$$d[o]=F(o,c.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)!(c in this.$$d)&&this[c]!==void 0&&(this.$$d[c]=this[c],delete this[c]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nt(et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const c in this.$$p_d)if(this.$$d[c]=this.$$c.$$.ctx[this.$$c.$$.props[c]],this.$$p_d[c].reflect){const o=F(c,this.$$d[c],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[c].attribute||c):this.setAttribute(this.$$p_d[c].attribute||c,o)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const c in this.$$l)for(const o of this.$$l[c]){const f=this.$$c.$on(c,o);this.$$l_u.set(o,f)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=F(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function F(e,t,n,i){var c;const r=(c=n[e])==null?void 0:c.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ht(e,t,n,i,r,c){let o=class extends ft{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(f=>(t[f].attribute||f).toLowerCase())}};return Object.keys(t).forEach(f=>{Object.defineProperty(o.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(s){var l;s=F(f,s,t),this.$$d[f]=s,(l=this.$$c)==null||l.$set({[f]:s})}})}),i.forEach(f=>{Object.defineProperty(o.prototype,f,{get(){var s;return(s=this.$$c)==null?void 0:s[f]}})}),e.element=o,o}class jt{constructor(){x(this,"$$");x(this,"$$set")}$destroy(){Tt(this,1),this.$destroy=j}$on(t,n){if(!ut(n))return j;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!pt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ot="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ot);function Dt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Nt(e,t){const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,e&&e.appendChild(r)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Bt(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,r=>{i.innerHTML=r,e&&e.appendChild(i)})}}const qt="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",Ft="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";function Jt(e){kt(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}}")}function ot(e){let t;return{c(){t=S("span"),t.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>',u(t,"class","Icon UserIcon"),u(t,"part","Icon UserIcon")},m(n,i){V(n,t,i)},d(n){n&&D(t)}}}function lt(e){let t;return{c(){t=S("span"),t.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>',u(t,"class","Icon PrizeIcon"),u(t,"part","Icon PrizeIcon")},m(n,i){V(n,t,i)},d(n){n&&D(t)}}}function Vt(e){let t,n,i,r,c,o,f,s,l,_,p,d,A,g,C,k,L,R,P,z,v,E,$=e[2]=="true"&&ot(),m=e[2]=="true"&&lt();return{c(){t=S("div"),n=S("div"),$&&$.c(),i=I(),r=S("span"),c=q(e[1]),o=q(e[7]),f=I(),s=S("img"),p=I(),d=S("img"),C=I(),k=S("div"),m&&m.c(),L=I(),R=S("span"),P=q(e[0]),u(s,"part","Rank_Arror_UP"),u(s,"alt","Rank Up"),st(s.src,l=qt)||u(s,"src",l),u(s,"width","20"),u(s,"height","20"),u(s,"class",_="svg Arrow Up "+(e[5]&&e[6]?"Show":"Hidden")),u(d,"part","Rank_Arror_Down"),u(d,"alt","Rank Down"),st(d.src,A=Ft)||u(d,"src",A),u(d,"width","10"),u(d,"height","10"),u(d,"class",g="svg Arrow Down "+(e[5]&&!e[6]?"Show":"Hidden")),u(r,"class","RankInfo"),u(r,"part","RankText"),u(n,"class","RankSec"),u(n,"part","Rank"),u(R,"class","RankInfo UserPrize"),u(R,"part","PrizeText"),u(k,"class",z=e[3]+" PrizeSec"),u(k,"part","Prize"),u(t,"class",v=e[3]+" casino-tournaments-rank"),u(t,"part",E=e[3]+" casino-tournaments-rank")},m(h,b){V(h,t,b),w(t,n),$&&$.m(n,null),w(n,i),w(n,r),w(r,c),w(r,o),w(r,f),w(r,s),w(r,p),w(r,d),w(t,C),w(t,k),m&&m.m(k,null),w(k,L),w(k,R),w(R,P),e[15](t)},p(h,[b]){h[2]=="true"?$||($=ot(),$.c(),$.m(n,i)):$&&($.d(1),$=null),b&2&&G(c,h[1]),b&128&&G(o,h[7]),b&96&&_!==(_="svg Arrow Up "+(h[5]&&h[6]?"Show":"Hidden"))&&u(s,"class",_),b&96&&g!==(g="svg Arrow Down "+(h[5]&&!h[6]?"Show":"Hidden"))&&u(d,"class",g),h[2]=="true"?m||(m=lt(),m.c(),m.m(k,L)):m&&(m.d(1),m=null),b&1&&G(P,h[0]),b&8&&z!==(z=h[3]+" PrizeSec")&&u(k,"class",z),b&8&&v!==(v=h[3]+" casino-tournaments-rank")&&u(t,"class",v),b&8&&E!==(E=h[3]+" casino-tournaments-rank")&&u(t,"part",E)},i:j,o:j,d(h){h&&D(t),$&&$.d(),m&&m.d(),e[15](null)}}}function Zt(e,t,n){let{rankprefix:i="#"}=t,{showicon:r="true"}=t,{tournamentid:c=""}=t,{overallrank:o="0"}=t,{showoverallrank:f="true"}=t,{userrank:s="0"}=t,{prize:l="PrizeName"}=t,{mbsource:_}=t,{displayin:p="row"}=t,{clientstyling:d=""}=t,{clientstylingurl:A=""}=t,g,C,k=!1,L=!0,R,P,z,v,E="";const $=a=>{a.data&&a.data.type==`TournamentRankInfo_${c}`&&(m(a.data.rankInfo),h())},m=a=>{let Y=N=>{n(9,s=N.rank),n(8,o=N.overallRank),n(0,l=N.prize)};if(!v){v=C,Y(a);return}C&&(n(5,k=v!=a.rank),n(6,L=v>a.rank),R=new Date().getTime(),z=setTimeout(()=>{P=new Date().getTime(),(P-R)/1e3>4&&n(5,k=!1),v=C},5e3),Y(a))},h=()=>{n(7,E=f=="true"?`${+s==0?"-":s||"-"}/${+o==0?"-":o}`:s)};At(()=>(C=s==null?void 0:parseInt(s),v=C,n(9,s=s==null?"-":s),window.addEventListener("message",$,!0),h(),()=>{window.removeEventListener("message",$),clearTimeout(z)}));function b(a){Q[a?"unshift":"push"](()=>{g=a,n(4,g)})}return e.$$set=a=>{"rankprefix"in a&&n(1,i=a.rankprefix),"showicon"in a&&n(2,r=a.showicon),"tournamentid"in a&&n(10,c=a.tournamentid),"overallrank"in a&&n(8,o=a.overallrank),"showoverallrank"in a&&n(11,f=a.showoverallrank),"userrank"in a&&n(9,s=a.userrank),"prize"in a&&n(0,l=a.prize),"mbsource"in a&&n(12,_=a.mbsource),"displayin"in a&&n(3,p=a.displayin),"clientstyling"in a&&n(13,d=a.clientstyling),"clientstylingurl"in a&&n(14,A=a.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&8208&&d&&g&&Dt(g,d),e.$$.dirty&16400&&A&&g&&Nt(g,A),e.$$.dirty&4112&&_&&g&&Bt(g,`${_}.Style`),e.$$.dirty&512&&(C=parseInt(s)),e.$$.dirty&512&&s&&h(),e.$$.dirty&256&&o&&h()},[l,i,r,p,g,k,L,E,o,s,c,f,_,d,A,b]}class ht extends jt{constructor(t){super(),It(this,t,Zt,Vt,_t,{rankprefix:1,showicon:2,tournamentid:10,overallrank:8,showoverallrank:11,userrank:9,prize:0,mbsource:12,displayin:3,clientstyling:13,clientstylingurl:14},Jt)}get rankprefix(){return this.$$.ctx[1]}set rankprefix(t){this.$$set({rankprefix:t}),y()}get showicon(){return this.$$.ctx[2]}set showicon(t){this.$$set({showicon:t}),y()}get tournamentid(){return this.$$.ctx[10]}set tournamentid(t){this.$$set({tournamentid:t}),y()}get overallrank(){return this.$$.ctx[8]}set overallrank(t){this.$$set({overallrank:t}),y()}get showoverallrank(){return this.$$.ctx[11]}set showoverallrank(t){this.$$set({showoverallrank:t}),y()}get userrank(){return this.$$.ctx[9]}set userrank(t){this.$$set({userrank:t}),y()}get prize(){return this.$$.ctx[0]}set prize(t){this.$$set({prize:t}),y()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),y()}get displayin(){return this.$$.ctx[3]}set displayin(t){this.$$set({displayin:t}),y()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),y()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),y()}}Ht(ht,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},showoverallrank:{},userrank:{},prize:{},mbsource:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=ht;