@everymatrix/tournament-details-page 0.1.13 → 0.1.15
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.
- package/components/{TournamentDetails-hOUvqDF2.js → TournamentDetails-CTrigRlQ.js} +85 -88
- package/components/{TournamentDetails-CYrQWwZn.cjs → TournamentDetails-CamF-OAP.cjs} +2 -2
- package/components/{TournamentDetails-BVnS_IYF.js → TournamentDetails-DxnqovRH.js} +88 -91
- package/components/{TournamentDetails-BoaqYHo1.cjs → TournamentDetails-qI01TVz6.cjs} +2 -2
- package/components/{TournamentDetailsPage-DcS7Pa0U.js → TournamentDetailsPage-BhOKeY6o.js} +139 -140
- package/components/{TournamentDetailsPage-LxAzPvhv.js → TournamentDetailsPage-CAgzJoGS.js} +147 -148
- package/components/{TournamentDetailsPage-BgoG6goQ.cjs → TournamentDetailsPage-Ch2aanZt.cjs} +3 -3
- package/components/{TournamentDetailsPage-WnIR1yO-.cjs → TournamentDetailsPage-clnwYJj-.cjs} +3 -3
- package/components/TournamentGames-05Z4kMcw.cjs +51 -0
- package/components/TournamentGames-Ba_dX246.cjs +51 -0
- package/components/{TournamentGames-B5Vr9KT7.js → TournamentGames-QGboBJGp.js} +395 -418
- package/components/{TournamentGames-Bgha2ST9.js → TournamentGames-dkEGBAmh.js} +337 -360
- package/components/TournamentLeaderboard-BZPNaquR.cjs +46 -0
- package/components/TournamentLeaderboard-CE2y2ivq.js +8127 -0
- package/components/TournamentLeaderboard-D4iLH5gS.cjs +46 -0
- package/components/{TournamentLeaderboard-cxKLflDm.js → TournamentLeaderboard-DIOfuPoN.js} +3445 -3042
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +2 -2
- package/esnext/tournament-details-page.cjs +1 -1
- package/esnext/tournament-details-page.js +2 -2
- package/package.json +1 -1
- package/components/TournamentGames-DXcN8tkz.cjs +0 -51
- package/components/TournamentGames-DpOh7T_F.cjs +0 -51
- package/components/TournamentLeaderboard-8MMMRNQy.cjs +0 -46
- package/components/TournamentLeaderboard-C_Ne8wC4.js +0 -7718
- package/components/TournamentLeaderboard-DpfSasWx.cjs +0 -46
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
var Po=Object.defineProperty,Mo=Object.defineProperties;var Ho=Object.getOwnPropertyDescriptors;var ls=Object.getOwnPropertySymbols;var Oo=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable;var fs=e=>{throw TypeError(e)};var ci=(e,t,r)=>t in e?Po(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xn=(e,t)=>{for(var r in t||(t={}))Oo.call(t,r)&&ci(e,r,t[r]);if(ls)for(var r of ls(t))$o.call(t,r)&&ci(e,r,t[r]);return e},Sn=(e,t)=>Mo(e,Ho(t));var Ne=(e,t,r)=>ci(e,typeof t!="symbol"?t+"":t,r),di=(e,t,r)=>t.has(e)||fs("Cannot "+r);var d=(e,t,r)=>(di(e,t,"read from private field"),r?r.call(e):t.get(e)),J=(e,t,r)=>t.has(e)?fs("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),V=(e,t,r,n)=>(di(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ce=(e,t,r)=>(di(e,t,"access private method"),r);var kt=(e,t,r)=>new Promise((n,i)=>{var s=o=>{try{u(r.next(o))}catch(l){i(l)}},a=o=>{try{u(r.throw(o))}catch(l){i(l)}},u=o=>o.done?n(o.value):Promise.resolve(o.value).then(s,a);u((r=r.apply(e,t)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const No="5";var Bs,Ls,Rs;typeof window!="undefined"&&((Rs=(Ls=(Bs=window.__svelte)!=null?Bs:window.__svelte={}).v)!=null?Rs:Ls.v=new Set).add(No);const Bo=1,Lo=2,Cs=4,Ro=8,Co=16,Do=1,Io=2,Ds="[",Wn="[!",Yi="]",Or={},Xe=Symbol(),ko="http://www.w3.org/1999/xhtml",Ei=!1;var Is=Array.isArray,Fo=Array.prototype.indexOf,Zn=Array.from,Cn=Object.keys,cn=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,Uo=Object.getOwnPropertyDescriptors,Go=Object.prototype,jo=Array.prototype,ks=Object.getPrototypeOf,hs=Object.isExtensible;const cr=()=>{};function Fs(e){for(var t=0;t<e.length;t++)e[t]()}function Us(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const ze=2,Dn=4,yn=8,Gs=1<<24,sr=16,ar=32,gr=64,zi=128,Ht=512,Je=1024,at=2048,or=4096,bt=8192,nr=16384,Jn=32768,Wr=65536,cs=1<<17,js=1<<18,Br=1<<19,Vs=1<<20,tr=1<<25,$r=32768,wi=1<<21,qi=1<<22,dr=1<<23,vi=Symbol("$state"),Vo=Symbol("legacy props"),Xo=Symbol(""),Fr=new class extends Error{constructor(){super(...arguments);Ne(this,"name","StaleReactionError");Ne(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Qn=3,Lr=8;function Xs(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Yo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function zo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function qo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Wo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Zo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jo(){throw new Error("https://svelte.dev/e/hydration_failed")}function Qo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ko(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function eu(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function tu(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function En(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ru(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let te=!1;function rr(e){te=e}let q;function Qe(e){if(e===null)throw En(),Or;return q=e}function Zr(){return Qe(Rt(q))}function Y(e){if(te){if(Rt(q)!==null)throw En(),Or;q=e}}function Wi(e=1){if(te){for(var t=e,r=q;t--;)r=Rt(r);q=r}}function In(e=!0){for(var t=0,r=q;;){if(r.nodeType===Lr){var n=r.data;if(n===Yi){if(t===0)return r;t-=1}else(n===Ds||n===Wn)&&(t+=1)}var i=Rt(r);e&&r.remove(),r=i}}function Ys(e){if(!e||e.nodeType!==Lr)throw En(),Or;return e.data}function zs(e){return e===this.v}function qs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ws(e){return!qs(e,this.v)}let nu=!1,dt=null;function Jr(e){dt=e}function Kn(e,t=!1,r){dt={p:dt,i:!1,c:null,e:null,s:e,x:null,l:null}}function ei(e){var t=dt,r=t.e;if(r!==null){t.e=null;for(var n of r)ya(n)}return e!==void 0&&(t.x=e),t.i=!0,dt=t.p,e!=null?e:{}}function Zs(){return!0}let br=[];function Js(){var e=br;br=[],Fs(e)}function ti(e){if(br.length===0&&!fn){var t=br;queueMicrotask(()=>{t===br&&Js()})}br.push(e)}function iu(){for(;br.length>0;)Js()}function Qs(e){var t=ue;if(t===null)return z.f|=dr,e;if(t.f&Jn)Qr(e,t);else{if(!(t.f&zi))throw e;t.b.error(e)}}function Qr(e,t){for(;t!==null;){if(t.f&zi)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const su=-7169;function je(e,t){e.f=e.f&su|t}function Zi(e){e.f&Ht||e.deps===null?je(e,Je):je(e,or)}function Ks(e){if(e!==null)for(const t of e)!(t.f&ze)||!(t.f&$r)||(t.f^=$r,Ks(t.deps))}function ea(e,t,r){e.f&at?t.add(e):e.f&or&&r.add(e),Ks(e.deps),je(e,Je)}const Tn=new Set;let he=null,Ye=null,Pt=[],ri=null,xi=!1,fn=!1;var jr,Vr,Er,wr,mn,Xr,Yr,Ot,Si,Ti,ta,ra;const Yn=class Yn{constructor(){J(this,Ot);Ne(this,"committed",!1);Ne(this,"current",new Map);Ne(this,"previous",new Map);J(this,jr,new Set);J(this,Vr,new Set);J(this,Er,0);J(this,wr,0);J(this,mn,null);J(this,Xr,new Set);J(this,Yr,new Set);Ne(this,"skipped_effects",new Set);Ne(this,"is_fork",!1)}is_deferred(){return this.is_fork||d(this,wr)>0}process(t){var i;Pt=[],this.apply();var r=[],n=[];for(const s of t)Ce(this,Ot,Si).call(this,s,r,n);this.is_fork||Ce(this,Ot,ta).call(this),this.is_deferred()?(Ce(this,Ot,Ti).call(this,n),Ce(this,Ot,Ti).call(this,r)):(he=null,ds(n),ds(r),(i=d(this,mn))==null||i.resolve()),Ye=null}capture(t,r){r!==Xe&&!this.previous.has(t)&&this.previous.set(t,r),t.f&dr||(this.current.set(t,t.v),Ye==null||Ye.set(t,t.v))}activate(){he=this,this.apply()}deactivate(){he===this&&(he=null,Ye=null)}flush(){if(this.activate(),Pt.length>0){if(na(),he!==null&&he!==this)return}else d(this,Er)===0&&this.process([]);this.deactivate()}discard(){for(const t of d(this,Vr))t(this);d(this,Vr).clear()}increment(t){V(this,Er,d(this,Er)+1),t&&V(this,wr,d(this,wr)+1)}decrement(t){V(this,Er,d(this,Er)-1),t&&V(this,wr,d(this,wr)-1),this.revive()}revive(){for(const t of d(this,Xr))d(this,Yr).delete(t),je(t,at),ir(t);for(const t of d(this,Yr))je(t,or),ir(t);this.flush()}oncommit(t){d(this,jr).add(t)}ondiscard(t){d(this,Vr).add(t)}settled(){var t;return((t=d(this,mn))!=null?t:V(this,mn,Us())).promise}static ensure(){if(he===null){const t=he=new Yn;Tn.add(he),fn||Yn.enqueue(()=>{he===t&&t.flush()})}return he}static enqueue(t){ti(t)}apply(){}};jr=new WeakMap,Vr=new WeakMap,Er=new WeakMap,wr=new WeakMap,mn=new WeakMap,Xr=new WeakMap,Yr=new WeakMap,Ot=new WeakSet,Si=function(t,r,n){t.f^=Je;for(var i=t.first,s=null;i!==null;){var a=i.f,u=(a&(ar|gr))!==0,o=u&&(a&Je)!==0,l=o||(a&bt)!==0||this.skipped_effects.has(i);if(!l&&i.fn!==null){u?i.f^=Je:s!==null&&a&(Dn|yn|Gs)?s.b.defer_effect(i):a&Dn?r.push(i):wn(i)&&(a&sr&&d(this,Xr).add(i),dn(i));var f=i.first;if(f!==null){i=f;continue}}var h=i.parent;for(i=i.next;i===null&&h!==null;)h===s&&(s=null),i=h.next,h=h.parent}},Ti=function(t){for(var r=0;r<t.length;r+=1)ea(t[r],d(this,Xr),d(this,Yr))},ta=function(){if(d(this,wr)===0){for(const t of d(this,jr))t();d(this,jr).clear()}d(this,Er)===0&&Ce(this,Ot,ra).call(this)},ra=function(){var i;if(Tn.size>1){this.previous.clear();var t=Ye,r=!0;for(const s of Tn){if(s===this){r=!1;continue}const a=[];for(const[o,l]of this.current){if(s.current.has(o))if(r&&l!==s.current.get(o))s.current.set(o,l);else continue;a.push(o)}if(a.length===0)continue;const u=[...s.current.keys()].filter(o=>!this.current.has(o));if(u.length>0){var n=Pt;Pt=[];const o=new Set,l=new Map;for(const f of a)ia(f,u,o,l);if(Pt.length>0){he=s,s.apply();for(const f of Pt)Ce(i=s,Ot,Si).call(i,f,[],[]);s.deactivate()}Pt=n}}he=null,Ye=t}this.committed=!0,Tn.delete(this)};let Yt=Yn;function Ze(e){var t=fn;fn=!0;try{for(var r;;){if(iu(),Pt.length===0&&(he==null||he.flush(),Pt.length===0))return ri=null,r;na()}}finally{fn=t}}function na(){var e=Mr;xi=!0;var t=null;try{var r=0;for(Un(!0);Pt.length>0;){var n=Yt.ensure();if(r++>1e3){var i,s;au()}n.process(Pt),vr.clear()}}finally{xi=!1,Un(e),ri=null}}function au(){try{Zo()}catch(e){Qr(e,ri)}}let $t=null;function ds(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(nr|bt))&&wn(n)&&($t=new Set,dn(n),n.deps===null&&n.first===null&&n.nodes===null&&(n.teardown===null&&n.ac===null?Aa(n):n.fn=null),($t==null?void 0:$t.size)>0)){vr.clear();for(const i of $t){if(i.f&(nr|bt))continue;const s=[i];let a=i.parent;for(;a!==null;)$t.has(a)&&($t.delete(a),s.push(a)),a=a.parent;for(let u=s.length-1;u>=0;u--){const o=s[u];o.f&(nr|bt)||dn(o)}}$t.clear()}}$t=null}}function ia(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;s&ze?ia(i,t,r,n):s&(qi|sr)&&!(s&at)&&sa(i,t,n)&&(je(i,at),ir(i))}}function sa(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&ze&&sa(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function ir(e){for(var t=ri=e;t.parent!==null;){t=t.parent;var r=t.f;if(xi&&t===ue&&r&sr&&!(r&js))return;if(r&(gr|ar)){if(!(r&Je))return;t.f^=Je}}Pt.push(t)}function ou(e){let t=0,r=Nr(0),n;return()=>{Ki()&&(P(r),wa(()=>(t===0&&(n=ii(()=>e(()=>hn(r)))),t+=1,()=>{ti(()=>{t-=1,t===0&&(n==null||n(),n=void 0,hn(r))})})))}}var uu=Wr|Br|zi;function lu(e,t,r){new fu(e,t,r)}var gt,gn,Ut,xr,Gt,Tt,lt,jt,Qt,lr,Sr,Kt,Tr,zr,qr,fr,zn,Le,aa,oa,Ai,Mn,Hn,Pi;class fu{constructor(t,r,n){J(this,Le);Ne(this,"parent");Ne(this,"is_pending",!1);J(this,gt);J(this,gn,te?q:null);J(this,Ut);J(this,xr);J(this,Gt);J(this,Tt,null);J(this,lt,null);J(this,jt,null);J(this,Qt,null);J(this,lr,null);J(this,Sr,0);J(this,Kt,0);J(this,Tr,!1);J(this,zr,new Set);J(this,qr,new Set);J(this,fr,null);J(this,zn,ou(()=>(V(this,fr,Nr(d(this,Sr))),()=>{V(this,fr,null)})));V(this,gt,t),V(this,Ut,r),V(this,xr,n),this.parent=ue.b,this.is_pending=!!d(this,Ut).pending,V(this,Gt,es(()=>{if(ue.b=this,te){const s=d(this,gn);Zr(),s.nodeType===Lr&&s.data===Wn?Ce(this,Le,oa).call(this):(Ce(this,Le,aa).call(this),d(this,Kt)===0&&(this.is_pending=!1))}else{var i=Ce(this,Le,Ai).call(this);try{V(this,Tt,Mt(()=>n(i)))}catch(s){this.error(s)}d(this,Kt)>0?Ce(this,Le,Hn).call(this):this.is_pending=!1}return()=>{var s;(s=d(this,lr))==null||s.remove()}},uu)),te&&V(this,gt,q)}defer_effect(t){ea(t,d(this,zr),d(this,qr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!d(this,Ut).pending}update_pending_count(t){Ce(this,Le,Pi).call(this,t),V(this,Sr,d(this,Sr)+t),d(this,fr)&&Kr(d(this,fr),d(this,Sr))}get_effect_pending(){return d(this,zn).call(this),P(d(this,fr))}error(t){var r=d(this,Ut).onerror;let n=d(this,Ut).failed;if(d(this,Tr)||!r&&!n)throw t;d(this,Tt)&&(it(d(this,Tt)),V(this,Tt,null)),d(this,lt)&&(it(d(this,lt)),V(this,lt,null)),d(this,jt)&&(it(d(this,jt)),V(this,jt,null)),te&&(Qe(d(this,gn)),Wi(),Qe(In()));var i=!1,s=!1;const a=()=>{if(i){ru();return}i=!0,s&&tu(),Yt.ensure(),V(this,Sr,0),d(this,jt)!==null&&Pr(d(this,jt),()=>{V(this,jt,null)}),this.is_pending=this.has_pending_snippet(),V(this,Tt,Ce(this,Le,Mn).call(this,()=>(V(this,Tr,!1),Mt(()=>d(this,xr).call(this,d(this,gt)))))),d(this,Kt)>0?Ce(this,Le,Hn).call(this):this.is_pending=!1};var u=z;try{ht(null),s=!0,r==null||r(t,a),s=!1}catch(o){Qr(o,d(this,Gt)&&d(this,Gt).parent)}finally{ht(u)}n&&ti(()=>{V(this,jt,Ce(this,Le,Mn).call(this,()=>{Yt.ensure(),V(this,Tr,!0);try{return Mt(()=>{n(d(this,gt),()=>t,()=>a)})}catch(o){return Qr(o,d(this,Gt).parent),null}finally{V(this,Tr,!1)}}))})}}gt=new WeakMap,gn=new WeakMap,Ut=new WeakMap,xr=new WeakMap,Gt=new WeakMap,Tt=new WeakMap,lt=new WeakMap,jt=new WeakMap,Qt=new WeakMap,lr=new WeakMap,Sr=new WeakMap,Kt=new WeakMap,Tr=new WeakMap,zr=new WeakMap,qr=new WeakMap,fr=new WeakMap,zn=new WeakMap,Le=new WeakSet,aa=function(){try{V(this,Tt,Mt(()=>d(this,xr).call(this,d(this,gt))))}catch(t){this.error(t)}},oa=function(){const t=d(this,Ut).pending;t&&(V(this,lt,Mt(()=>t(d(this,gt)))),Yt.enqueue(()=>{var r=Ce(this,Le,Ai).call(this);V(this,Tt,Ce(this,Le,Mn).call(this,()=>(Yt.ensure(),Mt(()=>d(this,xr).call(this,r))))),d(this,Kt)>0?Ce(this,Le,Hn).call(this):(Pr(d(this,lt),()=>{V(this,lt,null)}),this.is_pending=!1)}))},Ai=function(){var t=d(this,gt);return this.is_pending&&(V(this,lr,ct()),d(this,gt).before(d(this,lr)),t=d(this,lr)),t},Mn=function(t){var r=ue,n=z,i=dt;qt(d(this,Gt)),ht(d(this,Gt)),Jr(d(this,Gt).ctx);try{return t()}catch(s){return Qs(s),null}finally{qt(r),ht(n),Jr(i)}},Hn=function(){const t=d(this,Ut).pending;d(this,Tt)!==null&&(V(this,Qt,document.createDocumentFragment()),d(this,Qt).append(d(this,lr)),Ha(d(this,Tt),d(this,Qt))),d(this,lt)===null&&V(this,lt,Mt(()=>t(d(this,gt))))},Pi=function(t){var r;if(!this.has_pending_snippet()){this.parent&&Ce(r=this.parent,Le,Pi).call(r,t);return}if(V(this,Kt,d(this,Kt)+t),d(this,Kt)===0){this.is_pending=!1;for(const n of d(this,zr))je(n,at),ir(n);for(const n of d(this,qr))je(n,or),ir(n);d(this,zr).clear(),d(this,qr).clear(),d(this,lt)&&Pr(d(this,lt),()=>{V(this,lt,null)}),d(this,Qt)&&(d(this,gt).before(d(this,Qt)),V(this,Qt,null))}};function hu(e,t,r,n){const i=ni;if(r.length===0&&e.length===0){n(t.map(i));return}var s=he,a=ue,u=cu();function o(){Promise.all(r.map(l=>du(l))).then(l=>{u();try{n([...t.map(i),...l])}catch(f){a.f&nr||Qr(f,a)}s==null||s.deactivate(),kn()}).catch(l=>{Qr(l,a)})}e.length>0?Promise.all(e).then(()=>{u();try{return o()}finally{s==null||s.deactivate(),kn()}}):o()}function cu(){var e=ue,t=z,r=dt,n=he;return function(s=!0){qt(e),ht(t),Jr(r),s&&(n==null||n.activate())}}function kn(){qt(null),ht(null),Jr(null)}function ni(e){var t=ze|at,r=z!==null&&z.f&ze?z:null;return ue!==null&&(ue.f|=Br),{ctx:dt,deps:null,effects:null,equals:zs,f:t,fn:e,reactions:null,rv:0,v:Xe,wv:0,parent:r!=null?r:ue,ac:null}}function du(e,t,r){let n=ue;n===null&&Yo();var i=n.b,s=void 0,a=Nr(Xe),u=!z,o=new Map;return Eu(()=>{var g;var l=Us();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===he&&f.committed&&f.deactivate(),kn()})}catch(S){l.reject(S),kn()}var f=he;if(u){var h=i.is_rendered();i.update_pending_count(1),f.increment(h),(g=o.get(f))==null||g.reject(Fr),o.delete(f),o.set(f,l)}const c=(S,$=void 0)=>{if(f.activate(),$)$!==Fr&&(a.f|=dr,Kr(a,$));else{a.f&dr&&(a.f^=dr),Kr(a,S);for(const[v,b]of o){if(o.delete(v),v===f)break;b.reject(Fr)}}u&&(i.update_pending_count(-1),f.decrement(h))};l.promise.then(c,S=>c(null,S||"unknown"))}),ba(()=>{for(const l of o.values())l.reject(Fr)}),new Promise(l=>{function f(h){function c(){h===s?l(a):f(s)}h.then(c,c)}f(s)})}function On(e){const t=ni(e);return Oa(t),t}function vu(e){const t=ni(e);return t.equals=Ws,t}function ua(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)it(t[r])}}function pu(e){for(var t=e.parent;t!==null;){if(!(t.f&ze))return t.f&nr?null:t;t=t.parent}return null}function Ji(e){var t,r=ue;qt(pu(e));try{e.f&=~$r,ua(e),t=La(e)}finally{qt(r)}return t}function la(e){var t=Ji(e);if(!e.equals(t)&&(e.wv=Na(),(!(he!=null&&he.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){je(e,Je);return}pr||(Ye!==null?(Ki()||he!=null&&he.is_fork)&&Ye.set(e,t):Zi(e))}let Mi=new Set;const vr=new Map;let fa=!1;function Nr(e,t){var r={f:0,v:e,reactions:null,equals:zs,rv:0,wv:0};return r}function De(e,t){const r=Nr(e);return Oa(r),r}function Qi(e,t=!1,r=!0){const n=Nr(e);return t||(n.equals=Ws),n}function xe(e,t,r=!1){z!==null&&(!Lt||z.f&cs)&&Zs()&&z.f&(ze|sr|qi|cs)&&!(st!=null&&st.includes(e))&&eu();let n=r?Ur(t):t;return Kr(e,n)}function Kr(e,t){if(!e.equals(t)){var r=e.v;pr?vr.set(e,t):vr.set(e,r),e.v=t;var n=Yt.ensure();if(n.capture(e,r),e.f&ze){const i=e;e.f&at&&Ji(i),Zi(i)}e.wv=Na(),ha(e,at),ue!==null&&ue.f&Je&&!(ue.f&(ar|gr))&&(St===null?xu([e]):St.push(e)),!n.is_fork&&Mi.size>0&&!fa&&mu()}return t}function mu(){fa=!1;var e=Mr;Un(!0);const t=Array.from(Mi);try{for(const r of t)r.f&Je&&je(r,or),wn(r)&&dn(r)}finally{Un(e)}Mi.clear()}function hn(e){xe(e,e.v+1)}function ha(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,u=(a&at)===0;if(u&&je(s,t),a&ze){var o=s;Ye==null||Ye.delete(o),a&$r||(a&Ht&&(s.f|=$r),ha(o,or))}else u&&(a&sr&&$t!==null&&$t.add(s),ir(s))}}function Ur(e){if(typeof e!="object"||e===null||vi in e)return e;const t=ks(e);if(t!==Go&&t!==jo)return e;var r=new Map,n=Is(e),i=De(0),s=Hr,a=u=>{if(Hr===s)return u();var o=z,l=Hr;ht(null),ms(s);var f=u();return ht(o),ms(l),f};return n&&r.set("length",De(e.length)),new Proxy(e,{defineProperty(u,o,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Qo();var f=r.get(o);return f===void 0?f=a(()=>{var h=De(l.value);return r.set(o,h),h}):xe(f,l.value,!0),!0},deleteProperty(u,o){var l=r.get(o);if(l===void 0){if(o in u){const f=a(()=>De(Xe));r.set(o,f),hn(i)}}else xe(l,Xe),hn(i);return!0},get(u,o,l){var g;if(o===vi)return e;var f=r.get(o),h=o in u;if(f===void 0&&(!h||(g=Gr(u,o))!=null&&g.writable)&&(f=a(()=>{var S=Ur(h?u[o]:Xe),$=De(S);return $}),r.set(o,f)),f!==void 0){var c=P(f);return c===Xe?void 0:c}return Reflect.get(u,o,l)},getOwnPropertyDescriptor(u,o){var l=Reflect.getOwnPropertyDescriptor(u,o);if(l&&"value"in l){var f=r.get(o);f&&(l.value=P(f))}else if(l===void 0){var h=r.get(o),c=h==null?void 0:h.v;if(h!==void 0&&c!==Xe)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(u,o){var c;if(o===vi)return!0;var l=r.get(o),f=l!==void 0&&l.v!==Xe||Reflect.has(u,o);if(l!==void 0||ue!==null&&(!f||(c=Gr(u,o))!=null&&c.writable)){l===void 0&&(l=a(()=>{var g=f?Ur(u[o]):Xe,S=De(g);return S}),r.set(o,l));var h=P(l);if(h===Xe)return!1}return f},set(u,o,l,f){var T;var h=r.get(o),c=o in u;if(n&&o==="length")for(var g=l;g<h.v;g+=1){var S=r.get(g+"");S!==void 0?xe(S,Xe):g in u&&(S=a(()=>De(Xe)),r.set(g+"",S))}if(h===void 0)(!c||(T=Gr(u,o))!=null&&T.writable)&&(h=a(()=>De(void 0)),xe(h,Ur(l)),r.set(o,h));else{c=h.v!==Xe;var $=a(()=>Ur(l));xe(h,$)}var v=Reflect.getOwnPropertyDescriptor(u,o);if(v!=null&&v.set&&v.set.call(f,l),!c){if(n&&typeof o=="string"){var b=r.get("length"),L=Number(o);Number.isInteger(L)&&L>=b.v&&xe(b,L+1)}hn(i)}return!0},ownKeys(u){P(i);var o=Reflect.ownKeys(u).filter(h=>{var c=r.get(h);return c===void 0||c.v!==Xe});for(var[l,f]of r)f.v!==Xe&&!(l in u)&&o.push(l);return o},setPrototypeOf(){Ko()}})}var vs,ca,da,va;function Hi(){if(vs===void 0){vs=window,ca=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;da=Gr(t,"firstChild").get,va=Gr(t,"nextSibling").get,hs(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),hs(r)&&(r.__t=void 0)}}function ct(e=""){return document.createTextNode(e)}function Bt(e){return da.call(e)}function Rt(e){return va.call(e)}function Q(e,t){if(!te)return Bt(e);var r=Bt(q);if(r===null)r=q.appendChild(ct());else if(t&&r.nodeType!==Qn){var n=ct();return r==null||r.before(n),Qe(n),n}return Qe(r),r}function Jt(e,t=!1){if(!te){var r=Bt(e);return r instanceof Comment&&r.data===""?Rt(r):r}if(t&&(q==null?void 0:q.nodeType)!==Qn){var n=ct();return q==null||q.before(n),Qe(n),n}return q}function Ge(e,t=1,r=!1){let n=te?q:e;for(var i;t--;)i=n,n=Rt(n);if(!te)return n;if(r&&(n==null?void 0:n.nodeType)!==Qn){var s=ct();return n===null?i==null||i.after(s):n.before(s),Qe(s),s}return Qe(n),n}function pa(e){e.textContent=""}function ma(){return!1}function ga(e){var t=z,r=ue;ht(null),qt(null);try{return e()}finally{ht(t),qt(r)}}function _a(e){ue===null&&(z===null&&Wo(),qo()),pr&&zo()}function gu(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Ct(e,t,r){var u;var n=ue;n!==null&&n.f&bt&&(e|=bt);var i={ctx:dt,deps:null,nodes:null,f:e|at|Ht,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{dn(i),i.f|=Jn}catch(o){throw it(i),o}else t!==null&&ir(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&Br)&&(s=s.first,e&sr&&e&Wr&&s!==null&&(s.f|=Wr)),s!==null&&(s.parent=n,n!==null&&gu(s,n),z!==null&&z.f&ze&&!(e&gr))){var a=z;((u=a.effects)!=null?u:a.effects=[]).push(s)}return i}function Ki(){return z!==null&&!Lt}function ba(e){const t=Ct(yn,null,!1);return je(t,Je),t.teardown=e,t}function Fn(e){var i;_a();var t=ue.f,r=!z&&(t&ar)!==0&&(t&Jn)===0;if(r){var n=dt;((i=n.e)!=null?i:n.e=[]).push(e)}else return ya(e)}function ya(e){return Ct(Dn|Vs,e,!1)}function Ea(e){return _a(),Ct(yn|Vs,e,!0)}function _u(e){Yt.ensure();const t=Ct(gr|Br,e,!0);return()=>{it(t)}}function bu(e){Yt.ensure();const t=Ct(gr|Br,e,!0);return(r={})=>new Promise(n=>{r.outro?Pr(t,()=>{it(t),n(void 0)}):(it(t),n(void 0))})}function yu(e){return Ct(Dn,e,!1)}function Eu(e){return Ct(qi|Br,e,!0)}function wa(e,t=0){return Ct(yn|t,e,!0)}function xt(e,t=[],r=[],n=[]){hu(n,t,r,i=>{Ct(yn,()=>e(...i.map(P)),!0)})}function es(e,t=0){var r=Ct(sr|t,e,!0);return r}function Mt(e){return Ct(ar|Br,e,!0)}function xa(e){var t=e.teardown;if(t!==null){const r=pr,n=z;ps(!0),ht(null);try{t.call(null)}finally{ps(r),ht(n)}}}function Sa(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&ga(()=>{i.abort(Fr)});var n=r.next;r.f&gr?r.parent=null:it(r,t),r=n}}function wu(e){for(var t=e.first;t!==null;){var r=t.next;t.f&ar||it(t),t=r}}function it(e,t=!0){var r=!1;(t||e.f&js)&&e.nodes!==null&&e.nodes.end!==null&&(Ta(e.nodes.start,e.nodes.end),r=!0),Sa(e,t&&!r),Gn(e,0),je(e,nr);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();xa(e);var i=e.parent;i!==null&&i.first!==null&&Aa(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ta(e,t){for(;e!==null;){var r=e===t?null:Rt(e);e.remove(),e=r}}function Aa(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Pr(e,t,r=!0){var n=[];Pa(e,n,!0);var i=()=>{r&&it(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var u of n)u.out(a)}else i()}function Pa(e,t,r){if(!(e.f&bt)){e.f^=bt;var n=e.nodes&&e.nodes.t;if(n!==null)for(const u of n)(u.is_global||r)&&t.push(u);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&Wr)!==0||(i.f&ar)!==0&&(e.f&sr)!==0;Pa(i,t,a?r:!1),i=s}}}function ts(e){Ma(e,!0)}function Ma(e,t){if(e.f&bt){e.f^=bt,e.f&Je||(je(e,at),ir(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Wr)!==0||(r.f&ar)!==0;Ma(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function Ha(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Rt(r);t.append(r),r=i}}let Mr=!1;function Un(e){Mr=e}let pr=!1;function ps(e){pr=e}let z=null,Lt=!1;function ht(e){z=e}let ue=null;function qt(e){ue=e}let st=null;function Oa(e){z!==null&&(st===null?st=[e]:st.push(e))}let ft=null,mt=0,St=null;function xu(e){St=e}let $a=1,yr=0,Hr=yr;function ms(e){Hr=e}function Na(){return++$a}function wn(e){var t=e.f;if(t&at)return!0;if(t&ze&&(e.f&=~$r),t&or){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(wn(s)&&la(s),s.wv>e.wv)return!0}t&Ht&&Ye===null&&je(e,Je)}return!1}function Ba(e,t,r=!0){var n=e.reactions;if(n!==null&&!(st!=null&&st.includes(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&ze?Ba(s,t,!1):t===s&&(r?je(s,at):s.f&Je&&je(s,or),ir(s))}}function La(e){var S,$;var t=ft,r=mt,n=St,i=z,s=st,a=dt,u=Lt,o=Hr,l=e.f;ft=null,mt=0,St=null,z=l&(ar|gr)?null:e,st=null,Jr(e.ctx),Lt=!1,Hr=++yr,e.ac!==null&&(ga(()=>{e.ac.abort(Fr)}),e.ac=null);try{e.f|=wi;var f=e.fn,h=f(),c=e.deps;if(ft!==null){var g;if(Gn(e,mt),c!==null&&mt>0)for(c.length=mt+ft.length,g=0;g<ft.length;g++)c[mt+g]=ft[g];else e.deps=c=ft;if(Ki()&&e.f&Ht)for(g=mt;g<c.length;g++)(($=(S=c[g]).reactions)!=null?$:S.reactions=[]).push(e)}else c!==null&&mt<c.length&&(Gn(e,mt),c.length=mt);if(Zs()&&St!==null&&!Lt&&c!==null&&!(e.f&(ze|or|at)))for(g=0;g<St.length;g++)Ba(St[g],e);if(i!==null&&i!==e){if(yr++,i.deps!==null)for(let v=0;v<r;v+=1)i.deps[v].rv=yr;if(t!==null)for(const v of t)v.rv=yr;St!==null&&(n===null?n=St:n.push(...St))}return e.f&dr&&(e.f^=dr),h}catch(v){return Qs(v)}finally{e.f^=wi,ft=t,mt=r,St=n,z=i,st=s,Jr(a),Lt=u,Hr=o}}function Su(e,t){let r=t.reactions;if(r!==null){var n=Fo.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&t.f&ze&&(ft===null||!ft.includes(t))){var s=t;s.f&Ht&&(s.f^=Ht,s.f&=~$r),Zi(s),ua(s),Gn(s,0)}}function Gn(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Su(e,r[n])}function dn(e){var t=e.f;if(!(t&nr)){je(e,Je);var r=ue,n=Mr;ue=e,Mr=!0;try{t&(sr|Gs)?wu(e):Sa(e),xa(e);var i=La(e);e.teardown=typeof i=="function"?i:null,e.wv=$a;var s;Ei&&nu&&e.f&at&&e.deps}finally{Mr=n,ue=r}}}function P(e){var f;var t=e.f,r=(t&ze)!==0;if(z!==null&&!Lt){var n=ue!==null&&(ue.f&nr)!==0;if(!n&&!(st!=null&&st.includes(e))){var i=z.deps;if(z.f&wi)e.rv<yr&&(e.rv=yr,ft===null&&i!==null&&i[mt]===e?mt++:ft===null?ft=[e]:ft.push(e));else{((f=z.deps)!=null?f:z.deps=[]).push(e);var s=e.reactions;s===null?e.reactions=[z]:s.includes(z)||s.push(z)}}}if(pr&&vr.has(e))return vr.get(e);if(r){var a=e;if(pr){var u=a.v;return(!(a.f&Je)&&a.reactions!==null||Ca(a))&&(u=Ji(a)),vr.set(a,u),u}var o=(a.f&Ht)===0&&!Lt&&z!==null&&(Mr||(z.f&Ht)!==0),l=a.deps===null;wn(a)&&(o&&(a.f|=Ht),la(a)),o&&!l&&Ra(a)}if(Ye!=null&&Ye.has(e))return Ye.get(e);if(e.f&dr)throw e.v;return e.v}function Ra(e){var t;if(e.deps!==null){e.f|=Ht;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),r.f&ze&&!(r.f&Ht)&&Ra(r)}}function Ca(e){if(e.v===Xe)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(vr.has(t)||t.f&ze&&Ca(t))return!0;return!1}function ii(e){var t=Lt;try{return Lt=!0,e()}finally{Lt=t}}const Da=new Set,Oi=new Set;function Ia(e){for(var t=0;t<e.length;t++)Da.add(e[t]);for(var r of Oi)r(e)}let gs=null;function An(e){var v;var t=this,r=t.ownerDocument,n=e.type,i=((v=e.composedPath)==null?void 0:v.call(e))||[],s=i[0]||e.target;gs=e;var a=0,u=gs===e&&e.__root;if(u){var o=i.indexOf(u);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var l=i.indexOf(t);if(l===-1)return;o<=l&&(a=o)}if(s=i[a]||e.target,s!==t){cn(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=z,h=ue;ht(null),qt(null);try{for(var c,g=[];s!==null;){var S=s.assignedSlot||s.parentNode||s.host||null;try{var $=s["__"+n];$!=null&&(!s.disabled||e.target===s)&&$.call(s,e)}catch(b){c?g.push(b):c=b}if(e.cancelBubble||S===t||S===null)break;s=S}if(c){for(let b of g)queueMicrotask(()=>{throw b});throw c}}finally{e.__root=t,delete e.currentTarget,ht(f),qt(h)}}}function ka(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function zt(e,t){var r=ue;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function ot(e,t){var r=(t&Do)!==0,n=(t&Io)!==0,i,s=!e.startsWith("<!>");return()=>{if(te)return zt(q,null),q;i===void 0&&(i=ka(s?e:"<!>"+e),r||(i=Bt(i)));var a=n||ca?document.importNode(i,!0):i.cloneNode(!0);if(r){var u=Bt(a),o=a.lastChild;zt(u,o)}else zt(a,a);return a}}function Tu(e=""){if(!te){var t=ct(e+"");return zt(t,t),t}var r=q;return r.nodeType!==Qn&&(r.before(r=ct()),Qe(r)),zt(r,r),r}function _r(){if(te)return zt(q,null),q;var e=document.createDocumentFragment(),t=document.createComment(""),r=ct();return e.append(t,r),zt(t,r),e}function Oe(e,t){if(te){var r=ue;(!(r.f&Jn)||r.nodes.end===null)&&(r.nodes.end=q),Zr();return}e!==null&&e.before(t)}const Au=["touchstart","touchmove"];function Pu(e){return Au.includes(e)}function He(e,t){var n;var r=t==null?"":typeof t=="object"?t+"":t;r!==((n=e.__t)!=null?n:e.__t=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Fa(e,t){return Ua(e,t)}function Mu(e,t){var a;Hi(),t.intro=(a=t.intro)!=null?a:!1;const r=t.target,n=te,i=q;try{for(var s=Bt(r);s&&(s.nodeType!==Lr||s.data!==Ds);)s=Rt(s);if(!s)throw Or;rr(!0),Qe(s);const u=Ua(e,Sn(xn({},t),{anchor:s}));return rr(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw u;return u!==Or&&console.warn("Failed to hydrate: ",u),t.recover===!1&&Jo(),Hi(),pa(r),rr(!1),Fa(e,t)}finally{rr(n),Qe(i)}}const Dr=new Map;function Ua(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){Hi();var u=new Set,o=h=>{for(var c=0;c<h.length;c++){var g=h[c];if(!u.has(g)){u.add(g);var S=Pu(g);t.addEventListener(g,An,{passive:S});var $=Dr.get(g);$===void 0?(document.addEventListener(g,An,{passive:S}),Dr.set(g,1)):Dr.set(g,$+1)}}};o(Zn(Da)),Oi.add(o);var l=void 0,f=bu(()=>{var h=r!=null?r:t.appendChild(ct());return lu(h,{pending:()=>{}},c=>{if(s){Kn({});var g=dt;g.c=s}if(i&&(n.$$events=i),te&&zt(c,null),l=e(c,n)||{},te&&(ue.nodes.end=q,q===null||q.nodeType!==Lr||q.data!==Yi))throw En(),Or;s&&ei()}),()=>{var S;for(var c of u){t.removeEventListener(c,An);var g=Dr.get(c);--g===0?(document.removeEventListener(c,An),Dr.delete(c)):Dr.set(c,g)}Oi.delete(o),h!==r&&((S=h.parentNode)==null||S.removeChild(h))}});return $i.set(l,f),l}let $i=new WeakMap;function Hu(e,t){const r=$i.get(e);return r?($i.delete(e),r(t)):Promise.resolve()}var Nt,Vt,_t,Ar,_n,bn,qn;class Ou{constructor(t,r=!0){Ne(this,"anchor");J(this,Nt,new Map);J(this,Vt,new Map);J(this,_t,new Map);J(this,Ar,new Set);J(this,_n,!0);J(this,bn,()=>{var t=he;if(d(this,Nt).has(t)){var r=d(this,Nt).get(t),n=d(this,Vt).get(r);if(n)ts(n),d(this,Ar).delete(r);else{var i=d(this,_t).get(r);i&&(d(this,Vt).set(r,i.effect),d(this,_t).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of d(this,Nt)){if(d(this,Nt).delete(s),s===t)break;const u=d(this,_t).get(a);u&&(it(u.effect),d(this,_t).delete(a))}for(const[s,a]of d(this,Vt)){if(s===r||d(this,Ar).has(s))continue;const u=()=>{if(Array.from(d(this,Nt).values()).includes(s)){var l=document.createDocumentFragment();Ha(a,l),l.append(ct()),d(this,_t).set(s,{effect:a,fragment:l})}else it(a);d(this,Ar).delete(s),d(this,Vt).delete(s)};d(this,_n)||!n?(d(this,Ar).add(s),Pr(a,u,!1)):u()}}});J(this,qn,t=>{d(this,Nt).delete(t);const r=Array.from(d(this,Nt).values());for(const[n,i]of d(this,_t))r.includes(n)||(it(i.effect),d(this,_t).delete(n))});this.anchor=t,V(this,_n,r)}ensure(t,r){var n=he,i=ma();if(r&&!d(this,Vt).has(t)&&!d(this,_t).has(t))if(i){var s=document.createDocumentFragment(),a=ct();s.append(a),d(this,_t).set(t,{effect:Mt(()=>r(a)),fragment:s})}else d(this,Vt).set(t,Mt(()=>r(this.anchor)));if(d(this,Nt).set(n,t),i){for(const[u,o]of d(this,Vt))u===t?n.skipped_effects.delete(o):n.skipped_effects.add(o);for(const[u,o]of d(this,_t))u===t?n.skipped_effects.delete(o.effect):n.skipped_effects.add(o.effect);n.oncommit(d(this,bn)),n.ondiscard(d(this,qn))}else te&&(this.anchor=q),d(this,bn).call(this)}}Nt=new WeakMap,Vt=new WeakMap,_t=new WeakMap,Ar=new WeakMap,_n=new WeakMap,bn=new WeakMap,qn=new WeakMap;function rs(e){dt===null&&Xs(),Fn(()=>{const t=ii(e);if(typeof t=="function")return t})}function $u(e){dt===null&&Xs(),rs(()=>()=>ii(e))}function Ft(e,t,r=!1){te&&Zr();var n=new Ou(e),i=r?Wr:0;function s(a,u){if(te){const l=Ys(e)===Wn;if(a===l){var o=In();Qe(o),n.anchor=o,rr(!1),n.ensure(a,u),rr(!0);return}}n.ensure(a,u)}es(()=>{var a=!1;t((u,o=!0)=>{a=!0,s(o,u)}),a||s(!1,null)},i)}function $n(e,t){return t}function Nu(e,t,r){var h;for(var n=[],i=t.length,s,a=t.length,u=0;u<i;u++){let c=t[u];Pr(c,()=>{if(s){if(s.pending.delete(c),s.done.add(c),s.pending.size===0){var g=e.outrogroups;Ni(Zn(s.done)),g.delete(s),g.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var o=n.length===0&&r!==null;if(o){var l=r,f=l.parentNode;pa(f),f.append(l),e.items.clear()}Ni(t,!o)}else s={pending:new Set(t),done:new Set},((h=e.outrogroups)!=null?h:e.outrogroups=new Set).add(s)}function Ni(e,t=!0){for(var r=0;r<e.length;r++)it(e[r],t)}var Ir;function Nn(e,t,r,n,i,s=null){var a=e,u=new Map,o=(t&Cs)!==0;if(o){var l=e;a=te?Qe(Bt(l)):l.appendChild(ct())}te&&Zr();var f=null,h=vu(()=>{var b=r();return Is(b)?b:b==null?[]:Zn(b)}),c,g=!0;function S(){v.fallback=f,Bu(v,c,a,t,n),f!==null&&(c.length===0?f.f&tr?(f.f^=tr,ln(f,null,a)):ts(f):Pr(f,()=>{f=null}))}var $=es(()=>{c=P(h);var b=c.length;let L=!1;if(te){var T=Ys(a)===Wn;T!==(b===0)&&(a=In(),Qe(a),rr(!1),L=!0)}for(var R=new Set,G=he,X=ma(),W=0;W<b;W+=1){te&&q.nodeType===Lr&&q.data===Yi&&(a=q,L=!0,rr(!1));var ne=c[W],ie=n(ne,W),C=g?null:u.get(ie);C?(C.v&&Kr(C.v,ne),C.i&&Kr(C.i,W),X&&G.skipped_effects.delete(C.e)):(C=Lu(u,g?a:Ir!=null?Ir:Ir=ct(),ne,ie,W,i,t,r),g||(C.e.f|=tr),u.set(ie,C)),R.add(ie)}if(b===0&&s&&!f&&(g?f=Mt(()=>s(a)):(f=Mt(()=>s(Ir!=null?Ir:Ir=ct())),f.f|=tr)),te&&b>0&&Qe(In()),!g)if(X){for(const[I,se]of u)R.has(I)||G.skipped_effects.add(se.e);G.oncommit(S),G.ondiscard(()=>{})}else S();L&&rr(!0),P(h)}),v={effect:$,items:u,outrogroups:null,fallback:f};g=!1,te&&(a=q)}function Bu(e,t,r,n,i){var C,I,se,_e,O,E,_,A,y;var s=(n&Ro)!==0,a=t.length,u=e.items,o=e.effect.first,l,f=null,h,c=[],g=[],S,$,v,b;if(s)for(b=0;b<a;b+=1)S=t[b],$=i(S,b),v=u.get($).e,v.f&tr||((I=(C=v.nodes)==null?void 0:C.a)==null||I.measure(),(h!=null?h:h=new Set).add(v));for(b=0;b<a;b+=1){if(S=t[b],$=i(S,b),v=u.get($).e,e.outrogroups!==null)for(const M of e.outrogroups)M.pending.delete(v),M.done.delete(v);if(v.f&tr)if(v.f^=tr,v===o)ln(v,null,r);else{var L=f?f.next:o;v===e.effect.last&&(e.effect.last=v.prev),v.prev&&(v.prev.next=v.next),v.next&&(v.next.prev=v.prev),ur(e,f,v),ur(e,v,L),ln(v,L,r),f=v,c=[],g=[],o=f.next;continue}if(v.f&bt&&(ts(v),s&&((_e=(se=v.nodes)==null?void 0:se.a)==null||_e.unfix(),(h!=null?h:h=new Set).delete(v))),v!==o){if(l!==void 0&&l.has(v)){if(c.length<g.length){var T=g[0],R;f=T.prev;var G=c[0],X=c[c.length-1];for(R=0;R<c.length;R+=1)ln(c[R],T,r);for(R=0;R<g.length;R+=1)l.delete(g[R]);ur(e,G.prev,X.next),ur(e,f,G),ur(e,X,T),o=T,f=X,b-=1,c=[],g=[]}else l.delete(v),ln(v,o,r),ur(e,v.prev,v.next),ur(e,v,f===null?e.effect.first:f.next),ur(e,f,v),f=v;continue}for(c=[],g=[];o!==null&&o!==v;)(l!=null?l:l=new Set).add(o),g.push(o),o=o.next;if(o===null)continue}v.f&tr||c.push(v),f=v,o=v.next}if(e.outrogroups!==null){for(const M of e.outrogroups)M.pending.size===0&&(Ni(Zn(M.done)),(O=e.outrogroups)==null||O.delete(M));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||l!==void 0){var W=[];if(l!==void 0)for(v of l)v.f&bt||W.push(v);for(;o!==null;)!(o.f&bt)&&o!==e.fallback&&W.push(o),o=o.next;var ne=W.length;if(ne>0){var ie=n&Cs&&a===0?r:null;if(s){for(b=0;b<ne;b+=1)(_=(E=W[b].nodes)==null?void 0:E.a)==null||_.measure();for(b=0;b<ne;b+=1)(y=(A=W[b].nodes)==null?void 0:A.a)==null||y.fix()}Nu(e,W,ie)}}s&&ti(()=>{var M,N;if(h!==void 0)for(v of h)(N=(M=v.nodes)==null?void 0:M.a)==null||N.apply()})}function Lu(e,t,r,n,i,s,a,u){var o=a&Bo?a&Co?Nr(r):Qi(r,!1,!1):null,l=a&Lo?Nr(i):null;return{v:o,i:l,e:Mt(()=>(s(t,o!=null?o:r,l!=null?l:i,u),()=>{e.delete(n)}))}}function ln(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&tr)?t.nodes.start:r;n!==null;){var a=Rt(n);if(s.before(n),n===i)return;n=a}}function ur(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Ru(e,t,r=!1,n=!1,i=!1){var s=e,a="";xt(()=>{var c;var u=ue;if(a===(a=(c=t())!=null?c:"")){te&&Zr();return}if(u.nodes!==null&&(Ta(u.nodes.start,u.nodes.end),u.nodes=null),a!==""){if(te){q.data;for(var o=Zr(),l=o;o!==null&&(o.nodeType!==Lr||o.data!=="");)l=o,o=Rt(o);if(o===null)throw En(),Or;zt(q,l),s=Qe(o);return}var f=a+"";r?f=`<svg>${f}</svg>`:n&&(f=`<math>${f}</math>`);var h=ka(f);if((r||n)&&(h=Bt(h)),zt(Bt(h),h.lastChild),r||n)for(;Bt(h);)s.before(Bt(h));else s.before(h)}})}function Ga(e,t){yu(()=>{var i;var r=e.getRootNode(),n=r.host?r:(i=r.head)!=null?i:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function ja(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=ja(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Cu(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ja(e))&&(n&&(n+=" "),n+=t);return n}function Va(e){return typeof e=="object"?Cu(e):e!=null?e:""}const _s=[...`
|
|
3
|
-
\r\f \v\uFEFF`];function Du(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i in r)if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,a=0;(a=n.indexOf(i,a))>=0;){var u=a+s;(a===0||_s.includes(n[a-1]))&&(u===n.length||_s.includes(n[u]))?n=(a===0?"":n.substring(0,a))+n.substring(u+1):a=u}}return n===""?null:n}function Iu(e,t){return e==null?null:String(e)}function Bi(e,t,r,n,i,s){var a=e.__className;if(te||a!==r||a===void 0){var u=Du(r,n,s);(!te||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):e.className=u),e.__className=r}else if(s&&i!==s)for(var o in s){var l=!!s[o];(i==null||l!==!!i[o])&&e.classList.toggle(o,l)}return s}function ku(e,t,r,n){var i=e.__style;if(te||i!==t){var s=Iu(t);(!te||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Fu=Symbol("is custom element"),Uu=Symbol("is html");function Gu(e,t,r,n){var i=ju(e);te&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Xo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Vu(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ju(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[Fu]:e.nodeName.includes("-"),[Uu]:e.namespaceURI===ko}}var bs=new Map;function Vu(e){var t=e.getAttribute("is")||e.nodeName,r=bs.get(t);if(r)return r;bs.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Uo(i);for(var a in n)n[a].set&&r.push(a);i=ks(i)}return r}function ns(e,t,r){if(e==null)return t(void 0),r&&r(void 0),cr;const n=ii(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const kr=[];function Xu(e,t){return{subscribe:si(e,t).subscribe}}function si(e,t=cr){let r=null;const n=new Set;function i(u){if(qs(e,u)&&(e=u,r)){const o=!kr.length;for(const l of n)l[1](),kr.push(l,e);if(o){for(let l=0;l<kr.length;l+=2)kr[l][0](kr[l+1]);kr.length=0}}}function s(u){i(u(e))}function a(u,o=cr){const l=[u,o];return n.add(l),n.size===1&&(r=t(i,s)||cr),u(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function sn(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return Xu(r,(a,u)=>{let o=!1;const l=[];let f=0,h=cr;const c=()=>{if(f)return;h();const S=t(n?l[0]:l,a,u);s?a(S):h=typeof S=="function"?S:cr},g=i.map((S,$)=>ns(S,v=>{l[$]=v,f&=~(1<<$),o&&c()},()=>{f|=1<<$}));return o=!0,c(),function(){Fs(g),h(),o=!1}})}function Yu(e){let t;return ns(e,r=>t=r)(),t}let Li=Symbol();function Xa(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:Qi(void 0),unsubscribe:cr};if(n.store!==e&&!(Li in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=cr;else{var i=!0;n.unsubscribe=ns(e,a=>{i?n.source.v=a:xe(n.source,a)}),i=!1}return e&&Li in r?Yu(e):P(n.source)}function Ya(){const e={};function t(){ba(()=>{for(var r in e)e[r].unsubscribe();cn(e,Li,{enumerable:!1,value:!0})})}return[e,t]}function nt(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),u;u=e[t],u===void 0&&n!==void 0&&(u=a());var o;o=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var l=!1,f=ni(()=>(l=!1,o())),h=ue;return function(c,g){if(arguments.length>0){const S=g?P(f):c;return xe(f,S),l=!0,i!==void 0&&(i=S),c}return pr&&l||h.f&nr?f.v:P(f)}}function zu(e){return new qu(e)}var er,At;class qu{constructor(t){J(this,er);J(this,At);var s,a;var r=new Map,n=(u,o)=>{var l=Qi(o,!1,!1);return r.set(u,l),l};const i=new Proxy(Sn(xn({},t.props||{}),{$$events:{}}),{get(u,o){var l;return P((l=r.get(o))!=null?l:n(o,Reflect.get(u,o)))},has(u,o){var l;return o===Vo?!0:(P((l=r.get(o))!=null?l:n(o,Reflect.get(u,o))),Reflect.has(u,o))},set(u,o,l){var f;return xe((f=r.get(o))!=null?f:n(o,l),l),Reflect.set(u,o,l)}});V(this,At,(t.hydrate?Mu:Fa)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover})),(!((a=t==null?void 0:t.props)!=null&&a.$$host)||t.sync===!1)&&Ze(),V(this,er,i.$$events);for(const u of Object.keys(d(this,At)))u==="$set"||u==="$destroy"||u==="$on"||cn(this,u,{get(){return d(this,At)[u]},set(o){d(this,At)[u]=o},enumerable:!0});d(this,At).$set=u=>{Object.assign(i,u)},d(this,At).$destroy=()=>{Hu(d(this,At))}}$set(t){d(this,At).$set(t)}$on(t,r){d(this,er)[t]=d(this,er)[t]||[];const n=(...i)=>r.call(this,...i);return d(this,er)[t].push(n),()=>{d(this,er)[t]=d(this,er)[t].filter(i=>i!==n)}}$destroy(){d(this,At).$destroy()}}er=new WeakMap,At=new WeakMap;let za;typeof HTMLElement=="function"&&(za=class extends HTMLElement{constructor(t,r,n){super();Ne(this,"$$ctor");Ne(this,"$$s");Ne(this,"$$c");Ne(this,"$$cn",!1);Ne(this,"$$d",{});Ne(this,"$$r",!1);Ne(this,"$$p_d",{});Ne(this,"$$l",{});Ne(this,"$$l_u",new Map);Ne(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return kt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return a=>{const u=document.createElement("slot");s!=="default"&&(u.name=s),Oe(a,u)}};var t=r;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Wu(this);for(const s of this.$$s)s in i&&(s==="default"&&!this.$$d.children?(this.$$d.children=r(s),n.default=!0):n[s]=r(s));for(const s of this.attributes){const a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Bn(a,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=zu({component:this.$$ctor,target:this.shadowRoot||this,props:Sn(xn({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=_u(()=>{wa(()=>{var s;this.$$r=!0;for(const a of Cn(this.$$c)){if(!((s=this.$$p_d[a])!=null&&s.reflect))continue;this.$$d[a]=this.$$c[a];const u=Bn(a,this.$$d[a],this.$$p_d,"toAttribute");u==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,u)}this.$$r=!1})});for(const s in this.$$l)for(const a of this.$$l[s]){const u=this.$$c.$on(s,a);this.$$l_u.set(a,u)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Bn(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Cn(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Bn(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Wu(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function is(e,t,r,n,i,s){let a=class extends za{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Cn(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Cn(t).forEach(u=>{cn(a.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var h;o=Bn(u,o,t),this.$$d[u]=o;var l=this.$$c;if(l){var f=(h=Gr(l,u))==null?void 0:h.get;f?l[u]=o:l.$set({[u]:o})}}})}),n.forEach(u=>{cn(a.prototype,u,{get(){var o;return(o=this.$$c)==null?void 0:o[u]}})}),e.element=a,a}const qa=e=>{const t=new Headers;return e&&t.append("X-SessionId",e),t},Zu=e=>kt(exports,null,function*(){var i;const t=new URL(`${e.endpoint}/v1/tournaments/${e.tournamentid}`);e.filterById&&t.searchParams.append("filter",`id=${e.tournamentid}`),t.searchParams.append("language",e.language),t.searchParams.append("expand","games"),e.gamesLimit!==void 0&&t.searchParams.append("pagination",`games(limit=${e.gamesLimit},offset=${(i=e.gamesOffset)!=null?i:0})`),t.searchParams.append("platform",e.platform);const n=yield(yield fetch(t,{method:"GET",headers:qa(e.session)})).json();return n==null?void 0:n.item});var ai=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ri={exports:{}};/** @license
|
|
4
|
-
* eventsource.js
|
|
5
|
-
* Available under MIT License (MIT)
|
|
6
|
-
* https://github.com/Yaffle/EventSource/
|
|
7
|
-
*/(function(e,t){(function(r){var n=r.setTimeout,i=r.clearTimeout,s=r.XMLHttpRequest,a=r.XDomainRequest,u=r.ActiveXObject,o=r.EventSource,l=r.document,f=r.Promise,h=r.fetch,c=r.Response,g=r.TextDecoder,S=r.TextEncoder,$=r.AbortController;if(typeof window!="undefined"&&typeof l!="undefined"&&!("readyState"in l)&&l.body==null&&(l.readyState="loading",window.addEventListener("load",function(p){l.readyState="complete"},!1)),s==null&&u!=null&&(s=function(){return new u("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(p){function x(){}return x.prototype=p,new x}),Date.now||(Date.now=function(){return new Date().getTime()}),$==null){var v=h;h=function(p,x){var H=x.signal;return v(p,{headers:x.headers,credentials:x.credentials,cache:x.cache}).then(function(w){var F=w.body.getReader();return H._reader=F,H._aborted&&H._reader.cancel(),{status:w.status,statusText:w.statusText,headers:w.headers,body:{getReader:function(){return F}}}})},$=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(p){function x(le,de,m){if(m===1)return le>=128>>de&&le<<de<=2047;if(m===2)return le>=2048>>de&&le<<de<=55295||le>=57344>>de&&le<<de<=65535;if(m===3)return le>=65536>>de&&le<<de<=1114111;throw new Error}function H(le,de){if(le===6*1)return de>>6>15?3:de>31?2:1;if(le===6*2)return de>15?3:2;if(le===6*3)return 3;throw new Error}for(var w=65533,F="",B=this.bitsNeeded,j=this.codePoint,be=0;be<p.length;be+=1){var Z=p[be];B!==0&&(Z<128||Z>191||!x(j<<6|Z&63,B-6,H(B,j)))&&(B=0,j=w,F+=String.fromCharCode(j)),B===0?(Z>=0&&Z<=127?(B=0,j=Z):Z>=192&&Z<=223?(B=6*1,j=Z&31):Z>=224&&Z<=239?(B=6*2,j=Z&15):Z>=240&&Z<=247?(B=6*3,j=Z&7):(B=0,j=w),B!==0&&!x(j,B,H(B,j))&&(B=0,j=w)):(B-=6,j=j<<6|Z&63),B===0&&(j<=65535?F+=String.fromCharCode(j):(F+=String.fromCharCode(55296+(j-65535-1>>10)),F+=String.fromCharCode(56320+(j-65535-1&1023))))}return this.bitsNeeded=B,this.codePoint=j,F};var L=function(){try{return new g().decode(new S().encode("test"),{stream:!0})==="test"}catch(p){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+p)}return!1};(g==null||S==null||!L())&&(g=b);var T=function(){};function R(p){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=T,this.onload=T,this.onerror=T,this.onreadystatechange=T,this._contentType="",this._xhr=p,this._sendTimeout=0,this._abort=T}R.prototype.open=function(p,x){this._abort(!0);var H=this,w=this._xhr,F=1,B=0;this._abort=function(m){H._sendTimeout!==0&&(i(H._sendTimeout),H._sendTimeout=0),(F===1||F===2||F===3)&&(F=4,w.onload=T,w.onerror=T,w.onabort=T,w.onprogress=T,w.onreadystatechange=T,w.abort(),B!==0&&(i(B),B=0),m||(H.readyState=4,H.onabort(null),H.onreadystatechange())),F=0};var j=function(){if(F===1){var m=0,D="",U=void 0;if("contentType"in w)m=200,D="OK",U=w.contentType;else try{m=w.status,D=w.statusText,U=w.getResponseHeader("Content-Type")}catch(ke){m=0,D="",U=void 0}m!==0&&(F=2,H.readyState=2,H.status=m,H.statusText=D,H._contentType=U,H.onreadystatechange())}},be=function(){if(j(),F===2||F===3){F=3;var m="";try{m=w.responseText}catch(D){}H.readyState=3,H.responseText=m,H.onprogress()}},Z=function(m,D){if((D==null||D.preventDefault==null)&&(D={preventDefault:T}),be(),F===1||F===2||F===3){if(F=4,B!==0&&(i(B),B=0),H.readyState=4,m==="load")H.onload(D);else if(m==="error")H.onerror(D);else if(m==="abort")H.onabort(D);else throw new TypeError;H.onreadystatechange()}},le=function(m){w!=null&&(w.readyState===4?(!("onload"in w)||!("onerror"in w)||!("onabort"in w))&&Z(w.responseText===""?"error":"load",m):w.readyState===3?"onprogress"in w||be():w.readyState===2&&j())},de=function(){B=n(function(){de()},500),w.readyState===3&&be()};"onload"in w&&(w.onload=function(m){Z("load",m)}),"onerror"in w&&(w.onerror=function(m){Z("error",m)}),"onabort"in w&&(w.onabort=function(m){Z("abort",m)}),"onprogress"in w&&(w.onprogress=be),"onreadystatechange"in w&&(w.onreadystatechange=function(m){le(m)}),("contentType"in w||!("ontimeout"in s.prototype))&&(x+=(x.indexOf("?")===-1?"?":"&")+"padding=true"),w.open(p,x,!0),"readyState"in w&&(B=n(function(){de()},0))},R.prototype.abort=function(){this._abort(!1)},R.prototype.getResponseHeader=function(p){return this._contentType},R.prototype.setRequestHeader=function(p,x){var H=this._xhr;"setRequestHeader"in H&&H.setRequestHeader(p,x)},R.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},R.prototype.send=function(){if((!("ontimeout"in s.prototype)||!("sendAsBinary"in s.prototype)&&!("mozAnon"in s.prototype))&&l!=null&&l.readyState!=null&&l.readyState!=="complete"){var p=this;p._sendTimeout=n(function(){p._sendTimeout=0,p.send()},4);return}var x=this._xhr;"withCredentials"in x&&(x.withCredentials=this.withCredentials);try{x.send(void 0)}catch(H){throw H}};function G(p){return p.replace(/[A-Z]/g,function(x){return String.fromCharCode(x.charCodeAt(0)+32)})}function X(p){for(var x=Object.create(null),H=p.split(`\r
|
|
8
|
-
`),w=0;w<H.length;w+=1){var F=H[w],B=F.split(": "),j=B.shift(),be=B.join(": ");x[G(j)]=be}this._map=x}X.prototype.get=function(p){return this._map[G(p)]},s!=null&&s.HEADERS_RECEIVED==null&&(s.HEADERS_RECEIVED=2);function W(){}W.prototype.open=function(p,x,H,w,F,B,j){p.open("GET",F);var be=0;p.onprogress=function(){var le=p.responseText,de=le.slice(be);be+=de.length,H(de)},p.onerror=function(le){le.preventDefault(),w(new Error("NetworkError"))},p.onload=function(){w(null)},p.onabort=function(){w(null)},p.onreadystatechange=function(){if(p.readyState===s.HEADERS_RECEIVED){var le=p.status,de=p.statusText,m=p.getResponseHeader("Content-Type"),D=p.getAllResponseHeaders();x(le,de,m,new X(D))}},p.withCredentials=B;for(var Z in j)Object.prototype.hasOwnProperty.call(j,Z)&&p.setRequestHeader(Z,j[Z]);return p.send(),p};function ne(p){this._headers=p}ne.prototype.get=function(p){return this._headers.get(p)};function ie(){}ie.prototype.open=function(p,x,H,w,F,B,j){var be=null,Z=new $,le=Z.signal,de=new g;return h(F,{headers:j,credentials:B?"include":"same-origin",signal:le,cache:"no-store"}).then(function(m){return be=m.body.getReader(),x(m.status,m.statusText,m.headers.get("Content-Type"),new ne(m.headers)),new f(function(D,U){var ke=function(){be.read().then(function(Se){if(Se.done)D(void 0);else{var ae=de.decode(Se.value,{stream:!0});H(ae),ke()}}).catch(function(Se){U(Se)})};ke()})}).catch(function(m){if(m.name!=="AbortError")return m}).then(function(m){w(m)}),{abort:function(){be!=null&&be.cancel(),Z.abort()}}};function C(){this._listeners=Object.create(null)}function I(p){n(function(){throw p},0)}C.prototype.dispatchEvent=function(p){p.target=this;var x=this._listeners[p.type];if(x!=null)for(var H=x.length,w=0;w<H;w+=1){var F=x[w];try{typeof F.handleEvent=="function"?F.handleEvent(p):F.call(this,p)}catch(B){I(B)}}},C.prototype.addEventListener=function(p,x){p=String(p);var H=this._listeners,w=H[p];w==null&&(w=[],H[p]=w);for(var F=!1,B=0;B<w.length;B+=1)w[B]===x&&(F=!0);F||w.push(x)},C.prototype.removeEventListener=function(p,x){p=String(p);var H=this._listeners,w=H[p];if(w!=null){for(var F=[],B=0;B<w.length;B+=1)w[B]!==x&&F.push(w[B]);F.length===0?delete H[p]:H[p]=F}};function se(p){this.type=p,this.target=void 0}function _e(p,x){se.call(this,p),this.data=x.data,this.lastEventId=x.lastEventId}_e.prototype=Object.create(se.prototype);function O(p,x){se.call(this,p),this.status=x.status,this.statusText=x.statusText,this.headers=x.headers}O.prototype=Object.create(se.prototype);function E(p,x){se.call(this,p),this.error=x.error}E.prototype=Object.create(se.prototype);var _=-1,A=0,y=1,M=2,N=-1,k=0,re=1,fe=2,Ae=3,Ie=/^text\/event\-stream(;.*)?$/i,yt=1e3,ut=18e6,Ke=function(p,x){var H=p==null?x:parseInt(p,10);return H!==H&&(H=x),Ve(H)},Ve=function(p){return Math.min(Math.max(p,yt),ut)},ce=function(p,x,H){try{typeof x=="function"&&x.call(p,H)}catch(w){I(w)}};function me(p,x){C.call(this),x=x||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,Dt(this,p,x)}function et(){return s!=null&&"withCredentials"in s.prototype||a==null?new s:new a}var Et=h!=null&&c!=null&&"body"in c.prototype;function Dt(p,x,H){x=String(x);var w=!!H.withCredentials,F=H.lastEventIdQueryParameterName||"lastEventId",B=Ve(1e3),j=Ke(H.heartbeatTimeout,45e3),be="",Z=B,le=!1,de=0,m=H.headers||{},D=H.Transport,U=Et&&D==null?void 0:new R(D!=null?new D:et()),ke=D!=null&&typeof D!="string"?new D:U==null?new ie:new W,Se=void 0,ae=0,ge=_,Be="",Fe="",ye="",tt="",Ee=k,Zt=0,pe=0,Re=function(oe,ve,Pe,Ue){if(ge===A)if(oe===200&&Pe!=null&&Ie.test(Pe)){ge=y,le=Date.now(),Z=B,p.readyState=y;var Me=new O("open",{status:oe,statusText:ve,headers:Ue});p.dispatchEvent(Me),ce(p,p.onopen,Me)}else{var we="";oe!==200?(ve&&(ve=ve.replace(/\s+/g," ")),we="EventSource's response has a status "+oe+" "+ve+" that is not 200. Aborting the connection."):we="EventSource's response has a Content-Type specifying an unsupported type: "+(Pe==null?"-":Pe.replace(/\s+/g," "))+". Aborting the connection.",wt();var Me=new O("error",{status:oe,statusText:ve,headers:Ue});p.dispatchEvent(Me),ce(p,p.onerror,Me),console.error(we)}},qe=function(oe){if(ge===y){for(var ve=-1,Pe=0;Pe<oe.length;Pe+=1){var Ue=oe.charCodeAt(Pe);(Ue===10||Ue===13)&&(ve=Pe)}var Me=(ve!==-1?tt:"")+oe.slice(0,ve+1);tt=(ve===-1?tt:"")+oe.slice(ve+1),oe!==""&&(le=Date.now(),de+=oe.length);for(var we=0;we<Me.length;we+=1){var Ue=Me.charCodeAt(we);if(Ee===N&&Ue===10)Ee=k;else if(Ee===N&&(Ee=k),Ue===13||Ue===10){if(Ee!==k){Ee===re&&(pe=we+1);var vt=Me.slice(Zt,pe-1),pt=Me.slice(pe+(pe<we&&Me.charCodeAt(pe)===32?1:0),we);vt==="data"?(Be+=`
|
|
9
|
-
`,Be+=pt):vt==="id"?Fe=pt:vt==="event"?ye=pt:vt==="retry"?(B=Ke(pt,B),Z=B):vt==="heartbeatTimeout"&&(j=Ke(pt,j),ae!==0&&(i(ae),ae=n(function(){We()},j)))}if(Ee===k){if(Be!==""){be=Fe,ye===""&&(ye="message");var Cr=new _e(ye,{data:Be.slice(1),lastEventId:Fe});if(p.dispatchEvent(Cr),ye==="open"?ce(p,p.onopen,Cr):ye==="message"?ce(p,p.onmessage,Cr):ye==="error"&&ce(p,p.onerror,Cr),ge===M)return}Be="",ye=""}Ee=Ue===13?N:k}else Ee===k&&(Zt=we,Ee=re),Ee===re?Ue===58&&(pe=we+1,Ee=fe):Ee===fe&&(Ee=Ae)}}},It=function(oe){if(ge===y||ge===A){ge=_,ae!==0&&(i(ae),ae=0),ae=n(function(){We()},Z),Z=Ve(Math.min(B*16,Z*2)),p.readyState=A;var ve=new E("error",{error:oe});p.dispatchEvent(ve),ce(p,p.onerror,ve),oe!=null&&console.error(oe)}},wt=function(){ge=M,Se!=null&&(Se.abort(),Se=void 0),ae!==0&&(i(ae),ae=0),p.readyState=M},We=function(){if(ae=0,ge!==_){if(!le&&Se!=null)It(new Error("No activity within "+j+" milliseconds. "+(ge===A?"No response received.":de+" chars received.")+" Reconnecting.")),Se!=null&&(Se.abort(),Se=void 0);else{var oe=Math.max((le||Date.now())+j-Date.now(),1);le=!1,ae=n(function(){We()},oe)}return}le=!1,de=0,ae=n(function(){We()},j),ge=A,Be="",ye="",Fe=be,tt="",Zt=0,pe=0,Ee=k;var ve=x;if(x.slice(0,5)!=="data:"&&x.slice(0,5)!=="blob:"&&be!==""){var Pe=x.indexOf("?");ve=Pe===-1?x:x.slice(0,Pe+1)+x.slice(Pe+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(pt,Cr){return Cr===F?"":pt}),ve+=(x.indexOf("?")===-1?"?":"&")+F+"="+encodeURIComponent(be)}var Ue=p.withCredentials,Me={};Me.Accept="text/event-stream";var we=p.headers;if(we!=null)for(var vt in we)Object.prototype.hasOwnProperty.call(we,vt)&&(Me[vt]=we[vt]);try{Se=ke.open(U,Re,qe,It,ve,Ue,Me)}catch(pt){throw wt(),pt}};p.url=x,p.readyState=A,p.withCredentials=w,p.headers=m,p._close=wt,We()}me.prototype=Object.create(C.prototype),me.prototype.CONNECTING=A,me.prototype.OPEN=y,me.prototype.CLOSED=M,me.prototype.close=function(){this._close()},me.CONNECTING=A,me.OPEN=y,me.CLOSED=M,me.prototype.withCredentials=void 0;var Wt=o;s!=null&&(o==null||!("withCredentials"in o.prototype))&&(Wt=me),function(p){{var x=p(t);x!==void 0&&(e.exports=x)}}(function(p){p.EventSourcePolyfill=me,p.NativeEventSource=o,p.EventSource=Wt})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:ai:globalThis)})(Ri,Ri.exports);var Ju=Ri.exports;const Qu=e=>kt(exports,null,function*(){const t=new URL(`${e.endpoint}/v1/tournaments/${e.tournamentid}/leaderboard`);t.searchParams.append("language",e.language),t.searchParams.append("platform",e.platform),t.searchParams.append("pagination",`offset=${e.offset},limit=${e.limit}`);const n=yield(yield fetch(t)).json();return{items:n==null?void 0:n.items,total:n==null?void 0:n.total}}),Ku=e=>kt(exports,null,function*(){var s,a,u;const t=new URL(`${e.endpoint}/v1/tournaments/leaderboard/player`);t.searchParams.append("language",e.language),t.searchParams.append("platform",e.platform),t.searchParams.append("filter","includeUnqualifiedPlayer=false");const n=yield(yield fetch(t,{method:"GET",headers:qa(e.session)})).json(),i=(s=n==null?void 0:n.items)==null?void 0:s.find(o=>{var l;return((l=o==null?void 0:o.tournament)==null?void 0:l.id)===e.tournamentid});return{playerData:(a=i==null?void 0:i.tournament)==null?void 0:a.leaderBoard,endRank:i==null?void 0:i.endRank,playerEnrolled:(u=i==null?void 0:i.tournament)==null?void 0:u.playerEnrolled}}),el=(e,t)=>{const r=new URL(`${e.endpoint}/v1/tournaments/${e.tournamentid}/leaderboard/updates`);r.searchParams.append("HeartBeat","false"),r.searchParams.append("language",e.language),r.searchParams.append("filter","includeUnqualifiedPlayer=true"),r.searchParams.append("pagination",`offset=${e.offset},limit=${e.limit}`),r.searchParams.append("platform",e.platform);const n=new Ju.EventSourcePolyfill(r,{headers:{accept:"text/event-stream","X-SessionId":e.session}});return n.onmessage=i=>{const s=JSON.parse(i.data);s&&s.messageType==="LeaderBoardUpdate"&&t(s==null?void 0:s.items)},n},tl=e=>kt(exports,null,function*(){const t=new URL(`${e.endpoint}/v1/bonus/claim`);t.searchParams.append("language",e.language),t.searchParams.append("platform",e.platform);const r=new Headers;r.append("Content-Type","application/json"),r.append("X-SessionID",e.session);let n={};return e.tournament.wallets&&e.tournament.wallets.length>0&&(n={language:e.language,bonusCode:e.tournament.wallets[0].code,currency:e.tournament.baseCurrency,type:"tournament"}),yield(yield fetch(t,{method:"PUT",headers:r,body:JSON.stringify(n)})).json()}),rl=e=>kt(exports,null,function*(){return yield(yield fetch(`${e.endpoint}/tournaments/${e.tournamentid}`,{headers:{"X-SessionID":e.session}})).json()}),nl=e=>kt(exports,null,function*(){var r;const t=yield tl(e);if(!t)return{enrolled:!1};if(t.success==!0)return{enrolled:!0};if(t.errorMessage&&t.errorMessage.match("VersionMismatchException")){const n=yield rl({endpoint:e.endpoint,tournamentid:e.tournament.id,session:e.session});return(r=n==null?void 0:n.item)!=null&&r.playerEnrolled?{enrolled:!0}:{enrolled:!1,errorMessage:n==null?void 0:n.errorMessage}}return{enrolled:!1}});var Wa={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ai,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",u="minute",o="hour",l="day",f="week",h="month",c="quarter",g="year",S="date",$="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,L={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var E=["th","st","nd","rd"],_=O%100;return"["+O+(E[(_-20)%10]||E[_]||E[0])+"]"}},T=function(O,E,_){var A=String(O);return!A||A.length>=E?O:""+Array(E+1-A.length).join(_)+O},R={s:T,z:function(O){var E=-O.utcOffset(),_=Math.abs(E),A=Math.floor(_/60),y=_%60;return(E<=0?"+":"-")+T(A,2,"0")+":"+T(y,2,"0")},m:function O(E,_){if(E.date()<_.date())return-O(_,E);var A=12*(_.year()-E.year())+(_.month()-E.month()),y=E.clone().add(A,h),M=_-y<0,N=E.clone().add(A+(M?-1:1),h);return+(-(A+(_-y)/(M?y-N:N-y))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:h,y:g,w:f,d:l,D:S,h:o,m:u,s:a,ms:s,Q:c}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},G="en",X={};X[G]=L;var W="$isDayjsObject",ne=function(O){return O instanceof se||!(!O||!O[W])},ie=function O(E,_,A){var y;if(!E)return G;if(typeof E=="string"){var M=E.toLowerCase();X[M]&&(y=M),_&&(X[M]=_,y=M);var N=E.split("-");if(!y&&N.length>1)return O(N[0])}else{var k=E.name;X[k]=E,y=k}return!A&&y&&(G=y),y||!A&&G},C=function(O,E){if(ne(O))return O.clone();var _=typeof E=="object"?E:{};return _.date=O,_.args=arguments,new se(_)},I=R;I.l=ie,I.i=ne,I.w=function(O,E){return C(O,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var se=function(){function O(_){this.$L=ie(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[W]=!0}var E=O.prototype;return E.parse=function(_){this.$d=function(A){var y=A.date,M=A.utc;if(y===null)return new Date(NaN);if(I.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var N=y.match(v);if(N){var k=N[2]-1||0,re=(N[7]||"0").substring(0,3);return M?new Date(Date.UTC(N[1],k,N[3]||1,N[4]||0,N[5]||0,N[6]||0,re)):new Date(N[1],k,N[3]||1,N[4]||0,N[5]||0,N[6]||0,re)}}return new Date(y)}(_),this.init()},E.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},E.$utils=function(){return I},E.isValid=function(){return this.$d.toString()!==$},E.isSame=function(_,A){var y=C(_);return this.startOf(A)<=y&&y<=this.endOf(A)},E.isAfter=function(_,A){return C(_)<this.startOf(A)},E.isBefore=function(_,A){return this.endOf(A)<C(_)},E.$g=function(_,A,y){return I.u(_)?this[A]:this.set(y,_)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(_,A){var y=this,M=!!I.u(A)||A,N=I.p(_),k=function(Ve,ce){var me=I.w(y.$u?Date.UTC(y.$y,ce,Ve):new Date(y.$y,ce,Ve),y);return M?me:me.endOf(l)},re=function(Ve,ce){return I.w(y.toDate()[Ve].apply(y.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(ce)),y)},fe=this.$W,Ae=this.$M,Ie=this.$D,yt="set"+(this.$u?"UTC":"");switch(N){case g:return M?k(1,0):k(31,11);case h:return M?k(1,Ae):k(0,Ae+1);case f:var ut=this.$locale().weekStart||0,Ke=(fe<ut?fe+7:fe)-ut;return k(M?Ie-Ke:Ie+(6-Ke),Ae);case l:case S:return re(yt+"Hours",0);case o:return re(yt+"Minutes",1);case u:return re(yt+"Seconds",2);case a:return re(yt+"Milliseconds",3);default:return this.clone()}},E.endOf=function(_){return this.startOf(_,!1)},E.$set=function(_,A){var y,M=I.p(_),N="set"+(this.$u?"UTC":""),k=(y={},y[l]=N+"Date",y[S]=N+"Date",y[h]=N+"Month",y[g]=N+"FullYear",y[o]=N+"Hours",y[u]=N+"Minutes",y[a]=N+"Seconds",y[s]=N+"Milliseconds",y)[M],re=M===l?this.$D+(A-this.$W):A;if(M===h||M===g){var fe=this.clone().set(S,1);fe.$d[k](re),fe.init(),this.$d=fe.set(S,Math.min(this.$D,fe.daysInMonth())).$d}else k&&this.$d[k](re);return this.init(),this},E.set=function(_,A){return this.clone().$set(_,A)},E.get=function(_){return this[I.p(_)]()},E.add=function(_,A){var y,M=this;_=Number(_);var N=I.p(A),k=function(Ae){var Ie=C(M);return I.w(Ie.date(Ie.date()+Math.round(Ae*_)),M)};if(N===h)return this.set(h,this.$M+_);if(N===g)return this.set(g,this.$y+_);if(N===l)return k(1);if(N===f)return k(7);var re=(y={},y[u]=n,y[o]=i,y[a]=r,y)[N]||1,fe=this.$d.getTime()+_*re;return I.w(fe,this)},E.subtract=function(_,A){return this.add(-1*_,A)},E.format=function(_){var A=this,y=this.$locale();if(!this.isValid())return y.invalidDate||$;var M=_||"YYYY-MM-DDTHH:mm:ssZ",N=I.z(this),k=this.$H,re=this.$m,fe=this.$M,Ae=y.weekdays,Ie=y.months,yt=y.meridiem,ut=function(ce,me,et,Et){return ce&&(ce[me]||ce(A,M))||et[me].slice(0,Et)},Ke=function(ce){return I.s(k%12||12,ce,"0")},Ve=yt||function(ce,me,et){var Et=ce<12?"AM":"PM";return et?Et.toLowerCase():Et};return M.replace(b,function(ce,me){return me||function(et){switch(et){case"YY":return String(A.$y).slice(-2);case"YYYY":return I.s(A.$y,4,"0");case"M":return fe+1;case"MM":return I.s(fe+1,2,"0");case"MMM":return ut(y.monthsShort,fe,Ie,3);case"MMMM":return ut(Ie,fe);case"D":return A.$D;case"DD":return I.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return ut(y.weekdaysMin,A.$W,Ae,2);case"ddd":return ut(y.weekdaysShort,A.$W,Ae,3);case"dddd":return Ae[A.$W];case"H":return String(k);case"HH":return I.s(k,2,"0");case"h":return Ke(1);case"hh":return Ke(2);case"a":return Ve(k,re,!0);case"A":return Ve(k,re,!1);case"m":return String(re);case"mm":return I.s(re,2,"0");case"s":return String(A.$s);case"ss":return I.s(A.$s,2,"0");case"SSS":return I.s(A.$ms,3,"0");case"Z":return N}return null}(ce)||N.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(_,A,y){var M,N=this,k=I.p(A),re=C(_),fe=(re.utcOffset()-this.utcOffset())*n,Ae=this-re,Ie=function(){return I.m(N,re)};switch(k){case g:M=Ie()/12;break;case h:M=Ie();break;case c:M=Ie()/3;break;case f:M=(Ae-fe)/6048e5;break;case l:M=(Ae-fe)/864e5;break;case o:M=Ae/i;break;case u:M=Ae/n;break;case a:M=Ae/r;break;default:M=Ae}return y?M:I.a(M)},E.daysInMonth=function(){return this.endOf(h).$D},E.$locale=function(){return X[this.$L]},E.locale=function(_,A){if(!_)return this.$L;var y=this.clone(),M=ie(_,A,!0);return M&&(y.$L=M),y},E.clone=function(){return I.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},O}(),_e=se.prototype;return C.prototype=_e,[["$ms",s],["$s",a],["$m",u],["$H",o],["$W",l],["$M",h],["$y",g],["$D",S]].forEach(function(O){_e[O[1]]=function(E){return this.$g(E,O[0],O[1])}}),C.extend=function(O,E){return O.$i||(O(E,se,C),O.$i=!0),C},C.locale=ie,C.isDayjs=ne,C.unix=function(O){return C(1e3*O)},C.en=X[G],C.Ls=X,C.p={},C})})(Wa);var il=Wa.exports;const ss=oi(il);var Za={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ai,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,a=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,o={},l=function(v){return(v=+v)+(v>68?1900:2e3)},f=function(v){return function(b){this[v]=+b}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var L=b.match(/([+-]|\d\d)/g),T=60*L[1]+(+L[2]||0);return T===0?0:L[0]==="+"?-T:T}(v)}],c=function(v){var b=o[v];return b&&(b.indexOf?b:b.s.concat(b.f))},g=function(v,b){var L,T=o.meridiem;if(T){for(var R=1;R<=24;R+=1)if(v.indexOf(T(R,0,b))>-1){L=R>12;break}}else L=v===(b?"pm":"PM");return L},S={A:[u,function(v){this.afternoon=g(v,!1)}],a:[u,function(v){this.afternoon=g(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[s,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[s,f("day")],Do:[u,function(v){var b=o.ordinal,L=v.match(/\d+/);if(this.day=L[0],b)for(var T=1;T<=31;T+=1)b(T).replace(/\[|\]/g,"")===v&&(this.day=T)}],w:[a,f("week")],ww:[s,f("week")],M:[a,f("month")],MM:[s,f("month")],MMM:[u,function(v){var b=c("months"),L=(c("monthsShort")||b.map(function(T){return T.slice(0,3)})).indexOf(v)+1;if(L<1)throw new Error;this.month=L%12||L}],MMMM:[u,function(v){var b=c("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,f("year")],YY:[s,function(v){this.year=l(v)}],YYYY:[/\d{4}/,f("year")],Z:h,ZZ:h};function $(v){var b,L;b=v,L=o&&o.formats;for(var T=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,I,se){var _e=se&&se.toUpperCase();return I||L[se]||r[se]||L[_e].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,E,_){return E||_.slice(1)})})).match(n),R=T.length,G=0;G<R;G+=1){var X=T[G],W=S[X],ne=W&&W[0],ie=W&&W[1];T[G]=ie?{regex:ne,parser:ie}:X.replace(/^\[|\]$/g,"")}return function(C){for(var I={},se=0,_e=0;se<R;se+=1){var O=T[se];if(typeof O=="string")_e+=O.length;else{var E=O.regex,_=O.parser,A=C.slice(_e),y=E.exec(A)[0];_.call(I,y),C=C.replace(y,"")}}return function(M){var N=M.afternoon;if(N!==void 0){var k=M.hours;N?k<12&&(M.hours+=12):k===12&&(M.hours=0),delete M.afternoon}}(I),I}}return function(v,b,L){L.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(l=v.parseTwoDigitYear);var T=b.prototype,R=T.parse;T.parse=function(G){var X=G.date,W=G.utc,ne=G.args;this.$u=W;var ie=ne[1];if(typeof ie=="string"){var C=ne[2]===!0,I=ne[3]===!0,se=C||I,_e=ne[2];I&&(_e=ne[2]),o=this.$locale(),!C&&_e&&(o=L.Ls[_e]),this.$d=function(A,y,M,N){try{if(["x","X"].indexOf(y)>-1)return new Date((y==="X"?1e3:1)*A);var k=$(y)(A),re=k.year,fe=k.month,Ae=k.day,Ie=k.hours,yt=k.minutes,ut=k.seconds,Ke=k.milliseconds,Ve=k.zone,ce=k.week,me=new Date,et=Ae||(re||fe?1:me.getDate()),Et=re||me.getFullYear(),Dt=0;re&&!fe||(Dt=fe>0?fe-1:me.getMonth());var Wt,p=Ie||0,x=yt||0,H=ut||0,w=Ke||0;return Ve?new Date(Date.UTC(Et,Dt,et,p,x,H,w+60*Ve.offset*1e3)):M?new Date(Date.UTC(Et,Dt,et,p,x,H,w)):(Wt=new Date(Et,Dt,et,p,x,H,w),ce&&(Wt=N(Wt).week(ce).toDate()),Wt)}catch(F){return new Date("")}}(X,ie,W,L),this.init(),_e&&_e!==!0&&(this.$L=this.locale(_e).$L),se&&X!=this.format(ie)&&(this.$d=new Date("")),o={}}else if(ie instanceof Array)for(var O=ie.length,E=1;E<=O;E+=1){ne[1]=ie[E-1];var _=L.apply(this,ne);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}E===O&&(this.$d=new Date(""))}else R.call(this,G)}}})})(Za);var sl=Za.exports;const al=oi(sl);ss.extend(al);const ol=e=>ss(e).format("MMMM D, HH:mm"),ul=()=>typeof window=="undefined";class ll{constructor(){}static processMinMax(t,r){return{minValue:t?`: ${t}`:null,maxValue:r?`: ${r}`:null}}static generateCasinoRule(t,r){var u,o;const n=` ~ ${t("unlimited")}`,i=r.currency||"EUR",s=(u=r.minStake)!=null&&u.amount[i]?`: ${r.minStake.amount[i]} ${i}`:n,a=(o=r.maxStake)!=null&&o.amount[i]?`: ${r.maxStake.amount[i]} ${i}`:n;return t("casinoRuleMinMaxBet",{values:{minBet:s,maxBet:a}})}static generateSportsRule(t,r){var X,W,ne,ie,C,I,se,_e,O,E;const n=[],i=` ~ ${t("unlimited")}`,s=r.currency||"EUR",a=(X=r.minStake)!=null&&X.amount[s]?`: ${r.minStake.amount[s]} ${s}`:i,u=(W=r.maxStake)!=null&&W.amount[s]?`: ${r.maxStake.amount[s]} ${s}`:i;n.push(t("sportsRuleMinMaxBet",{values:{sportMinBet:a,sportMaxBet:u}}));const o=r.config.liveMatch==="true",l=r.config.preLiveMatch==="true";o&&l?n.push(t("matchTypePreAndLive")):o?n.push(`${t("matchTypeLive")}`):l&&n.push(`${t("matchTyppePre")}`);const f=r.combination,h=[];f.single.isEligible&&h.push(t("betTypeSingle"));const g={null:t("typeOfSelectionAny"),true:t("bankerOnly"),false:t("nonBankerOnly")},S={unspecific:t("typeOfSelectionAny"),all:t("betBuilderOnly"),none:t("notBuilderOnly")};let $="",v="";const b=`${t("oddsPerSelection")}: ${r.config.minOdds||t("unlimited")} - ${r.config.maxOdds||t("unlimited")}`,L=f.system.isEligible,T=f.multiple.isEligible;L&&($=` ${t("betTypeSystem")}
|
|
10
|
-
( ${t("typeOfSelection")}: ${g[((ie=(ne=r.combination.system.banker)==null?void 0:ne.include)==null?void 0:ie.toString())||"null"]},
|
|
11
|
-
${t("numberOfSelection")}:
|
|
12
|
-
${((C=f.system.minSelection)==null?void 0:C.number)||t("unlimited")} - ${((I=f.system.maxSelection)==null?void 0:I.number)||t("unlimited")},
|
|
13
|
-
${b} ) `),T&&(v=` ${t("betTypeMultiple")}
|
|
14
|
-
( ${t("typeOfSelection")}: ${S[((_e=(se=r.combination.multiple.betBuilder)==null?void 0:se.mode)==null?void 0:_e.toString())||"unspecific"]},
|
|
15
|
-
${t("numberOfSelection")}:
|
|
16
|
-
${((O=f.multiple.minSelection)==null?void 0:O.number)||t("unlimited")} - ${((E=f.multiple.maxSelection)==null?void 0:E.number)||t("unlimited")},
|
|
17
|
-
${b} ) `),L&&T?h.push(v+t("and")+$):L?h.push($):T&&h.push(v),n.push(h.join(", "));const R=r.config.minTotalOdds?`: ${r.config.minTotalOdds}`:i,G=r.config.maxTotalOdds?`: ${r.config.maxTotalOdds}`:i;return n.push(`${t("sportsRuleMinMaxOdds",{values:{sportMinOdds:R,sportMaxOdds:G}})}`),n}}var fl=function(t){return hl(t)&&!cl(t)};function hl(e){return!!e&&typeof e=="object"}function cl(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||pl(e)}var dl=typeof Symbol=="function"&&Symbol.for,vl=dl?Symbol.for("react.element"):60103;function pl(e){return e.$$typeof===vl}function ml(e){return Array.isArray(e)?[]:{}}function vn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?en(ml(e),e,t):e}function gl(e,t,r){return e.concat(t).map(function(n){return vn(n,r)})}function _l(e,t){if(!t.customMerge)return en;var r=t.customMerge(e);return typeof r=="function"?r:en}function bl(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ys(e){return Object.keys(e).concat(bl(e))}function Ja(e,t){try{return t in e}catch(r){return!1}}function yl(e,t){return Ja(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function El(e,t,r){var n={};return r.isMergeableObject(e)&&ys(e).forEach(function(i){n[i]=vn(e[i],r)}),ys(t).forEach(function(i){yl(e,i)||(Ja(e,i)&&r.isMergeableObject(t[i])?n[i]=_l(i,r)(e[i],t[i],r):n[i]=vn(t[i],r))}),n}function en(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||gl,r.isMergeableObject=r.isMergeableObject||fl,r.cloneUnlessOtherwiseSpecified=vn;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):El(e,t,r):vn(t,r)}en.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return en(n,i,r)},{})};var wl=en,xl=wl;const Sl=oi(xl);var Ci=function(e,t){return Ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ci(e,t)};function ui(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ci(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Xt=function(){return Xt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Xt.apply(this,arguments)};function Tl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function pi(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function mi(e,t){var r=t&&t.cache?t.cache:Nl,n=t&&t.serializer?t.serializer:Ol,i=t&&t.strategy?t.strategy:Ml;return i(e,{cache:r,serializer:n})}function Al(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Pl(e,t,r,n){var i=Al(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Qa(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function Ka(e,t,r,n,i){return r.bind(t,e,n,i)}function Ml(e,t){var r=e.length===1?Pl:Qa;return Ka(e,this,r,t.cache.create(),t.serializer)}function Hl(e,t){return Ka(e,this,Qa,t.cache.create(),t.serializer)}var Ol=function(){return JSON.stringify(arguments)},$l=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),Nl={create:function(){return new $l}},gi={variadic:Hl},jn=function(){return jn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},jn.apply(this,arguments)};var K;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(K||(K={}));var Te;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Te||(Te={}));var tn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(tn||(tn={}));function Es(e){return e.type===Te.literal}function Bl(e){return e.type===Te.argument}function eo(e){return e.type===Te.number}function to(e){return e.type===Te.date}function ro(e){return e.type===Te.time}function no(e){return e.type===Te.select}function io(e){return e.type===Te.plural}function Ll(e){return e.type===Te.pound}function so(e){return e.type===Te.tag}function ao(e){return!!(e&&typeof e=="object"&&e.type===tn.number)}function Di(e){return!!(e&&typeof e=="object"&&e.type===tn.dateTime)}var oo=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Rl=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Cl(e){var t={};return e.replace(Rl,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var $e=function(){return $e=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},$e.apply(this,arguments)};var Dl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Il(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Dl).filter(function(c){return c.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var u=a[0],o=a.slice(1),l=0,f=o;l<f.length;l++){var h=f[l];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:u,options:o})}return r}function kl(e){return e.replace(/^(.*?)-/,"")}var ws=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,uo=/^(@+)?(\+|#+)?[rs]?$/g,Fl=/(\*)(0+)|(#+)(0+)|(0+)/g,lo=/^(0+)$/;function xs(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(uo,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function fo(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ul(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!lo.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ss(e){var t={},r=fo(e);return r||t}function Gl(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=kl(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=$e($e($e({},t),{notation:"scientific"}),i.options.reduce(function(o,l){return $e($e({},o),Ss(l))},{}));continue;case"engineering":t=$e($e($e({},t),{notation:"engineering"}),i.options.reduce(function(o,l){return $e($e({},o),Ss(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Fl,function(o,l,f,h,c,g){if(l)t.minimumIntegerDigits=f.length;else{if(h&&c)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(lo.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ws.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ws,function(o,l,f,h,c,g){return f==="*"?t.minimumFractionDigits=l.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:c&&g?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+g.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=$e($e({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=$e($e({},t),xs(s)));continue}if(uo.test(i.stem)){t=$e($e({},t),xs(i.stem));continue}var a=fo(i.stem);a&&(t=$e($e({},t),a));var u=Ul(i.stem);u&&(t=$e($e({},t),u))}return t}var Pn={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function jl(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var a=1+(s&1),u=s<2?1:3+(s>>1),o="a",l=Vl(t);for((l=="H"||l=="k")&&(u=0);u-- >0;)r+=o;for(;a-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function Vl(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Pn[n||""]||Pn[r||""]||Pn["".concat(r,"-001")]||Pn["001"];return i[0]}var _i,Xl=new RegExp("^".concat(oo.source,"*")),Yl=new RegExp("".concat(oo.source,"*$"));function ee(e,t){return{start:e,end:t}}var zl=!!String.prototype.startsWith&&"_a".startsWith("a",1),ql=!!String.fromCodePoint,Wl=!!Object.fromEntries,Zl=!!String.prototype.codePointAt,Jl=!!String.prototype.trimStart,Ql=!!String.prototype.trimEnd,Kl=!!Number.isSafeInteger,ef=Kl?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ii=!0;try{var tf=co("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ii=((_i=tf.exec("a"))===null||_i===void 0?void 0:_i[0])==="a"}catch(e){Ii=!1}var Ts=zl?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ki=ql?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,a;i>s;){if(a=t[s++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},As=Wl?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],a=s[0],u=s[1];r[a]=u}return r},ho=Zl?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},rf=Jl?function(t){return t.trimStart()}:function(t){return t.replace(Xl,"")},nf=Ql?function(t){return t.trimEnd()}:function(t){return t.replace(Yl,"")};function co(e,t){return new RegExp(e,t)}var Fi;if(Ii){var Ps=co("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Fi=function(t,r){var n;Ps.lastIndex=r;var i=Ps.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Fi=function(t,r){for(var n=[];;){var i=ho(t,r);if(i===void 0||vo(i)||uf(i))break;n.push(i),r+=i>=65536?2:1}return ki.apply(void 0,n)};var sf=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var u=this.clonePosition();this.bump(),i.push({type:Te.pound,location:ee(u,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(K.UNMATCHED_CLOSING_TAG,ee(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Ui(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Te.literal,value:"<".concat(i,"/>"),location:ee(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var a=s.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ui(this.char()))return this.error(K.INVALID_TAG,ee(u,this.clonePosition()));var o=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(K.UNMATCHED_CLOSING_TAG,ee(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Te.tag,value:i,children:a,location:ee(n,this.clonePosition())},err:null}:this.error(K.INVALID_TAG,ee(u,this.clonePosition())))}else return this.error(K.UNCLOSED_TAG,ee(n,this.clonePosition()))}else return this.error(K.INVALID_TAG,ee(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&of(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var u=this.tryParseLeftAngleBracket();if(u){i+=u;continue}break}var o=ee(n,this.clonePosition());return{val:{type:Te.literal,value:i,location:o},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!af(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return ki.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),ki(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(K.EMPTY_ARGUMENT,ee(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(K.MALFORMED_ARGUMENT,ee(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Te.argument,value:i,location:ee(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(K.MALFORMED_ARGUMENT,ee(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Fi(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=ee(t,s);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,a=this.clonePosition(),u=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(u){case"":return this.error(K.EXPECT_ARGUMENT_TYPE,ee(a,o));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var c=nf(h.val);if(c.length===0)return this.error(K.EXPECT_ARGUMENT_STYLE,ee(this.clonePosition(),this.clonePosition()));var g=ee(f,this.clonePosition());l={style:c,styleLocation:g}}var S=this.tryParseArgumentClose(i);if(S.err)return S;var $=ee(i,this.clonePosition());if(l&&Ts(l==null?void 0:l.style,"::",0)){var v=rf(l.style.slice(2));if(u==="number"){var h=this.parseNumberSkeletonFromString(v,l.styleLocation);return h.err?h:{val:{type:Te.number,value:n,location:$,style:h.val},err:null}}else{if(v.length===0)return this.error(K.EXPECT_DATE_TIME_SKELETON,$);var b=v;this.locale&&(b=jl(v,this.locale));var c={type:tn.dateTime,pattern:b,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Cl(b):{}},L=u==="date"?Te.date:Te.time;return{val:{type:L,value:n,location:$,style:c},err:null}}}return{val:{type:u==="number"?Te.number:u==="date"?Te.date:Te.time,value:n,location:$,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(K.EXPECT_SELECT_ARGUMENT_OPTIONS,ee(T,jn({},T)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),G=0;if(u!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(K.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ee(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(K.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,K.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),R=this.parseIdentifierIfPossible(),G=h.val}var X=this.tryParsePluralOrSelectOptions(t,u,r,R);if(X.err)return X;var S=this.tryParseArgumentClose(i);if(S.err)return S;var W=ee(i,this.clonePosition());return u==="select"?{val:{type:Te.select,value:n,options:As(X.val),location:W},err:null}:{val:{type:Te.plural,value:n,options:As(X.val),offset:G,pluralType:u==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(K.INVALID_ARGUMENT_TYPE,ee(a,o))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,ee(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(K.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ee(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Il(t)}catch(i){return this.error(K.INVALID_NUMBER_SKELETON,r)}return{val:{type:tn.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Gl(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,u=[],o=new Set,l=i.value,f=i.location;;){if(l.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(K.EXPECT_PLURAL_ARGUMENT_SELECTOR,K.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;f=ee(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}else break}if(o.has(l))return this.error(r==="select"?K.DUPLICATE_SELECT_ARGUMENT_SELECTOR:K.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?K.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:K.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ee(this.clonePosition(),this.clonePosition()));var S=this.parseMessage(t+1,r,n);if(S.err)return S;var $=this.tryParseArgumentClose(g);if($.err)return $;u.push([l,{value:S.val,location:ee(g,this.clonePosition())}]),o.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return u.length===0?this.error(r==="select"?K.EXPECT_SELECT_ARGUMENT_SELECTOR:K.EXPECT_PLURAL_ARGUMENT_SELECTOR,ee(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(K.MISSING_OTHER_CLAUSE,ee(this.clonePosition(),this.clonePosition())):{val:u,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,a=0;!this.isEOF();){var u=this.char();if(u>=48&&u<=57)s=!0,a=a*10+(u-48),this.bump();else break}var o=ee(i,this.clonePosition());return s?(a*=n,ef(a)?{val:a,err:null}:this.error(r,o)):this.error(t,o)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=ho(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ts(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&vo(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Ui(e){return e>=97&&e<=122||e>=65&&e<=90}function af(e){return Ui(e)||e===47}function of(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function vo(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function uf(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Gi(e){e.forEach(function(t){if(delete t.location,no(t)||io(t))for(var r in t.options)delete t.options[r].location,Gi(t.options[r].value);else eo(t)&&ao(t.style)||(to(t)||ro(t))&&Di(t.style)?delete t.style.location:so(t)&&Gi(t.children)})}function lf(e,t){t===void 0&&(t={}),t=jn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new sf(e,t).parse();if(r.err){var n=SyntaxError(K[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Gi(r.val),r.val}var rn;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(rn||(rn={}));var li=function(e){ui(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ms=function(e){ui(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),rn.INVALID_VALUE,s)||this}return t}(li),ff=function(e){ui(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),rn.INVALID_VALUE,i)||this}return t}(li),hf=function(e){ui(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),rn.MISSING_VALUE,n)||this}return t}(li),rt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(rt||(rt={}));function cf(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==rt.literal||r.type!==rt.literal?t.push(r):n.value+=r.value,t},[])}function df(e){return typeof e=="function"}function Ln(e,t,r,n,i,s,a){if(e.length===1&&Es(e[0]))return[{type:rt.literal,value:e[0].value}];for(var u=[],o=0,l=e;o<l.length;o++){var f=l[o];if(Es(f)){u.push({type:rt.literal,value:f.value});continue}if(Ll(f)){typeof s=="number"&&u.push({type:rt.literal,value:r.getNumberFormat(t).format(s)});continue}var h=f.value;if(!(i&&h in i))throw new hf(h,a);var c=i[h];if(Bl(f)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),u.push({type:typeof c=="string"?rt.literal:rt.object,value:c});continue}if(to(f)){var g=typeof f.style=="string"?n.date[f.style]:Di(f.style)?f.style.parsedOptions:void 0;u.push({type:rt.literal,value:r.getDateTimeFormat(t,g).format(c)});continue}if(ro(f)){var g=typeof f.style=="string"?n.time[f.style]:Di(f.style)?f.style.parsedOptions:n.time.medium;u.push({type:rt.literal,value:r.getDateTimeFormat(t,g).format(c)});continue}if(eo(f)){var g=typeof f.style=="string"?n.number[f.style]:ao(f.style)?f.style.parsedOptions:void 0;g&&g.scale&&(c=c*(g.scale||1)),u.push({type:rt.literal,value:r.getNumberFormat(t,g).format(c)});continue}if(so(f)){var S=f.children,$=f.value,v=i[$];if(!df(v))throw new ff($,"function",a);var b=Ln(S,t,r,n,i,s),L=v(b.map(function(G){return G.value}));Array.isArray(L)||(L=[L]),u.push.apply(u,L.map(function(G){return{type:typeof G=="string"?rt.literal:rt.object,value:G}}))}if(no(f)){var T=f.options[c]||f.options.other;if(!T)throw new Ms(f.value,c,Object.keys(f.options),a);u.push.apply(u,Ln(T.value,t,r,n,i));continue}if(io(f)){var T=f.options["=".concat(c)];if(!T){if(!Intl.PluralRules)throw new li(`Intl.PluralRules is not available in this environment.
|
|
18
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
19
|
-
`,rn.MISSING_INTL_API,a);var R=r.getPluralRules(t,{type:f.pluralType}).select(c-(f.offset||0));T=f.options[R]||f.options.other}if(!T)throw new Ms(f.value,c,Object.keys(f.options),a);u.push.apply(u,Ln(T.value,t,r,n,i,c-(f.offset||0)));continue}}return cf(u)}function vf(e,t){return t?Xt(Xt(Xt({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Xt(Xt({},e[n]),t[n]||{}),r},{})):e}function pf(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=vf(e[n],t[n]),r},Xt({},e)):e}function bi(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function mf(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:mi(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,pi([void 0],r,!1)))},{cache:bi(e.number),strategy:gi.variadic}),getDateTimeFormat:mi(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,pi([void 0],r,!1)))},{cache:bi(e.dateTime),strategy:gi.variadic}),getPluralRules:mi(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,pi([void 0],r,!1)))},{cache:bi(e.pluralRules),strategy:gi.variadic})}}var gf=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(o){var l=s.formatToParts(o);if(l.length===1)return l[0].value;var f=l.reduce(function(h,c){return!h.length||c.type!==rt.literal||typeof h[h.length-1]!="string"?h.push(c.value):h[h.length-1]+=c.value,h},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(o){return Ln(s.ast,s.locales,s.formatters,s.formats,o,void 0,s.message)},this.resolvedOptions=function(){var o;return{locale:((o=s.resolvedLocale)===null||o===void 0?void 0:o.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var u=Tl(a,["formatters"]);this.ast=e.__parse(t,Xt(Xt({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=pf(e.formats,n),this.formatters=i&&i.formatters||mf(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=lf,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function _f(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const hr={},bf=(e,t,r)=>r&&(t in hr||(hr[t]={}),e in hr[t]||(hr[t][e]=r),r),po=(e,t)=>{if(t==null)return;if(t in hr&&e in hr[t])return hr[t][e];const r=fi(t);for(let n=0;n<r.length;n++){const i=r[n],s=Ef(i,e);if(s)return bf(e,t,s)}};let as;const an=si({});function yf(e){return as[e]||null}function mo(e){return e in as}function Ef(e,t){if(!mo(e))return null;const r=yf(e);return _f(r,t)}function wf(e){if(e==null)return;const t=fi(e);for(let r=0;r<t.length;r++){const n=t[r];if(mo(n))return n}}function go(e,...t){delete hr[e],an.update(r=>(r[e]=Sl.all([r[e]||{},...t]),r))}sn([an],([e])=>Object.keys(e));an.subscribe(e=>as=e);const Rn={};function xf(e,t){Rn[e].delete(t),Rn[e].size===0&&delete Rn[e]}function _o(e){return Rn[e]}function Sf(e){return fi(e).map(t=>{const r=_o(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function ji(e){return e==null?!1:fi(e).some(t=>{var r;return(r=_o(t))==null?void 0:r.size})}function Tf(e,t){return Promise.all(t.map(n=>(xf(e,n),n().then(i=>i.default||i)))).then(n=>go(e,...n))}const un={};function bo(e){if(!ji(e))return e in un?un[e]:Promise.resolve();const t=Sf(e);return un[e]=Promise.all(t.map(([r,n])=>Tf(r,n))).then(()=>{if(ji(e))return bo(e);delete un[e]}),un[e]}const Af={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Pf={fallbackLocale:null,loadingDelay:200,formats:Af,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Mf=Pf;function nn(){return Mf}const yi=si(!1);var Hf=Object.defineProperty,Of=Object.defineProperties,$f=Object.getOwnPropertyDescriptors,Hs=Object.getOwnPropertySymbols,Nf=Object.prototype.hasOwnProperty,Bf=Object.prototype.propertyIsEnumerable,Os=(e,t,r)=>t in e?Hf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lf=(e,t)=>{for(var r in t||(t={}))Nf.call(t,r)&&Os(e,r,t[r]);if(Hs)for(var r of Hs(t))Bf.call(t,r)&&Os(e,r,t[r]);return e},Rf=(e,t)=>Of(e,$f(t));let Vi;const Vn=si(null);function $s(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function fi(e,t=nn().fallbackLocale){const r=$s(e);return t?[...new Set([...r,...$s(t)])]:r}function Rr(){return Vi!=null?Vi:void 0}Vn.subscribe(e=>{Vi=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Cf=e=>{if(e&&wf(e)&&ji(e)){const{loadingDelay:t}=nn();let r;return typeof window!="undefined"&&Rr()!=null&&t?r=window.setTimeout(()=>yi.set(!0),t):yi.set(!0),bo(e).then(()=>{Vn.set(e)}).finally(()=>{clearTimeout(r),yi.set(!1)})}return Vn.set(e)},mr=Rf(Lf({},Vn),{set:Cf}),hi=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Df=Object.defineProperty,Xn=Object.getOwnPropertySymbols,yo=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Ns=(e,t,r)=>t in e?Df(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,os=(e,t)=>{for(var r in t||(t={}))yo.call(t,r)&&Ns(e,r,t[r]);if(Xn)for(var r of Xn(t))Eo.call(t,r)&&Ns(e,r,t[r]);return e},on=(e,t)=>{var r={};for(var n in e)yo.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xn)for(var n of Xn(e))t.indexOf(n)<0&&Eo.call(e,n)&&(r[n]=e[n]);return r};const pn=(e,t)=>{const{formats:r}=nn();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},If=hi(e=>{var t=e,{locale:r,format:n}=t,i=on(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=pn("number",n)),new Intl.NumberFormat(r,i)}),kf=hi(e=>{var t=e,{locale:r,format:n}=t,i=on(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=pn("date",n):Object.keys(i).length===0&&(i=pn("date","short")),new Intl.DateTimeFormat(r,i)}),Ff=hi(e=>{var t=e,{locale:r,format:n}=t,i=on(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=pn("time",n):Object.keys(i).length===0&&(i=pn("time","short")),new Intl.DateTimeFormat(r,i)}),Uf=(e={})=>{var t=e,{locale:r=Rr()}=t,n=on(t,["locale"]);return If(os({locale:r},n))},Gf=(e={})=>{var t=e,{locale:r=Rr()}=t,n=on(t,["locale"]);return kf(os({locale:r},n))},jf=(e={})=>{var t=e,{locale:r=Rr()}=t,n=on(t,["locale"]);return Ff(os({locale:r},n))},Vf=hi((e,t=Rr())=>new gf(e,t,nn().formats,{ignoreTag:nn().ignoreTag})),Xf=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:u,locale:o=Rr(),default:l}=a;if(o==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=po(e,o);if(!f)f=(s=(i=(n=(r=nn()).handleMissingMessage)==null?void 0:n.call(r,{locale:o,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!u)return f;let h=f;try{h=Vf(f,o).format(u)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return h},Yf=(e,t)=>jf(t).format(e),zf=(e,t)=>Gf(t).format(e),qf=(e,t)=>Uf(t).format(e),Wf=(e,t=Rr())=>po(e,t),wo=sn([mr,an],()=>Xf);sn([mr],()=>Yf);sn([mr],()=>zf);sn([mr],()=>qf);sn([mr,an],()=>Wf);function Zf({withLocale:e,translations:t}){mr.subscribe(r=>{r==null&&(an.set(t),mr.set(e))})}function xo(e,t){go(e,t)}function Xi(e){mr.set(e)}function So(e){Object.keys(e).forEach(t=>{xo(t,e[t])})}function To(e){const t=new URL(e);fetch(t.href).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{xo(n,r[n])})}).catch(r=>{console.log(r)})}const Jf={en:{rank:"Rank",user:"User",points:"Points",prize:"Prize",notEnrolledRank:"You are currently not enrolled in this tournament.",leaderboardNotAvailable:"Leaderboard will be available soon.",myRanking:"My Ranking",showMore:"Show More",showLess:"Show Less",emptyLeaderboard:"Currently there are no players enrolled in this tournament",joinButton:"Join",previousButton:"Previous",nextButton:"Next"},tr:{rank:"Sıralama",user:"Kullanıcı",points:"Puan",prize:"Ödül",notEnrolledRank:"Şu anda bu turnuvaya kayıtlı değilsiniz.",leaderboardNotAvailable:"Liderlik tablosu yakında kullanıma sunulacak.",myRanking:"Sıralamam",showMore:"Daha Fazla Göster",showLess:"Daha Az Göster",emptyLeaderboard:"Şu anda bu turnuvaya kayıtlı oyuncu bulunmuyor.",joinButton:"Katıl",previousButton:"Önceki",nextButton:"Sonraki"},da:{rank:"Rang",user:"Bruger",points:"Point",prize:"Præmie",notEnrolledRank:"Du er i øjeblikket ikke tilmeldt denne turnering.",leaderboardNotAvailable:"Leaderboard vil være tilgængelig snart.",myRanking:"Min placering",showMore:"Vis mere",showLess:"Vis mindre",emptyLeaderboard:"Der er i øjeblikket ingen spillere tilmeldt denne turnering",previousButton:"Forrige",nextButton:"Næste",joinButton:"Deltag"}};var Qf=ot('<span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span>',1),Kf=ot('<span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r">—</span> <span class="svelte-1vfou2r">—</span>',1),eh=ot('<p class="NoPlayerData svelte-1vfou2r"> </p>'),th=ot('<p class="NoPlayerData svelte-1vfou2r"> </p>'),rh=ot('<div class="PlayerRankWrapper svelte-1vfou2r"><div class="PlayerRankLabels svelte-1vfou2r"><span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span></div> <div class="PlayerRankData svelte-1vfou2r"><!></div></div>'),nh=ot('<div class="PlayerRankSkeletonWrapper svelte-1vfou2r"><div class="PlayerRankSkeleton svelte-1vfou2r"></div> <div class="PlayerRankSkeleton svelte-1vfou2r"></div></div>'),ih=ot('<tr class="SkeletonRow svelte-1vfou2r"><td colspan="4" class="svelte-1vfou2r"></td></tr>'),sh=ot('<tr><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td></tr>'),ah=ot('<tr class="svelte-1vfou2r"><td colspan="4" class="svelte-1vfou2r"><div class="EmptyLeaderboard svelte-1vfou2r"><p class="svelte-1vfou2r"> </p></div></td></tr>'),oh=ot('<div class="PaginationSkeleton svelte-1vfou2r"><div class="PaginationSkeletonButton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationSkeletonButton svelte-1vfou2r"></div></div>'),uh=ot('<span class="PaginationButton Elipsis svelte-1vfou2r">...</span>'),lh=ot("<button> </button>"),fh=ot('<div class="PaginationWrapper svelte-1vfou2r"><button class="PaginationButton svelte-1vfou2r"> </button> <div class="PageNumberWrapper svelte-1vfou2r"></div> <button class="PaginationButton svelte-1vfou2r"> </button></div>'),hh=ot('<div class="LeaderboardWrapper svelte-1vfou2r"><div class="RankingWrapper svelte-1vfou2r"><!> <table class="LeaderboardTable svelte-1vfou2r"><thead class="LeaderboardTableHeader svelte-1vfou2r"><tr class="svelte-1vfou2r"><th class="svelte-1vfou2r"> </th><th class="svelte-1vfou2r"> </th><th class="svelte-1vfou2r"> </th><th class="svelte-1vfou2r"> </th></tr></thead><tbody class="LeaderboardTableBody svelte-1vfou2r"><!></tbody></table></div> <!> <!></div>');const ch={hash:"svelte-1vfou2r",code:`.svelte-1vfou2r,
|
|
20
|
-
.svelte-1vfou2r::before,
|
|
21
|
-
.svelte-1vfou2r::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.LeaderboardWrapper.svelte-1vfou2r {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding:16px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;}.PlayerRankWrapper.svelte-1vfou2r {display:flex;flex-direction:column;gap:5px;min-height:60px;.PlayerRankLabels:where(.svelte-1vfou2r), .PlayerRankData:where(.svelte-1vfou2r) {display:grid;grid-template-columns:1fr 1fr 2fr;padding:6px;color:var(--emw-color-typography-secondary, #bdbdbd);opacity:70%;font-size:14px;font-weight:400;& > span:where(.svelte-1vfou2r):last-child{justify-self:end;}p:where(.svelte-1vfou2r) {width:max-content;}.NoPlayerData:where(.svelte-1vfou2r) {grid-column:1 / -1;text-wrap:auto;width:auto;}}.PlayerRankData:where(.svelte-1vfou2r) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:12px;}}.PaginationWrapper.svelte-1vfou2r {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-1vfou2r) {display:flex;gap:6px;}.PaginationButton:where(.svelte-1vfou2r) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.LeaderboardTable.svelte-1vfou2r {border-collapse:separate;border-spacing:0 12px;width:100%;table-layout:fixed;overflow:hidden;.PlayerRow:where(.svelte-1vfou2r) {color:#F9C408;}thead:where(.svelte-1vfou2r) th:where(.svelte-1vfou2r) {background:transparent;padding:6px 16px;text-align:center;font-weight:400;color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;}tbody:where(.svelte-1vfou2r) tr:where(.svelte-1vfou2r) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;font-weight:500;&:last-child{justify-self:end;}}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r) {padding:12px;background-color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r):first-child {border-top-left-radius:8px;border-bottom-left-radius:8px;width:15%;}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r):nth-child(2) {width:35%;}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r):nth-child(3) {width:20%;}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r):last-child {border-top-right-radius:8px;border-bottom-right-radius:8px;width:30%;}th:where(.svelte-1vfou2r), td:where(.svelte-1vfou2r) {text-align:center;vertical-align:middle;}tbody:where(.svelte-1vfou2r) tr.Gold:where(.svelte-1vfou2r){background:linear-gradient(to right, #a2851a, color-mix(in srgb, #a2851a 50%, var(--emw-color-bg-secondary, #434343) 50%), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-1vfou2r) tr.Silver:where(.svelte-1vfou2r) {background:linear-gradient(to right, #b0aeae, color-mix(in srgb, #b0aeae, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-1vfou2r) tr.Bronze:where(.svelte-1vfou2r) {background:linear-gradient(to right, #ac763c, color-mix(in srgb, #ac763c, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}}.EmptyLeaderboard.svelte-1vfou2r {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography-secondary, #bdbdbd);width:100%;border-radius:8px;margin:10px 0;text-align:center;padding:10px 0;p:where(.svelte-1vfou2r) {text-wrap:auto;padding:0 15px;text-align:left;}}.SkeletonRow.svelte-1vfou2r {height:41px;overflow:hidden;background-color:var(--emw-color-skeleton, #535353);
|
|
22
|
-
animation: svelte-1vfou2r-pulse 1.5s infinite;}.PlayerRankSkeletonWrapper.svelte-1vfou2r {display:flex;justify-content:space-between;width:100%;gap:6px;flex-direction:column;.PlayerRankSkeleton:where(.svelte-1vfou2r) {width:100%;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);border-radius:6px;
|
|
23
|
-
animation: svelte-1vfou2r-pulse 1s infinite;}}.PaginationSkeleton.svelte-1vfou2r {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-1vfou2r) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
24
|
-
animation: svelte-1vfou2r-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-1vfou2r) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
25
|
-
animation: svelte-1vfou2r-pulse 1s infinite;}}
|
|
26
|
-
|
|
27
|
-
@keyframes svelte-1vfou2r-pulse {
|
|
28
|
-
0% {
|
|
29
|
-
opacity: 0;
|
|
30
|
-
}
|
|
31
|
-
50% {
|
|
32
|
-
opacity: 1;
|
|
33
|
-
}
|
|
34
|
-
100% {
|
|
35
|
-
opacity: 0;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@media (min-width: 1000px) {.ShowPlayersButton.svelte-1vfou2r {display:block;width:300px;margin:auto;background-color:var(--emw-color-bg-primary, #212121);}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@media (min-width: 750px) {.PaginationWrapper.svelte-1vfou2r, .PaginationSkeleton.svelte-1vfou2r {justify-content:end;gap:10px;}.PaginationButton.svelte-1vfou2r {min-width:75px;}.PaginationSkeleton.svelte-1vfou2r {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-1vfou2r) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-1vfou2r) {width:25px;}}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@media (max-width: 475px) {.PaginationWrapper.svelte-1vfou2r {& .PaginationButton:where(.svelte-1vfou2r) {font-size:11px;&.Number {font-size:11px;}}}
|
|
46
|
-
}`};function us(e,t){Kn(t,!0),Ga(e,ch);const r=()=>Xa(wo,"$_",n),[n,i]=Ya(),s=nt(t,"endpoint"),a=nt(t,"language",7,"en"),u=nt(t,"session"),o=nt(t,"tournamentid"),l=nt(t,"platform"),f=nt(t,"translationurl"),h=nt(t,"newlyEnrolled");So(Jf),Xi(a());const c=()=>{Xi(a())};Ea(()=>{f()&&To(f())}),Fn(()=>{c()});let g=null,S=De(void 0),$=De(!1),v=De(!1),b=De(void 0),L=De(void 0),T=De(0),R=De(10),G=De(!0),X=De(void 0),W=De(!1);const ne=()=>kt(this,null,function*(){if(!A.has(P(_))){xe($,!0);try{const m=yield Qu({endpoint:s(),language:a(),platform:l(),session:u(),tournamentid:o(),offset:P(T),limit:P(R)});xe(S,m.items,!0),xe(X,m.total,!0),A.set(P(_),P(S)),P(G)||xe(G,!0)}catch(m){console.log(m)}finally{xe($,!1)}}}),ie=()=>{g&&(g.close(),g=null),g=el({endpoint:s(),language:a(),platform:l(),session:u(),tournamentid:o(),offset:P(T),limit:P(R)},m=>{xe(S,m,!0)})},C=()=>kt(this,null,function*(){xe(v,!0);try{const m=yield Ku({endpoint:s(),language:a(),platform:l(),session:u(),tournamentid:o()});xe(b,m.playerData,!0),xe(L,m.endRank,!0),xe(W,m.playerEnrolled,!0)}catch(m){console.log(m)}finally{xe(v,!1)}}),I=()=>{P(T)<P(X)&&(xe(T,P(T)+P(R)),ne(),ie())},se=()=>{P(T)!==0&&(xe(T,P(T)-P(R)),ne(),ie())},_e=m=>{xe(T,(m-1)*P(R)),ne(),ie()},E=On(()=>{const m=Math.ceil(P(X)/P(R)),D=Math.floor(P(T)/P(R))+1;if(m<=5)return Array.from({length:m},(ke,Se)=>Se+1);const U=[];return U.push(1),D<=3?(U.push(2,3),U.push("..."),U.push(m)):D>=m-2?(U.push("..."),U.push(m-2,m-1,m)):(U.push("..."),U.push(D-1,D,D+1),U.push("..."),U.push(m)),U}),_=On(()=>Math.floor(P(T)/P(R))+1);let A=new Map,y=On(()=>{var m;return(m=A.get(P(_)))!=null?m:[]});const M=(m,D)=>{const U=[];return D&&U.push("PlayerRow"),m===1&&U.push("Gold"),m===2&&U.push("Silver"),m===3&&U.push("Bronze"),U.join(" ")},N=m=>m?Math.floor(m):"-";Fn(()=>{h()&&C()}),rs(()=>(ne(),C(),ie(),()=>{g==null||g.close(),g=null}));var k={get endpoint(){return s()},set endpoint(m){s(m),Ze()},get language(){return a()},set language(m="en"){a(m),Ze()},get session(){return u()},set session(m){u(m),Ze()},get tournamentid(){return o()},set tournamentid(m){o(m),Ze()},get platform(){return l()},set platform(m){l(m),Ze()},get translationurl(){return f()},set translationurl(m){f(m),Ze()},get newlyEnrolled(){return h()},set newlyEnrolled(m){h(m),Ze()}},re=hh(),fe=Q(re),Ae=Q(fe);{var Ie=m=>{var D=rh(),U=Q(D),ke=Q(U),Se=Q(ke,!0);Y(ke);var ae=Ge(ke,2),ge=Q(ae,!0);Y(ae);var Be=Ge(ae,2),Fe=Q(Be,!0);Y(Be),Y(U);var ye=Ge(U,2),tt=Q(ye);{var Ee=pe=>{var Re=Qf(),qe=Jt(Re),It=Q(qe);Y(qe);var wt=Ge(qe,2),We=Q(wt,!0);Y(wt);var oe=Ge(wt,2),ve=Q(oe,!0);Y(oe),xt(()=>{var Pe;He(It,`${(Pe=P(b).rank)!=null?Pe:""}.`),He(We,P(b).score),He(ve,P(b).prizeName||"—")}),Oe(pe,Re)},Zt=pe=>{var Re=_r(),qe=Jt(Re);{var It=We=>{var oe=Kf(),ve=Jt(oe),Pe=Q(ve);Y(ve),Wi(4),xt(()=>{var Ue;return He(Pe,`${(Ue=P(L))!=null?Ue:""}.`)}),Oe(We,oe)},wt=We=>{var oe=_r(),ve=Jt(oe);{var Pe=Me=>{var we=eh(),vt=Q(we,!0);Y(we),xt(pt=>He(vt,pt),[()=>r()("leaderboardNotAvailable")]),Oe(Me,we)},Ue=Me=>{var we=th(),vt=Q(we,!0);Y(we),xt(pt=>He(vt,pt),[()=>r()("notEnrolledRank")]),Oe(Me,we)};Ft(ve,Me=>{P(W)?Me(Pe):Me(Ue,!1)},!0)}Oe(We,oe)};Ft(qe,We=>{P(L)?We(It):We(wt,!1)},!0)}Oe(pe,Re)};Ft(tt,pe=>{P(b)?pe(Ee):pe(Zt,!1)})}Y(ye),Y(D),xt((pe,Re,qe)=>{He(Se,pe),He(ge,Re),He(Fe,qe)},[()=>r()("myRanking"),()=>r()("points"),()=>r()("prize")]),Oe(m,D)},yt=m=>{var D=nh();Oe(m,D)};Ft(Ae,m=>{P(v)?m(yt,!1):m(Ie)})}var ut=Ge(Ae,2),Ke=Q(ut),Ve=Q(Ke),ce=Q(Ve),me=Q(ce,!0);Y(ce);var et=Ge(ce),Et=Q(et,!0);Y(et);var Dt=Ge(et),Wt=Q(Dt,!0);Y(Dt);var p=Ge(Dt),x=Q(p,!0);Y(p),Y(Ve),Y(Ke);var H=Ge(Ke),w=Q(H);{var F=m=>{var D=_r(),U=Jt(D);Nn(U,17,()=>Array(P(R)),$n,(ke,Se,ae,ge)=>{var Be=ih();Oe(ke,Be)}),Oe(m,D)},B=m=>{var D=_r(),U=Jt(D);{var ke=ae=>{var ge=_r(),Be=Jt(ge);Nn(Be,17,()=>P(y),$n,(Fe,ye)=>{var tt=sh(),Ee=Q(tt),Zt=Q(Ee);Y(Ee);var pe=Ge(Ee),Re=Q(pe,!0);Y(pe);var qe=Ge(pe),It=Q(qe,!0);Y(qe);var wt=Ge(qe),We=Q(wt,!0);Y(wt),Y(tt),xt((oe,ve)=>{var Pe;Bi(tt,1,oe,"svelte-1vfou2r"),He(Zt,`${(Pe=P(ye).rank)!=null?Pe:""}.`),He(Re,P(ye).shortName||"J.D"),He(It,ve),He(We,P(ye).prizeName||"—")},[()=>{var oe;return Va(M(P(ye).rank,P(ye).rank===((oe=P(b))==null?void 0:oe.rank)))},()=>N(P(ye).score)]),Oe(Fe,tt)}),Oe(ae,ge)},Se=ae=>{var ge=ah(),Be=Q(ge),Fe=Q(Be),ye=Q(Fe),tt=Q(ye,!0);Y(ye),Y(Fe),Y(Be),Y(ge),xt(Ee=>He(tt,Ee),[()=>r()("leaderboardNotAvailable")]),Oe(ae,ge)};Ft(U,ae=>{var ge;((ge=P(S))==null?void 0:ge.length)>0?ae(ke):ae(Se,!1)},!0)}Oe(m,D)};Ft(w,m=>{P($)?m(F):m(B,!1)})}Y(H),Y(ut),Y(fe);var j=Ge(fe,2);{var be=m=>{var D=oh();Oe(m,D)};Ft(j,m=>{P(G)||m(be)})}var Z=Ge(j,2);{var le=m=>{var D=fh(),U=Q(D);U.__click=se;var ke=Q(U,!0);Y(U);var Se=Ge(U,2);Nn(Se,21,()=>P(E),$n,(Be,Fe)=>{var ye=_r(),tt=Jt(ye);{var Ee=pe=>{var Re=uh();Oe(pe,Re)},Zt=pe=>{var Re=lh();let qe;Re.__click=()=>_e(P(Fe));var It=Q(Re,!0);Y(Re),xt(()=>{qe=Bi(Re,1,"PaginationButton Number svelte-1vfou2r",null,qe,{Active:P(Fe)===P(_)}),He(It,P(Fe))}),Oe(pe,Re)};Ft(tt,pe=>{typeof P(Fe)!="number"?pe(Ee):pe(Zt,!1)})}Oe(Be,ye)}),Y(Se);var ae=Ge(Se,2);ae.__click=I;var ge=Q(ae,!0);Y(ae),Y(D),xt((Be,Fe)=>{U.disabled=P(T)===0,He(ke,Be),ae.disabled=P(T)>=P(X)-P(R),He(ge,Fe)},[()=>r()("previousButton"),()=>r()("nextButton")]),Oe(m,D)};Ft(Z,m=>{P(G)&&P(X)>P(R)&&m(le)})}Y(re),xt((m,D,U,ke)=>{He(me,m),He(Et,D),He(Wt,U),He(x,ke)},[()=>r()("rank"),()=>r()("user"),()=>r()("points"),()=>r()("prize")]),Oe(e,re);var de=ei(k);return i(),de}Ia(["click"]);is(us,{endpoint:{},language:{},session:{},tournamentid:{},platform:{},translationurl:{},newlyEnrolled:{}},[],[],!0);function Ao(e,t){Kn(t,!0);let r=nt(t,"endpoint"),n=nt(t,"language",7,"en"),i=nt(t,"session"),s=nt(t,"tournamentid"),a=nt(t,"platform"),u=nt(t,"translationurl"),o=nt(t,"newlyEnrolled");var l={get endpoint(){return r()},set endpoint(f){r(f),Ze()},get language(){return n()},set language(f="en"){n(f),Ze()},get session(){return i()},set session(f){i(f),Ze()},get tournamentid(){return s()},set tournamentid(f){s(f),Ze()},get platform(){return a()},set platform(f){a(f),Ze()},get translationurl(){return u()},set translationurl(f){u(f),Ze()},get newlyEnrolled(){return o()},set newlyEnrolled(f){o(f),Ze()}};return us(e,{get endpoint(){return r()},get language(){return n()},get session(){return i()},get tournamentid(){return s()},get platform(){return a()},get translationurl(){return u()},get newlyEnrolled(){return o()}}),ei(l)}customElements.define("tournament-leaderboard",is(Ao,{endpoint:{},language:{},session:{},tournamentid:{},platform:{},translationurl:{},newlyEnrolled:{}},[],[],!1));const dh=Object.freeze(Object.defineProperty({__proto__:null,default:Ao},Symbol.toStringTag,{value:"Module"}));exports.$format=wo;exports.TournamentLeaderboard=us;exports.TournamentLeaderboard_ce=dh;exports.TournamentWalletUtils=ll;exports.append=Oe;exports.append_styles=Ga;exports.child=Q;exports.clsx=Va;exports.comment=_r;exports.commonjsGlobal=ai;exports.create_custom_element=is;exports.dayjs=ss;exports.delegate=Ia;exports.each=Nn;exports.fetchTournament=Zu;exports.first_child=Jt;exports.flushSync=Ze;exports.from_html=ot;exports.get=P;exports.getDefaultExportFromCjs=oi;exports.getFormattedDate=ol;exports.html=Ru;exports.if_block=Ft;exports.index=$n;exports.isServer=ul;exports.joinTournament=nl;exports.loadTranslations=To;exports.next=Wi;exports.onDestroy=$u;exports.onMount=rs;exports.pop=ei;exports.prop=nt;exports.proxy=Ur;exports.push=Kn;exports.registerTranslations=So;exports.reset=Y;exports.set=xe;exports.setLocale=Xi;exports.set_attribute=Gu;exports.set_class=Bi;exports.set_style=ku;exports.set_text=He;exports.setupI18n=Zf;exports.setup_stores=Ya;exports.sibling=Ge;exports.state=De;exports.store_get=Xa;exports.template_effect=xt;exports.text=Tu;exports.user_derived=On;exports.user_effect=Fn;exports.user_pre_effect=Ea;
|