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