@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.
Files changed (26) hide show
  1. package/components/{TournamentDetails-hOUvqDF2.js → TournamentDetails-CTrigRlQ.js} +85 -88
  2. package/components/{TournamentDetails-CYrQWwZn.cjs → TournamentDetails-CamF-OAP.cjs} +2 -2
  3. package/components/{TournamentDetails-BVnS_IYF.js → TournamentDetails-DxnqovRH.js} +88 -91
  4. package/components/{TournamentDetails-BoaqYHo1.cjs → TournamentDetails-qI01TVz6.cjs} +2 -2
  5. package/components/{TournamentDetailsPage-DcS7Pa0U.js → TournamentDetailsPage-BhOKeY6o.js} +139 -140
  6. package/components/{TournamentDetailsPage-LxAzPvhv.js → TournamentDetailsPage-CAgzJoGS.js} +147 -148
  7. package/components/{TournamentDetailsPage-BgoG6goQ.cjs → TournamentDetailsPage-Ch2aanZt.cjs} +3 -3
  8. package/components/{TournamentDetailsPage-WnIR1yO-.cjs → TournamentDetailsPage-clnwYJj-.cjs} +3 -3
  9. package/components/TournamentGames-05Z4kMcw.cjs +51 -0
  10. package/components/TournamentGames-Ba_dX246.cjs +51 -0
  11. package/components/{TournamentGames-B5Vr9KT7.js → TournamentGames-QGboBJGp.js} +395 -418
  12. package/components/{TournamentGames-Bgha2ST9.js → TournamentGames-dkEGBAmh.js} +337 -360
  13. package/components/TournamentLeaderboard-BZPNaquR.cjs +46 -0
  14. package/components/TournamentLeaderboard-CE2y2ivq.js +8127 -0
  15. package/components/TournamentLeaderboard-D4iLH5gS.cjs +46 -0
  16. package/components/{TournamentLeaderboard-cxKLflDm.js → TournamentLeaderboard-DIOfuPoN.js} +3445 -3042
  17. package/es2015/tournament-details-page.cjs +1 -1
  18. package/es2015/tournament-details-page.js +2 -2
  19. package/esnext/tournament-details-page.cjs +1 -1
  20. package/esnext/tournament-details-page.js +2 -2
  21. package/package.json +1 -1
  22. package/components/TournamentGames-DXcN8tkz.cjs +0 -51
  23. package/components/TournamentGames-DpOh7T_F.cjs +0 -51
  24. package/components/TournamentLeaderboard-8MMMRNQy.cjs +0 -46
  25. package/components/TournamentLeaderboard-C_Ne8wC4.js +0 -7718
  26. package/components/TournamentLeaderboard-DpfSasWx.cjs +0 -46
@@ -0,0 +1,46 @@
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const Da="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Da);const Ia=1,ka=2,Qi=4,Fa=8,Ua=16,Ga=1,ja=2,Ki="[",ai="[!",Ti="[?",oi="]",Qt={},Oe=Symbol("uninitialized"),es="http://www.w3.org/1999/xhtml",Va="http://www.w3.org/2000/svg",Ya="http://www.w3.org/1998/Math/MathML",ts=!1;var rs=Array.isArray,Xa=Array.prototype.indexOf,en=Array.prototype.includes,dn=Array.from,tn=Object.keys,Lr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,za=Object.getOwnPropertyDescriptors,Wa=Object.prototype,qa=Array.prototype,ns=Object.getPrototypeOf,Ai=Object.isExtensible;const Dt=()=>{};function is(e){for(var t=0;t<e.length;t++)e[t]()}function ss(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Ce=2,cr=4,Dr=8,as=1<<24,_t=16,mt=32,Ht=64,Dn=128,pt=512,Ne=1024,Pe=2048,Et=4096,Je=8192,at=16384,tr=32768,Mi=1<<25,dr=65536,rn=1<<17,Za=1<<18,rr=1<<19,os=1<<20,Mt=1<<25,Kt=65536,nn=1<<21,hr=1<<22,Vt=1<<23,Pn=Symbol("$state"),Ja=Symbol("legacy props"),Qa=Symbol(""),us=Symbol("attributes"),In=Symbol("class"),kn=Symbol("style"),Fn=Symbol("text"),Ir=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ka=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),kr=3,wr=8;function ls(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function eo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function to(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function ro(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function no(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function io(e){throw new Error("https://svelte.dev/e/effect_orphan")}function so(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ao(){throw new Error("https://svelte.dev/e/hydration_failed")}function oo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function uo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function lo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function fo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ho(){console.warn("https://svelte.dev/e/derived_inert")}function Fr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function co(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let q=!1;function Ct(e){q=e}let Q;function Ue(e){if(e===null)throw Fr(),Qt;return Q=e}function vr(){return Ue(xt(Q))}function Y(e){if(q){if(xt(Q)!==null)throw Fr(),Qt;Q=e}}function ui(e=1){if(q){for(var t=e,r=Q;t--;)r=xt(r);Q=r}}function sn(e=!0){for(var t=0,r=Q;;){if(r.nodeType===wr){var n=r.data;if(n===oi){if(t===0)return r;t-=1}else(n===Ki||n===ai||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=xt(r);e&&r.remove(),r=i}}function fs(e){if(!e||e.nodeType!==wr)throw Fr(),Qt;return e.data}function hs(e){return e===this.v}function cs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ds(e){return!cs(e,this.v)}let vo=!1,Ve=null;function pr(e){Ve=e}function vn(e,t=!1,r){Ve={p:Ve,i:!1,c:null,e:null,s:e,x:null,r:V,l:null}}function pn(e){var t=Ve,r=t.e;if(r!==null){t.e=null;for(var n of r)Cs(n)}return e!==void 0&&(t.x=e),t.i=!0,Ve=t.p,e??{}}function vs(){return!0}let zt=[];function ps(){var e=zt;zt=[],is(e)}function Ut(e){if(zt.length===0&&!$r){var t=zt;queueMicrotask(()=>{t===zt&&ps()})}zt.push(e)}function po(){for(;zt.length>0;)ps()}function ms(e){var t=V;if(t===null)return J.f|=Vt,e;if(!(t.f&tr)&&!(t.f&cr))throw e;Gt(e,t)}function Gt(e,t){if(!(t!==null&&t.f&at)){for(;t!==null;){if(t.f&Dn){if(!(t.f&tr))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}const mo=-7169;function Te(e,t){e.f=e.f&mo|t}function li(e){e.f&pt||e.deps===null?Te(e,Ne):Te(e,Et)}function gs(e){if(e!==null)for(const t of e)!(t.f&Ce)||!(t.f&Kt)||(t.f^=Kt,gs(t.deps))}function _s(e,t,r){e.f&Pe?t.add(e):e.f&Et&&r.add(e),gs(e.deps),Te(e,Ne)}function fi(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Dt;const n=En(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const sr=[];function go(e,t){return{subscribe:mn(e,t).subscribe}}function mn(e,t=Dt){let r=null;const n=new Set;function i(o){if(cs(e,o)&&(e=o,r)){const u=!sr.length;for(const f of n)f[1](),sr.push(f,e);if(u){for(let f=0;f<sr.length;f+=2)sr[f][0](sr[f+1]);sr.length=0}}}function s(o){i(o(e))}function a(o,u=Dt){const f=[o,u];return n.add(f),n.size===1&&(r=t(i,s)||Dt),o(e),()=>{n.delete(f),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function xr(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 go(r,(a,o)=>{let u=!1;const f=[];let l=0,h=Dt;const c=()=>{if(l)return;h();const m=t(n?f[0]:f,a,o);s?a(m):h=typeof m=="function"?m:Dt},d=i.map((m,P)=>fi(m,p=>{f[P]=p,l&=~(1<<P),u&&c()},()=>{l|=1<<P}));return u=!0,c(),function(){is(d),h(),u=!1}})}function _o(e){let t;return fi(e,r=>t=r)(),t}let Un=Symbol("unmounted");function bs(e,t,r){const n=r[t]??={store:null,source:vi(void 0),unsubscribe:Dt};if(n.store!==e&&!(Un in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=Dt;else{var i=!0;n.unsubscribe=fi(e,s=>{i?n.source.v=s:me(n.source,s)}),i=!1}return e&&Un in r?_o(e):A(n.source)}function ys(){const e={};function t(){Bs(()=>{for(var r in e)e[r].unsubscribe();Lr(e,Un,{enumerable:!1,value:!0})})}return[e,t]}function gn(e){var t=J,r=V;gt(null),Ot(null);try{return e()}finally{gt(t),Ot(r)}}function bo(e){let t=0,r=er(0),n;return()=>{pi()&&(A(r),Is(()=>(t===0&&(n=En(()=>e(()=>Nr(r)))),t+=1,()=>{Ut(()=>{t-=1,t===0&&(n?.(),n=void 0,Nr(r))})})))}}var yo=dr|rr;function Eo(e,t,r,n){new wo(e,t,r,n)}class wo{parent;is_pending=!1;transform_error;#e;#t=q?Q:null;#r;#u;#i;#a=null;#n=null;#o=null;#s=null;#p=0;#l=0;#f=!1;#c=new Set;#m=new Set;#h=null;#_=bo(()=>(this.#h=er(this.#p),()=>{this.#h=null}));constructor(t,r,n,i){this.#e=t,this.#r=r,this.#u=s=>{var a=V;a.b=this,a.f|=Dn,n(s)},this.parent=V.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#i=mi(()=>{if(q){const s=this.#t;vr();const a=s.data===ai;if(s.data.startsWith(Ti)){const u=JSON.parse(s.data.slice(Ti.length));this.#b(u)}else a?this.#w():this.#g()}else this.#d()},yo),q&&(this.#e=Q)}#g(){try{this.#a=dt(()=>this.#u(this.#e))}catch(t){this.error(t)}}#b(t){const r=this.#r.failed,{reset:n,invoke_onerror:i}=this.#y(t);Ut(i),r&&(this.#o=dt(()=>{r(this.#e,()=>t,()=>n)}))}#y(t){var r=!1,n=!1;const i=()=>{if(r){co();return}r=!0,n&&fo(),this.#o!==null&&Zt(this.#o,()=>{this.#o=null}),this.#v(()=>{this.#d()})};return{reset:i,invoke_onerror:()=>{try{n=!0,this.#r.onerror?.(t,i),n=!1}catch(a){Gt(a,this.#i&&this.#i.parent)}}}}#w(){const t=this.#r.pending;t&&(this.is_pending=!0,this.#n=dt(()=>t(this.#e)),Ut(()=>{var r=this.#s=document.createDocumentFragment(),n=rt();r.append(n),this.#a=this.#v(()=>dt(()=>this.#u(n))),this.#l===0&&(this.#e.before(r),this.#s=null,Zt(this.#n,()=>{this.#n=null}),this.#E(ie))}))}#d(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#p=0,this.#a=dt(()=>{this.#u(this.#e)}),this.#l>0){var t=this.#s=document.createDocumentFragment();_i(this.#a,t);const r=this.#r.pending;this.#n=dt(()=>r(this.#e))}else this.#E(ie)}catch(r){this.error(r)}}#E(t){this.is_pending=!1,t.transfer_effects(this.#c,this.#m)}defer_effect(t){_s(t,this.#c,this.#m)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#v(t){var r=V,n=J,i=Ve;Ot(this.#i),gt(this.#i),pr(this.#i.ctx);try{return It.ensure(),t()}catch(s){return ms(s),null}finally{Ot(r),gt(n),pr(i)}}#x(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#x(t,r);return}this.#l+=t,this.#l===0&&(this.#E(r),this.#n&&Zt(this.#n,()=>{this.#n=null}),this.#s&&(this.#e.before(this.#s),this.#s=null))}update_pending_count(t,r){this.#x(t,r),this.#p+=t,!(!this.#h||this.#f)&&(this.#f=!0,Ut(()=>{this.#f=!1,this.#h&&mr(this.#h,this.#p)}))}get_effect_pending(){return this.#_(),A(this.#h)}error(t){if(!this.#r.onerror&&!this.#r.failed)throw t;ie?.is_fork?(this.#a&&ie.skip_effect(this.#a),this.#n&&ie.skip_effect(this.#n),this.#o&&ie.skip_effect(this.#o),ie.oncommit(()=>{this.#S(t)})):this.#S(t)}#S(t){this.#a&&(Qe(this.#a),this.#a=null),this.#n&&(Qe(this.#n),this.#n=null),this.#o&&(Qe(this.#o),this.#o=null),q&&(Ue(this.#t),ui(),Ue(sn()));let r=this.#r.failed;const n=i=>{const{reset:s,invoke_onerror:a}=this.#y(i);a(),r&&(this.#o=this.#v(()=>{try{return dt(()=>{var o=V;o.b=this,o.f|=Dn,r(this.#e,()=>i,()=>s)})}catch(o){return Gt(o,this.#i.parent),null}}))};Ut(()=>{var i;try{i=this.transform_error(t)}catch(s){Gt(s,this.#i&&this.#i.parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(n,s=>Gt(s,this.#i&&this.#i.parent)):n(i)})}}function xo(e,t,r,n){const i=_n;var s=e.filter(d=>!d.settled),a=t.map(i);if(r.length===0&&s.length===0){n(a);return}var o=V,u=So(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function l(d){if(!(o.f&at)){u();try{n([...a,...d])}catch(m){Gt(m,o)}an()}}var h=Es();if(r.length===0){f.then(()=>l([])).finally(h);return}function c(){Promise.all(r.map(d=>To(d))).then(l).catch(d=>Gt(d,o)).finally(h)}f?f.then(()=>{u(),c(),an()}):c()}function So(){var e=V,t=J,r=Ve,n=ie;return function(s=!0){Ot(e),gt(t),pr(r),s&&!(e.f&at)&&(n?.activate(),n?.apply())}}function an(e=!0){Ot(null),gt(null),pr(null),e&&ie?.deactivate()}function Es(){var e=V,t=e.b,r=ie,n=!!t?.is_rendered();return t?.update_pending_count(1,r),r.increment(n,e),()=>{t?.update_pending_count(-1,r),r.decrement(n,e)}}function _n(e){var t=Ce|Pe;return V!==null&&(V.f|=rr),{ctx:Ve,deps:null,effects:null,equals:hs,f:t,fn:e,reactions:null,rv:0,v:Oe,wv:0,parent:V,ac:null}}const Pr=Symbol("obsolete");function To(e,t,r){let n=V;n===null&&eo();var i=void 0,s=er(Oe),a=!J,o=new Set;return Co(()=>{var u=V,f=ss();i=f.promise;try{Promise.resolve(e()).then(f.resolve,d=>{d!==Ir&&f.reject(d)}).finally(an)}catch(d){f.reject(d),an()}var l=ie;if(a){if(u.f&tr)var h=Es();if(n.b?.is_rendered())l.async_deriveds.get(u)?.reject(Pr);else for(const d of o.values())d.reject(Pr);o.add(f),l.async_deriveds.set(u,f)}const c=(d,m=void 0)=>{h?.(),o.delete(f),m!==Pr&&(l.activate(),m?(s.f|=Vt,mr(s,m)):(s.f&Vt&&(s.f^=Vt),mr(s,d)),l.deactivate())};f.promise.then(c,d=>c(null,d||"unknown"))}),Bs(()=>{for(const u of o)u.reject(Pr)}),new Promise(u=>{function f(l){function h(){l===i?u(s):f(i)}l.then(h,h)}f(i)})}function Vr(e){const t=_n(e);return Vs(t),t}function Ao(e){const t=_n(e);return t.equals=ds,t}function Mo(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Qe(t[r])}}function hi(e){var t,r=V,n=e.parent;if(!kt&&n!==null&&e.v!==Oe&&n.f&(at|Je))return ho(),e.v;Ot(n);try{e.f&=~Kt,Mo(e),t=Ws(e)}finally{Ot(r)}return t}function ws(e){var t=hi(e);if(!e.equals(t)&&(e.wv=Xs(),(!ie?.is_fork||e.deps===null)&&(ie!==null?(ie.capture(e,t,!0),Gn?.capture(e,t,!0)):e.v=t,e.deps===null))){Te(e,Ne);return}kt||(bt!==null?(pi()||ie?.is_fork)&&bt.set(e,t):li(e))}function Po(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&gn(()=>{t.ac.abort(Ir),t.ac=null}),t.fn!==null&&(t.teardown=Dt),Rr(t,0),gi(t))}function xs(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&gr(t)}let Hn=null,ar=null,ie=null,Gn=null,bt=null,jn=null,$r=!1,On=!1,ur=null,Yr=null;var Pi=0;let Ho=1;class It{id=Ho++;#e=!1;linked=!0;#t=null;#r=null;async_deriveds=new Map;current=new Map;previous=new Map;#u=new Set;#i=new Set;#a=0;#n=new Map;#o=null;#s=[];#p=[];#l=new Set;#f=new Set;#c=new Map;#m=new Set;is_fork=!1;#h=!1;constructor(){ar===null?Hn=ar=this:(ar.#r=this,this.#t=ar),ar=this}#_(){if(this.is_fork)return!0;for(const n of this.#n.keys()){for(var t=n,r=!1;t.parent!==null;){if(this.#c.has(t)){r=!0;break}t=t.parent}if(!r)return!0}return!1}skip_effect(t){this.#c.has(t)||this.#c.set(t,{d:[],m:[]}),this.#m.delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=this.#c.get(t);if(n){this.#c.delete(t);for(var i of n.d)Te(i,Pe),r(i);for(i of n.m)Te(i,Et),r(i)}this.#m.add(t)}#g(){this.#e=!0,Pi++>1e3&&(this.#v(),Oo());for(const u of this.#l)this.#f.delete(u),Te(u,Pe),this.schedule(u);for(const u of this.#f)Te(u,Et),this.schedule(u);const t=this.#s;this.#s=[],this.apply();var r=ur=[],n=[],i=Yr=[];for(const u of t)try{this.#b(u,r,n)}catch(f){throw As(u),this.#_()||this.discard(),f}if(ie=null,i.length>0){var s=It.ensure();for(const u of i)s.schedule(u)}if(ur=null,Yr=null,this.#_()){this.#d(n),this.#d(r);for(const[u,f]of this.#c)Ts(u,f);i.length>0&&ie.#g();return}const a=this.#y();if(a){this.#d(n),this.#d(r),a.#w(this);return}this.#l.clear(),this.#f.clear();for(const u of this.#u)u(this);this.#u.clear(),Gn=this,Hi(n),Hi(r),Gn=null,this.#o?.resolve();var o=ie;if(this.#a===0&&(this.#s.length===0||o!==null)&&this.#v(),this.#s.length>0)if(o!==null){const u=o;u.#s.push(...this.#s.filter(f=>!u.#s.includes(f)))}else o=this;o!==null&&o.#g()}#b(t,r,n){t.f^=Ne;for(var i=t.first;i!==null;){var s=i.f,a=(s&(mt|Ht))!==0,o=a&&(s&Ne)!==0,u=o||(s&Je)!==0||this.#c.has(i);if(!u&&i.fn!==null){a?i.f^=Ne:s&cr?r.push(i):Ur(i)&&(s&_t&&this.#f.add(i),gr(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var l=i.next;if(l!==null){i=l;break}i=i.parent}}}#y(){for(var t=this.#t;t!==null;){if(!t.is_fork){for(const[r,[,n]]of this.current)if(t.current.has(r)&&!n)return t}t=t.#t}return null}#w(t){for(const[n,i]of t.current)!this.previous.has(n)&&t.previous.has(n)&&this.previous.set(n,t.previous.get(n)),this.current.set(n,i);for(const[n,i]of t.async_deriveds){const s=this.async_deriveds.get(n);s&&i.promise.then(s.resolve).catch(s.reject)}t.async_deriveds.clear(),this.transfer_effects(t.#l,t.#f);const r=n=>{var i=n.reactions;if(i!==null&&!(n.f&Ce&&!(n.f&(Pe|Et))))for(const o of i){var s=o.f;if(s&Ce)r(o);else{var a=o;s&(hr|_t)&&!this.async_deriveds.has(a)&&(this.#f.delete(a),Te(a,Pe),this.schedule(a))}}};for(const n of this.current.keys())r(n);this.oncommit(()=>t.discard()),t.#v(),ie=this,this.#g()}#d(t){for(var r=0;r<t.length;r+=1)_s(t[r],this.#l,this.#f)}capture(t,r,n=!1){t.v!==Oe&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&Vt||(this.current.set(t,[r,n]),bt?.set(t,r)),this.is_fork||(t.v=r)}activate(){ie=this}deactivate(){ie=null,bt=null}flush(){try{On=!0,ie=this,this.#g()}finally{Pi=0,jn=null,ur=null,Yr=null,On=!1,ie=null,bt=null,qt.clear()}}discard(){for(const t of this.#i)t(this);this.#i.clear();for(const t of this.async_deriveds.values())t.reject(Pr);this.#v(),this.#o?.resolve()}register_created_effect(t){this.#p.push(t)}#E(){for(let h=Hn;h!==null;h=h.#r){var t=h.id<this.id,r=[];for(const[c,[d,m]]of this.current){if(h.current.has(c)){var n=h.current.get(c)[0];if(t&&d!==n)h.current.set(c,[d,m]);else continue}r.push(c)}if(t)for(const[c,d]of this.async_deriveds){const m=h.async_deriveds.get(c);m&&d.promise.then(m.resolve).catch(m.reject)}var i=[...h.current.keys()].filter(c=>!h.current.get(c)[1]);if(!(!h.#e||i.length===0)){var s=i.filter(c=>!this.current.has(c));if(s.length===0)t&&h.discard();else if(r.length>0){if(t)for(const c of this.#m)h.unskip_effect(c,d=>{d.f&(_t|hr)?h.schedule(d):h.#d([d])});h.activate();var a=new Set,o=new Map;for(var u of r)Ss(u,s,a,o);o=new Map;var f=[...h.current].filter(([c,d])=>{const m=this.current.get(c);return m?m[0]!==d[0]||m[1]!==d[1]:!0}).map(([c])=>c);if(f.length>0)for(const c of this.#p)!(c.f&(at|Je|rn))&&ci(c,f,o)&&(c.f&(hr|_t)?(Te(c,Pe),h.schedule(c)):h.#l.add(c));if(h.#s.length>0&&!h.#h){h.apply();for(var l of h.#s)h.#b(l,[],[]);h.#s=[]}h.deactivate()}}}}increment(t,r){if(this.#a+=1,t){let n=this.#n.get(r)??0;this.#n.set(r,n+1)}}decrement(t,r){if(this.#a-=1,t){let n=this.#n.get(r)??0;n===1?this.#n.delete(r):this.#n.set(r,n-1)}this.#h||(this.#h=!0,Ut(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(t,r){for(const n of t)this.#l.add(n);for(const n of r)this.#f.add(n);t.clear(),r.clear()}oncommit(t){this.#u.add(t)}ondiscard(t){this.#i.add(t)}settled(){return(this.#o??=ss()).promise}static ensure(){if(ie===null){const t=ie=new It;!On&&!$r&&Ut(()=>{t.#e||t.flush()})}return ie}apply(){{bt=null;return}}schedule(t){if(jn=t,t.b?.is_pending&&t.f&(cr|Dr|as)&&!(t.f&tr)){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(ur!==null&&r===V&&(J===null||!(J.f&Ce)))return;if(n&(Ht|mt)){if(!(n&Ne))return;r.f^=Ne}}this.#s.push(r)}#v(){if(this.linked){var t=this.#t,r=this.#r;t===null?Hn=r:t.#r=r,r===null?ar=t:r.#t=t,this.linked=!1}}}function je(e){var t=$r;$r=!0;try{for(var r;;){if(po(),ie===null)return r;ie.flush()}}finally{$r=t}}function Oo(){try{so()}catch(e){Gt(e,jn)}}let Bt=null;function Hi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(at|Je))&&Ur(n)&&(Bt=new Set,gr(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Us(n),Bt?.size>0)){qt.clear();for(const i of Bt){if(i.f&(at|Je))continue;const s=[i];let a=i.parent;for(;a!==null;)Bt.has(a)&&(Bt.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];u.f&(at|Je)||gr(u)}}Bt.clear()}}Bt=null}}function Ss(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&Ce?Ss(i,t,r,n):s&(hr|_t)&&!(s&Pe)&&ci(i,t,n)&&(Te(i,Pe),di(i))}}function ci(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(en.call(t,i))return!0;if(i.f&Ce&&ci(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function di(e){ie.schedule(e)}function Ts(e,t){if(!(e.f&mt&&e.f&Ne)){e.f&Pe?t.d.push(e):e.f&Et&&t.m.push(e),Te(e,Ne);for(var r=e.first;r!==null;)Ts(r,t),r=r.next}}function As(e){Te(e,Ne);for(var t=e.first;t!==null;)As(t),t=t.next}let on=new Set;const qt=new Map;let Ms=!1;function er(e,t){var r={f:0,v:e,reactions:null,equals:hs,rv:0,wv:0};return r}function $e(e,t){const r=er(e);return Vs(r),r}function vi(e,t=!1,r=!0){const n=er(e);return t||(n.equals=ds),n}function me(e,t,r=!1){J!==null&&(!yt||J.f&rn)&&vs()&&J.f&(Ce|_t|hr|rn)&&(Pt===null||!Pt.has(e))&&lo();let n=r?lr(t):t;return mr(e,n,Yr)}function mr(e,t,r=null){if(!e.equals(t)){qt.set(e,kt?t:e.v);var n=It.ensure();if(n.capture(e,t),e.f&Ce){const i=e;e.f&Pe&&hi(i),bt===null&&li(i)}e.wv=Xs(),Ps(e,Pe,r),V!==null&&V.f&Ne&&!(V.f&(mt|Ht))&&(ct===null?Io([e]):ct.push(e)),!n.is_fork&&on.size>0&&!Ms&&$o()}return t}function $o(){Ms=!1;for(const e of on){e.f&Ne&&Te(e,Et);let t;try{t=Ur(e)}catch{t=!0}t&&gr(e)}on.clear()}function Nr(e){me(e,e.v+1)}function Ps(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,s=0;s<i;s++){var a=n[s],o=a.f,u=(o&Pe)===0;if(u&&Te(a,t),o&rn)on.add(a);else if(o&Ce){var f=a;bt?.delete(f),o&Kt||(o&pt&&(V===null||!(V.f&nn))&&(a.f|=Kt),Ps(f,Et,r))}else if(u){var l=a;o&_t&&Bt!==null&&Bt.add(l),r!==null?r.push(l):di(l)}}}function lr(e){if(typeof e!="object"||e===null||Pn in e)return e;const t=ns(e);if(t!==Wa&&t!==qa)return e;var r=new Map,n=rs(e),i=$e(0),s=Jt,a=o=>{if(Jt===s)return o();var u=J,f=Jt;gt(null),Ni(s);var l=o();return gt(u),Ni(f),l};return n&&r.set("length",$e(e.length)),new Proxy(e,{defineProperty(o,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&oo();var l=r.get(u);return l===void 0?a(()=>{var h=$e(f.value);return r.set(u,h),h}):me(l,f.value,!0),!0},deleteProperty(o,u){var f=r.get(u);if(f===void 0){if(u in o){const l=a(()=>$e(Oe));r.set(u,l),Nr(i)}}else me(f,Oe),Nr(i);return!0},get(o,u,f){if(u===Pn)return e;var l=r.get(u),h=u in o;if(l===void 0&&(!h||fr(o,u)?.writable)&&(l=a(()=>{var d=lr(h?o[u]:Oe),m=$e(d);return m}),r.set(u,l)),l!==void 0){var c=A(l);return c===Oe?void 0:c}return Reflect.get(o,u,f)},getOwnPropertyDescriptor(o,u){var f=Reflect.getOwnPropertyDescriptor(o,u);if(f&&"value"in f){var l=r.get(u);l&&(f.value=A(l))}else if(f===void 0){var h=r.get(u),c=h?.v;if(h!==void 0&&c!==Oe)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,u){if(u===Pn)return!0;var f=r.get(u),l=f!==void 0&&f.v!==Oe||Reflect.has(o,u);if(f!==void 0||V!==null&&(!l||fr(o,u)?.writable)){f===void 0&&(f=a(()=>{var c=l?lr(o[u]):Oe,d=$e(c);return d}),r.set(u,f));var h=A(f);if(h===Oe)return!1}return l},set(o,u,f,l){var h=r.get(u),c=u in o;if(n&&u==="length")for(var d=f;d<h.v;d+=1){var m=r.get(d+"");m!==void 0?me(m,Oe):d in o&&(m=a(()=>$e(Oe)),r.set(d+"",m))}if(h===void 0)(!c||fr(o,u)?.writable)&&(h=a(()=>$e(void 0)),me(h,lr(f)),r.set(u,h));else{c=h.v!==Oe;var P=a(()=>lr(f));me(h,P)}var p=Reflect.getOwnPropertyDescriptor(o,u);if(p?.set&&p.set.call(l,f),!c){if(n&&typeof u=="string"){var E=r.get("length"),O=Number(u);Number.isInteger(O)&&O>=E.v&&me(E,O+1)}Nr(i)}return!0},ownKeys(o){A(i);var u=Reflect.ownKeys(o).filter(h=>{var c=r.get(h);return c===void 0||c.v!==Oe});for(var[f,l]of r)l.v!==Oe&&!(f in o)&&u.push(f);return u},setPrototypeOf(){uo()}})}var Oi,Hs,Os,$s;function Vn(){if(Oi===void 0){Oi=window,Hs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Os=fr(t,"firstChild").get,$s=fr(t,"nextSibling").get,Ai(e)&&(e[In]=void 0,e[us]=null,e[kn]=void 0,e.__e=void 0),Ai(r)&&(r[Fn]=void 0)}}function rt(e=""){return document.createTextNode(e)}function vt(e){return Os.call(e)}function xt(e){return $s.call(e)}function W(e,t){if(!q)return vt(e);var r=vt(Q);if(r===null)r=Q.appendChild(rt());else if(t&&r.nodeType!==kr){var n=rt();return r?.before(n),Ue(n),n}return t&&yn(r),Ue(r),r}function or(e,t=!1){if(!q){var r=vt(e);return r instanceof Comment&&r.data===""?xt(r):r}if(t){if(Q?.nodeType!==kr){var n=rt();return Q?.before(n),Ue(n),n}yn(Q)}return Q}function Be(e,t=1,r=!1){let n=q?Q:e;for(var i;t--;)i=n,n=xt(n);if(!q)return n;if(r){if(n?.nodeType!==kr){var s=rt();return n===null?i?.after(s):n.before(s),Ue(s),s}yn(n)}return Ue(n),n}function Ns(e){e.textContent=""}function Ls(){return!1}function bn(e,t,r){return t==null||t===es?r?document.createElement(e,{is:r}):document.createElement(e):r?document.createElementNS(t,e,{is:r}):document.createElementNS(t,e)}function yn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===kr;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Rs(e){V===null&&(J===null&&io(),no()),kt&&ro()}function No(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function St(e,t){var r=V;r!==null&&r.f&Je&&(e|=Je);var n={ctx:Ve,deps:null,nodes:null,f:e|Pe|pt,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};ie?.register_created_effect(n);var i=n;if(e&cr)ur!==null?ur.push(n):It.ensure().schedule(n);else if(t!==null){try{gr(n)}catch(a){throw Qe(n),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&rr)&&(i=i.first,e&_t&&e&dr&&i!==null&&(i.f|=dr))}if(i!==null&&(i.parent=r,r!==null&&No(i,r),J!==null&&J.f&Ce&&!(e&Ht))){var s=J;(s.effects??=[]).push(i)}return n}function pi(){return J!==null&&!yt}function Bs(e){const t=St(Dr,null);return Te(t,Ne),t.teardown=e,t}function un(e){Rs();var t=V.f,r=!J&&(t&mt)!==0&&Ve!==null&&!Ve.i;if(r){var n=Ve;(n.e??=[]).push(e)}else return Cs(e)}function Cs(e){return St(cr|os,e)}function Ds(e){return Rs(),St(Dr|os,e)}function Lo(e){It.ensure();const t=St(Ht|rr,e);return()=>{Qe(t)}}function Ro(e){It.ensure();const t=St(Ht|rr,e);return(r={})=>new Promise(n=>{r.outro?Zt(t,()=>{Qe(t),n(void 0)}):(Qe(t),n(void 0))})}function Bo(e){return St(cr,e)}function Co(e){return St(hr|rr,e)}function Is(e,t=0){return St(Dr|t,e)}function ht(e,t=[],r=[],n=[]){xo(n,t,r,i=>{St(Dr,()=>{e(...i.map(A))})})}function mi(e,t=0){var r=St(_t|t,e);return r}function dt(e){return St(mt|rr,e)}function ks(e){var t=e.teardown;if(t!==null){const r=kt,n=J;$i(!0),gt(null);try{t.call(null)}finally{$i(r),gt(n)}}}function gi(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&gn(()=>{i.abort(Ir)});var n=r.next;r.f&Ht?r.parent=null:Qe(r,t),r=n}}function Do(e){for(var t=e.first;t!==null;){var r=t.next;t.f&mt||Qe(t),t=r}}function Qe(e,t=!0){var r=!1;(t||e.f&Za)&&e.nodes!==null&&e.nodes.end!==null&&(Fs(e.nodes.start,e.nodes.end),r=!0),e.f|=Mi,gi(e,t&&!r),Rr(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();ks(e),e.f^=Mi,e.f|=at;var i=e.parent;i!==null&&i.first!==null&&Us(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Fs(e,t){for(;e!==null;){var r=e===t?null:xt(e);e.remove(),e=r}}function Us(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 Zt(e,t,r=!0){var n=[];Gs(e,n,!0);var i=()=>{r&&Qe(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function Gs(e,t,r){if(!(e.f&Je)){e.f^=Je;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next;if(!(i.f&Ht)){var a=(i.f&dr)!==0||(i.f&mt)!==0&&(e.f&_t)!==0;Gs(i,t,a?r:!1)}i=s}}}function ln(e){js(e,!0)}function js(e,t){if(e.f&Je){e.f^=Je,e.f&Ne||(Te(e,Pe),It.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&dr)!==0||(r.f&mt)!==0;js(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 _i(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:xt(r);t.append(r),r=i}}let Xr=!1,kt=!1;function $i(e){kt=e}let J=null,yt=!1;function gt(e){J=e}let V=null;function Ot(e){V=e}let Pt=null;function Vs(e){J!==null&&(Pt??=new Set).add(e)}let tt=null,st=0,ct=null;function Io(e){ct=e}let Ys=1,Wt=0,Jt=Wt;function Ni(e){Jt=e}function Xs(){return++Ys}function Ur(e){var t=e.f;if(t&Pe)return!0;if(t&Ce&&(e.f&=~Kt),t&Et){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Ur(s)&&ws(s),s.wv>e.wv)return!0}t&pt&&bt===null&&Te(e,Ne)}return!1}function zs(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Pt!==null&&Pt.has(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&Ce?zs(s,t,!1):t===s&&(r?Te(s,Pe):s.f&Ne&&Te(s,Et),di(s))}}function Ws(e){var t=tt,r=st,n=ct,i=J,s=Pt,a=Ve,o=yt,u=Jt,f=e.f;tt=null,st=0,ct=null,J=f&(mt|Ht)?null:e,Pt=null,pr(e.ctx),yt=!1,Jt=++Wt,e.ac!==null&&(gn(()=>{e.ac.abort(Ir)}),e.ac=null);try{e.f|=nn;var l=e.fn,h=l();e.f|=tr;var c=e.deps,d=ie?.is_fork;if(tt!==null){var m;if(d||Rr(e,st),c!==null&&st>0)for(c.length=st+tt.length,m=0;m<tt.length;m++)c[st+m]=tt[m];else e.deps=c=tt;if(pi()&&e.f&pt)for(m=st;m<c.length;m++)(c[m].reactions??=[]).push(e)}else!d&&c!==null&&st<c.length&&(Rr(e,st),c.length=st);if(vs()&&ct!==null&&!yt&&c!==null&&!(e.f&(Ce|Et|Pe)))for(m=0;m<ct.length;m++)zs(ct[m],e);if(i!==null&&i!==e){if(Wt++,i.deps!==null)for(let P=0;P<r;P+=1)i.deps[P].rv=Wt;if(t!==null)for(const P of t)P.rv=Wt;ct!==null&&(n===null?n=ct:n.push(...ct))}return e.f&Vt&&(e.f^=Vt),h}catch(P){return ms(P)}finally{e.f^=nn,tt=t,st=r,ct=n,J=i,Pt=s,pr(a),yt=o,Jt=u}}function ko(e,t){let r=t.reactions;if(r!==null){var n=Xa.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&Ce&&(tt===null||!en.call(tt,t))){var s=t;s.f&pt&&(s.f^=pt,s.f&=~Kt),s.v!==Oe&&li(s),s.ac!==null&&gn(()=>{s.ac.abort(Ir),s.ac=null,Te(s,Pe)}),Po(s),Rr(s,0)}}function Rr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ko(e,r[n])}function gr(e){var t=e.f;if(!(t&at)){Te(e,Ne);var r=V,n=Xr;V=e,Xr=(t&(mt|Ht))===0;try{t&(_t|as)?Do(e):gi(e),ks(e);var i=Ws(e);e.teardown=typeof i=="function"?i:null,e.wv=Ys;var s;ts&&vo&&e.f&Pe&&e.deps}finally{Xr=n,V=r}}}function A(e){var t=e.f,r=(t&Ce)!==0;if(J!==null&&!yt){var n=V!==null&&(V.f&at)!==0;if(!n&&(Pt===null||!Pt.has(e))){var i=J.deps;if(J.f&nn)e.rv<Wt&&(e.rv=Wt,tt===null&&i!==null&&i[st]===e?st++:tt===null?tt=[e]:tt.push(e));else{J.deps??=[],en.call(J.deps,e)||J.deps.push(e);var s=e.reactions;s===null?e.reactions=[J]:en.call(s,J)||s.push(J)}}}if(kt&&qt.has(e))return qt.get(e);if(r){var a=e;if(kt){var o=a.v;return(!(a.f&Ne)&&a.reactions!==null||Zs(a))&&(o=hi(a)),qt.set(a,o),o}var u=(a.f&pt)===0&&!yt&&J!==null&&(Xr||(J.f&pt)!==0),f=(a.f&tr)===0;Ur(a)&&(u&&(a.f|=pt),ws(a)),u&&!f&&(xs(a),qs(a))}if(bt?.has(e))return bt.get(e);if(e.f&Vt)throw e.v;return e.v}function qs(e){if(e.f|=pt,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),t.f&Ce&&!(t.f&pt)&&(xs(t),qs(t))}function Zs(e){if(e.v===Oe)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(qt.has(t)||t.f&Ce&&Zs(t))return!0;return!1}function En(e){var t=yt;try{return yt=!0,e()}finally{yt=t}}const Hr=Symbol("events"),Js=new Set,Yn=new Set;function zr(e,t,r){(t[Hr]??={})[e]=r}function Qs(e){for(var t=0;t<e.length;t++)Js.add(e[t]);for(var r of Yn)r(e)}let Li=null;function Ri(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Li=e;var a=0,o=Li===e&&e[Hr];if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e[Hr]=t;return}var f=i.indexOf(t);if(f===-1)return;u<=f&&(a=u)}if(s=i[a]||e.target,s!==t){Lr(e,"currentTarget",{configurable:!0,get(){return s||r}});var l=J,h=V;gt(null),Ot(null);try{for(var c,d=[];s!==null&&s!==t;){try{var m=s[Hr]?.[n];m!=null&&(!s.disabled||e.target===s)&&m.call(s,e)}catch(P){c?d.push(P):c=P}if(e.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(c){for(let P of d)queueMicrotask(()=>{throw P});throw c}}finally{e[Hr]=t,delete e.currentTarget,gt(l),Ot(h)}}}const Fo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Uo(e){return Fo?.createHTML(e)??e}function Go(e){var t=bn("template");return t.innerHTML=Uo(e.replaceAll("<!>","<!---->")),t.content}function wt(e,t){var r=V;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function nt(e,t){var r=(t&Ga)!==0,n=(t&ja)!==0,i,s=!e.startsWith("<!>");return()=>{if(q)return wt(Q,null),Q;i===void 0&&(i=Go(s?e:"<!>"+e),r||(i=vt(i)));var a=n||Hs?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=vt(a),u=a.lastChild;wt(o,u)}else wt(a,a);return a}}function jo(e=""){if(!q){var t=rt(e+"");return wt(t,t),t}var r=Q;return r.nodeType!==kr?(r.before(r=rt()),Ue(r)):yn(r),wt(r,r),r}function Wr(){if(q)return wt(Q,null),Q;var e=document.createDocumentFragment(),t=document.createComment(""),r=rt();return e.append(t,r),wt(t,r),e}function He(e,t){if(q){var r=V;(!(r.f&tr)||r.nodes.end===null)&&(r.nodes.end=Q),vr();return}e!==null&&e.before(t)}const Vo=["touchstart","touchmove"];function Yo(e){return Vo.includes(e)}function xe(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e[Fn]??=e.nodeValue)&&(e[Fn]=r,e.nodeValue=`${r}`)}function Ks(e,t){return ea(e,t)}function Xo(e,t){Vn(),t.intro=t.intro??!1;const r=t.target,n=q,i=Q;try{for(var s=vt(r);s&&(s.nodeType!==wr||s.data!==Ki);)s=xt(s);if(!s)throw Qt;Ct(!0),Ue(s);const a=ea(e,{...t,anchor:s});return Ct(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Qt&&console.warn("Failed to hydrate: ",a),t.recover===!1&&ao(),Vn(),Ns(r),Ct(!1),Ks(e,t)}finally{Ct(n),Ue(i)}}const Gr=new Map;function ea(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0,transformError:o}){Vn();var u=void 0,f=Ro(()=>{var l=r??t.appendChild(rt());Eo(l,{pending:()=>{}},d=>{vn({});var m=Ve;if(s&&(m.c=s),i&&(n.$$events=i),q&&wt(d,null),u=e(d,n)||{},q&&(V.nodes.end=Q,Q===null||Q.nodeType!==wr||Q.data!==oi))throw Fr(),Qt;pn()},o);var h=new Set,c=d=>{for(var m=0;m<d.length;m++){var P=d[m];if(!h.has(P)){h.add(P);var p=Yo(P);for(const _ of[t,document]){var E=Gr.get(_);E===void 0&&(E=new Map,Gr.set(_,E));var O=E.get(P);O===void 0?(_.addEventListener(P,Ri,{passive:p}),E.set(P,1)):E.set(P,O+1)}}}};return c(dn(Js)),Yn.add(c),()=>{for(var d of h)for(const p of[t,document]){var m=Gr.get(p),P=m.get(d);--P==0?(p.removeEventListener(d,Ri),m.delete(d),m.size===0&&Gr.delete(p)):m.set(d,P)}Yn.delete(c),l!==r&&l.parentNode?.removeChild(l)}});return Xn.set(u,f),u}let Xn=new WeakMap;function zo(e,t){const r=Xn.get(e);return r?(Xn.delete(e),r(t)):Promise.resolve()}class Wo{anchor;#e=new Map;#t=new Map;#r=new Map;#u=new Set;#i=!0;constructor(t,r=!0){this.anchor=t,this.#i=r}#a=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#t.get(r);if(n)ln(n),this.#u.delete(r);else{var i=this.#r.get(r);i&&(ln(i.effect),this.#t.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#r.get(a);o&&(Qe(o.effect),this.#r.delete(a))}for(const[s,a]of this.#t){if(s===r||this.#u.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();_i(a,f),f.append(rt()),this.#r.set(s,{effect:a,fragment:f})}else Qe(a);this.#u.delete(s),this.#t.delete(s)};this.#i||!n?(this.#u.add(s),Zt(a,o,!1)):o()}}};#n=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,i]of this.#r)r.includes(n)||(Qe(i.effect),this.#r.delete(n))};ensure(t,r){var n=ie,i=Ls();if(r&&!this.#t.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=rt();s.append(a),this.#r.set(t,{effect:dt(()=>r(a)),fragment:s})}else this.#t.set(t,dt(()=>r(this.anchor)));if(this.#e.set(n,t),i){for(const[o,u]of this.#t)o===t?n.unskip_effect(u):n.skip_effect(u);for(const[o,u]of this.#r)o===t?n.unskip_effect(u.effect):n.skip_effect(u.effect);n.oncommit(this.#a),n.ondiscard(this.#n)}else q&&(this.anchor=Q),this.#a(n)}}function bi(e){Ve===null&&ls(),un(()=>{const t=En(e);if(typeof t=="function")return t})}function qo(e){Ve===null&&ls(),bi(()=>()=>En(e))}function Xt(e,t,r=!1){var n;q&&(n=Q,vr());var i=new Wo(e),s=r?dr:0;function a(o,u){if(q){var f=fs(n);if(o!==parseInt(f.substring(1))){var l=sn();Ue(l),i.anchor=l,Ct(!1),i.ensure(o,u),Ct(!0);return}}i.ensure(o,u)}mi(()=>{var o=!1;t((u,f=0)=>{o=!0,a(f,u)}),o||a(-1,null)},s)}function qr(e,t){return t}function Zo(e,t,r){for(var n=[],i=t.length,s,a=t.length,o=0;o<i;o++){let h=t[o];Zt(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var c=e.outrogroups;zn(e,dn(s.done)),c.delete(s),c.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var u=n.length===0&&r!==null&&e.pending.size===0;if(u){var f=r,l=f.parentNode;Ns(l),l.append(f),e.items.clear()}zn(e,t,!u)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function zn(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const a of e.pending.values())for(const o of a)n.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(n?.has(s)){s.f|=Mt;const a=document.createDocumentFragment();_i(s,a)}else Qe(t[i],r)}}var Bi;function Zr(e,t,r,n,i,s=null){var a=e,o=new Map,u=(t&Qi)!==0;if(u){var f=e;a=q?Ue(vt(f)):f.appendChild(rt())}q&&vr();var l=null,h=Ao(()=>{var _=r();return rs(_)?_:_==null?[]:dn(_)}),c,d=new Map,m=!0;function P(_){O.effect.f&at||(O.pending.delete(_),O.fallback=l,Jo(O,c,a,t,n),l!==null&&(c.length===0?l.f&Mt?(l.f^=Mt,Or(l,null,a)):ln(l):Zt(l,()=>{l=null})))}function p(_){O.pending.delete(_)}var E=mi(()=>{c=A(h);var _=c.length;let L=!1;if(q){var j=fs(a)===ai;j!==(_===0)&&(a=sn(),Ue(a),Ct(!1),L=!0)}for(var X=new Set,re=ie,le=Ls(),se=0;se<_;se+=1){q&&Q.nodeType===wr&&Q.data===oi&&(a=Q,L=!0,Ct(!1));var D=c[se],C=n(D,se),K=m?null:o.get(C);K?(K.v&&mr(K.v,D),K.i&&mr(K.i,se),le&&re.unskip_effect(K.e)):(K=Qo(o,m?a:Bi??=rt(),D,C,se,i,t,r),m||(K.e.f|=Mt),o.set(C,K)),X.add(C)}if(_===0&&s&&!l&&(m?l=dt(()=>s(a)):(l=dt(()=>s(Bi??=rt())),l.f|=Mt)),_>X.size&&to(),q&&_>0&&Ue(sn()),!m)if(d.set(re,X),le){for(const[Ae,H]of o)X.has(Ae)||re.skip_effect(H.e);re.oncommit(P),re.ondiscard(p)}else P(re);L&&Ct(!0),A(h)}),O={effect:E,items:o,pending:d,outrogroups:null,fallback:l};m=!1,q&&(a=Q)}function Ar(e){for(;e!==null&&!(e.f&mt);)e=e.next;return e}function Jo(e,t,r,n,i){var s=(n&Fa)!==0,a=t.length,o=e.items,u=Ar(e.effect.first),f,l=null,h,c=[],d=[],m,P,p,E;if(s)for(E=0;E<a;E+=1)m=t[E],P=i(m,E),p=o.get(P).e,p.f&Mt||(p.nodes?.a?.measure(),(h??=new Set).add(p));for(E=0;E<a;E+=1){if(m=t[E],P=i(m,E),p=o.get(P).e,e.outrogroups!==null)for(const D of e.outrogroups)D.pending.delete(p),D.done.delete(p);if(p.f&Je&&(ln(p),s&&(p.nodes?.a?.unfix(),(h??=new Set).delete(p))),p.f&Mt)if(p.f^=Mt,p===u)Or(p,null,r);else{var O=l?l.next:u;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),Ft(e,l,p),Ft(e,p,O),Or(p,O,r),l=p,c=[],d=[],u=Ar(l.next);continue}if(p!==u){if(f!==void 0&&f.has(p)){if(c.length<d.length){var _=d[0],L;l=_.prev;var j=c[0],X=c[c.length-1];for(L=0;L<c.length;L+=1)Or(c[L],_,r);for(L=0;L<d.length;L+=1)f.delete(d[L]);Ft(e,j.prev,X.next),Ft(e,l,j),Ft(e,X,_),u=_,l=X,E-=1,c=[],d=[]}else f.delete(p),Or(p,u,r),Ft(e,p.prev,p.next),Ft(e,p,l===null?e.effect.first:l.next),Ft(e,l,p),l=p;continue}for(c=[],d=[];u!==null&&u!==p;)(f??=new Set).add(u),d.push(u),u=Ar(u.next);if(u===null)continue}p.f&Mt||c.push(p),l=p,u=Ar(p.next)}if(e.outrogroups!==null){for(const D of e.outrogroups)D.pending.size===0&&(zn(e,dn(D.done)),e.outrogroups?.delete(D));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||f!==void 0){var re=[];if(f!==void 0)for(p of f)p.f&Je||re.push(p);for(;u!==null;)!(u.f&Je)&&u!==e.fallback&&re.push(u),u=Ar(u.next);var le=re.length;if(le>0){var se=n&Qi&&a===0?r:null;if(s){for(E=0;E<le;E+=1)re[E].nodes?.a?.measure();for(E=0;E<le;E+=1)re[E].nodes?.a?.fix()}Zo(e,re,se)}}s&&Ut(()=>{if(h!==void 0)for(p of h)p.nodes?.a?.apply()})}function Qo(e,t,r,n,i,s,a,o){var u=a&Ia?a&Ua?er(r):vi(r,!1,!1):null,f=a&ka?er(i):null;return{v:u,i:f,e:dt(()=>(s(t,u??r,f??i,o),()=>{e.delete(n)}))}}function Or(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Mt)?t.nodes.start:r;n!==null;){var a=xt(n);if(s.before(n),n===i)return;n=a}}function Ft(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Ko(e,t,r=!1,n=!1,i=!1,s=!1){var a=e,o="";if(r){var u=e;q&&(a=Ue(vt(u)))}ht(()=>{var f=V;if(o===(o=t()??"")){q&&vr();return}if(r&&!q){f.nodes=null,u.innerHTML=o,o!==""&&wt(vt(u),u.lastChild);return}if(f.nodes!==null&&(Fs(f.nodes.start,f.nodes.end),f.nodes=null),o!==""){if(q){Q.data;for(var l=vr(),h=l;l!==null&&(l.nodeType!==wr||l.data!=="");)h=l,l=xt(l);if(l===null)throw Fr(),Qt;wt(Q,h),a=Ue(l);return}var c=n?Va:i?Ya:void 0,d=bn(n?"svg":i?"math":"template",c);d.innerHTML=o;var m=n||i?d:d.content;if(wt(vt(m),m.lastChild),n||i)for(;vt(m);)a.before(vt(m));else a.before(m)}})}function ta(e,t){Bo(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=bn("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function ra(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=ra(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function eu(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ra(e))&&(n&&(n+=" "),n+=t);return n}function na(e){return typeof e=="object"?eu(e):e??""}const Ci=[...`
3
+ \r\f \v\uFEFF`];function tu(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i of Object.keys(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 o=a+s;(a===0||Ci.includes(n[a-1]))&&(o===n.length||Ci.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}function ru(e,t){return e==null?null:String(e)}function Wn(e,t,r,n,i,s){var a=e[In];if(q||a!==r||a===void 0){var o=tu(r,n,s);(!q||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e[In]=r}else if(s&&i!==s)for(var u in s){var f=!!s[u];(i==null||f!==!!i[u])&&e.classList.toggle(u,f)}return s}function nu(e,t,r,n){var i=e[kn];if(q||i!==t){var s=ru(t);(!q||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e[kn]=t}return n}const iu=Symbol("is custom element"),su=Symbol("is html"),au=Ka?"link":"LINK";function ou(e,t,r,n){var i=uu(e);q&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===au)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Qa]=r),r==null?e.removeAttribute(t):typeof r!="string"&&lu(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function uu(e){return e[us]??={[iu]:e.nodeName.includes("-"),[su]:e.namespaceURI===es}}var Di=new Map;function lu(e){var t=e.getAttribute("is")||e.nodeName,r=Di.get(t);if(r)return r;Di.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=za(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.push(a);i=ns(i)}return r}function Ze(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var u;u=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var f=!1,l=_n(()=>(f=!1,u())),h=V;return function(c,d){if(arguments.length>0){const m=d?A(l):c;return me(l,m),f=!0,i!==void 0&&(i=m),c}return kt&&f||h.f&at?l.v:A(l)}}function fu(e){return new hu(e)}class hu{#e;#t;constructor(t){var r=new Map,n=(s,a)=>{var o=vi(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return A(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Ja?!0:(A(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return me(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#t=(t.hydrate?Xo:Ks)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&je(),this.#e=i.$$events;for(const s of Object.keys(this.#t))s==="$set"||s==="$destroy"||s==="$on"||Lr(this,s,{get(){return this.#t[s]},set(a){this.#t[s]=a},enumerable:!0});this.#t.$set=s=>{Object.assign(i,s)},this.#t.$destroy=()=>{zo(this.#t)}}$set(t){this.#t.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}let ia;typeof HTMLElement=="function"&&(ia=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const a=bn("slot");i!=="default"&&(a.name=i),He(s,a)}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=cu(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=Jr(s,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=fu({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Lo(()=>{Is(()=>{this.$$r=!0;for(const i of tn(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const s=Jr(i,this.$$d[i],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,s)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const a=this.$$c.$on(i,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jr(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return tn(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Jr(e,t,r,n){const i=r[e]?.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;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 cu(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function yi(e,t,r,n,i,s){let a=class extends ia{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return tn(t).map(o=>(t[o].attribute||o).toLowerCase())}};return tn(t).forEach(o=>{Lr(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){u=Jr(o,u,t),this.$$d[o]=u;var f=this.$$c;if(f){var l=fr(f,o)?.get;l?f[o]=u:f.$set({[o]:u})}}})}),n.forEach(o=>{Lr(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const sa=e=>{const t=new Headers;return e&&t.append("X-SessionId",e),t},du=async e=>{const t=new URL(`${e.endpoint}/v1/tournaments/${e.tournamentid}`);return 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=${e.gamesOffset??0})`),t.searchParams.append("platform",e.platform),(await(await fetch(t,{method:"GET",headers:sa(e.session)})).json())?.item};var wn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qn={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,o=r.ActiveXObject,u=r.EventSource,f=r.document,l=r.Promise,h=r.fetch,c=r.Response,d=r.TextDecoder,m=r.TextEncoder,P=r.AbortController;if(typeof window<"u"&&typeof f<"u"&&!("readyState"in f)&&f.body==null&&(f.readyState="loading",window.addEventListener("load",function(v){f.readyState="complete"},!1)),s==null&&o!=null&&(s=function(){return new o("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(v){function S(){}return S.prototype=v,new S}),Date.now||(Date.now=function(){return new Date().getTime()}),P==null){var p=h;h=function(v,S){var M=S.signal;return p(v,{headers:S.headers,credentials:S.credentials,cache:S.cache}).then(function(w){var I=w.body.getReader();return M._reader=I,M._aborted&&M._reader.cancel(),{status:w.status,statusText:w.statusText,headers:w.headers,body:{getReader:function(){return I}}}})},P=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function E(){this.bitsNeeded=0,this.codePoint=0}E.prototype.decode=function(v){function S(ae,he,k){if(k===1)return ae>=128>>he&&ae<<he<=2047;if(k===2)return ae>=2048>>he&&ae<<he<=55295||ae>=57344>>he&&ae<<he<=65535;if(k===3)return ae>=65536>>he&&ae<<he<=1114111;throw new Error}function M(ae,he){if(ae===6*1)return he>>6>15?3:he>31?2:1;if(ae===6*2)return he>15?3:2;if(ae===6*3)return 3;throw new Error}for(var w=65533,I="",N=this.bitsNeeded,G=this.codePoint,ve=0;ve<v.length;ve+=1){var z=v[ve];N!==0&&(z<128||z>191||!S(G<<6|z&63,N-6,M(N,G)))&&(N=0,G=w,I+=String.fromCharCode(G)),N===0?(z>=0&&z<=127?(N=0,G=z):z>=192&&z<=223?(N=6*1,G=z&31):z>=224&&z<=239?(N=6*2,G=z&15):z>=240&&z<=247?(N=6*3,G=z&7):(N=0,G=w),N!==0&&!S(G,N,M(N,G))&&(N=0,G=w)):(N-=6,G=G<<6|z&63),N===0&&(G<=65535?I+=String.fromCharCode(G):(I+=String.fromCharCode(55296+(G-65535-1>>10)),I+=String.fromCharCode(56320+(G-65535-1&1023))))}return this.bitsNeeded=N,this.codePoint=G,I};var O=function(){try{return new d().decode(new m().encode("test"),{stream:!0})==="test"}catch(v){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+v)}return!1};(d==null||m==null||!O())&&(d=E);var _=function(){};function L(v){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=_,this.onload=_,this.onerror=_,this.onreadystatechange=_,this._contentType="",this._xhr=v,this._sendTimeout=0,this._abort=_}L.prototype.open=function(v,S){this._abort(!0);var M=this,w=this._xhr,I=1,N=0;this._abort=function(k){M._sendTimeout!==0&&(i(M._sendTimeout),M._sendTimeout=0),(I===1||I===2||I===3)&&(I=4,w.onload=_,w.onerror=_,w.onabort=_,w.onprogress=_,w.onreadystatechange=_,w.abort(),N!==0&&(i(N),N=0),k||(M.readyState=4,M.onabort(null),M.onreadystatechange())),I=0};var G=function(){if(I===1){var k=0,g="",U=void 0;if("contentType"in w)k=200,g="OK",U=w.contentType;else try{k=w.status,g=w.statusText,U=w.getResponseHeader("Content-Type")}catch{k=0,g="",U=void 0}k!==0&&(I=2,M.readyState=2,M.status=k,M.statusText=g,M._contentType=U,M.onreadystatechange())}},ve=function(){if(G(),I===2||I===3){I=3;var k="";try{k=w.responseText}catch{}M.readyState=3,M.responseText=k,M.onprogress()}},z=function(k,g){if((g==null||g.preventDefault==null)&&(g={preventDefault:_}),ve(),I===1||I===2||I===3){if(I=4,N!==0&&(i(N),N=0),M.readyState=4,k==="load")M.onload(g);else if(k==="error")M.onerror(g);else if(k==="abort")M.onabort(g);else throw new TypeError;M.onreadystatechange()}},ae=function(k){w!=null&&(w.readyState===4?(!("onload"in w)||!("onerror"in w)||!("onabort"in w))&&z(w.responseText===""?"error":"load",k):w.readyState===3?"onprogress"in w||ve():w.readyState===2&&G())},he=function(){N=n(function(){he()},500),w.readyState===3&&ve()};"onload"in w&&(w.onload=function(k){z("load",k)}),"onerror"in w&&(w.onerror=function(k){z("error",k)}),"onabort"in w&&(w.onabort=function(k){z("abort",k)}),"onprogress"in w&&(w.onprogress=ve),"onreadystatechange"in w&&(w.onreadystatechange=function(k){ae(k)}),("contentType"in w||!("ontimeout"in s.prototype))&&(S+=(S.indexOf("?")===-1?"?":"&")+"padding=true"),w.open(v,S,!0),"readyState"in w&&(N=n(function(){he()},0))},L.prototype.abort=function(){this._abort(!1)},L.prototype.getResponseHeader=function(v){return this._contentType},L.prototype.setRequestHeader=function(v,S){var M=this._xhr;"setRequestHeader"in M&&M.setRequestHeader(v,S)},L.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},L.prototype.send=function(){if((!("ontimeout"in s.prototype)||!("sendAsBinary"in s.prototype)&&!("mozAnon"in s.prototype))&&f!=null&&f.readyState!=null&&f.readyState!=="complete"){var v=this;v._sendTimeout=n(function(){v._sendTimeout=0,v.send()},4);return}var S=this._xhr;"withCredentials"in S&&(S.withCredentials=this.withCredentials);try{S.send(void 0)}catch(M){throw M}};function j(v){return v.replace(/[A-Z]/g,function(S){return String.fromCharCode(S.charCodeAt(0)+32)})}function X(v){for(var S=Object.create(null),M=v.split(`\r
8
+ `),w=0;w<M.length;w+=1){var I=M[w],N=I.split(": "),G=N.shift(),ve=N.join(": ");S[j(G)]=ve}this._map=S}X.prototype.get=function(v){return this._map[j(v)]},s!=null&&s.HEADERS_RECEIVED==null&&(s.HEADERS_RECEIVED=2);function re(){}re.prototype.open=function(v,S,M,w,I,N,G){v.open("GET",I);var ve=0;v.onprogress=function(){var ae=v.responseText,he=ae.slice(ve);ve+=he.length,M(he)},v.onerror=function(ae){ae.preventDefault(),w(new Error("NetworkError"))},v.onload=function(){w(null)},v.onabort=function(){w(null)},v.onreadystatechange=function(){if(v.readyState===s.HEADERS_RECEIVED){var ae=v.status,he=v.statusText,k=v.getResponseHeader("Content-Type"),g=v.getAllResponseHeaders();S(ae,he,k,new X(g))}},v.withCredentials=N;for(var z in G)Object.prototype.hasOwnProperty.call(G,z)&&v.setRequestHeader(z,G[z]);return v.send(),v};function le(v){this._headers=v}le.prototype.get=function(v){return this._headers.get(v)};function se(){}se.prototype.open=function(v,S,M,w,I,N,G){var ve=null,z=new P,ae=z.signal,he=new d;return h(I,{headers:G,credentials:N?"include":"same-origin",signal:ae,cache:"no-store"}).then(function(k){return ve=k.body.getReader(),S(k.status,k.statusText,k.headers.get("Content-Type"),new le(k.headers)),new l(function(g,U){var F=function(){ve.read().then(function(ue){if(ue.done)g(void 0);else{var ee=he.decode(ue.value,{stream:!0});M(ee),F()}}).catch(function(ue){U(ue)})};F()})}).catch(function(k){if(k.name!=="AbortError")return k}).then(function(k){w(k)}),{abort:function(){ve?.cancel(),z.abort()}}};function D(){this._listeners=Object.create(null)}function C(v){n(function(){throw v},0)}D.prototype.dispatchEvent=function(v){v.target=this;var S=this._listeners[v.type];if(S!=null)for(var M=S.length,w=0;w<M;w+=1){var I=S[w];try{typeof I.handleEvent=="function"?I.handleEvent(v):I.call(this,v)}catch(N){C(N)}}},D.prototype.addEventListener=function(v,S){v=String(v);var M=this._listeners,w=M[v];w==null&&(w=[],M[v]=w);for(var I=!1,N=0;N<w.length;N+=1)w[N]===S&&(I=!0);I||w.push(S)},D.prototype.removeEventListener=function(v,S){v=String(v);var M=this._listeners,w=M[v];if(w!=null){for(var I=[],N=0;N<w.length;N+=1)w[N]!==S&&I.push(w[N]);I.length===0?delete M[v]:M[v]=I}};function K(v){this.type=v,this.target=void 0}function Ae(v,S){K.call(this,v),this.data=S.data,this.lastEventId=S.lastEventId}Ae.prototype=Object.create(K.prototype);function H(v,S){K.call(this,v),this.status=S.status,this.statusText=S.statusText,this.headers=S.headers}H.prototype=Object.create(K.prototype);function x(v,S){K.call(this,v),this.error=S.error}x.prototype=Object.create(K.prototype);var b=-1,T=0,y=1,$=2,R=-1,B=0,ne=1,oe=2,_e=3,Le=/^text\/event\-stream(;.*)?$/i,ot=1e3,Ke=18e6,Ye=function(v,S){var M=v==null?S:parseInt(v,10);return M!==M&&(M=S),De(M)},De=function(v){return Math.min(Math.max(v,ot),Ke)},fe=function(v,S,M){try{typeof S=="function"&&S.call(v,M)}catch(w){C(w)}};function de(v,S){D.call(this),S=S||{},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,Tt(this,v,S)}function Xe(){return s!=null&&"withCredentials"in s.prototype||a==null?new s:new a}var ut=h!=null&&c!=null&&"body"in c.prototype;function Tt(v,S,M){S=String(S);var w=!!M.withCredentials,I=M.lastEventIdQueryParameterName||"lastEventId",N=De(1e3),G=Ye(M.heartbeatTimeout,45e3),ve="",z=N,ae=!1,he=0,k=M.headers||{},g=M.Transport,U=ut&&g==null?void 0:new L(g!=null?new g:Xe()),F=g!=null&&typeof g!="string"?new g:U==null?new se:new re,ue=void 0,ee=0,ce=b,Ie="",ze="",Ee="",lt="",be=B,Nt=0,et=0,ft=function(pe,ye,We,Ge){if(ce===T)if(pe===200&&We!=null&&Le.test(We)){ce=y,ae=Date.now(),z=N,v.readyState=y;var ke=new H("open",{status:pe,statusText:ye,headers:Ge});v.dispatchEvent(ke),fe(v,v.onopen,ke)}else{var Fe="";pe!==200?(ye&&(ye=ye.replace(/\s+/g," ")),Fe="EventSource's response has a status "+pe+" "+ye+" that is not 200. Aborting the connection."):Fe="EventSource's response has a Content-Type specifying an unsupported type: "+(We==null?"-":We.replace(/\s+/g," "))+". Aborting the connection.",Me();var ke=new H("error",{status:pe,statusText:ye,headers:Ge});v.dispatchEvent(ke),fe(v,v.onerror,ke),console.error(Fe)}},it=function(pe){if(ce===y){for(var ye=-1,We=0;We<pe.length;We+=1){var Ge=pe.charCodeAt(We);(Ge===10||Ge===13)&&(ye=We)}var ke=(ye!==-1?lt:"")+pe.slice(0,ye+1);lt=(ye===-1?lt:"")+pe.slice(ye+1),pe!==""&&(ae=Date.now(),he+=pe.length);for(var Fe=0;Fe<ke.length;Fe+=1){var Ge=ke.charCodeAt(Fe);if(be===R&&Ge===10)be=B;else if(be===R&&(be=B),Ge===13||Ge===10){if(be!==B){be===ne&&(et=Fe+1);var Lt=ke.slice(Nt,et-1),Rt=ke.slice(et+(et<Fe&&ke.charCodeAt(et)===32?1:0),Fe);Lt==="data"?(Ie+=`
9
+ `,Ie+=Rt):Lt==="id"?ze=Rt:Lt==="event"?Ee=Rt:Lt==="retry"?(N=Ye(Rt,N),z=N):Lt==="heartbeatTimeout"&&(G=Ye(Rt,G),ee!==0&&(i(ee),ee=n(function(){Re()},G)))}if(be===B){if(Ie!==""){ve=ze,Ee===""&&(Ee="message");var ir=new Ae(Ee,{data:Ie.slice(1),lastEventId:ze});if(v.dispatchEvent(ir),Ee==="open"?fe(v,v.onopen,ir):Ee==="message"?fe(v,v.onmessage,ir):Ee==="error"&&fe(v,v.onerror,ir),ce===$)return}Ie="",Ee=""}be=Ge===13?R:B}else be===B&&(Nt=Fe,be=ne),be===ne?Ge===58&&(et=Fe+1,be=oe):be===oe&&(be=_e)}}},we=function(pe){if(ce===y||ce===T){ce=b,ee!==0&&(i(ee),ee=0),ee=n(function(){Re()},z),z=De(Math.min(N*16,z*2)),v.readyState=T;var ye=new x("error",{error:pe});v.dispatchEvent(ye),fe(v,v.onerror,ye),pe!=null&&console.error(pe)}},Me=function(){ce=$,ue!=null&&(ue.abort(),ue=void 0),ee!==0&&(i(ee),ee=0),v.readyState=$},Re=function(){if(ee=0,ce!==b){if(!ae&&ue!=null)we(new Error("No activity within "+G+" milliseconds. "+(ce===T?"No response received.":he+" chars received.")+" Reconnecting.")),ue!=null&&(ue.abort(),ue=void 0);else{var pe=Math.max((ae||Date.now())+G-Date.now(),1);ae=!1,ee=n(function(){Re()},pe)}return}ae=!1,he=0,ee=n(function(){Re()},G),ce=T,Ie="",Ee="",ze=ve,lt="",Nt=0,et=0,be=B;var ye=S;if(S.slice(0,5)!=="data:"&&S.slice(0,5)!=="blob:"&&ve!==""){var We=S.indexOf("?");ye=We===-1?S:S.slice(0,We+1)+S.slice(We+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Rt,ir){return ir===I?"":Rt}),ye+=(S.indexOf("?")===-1?"?":"&")+I+"="+encodeURIComponent(ve)}var Ge=v.withCredentials,ke={};ke.Accept="text/event-stream";var Fe=v.headers;if(Fe!=null)for(var Lt in Fe)Object.prototype.hasOwnProperty.call(Fe,Lt)&&(ke[Lt]=Fe[Lt]);try{ue=F.open(U,ft,it,we,ye,Ge,ke)}catch(Rt){throw Me(),Rt}};v.url=S,v.readyState=T,v.withCredentials=w,v.headers=k,v._close=Me,Re()}de.prototype=Object.create(D.prototype),de.prototype.CONNECTING=T,de.prototype.OPEN=y,de.prototype.CLOSED=$,de.prototype.close=function(){this._close()},de.CONNECTING=T,de.OPEN=y,de.CLOSED=$,de.prototype.withCredentials=void 0;var $t=u;s!=null&&(u==null||!("withCredentials"in u.prototype))&&($t=de),function(v){{var S=v(t);S!==void 0&&(e.exports=S)}}(function(v){v.EventSourcePolyfill=de,v.NativeEventSource=u,v.EventSource=$t})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:wn:globalThis)})(qn,qn.exports);var vu=qn.exports;const pu=async e=>{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=await(await fetch(t)).json();return{items:n?.items,total:n?.total}},mu=async e=>{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 i=(await(await fetch(t,{method:"GET",headers:sa(e.session)})).json())?.items?.find(s=>s?.tournament?.id===e.tournamentid);return{playerData:i?.tournament?.leaderBoard,endRank:i?.endRank,playerEnrolled:i?.tournament?.playerEnrolled}},gu=(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 vu.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?.items)},n},_u=async e=>{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"}),await(await fetch(t,{method:"PUT",headers:r,body:JSON.stringify(n)})).json()},bu=async e=>await(await fetch(`${e.endpoint}/tournaments/${e.tournamentid}`,{headers:{"X-SessionID":e.session}})).json(),yu=async e=>{const t=await _u(e);if(!t)return{enrolled:!1};if(t.success==!0)return{enrolled:!0};if(t.errorMessage&&t.errorMessage.match("VersionMismatchException")){const r=await bu({endpoint:e.endpoint,tournamentid:e.tournament.id,session:e.session});return r?.item?.playerEnrolled?{enrolled:!0}:{enrolled:!1,errorMessage:r?.errorMessage}}return{enrolled:!1}};var aa={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(wn,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",f="day",l="week",h="month",c="quarter",d="year",m="date",P="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|YYYY|YY|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,O={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(H){var x=["th","st","nd","rd"],b=H%100;return"["+H+(x[(b-20)%10]||x[b]||x[0])+"]"}},_=function(H,x,b){var T=String(H);return!T||T.length>=x?H:""+Array(x+1-T.length).join(b)+H},L={s:_,z:function(H){var x=-H.utcOffset(),b=Math.abs(x),T=Math.floor(b/60),y=b%60;return(x<=0?"+":"-")+_(T,2,"0")+":"+_(y,2,"0")},m:function H(x,b){if(x.date()<b.date())return-H(b,x);var T=12*(b.year()-x.year())+(b.month()-x.month()),y=x.clone().add(T,h),$=b-y<0,R=x.clone().add(T+($?-1:1),h);return+(-(T+(b-y)/($?y-R:R-y))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:h,y:d,w:l,d:f,D:m,h:u,m:o,s:a,ms:s,Q:c}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},j="en",X={};X[j]=O;var re="$isDayjsObject",le=function(H){return H instanceof K||!(!H||!H[re])},se=function H(x,b,T){var y;if(!x)return j;if(typeof x=="string"){var $=x.toLowerCase();X[$]&&(y=$),b&&(X[$]=b,y=$);var R=x.split("-");if(!y&&R.length>1)return H(R[0])}else{var B=x.name;X[B]=x,y=B}return!T&&y&&(j=y),y||!T&&j},D=function(H,x){if(le(H))return H.clone();var b=typeof x=="object"?x:{};return b.date=H,b.args=arguments,new K(b)},C=L;C.l=se,C.i=le,C.w=function(H,x){return D(H,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var K=function(){function H(b){this.$L=se(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[re]=!0}var x=H.prototype;return x.parse=function(b){this.$d=function(T){var y=T.date,$=T.utc;if(y===null)return new Date(NaN);if(C.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var R=y.match(p);if(R){var B=R[2]-1||0,ne=(R[7]||"0").substring(0,3);return $?new Date(Date.UTC(R[1],B,R[3]||1,R[4]||0,R[5]||0,R[6]||0,ne)):new Date(R[1],B,R[3]||1,R[4]||0,R[5]||0,R[6]||0,ne)}}return new Date(y)}(b),this.init()},x.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},x.$utils=function(){return C},x.isValid=function(){return this.$d.toString()!==P},x.isSame=function(b,T){var y=D(b);return this.startOf(T)<=y&&y<=this.endOf(T)},x.isAfter=function(b,T){return D(b)<this.startOf(T)},x.isBefore=function(b,T){return this.endOf(T)<D(b)},x.$g=function(b,T,y){return C.u(b)?this[T]:this.set(y,b)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(b,T){var y=this,$=!!C.u(T)||T,R=C.p(b),B=function(De,fe){var de=C.w(y.$u?Date.UTC(y.$y,fe,De):new Date(y.$y,fe,De),y);return $?de:de.endOf(f)},ne=function(De,fe){return C.w(y.toDate()[De].apply(y.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(fe)),y)},oe=this.$W,_e=this.$M,Le=this.$D,ot="set"+(this.$u?"UTC":"");switch(R){case d:return $?B(1,0):B(31,11);case h:return $?B(1,_e):B(0,_e+1);case l:var Ke=this.$locale().weekStart||0,Ye=(oe<Ke?oe+7:oe)-Ke;return B($?Le-Ye:Le+(6-Ye),_e);case f:case m:return ne(ot+"Hours",0);case u:return ne(ot+"Minutes",1);case o:return ne(ot+"Seconds",2);case a:return ne(ot+"Milliseconds",3);default:return this.clone()}},x.endOf=function(b){return this.startOf(b,!1)},x.$set=function(b,T){var y,$=C.p(b),R="set"+(this.$u?"UTC":""),B=(y={},y[f]=R+"Date",y[m]=R+"Date",y[h]=R+"Month",y[d]=R+"FullYear",y[u]=R+"Hours",y[o]=R+"Minutes",y[a]=R+"Seconds",y[s]=R+"Milliseconds",y)[$],ne=$===f?this.$D+(T-this.$W):T;if($===h||$===d){var oe=this.clone().set(m,1);oe.$d[B](ne),oe.init(),this.$d=oe.set(m,Math.min(this.$D,oe.daysInMonth())).$d}else B&&this.$d[B](ne);return this.init(),this},x.set=function(b,T){return this.clone().$set(b,T)},x.get=function(b){return this[C.p(b)]()},x.add=function(b,T){var y,$=this;b=Number(b);var R=C.p(T),B=function(_e){var Le=D($);return C.w(Le.date(Le.date()+Math.round(_e*b)),$)};if(R===h)return this.set(h,this.$M+b);if(R===d)return this.set(d,this.$y+b);if(R===f)return B(1);if(R===l)return B(7);var ne=(y={},y[o]=n,y[u]=i,y[a]=r,y)[R]||1,oe=this.$d.getTime()+b*ne;return C.w(oe,this)},x.subtract=function(b,T){return this.add(-1*b,T)},x.format=function(b){var T=this,y=this.$locale();if(!this.isValid())return y.invalidDate||P;var $=b||"YYYY-MM-DDTHH:mm:ssZ",R=C.z(this),B=this.$H,ne=this.$m,oe=this.$M,_e=y.weekdays,Le=y.months,ot=y.meridiem,Ke=function(fe,de,Xe,ut){return fe&&(fe[de]||fe(T,$))||Xe[de].slice(0,ut)},Ye=function(fe){return C.s(B%12||12,fe,"0")},De=ot||function(fe,de,Xe){var ut=fe<12?"AM":"PM";return Xe?ut.toLowerCase():ut};return $.replace(E,function(fe,de){return de||function(Xe){switch(Xe){case"YY":return String(T.$y).slice(-2);case"YYYY":return C.s(T.$y,4,"0");case"M":return oe+1;case"MM":return C.s(oe+1,2,"0");case"MMM":return Ke(y.monthsShort,oe,Le,3);case"MMMM":return Ke(Le,oe);case"D":return T.$D;case"DD":return C.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return Ke(y.weekdaysMin,T.$W,_e,2);case"ddd":return Ke(y.weekdaysShort,T.$W,_e,3);case"dddd":return _e[T.$W];case"H":return String(B);case"HH":return C.s(B,2,"0");case"h":return Ye(1);case"hh":return Ye(2);case"a":return De(B,ne,!0);case"A":return De(B,ne,!1);case"m":return String(ne);case"mm":return C.s(ne,2,"0");case"s":return String(T.$s);case"ss":return C.s(T.$s,2,"0");case"SSS":return C.s(T.$ms,3,"0");case"Z":return R}return null}(fe)||R.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(b,T,y){var $,R=this,B=C.p(T),ne=D(b),oe=(ne.utcOffset()-this.utcOffset())*n,_e=this-ne,Le=function(){return C.m(R,ne)};switch(B){case d:$=Le()/12;break;case h:$=Le();break;case c:$=Le()/3;break;case l:$=(_e-oe)/6048e5;break;case f:$=(_e-oe)/864e5;break;case u:$=_e/i;break;case o:$=_e/n;break;case a:$=_e/r;break;default:$=_e}return y?$:C.a($)},x.daysInMonth=function(){return this.endOf(h).$D},x.$locale=function(){return X[this.$L]},x.locale=function(b,T){if(!b)return this.$L;var y=this.clone(),$=se(b,T,!0);return $&&(y.$L=$),y},x.clone=function(){return C.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},H}(),Ae=K.prototype;return D.prototype=Ae,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",f],["$M",h],["$y",d],["$D",m]].forEach(function(H){Ae[H[1]]=function(x){return this.$g(x,H[0],H[1])}}),D.extend=function(H,x){return H.$i||(H(x,K,D),H.$i=!0),D},D.locale=se,D.isDayjs=le,D.unix=function(H){return D(1e3*H)},D.en=X[j],D.Ls=X,D.p={},D})})(aa);var Eu=aa.exports;const Ei=xn(Eu);var oa={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(wn,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?/,o=/\d*[^-_:/,()\s\d]+/,u={},f=function(p){return(p=+p)+(p>68?1900:2e3)},l=function(p){return function(E){this[p]=+E}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(E){if(!E||E==="Z")return 0;var O=E.match(/([+-]|\d\d)/g),_=60*O[1]+(+O[2]||0);return _===0?0:O[0]==="+"?-_:_}(p)}],c=function(p){var E=u[p];return E&&(E.indexOf?E:E.s.concat(E.f))},d=function(p,E){var O,_=u.meridiem;if(_){for(var L=1;L<=24;L+=1)if(p.indexOf(_(L,0,E))>-1){O=L>12;break}}else O=p===(E?"pm":"PM");return O},m={A:[o,function(p){this.afternoon=d(p,!1)}],a:[o,function(p){this.afternoon=d(p,!0)}],Q:[i,function(p){this.month=3*(p-1)+1}],S:[i,function(p){this.milliseconds=100*+p}],SS:[s,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[a,l("seconds")],ss:[a,l("seconds")],m:[a,l("minutes")],mm:[a,l("minutes")],H:[a,l("hours")],h:[a,l("hours")],HH:[a,l("hours")],hh:[a,l("hours")],D:[a,l("day")],DD:[s,l("day")],Do:[o,function(p){var E=u.ordinal,O=p.match(/\d+/);if(this.day=O[0],E)for(var _=1;_<=31;_+=1)E(_).replace(/\[|\]/g,"")===p&&(this.day=_)}],w:[a,l("week")],ww:[s,l("week")],M:[a,l("month")],MM:[s,l("month")],MMM:[o,function(p){var E=c("months"),O=(c("monthsShort")||E.map(function(_){return _.slice(0,3)})).indexOf(p)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[o,function(p){var E=c("months").indexOf(p)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,l("year")],YY:[s,function(p){this.year=f(p)}],YYYY:[/\d{4}/,l("year")],Z:h,ZZ:h};function P(p){var E,O;E=p,O=u&&u.formats;for(var _=(p=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,C,K){var Ae=K&&K.toUpperCase();return C||O[K]||r[K]||O[Ae].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,x,b){return x||b.slice(1)})})).match(n),L=_.length,j=0;j<L;j+=1){var X=_[j],re=m[X],le=re&&re[0],se=re&&re[1];_[j]=se?{regex:le,parser:se}:X.replace(/^\[|\]$/g,"")}return function(D){for(var C={},K=0,Ae=0;K<L;K+=1){var H=_[K];if(typeof H=="string")Ae+=H.length;else{var x=H.regex,b=H.parser,T=D.slice(Ae),y=x.exec(T)[0];b.call(C,y),D=D.replace(y,"")}}return function($){var R=$.afternoon;if(R!==void 0){var B=$.hours;R?B<12&&($.hours+=12):B===12&&($.hours=0),delete $.afternoon}}(C),C}}return function(p,E,O){O.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(f=p.parseTwoDigitYear);var _=E.prototype,L=_.parse;_.parse=function(j){var X=j.date,re=j.utc,le=j.args;this.$u=re;var se=le[1];if(typeof se=="string"){var D=le[2]===!0,C=le[3]===!0,K=D||C,Ae=le[2];C&&(Ae=le[2]),u=this.$locale(),!D&&Ae&&(u=O.Ls[Ae]),this.$d=function(T,y,$,R){try{if(["x","X"].indexOf(y)>-1)return new Date((y==="X"?1e3:1)*T);var B=P(y)(T),ne=B.year,oe=B.month,_e=B.day,Le=B.hours,ot=B.minutes,Ke=B.seconds,Ye=B.milliseconds,De=B.zone,fe=B.week,de=new Date,Xe=_e||(ne||oe?1:de.getDate()),ut=ne||de.getFullYear(),Tt=0;ne&&!oe||(Tt=oe>0?oe-1:de.getMonth());var $t,v=Le||0,S=ot||0,M=Ke||0,w=Ye||0;return De?new Date(Date.UTC(ut,Tt,Xe,v,S,M,w+60*De.offset*1e3)):$?new Date(Date.UTC(ut,Tt,Xe,v,S,M,w)):($t=new Date(ut,Tt,Xe,v,S,M,w),fe&&($t=R($t).week(fe).toDate()),$t)}catch{return new Date("")}}(X,se,re,O),this.init(),Ae&&Ae!==!0&&(this.$L=this.locale(Ae).$L),K&&X!=this.format(se)&&(this.$d=new Date("")),u={}}else if(se instanceof Array)for(var H=se.length,x=1;x<=H;x+=1){le[1]=se[x-1];var b=O.apply(this,le);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}x===H&&(this.$d=new Date(""))}else L.call(this,j)}}})})(oa);var wu=oa.exports;const xu=xn(wu);Ei.extend(xu);const Su=e=>Ei(e).format("MMMM D, HH:mm"),Tu=()=>typeof window>"u";class Au{constructor(){}static processMinMax(t,r){return{minValue:t?`: ${t}`:null,maxValue:r?`: ${r}`:null}}static generateCasinoRule(t,r){const n=` ~ ${t("unlimited")}`,i=r.currency||"EUR",s=r.minStake?.amount[i]?`: ${r.minStake.amount[i]} ${i}`:n,a=r.maxStake?.amount[i]?`: ${r.maxStake.amount[i]} ${i}`:n;return t("casinoRuleMinMaxBet",{values:{minBet:s,maxBet:a}})}static generateSportsRule(t,r){const n=[],i=` ~ ${t("unlimited")}`,s=r.currency||"EUR",a=r.minStake?.amount[s]?`: ${r.minStake.amount[s]} ${s}`:i,o=r.maxStake?.amount[s]?`: ${r.maxStake.amount[s]} ${s}`:i;n.push(t("sportsRuleMinMaxBet",{values:{sportMinBet:a,sportMaxBet:o}}));const u=r.config.liveMatch==="true",f=r.config.preLiveMatch==="true";u&&f?n.push(t("matchTypePreAndLive")):u?n.push(`${t("matchTypeLive")}`):f&&n.push(`${t("matchTyppePre")}`);const l=r.combination,h=[];l.single.isEligible&&h.push(t("betTypeSingle"));const d={null:t("typeOfSelectionAny"),true:t("bankerOnly"),false:t("nonBankerOnly")},m={unspecific:t("typeOfSelectionAny"),all:t("betBuilderOnly"),none:t("notBuilderOnly")};let P="",p="";const E=`${t("oddsPerSelection")}: ${r.config.minOdds||t("unlimited")} - ${r.config.maxOdds||t("unlimited")}`,O=l.system.isEligible,_=l.multiple.isEligible;O&&(P=` ${t("betTypeSystem")}
10
+ ( ${t("typeOfSelection")}: ${d[r.combination.system.banker?.include?.toString()||"null"]},
11
+ ${t("numberOfSelection")}:
12
+ ${l.system.minSelection?.number||t("unlimited")} - ${l.system.maxSelection?.number||t("unlimited")},
13
+ ${E} ) `),_&&(p=` ${t("betTypeMultiple")}
14
+ ( ${t("typeOfSelection")}: ${m[r.combination.multiple.betBuilder?.mode?.toString()||"unspecific"]},
15
+ ${t("numberOfSelection")}:
16
+ ${l.multiple.minSelection?.number||t("unlimited")} - ${l.multiple.maxSelection?.number||t("unlimited")},
17
+ ${E} ) `),O&&_?h.push(p+t("and")+P):O?h.push(P):_&&h.push(p),n.push(h.join(", "));const L=r.config.minTotalOdds?`: ${r.config.minTotalOdds}`:i,j=r.config.maxTotalOdds?`: ${r.config.maxTotalOdds}`:i;return n.push(`${t("sportsRuleMinMaxOdds",{values:{sportMinOdds:L,sportMaxOdds:j}})}`),n}}var Mu=function(t){return Pu(t)&&!Hu(t)};function Pu(e){return!!e&&typeof e=="object"}function Hu(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Nu(e)}var Ou=typeof Symbol=="function"&&Symbol.for,$u=Ou?Symbol.for("react.element"):60103;function Nu(e){return e.$$typeof===$u}function Lu(e){return Array.isArray(e)?[]:{}}function Br(e,t){return t.clone!==!1&&t.isMergeableObject(e)?_r(Lu(e),e,t):e}function Ru(e,t,r){return e.concat(t).map(function(n){return Br(n,r)})}function Bu(e,t){if(!t.customMerge)return _r;var r=t.customMerge(e);return typeof r=="function"?r:_r}function Cu(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ii(e){return Object.keys(e).concat(Cu(e))}function ua(e,t){try{return t in e}catch{return!1}}function Du(e,t){return ua(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Iu(e,t,r){var n={};return r.isMergeableObject(e)&&Ii(e).forEach(function(i){n[i]=Br(e[i],r)}),Ii(t).forEach(function(i){Du(e,i)||(ua(e,i)&&r.isMergeableObject(t[i])?n[i]=Bu(i,r)(e[i],t[i],r):n[i]=Br(t[i],r))}),n}function _r(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ru,r.isMergeableObject=r.isMergeableObject||Mu,r.cloneUnlessOtherwiseSpecified=Br;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Iu(e,t,r):Br(t,r)}_r.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return _r(n,i,r)},{})};var ku=_r,Fu=ku;const Uu=xn(Fu);var Zn=function(e,t){return Zn=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])},Zn(e,t)};function Sn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Zn(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var At=function(){return At=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},At.apply(this,arguments)};function Gu(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 $n(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 Nn(e,t){var r=t&&t.cache?t.cache:qu,n=t&&t.serializer?t.serializer:zu,i=t&&t.strategy?t.strategy:Yu;return i(e,{cache:r,serializer:n})}function ju(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Vu(e,t,r,n){var i=ju(n)?n:r(n),s=t.get(i);return typeof s>"u"&&(s=e.call(this,n),t.set(i,s)),s}function la(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,n),t.set(i,s)),s}function fa(e,t,r,n,i){return r.bind(t,e,n,i)}function Yu(e,t){var r=e.length===1?Vu:la;return fa(e,this,r,t.cache.create(),t.serializer)}function Xu(e,t){return fa(e,this,la,t.cache.create(),t.serializer)}var zu=function(){return JSON.stringify(arguments)},Wu=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}(),qu={create:function(){return new Wu}},Ln={variadic:Xu},fn=function(){return fn=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},fn.apply(this,arguments)};var Z;(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"})(Z||(Z={}));var ge;(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"})(ge||(ge={}));var br;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(br||(br={}));function ki(e){return e.type===ge.literal}function Zu(e){return e.type===ge.argument}function ha(e){return e.type===ge.number}function ca(e){return e.type===ge.date}function da(e){return e.type===ge.time}function va(e){return e.type===ge.select}function pa(e){return e.type===ge.plural}function Ju(e){return e.type===ge.pound}function ma(e){return e.type===ge.tag}function ga(e){return!!(e&&typeof e=="object"&&e.type===br.number)}function Jn(e){return!!(e&&typeof e=="object"&&e.type===br.dateTime)}var _a=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Qu=/(?:[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 Ku(e){var t={};return e.replace(Qu,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 Se=function(){return Se=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},Se.apply(this,arguments)};var el=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function tl(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(el).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 o=a[0],u=a.slice(1),f=0,l=u;f<l.length;f++){var h=l[f];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:u})}return r}function rl(e){return e.replace(/^(.*?)-/,"")}var Fi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ba=/^(@+)?(\+|#+)?[rs]?$/g,nl=/(\*)(0+)|(#+)(0+)|(0+)/g,ya=/^(0+)$/;function Ui(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ba,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 Ea(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 il(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)),!ya.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Gi(e){var t={},r=Ea(e);return r||t}function sl(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=rl(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=Se(Se(Se({},t),{notation:"scientific"}),i.options.reduce(function(u,f){return Se(Se({},u),Gi(f))},{}));continue;case"engineering":t=Se(Se(Se({},t),{notation:"engineering"}),i.options.reduce(function(u,f){return Se(Se({},u),Gi(f))},{}));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(nl,function(u,f,l,h,c,d){if(f)t.minimumIntegerDigits=l.length;else{if(h&&c)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ya.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Fi.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Fi,function(u,f,l,h,c,d){return l==="*"?t.minimumFractionDigits=f.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:c&&d?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+d.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var s=i.options[0];s==="w"?t=Se(Se({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=Se(Se({},t),Ui(s)));continue}if(ba.test(i.stem)){t=Se(Se({},t),Ui(i.stem));continue}var a=Ea(i.stem);a&&(t=Se(Se({},t),a));var o=il(i.stem);o&&(t=Se(Se({},t),o))}return t}var jr={"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 al(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),o=s<2?1:3+(s>>1),u="a",f=ol(t);for((f=="H"||f=="k")&&(o=0);o-- >0;)r+=u;for(;a-- >0;)r=f+r}else i==="J"?r+="H":r+=i}return r}function ol(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=jr[n||""]||jr[r||""]||jr["".concat(r,"-001")]||jr["001"];return i[0]}var Rn,ul=new RegExp("^".concat(_a.source,"*")),ll=new RegExp("".concat(_a.source,"*$"));function te(e,t){return{start:e,end:t}}var fl=!!String.prototype.startsWith&&"_a".startsWith("a",1),hl=!!String.fromCodePoint,cl=!!Object.fromEntries,dl=!!String.prototype.codePointAt,vl=!!String.prototype.trimStart,pl=!!String.prototype.trimEnd,ml=!!Number.isSafeInteger,gl=ml?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Qn=!0;try{var _l=xa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Qn=((Rn=_l.exec("a"))===null||Rn===void 0?void 0:Rn[0])==="a"}catch{Qn=!1}var ji=fl?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Kn=hl?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},Vi=cl?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],a=s[0],o=s[1];r[a]=o}return r},wa=dl?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}},bl=vl?function(t){return t.trimStart()}:function(t){return t.replace(ul,"")},yl=pl?function(t){return t.trimEnd()}:function(t){return t.replace(ll,"")};function xa(e,t){return new RegExp(e,t)}var ei;if(Qn){var Yi=xa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ei=function(t,r){var n;Yi.lastIndex=r;var i=Yi.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else ei=function(t,r){for(var n=[];;){var i=wa(t,r);if(i===void 0||Sa(i)||Sl(i))break;n.push(i),r+=i>=65536?2:1}return Kn.apply(void 0,n)};var El=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 o=this.clonePosition();this.bump(),i.push({type:ge.pound,location:te(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Z.UNMATCHED_CLOSING_TAG,te(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&ti(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:ge.literal,value:"<".concat(i,"/>"),location:te(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,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ti(this.char()))return this.error(Z.INVALID_TAG,te(o,this.clonePosition()));var u=this.clonePosition(),f=this.parseTagName();return i!==f?this.error(Z.UNMATCHED_CLOSING_TAG,te(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ge.tag,value:i,children:a,location:te(n,this.clonePosition())},err:null}:this.error(Z.INVALID_TAG,te(o,this.clonePosition())))}else return this.error(Z.UNCLOSED_TAG,te(n,this.clonePosition()))}else return this.error(Z.INVALID_TAG,te(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&xl(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 o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var u=te(n,this.clonePosition());return{val:{type:ge.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!wl(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 Kn.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(),Kn(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,te(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Z.EMPTY_ARGUMENT,te(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Z.MALFORMED_ARGUMENT,te(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,te(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ge.argument,value:i,location:te(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,te(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(Z.MALFORMED_ARGUMENT,te(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=ei(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=te(t,s);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(o){case"":return this.error(Z.EXPECT_ARGUMENT_TYPE,te(a,u));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var c=yl(h.val);if(c.length===0)return this.error(Z.EXPECT_ARGUMENT_STYLE,te(this.clonePosition(),this.clonePosition()));var d=te(l,this.clonePosition());f={style:c,styleLocation:d}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var P=te(i,this.clonePosition());if(f&&ji(f?.style,"::",0)){var p=bl(f.style.slice(2));if(o==="number"){var h=this.parseNumberSkeletonFromString(p,f.styleLocation);return h.err?h:{val:{type:ge.number,value:n,location:P,style:h.val},err:null}}else{if(p.length===0)return this.error(Z.EXPECT_DATE_TIME_SKELETON,P);var E=p;this.locale&&(E=al(p,this.locale));var c={type:br.dateTime,pattern:E,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?Ku(E):{}},O=o==="date"?ge.date:ge.time;return{val:{type:O,value:n,location:P,style:c},err:null}}}return{val:{type:o==="number"?ge.number:o==="date"?ge.date:ge.time,value:n,location:P,style:(s=f?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Z.EXPECT_SELECT_ARGUMENT_OPTIONS,te(_,fn({},_)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),j=0;if(o!=="select"&&L.value==="offset"){if(!this.bumpIf(":"))return this.error(Z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,te(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(Z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),L=this.parseIdentifierIfPossible(),j=h.val}var X=this.tryParsePluralOrSelectOptions(t,o,r,L);if(X.err)return X;var m=this.tryParseArgumentClose(i);if(m.err)return m;var re=te(i,this.clonePosition());return o==="select"?{val:{type:ge.select,value:n,options:Vi(X.val),location:re},err:null}:{val:{type:ge.plural,value:n,options:Vi(X.val),offset:j,pluralType:o==="plural"?"cardinal":"ordinal",location:re},err:null}}default:return this.error(Z.INVALID_ARGUMENT_TYPE,te(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,te(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(Z.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,te(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=tl(t)}catch{return this.error(Z.INVALID_NUMBER_SKELETON,r)}return{val:{type:br.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?sl(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],u=new Set,f=i.value,l=i.location;;){if(f.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(Z.EXPECT_PLURAL_ARGUMENT_SELECTOR,Z.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=te(h,this.clonePosition()),f=this.message.slice(h.offset,this.offset())}else break}if(u.has(f))return this.error(r==="select"?Z.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Z.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);f==="other"&&(a=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Z.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Z.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,te(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var P=this.tryParseArgumentClose(d);if(P.err)return P;o.push([f,{value:m.val,location:te(d,this.clonePosition())}]),u.add(f),this.bumpSpace(),s=this.parseIdentifierIfPossible(),f=s.value,l=s.location}return o.length===0?this.error(r==="select"?Z.EXPECT_SELECT_ARGUMENT_SELECTOR:Z.EXPECT_PLURAL_ARGUMENT_SELECTOR,te(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Z.MISSING_OTHER_CLAUSE,te(this.clonePosition(),this.clonePosition())):{val:o,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 o=this.char();if(o>=48&&o<=57)s=!0,a=a*10+(o-48),this.bump();else break}var u=te(i,this.clonePosition());return s?(a*=n,gl(a)?{val:a,err:null}:this.error(r,u)):this.error(t,u)},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=wa(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(ji(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()&&Sa(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},e}();function ti(e){return e>=97&&e<=122||e>=65&&e<=90}function wl(e){return ti(e)||e===47}function xl(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 Sa(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Sl(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 ri(e){e.forEach(function(t){if(delete t.location,va(t)||pa(t))for(var r in t.options)delete t.options[r].location,ri(t.options[r].value);else ha(t)&&ga(t.style)||(ca(t)||da(t))&&Jn(t.style)?delete t.style.location:ma(t)&&ri(t.children)})}function Tl(e,t){t===void 0&&(t={}),t=fn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new El(e,t).parse();if(r.err){var n=SyntaxError(Z[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||ri(r.val),r.val}var yr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(yr||(yr={}));var Tn=function(e){Sn(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),Xi=function(e){Sn(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('", "'),'"'),yr.INVALID_VALUE,s)||this}return t}(Tn),Al=function(e){Sn(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),yr.INVALID_VALUE,i)||this}return t}(Tn),Ml=function(e){Sn(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,'"'),yr.MISSING_VALUE,n)||this}return t}(Tn),qe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(qe||(qe={}));function Pl(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==qe.literal||r.type!==qe.literal?t.push(r):n.value+=r.value,t},[])}function Hl(e){return typeof e=="function"}function Qr(e,t,r,n,i,s,a){if(e.length===1&&ki(e[0]))return[{type:qe.literal,value:e[0].value}];for(var o=[],u=0,f=e;u<f.length;u++){var l=f[u];if(ki(l)){o.push({type:qe.literal,value:l.value});continue}if(Ju(l)){typeof s=="number"&&o.push({type:qe.literal,value:r.getNumberFormat(t).format(s)});continue}var h=l.value;if(!(i&&h in i))throw new Ml(h,a);var c=i[h];if(Zu(l)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),o.push({type:typeof c=="string"?qe.literal:qe.object,value:c});continue}if(ca(l)){var d=typeof l.style=="string"?n.date[l.style]:Jn(l.style)?l.style.parsedOptions:void 0;o.push({type:qe.literal,value:r.getDateTimeFormat(t,d).format(c)});continue}if(da(l)){var d=typeof l.style=="string"?n.time[l.style]:Jn(l.style)?l.style.parsedOptions:n.time.medium;o.push({type:qe.literal,value:r.getDateTimeFormat(t,d).format(c)});continue}if(ha(l)){var d=typeof l.style=="string"?n.number[l.style]:ga(l.style)?l.style.parsedOptions:void 0;d&&d.scale&&(c=c*(d.scale||1)),o.push({type:qe.literal,value:r.getNumberFormat(t,d).format(c)});continue}if(ma(l)){var m=l.children,P=l.value,p=i[P];if(!Hl(p))throw new Al(P,"function",a);var E=Qr(m,t,r,n,i,s),O=p(E.map(function(j){return j.value}));Array.isArray(O)||(O=[O]),o.push.apply(o,O.map(function(j){return{type:typeof j=="string"?qe.literal:qe.object,value:j}}))}if(va(l)){var _=l.options[c]||l.options.other;if(!_)throw new Xi(l.value,c,Object.keys(l.options),a);o.push.apply(o,Qr(_.value,t,r,n,i));continue}if(pa(l)){var _=l.options["=".concat(c)];if(!_){if(!Intl.PluralRules)throw new Tn(`Intl.PluralRules is not available in this environment.
18
+ Try polyfilling it using "@formatjs/intl-pluralrules"
19
+ `,yr.MISSING_INTL_API,a);var L=r.getPluralRules(t,{type:l.pluralType}).select(c-(l.offset||0));_=l.options[L]||l.options.other}if(!_)throw new Xi(l.value,c,Object.keys(l.options),a);o.push.apply(o,Qr(_.value,t,r,n,i,c-(l.offset||0)));continue}}return Pl(o)}function Ol(e,t){return t?At(At(At({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=At(At({},e[n]),t[n]||{}),r},{})):e}function $l(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Ol(e[n],t[n]),r},At({},e)):e}function Bn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Nl(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Nn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,$n([void 0],r,!1)))},{cache:Bn(e.number),strategy:Ln.variadic}),getDateTimeFormat:Nn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,$n([void 0],r,!1)))},{cache:Bn(e.dateTime),strategy:Ln.variadic}),getPluralRules:Nn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,$n([void 0],r,!1)))},{cache:Bn(e.pluralRules),strategy:Ln.variadic})}}var Ll=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(u){var f=s.formatToParts(u);if(f.length===1)return f[0].value;var l=f.reduce(function(h,c){return!h.length||c.type!==qe.literal||typeof h[h.length-1]!="string"?h.push(c.value):h[h.length-1]+=c.value,h},[]);return l.length<=1?l[0]||"":l},this.formatToParts=function(u){return Qr(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.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 o=Gu(a,["formatters"]);this.ast=e.__parse(t,At(At({},o),{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=$l(e.formats,n),this.formatters=i&&i.formatters||Nl(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>"u")){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=Tl,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 Rl(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 jt={},Bl=(e,t,r)=>r&&(t in jt||(jt[t]={}),e in jt[t]||(jt[t][e]=r),r),Ta=(e,t)=>{if(t==null)return;if(t in jt&&e in jt[t])return jt[t][e];const r=An(t);for(let n=0;n<r.length;n++){const i=r[n],s=Dl(i,e);if(s)return Bl(e,t,s)}};let wi;const Sr=mn({});function Cl(e){return wi[e]||null}function Aa(e){return e in wi}function Dl(e,t){if(!Aa(e))return null;const r=Cl(e);return Rl(r,t)}function Il(e){if(e==null)return;const t=An(e);for(let r=0;r<t.length;r++){const n=t[r];if(Aa(n))return n}}function Ma(e,...t){delete jt[e],Sr.update(r=>(r[e]=Uu.all([r[e]||{},...t]),r))}xr([Sr],([e])=>Object.keys(e));Sr.subscribe(e=>wi=e);const Kr={};function kl(e,t){Kr[e].delete(t),Kr[e].size===0&&delete Kr[e]}function Pa(e){return Kr[e]}function Fl(e){return An(e).map(t=>{const r=Pa(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function ni(e){return e==null?!1:An(e).some(t=>{var r;return(r=Pa(t))==null?void 0:r.size})}function Ul(e,t){return Promise.all(t.map(n=>(kl(e,n),n().then(i=>i.default||i)))).then(n=>Ma(e,...n))}const Mr={};function Ha(e){if(!ni(e))return e in Mr?Mr[e]:Promise.resolve();const t=Fl(e);return Mr[e]=Promise.all(t.map(([r,n])=>Ul(r,n))).then(()=>{if(ni(e))return Ha(e);delete Mr[e]}),Mr[e]}const Gl={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"}}},jl={fallbackLocale:null,loadingDelay:200,formats:Gl,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Vl=jl;function Er(){return Vl}const Cn=mn(!1);var Yl=Object.defineProperty,Xl=Object.defineProperties,zl=Object.getOwnPropertyDescriptors,zi=Object.getOwnPropertySymbols,Wl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,Wi=(e,t,r)=>t in e?Yl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zl=(e,t)=>{for(var r in t||(t={}))Wl.call(t,r)&&Wi(e,r,t[r]);if(zi)for(var r of zi(t))ql.call(t,r)&&Wi(e,r,t[r]);return e},Jl=(e,t)=>Xl(e,zl(t));let ii;const hn=mn(null);function qi(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function An(e,t=Er().fallbackLocale){const r=qi(e);return t?[...new Set([...r,...qi(t)])]:r}function nr(){return ii??void 0}hn.subscribe(e=>{ii=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ql=e=>{if(e&&Il(e)&&ni(e)){const{loadingDelay:t}=Er();let r;return typeof window<"u"&&nr()!=null&&t?r=window.setTimeout(()=>Cn.set(!0),t):Cn.set(!0),Ha(e).then(()=>{hn.set(e)}).finally(()=>{clearTimeout(r),Cn.set(!1)})}return hn.set(e)},Yt=Jl(Zl({},hn),{set:Ql}),Mn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Kl=Object.defineProperty,cn=Object.getOwnPropertySymbols,Oa=Object.prototype.hasOwnProperty,$a=Object.prototype.propertyIsEnumerable,Zi=(e,t,r)=>t in e?Kl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xi=(e,t)=>{for(var r in t||(t={}))Oa.call(t,r)&&Zi(e,r,t[r]);if(cn)for(var r of cn(t))$a.call(t,r)&&Zi(e,r,t[r]);return e},Tr=(e,t)=>{var r={};for(var n in e)Oa.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&cn)for(var n of cn(e))t.indexOf(n)<0&&$a.call(e,n)&&(r[n]=e[n]);return r};const Cr=(e,t)=>{const{formats:r}=Er();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ef=Mn(e=>{var t=e,{locale:r,format:n}=t,i=Tr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Cr("number",n)),new Intl.NumberFormat(r,i)}),tf=Mn(e=>{var t=e,{locale:r,format:n}=t,i=Tr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Cr("date",n):Object.keys(i).length===0&&(i=Cr("date","short")),new Intl.DateTimeFormat(r,i)}),rf=Mn(e=>{var t=e,{locale:r,format:n}=t,i=Tr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Cr("time",n):Object.keys(i).length===0&&(i=Cr("time","short")),new Intl.DateTimeFormat(r,i)}),nf=(e={})=>{var t=e,{locale:r=nr()}=t,n=Tr(t,["locale"]);return ef(xi({locale:r},n))},sf=(e={})=>{var t=e,{locale:r=nr()}=t,n=Tr(t,["locale"]);return tf(xi({locale:r},n))},af=(e={})=>{var t=e,{locale:r=nr()}=t,n=Tr(t,["locale"]);return rf(xi({locale:r},n))},of=Mn((e,t=nr())=>new Ll(e,t,Er().formats,{ignoreTag:Er().ignoreTag})),uf=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=nr(),default:f}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Ta(e,u);if(!l)l=(s=(i=(n=(r=Er()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:f}))!=null?i:f)!=null?s:e;else if(typeof l!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l;if(!o)return l;let h=l;try{h=of(l,u).format(o)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return h},lf=(e,t)=>af(t).format(e),ff=(e,t)=>sf(t).format(e),hf=(e,t)=>nf(t).format(e),cf=(e,t=nr())=>Ta(e,t),Na=xr([Yt,Sr],()=>uf);xr([Yt],()=>lf);xr([Yt],()=>ff);xr([Yt],()=>hf);xr([Yt,Sr],()=>cf);function df({withLocale:e,translations:t}){Yt.subscribe(r=>{r==null&&(Sr.set(t),Yt.set(e))})}function La(e,t){Ma(e,t)}function si(e){Yt.set(e)}function Ra(e){Object.keys(e).forEach(t=>{La(t,e[t])})}function Ba(e){const t=new URL(e);fetch(t.href).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{La(n,r[n])})}).catch(r=>{console.log(r)})}const vf={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 pf=nt('<span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span>',1),mf=nt('<span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r">—</span> <span class="svelte-1vfou2r">—</span>',1),Ji=nt('<p class="NoPlayerData svelte-1vfou2r"> </p>'),gf=nt('<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>'),_f=nt('<div class="PlayerRankSkeletonWrapper svelte-1vfou2r"><div class="PlayerRankSkeleton svelte-1vfou2r"></div> <div class="PlayerRankSkeleton svelte-1vfou2r"></div></div>'),bf=nt('<tr class="SkeletonRow svelte-1vfou2r"><td colspan="4" class="svelte-1vfou2r"></td></tr>'),yf=nt('<tr><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td></tr>'),Ef=nt('<tr class="svelte-1vfou2r"><td colspan="4" class="svelte-1vfou2r"><div class="EmptyLeaderboard svelte-1vfou2r"><p class="svelte-1vfou2r"> </p></div></td></tr>'),wf=nt('<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>'),xf=nt('<span class="PaginationButton Elipsis svelte-1vfou2r">...</span>'),Sf=nt("<button> </button>"),Tf=nt('<div class="PaginationWrapper svelte-1vfou2r"><button class="PaginationButton svelte-1vfou2r"> </button> <div class="PageNumberWrapper svelte-1vfou2r"></div> <button class="PaginationButton svelte-1vfou2r"> </button></div>'),Af=nt('<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 Mf={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 Si(e,t){vn(t,!0),ta(e,Mf);const r=()=>bs(Na,"$_",n),[n,i]=ys(),s=Ze(t,"endpoint"),a=Ze(t,"language",7,"en"),o=Ze(t,"session"),u=Ze(t,"tournamentid"),f=Ze(t,"platform"),l=Ze(t,"translationurl"),h=Ze(t,"newlyEnrolled");Ra(vf),si(a());const c=()=>{si(a())};Ds(()=>{l()&&Ba(l())}),un(()=>{c()});let d=null,m=$e(void 0),P=$e(!1),p=$e(!1),E=$e(void 0),O=$e(void 0),_=$e(0),L=$e(10),j=$e(!0),X=$e(void 0),re=$e(!1);const le=async()=>{if(!T.has(A(b))){me(P,!0);try{const g=await pu({endpoint:s(),language:a(),platform:f(),session:o(),tournamentid:u(),offset:A(_),limit:A(L)});me(m,g.items,!0),me(X,g.total,!0),T.set(A(b),A(m)),A(j)||me(j,!0)}catch(g){console.log(g)}finally{me(P,!1)}}},se=()=>{d&&(d.close(),d=null),d=gu({endpoint:s(),language:a(),platform:f(),session:o(),tournamentid:u(),offset:A(_),limit:A(L)},g=>{me(m,g,!0)})},D=async()=>{me(p,!0);try{const g=await mu({endpoint:s(),language:a(),platform:f(),session:o(),tournamentid:u()});me(E,g.playerData,!0),me(O,g.endRank,!0),me(re,g.playerEnrolled,!0)}catch(g){console.log(g)}finally{me(p,!1)}},C=()=>{A(_)<A(X)&&(me(_,A(_)+A(L)),le(),se())},K=()=>{A(_)!==0&&(me(_,A(_)-A(L)),le(),se())},Ae=g=>{me(_,(g-1)*A(L)),le(),se()},x=Vr(()=>{const g=Math.ceil(A(X)/A(L)),U=Math.floor(A(_)/A(L))+1;if(g<=5)return Array.from({length:g},(ue,ee)=>ee+1);const F=[];return F.push(1),U<=3?(F.push(2,3),F.push("..."),F.push(g)):U>=g-2?(F.push("..."),F.push(g-2,g-1,g)):(F.push("..."),F.push(U-1,U,U+1),F.push("..."),F.push(g)),F}),b=Vr(()=>Math.floor(A(_)/A(L))+1);let T=new Map,y=Vr(()=>T.get(A(b))??[]);const $=(g,U)=>{const F=[];return U&&F.push("PlayerRow"),g===1&&F.push("Gold"),g===2&&F.push("Silver"),g===3&&F.push("Bronze"),F.join(" ")},R=g=>g?Math.floor(g):"-";un(()=>{h()&&D()}),bi(()=>(le(),D(),se(),()=>{d?.close(),d=null}));var B={get endpoint(){return s()},set endpoint(g){s(g),je()},get language(){return a()},set language(g="en"){a(g),je()},get session(){return o()},set session(g){o(g),je()},get tournamentid(){return u()},set tournamentid(g){u(g),je()},get platform(){return f()},set platform(g){f(g),je()},get translationurl(){return l()},set translationurl(g){l(g),je()},get newlyEnrolled(){return h()},set newlyEnrolled(g){h(g),je()}},ne=Af(),oe=W(ne),_e=W(oe);{var Le=g=>{var U=gf(),F=W(U),ue=W(F),ee=W(ue,!0);Y(ue);var ce=Be(ue,2),Ie=W(ce,!0);Y(ce);var ze=Be(ce,2),Ee=W(ze,!0);Y(ze),Y(F);var lt=Be(F,2),be=W(lt);{var Nt=we=>{var Me=pf(),Re=or(Me),pe=W(Re);Y(Re);var ye=Be(Re,2),We=W(ye,!0);Y(ye);var Ge=Be(ye,2),ke=W(Ge,!0);Y(Ge),ht(()=>{xe(pe,`${A(E).rank??""}.`),xe(We,A(E).score),xe(ke,A(E).prizeName||"—")}),He(we,Me)},et=we=>{var Me=mf(),Re=or(Me),pe=W(Re);Y(Re),ui(4),ht(()=>xe(pe,`${A(O)??""}.`)),He(we,Me)},ft=we=>{var Me=Ji(),Re=W(Me,!0);Y(Me),ht(pe=>xe(Re,pe),[()=>r()("leaderboardNotAvailable")]),He(we,Me)},it=we=>{var Me=Ji(),Re=W(Me,!0);Y(Me),ht(pe=>xe(Re,pe),[()=>r()("notEnrolledRank")]),He(we,Me)};Xt(be,we=>{A(E)?we(Nt):A(O)?we(et,1):A(re)?we(ft,2):we(it,-1)})}Y(lt),Y(U),ht((we,Me,Re)=>{xe(ee,we),xe(Ie,Me),xe(Ee,Re)},[()=>r()("myRanking"),()=>r()("points"),()=>r()("prize")]),He(g,U)},ot=g=>{var U=_f();He(g,U)};Xt(_e,g=>{A(p)?g(ot,-1):g(Le)})}var Ke=Be(_e,2),Ye=W(Ke),De=W(Ye),fe=W(De),de=W(fe,!0);Y(fe);var Xe=Be(fe),ut=W(Xe,!0);Y(Xe);var Tt=Be(Xe),$t=W(Tt,!0);Y(Tt);var v=Be(Tt),S=W(v,!0);Y(v),Y(De),Y(Ye);var M=Be(Ye),w=W(M);{var I=g=>{var U=Wr(),F=or(U);Zr(F,17,()=>Array(A(L)),qr,(ue,ee,ce,Ie)=>{var ze=bf();He(ue,ze)}),He(g,U)},N=g=>{var U=Wr(),F=or(U);Zr(F,17,()=>A(y),qr,(ue,ee)=>{var ce=yf(),Ie=W(ce),ze=W(Ie);Y(Ie);var Ee=Be(Ie),lt=W(Ee,!0);Y(Ee);var be=Be(Ee),Nt=W(be,!0);Y(be);var et=Be(be),ft=W(et,!0);Y(et),Y(ce),ht((it,we)=>{Wn(ce,1,it,"svelte-1vfou2r"),xe(ze,`${A(ee).rank??""}.`),xe(lt,A(ee).shortName||"J.D"),xe(Nt,we),xe(ft,A(ee).prizeName||"—")},[()=>na($(A(ee).rank,A(ee).rank===A(E)?.rank)),()=>R(A(ee).score)]),He(ue,ce)}),He(g,U)},G=g=>{var U=Ef(),F=W(U),ue=W(F),ee=W(ue),ce=W(ee,!0);Y(ee),Y(ue),Y(F),Y(U),ht(Ie=>xe(ce,Ie),[()=>r()("leaderboardNotAvailable")]),He(g,U)};Xt(w,g=>{A(P)?g(I):A(m)?.length>0?g(N,1):g(G,-1)})}Y(M),Y(Ke),Y(oe);var ve=Be(oe,2);{var z=g=>{var U=wf();He(g,U)};Xt(ve,g=>{A(j)||g(z)})}var ae=Be(ve,2);{var he=g=>{var U=Tf(),F=W(U),ue=W(F,!0);Y(F);var ee=Be(F,2);Zr(ee,21,()=>A(x),qr,(ze,Ee)=>{var lt=Wr(),be=or(lt);{var Nt=ft=>{var it=xf();He(ft,it)},et=ft=>{var it=Sf();let we;var Me=W(it,!0);Y(it),ht(()=>{we=Wn(it,1,"PaginationButton Number svelte-1vfou2r",null,we,{Active:A(Ee)===A(b)}),xe(Me,A(Ee))}),zr("click",it,()=>Ae(A(Ee))),He(ft,it)};Xt(be,ft=>{typeof A(Ee)!="number"?ft(Nt):ft(et,-1)})}He(ze,lt)}),Y(ee);var ce=Be(ee,2),Ie=W(ce,!0);Y(ce),Y(U),ht((ze,Ee)=>{F.disabled=A(_)===0,xe(ue,ze),ce.disabled=A(_)>=A(X)-A(L),xe(Ie,Ee)},[()=>r()("previousButton"),()=>r()("nextButton")]),zr("click",F,K),zr("click",ce,C),He(g,U)};Xt(ae,g=>{A(j)&&A(X)>A(L)&&g(he)})}Y(ne),ht((g,U,F,ue)=>{xe(de,g),xe(ut,U),xe($t,F),xe(S,ue)},[()=>r()("rank"),()=>r()("user"),()=>r()("points"),()=>r()("prize")]),He(e,ne);var k=pn(B);return i(),k}Qs(["click"]);yi(Si,{endpoint:{},language:{},session:{},tournamentid:{},platform:{},translationurl:{},newlyEnrolled:{}},[],[],{mode:"open"});function Ca(e,t){vn(t,!0);let r=Ze(t,"endpoint"),n=Ze(t,"language",7,"en"),i=Ze(t,"session"),s=Ze(t,"tournamentid"),a=Ze(t,"platform"),o=Ze(t,"translationurl"),u=Ze(t,"newlyEnrolled");var f={get endpoint(){return r()},set endpoint(l){r(l),je()},get language(){return n()},set language(l="en"){n(l),je()},get session(){return i()},set session(l){i(l),je()},get tournamentid(){return s()},set tournamentid(l){s(l),je()},get platform(){return a()},set platform(l){a(l),je()},get translationurl(){return o()},set translationurl(l){o(l),je()},get newlyEnrolled(){return u()},set newlyEnrolled(l){u(l),je()}};return Si(e,{get endpoint(){return r()},get language(){return n()},get session(){return i()},get tournamentid(){return s()},get platform(){return a()},get translationurl(){return o()},get newlyEnrolled(){return u()}}),pn(f)}customElements.define("tournament-leaderboard",yi(Ca,{endpoint:{},language:{},session:{},tournamentid:{},platform:{},translationurl:{},newlyEnrolled:{}},[],[]));const Pf=Object.freeze(Object.defineProperty({__proto__:null,default:Ca},Symbol.toStringTag,{value:"Module"}));exports.$format=Na;exports.TournamentLeaderboard=Si;exports.TournamentLeaderboard_ce=Pf;exports.TournamentWalletUtils=Au;exports.append=He;exports.append_styles=ta;exports.child=W;exports.clsx=na;exports.comment=Wr;exports.commonjsGlobal=wn;exports.create_custom_element=yi;exports.dayjs=Ei;exports.delegate=Qs;exports.delegated=zr;exports.each=Zr;exports.fetchTournament=du;exports.first_child=or;exports.flushSync=je;exports.from_html=nt;exports.get=A;exports.getDefaultExportFromCjs=xn;exports.getFormattedDate=Su;exports.html=Ko;exports.if_block=Xt;exports.index=qr;exports.isServer=Tu;exports.joinTournament=yu;exports.loadTranslations=Ba;exports.next=ui;exports.onDestroy=qo;exports.onMount=bi;exports.pop=pn;exports.prop=Ze;exports.proxy=lr;exports.push=vn;exports.registerTranslations=Ra;exports.reset=Y;exports.set=me;exports.setLocale=si;exports.set_attribute=ou;exports.set_class=Wn;exports.set_style=nu;exports.set_text=xe;exports.setupI18n=df;exports.setup_stores=ys;exports.sibling=Be;exports.state=$e;exports.store_get=bs;exports.template_effect=ht;exports.text=jo;exports.user_derived=Vr;exports.user_effect=un;exports.user_pre_effect=Ds;