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