@everymatrix/casino-tournaments-rank 1.0.69 → 1.0.71

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 @@
1
+ "use strict";var ge=Object.defineProperty,$e=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var te=Object.getOwnPropertySymbols;var pe=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var Q=(t,e,n)=>e in t?ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ne=(t,e)=>{for(var n in e||(e={}))pe.call(e,n)&&Q(t,n,e[n]);if(te)for(var n of te(e))_e.call(e,n)&&Q(t,n,e[n]);return t},ie=(t,e)=>$e(t,me(e));var k=(t,e,n)=>Q(t,typeof e!="symbol"?e+"":e,n);var se=(t,e,n)=>new Promise((r,i)=>{var s=f=>{try{l(n.next(f))}catch(c){i(c)}},o=f=>{try{l(n.throw(f))}catch(c){i(c)}},l=f=>f.done?r(f.value):Promise.resolve(f.value).then(s,o);l((n=n.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function B(){}function ue(t){return t()}function re(){return Object.create(null)}function G(t){t.forEach(ue)}function fe(t){return typeof t=="function"}function we(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let J;function ae(t,e){return t===e?!0:(J||(J=document.createElement("a")),J.href=e,t===J.href)}function ve(t){return Object.keys(t).length===0}function $(t,e){t.appendChild(e)}function ye(t,e,n){const r=ke(t);if(!r.getElementById(e)){const i=C("style");i.id=e,i.textContent=n,be(r,i)}}function ke(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function be(t,e){return $(t.head||t,e),e.sheet}function K(t,e,n){t.insertBefore(e,n||null)}function F(t){t.parentNode&&t.parentNode.removeChild(t)}function C(t){return document.createElement(t)}function T(t){return document.createTextNode(t)}function D(){return T(" ")}function u(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function xe(t){return Array.from(t.childNodes)}function V(t,e){e=""+e,t.data!==e&&(t.data=e)}function Se(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let q;function N(t){q=t}function Ce(){if(!q)throw new Error("Function called outside component initialization");return q}function Ae(t){Ce().$$.on_mount.push(t)}const M=[],X=[];let U=[];const le=[],ze=Promise.resolve();let Y=!1;function Re(){Y||(Y=!0,ze.then(S))}function ee(t){U.push(t)}const W=new Set;let L=0;function S(){if(L!==0)return;const t=q;do{try{for(;L<M.length;){const e=M[L];L++,N(e),Ee(e.$$)}}catch(e){throw M.length=0,L=0,e}for(N(null),M.length=0,L=0;X.length;)X.pop()();for(let e=0;e<U.length;e+=1){const n=U[e];W.has(n)||(W.add(n),n())}U.length=0}while(M.length);for(;le.length;)le.pop()();Y=!1,W.clear(),N(t)}function Ee(t){if(t.fragment!==null){t.update(),G(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ee)}}function Pe(t){const e=[],n=[];U.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),U=e}const Le=new Set;function Te(t,e){t&&t.i&&(Le.delete(t),t.i(e))}function Me(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),ee(()=>{const s=t.$$.on_mount.map(ue).filter(fe);t.$$.on_destroy?t.$$.on_destroy.push(...s):G(s),t.$$.on_mount=[]}),i.forEach(ee)}function Ue(t,e){const n=t.$$;n.fragment!==null&&(Pe(n.after_update),G(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ie(t,e){t.$$.dirty[0]===-1&&(M.push(t),Re(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function He(t,e,n,r,i,s,o=null,l=[-1]){const f=q;N(t);const c=t.$$={fragment:null,ctx:[],props:s,update:B,not_equal:i,bound:re(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(f?f.$$.context:[])),callbacks:re(),dirty:l,skip_bound:!1,root:e.target||f.$$.root};o&&o(c.root);let p=!1;if(c.ctx=n?n(t,e.props||{},(m,h,...v)=>{const b=v.length?v[0]:h;return c.ctx&&i(c.ctx[m],c.ctx[m]=b)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](b),p&&Ie(t,m)),h}):[],c.update(),p=!0,G(c.before_update),c.fragment=r?r(c.ctx):!1,e.target){if(e.hydrate){const m=xe(e.target);c.fragment&&c.fragment.l(m),m.forEach(F)}else c.fragment&&c.fragment.c();e.intro&&Te(t.$$.fragment),Me(t,e.target,e.anchor),S()}N(f)}let de;typeof HTMLElement=="function"&&(de=class extends HTMLElement{constructor(e,n,r){super();k(this,"$$ctor");k(this,"$$s");k(this,"$$c");k(this,"$$cn",!1);k(this,"$$d",{});k(this,"$$r",!1);k(this,"$$p_d",{});k(this,"$$l",{});k(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(e,n,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const i=this.$$c.$on(e,n);this.$$l_u.set(n,i)}super.addEventListener(e,n,r)}removeEventListener(e,n,r){if(super.removeEventListener(e,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return se(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(s){return()=>{let o;return{c:function(){o=C("slot"),s!=="default"&&u(o,"name",s)},m:function(c,p){K(c,o,p)},d:function(c){c&&F(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Se(this);for(const s of this.$$s)s in r&&(n[s]=[e(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=Z(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ie(ne({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=Z(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const o of this.$$l[s]){const l=this.$$c.$on(s,o);this.$$l_u.set(o,l)}this.$$l={}}})}attributeChangedCallback(e,n,r){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Z(e,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function Z(t,e,n,r){var s;const i=(s=n[t])==null?void 0:s.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Oe(t,e,n,r,i,s){let o=class extends de{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(l=>(e[l].attribute||l).toLowerCase())}};return Object.keys(e).forEach(l=>{Object.defineProperty(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){var c;f=Z(l,f,e),this.$$d[l]=f,(c=this.$$c)==null||c.$set({[l]:f})}})}),r.forEach(l=>{Object.defineProperty(o.prototype,l,{get(){var f;return(f=this.$$c)==null?void 0:f[l]}})}),t.element=o,o}class je{constructor(){k(this,"$$");k(this,"$$set")}$destroy(){Ue(this,1),this.$destroy=B}$on(e,n){if(!fe(n))return B;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!ve(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const De="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(De);const Ne="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",Be="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",qe="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",Fe="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 Je(t){ye(t,"svelte-1a60cag",".row.svelte-1a60cag.svelte-1a60cag{display:flex}.row.svelte-1a60cag .RankSec.svelte-1a60cag,.row.svelte-1a60cag .PrizeSec.svelte-1a60cag{width:49%}.col.svelte-1a60cag.svelte-1a60cag{display:inline-block}.RankSec.svelte-1a60cag.svelte-1a60cag,.PrizeSec.svelte-1a60cag.svelte-1a60cag{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec.svelte-1a60cag span.svelte-1a60cag,.PrizeSec.svelte-1a60cag span.svelte-1a60cag{text-align:center}.casino-tournaments-rank.svelte-1a60cag.svelte-1a60cag{background:transparent;min-height:22px;width:100%}.Icon.svelte-1a60cag.svelte-1a60cag{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.RankInfo.svelte-1a60cag.svelte-1a60cag{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up.svelte-1a60cag.svelte-1a60cag,.svg.Arrow.Down.svelte-1a60cag.svelte-1a60cag{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show.svelte-1a60cag.svelte-1a60cag,.svg.Arrow.Down.Show.svelte-1a60cag.svelte-1a60cag{display:inline-flex}.svg.Arrow.Up.Hidden.svelte-1a60cag.svelte-1a60cag,.svg.Arrow.Down.Hidden.svelte-1a60cag.svelte-1a60cag{display:none}.svg.Arrow.Up.svelte-1a60cag.svelte-1a60cag,.svg.Arrow.Down.svelte-1a60cag.svelte-1a60cag{animation-name:svelte-1a60cag-twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes svelte-1a60cag-twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}")}function ce(t){let e;return{c(){e=C("span"),e.innerHTML=`<img alt="user" src="${Be}"/>`,u(e,"class","Icon UserIcon svelte-1a60cag"),u(e,"part","Icon UserIcon")},m(n,r){K(n,e,r)},d(n){n&&F(e)}}}function oe(t){let e;return{c(){e=C("span"),e.innerHTML=`<img alt="prize" src="${Ne}"/>`,u(e,"class","Icon PrizeIcon svelte-1a60cag"),u(e,"part","Icon PrizeIcon")},m(n,r){K(n,e,r)},d(n){n&&F(e)}}}function Ve(t){let e,n,r,i,s,o=(t[1]==0?"-":t[0]?t[0]:"-")+"",l,f,c=(t[1]==0?"-":t[1])+"",p,m,h,v,b,I,_,H,R,z,y,O,E,j,P,a,A,d=t[4]=="true"&&ce(),w=t[4]=="true"&&oe();return{c(){e=C("div"),n=C("div"),d&&d.c(),r=D(),i=C("span"),s=T(t[3]),l=T(o),f=T("/"),p=T(c),m=D(),h=C("img"),I=D(),_=C("img"),z=D(),y=C("div"),w&&w.c(),O=D(),E=C("span"),j=T(t[2]),u(h,"part","Rank_Arror_UP"),u(h,"alt","Rank Up"),ae(h.src,v=qe)||u(h,"src",v),u(h,"width","20"),u(h,"height","20"),u(h,"class",b="svg Arrow Up "+(t[7]&&t[8]?"Show":"Hidden")+" svelte-1a60cag"),u(_,"part","Rank_Arror_Down"),u(_,"alt","Rank Down"),ae(_.src,H=Fe)||u(_,"src",H),u(_,"width","10"),u(_,"height","10"),u(_,"class",R="svg Arrow Down "+(t[7]&&!t[8]?"Show":"Hidden")+" svelte-1a60cag"),u(i,"class","RankInfo svelte-1a60cag"),u(i,"part","RankText"),u(n,"class","RankSec svelte-1a60cag"),u(n,"part","Rank"),u(E,"class","RankInfo UserPrize svelte-1a60cag"),u(E,"part","PrizeText"),u(y,"class",P=t[5]+" PrizeSec svelte-1a60cag"),u(y,"part","Prize"),u(e,"class",a=t[5]+" casino-tournaments-rank svelte-1a60cag"),u(e,"part",A=t[5]+" casino-tournaments-rank")},m(g,x){K(g,e,x),$(e,n),d&&d.m(n,null),$(n,r),$(n,i),$(i,s),$(i,l),$(i,f),$(i,p),$(i,m),$(i,h),$(i,I),$(i,_),$(e,z),$(e,y),w&&w.m(y,null),$(y,O),$(y,E),$(E,j),t[12](e)},p(g,[x]){g[4]=="true"?d||(d=ce(),d.c(),d.m(n,r)):d&&(d.d(1),d=null),x&8&&V(s,g[3]),x&3&&o!==(o=(g[1]==0?"-":g[0]?g[0]:"-")+"")&&V(l,o),x&2&&c!==(c=(g[1]==0?"-":g[1])+"")&&V(p,c),x&384&&b!==(b="svg Arrow Up "+(g[7]&&g[8]?"Show":"Hidden")+" svelte-1a60cag")&&u(h,"class",b),x&384&&R!==(R="svg Arrow Down "+(g[7]&&!g[8]?"Show":"Hidden")+" svelte-1a60cag")&&u(_,"class",R),g[4]=="true"?w||(w=oe(),w.c(),w.m(y,O)):w&&(w.d(1),w=null),x&4&&V(j,g[2]),x&32&&P!==(P=g[5]+" PrizeSec svelte-1a60cag")&&u(y,"class",P),x&32&&a!==(a=g[5]+" casino-tournaments-rank svelte-1a60cag")&&u(e,"class",a),x&32&&A!==(A=g[5]+" casino-tournaments-rank")&&u(e,"part",A)},i:B,o:B,d(g){g&&F(e),d&&d.d(),w&&w.d(),t[12](null)}}}function Ze(t,e,n){let{rankprefix:r="#"}=e,{showicon:i="true"}=e,{tournamentid:s=""}=e,{overallrank:o="0"}=e,{userrank:l="0"}=e,{prize:f="PrizeName"}=e,{displayin:c="row"}=e,{clientstyling:p=""}=e,{clientstylingurl:m=""}=e,h,v,b=!1,I=!0,_,H,R,z;const y=a=>{a.data&&a.data.type==`TournamentRankInfo_${s}`&&O(a.data.rankInfo)},O=a=>{let A=d=>{n(0,l=d.rank),n(1,o=d.overallRank),n(2,f=d.prize)};if(!z){z=v,A(a);return}v&&(n(7,b=z!=a.rank),n(8,I=z>a.rank),_=new Date().getTime(),R=setTimeout(()=>{H=new Date().getTime(),(H-_)/1e3>4&&n(7,b=!1),z=v},5e3),A(a))},E=()=>{let a=document.createElement("style");a.innerHTML=p,h.appendChild(a)},j=()=>{let a=new URL(m),A=document.createElement("style");fetch(a.href).then(d=>d.text()).then(d=>{A.innerHTML=d,setTimeout(()=>{h.appendChild(A)},1),setTimeout(()=>{},500)})};Ae(()=>(v=l==null?void 0:parseInt(l),z=v,n(0,l=l==null?"-":l),window.addEventListener("message",y,!0),()=>{window.removeEventListener("message",y),clearTimeout(R)}));function P(a){X[a?"unshift":"push"](()=>{h=a,n(6,h)})}return t.$$set=a=>{"rankprefix"in a&&n(3,r=a.rankprefix),"showicon"in a&&n(4,i=a.showicon),"tournamentid"in a&&n(9,s=a.tournamentid),"overallrank"in a&&n(1,o=a.overallrank),"userrank"in a&&n(0,l=a.userrank),"prize"in a&&n(2,f=a.prize),"displayin"in a&&n(5,c=a.displayin),"clientstyling"in a&&n(10,p=a.clientstyling),"clientstylingurl"in a&&n(11,m=a.clientstylingurl)},t.$$.update=()=>{t.$$.dirty&1088&&h&&p&&E(),t.$$.dirty&2112&&h&&m&&j(),t.$$.dirty&1&&(v=parseInt(l))},[l,o,f,r,i,c,h,b,I,s,p,m,P]}class he extends je{constructor(e){super(),He(this,e,Ze,Ve,we,{rankprefix:3,showicon:4,tournamentid:9,overallrank:1,userrank:0,prize:2,displayin:5,clientstyling:10,clientstylingurl:11},Je)}get rankprefix(){return this.$$.ctx[3]}set rankprefix(e){this.$$set({rankprefix:e}),S()}get showicon(){return this.$$.ctx[4]}set showicon(e){this.$$set({showicon:e}),S()}get tournamentid(){return this.$$.ctx[9]}set tournamentid(e){this.$$set({tournamentid:e}),S()}get overallrank(){return this.$$.ctx[1]}set overallrank(e){this.$$set({overallrank:e}),S()}get userrank(){return this.$$.ctx[0]}set userrank(e){this.$$set({userrank:e}),S()}get prize(){return this.$$.ctx[2]}set prize(e){this.$$set({prize:e}),S()}get displayin(){return this.$$.ctx[5]}set displayin(e){this.$$set({displayin:e}),S()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),S()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),S()}}Oe(he,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},userrank:{},prize:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=he;
@@ -0,0 +1,728 @@
1
+ var he = Object.defineProperty, ge = Object.defineProperties;
2
+ var $e = Object.getOwnPropertyDescriptors;
3
+ var te = Object.getOwnPropertySymbols;
4
+ var me = Object.prototype.hasOwnProperty, pe = Object.prototype.propertyIsEnumerable;
5
+ var Q = (t, e, n) => e in t ? he(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ne = (t, e) => {
6
+ for (var n in e || (e = {}))
7
+ me.call(e, n) && Q(t, n, e[n]);
8
+ if (te)
9
+ for (var n of te(e))
10
+ pe.call(e, n) && Q(t, n, e[n]);
11
+ return t;
12
+ }, se = (t, e) => ge(t, $e(e));
13
+ var y = (t, e, n) => Q(t, typeof e != "symbol" ? e + "" : e, n);
14
+ var ie = (t, e, n) => new Promise((r, s) => {
15
+ var i = (f) => {
16
+ try {
17
+ l(n.next(f));
18
+ } catch (c) {
19
+ s(c);
20
+ }
21
+ }, o = (f) => {
22
+ try {
23
+ l(n.throw(f));
24
+ } catch (c) {
25
+ s(c);
26
+ }
27
+ }, l = (f) => f.done ? r(f.value) : Promise.resolve(f.value).then(i, o);
28
+ l((n = n.apply(t, e)).next());
29
+ });
30
+ function B() {
31
+ }
32
+ function ue(t) {
33
+ return t();
34
+ }
35
+ function re() {
36
+ return /* @__PURE__ */ Object.create(null);
37
+ }
38
+ function G(t) {
39
+ t.forEach(ue);
40
+ }
41
+ function fe(t) {
42
+ return typeof t == "function";
43
+ }
44
+ function _e(t, e) {
45
+ return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
46
+ }
47
+ let J;
48
+ function ae(t, e) {
49
+ return t === e ? !0 : (J || (J = document.createElement("a")), J.href = e, t === J.href);
50
+ }
51
+ function we(t) {
52
+ return Object.keys(t).length === 0;
53
+ }
54
+ function $(t, e) {
55
+ t.appendChild(e);
56
+ }
57
+ function ve(t, e, n) {
58
+ const r = ke(t);
59
+ if (!r.getElementById(e)) {
60
+ const s = S("style");
61
+ s.id = e, s.textContent = n, ye(r, s);
62
+ }
63
+ }
64
+ function ke(t) {
65
+ if (!t) return document;
66
+ const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
67
+ return e && /** @type {ShadowRoot} */
68
+ e.host ? (
69
+ /** @type {ShadowRoot} */
70
+ e
71
+ ) : t.ownerDocument;
72
+ }
73
+ function ye(t, e) {
74
+ return $(
75
+ /** @type {Document} */
76
+ t.head || t,
77
+ e
78
+ ), e.sheet;
79
+ }
80
+ function K(t, e, n) {
81
+ t.insertBefore(e, n || null);
82
+ }
83
+ function F(t) {
84
+ t.parentNode && t.parentNode.removeChild(t);
85
+ }
86
+ function S(t) {
87
+ return document.createElement(t);
88
+ }
89
+ function T(t) {
90
+ return document.createTextNode(t);
91
+ }
92
+ function D() {
93
+ return T(" ");
94
+ }
95
+ function u(t, e, n) {
96
+ n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
97
+ }
98
+ function be(t) {
99
+ return Array.from(t.childNodes);
100
+ }
101
+ function V(t, e) {
102
+ e = "" + e, t.data !== e && (t.data = /** @type {string} */
103
+ e);
104
+ }
105
+ function xe(t) {
106
+ const e = {};
107
+ return t.childNodes.forEach(
108
+ /** @param {Element} node */
109
+ (n) => {
110
+ e[n.slot || "default"] = !0;
111
+ }
112
+ ), e;
113
+ }
114
+ let q;
115
+ function N(t) {
116
+ q = t;
117
+ }
118
+ function Ce() {
119
+ if (!q) throw new Error("Function called outside component initialization");
120
+ return q;
121
+ }
122
+ function Se(t) {
123
+ Ce().$$.on_mount.push(t);
124
+ }
125
+ const U = [], X = [];
126
+ let I = [];
127
+ const le = [], Ae = /* @__PURE__ */ Promise.resolve();
128
+ let Y = !1;
129
+ function ze() {
130
+ Y || (Y = !0, Ae.then(C));
131
+ }
132
+ function ee(t) {
133
+ I.push(t);
134
+ }
135
+ const W = /* @__PURE__ */ new Set();
136
+ let P = 0;
137
+ function C() {
138
+ if (P !== 0)
139
+ return;
140
+ const t = q;
141
+ do {
142
+ try {
143
+ for (; P < U.length; ) {
144
+ const e = U[P];
145
+ P++, N(e), Re(e.$$);
146
+ }
147
+ } catch (e) {
148
+ throw U.length = 0, P = 0, e;
149
+ }
150
+ for (N(null), U.length = 0, P = 0; X.length; ) X.pop()();
151
+ for (let e = 0; e < I.length; e += 1) {
152
+ const n = I[e];
153
+ W.has(n) || (W.add(n), n());
154
+ }
155
+ I.length = 0;
156
+ } while (U.length);
157
+ for (; le.length; )
158
+ le.pop()();
159
+ Y = !1, W.clear(), N(t);
160
+ }
161
+ function Re(t) {
162
+ if (t.fragment !== null) {
163
+ t.update(), G(t.before_update);
164
+ const e = t.dirty;
165
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(ee);
166
+ }
167
+ }
168
+ function Ee(t) {
169
+ const e = [], n = [];
170
+ I.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), I = e;
171
+ }
172
+ const Le = /* @__PURE__ */ new Set();
173
+ function Pe(t, e) {
174
+ t && t.i && (Le.delete(t), t.i(e));
175
+ }
176
+ function Te(t, e, n) {
177
+ const { fragment: r, after_update: s } = t.$$;
178
+ r && r.m(e, n), ee(() => {
179
+ const i = t.$$.on_mount.map(ue).filter(fe);
180
+ t.$$.on_destroy ? t.$$.on_destroy.push(...i) : G(i), t.$$.on_mount = [];
181
+ }), s.forEach(ee);
182
+ }
183
+ function Ue(t, e) {
184
+ const n = t.$$;
185
+ n.fragment !== null && (Ee(n.after_update), G(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
186
+ }
187
+ function Ie(t, e) {
188
+ t.$$.dirty[0] === -1 && (U.push(t), ze(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
189
+ }
190
+ function Me(t, e, n, r, s, i, o = null, l = [-1]) {
191
+ const f = q;
192
+ N(t);
193
+ const c = t.$$ = {
194
+ fragment: null,
195
+ ctx: [],
196
+ // state
197
+ props: i,
198
+ update: B,
199
+ not_equal: s,
200
+ bound: re(),
201
+ // lifecycle
202
+ on_mount: [],
203
+ on_destroy: [],
204
+ on_disconnect: [],
205
+ before_update: [],
206
+ after_update: [],
207
+ context: new Map(e.context || (f ? f.$$.context : [])),
208
+ // everything else
209
+ callbacks: re(),
210
+ dirty: l,
211
+ skip_bound: !1,
212
+ root: e.target || f.$$.root
213
+ };
214
+ o && o(c.root);
215
+ let p = !1;
216
+ if (c.ctx = n ? n(t, e.props || {}, (m, h, ...v) => {
217
+ const b = v.length ? v[0] : h;
218
+ return c.ctx && s(c.ctx[m], c.ctx[m] = b) && (!c.skip_bound && c.bound[m] && c.bound[m](b), p && Ie(t, m)), h;
219
+ }) : [], c.update(), p = !0, G(c.before_update), c.fragment = r ? r(c.ctx) : !1, e.target) {
220
+ if (e.hydrate) {
221
+ const m = be(e.target);
222
+ c.fragment && c.fragment.l(m), m.forEach(F);
223
+ } else
224
+ c.fragment && c.fragment.c();
225
+ e.intro && Pe(t.$$.fragment), Te(t, e.target, e.anchor), C();
226
+ }
227
+ N(f);
228
+ }
229
+ let de;
230
+ typeof HTMLElement == "function" && (de = class extends HTMLElement {
231
+ constructor(e, n, r) {
232
+ super();
233
+ /** The Svelte component constructor */
234
+ y(this, "$$ctor");
235
+ /** Slots */
236
+ y(this, "$$s");
237
+ /** The Svelte component instance */
238
+ y(this, "$$c");
239
+ /** Whether or not the custom element is connected */
240
+ y(this, "$$cn", !1);
241
+ /** Component props data */
242
+ y(this, "$$d", {});
243
+ /** `true` if currently in the process of reflecting component props back to attributes */
244
+ y(this, "$$r", !1);
245
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
246
+ y(this, "$$p_d", {});
247
+ /** @type {Record<string, Function[]>} Event listeners */
248
+ y(this, "$$l", {});
249
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
250
+ y(this, "$$l_u", /* @__PURE__ */ new Map());
251
+ this.$$ctor = e, this.$$s = n, r && this.attachShadow({ mode: "open" });
252
+ }
253
+ addEventListener(e, n, r) {
254
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(n), this.$$c) {
255
+ const s = this.$$c.$on(e, n);
256
+ this.$$l_u.set(n, s);
257
+ }
258
+ super.addEventListener(e, n, r);
259
+ }
260
+ removeEventListener(e, n, r) {
261
+ if (super.removeEventListener(e, n, r), this.$$c) {
262
+ const s = this.$$l_u.get(n);
263
+ s && (s(), this.$$l_u.delete(n));
264
+ }
265
+ }
266
+ connectedCallback() {
267
+ return ie(this, null, function* () {
268
+ if (this.$$cn = !0, !this.$$c) {
269
+ let e = function(i) {
270
+ return () => {
271
+ let o;
272
+ return {
273
+ c: function() {
274
+ o = S("slot"), i !== "default" && u(o, "name", i);
275
+ },
276
+ /**
277
+ * @param {HTMLElement} target
278
+ * @param {HTMLElement} [anchor]
279
+ */
280
+ m: function(c, p) {
281
+ K(c, o, p);
282
+ },
283
+ d: function(c) {
284
+ c && F(o);
285
+ }
286
+ };
287
+ };
288
+ };
289
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
290
+ return;
291
+ const n = {}, r = xe(this);
292
+ for (const i of this.$$s)
293
+ i in r && (n[i] = [e(i)]);
294
+ for (const i of this.attributes) {
295
+ const o = this.$$g_p(i.name);
296
+ o in this.$$d || (this.$$d[o] = Z(o, i.value, this.$$p_d, "toProp"));
297
+ }
298
+ for (const i in this.$$p_d)
299
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
300
+ this.$$c = new this.$$ctor({
301
+ target: this.shadowRoot || this,
302
+ props: se(ne({}, this.$$d), {
303
+ $$slots: n,
304
+ $$scope: {
305
+ ctx: []
306
+ }
307
+ })
308
+ });
309
+ const s = () => {
310
+ this.$$r = !0;
311
+ for (const i in this.$$p_d)
312
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
313
+ const o = Z(
314
+ i,
315
+ this.$$d[i],
316
+ this.$$p_d,
317
+ "toAttribute"
318
+ );
319
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
320
+ }
321
+ this.$$r = !1;
322
+ };
323
+ this.$$c.$$.after_update.push(s), s();
324
+ for (const i in this.$$l)
325
+ for (const o of this.$$l[i]) {
326
+ const l = this.$$c.$on(i, o);
327
+ this.$$l_u.set(o, l);
328
+ }
329
+ this.$$l = {};
330
+ }
331
+ });
332
+ }
333
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
334
+ // and setting attributes through setAttribute etc, this is helpful
335
+ attributeChangedCallback(e, n, r) {
336
+ var s;
337
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Z(e, r, this.$$p_d, "toProp"), (s = this.$$c) == null || s.$set({ [e]: this.$$d[e] }));
338
+ }
339
+ disconnectedCallback() {
340
+ this.$$cn = !1, Promise.resolve().then(() => {
341
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
342
+ });
343
+ }
344
+ $$g_p(e) {
345
+ return Object.keys(this.$$p_d).find(
346
+ (n) => this.$$p_d[n].attribute === e || !this.$$p_d[n].attribute && n.toLowerCase() === e
347
+ ) || e;
348
+ }
349
+ });
350
+ function Z(t, e, n, r) {
351
+ var i;
352
+ const s = (i = n[t]) == null ? void 0 : i.type;
353
+ if (e = s === "Boolean" && typeof e != "boolean" ? e != null : e, !r || !n[t])
354
+ return e;
355
+ if (r === "toAttribute")
356
+ switch (s) {
357
+ case "Object":
358
+ case "Array":
359
+ return e == null ? null : JSON.stringify(e);
360
+ case "Boolean":
361
+ return e ? "" : null;
362
+ case "Number":
363
+ return e == null ? null : e;
364
+ default:
365
+ return e;
366
+ }
367
+ else
368
+ switch (s) {
369
+ case "Object":
370
+ case "Array":
371
+ return e && JSON.parse(e);
372
+ case "Boolean":
373
+ return e;
374
+ case "Number":
375
+ return e != null ? +e : e;
376
+ default:
377
+ return e;
378
+ }
379
+ }
380
+ function He(t, e, n, r, s, i) {
381
+ let o = class extends de {
382
+ constructor() {
383
+ super(t, n, s), this.$$p_d = e;
384
+ }
385
+ static get observedAttributes() {
386
+ return Object.keys(e).map(
387
+ (l) => (e[l].attribute || l).toLowerCase()
388
+ );
389
+ }
390
+ };
391
+ return Object.keys(e).forEach((l) => {
392
+ Object.defineProperty(o.prototype, l, {
393
+ get() {
394
+ return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
395
+ },
396
+ set(f) {
397
+ var c;
398
+ f = Z(l, f, e), this.$$d[l] = f, (c = this.$$c) == null || c.$set({ [l]: f });
399
+ }
400
+ });
401
+ }), r.forEach((l) => {
402
+ Object.defineProperty(o.prototype, l, {
403
+ get() {
404
+ var f;
405
+ return (f = this.$$c) == null ? void 0 : f[l];
406
+ }
407
+ });
408
+ }), t.element = /** @type {any} */
409
+ o, o;
410
+ }
411
+ class Oe {
412
+ constructor() {
413
+ /**
414
+ * ### PRIVATE API
415
+ *
416
+ * Do not use, may change at any time
417
+ *
418
+ * @type {any}
419
+ */
420
+ y(this, "$$");
421
+ /**
422
+ * ### PRIVATE API
423
+ *
424
+ * Do not use, may change at any time
425
+ *
426
+ * @type {any}
427
+ */
428
+ y(this, "$$set");
429
+ }
430
+ /** @returns {void} */
431
+ $destroy() {
432
+ Ue(this, 1), this.$destroy = B;
433
+ }
434
+ /**
435
+ * @template {Extract<keyof Events, string>} K
436
+ * @param {K} type
437
+ * @param {((e: Events[K]) => void) | null | undefined} callback
438
+ * @returns {() => void}
439
+ */
440
+ $on(e, n) {
441
+ if (!fe(n))
442
+ return B;
443
+ const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
444
+ return r.push(n), () => {
445
+ const s = r.indexOf(n);
446
+ s !== -1 && r.splice(s, 1);
447
+ };
448
+ }
449
+ /**
450
+ * @param {Partial<Props>} props
451
+ * @returns {void}
452
+ */
453
+ $set(e) {
454
+ this.$$set && !we(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
455
+ }
456
+ }
457
+ const je = "4";
458
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(je);
459
+ const De = "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", Ne = "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", Be = "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", qe = "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";
460
+ function Fe(t) {
461
+ ve(t, "svelte-1a60cag", ".row.svelte-1a60cag.svelte-1a60cag{display:flex}.row.svelte-1a60cag .RankSec.svelte-1a60cag,.row.svelte-1a60cag .PrizeSec.svelte-1a60cag{width:49%}.col.svelte-1a60cag.svelte-1a60cag{display:inline-block}.RankSec.svelte-1a60cag.svelte-1a60cag,.PrizeSec.svelte-1a60cag.svelte-1a60cag{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec.svelte-1a60cag span.svelte-1a60cag,.PrizeSec.svelte-1a60cag span.svelte-1a60cag{text-align:center}.casino-tournaments-rank.svelte-1a60cag.svelte-1a60cag{background:transparent;min-height:22px;width:100%}.Icon.svelte-1a60cag.svelte-1a60cag{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.RankInfo.svelte-1a60cag.svelte-1a60cag{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up.svelte-1a60cag.svelte-1a60cag,.svg.Arrow.Down.svelte-1a60cag.svelte-1a60cag{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show.svelte-1a60cag.svelte-1a60cag,.svg.Arrow.Down.Show.svelte-1a60cag.svelte-1a60cag{display:inline-flex}.svg.Arrow.Up.Hidden.svelte-1a60cag.svelte-1a60cag,.svg.Arrow.Down.Hidden.svelte-1a60cag.svelte-1a60cag{display:none}.svg.Arrow.Up.svelte-1a60cag.svelte-1a60cag,.svg.Arrow.Down.svelte-1a60cag.svelte-1a60cag{animation-name:svelte-1a60cag-twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes svelte-1a60cag-twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}");
462
+ }
463
+ function ce(t) {
464
+ let e;
465
+ return {
466
+ c() {
467
+ e = S("span"), e.innerHTML = `<img alt="user" src="${Ne}"/>`, u(e, "class", "Icon UserIcon svelte-1a60cag"), u(e, "part", "Icon UserIcon");
468
+ },
469
+ m(n, r) {
470
+ K(n, e, r);
471
+ },
472
+ d(n) {
473
+ n && F(e);
474
+ }
475
+ };
476
+ }
477
+ function oe(t) {
478
+ let e;
479
+ return {
480
+ c() {
481
+ e = S("span"), e.innerHTML = `<img alt="prize" src="${De}"/>`, u(e, "class", "Icon PrizeIcon svelte-1a60cag"), u(e, "part", "Icon PrizeIcon");
482
+ },
483
+ m(n, r) {
484
+ K(n, e, r);
485
+ },
486
+ d(n) {
487
+ n && F(e);
488
+ }
489
+ };
490
+ }
491
+ function Je(t) {
492
+ let e, n, r, s, i, o = (
493
+ /*overallrank*/
494
+ (t[1] == 0 ? "-" : (
495
+ /*userrank*/
496
+ t[0] ? (
497
+ /*userrank*/
498
+ t[0]
499
+ ) : "-"
500
+ )) + ""
501
+ ), l, f, c = (
502
+ /*overallrank*/
503
+ (t[1] == 0 ? "-" : (
504
+ /*overallrank*/
505
+ t[1]
506
+ )) + ""
507
+ ), p, m, h, v, b, M, _, H, R, z, k, O, E, j, L, a, A, d = (
508
+ /*showicon*/
509
+ t[4] == "true" && ce()
510
+ ), w = (
511
+ /*showicon*/
512
+ t[4] == "true" && oe()
513
+ );
514
+ return {
515
+ c() {
516
+ e = S("div"), n = S("div"), d && d.c(), r = D(), s = S("span"), i = T(
517
+ /*rankprefix*/
518
+ t[3]
519
+ ), l = T(o), f = T("/"), p = T(c), m = D(), h = S("img"), M = D(), _ = S("img"), z = D(), k = S("div"), w && w.c(), O = D(), E = S("span"), j = T(
520
+ /*prize*/
521
+ t[2]
522
+ ), u(h, "part", "Rank_Arror_UP"), u(h, "alt", "Rank Up"), ae(h.src, v = Be) || u(h, "src", v), u(h, "width", "20"), u(h, "height", "20"), u(h, "class", b = "svg Arrow Up " + /*userRankChanged*/
523
+ (t[7] && /*isRankingUp*/
524
+ t[8] ? "Show" : "Hidden") + " svelte-1a60cag"), u(_, "part", "Rank_Arror_Down"), u(_, "alt", "Rank Down"), ae(_.src, H = qe) || u(_, "src", H), u(_, "width", "10"), u(_, "height", "10"), u(_, "class", R = "svg Arrow Down " + /*userRankChanged*/
525
+ (t[7] && !/*isRankingUp*/
526
+ t[8] ? "Show" : "Hidden") + " svelte-1a60cag"), u(s, "class", "RankInfo svelte-1a60cag"), u(s, "part", "RankText"), u(n, "class", "RankSec svelte-1a60cag"), u(n, "part", "Rank"), u(E, "class", "RankInfo UserPrize svelte-1a60cag"), u(E, "part", "PrizeText"), u(k, "class", L = /*displayin*/
527
+ t[5] + " PrizeSec svelte-1a60cag"), u(k, "part", "Prize"), u(e, "class", a = /*displayin*/
528
+ t[5] + " casino-tournaments-rank svelte-1a60cag"), u(e, "part", A = /*displayin*/
529
+ t[5] + " casino-tournaments-rank");
530
+ },
531
+ m(g, x) {
532
+ K(g, e, x), $(e, n), d && d.m(n, null), $(n, r), $(n, s), $(s, i), $(s, l), $(s, f), $(s, p), $(s, m), $(s, h), $(s, M), $(s, _), $(e, z), $(e, k), w && w.m(k, null), $(k, O), $(k, E), $(E, j), t[12](e);
533
+ },
534
+ p(g, [x]) {
535
+ /*showicon*/
536
+ g[4] == "true" ? d || (d = ce(), d.c(), d.m(n, r)) : d && (d.d(1), d = null), x & /*rankprefix*/
537
+ 8 && V(
538
+ i,
539
+ /*rankprefix*/
540
+ g[3]
541
+ ), x & /*overallrank, userrank*/
542
+ 3 && o !== (o = /*overallrank*/
543
+ (g[1] == 0 ? "-" : (
544
+ /*userrank*/
545
+ g[0] ? (
546
+ /*userrank*/
547
+ g[0]
548
+ ) : "-"
549
+ )) + "") && V(l, o), x & /*overallrank*/
550
+ 2 && c !== (c = /*overallrank*/
551
+ (g[1] == 0 ? "-" : (
552
+ /*overallrank*/
553
+ g[1]
554
+ )) + "") && V(p, c), x & /*userRankChanged, isRankingUp*/
555
+ 384 && b !== (b = "svg Arrow Up " + /*userRankChanged*/
556
+ (g[7] && /*isRankingUp*/
557
+ g[8] ? "Show" : "Hidden") + " svelte-1a60cag") && u(h, "class", b), x & /*userRankChanged, isRankingUp*/
558
+ 384 && R !== (R = "svg Arrow Down " + /*userRankChanged*/
559
+ (g[7] && !/*isRankingUp*/
560
+ g[8] ? "Show" : "Hidden") + " svelte-1a60cag") && u(_, "class", R), /*showicon*/
561
+ g[4] == "true" ? w || (w = oe(), w.c(), w.m(k, O)) : w && (w.d(1), w = null), x & /*prize*/
562
+ 4 && V(
563
+ j,
564
+ /*prize*/
565
+ g[2]
566
+ ), x & /*displayin*/
567
+ 32 && L !== (L = /*displayin*/
568
+ g[5] + " PrizeSec svelte-1a60cag") && u(k, "class", L), x & /*displayin*/
569
+ 32 && a !== (a = /*displayin*/
570
+ g[5] + " casino-tournaments-rank svelte-1a60cag") && u(e, "class", a), x & /*displayin*/
571
+ 32 && A !== (A = /*displayin*/
572
+ g[5] + " casino-tournaments-rank") && u(e, "part", A);
573
+ },
574
+ i: B,
575
+ o: B,
576
+ d(g) {
577
+ g && F(e), d && d.d(), w && w.d(), t[12](null);
578
+ }
579
+ };
580
+ }
581
+ function Ve(t, e, n) {
582
+ let { rankprefix: r = "#" } = e, { showicon: s = "true" } = e, { tournamentid: i = "" } = e, { overallrank: o = "0" } = e, { userrank: l = "0" } = e, { prize: f = "PrizeName" } = e, { displayin: c = "row" } = e, { clientstyling: p = "" } = e, { clientstylingurl: m = "" } = e, h, v, b = !1, M = !0, _, H, R, z;
583
+ const k = (a) => {
584
+ a.data && a.data.type == `TournamentRankInfo_${i}` && O(a.data.rankInfo);
585
+ }, O = (a) => {
586
+ let A = (d) => {
587
+ n(0, l = d.rank), n(1, o = d.overallRank), n(2, f = d.prize);
588
+ };
589
+ if (!z) {
590
+ z = v, A(a);
591
+ return;
592
+ }
593
+ v && (n(7, b = z != a.rank), n(8, M = z > a.rank), _ = (/* @__PURE__ */ new Date()).getTime(), R = setTimeout(
594
+ () => {
595
+ H = (/* @__PURE__ */ new Date()).getTime(), (H - _) / 1e3 > 4 && n(7, b = !1), z = v;
596
+ },
597
+ 5e3
598
+ ), A(a));
599
+ }, E = () => {
600
+ let a = document.createElement("style");
601
+ a.innerHTML = p, h.appendChild(a);
602
+ }, j = () => {
603
+ let a = new URL(m), A = document.createElement("style");
604
+ fetch(a.href).then((d) => d.text()).then((d) => {
605
+ A.innerHTML = d, setTimeout(
606
+ () => {
607
+ h.appendChild(A);
608
+ },
609
+ 1
610
+ ), setTimeout(
611
+ () => {
612
+ },
613
+ 500
614
+ );
615
+ });
616
+ };
617
+ Se(() => (v = l == null ? void 0 : parseInt(l), z = v, n(0, l = l == null ? "-" : l), window.addEventListener("message", k, !0), () => {
618
+ window.removeEventListener("message", k), clearTimeout(R);
619
+ }));
620
+ function L(a) {
621
+ X[a ? "unshift" : "push"](() => {
622
+ h = a, n(6, h);
623
+ });
624
+ }
625
+ return t.$$set = (a) => {
626
+ "rankprefix" in a && n(3, r = a.rankprefix), "showicon" in a && n(4, s = a.showicon), "tournamentid" in a && n(9, i = a.tournamentid), "overallrank" in a && n(1, o = a.overallrank), "userrank" in a && n(0, l = a.userrank), "prize" in a && n(2, f = a.prize), "displayin" in a && n(5, c = a.displayin), "clientstyling" in a && n(10, p = a.clientstyling), "clientstylingurl" in a && n(11, m = a.clientstylingurl);
627
+ }, t.$$.update = () => {
628
+ t.$$.dirty & /*customStylingContainer, clientstyling*/
629
+ 1088 && h && p && E(), t.$$.dirty & /*customStylingContainer, clientstylingurl*/
630
+ 2112 && h && m && j(), t.$$.dirty & /*userrank*/
631
+ 1 && (v = parseInt(l));
632
+ }, [
633
+ l,
634
+ o,
635
+ f,
636
+ r,
637
+ s,
638
+ c,
639
+ h,
640
+ b,
641
+ M,
642
+ i,
643
+ p,
644
+ m,
645
+ L
646
+ ];
647
+ }
648
+ class Ze extends Oe {
649
+ constructor(e) {
650
+ super(), Me(
651
+ this,
652
+ e,
653
+ Ve,
654
+ Je,
655
+ _e,
656
+ {
657
+ rankprefix: 3,
658
+ showicon: 4,
659
+ tournamentid: 9,
660
+ overallrank: 1,
661
+ userrank: 0,
662
+ prize: 2,
663
+ displayin: 5,
664
+ clientstyling: 10,
665
+ clientstylingurl: 11
666
+ },
667
+ Fe
668
+ );
669
+ }
670
+ get rankprefix() {
671
+ return this.$$.ctx[3];
672
+ }
673
+ set rankprefix(e) {
674
+ this.$$set({ rankprefix: e }), C();
675
+ }
676
+ get showicon() {
677
+ return this.$$.ctx[4];
678
+ }
679
+ set showicon(e) {
680
+ this.$$set({ showicon: e }), C();
681
+ }
682
+ get tournamentid() {
683
+ return this.$$.ctx[9];
684
+ }
685
+ set tournamentid(e) {
686
+ this.$$set({ tournamentid: e }), C();
687
+ }
688
+ get overallrank() {
689
+ return this.$$.ctx[1];
690
+ }
691
+ set overallrank(e) {
692
+ this.$$set({ overallrank: e }), C();
693
+ }
694
+ get userrank() {
695
+ return this.$$.ctx[0];
696
+ }
697
+ set userrank(e) {
698
+ this.$$set({ userrank: e }), C();
699
+ }
700
+ get prize() {
701
+ return this.$$.ctx[2];
702
+ }
703
+ set prize(e) {
704
+ this.$$set({ prize: e }), C();
705
+ }
706
+ get displayin() {
707
+ return this.$$.ctx[5];
708
+ }
709
+ set displayin(e) {
710
+ this.$$set({ displayin: e }), C();
711
+ }
712
+ get clientstyling() {
713
+ return this.$$.ctx[10];
714
+ }
715
+ set clientstyling(e) {
716
+ this.$$set({ clientstyling: e }), C();
717
+ }
718
+ get clientstylingurl() {
719
+ return this.$$.ctx[11];
720
+ }
721
+ set clientstylingurl(e) {
722
+ this.$$set({ clientstylingurl: e }), C();
723
+ }
724
+ }
725
+ He(Ze, { rankprefix: {}, showicon: {}, tournamentid: {}, overallrank: {}, userrank: {}, prize: {}, displayin: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
726
+ export {
727
+ Ze as default
728
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-rank",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-tournaments-rank.cjs",
6
6
  "module": "es2015/casino-tournaments-rank.js",
@@ -11,8 +11,9 @@
11
11
  },
12
12
  "./es2015/casino-tournaments-rank.cjs": "./es2015/casino-tournaments-rank.cjs"
13
13
  },
14
- "files": [
15
- "es2015/"
14
+ "files": [
15
+ "es2015/",
16
+ "components"
16
17
  ],
17
18
  "publishConfig": {
18
19
  "access": "public"