@everymatrix/tournaments-banner 0.2.9 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ var Jo=Object.defineProperty,Ko=Object.defineProperties;var ea=Object.getOwnPropertyDescriptors;var Ni=Object.getOwnPropertySymbols;var ta=Object.prototype.hasOwnProperty,ra=Object.prototype.propertyIsEnumerable;var Oi=e=>{throw TypeError(e)};var mn=(e,t,r)=>t in e?Jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ar=(e,t)=>{for(var r in t||(t={}))ta.call(t,r)&&mn(e,r,t[r]);if(Ni)for(var r of Ni(t))ra.call(t,r)&&mn(e,r,t[r]);return e},Hr=(e,t)=>Ko(e,ea(t));var L=(e,t,r)=>mn(e,typeof t!="symbol"?t+"":t,r),gn=(e,t,r)=>t.has(e)||Oi("Cannot "+r);var h=(e,t,r)=>(gn(e,t,"read from private field"),r?r.call(e):t.get(e)),x=(e,t,r)=>t.has(e)?Oi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),y=(e,t,r,n)=>(gn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),_=(e,t,r)=>(gn(e,t,"access private method"),r);var Bi=(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 na=require("./translations-Dw7XuwXd.cjs"),ia="5";var ts,rs,ns;typeof window!="undefined"&&((ns=(rs=(ts=window.__svelte)!=null?ts:window.__svelte={}).v)!=null?ns:rs.v=new Set).add(ia);const sa=1,oa=2,aa=16,ua=1,la=2,os="[",si="[!",Pi="[?",oi="]",et={},G=Symbol("uninitialized"),fa="http://www.w3.org/1999/xhtml",as=!1;var us=Array.isArray,ha=Array.prototype.indexOf,lr=Array.prototype.includes,tn=Array.from,Gr=Object.keys,$t=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,ca=Object.getOwnPropertyDescriptors,da=Object.prototype,pa=Array.prototype,ls=Object.getPrototypeOf,Ii=Object.isExtensible;const Pe=()=>{};function fs(e){for(var t=0;t<e.length;t++)e[t]()}function hs(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const X=2,Dt=4,br=8,cs=1<<24,Ee=16,we=32,je=64,Bn=128,ai=256,xe=512,k=1024,R=2048,ae=4096,Z=8192,V=16384,_t=32768,fr=1<<25,mt=65536,kr=1<<17,va=1<<18,bt=1<<19,ds=1<<20,Ge=1<<25,jr=1<<21,Ot=1<<22,Je=1<<23,Ir=Symbol("$state"),ps=Symbol("component"),ma=Symbol("legacy props"),ga=Symbol(""),Cr=Symbol("attributes"),Pn=Symbol("class"),_a=Symbol("style"),Jt=Symbol("text"),Er=new class extends Error{constructor(){super(...arguments);L(this,"name","StaleReactionError");L(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var is;const ba=!!((is=globalThis.document)!=null&&is.contentType)&&globalThis.document.contentType.includes("xml"),rn=3,yr=8;function Ea(){console.warn("https://svelte.dev/e/derived_inert")}function nn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ya(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let P=!1;function ke(e){P=e}let A;function ee(e){if(e===null)throw nn(),et;return A=e}function sn(){return ee(Me(A))}function ir(e){if(P){if(Me(A)!==null)throw nn(),et;A=e}}function xa(e=1){if(P){for(var t=e,r=A;t--;)r=Me(r);A=r}}function Vr(e=!0){for(var t=0,r=A;;){if(r.nodeType===yr){var n=r.data;if(n===oi){if(t===0)return r;t-=1}else(n===os||n===si||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Me(r);e&&r.remove(),r=i}}function ui(e){if(!e||e.nodeType!==yr)throw nn(),et;return e.data}function vs(e){return e===this.v}function ms(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function gs(e){return!ms(e,this.v)}function wa(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ta(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Sa(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Aa(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ha(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Na(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Oa(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ba(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Pa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ia(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ca(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let Ma=!1,Q=null;function Ut(e){Q=e}function li(e,t=!1,r){Q={p:Q,i:!1,c:null,e:null,s:e,x:null,r:T,l:null}}function fi(e){var t=Q,r=t.e;if(r!==null){t.e=null;for(var n of r)Fs(n)}return e!==void 0&&(t.x=e),t.i=!0,Q=t.p,hi(e)}function hi(e={}){return $t(e,ps,{value:!0}),e}function _s(){return!0}let at=[];function bs(){var e=at;at=[],fs(e)}function Ze(e){if(at.length===0&&!sr){var t=at;queueMicrotask(()=>{t===at&&bs()})}at.push(e)}function La(){for(;at.length>0;)bs()}const Ra=-7169;function U(e,t){e.f=e.f&Ra|t}function ci(e){e.f&xe||e.deps===null?U(e,k):U(e,ae)}function Es(e,t){e.f&R?t.set(e,R):e.f&ae&&t.get(e)!==R&&t.set(e,ae),U(e,k)}function xr(e){var t=w,r=T;ve(null),Ce(null);try{return e()}finally{ve(t),Ce(r)}}function $a(e,t,r,n){const i=on;var s=e.filter(v=>!v.settled),a=t.map(i);if(r.length===0&&s.length===0){n(a);return}var o=T,u=Da(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(v=>v.promise)):null;function f(v){if(!(o.f&V)){u();try{n([...a,...v])}catch(c){Oe(c,o)}qr()}}var d=ys();if(r.length===0){l.then(()=>f([])).finally(d);return}function p(){Promise.all(r.map(v=>Ua(v))).then(f).catch(v=>Oe(v,o)).finally(d)}l?l.then(()=>{if(o.f&V){d();return}u(),p(),qr()}):p()}function Da(){var e=T,t=w,r=Q,n=E;return function(s=!0){Ce(e),ve(t),Ut(r),s&&!(e.f&V)&&(n==null||n.activate(),n==null||n.apply())}}function qr(e=!0){Ce(null),ve(null),Ut(null),e&&(E==null||E.deactivate())}function ys(){var e=T,t=e.b,r=E,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 on(e){var t=X|R;return T!==null&&(T.f|=bt),{ctx:Q,deps:null,effects:null,equals:vs,f:t,fn:e,reactions:null,rv:0,v:G,wv:0,parent:T,ac:null}}const Kt=Symbol("obsolete");function Ua(e,t,r){let n=T;n===null&&wa();var i=void 0,s=gt(G),a=!w,o=new Set;return Ka(()=>{var v,c;var u=T,l=hs();i=l.promise;try{Promise.resolve(e()).then(l.resolve,m=>{m!==Er&&l.reject(m)}).finally(qr)}catch(m){l.reject(m),qr()}var f=E;if(a){if(u.f&_t)var d=ys();if((v=n.b)!=null&&v.is_rendered())(c=f.async_deriveds.get(u))==null||c.reject(Kt);else for(const m of o.values())m.reject(Kt);o.add(l),f.async_deriveds.set(u,l)}const p=(m,g=void 0)=>{d==null||d(),o.delete(l),g!==Kt&&(f.activate(),g?(s.f|=Je,Ft(s,g)):(s.f&Je&&(s.f^=Je),Ft(s,m)),f.deactivate())};l.promise.then(p,m=>p(null,m||"unknown"))}),bi(()=>{for(const u of o)u.reject(Kt)}),new Promise(u=>{function l(f){function d(){f===i?u(s):l(i)}f.then(d,d)}l(i)})}function In(e){const t=on(e);return Xs(t),t}function Fa(e){const t=on(e);return t.equals=gs,t}function Ga(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)J(t[r])}}function di(e){var t,r=T,n=e.parent;if(!Ve&&n!==null&&e.v!==G&&n.f&(V|Z))return Ea(),e.v;Ce(n);try{Ga(e),t=Zs(e)}finally{Ce(r)}return t}function xs(e){var t=di(e);if(!e.equals(t)&&(e.wv=Ws(),(!(E!=null&&E.is_fork)||e.deps===null)&&(E!==null?(E.capture(e,t,!0),Ke==null||Ke.capture(e,t,!0)):e.v=t,e.deps===null))){U(e,k);return}Ve||(j!==null?(an()||E!=null&&E.is_fork)&&j.set(e,t):ci(e))}function ka(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&&xr(()=>{r.ac.abort(Er),r.ac=null}),r.fn!==null&&(r.teardown=Pe),hr(r,0),yi(r))}function ws(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&Gt(t)}let _n=null,yt=null,E=null,Ke=null,j=null,Cn=null,sr=!1,bn=!1,or=null,Mr=null;var Ci=0;let ja=1;var Pt,It,Ct,$e,Mt,De,pr,Se,Ae,Lt,ft,H,Mn,Ts,Ln,er,Rn,Ss,As,Hs,Tt,Va,tr;const Jr=class Jr{constructor(){x(this,H);L(this,"id",ja++);L(this,"started",!1);L(this,"linked",!0);L(this,"prev",null);L(this,"next",null);L(this,"async_deriveds",new Map);L(this,"current",new Map);L(this,"previous",new Map);x(this,Pt,new Set);x(this,It,new Set);x(this,Ct,0);x(this,$e,new Map);x(this,Mt,null);x(this,De,[]);x(this,pr,[]);x(this,Se,new Map);x(this,Ae,new Map);x(this,Lt,new Set);L(this,"is_fork",!1);x(this,ft,!1);yt===null?_n=yt=this:(yt.next=this,this.prev=yt),yt=this}skip_effect(t){h(this,Ae).has(t)||h(this,Ae).set(t,{d:[],m:[]}),h(this,Lt).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=h(this,Ae).get(t);if(n){h(this,Ae).delete(t);for(var i of n.d)U(i,R),r(i);for(i of n.m)U(i,ae),r(i)}h(this,Lt).add(t)}capture(t,r,n=!1){t.v!==G&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&Je||(this.current.set(t,[r,n]),j==null||j.set(t,r)),this.is_fork||(t.v=r)}activate(){E=this}deactivate(){E=null,j=null}flush(){try{bn=!0,E=this,_(this,H,er).call(this)}finally{Ci=0,Cn=null,or=null,Mr=null,bn=!1,E=null,j=null,Ie.clear()}}discard(){var t;for(const r of h(this,It))r(this);h(this,It).clear();for(const r of this.async_deriveds.values())r.reject(Kt);_(this,H,tr).call(this),(t=h(this,Mt))==null||t.resolve()}register_created_effect(t){h(this,pr).push(t)}increment(t,r){var n;if(y(this,Ct,h(this,Ct)+1),t){let i=(n=h(this,$e).get(r))!=null?n:0;h(this,$e).set(r,i+1)}}decrement(t,r){var n;if(y(this,Ct,h(this,Ct)-1),t){let i=(n=h(this,$e).get(r))!=null?n:0;i===1?h(this,$e).delete(r):h(this,$e).set(r,i-1)}h(this,ft)||(y(this,ft,!0),Ze(()=>{y(this,ft,!1),this.linked&&this.flush()}))}transfer_reactions(t){for(const[r,n]of t)this.add_dirty_reaction(r,n);t.clear()}add_dirty_reaction(t,r){(r===R||h(this,Se).get(t)!==R)&&h(this,Se).set(t,r)}oncommit(t){h(this,Pt).add(t)}ondiscard(t){h(this,It).add(t)}settled(){var t;return((t=h(this,Mt))!=null?t:y(this,Mt,hs())).promise}static ensure(){if(E===null){const t=E=new Jr;!bn&&!sr&&Ze(()=>{t.started||t.flush()})}return E}apply(){{j=null;return}}schedule(t){var r;if(Cn=t,(r=t.b)!=null&&r.is_pending&&t.f&(Dt|br|cs)&&!(t.f&_t)){t.b.defer_effect(t);return}h(this,De).push(t)}};Pt=new WeakMap,It=new WeakMap,Ct=new WeakMap,$e=new WeakMap,Mt=new WeakMap,De=new WeakMap,pr=new WeakMap,Se=new WeakMap,Ae=new WeakMap,Lt=new WeakMap,ft=new WeakMap,H=new WeakSet,Mn=function(){if(this.is_fork)return!0;for(const t of h(this,$e).keys())if(!_(this,H,Ts).call(this,t))return!0;return!1},Ts=function(t){for(var r=t;r!==null;r=r.parent)if(h(this,Ae).has(r))return!0;return!1},Ln=function(){var t=[];for(const s of h(this,De))if(!(s.f&V||!(s.f&(R|ae)))){for(var r=s,n=!1;r.parent!==null;){r=r.parent;var i=r.f;if(i&(je|we)){if(!(i&k)){n=!0;break}r.f^=k}}n||t.push(r)}return y(this,De,[]),t},er=function(){var o,u,l,f;this.started=!0;for(const[d,p]of h(this,Se))U(d,p),this.schedule(d);this.apply();for(var t=or=[],r=[],n=Mr=[];h(this,De).length>0;){Ci++>1e3&&(_(this,H,tr).call(this),qa());for(const d of _(this,H,Ln).call(this))try{_(this,H,Rn).call(this,d,t,r)}catch(p){throw Bs(d),_(this,H,Mn).call(this)||this.discard(),p}}if(E=null,n.length>0){var i=Jr.ensure();for(const d of n)i.schedule(d)}if(or=null,Mr=null,_(this,H,Mn).call(this)){_(this,H,Tt).call(this,r),_(this,H,Tt).call(this,t);for(const[d,p]of h(this,Ae))Os(d,p);n.length>0&&_(o=E,H,er).call(o);return}const s=_(this,H,Ss).call(this);if(s){_(this,H,Tt).call(this,r),_(this,H,Tt).call(this,t),_(u=s,H,Hs).call(u,this);return}h(this,Se).clear();for(const d of h(this,Pt))d(this);h(this,Pt).clear(),Ke=this,Mi(r),Mi(t),Ke=null,(l=h(this,Mt))==null||l.resolve();var a=E;h(this,Ct)===0&&(h(this,De).length===0||a!==null)&&_(this,H,tr).call(this),a!==null&&(Ie.clear(),_(f=a,H,er).call(f))},Rn=function(t,r,n){t.f^=k;for(var i=t.first;i!==null;){var s=i.f,a=(s&(we|je))!==0,o=a&&(s&k)!==0,u=o||(s&Z)!==0||h(this,Ae).has(i);if(!u&&i.fn!==null){a?i.f^=k:s&Dt?r.push(i):wr(i)&&(s&Ee&&this.add_dirty_reaction(i,ae),Gt(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}}},Ss=function(){for(var t=this.prev;t!==null;t=t.prev)if(!t.is_fork&&_(this,H,As).call(this,t))return t;return null},As=function(t){for(const[r,[,n]]of this.current)if(!n&&t.current.has(r))return!0;return!1},Hs=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_reactions(h(t,Se));const r=i=>{var s=i.reactions;if(s!==null&&!(i.f&X&&!(i.f&(R|ae))))for(const u of s){var a=u.f;if(a&X)r(u);else{var o=u;a&(Ot|Ee)&&!this.async_deriveds.has(o)&&(h(this,Se).delete(o),U(o,R),this.schedule(o))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>t.discard()),_(n=t,H,tr).call(n),E=this,_(this,H,er).call(this)},Tt=function(t){for(var r=0;r<t.length;r+=1)Es(t[r],h(this,Se))},Va=function(){var d,p;for(let v=_n;v!==null;v=v.next){var t=v.id<this.id,r=[];for(const[c,[m,g]]of this.current){if(v.current.has(c)){var n=v.current.get(c)[0];if(t&&m!==n)v.current.set(c,[m,g]);else continue}r.push(c)}if(t)for(const[c,m]of this.async_deriveds){const g=v.async_deriveds.get(c);g&&m.promise.then(g.resolve).catch(g.reject)}var i=[...v.current.keys()].filter(c=>!v.current.get(c)[1]);if(!(!v.started||i.length===0)){var s=i.filter(c=>!this.current.has(c));if(s.length===0)t&&v.discard();else if(r.length>0){if(t)for(const c of h(this,Lt))v.unskip_effect(c,m=>{var g;m.f&(Ee|Ot)?v.schedule(m):_(g=v,H,Tt).call(g,[m])});v.activate();var a=new Set,o=new Map;for(var u of r)Ns(u,s,a,o);o=new Map;var l=[...v.current].filter(([c,m])=>{const g=this.current.get(c);return g?g[0]!==m[0]||g[1]!==m[1]:!0}).map(([c])=>c);if(l.length>0)for(const c of h(this,pr))!(c.f&(V|Z|kr))&&pi(c,l,o)&&(c.f&(Ot|Ee)?(U(c,R),v.schedule(c)):v.add_dirty_reaction(c,R));if(h(v,De).length>0&&!h(v,ft)){v.apply();for(var f of _(d=v,H,Ln).call(d))_(p=v,H,Rn).call(p,f,[],[])}v.deactivate()}}}},tr=function(){if(this.linked){var t=this.prev,r=this.next;t===null?_n=r:t.next=r,r===null?yt=t:r.prev=t,this.linked=!1}};let tt=Jr;function We(e){var t=sr,r=Ke;Ke=null,sr=!0;try{for(var n;;){if(La(),E===null)return n;E.flush()}}finally{sr=t,Ke=r}}function qa(){try{Na()}catch(e){Oe(e,Cn)}}let ge=null;function Mi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(V|Z))&&wr(n)&&(ge=new Set,Gt(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&js(n),(ge==null?void 0:ge.size)>0)){Ie.clear();for(const i of ge){if(i.f&(V|Z))continue;const s=[i];let a=i.parent;for(;a!==null;)ge.has(a)&&(ge.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];u.f&(V|Z)||Gt(u)}}ge.clear()}}ge=null}}function Ns(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&X?Ns(i,t,r,n):s&(Ot|Ee)&&!(s&R)&&pi(i,t,n)&&(U(i,R),vi(i))}}function pi(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(lr.call(t,i))return!0;if(i.f&X&&pi(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function vi(e){E.schedule(e)}function Os(e,t){if(!(e.f&we&&e.f&k)){e.f&R?t.d.push(e):e.f&ae&&t.m.push(e),U(e,k);for(var r=e.first;r!==null;)Os(r,t),r=r.next}}function Bs(e){U(e,k);for(var t=e.first;t!==null;)Bs(t),t=t.next}let Xr=new Set;const Ie=new Map;let Ps=!1;function gt(e,t){var r={f:0,v:e,reactions:null,equals:vs,rv:0,wv:0};return r}function Re(e,t){const r=gt(e);return Xs(r),r}function mi(e,t=!1,r=!0){const n=gt(e);return t||(n.equals=gs),n}function be(e,t,r=!1){w!==null&&(!ye||w.f&kr)&&_s()&&w.f&(X|Ee|Ot|kr)&&(pe===null||!pe.has(e))&&Ia();let n=r?At(t):t;return Ft(e,n,Mr)}var ot=null,$n=0;function Ft(e,t,r=null){if(!e.equals(t)){Ve?Ie.set(e,t):Ie.has(e)||Ie.set(e,e.v);var n=tt.ensure();if(n.capture(e,t),e.f&X){const i=e;e.f&R&&di(i),j===null&&ci(i)}e.wv=Ws(),ot=null,$n=0,Is(e,R,r),ot=null,T!==null&&T.f&k&&!(T.f&(we|je))&&(le===null?ru([e]):le.push(e)),!n.is_fork&&Xr.size>0&&!Ps&&Xa()}return t}function Xa(){Ps=!1;for(const e of Xr){e.f&k&&U(e,ae);let t;try{t=wr(e)}catch(r){t=!0}t&&Gt(e)}Xr.clear()}function ar(e){be(e,e.v+1)}function Is(e,t,r){var n=e.reactions;if(n!==null){var i=n.length;if($n+=i,$n>1e5&&ot===null&&(ot=new Set),ot!==null){if(ot.has(e))return;ot.add(e)}for(var s=0;s<i;s++){var a=n[s],o=a.f,u=(o&R)===0;if(u&&U(a,t),o&kr)Xr.add(a);else if(o&X){var l=a;j==null||j.delete(l),Is(l,ae,r)}else if(u){var f=a;o&Ee&&ge!==null&&ge.add(f),r!==null?r.push(f):vi(f)}}}}function At(e){if(typeof e!="object"||e===null||Ir in e||ps in e)return e;const t=ls(e);if(t!==da&&t!==pa)return e;var r=new Map,n=us(e),i=Re(0),s=vt,a=o=>{if(vt===s)return o();var u=w,l=vt;ve(null),$i(s);var f=o();return ve(u),$i(l),f};return n&&r.set("length",Re(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Ba();var f=r.get(u);return f===void 0?a(()=>{var d=Re(l.value);return r.set(u,d),d}):be(f,l.value,!0),!0},deleteProperty(o,u){var l=r.get(u);if(l===void 0){if(u in o){const f=a(()=>Re(G));r.set(u,f),ar(i)}}else be(l,G),ar(i);return!0},get(o,u,l){var v;if(u===Ir)return e;var f=r.get(u),d=u in o;if(f===void 0&&(!d||(v=Nt(o,u))!=null&&v.writable)&&(f=a(()=>{var c=At(d?o[u]:G),m=Re(c);return m}),r.set(u,f)),f!==void 0){var p=I(f);return p===G?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 d=I(f);if(d===G)return;if(l&&"value"in l)l.value=d;else return{enumerable:!0,configurable:!0,value:d,writable:!0}}return l},has(o,u){var p;if(u===Ir)return!0;var l=r.get(u),f=l!==void 0&&l.v!==G||Reflect.has(o,u);if(l!==void 0||(T!==null||w!==null)&&(!f||(p=Nt(o,u))!=null&&p.writable)){l===void 0&&(l=a(()=>{var v=f?At(o[u]):G,c=Re(v);return c}),r.set(u,l));var d=I(l);if(d===G)return!1}return f},set(o,u,l,f){var M;var d=r.get(u),p=u in o;if(n&&u==="length")for(var v=l;v<d.v;v+=1){var c=r.get(v+"");c!==void 0?be(c,G):v in o&&(c=a(()=>Re(G)),r.set(v+"",c))}if(d===void 0)(!p||(M=Nt(o,u))!=null&&M.writable)&&(d=a(()=>Re(void 0)),be(d,At(l)),r.set(u,d));else{p=d.v!==G;var m=a(()=>At(l));be(d,m)}var g=Reflect.getOwnPropertyDescriptor(o,u);if(g!=null&&g.set&&g.set.call(f,l),!p){if(n&&typeof u=="string"){var b=r.get("length"),O=Number(u);Number.isInteger(O)&&O>=b.v&&be(b,O+1)}ar(i)}return!0},ownKeys(o){I(i);var u=Reflect.ownKeys(o).filter(d=>{var p=r.get(d);return p===void 0||p.v!==G});for(var[l,f]of r)f.v!==G&&!(l in o)&&u.push(l);return u},setPrototypeOf(){Pa()}})}var Li,Cs,Ms,Ls;function Dn(){if(Li===void 0){Li=window,Cs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ms=Nt(t,"firstChild").get,Ls=Nt(t,"nextSibling").get,Ii(e)&&(e[Pn]=void 0,e[Cr]=null,e[_a]=void 0,e.__e=void 0),Ii(r)&&(r[Jt]=void 0)}}function de(e=""){return document.createTextNode(e)}function rt(e){return Ms.call(e)}function Me(e){return Ls.call(e)}function ur(e,t){if(!P)return rt(e);var r=rt(A);if(r===null)r=A.appendChild(de());else if(t&&r.nodeType!==rn){var n=de();return r==null||r.before(n),ee(n),n}return t&&_i(r),ee(r),r}function Rs(e,t=!1){if(!P){var r=rt(e);return r instanceof Comment&&r.data===""?Me(r):r}if(t){if((A==null?void 0:A.nodeType)!==rn){var n=de();return A==null||A.before(n),ee(n),n}_i(A)}return A}function Nr(e,t=!1){if(!P)return rt(e);var r=ur(e,t);return ir(e),r}function St(e,t=1,r=!1){let n=P?A:e;for(var i;t--;)i=n,n=Me(n);if(!P)return n;if(r){if((n==null?void 0:n.nodeType)!==rn){var s=de();return n===null?i==null||i.after(s):n.before(s),ee(s),s}_i(n)}return ee(n),n}function $s(e){e.textContent=""}function Ds(){return!1}function gi(e,t,r){return r?document.createElement(e,{is:r}):document.createElement(e)}function _i(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===rn;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function za(e){var t=T;if(t===null)return w.f|=Je,e;if(!(t.f&_t)&&!(t.f&Dt))throw e;Oe(e,t)}function Oe(e,t){if(e===et)throw e;if(!(t!==null&&t.f&V)){for(;t!==null;){if(t.f&Bn&&!(t.f&(V|fr))){if(!(t.f&_t))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}function Us(e){T===null&&(w===null&&Ha(),Aa()),Ve&&Sa()}function Wa(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Te(e,t){var a;var r=T;r!==null&&r.f&Z&&(e|=Z);var n={ctx:Q,deps:null,nodes:null,f:e|R|xe,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};E==null||E.register_created_effect(n);var i=n;if(e&Dt)or!==null?or.push(n):tt.ensure().schedule(n);else if(t!==null){try{Gt(n)}catch(o){throw J(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&bt)&&(i=i.first,e&Ee&&e&mt&&i!==null&&(i.f|=mt))}if(i!==null&&(i.parent=r,r!==null&&Wa(i,r),w!==null&&w.f&X&&!(e&je))){var s=w;((a=s.effects)!=null?a:s.effects=[]).push(i)}return n}function an(){return w!==null&&!ye}function bi(e){const t=Te(br,null);return U(t,k),t.teardown=e,t}function Ya(e){var i;Us();var t=T.f,r=!w&&(t&we)!==0&&Q!==null&&!Q.i;if(r){var n=Q;((i=n.e)!=null?i:n.e=[]).push(e)}else return Fs(e)}function Fs(e){return Te(Dt|ds,e)}function Za(e){return Us(),Te(br|ds,e)}function Qa(e){tt.ensure();const t=Te(je|bt,e);return()=>{J(t)}}function Ja(e){tt.ensure();const t=Te(je|bt,e);return(r={})=>new Promise(n=>{r.outro?pt(t,()=>{J(t),n(void 0)}):(J(t),n(void 0))})}function Gs(e){return Te(Dt,e)}function Ka(e){return Te(Ot|bt,e)}function Ei(e,t=0){return Te(br|t,e)}function Lr(e,t=[],r=[],n=[]){$a(n,t,r,i=>{Te(br,()=>{e(...i.map(I))})})}function un(e,t=0){var r=Te(Ee|t,e);return r}function ce(e){return Te(we|bt,e)}function ks(e){var t=e.teardown;if(t!==null){const r=Ve,n=w;Ri(!0),ve(null);try{t.call(null)}catch(i){Oe(i,e.parent)}finally{Ri(r),ve(n)}}}function yi(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&xr(()=>{i.abort(Er)});var n=r.next;r.f&je?r.parent=null:J(r,t),r=n}}function eu(e){for(var t=e.first;t!==null;){var r=t.next;t.f&we||J(t),t=r}}function J(e,t=!0){var r=!1;(t||e.f&va)&&e.nodes!==null&&e.nodes.end!==null&&(tu(e.nodes.start,e.nodes.end),r=!0),e.f|=fr,yi(e,t&&!r),hr(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();ks(e),e.f^=fr,e.f|=V;var i=e.parent;i!==null&&i.first!==null&&js(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function tu(e,t){for(;e!==null;){var r=e===t?null:Me(e);e.remove(),e=r}}function js(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 pt(e,t,r=!0){var n=[];e.f|=ai,Vs(e,n,!0);var i=()=>{r&&J(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function Vs(e,t,r){if(!(e.f&Z)){e.f^=Z;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&je)){var a=(i.f&mt)!==0||(i.f&we)!==0&&(e.f&Ee)!==0;Vs(i,t,a?r:!1)}i=s}}}function zr(e){e.f&=~ai,qs(e,!0)}function qs(e,t){if(!(e.f&ai)&&e.f&Z){e.f^=Z,e.f&k||(U(e,R),tt.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&mt)!==0||(r.f&we)!==0;qs(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 xi(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Me(r);t.append(r),r=i}}let Ve=!1;function Ri(e){Ve=e}let w=null,ye=!1;function ve(e){w=e}let T=null;function Ce(e){T=e}let pe=null;function Xs(e){w!==null&&(w.f&jr||w.f&X)&&(pe!=null?pe:pe=new Set).add(e)}let K=null,oe=0,le=null;function ru(e){le=e}let zs=1,ut=0,vt=ut;function $i(e){vt=e}function Ws(){return++zs}function wr(e){var t=e.f;if(t&R)return!0;if(t&ae){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(wr(s)&&xs(s),s.wv>e.wv)return!0}t&xe&&j===null&&U(e,k)}return!1}function Ys(e,t,r=!0){var n=e.reactions;if(n!==null&&!(pe!==null&&pe.has(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&X?Ys(s,t,!1):t===s&&(r?U(s,R):s.f&k&&U(s,ae),vi(s))}}function Zs(e){var t=K,r=oe,n=le,i=w,s=pe,a=Q,o=ye,u=vt,l=e.f;K=null,oe=0,le=null,w=l&(we|je)?null:e,pe=null,Ut(e.ctx),ye=!1,vt=++ut,e.ac!==null&&(xr(()=>{e.ac.abort(Er)}),e.ac=null);try{e.f|=jr;var f=e.fn,d=f();e.f|=_t;var p=Di(e);if(_s()&&le!==null&&!ye&&p!==null&&!(e.f&(X|ae|R)))for(var v=0;v<le.length;v++)Ys(le[v],e);if(i!==null&&i!==e){if(ut++,i.deps!==null)for(let c=0;c<r;c+=1)i.deps[c].rv=ut;if(t!==null)for(const c of t)c.rv=ut;le!==null&&(n===null?n=le:n.push(...le))}return e.f&Je&&(e.f^=Je),d}catch(c){return Di(e),za(c)}finally{e.f^=jr,K=t,oe=r,le=n,w=i,pe=s,Ut(a),ye=o,vt=u}}function Di(e){var i,s;var t=e.deps,r=E==null?void 0:E.is_fork;if(K!==null){var n;if(r||hr(e,oe),t!==null&&oe>0)for(t.length=oe+K.length,n=0;n<K.length;n++)t[oe+n]=K[n];else e.deps=t=K;if(an()&&e.f&xe)for(n=oe;n<t.length;n++)((s=(i=t[n]).reactions)!=null?s:i.reactions=[]).push(e)}else!r&&t!==null&&oe<t.length&&(hr(e,oe),t.length=oe);return t}function nu(e,t){let r=t.reactions;if(r!==null){var n=ha.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&X&&(K===null||!lr.call(K,t))){var s=t;s.f&xe&&(s.f^=xe),s.v!==G&&ci(s),s.ac!==null&&xr(()=>{s.ac.abort(Er),s.ac=null,U(s,R)}),ka(s),hr(s,0)}}function hr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)nu(e,r[n])}function Gt(e){var t=e.f;if(!(t&V)){U(e,k);var r=T;T=e;try{t&(Ee|cs)?eu(e):yi(e),ks(e);var n=Zs(e);e.teardown=typeof n=="function"?n:null,e.wv=zs;var i;as&&Ma&&e.f&R&&e.deps}finally{T=r}}}function I(e){var f;var t=e.f,r=(t&X)!==0;if(w!==null&&!ye){var n=T!==null&&(T.f&V)!==0;if(!n&&(pe===null||!pe.has(e))){var i=w.deps;if(w.f&jr)e.rv<ut&&(e.rv=ut,K===null&&i!==null&&i[oe]===e?oe++:K===null?K=[e]:K.push(e));else{(f=w.deps)!=null||(w.deps=[]),lr.call(w.deps,e)||w.deps.push(e);var s=e.reactions;s===null?e.reactions=[w]:lr.call(s,w)||s.push(w)}}}if(Ve&&Ie.has(e))return Ie.get(e);if(r){var a=e;if(Ve){var o=a.v;return(!(a.f&k)&&a.reactions!==null||Js(a))&&(o=di(a)),Ie.set(a,o),o}var u=(a.f&xe)===0&&!ye&&w!==null&&(w.f&xe)!==0,l=(a.f&_t)===0;wr(a)&&(u&&(a.f|=xe),xs(a)),u&&!l&&(ws(a),Qs(a))}if(j!=null&&j.has(e))return j.get(e);if(e.f&Je)throw e.v;return e.v}function Qs(e){if(e.f|=xe,e.deps!==null)for(const r of e.deps){var t=r.reactions;t===null?r.reactions=[e]:lr.call(t,e)||t.push(e),r.f&X&&!(r.f&xe)&&(ws(r),Qs(r))}}function Js(e){if(e.v===G)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ie.has(t)||t.f&X&&Js(t))return!0;return!1}function wi(e){var t=ye;try{return ye=!0,e()}finally{ye=t}}const lt=Symbol("events"),Ks=new Set,Un=new Set;function iu(e){if(!P)return;e.removeAttribute("onload"),e.removeAttribute("onerror");const t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function su(e,t,r,n={}){function i(s){if(n.capture||Fn.call(t,s),!s.cancelBubble)return xr(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?(i.__removed=!1,Ze(()=>{i.__removed||t.addEventListener(e,i,n)})):t.addEventListener(e,i,n),i}function ou(e,t,r,n,i){var s={capture:n,passive:i},a=su(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&bi(()=>{a.__removed=!0,t.removeEventListener(e,a,s)})}function au(e,t,r){var n;((n=t[lt])!=null?n:t[lt]={})[e]=r}function uu(e){for(var t=0;t<e.length;t++)Ks.add(e[t]);for(var r of Un)r(e)}let En=null,yn=!1;function Fn(e){var m,g;var t=this,r=t.ownerDocument,n=e.type,i=((m=e.composedPath)==null?void 0:m.call(e))||[],s=i[0]||e.target;En=e,yn||(yn=!0,setTimeout(()=>{yn=!1,En=null}));var a=0,o=En===e&&e[lt];if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e[lt]=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(s=i[a]||e.target,s!==t){$t(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=w,d=T;ve(null),Ce(null);try{for(var p,v=[];s!==null&&s!==t;){try{var c=(g=s[lt])==null?void 0:g[n];c!=null&&(!s.disabled||e.target===s)&&c.call(s,e)}catch(b){p?v.push(b):p=b}if(e.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(p){for(let b of v)queueMicrotask(()=>{throw b});throw p}}finally{e[lt]=t,delete e.currentTarget,ve(f),Ce(d)}}}var ss;const xn=((ss=globalThis==null?void 0:globalThis.window)==null?void 0:ss.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function lu(e){var t;return(t=xn==null?void 0:xn.createHTML(e))!=null?t:e}function fu(e){var t=gi("template");return t.innerHTML=lu(e.replaceAll("<!>","<!---->")),t.content}function Bt(e,t){var r=T;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Tr(e,t){var r=(t&ua)!==0,n=(t&la)!==0,i,s=!e.startsWith("<!>");return()=>{if(P)return Bt(A,null),A;i===void 0&&(i=fu(s?e:"<!>"+e),r||(i=rt(i)));var a=n||Cs?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=rt(a),u=a.lastChild;Bt(o,u)}else Bt(a,a);return a}}function hu(){if(P)return Bt(A,null),A;var e=document.createDocumentFragment(),t=document.createComment(""),r=de();return e.append(t,r),Bt(t,r),e}function Ht(e,t){if(P){var r=T;(!(r.f&_t)||r.nodes.end===null)&&(r.nodes.end=A),sn();return}e!==null&&e.before(t)}const cu=["touchstart","touchmove"];function du(e){return cu.includes(e)}function eo(e){let t=0,r=gt(0),n;return()=>{an()&&(I(r),Ei(()=>(t===0&&(n=wi(()=>e(()=>ar(r)))),t+=1,()=>{Ze(()=>{t-=1,t===0&&(n==null||n(),n=void 0,ar(r))})})))}}var pu=mt|bt;function vu(e,t,r,n){new mu(e,t,r,n)}var re,vr,fe,ht,q,ne,W,ie,He,ct,Ye,Rt,mr,Ue,Kr,S,to,ro,Gn,ze,no,kn,rr,Rr,jn,Vn;class mu{constructor(t,r,n,i){x(this,S);L(this,"parent");L(this,"is_pending",!1);L(this,"transform_error");x(this,re);x(this,vr,P?A:null);x(this,fe);x(this,ht);x(this,q);x(this,ne,null);x(this,W,null);x(this,ie,null);x(this,He,null);x(this,ct,0);x(this,Ye,0);x(this,Rt,!1);x(this,mr,new Map);x(this,Ue,null);x(this,Kr,eo(()=>(y(this,Ue,gt(h(this,ct))),()=>{y(this,Ue,null)})));var s,a;y(this,re,t),y(this,fe,r),y(this,ht,o=>{var u=T;u.b=this,u.f|=Bn,n(o)}),this.parent=T.b,this.transform_error=(a=i!=null?i:(s=this.parent)==null?void 0:s.transform_error)!=null?a:o=>o,y(this,q,un(()=>{if(P){const o=ui(h(this,vr));sn();const u=o===si;if(o.startsWith(Pi)){const f=JSON.parse(o.slice(Pi.length));_(this,S,ro).call(this,f)}else u?_(this,S,no).call(this):_(this,S,to).call(this)}else _(this,S,kn).call(this)},pu)),P&&y(this,re,A)}defer_effect(t){Es(t,h(this,mr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!h(this,fe).pending}update_pending_count(t,r){_(this,S,jn).call(this,t,r),y(this,ct,h(this,ct)+t),!(!h(this,Ue)||h(this,Rt))&&(y(this,Rt,!0),Ze(()=>{y(this,Rt,!1),h(this,Ue)&&Ft(h(this,Ue),h(this,ct))}))}get_effect_pending(){return h(this,Kr).call(this),I(h(this,Ue))}error(t){if(t===et||!h(this,fe).onerror&&!h(this,fe).failed)throw t;E!=null&&E.is_fork?(h(this,ne)&&E.skip_effect(h(this,ne)),h(this,W)&&E.skip_effect(h(this,W)),h(this,ie)&&E.skip_effect(h(this,ie)),E.oncommit(()=>{_(this,S,ze).call(this)||_(this,S,Vn).call(this,t)})):_(this,S,Vn).call(this,t)}}re=new WeakMap,vr=new WeakMap,fe=new WeakMap,ht=new WeakMap,q=new WeakMap,ne=new WeakMap,W=new WeakMap,ie=new WeakMap,He=new WeakMap,ct=new WeakMap,Ye=new WeakMap,Rt=new WeakMap,mr=new WeakMap,Ue=new WeakMap,Kr=new WeakMap,S=new WeakSet,to=function(){try{y(this,ne,ce(()=>h(this,ht).call(this,h(this,re))))}catch(t){this.error(t)}},ro=function(t){const r=h(this,fe).failed,{reset:n,invoke_onerror:i}=_(this,S,Gn).call(this,t);Ze(i),r&&y(this,ie,ce(()=>{r(h(this,re),()=>t,()=>n)}))},Gn=function(t){var r=!1,n=!1;const i=()=>{if(!_(this,S,ze).call(this)){if(r){ya();return}r=!0,n&&Ca(),h(this,ie)!==null&&pt(h(this,ie),()=>{y(this,ie,null)}),_(this,S,Rr).call(this,()=>{_(this,S,kn).call(this)})}};return{reset:i,invoke_onerror:()=>{var a,o;if(!_(this,S,ze).call(this))try{n=!0,(o=(a=h(this,fe)).onerror)==null||o.call(a,t,i),n=!1}catch(u){Oe(u,h(this,q)&&h(this,q).parent)}}}},ze=function(){return(h(this,q).f&(V|fr))!==0},no=function(){const t=h(this,fe).pending;t&&(this.is_pending=!0,y(this,W,ce(()=>t(h(this,re)))),Ze(()=>{if(!_(this,S,ze).call(this)){var r=y(this,He,document.createDocumentFragment()),n=de(),i=!1;if(r.append(n),y(this,ne,_(this,S,Rr).call(this,()=>{try{return ce(()=>h(this,ht).call(this,n))}catch(s){try{this.error(s),i=!0}catch(a){Oe(a,h(this,q).parent)}return null}})),h(this,ne)===null){y(this,He,null),i&&_(this,S,rr).call(this,E);return}h(this,Ye)===0&&(h(this,re).before(r),y(this,He,null),pt(h(this,W),()=>{y(this,W,null)}),_(this,S,rr).call(this,E))}}))},kn=function(){try{if(this.is_pending=this.has_pending_snippet(),y(this,Ye,0),y(this,ct,0),y(this,ne,ce(()=>{h(this,ht).call(this,h(this,re))})),h(this,Ye)>0){var t=y(this,He,document.createDocumentFragment());xi(h(this,ne),t);const r=h(this,fe).pending;y(this,W,ce(()=>r(h(this,re))))}else _(this,S,rr).call(this,E)}catch(r){this.error(r)}},rr=function(t){this.is_pending=!1,t.transfer_reactions(h(this,mr))},Rr=function(t){var r=T,n=w,i=Q;Ce(h(this,q)),ve(h(this,q)),Ut(h(this,q).ctx);try{return tt.ensure(),t()}finally{Ce(r),ve(n),Ut(i)}},jn=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&_(n=this.parent,S,jn).call(n,t,r);return}y(this,Ye,h(this,Ye)+t),h(this,Ye)===0&&(_(this,S,rr).call(this,r),h(this,W)&&pt(h(this,W),()=>{y(this,W,null)}),h(this,He)&&(h(this,re).before(h(this,He)),y(this,He,null)))},Vn=function(t){h(this,ne)&&(J(h(this,ne)),y(this,ne,null)),h(this,W)&&(J(h(this,W)),y(this,W,null)),h(this,ie)&&(J(h(this,ie)),y(this,ie,null)),P&&(ee(h(this,vr)),xa(),ee(Vr()));let r=h(this,fe).failed;const n=i=>{if(_(this,S,ze).call(this))return;const{reset:s,invoke_onerror:a}=_(this,S,Gn).call(this,i);a(),r&&!_(this,S,ze).call(this)&&y(this,ie,_(this,S,Rr).call(this,()=>{try{return ce(()=>{var o=T;o.b=this,o.f|=Bn,r(h(this,re),()=>i,()=>s)})}catch(o){return Oe(o,h(this,q).parent),null}}))};Ze(()=>{if(!_(this,S,ze).call(this)){var i;try{i=this.transform_error(t)}catch(s){Oe(s,h(this,q)&&h(this,q).parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(n,s=>Oe(s,h(this,q)&&h(this,q).parent)):n(i)}})};function Or(e,t){var n;var r=t==null?"":typeof t=="object"?`${t}`:t;r!==((n=e[Jt])!=null?n:e[Jt]=e.nodeValue)&&(e[Jt]=r,e.nodeValue=`${r}`)}function io(e,t){return so(e,t)}function gu(e,t){var a;Dn(),t.intro=(a=t.intro)!=null?a:!1;const r=t.target,n=P,i=A;try{for(var s=rt(r);s&&(s.nodeType!==yr||s.data!==os);)s=Me(s);if(!s)throw et;ke(!0),ee(s);const o=so(e,Hr(Ar({},t),{anchor:s}));return ke(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(u=>u.startsWith("https://svelte.dev/e/")))throw o;return o!==et&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Oa(),Dn(),$s(r),ke(!1),io(e,t)}finally{ke(n),ee(i)}}const Br=new Map;function so(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0,transformError:o}){Dn();var u=void 0,l=Ja(()=>{var f=r!=null?r:t.appendChild(de());vu(f,{pending:()=>{}},v=>{li({});var c=Q;if(s&&(c.c=s),i&&(n.$$events=i),P&&Bt(v,null),u=e(v,n)||hi(),P&&(T.nodes.end=A,A===null||A.nodeType!==yr||A.data!==oi))throw nn(),et;fi()},o);var d=new Set,p=v=>{for(var c=0;c<v.length;c++){var m=v[c];if(!d.has(m)){d.add(m);var g=du(m);for(const M of[t,document]){var b=Br.get(M);b===void 0&&(b=new Map,Br.set(M,b));var O=b.get(m);O===void 0?(M.addEventListener(m,Fn,{passive:g}),b.set(m,1)):b.set(m,O+1)}}}};return p(tn(Ks)),Un.add(p),()=>{var g;for(var v of d)for(const b of[t,document]){var c=Br.get(b),m=c.get(v);--m==0?(b.removeEventListener(v,Fn),c.delete(v),c.size===0&&Br.delete(b)):c.set(v,m)}Un.delete(p),f!==r&&((g=f.parentNode)==null||g.removeChild(f))}});return qn.set(u,l),u}let qn=new WeakMap;function _u(e,t){const r=qn.get(e);return r?(qn.delete(e),r(t)):Promise.resolve()}var _e,Ne,se,dt,gr,_r,en;class oo{constructor(t,r=!0){L(this,"anchor");x(this,_e,new Map);x(this,Ne,new Map);x(this,se,new Map);x(this,dt,new Set);x(this,gr,!0);x(this,_r,t=>{if(h(this,_e).has(t)){var r=h(this,_e).get(t),n=h(this,Ne).get(r);if(n)zr(n),h(this,dt).delete(r);else{var i=h(this,se).get(r);i&&(zr(i.effect),h(this,Ne).set(r,i.effect),h(this,se).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of h(this,_e)){if(h(this,_e).delete(s),s===t)break;const o=h(this,se).get(a);o&&(J(o.effect),h(this,se).delete(a))}for(const[s,a]of h(this,Ne)){if(s===r||h(this,dt).has(s))continue;const o=()=>{if(Array.from(h(this,_e).values()).includes(s)){var l=document.createDocumentFragment();xi(a,l),l.append(de()),h(this,se).set(s,{effect:a,fragment:l})}else J(a);h(this,dt).delete(s),h(this,Ne).delete(s)};h(this,gr)||!n?(h(this,dt).add(s),pt(a,o,!1)):o()}}});x(this,en,t=>{h(this,_e).delete(t);const r=Array.from(h(this,_e).values());for(const[n,i]of h(this,se))r.includes(n)||(J(i.effect),h(this,se).delete(n))});this.anchor=t,y(this,gr,r)}ensure(t,r){var n=E,i=Ds();if(r&&!h(this,Ne).has(t)&&!h(this,se).has(t))if(i){var s=document.createDocumentFragment(),a=de();s.append(a),h(this,se).set(t,{effect:ce(()=>r(a)),fragment:s})}else h(this,Ne).set(t,ce(()=>r(this.anchor)));if(h(this,_e).set(n,t),i){for(const[o,u]of h(this,Ne))o===t?n.unskip_effect(u):n.skip_effect(u);for(const[o,u]of h(this,se))o===t?n.unskip_effect(u.effect):n.skip_effect(u.effect);n.oncommit(h(this,_r)),n.ondiscard(h(this,en))}else P&&(this.anchor=A),h(this,_r).call(this,n)}}_e=new WeakMap,Ne=new WeakMap,se=new WeakMap,dt=new WeakMap,gr=new WeakMap,_r=new WeakMap,en=new WeakMap;function bu(e,t,...r){var n=new oo(e);un(()=>{var s;const i=(s=t())!=null?s:null;n.ensure(i,i&&(a=>i(a,...r)))},mt)}function $r(e,t,r=!1){var n;P&&(n=A,sn());var i=new oo(e),s=r?mt:0;function a(o,u){if(P){var l=ui(n);if(o!==parseInt(l.substring(1))){var f=Vr();ee(f),i.anchor=f,ke(!1),i.ensure(o,u),ke(!0);return}}i.ensure(o,u)}un(()=>{var o=!1;t((u,l=0)=>{o=!0,a(l,u)}),o||a(-1,null)},s)}function Eu(e,t,r){var d;for(var n=[],i=t.length,s,a=t.length,o=0;o<i;o++){let p=t[o];pt(p,()=>{if(s){if(s.pending.delete(p),s.done.add(p),s.pending.size===0){var v=e.outrogroups;Xn(e,tn(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;$s(f),f.append(l),e.items.clear()}Xn(e,t,!u)}else s={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(s)}function Xn(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|=Ge;const a=document.createDocumentFragment();xi(s,a)}else J(t[i],r)}}var xt;function yu(e,t,r,n,i,s=null){var a=e,o=new Map;{var u=e;a=P?ee(rt(u)):u.appendChild(de())}P&&sn();var l=null,f=Fa(()=>{var b=r();return us(b)?b:b==null?[]:tn(b)}),d=new Map,p=!0;function v(b){if(!(g.effect.f&V)){g.pending.delete(b);var O=I(f);g.fallback=l,xu(g,O,a,t,n),l!==null&&(O.length===0?l.f&Ge?(l.f^=Ge,nr(l,null,a)):zr(l):pt(l,()=>{l=null}))}}function c(b){g.pending.delete(b)}var m=un(()=>{var b=I(f),O=b.length;let M=!1;if(P){var te=ui(a)===si;te!==(O===0)&&(a=Vr(),ee(a),ke(!1),M=!0)}for(var F=new Set,z=E,Le=Ds(),me=0;me<O;me+=1){P&&A.nodeType===yr&&A.data===oi&&(a=A,M=!0,ke(!1));var C=b[me],qe=n(C,me),ue=p?null:o.get(qe);ue?(ue.v&&Ft(ue.v,C),ue.i&&Ft(ue.i,me),Le&&z.unskip_effect(ue.e)):(ue=wu(o,p?a:xt!=null?xt:xt=de(),C,qe,me,i,t,r),p||(ue.e.f|=Ge),o.set(qe,ue)),F.add(qe)}if(O===0&&s&&!l&&(p?l=ce(()=>s(a)):(l=ce(()=>s(xt!=null?xt:xt=de())),l.f|=Ge)),O>F.size&&Ta(),P&&O>0&&ee(Vr()),!p)if(d.set(z,F),Le){for(const[pn,vn]of o)F.has(pn)||z.skip_effect(vn.e);z.oncommit(v),z.ondiscard(c)}else v(z);M&&ke(!0),I(f)}),g={effect:m,items:o,pending:d,outrogroups:null,fallback:l};p=!1,P&&(a=A)}function Zt(e){for(;e!==null&&!(e.f&we);)e=e.next;return e}function xu(e,t,r,n,i){var me;var s=t.length,a=e.items,o=Zt(e.effect.first),u,l=null,f=[],d=[],p,v,c,m;for(m=0;m<s;m+=1){if(p=t[m],v=i(p,m),c=a.get(v).e,e.outrogroups!==null)for(const C of e.outrogroups)C.pending.delete(c),C.done.delete(c);if(c.f&Z&&zr(c),c.f&Ge)if(c.f^=Ge,c===o)nr(c,null,r);else{var g=l?l.next:o;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),Xe(e,l,c),Xe(e,c,g),nr(c,g,r),l=c,f=[],d=[],o=Zt(l.next);continue}if(c!==o){if(u!==void 0&&u.has(c)){if(f.length<d.length){var b=d[0],O;l=b.prev;var M=f[0],te=f[f.length-1];for(O=0;O<f.length;O+=1)nr(f[O],b,r);for(O=0;O<d.length;O+=1)u.delete(d[O]);Xe(e,M.prev,te.next),Xe(e,l,M),Xe(e,te,b),o=b,l=te,m-=1,f=[],d=[]}else u.delete(c),nr(c,o,r),Xe(e,c.prev,c.next),Xe(e,c,l===null?e.effect.first:l.next),Xe(e,l,c),l=c;continue}for(f=[],d=[];o!==null&&o!==c;)(u!=null?u:u=new Set).add(o),d.push(o),o=Zt(o.next);if(o===null)continue}c.f&Ge||f.push(c),l=c,o=Zt(c.next)}if(e.outrogroups!==null){for(const C of e.outrogroups)C.pending.size===0&&(Xn(e,tn(C.done)),(me=e.outrogroups)==null||me.delete(C));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||u!==void 0){var F=[];if(u!==void 0)for(c of u)c.f&Z||F.push(c);for(;o!==null;)!(o.f&Z)&&o!==e.fallback&&F.push(o),o=Zt(o.next);var z=F.length;if(z>0){var Le=s===0?r:null;Eu(e,F,Le)}}}function wu(e,t,r,n,i,s,a,o){var u=a&sa?a&aa?gt(r):mi(r,!1,!1):null,l=a&oa?gt(i):null;return{v:u,i:l,e:ce(()=>(s(t,u!=null?u:r,l!=null?l:i,o),()=>{e.delete(n)}))}}function nr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Ge)?t.nodes.start:r;n!==null;){var a=Me(n);if(s.before(n),n===i)return;n=a}}function Xe(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function ao(e,t){Gs(()=>{var i,s,a,o;e=(a=(s=(i=T==null?void 0:T.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=gi("style");u.id=t.hash,u.textContent=t.code,n.appendChild(u)}})}const Ui=[...`
3
+ \r\f \v\uFEFF`];function Tu(e,t,r){var n=e==null?"":""+e;if(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||Ui.includes(n[a-1]))&&(o===n.length||Ui.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}function zn(e,t,r,n,i,s){var a=e[Pn];if(P||a!==r||a===void 0){var o=Tu(r,n,s);(!P||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e[Pn]=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}const Su=Symbol("is custom element"),Au=Symbol("is html"),Hu=ba?"link":"LINK";function Wn(e,t,r,n){var i=Nu(e);if(!(P&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Hu))){var s=i[t];s!==(i[t]=r)&&(t==="loading"&&(e[ga]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ou(e).has(t)?e[t]=r:P&&(typeof r=="number"||typeof r=="boolean")&&s===String(r)||e.setAttribute(t,r))}}function Nu(e){var t;return(t=e[Cr])!=null?t:e[Cr]={[Su]:e.nodeName.includes("-"),[Au]:e.namespaceURI===fa}}var Fi=new Map;function Ou(e){var t=e.getAttribute("is")||e.nodeName,r=Fi.get(t);if(r)return r;Fi.set(t,r=new Set);for(var n,i=e,s=Element.prototype;s!==i;){n=ca(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.add(a);i=ls(i)}return r}function wn(e,t){return e===t||(e==null?void 0:e[Ir])===t}function Bu(e=hi(),t,r,n){var i=Q.r,s=T;return Gs(()=>{var a,o;return Ei(()=>{a=o,o=[],wi(()=>{wn(r(...o),e)||(t(e,...o),a&&wn(r(...a),e)&&t(null,...a))})}),()=>{let u=s;for(;u!==i&&u.parent!==null&&u.parent.f&fr;)u=u.parent;const l=()=>{o&&wn(r(...o),e)&&t(null,...o)},f=u.teardown;u.teardown=()=>{l(),f==null||f()}}}),e}function Ti(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Pe;const n=wi(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const wt=[];function uo(e,t){return{subscribe:ln(e,t).subscribe}}function ln(e,t=Pe){let r=null;const n=new Set;function i(o){if(ms(e,o)&&(e=o,r)){const u=!wt.length;for(const l of n)l[1](),wt.push(l,e);if(u){for(let l=0;l<wt.length;l+=2)wt[l][0](wt[l+1]);wt.length=0}}}function s(o){i(o(e))}function a(o,u=Pe){const l=[o,u];return n.add(l),n.size===1&&(r=t(i,s)||Pe),o(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function Xt(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 uo(r,(a,o)=>{let u=!1;const l=[];let f=0,d=Pe;const p=()=>{if(f)return;d();const c=t(n?l[0]:l,a,o);s?a(c):d=typeof c=="function"?c:Pe},v=i.map((c,m)=>Ti(c,g=>{l[m]=g,f&=~(1<<m),u&&p()},()=>{f|=1<<m}));return u=!0,p(),function(){fs(v),d(),u=!1}})}function lo(e){let t;return Ti(e,r=>t=r)(),t}let Yn=Symbol("unmounted");function fo(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:mi(void 0),unsubscribe:Pe};if(n.store!==e&&!(Yn in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=Pe;else{var i=!0;n.unsubscribe=Ti(e,a=>{i?n.source.v=a:be(n.source,a)}),i=!1}return e&&Yn in r?lo(e):I(n.source)}function ho(){const e={};function t(){bi(()=>{for(var r in e)e[r].unsubscribe();$t(e,Yn,{enumerable:!1,value:!0})})}return[e,t]}function st(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=on(()=>(l=!1,u())),d=T;return function(p,v){if(arguments.length>0){const c=v?I(f):p;return be(f,c),l=!0,i!==void 0&&(i=c),p}return Ve&&l||d.f&V?f.v:I(f)}}function Pu(e){return new Iu(e)}var Fe,he;class Iu{constructor(t){x(this,Fe);x(this,he);var s,a;var r=new Map,n=(o,u)=>{var l=mi(u,!1,!1);return r.set(o,l),l};const i=new Proxy(Hr(Ar({},t.props||{}),{$$events:{}}),{get(o,u){var l;return I((l=r.get(u))!=null?l:n(u,Reflect.get(o,u)))},has(o,u){var l;return u===ma?!0:(I((l=r.get(u))!=null?l:n(u,Reflect.get(o,u))),Reflect.has(o,u))},set(o,u,l){var f;return be((f=r.get(u))!=null?f:n(u,l),l),Reflect.set(o,u,l)}});y(this,he,(t.hydrate?gu:io)(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)&&We(),y(this,Fe,i.$$events);for(const o of Object.keys(h(this,he)))o==="$set"||o==="$destroy"||o==="$on"||$t(this,o,{get(){return h(this,he)[o]},set(u){h(this,he)[o]=u},enumerable:!0});h(this,he).$set=o=>{Object.assign(i,o)},h(this,he).$destroy=()=>{_u(h(this,he))}}$set(t){h(this,he).$set(t)}$on(t,r){h(this,Fe)[t]=h(this,Fe)[t]||[];const n=(...i)=>r.call(this,...i);return h(this,Fe)[t].push(n),()=>{h(this,Fe)[t]=h(this,Fe)[t].filter(i=>i!==n)}}$destroy(){h(this,he).$destroy()}}Fe=new WeakMap,he=new WeakMap;let co;typeof HTMLElement=="function"&&(co=class extends HTMLElement{constructor(t,r,n){super();L(this,"$$ctor");L(this,"$$s");L(this,"$$c");L(this,"$$cn",!1);L(this,"$$d",{});L(this,"$$r",!1);L(this,"$$p_d",{});L(this,"$$l",{});L(this,"$$l_u",new Map);L(this,"$$me");L(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 Bi(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return a=>{const o=gi("slot");s!=="default"&&(o.name=s),Ht(a,o)}};var t=r;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Cu(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]=Dr(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=Pu({component:this.$$ctor,target:this.$$shadowRoot||this,props:Hr(Ar({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=Qa(()=>{Ei(()=>{var s;this.$$r=!0;for(const a of Gr(this.$$c)){if(!((s=this.$$p_d[a])!=null&&s.reflect))continue;this.$$d[a]=this.$$c[a];const o=Dr(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]=Dr(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 Gr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Dr(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 Cu(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function po(e,t,r,n,i,s){let a=class extends co{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Gr(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Gr(t).forEach(o=>{$t(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var d;u=Dr(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var f=(d=Nt(l,o))==null?void 0:d.get;f?l[o]=u:l.$set({[o]:u})}}})}),n.forEach(o=>{$t(a.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=a,a}var Mu=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mo(e){let t;const r=eo(i=>{let s=!1;const a=e.subscribe(o=>{t=o,s&&i()});return s=!0,a});function n(){return an()?(r(),t):lo(e)}return"set"in e?{get current(){return n()},set current(i){e.set(i)}}:{get current(){return n()}}}var Lu=function(t){return Ru(t)&&!$u(t)};function Ru(e){return!!e&&typeof e=="object"}function $u(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Fu(e)}var Du=typeof Symbol=="function"&&Symbol.for,Uu=Du?Symbol.for("react.element"):60103;function Fu(e){return e.$$typeof===Uu}function Gu(e){return Array.isArray(e)?[]:{}}function cr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?kt(Gu(e),e,t):e}function ku(e,t,r){return e.concat(t).map(function(n){return cr(n,r)})}function ju(e,t){if(!t.customMerge)return kt;var r=t.customMerge(e);return typeof r=="function"?r:kt}function Vu(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Gi(e){return Object.keys(e).concat(Vu(e))}function go(e,t){try{return t in e}catch(r){return!1}}function qu(e,t){return go(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Xu(e,t,r){var n={};return r.isMergeableObject(e)&&Gi(e).forEach(function(i){n[i]=cr(e[i],r)}),Gi(t).forEach(function(i){qu(e,i)||(go(e,i)&&r.isMergeableObject(t[i])?n[i]=ju(i,r)(e[i],t[i],r):n[i]=cr(t[i],r))}),n}function kt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ku,r.isMergeableObject=r.isMergeableObject||Lu,r.cloneUnlessOtherwiseSpecified=cr;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Xu(e,t,r):cr(t,r)}kt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return kt(n,i,r)},{})};var zu=kt,Wu=zu;const Yu=vo(Wu);var Zn=function(e,t){return Zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Zn(e,t)};function fn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Zn(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Be=function(){return Be=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},Be.apply(this,arguments)};function Zu(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 Tn(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 Sn(e,t){var r=t&&t.cache?t.cache:nl,n=t&&t.serializer?t.serializer:tl,i=t&&t.strategy?t.strategy:Ku;return i(e,{cache:r,serializer:n})}function Qu(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ju(e,t,r,n){var i=Qu(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function _o(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 bo(e,t,r,n,i){return r.bind(t,e,n,i)}function Ku(e,t){var r=e.length===1?Ju:_o;return bo(e,this,r,t.cache.create(),t.serializer)}function el(e,t){return bo(e,this,_o,t.cache.create(),t.serializer)}var tl=function(){return JSON.stringify(arguments)},rl=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),nl={create:function(){return new rl}},An={variadic:el},Wr=function(){return Wr=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},Wr.apply(this,arguments)};var N;(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"})(N||(N={}));var $;(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"})($||($={}));var jt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(jt||(jt={}));function ki(e){return e.type===$.literal}function il(e){return e.type===$.argument}function Eo(e){return e.type===$.number}function yo(e){return e.type===$.date}function xo(e){return e.type===$.time}function wo(e){return e.type===$.select}function To(e){return e.type===$.plural}function sl(e){return e.type===$.pound}function So(e){return e.type===$.tag}function Ao(e){return!!(e&&typeof e=="object"&&e.type===jt.number)}function Qn(e){return!!(e&&typeof e=="object"&&e.type===jt.dateTime)}var Ho=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ol=/(?:[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 al(e){var t={};return e.replace(ol,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 D=function(){return D=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},D.apply(this,arguments)};var ul=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ll(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ul).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 d=f[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:u})}return r}function fl(e){return e.replace(/^(.*?)-/,"")}var ji=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,No=/^(@+)?(\+|#+)?[rs]?$/g,hl=/(\*)(0+)|(#+)(0+)|(0+)/g,Oo=/^(0+)$/;function Vi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(No,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 Bo(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 cl(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)),!Oo.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function qi(e){var t={},r=Bo(e);return r||t}function dl(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=fl(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=D(D(D({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return D(D({},u),qi(l))},{}));continue;case"engineering":t=D(D(D({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return D(D({},u),qi(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(hl,function(u,l,f,d,p,v){if(l)t.minimumIntegerDigits=f.length;else{if(d&&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(Oo.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ji.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ji,function(u,l,f,d,p,v){return f==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.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=D(D({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=D(D({},t),Vi(s)));continue}if(No.test(i.stem)){t=D(D({},t),Vi(i.stem));continue}var a=Bo(i.stem);a&&(t=D(D({},t),a));var o=cl(i.stem);o&&(t=D(D({},t),o))}return t}var Pr={"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 pl(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=vl(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 vl(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Pr[n||""]||Pr[r||""]||Pr["".concat(r,"-001")]||Pr["001"];return i[0]}var Hn,ml=new RegExp("^".concat(Ho.source,"*")),gl=new RegExp("".concat(Ho.source,"*$"));function B(e,t){return{start:e,end:t}}var _l=!!String.prototype.startsWith&&"_a".startsWith("a",1),bl=!!String.fromCodePoint,El=!!Object.fromEntries,yl=!!String.prototype.codePointAt,xl=!!String.prototype.trimStart,wl=!!String.prototype.trimEnd,Tl=!!Number.isSafeInteger,Sl=Tl?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Jn=!0;try{var Al=Io("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Jn=((Hn=Al.exec("a"))===null||Hn===void 0?void 0:Hn[0])==="a"}catch(e){Jn=!1}var Xi=_l?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Kn=bl?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},zi=El?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},Po=yl?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}},Hl=xl?function(t){return t.trimStart()}:function(t){return t.replace(ml,"")},Nl=wl?function(t){return t.trimEnd()}:function(t){return t.replace(gl,"")};function Io(e,t){return new RegExp(e,t)}var ei;if(Jn){var Wi=Io("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ei=function(t,r){var n;Wi.lastIndex=r;var i=Wi.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else ei=function(t,r){for(var n=[];;){var i=Po(t,r);if(i===void 0||Co(i)||Il(i))break;n.push(i),r+=i>=65536?2:1}return Kn.apply(void 0,n)};var Ol=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:$.pound,location:B(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(N.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&ti(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:$.literal,value:"<".concat(i,"/>"),location:B(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var a=s.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ti(this.char()))return this.error(N.INVALID_TAG,B(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(N.UNMATCHED_CLOSING_TAG,B(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$.tag,value:i,children:a,location:B(n,this.clonePosition())},err:null}:this.error(N.INVALID_TAG,B(o,this.clonePosition())))}else return this.error(N.UNCLOSED_TAG,B(n,this.clonePosition()))}else return this.error(N.INVALID_TAG,B(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Pl(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=B(n,this.clonePosition());return{val:{type:$.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Bl(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Kn.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Kn(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(N.EMPTY_ARGUMENT,B(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(N.MALFORMED_ARGUMENT,B(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$.argument,value:i,location:B(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(N.MALFORMED_ARGUMENT,B(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=ei(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=B(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(N.EXPECT_ARGUMENT_TYPE,B(a,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var p=Nl(d.val);if(p.length===0)return this.error(N.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));var v=B(f,this.clonePosition());l={style:p,styleLocation:v}}var c=this.tryParseArgumentClose(i);if(c.err)return c;var m=B(i,this.clonePosition());if(l&&Xi(l==null?void 0:l.style,"::",0)){var g=Hl(l.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(g,l.styleLocation);return d.err?d:{val:{type:$.number,value:n,location:m,style:d.val},err:null}}else{if(g.length===0)return this.error(N.EXPECT_DATE_TIME_SKELETON,m);var b=g;this.locale&&(b=pl(g,this.locale));var p={type:jt.dateTime,pattern:b,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?al(b):{}},O=o==="date"?$.date:$.time;return{val:{type:O,value:n,location:m,style:p},err:null}}}return{val:{type:o==="number"?$.number:o==="date"?$.date:$.time,value:n,location:m,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS,B(M,Wr({},M)));this.bumpSpace();var te=this.parseIdentifierIfPossible(),F=0;if(o!=="select"&&te.value==="offset"){if(!this.bumpIf(":"))return this.error(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),te=this.parseIdentifierIfPossible(),F=d.val}var z=this.tryParsePluralOrSelectOptions(t,o,r,te);if(z.err)return z;var c=this.tryParseArgumentClose(i);if(c.err)return c;var Le=B(i,this.clonePosition());return o==="select"?{val:{type:$.select,value:n,options:zi(z.val),location:Le},err:null}:{val:{type:$.plural,value:n,options:zi(z.val),offset:F,pluralType:o==="plural"?"cardinal":"ordinal",location:Le},err:null}}default:return this.error(N.INVALID_ARGUMENT_TYPE,B(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,B(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(N.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(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=ll(t)}catch(i){return this.error(N.INVALID_NUMBER_SKELETON,r)}return{val:{type:jt.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?dl(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 d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_SELECTOR,N.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;f=B(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?N.DUPLICATE_SELECT_ARGUMENT_SELECTOR:N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?N.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:N.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var c=this.parseMessage(t+1,r,n);if(c.err)return c;var m=this.tryParseArgumentClose(v);if(m.err)return m;o.push([l,{value:c.val,location:B(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"?N.EXPECT_SELECT_ARGUMENT_SELECTOR:N.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(N.MISSING_OTHER_CLAUSE,B(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=B(i,this.clonePosition());return s?(a*=n,Sl(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=Po(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(Xi(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()&&Co(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 ti(e){return e>=97&&e<=122||e>=65&&e<=90}function Bl(e){return ti(e)||e===47}function Pl(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 Co(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Il(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ri(e){e.forEach(function(t){if(delete t.location,wo(t)||To(t))for(var r in t.options)delete t.options[r].location,ri(t.options[r].value);else Eo(t)&&Ao(t.style)||(yo(t)||xo(t))&&Qn(t.style)?delete t.style.location:So(t)&&ri(t.children)})}function Cl(e,t){t===void 0&&(t={}),t=Wr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ol(e,t).parse();if(r.err){var n=SyntaxError(N[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||ri(r.val),r.val}var Vt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Vt||(Vt={}));var hn=function(e){fn(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),Yi=function(e){fn(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('", "'),'"'),Vt.INVALID_VALUE,s)||this}return t}(hn),Ml=function(e){fn(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Vt.INVALID_VALUE,i)||this}return t}(hn),Ll=function(e){fn(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,'"'),Vt.MISSING_VALUE,n)||this}return t}(hn),Y;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Y||(Y={}));function Rl(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Y.literal||r.type!==Y.literal?t.push(r):n.value+=r.value,t},[])}function $l(e){return typeof e=="function"}function Ur(e,t,r,n,i,s,a){if(e.length===1&&ki(e[0]))return[{type:Y.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var f=l[u];if(ki(f)){o.push({type:Y.literal,value:f.value});continue}if(sl(f)){typeof s=="number"&&o.push({type:Y.literal,value:r.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(i&&d in i))throw new Ll(d,a);var p=i[d];if(il(f)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),o.push({type:typeof p=="string"?Y.literal:Y.object,value:p});continue}if(yo(f)){var v=typeof f.style=="string"?n.date[f.style]:Qn(f.style)?f.style.parsedOptions:void 0;o.push({type:Y.literal,value:r.getDateTimeFormat(t,v).format(p)});continue}if(xo(f)){var v=typeof f.style=="string"?n.time[f.style]:Qn(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:Y.literal,value:r.getDateTimeFormat(t,v).format(p)});continue}if(Eo(f)){var v=typeof f.style=="string"?n.number[f.style]:Ao(f.style)?f.style.parsedOptions:void 0;v&&v.scale&&(p=p*(v.scale||1)),o.push({type:Y.literal,value:r.getNumberFormat(t,v).format(p)});continue}if(So(f)){var c=f.children,m=f.value,g=i[m];if(!$l(g))throw new Ml(m,"function",a);var b=Ur(c,t,r,n,i,s),O=g(b.map(function(F){return F.value}));Array.isArray(O)||(O=[O]),o.push.apply(o,O.map(function(F){return{type:typeof F=="string"?Y.literal:Y.object,value:F}}))}if(wo(f)){var M=f.options[p]||f.options.other;if(!M)throw new Yi(f.value,p,Object.keys(f.options),a);o.push.apply(o,Ur(M.value,t,r,n,i));continue}if(To(f)){var M=f.options["=".concat(p)];if(!M){if(!Intl.PluralRules)throw new hn(`Intl.PluralRules is not available in this environment.
4
+ Try polyfilling it using "@formatjs/intl-pluralrules"
5
+ `,Vt.MISSING_INTL_API,a);var te=r.getPluralRules(t,{type:f.pluralType}).select(p-(f.offset||0));M=f.options[te]||f.options.other}if(!M)throw new Yi(f.value,p,Object.keys(f.options),a);o.push.apply(o,Ur(M.value,t,r,n,i,p-(f.offset||0)));continue}}return Rl(o)}function Dl(e,t){return t?Be(Be(Be({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Be(Be({},e[n]),t[n]||{}),r},{})):e}function Ul(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Dl(e[n],t[n]),r},Be({},e)):e}function Nn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Fl(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Sn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Tn([void 0],r,!1)))},{cache:Nn(e.number),strategy:An.variadic}),getDateTimeFormat:Sn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Tn([void 0],r,!1)))},{cache:Nn(e.dateTime),strategy:An.variadic}),getPluralRules:Sn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Tn([void 0],r,!1)))},{cache:Nn(e.pluralRules),strategy:An.variadic})}}var Gl=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(d,p){return!d.length||p.type!==Y.literal||typeof d[d.length-1]!="string"?d.push(p.value):d[d.length-1]+=p.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return Ur(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=Zu(a,["formatters"]);this.ast=e.__parse(t,Be(Be({},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=Ul(e.formats,n),this.formatters=i&&i.formatters||Fl(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=Cl,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 kl(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 Qe={},jl=(e,t,r)=>r&&(t in Qe||(Qe[t]={}),e in Qe[t]||(Qe[t][e]=r),r),Mo=(e,t)=>{if(t==null)return;if(t in Qe&&e in Qe[t])return Qe[t][e];const r=cn(t);for(let n=0;n<r.length;n++){const i=r[n],s=ql(i,e);if(s)return jl(e,t,s)}};let Si;const zt=ln({});function Vl(e){return Si[e]||null}function Lo(e){return e in Si}function ql(e,t){if(!Lo(e))return null;const r=Vl(e);return kl(r,t)}function Xl(e){if(e==null)return;const t=cn(e);for(let r=0;r<t.length;r++){const n=t[r];if(Lo(n))return n}}function Ro(e,...t){delete Qe[e],zt.update(r=>(r[e]=Yu.all([r[e]||{},...t]),r))}Xt([zt],([e])=>Object.keys(e));zt.subscribe(e=>Si=e);const Fr={};function zl(e,t){Fr[e].delete(t),Fr[e].size===0&&delete Fr[e]}function $o(e){return Fr[e]}function Wl(e){return cn(e).map(t=>{const r=$o(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function ni(e){return e==null?!1:cn(e).some(t=>{var r;return(r=$o(t))==null?void 0:r.size})}function Yl(e,t){return Promise.all(t.map(n=>(zl(e,n),n().then(i=>i.default||i)))).then(n=>Ro(e,...n))}const Qt={};function Do(e){if(!ni(e))return e in Qt?Qt[e]:Promise.resolve();const t=Wl(e);return Qt[e]=Promise.all(t.map(([r,n])=>Yl(r,n))).then(()=>{if(ni(e))return Do(e);delete Qt[e]}),Qt[e]}const Zl={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"}}},Ql={fallbackLocale:null,loadingDelay:200,formats:Zl,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Jl=Ql;function qt(){return Jl}const On=ln(!1);var Kl=Object.defineProperty,ef=Object.defineProperties,tf=Object.getOwnPropertyDescriptors,Zi=Object.getOwnPropertySymbols,rf=Object.prototype.hasOwnProperty,nf=Object.prototype.propertyIsEnumerable,Qi=(e,t,r)=>t in e?Kl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sf=(e,t)=>{for(var r in t||(t={}))rf.call(t,r)&&Qi(e,r,t[r]);if(Zi)for(var r of Zi(t))nf.call(t,r)&&Qi(e,r,t[r]);return e},of=(e,t)=>ef(e,tf(t));let ii;const Yr=ln(null);function Ji(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function cn(e,t=qt().fallbackLocale){const r=Ji(e);return t?[...new Set([...r,...Ji(t)])]:r}function Et(){return ii!=null?ii:void 0}Yr.subscribe(e=>{ii=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const af=e=>{if(e&&Xl(e)&&ni(e)){const{loadingDelay:t}=qt();let r;return typeof window!="undefined"&&Et()!=null&&t?r=window.setTimeout(()=>On.set(!0),t):On.set(!0),Do(e).then(()=>{Yr.set(e)}).finally(()=>{clearTimeout(r),On.set(!1)})}return Yr.set(e)},nt=of(sf({},Yr),{set:af}),dn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var uf=Object.defineProperty,Zr=Object.getOwnPropertySymbols,Uo=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,Ki=(e,t,r)=>t in e?uf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ai=(e,t)=>{for(var r in t||(t={}))Uo.call(t,r)&&Ki(e,r,t[r]);if(Zr)for(var r of Zr(t))Fo.call(t,r)&&Ki(e,r,t[r]);return e},Wt=(e,t)=>{var r={};for(var n in e)Uo.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Zr)for(var n of Zr(e))t.indexOf(n)<0&&Fo.call(e,n)&&(r[n]=e[n]);return r};const dr=(e,t)=>{const{formats:r}=qt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},lf=dn(e=>{var t=e,{locale:r,format:n}=t,i=Wt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=dr("number",n)),new Intl.NumberFormat(r,i)}),ff=dn(e=>{var t=e,{locale:r,format:n}=t,i=Wt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=dr("date",n):Object.keys(i).length===0&&(i=dr("date","short")),new Intl.DateTimeFormat(r,i)}),hf=dn(e=>{var t=e,{locale:r,format:n}=t,i=Wt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=dr("time",n):Object.keys(i).length===0&&(i=dr("time","short")),new Intl.DateTimeFormat(r,i)}),cf=(e={})=>{var t=e,{locale:r=Et()}=t,n=Wt(t,["locale"]);return lf(Ai({locale:r},n))},df=(e={})=>{var t=e,{locale:r=Et()}=t,n=Wt(t,["locale"]);return ff(Ai({locale:r},n))},pf=(e={})=>{var t=e,{locale:r=Et()}=t,n=Wt(t,["locale"]);return hf(Ai({locale:r},n))},vf=dn((e,t=Et())=>new Gl(e,t,qt().formats,{ignoreTag:qt().ignoreTag})),mf=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=Et(),default:l}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Mo(e,u);if(!f)f=(s=(i=(n=(r=qt()).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 d=f;try{d=vf(f,u).format(o)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message)}return d},gf=(e,t)=>pf(t).format(e),_f=(e,t)=>df(t).format(e),bf=(e,t)=>cf(t).format(e),Ef=(e,t=Et())=>Mo(e,t),Go=Xt([nt,zt],()=>mf);Xt([nt],()=>gf);Xt([nt],()=>_f);Xt([nt],()=>bf);Xt([nt,zt],()=>Ef);function yf({withLocale:e,translations:t}){nt.subscribe(r=>{r==null&&(zt.set(t),nt.set(e))})}function ko(e,t){Ro(e,t)}function xf(e){nt.set(e)}function jo(e){Object.keys(e).forEach(t=>{ko(t,e[t])})}function wf(e){const t=new URL(e);fetch(t.href).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{ko(n,r[n])})}).catch(r=>{console.log(r)})}const Tf=1e3,Sf={Unstarted:"scheduled",Running:"ongoing",Closing:"ended",Closed:"ended"},Qr=e=>e==null||e===""?NaN:typeof e=="number"?e:Date.parse(e),Vo=({state:e,startTime:t,endTime:r,isNew:n=!1,now:i=Date.now()})=>{const s=Qr(t),a=Qr(r);let o=Sf[e];return o||(o=i<s?"scheduled":i<a?"ongoing":"ended"),o==="scheduled"&&i>=s&&(o="ongoing"),o==="ongoing"&&i>=a&&(o="ended"),o==="ongoing"&&n?"new":o},Af=e=>String(e).padStart(2,"0"),Hf=(e,t=Date.now())=>{const r=Math.floor((e-t)/1e3);if(Number.isNaN(r)||r<=0)return null;const n=Math.floor(r/86400),i=Math.floor(r%86400/3600),s=Math.floor(r%3600/60),a=r%60;return[n,i,s,a].map(Af).join(" : ")},es=(e,t)=>{const r={month:"short",day:"numeric"};try{return new Intl.DateTimeFormat(t||"en",r).format(e)}catch(n){return new Intl.DateTimeFormat("en",r).format(e)}},Nf=(e,t,r)=>Number.isNaN(e)||Number.isNaN(t)?"":`${es(e,r)} - ${es(t,r)}`,Of=(e,t,r,n=Date.now(),i)=>{const s=Qr(t),a=Qr(r);if(e==="ended"){const f=Nf(s,a,i);return f?{date:f}:{}}const o=e==="scheduled",u=o?s:a,l=Hf(u,n);return l?{label:o?"tournamentStatus.startsIn":"tournamentStatus.endsIn",countdown:l,target:new Date(u).toISOString()}:{}},qo=uo(Date.now(),e=>{if(typeof document=="undefined")return;let t;const r=()=>e(Date.now()),n=()=>{t===void 0&&(r(),t=setInterval(r,Tf))},i=()=>{clearInterval(t),t=void 0},s=()=>{document.hidden?i():n()};return document.addEventListener("visibilitychange",s),document.hidden||n(),()=>{i(),document.removeEventListener("visibilitychange",s)}});var Bf=Tr('<span class="timer-date svelte-1gqjw6m"> </span>'),Pf=Tr('<span class="timer-label svelte-1gqjw6m"> </span> <span class="timer-dash svelte-1gqjw6m"></span> <span class="timer-countdown"> </span>',1),If=Tr('<div class="timer svelte-1gqjw6m"><!> <!></div>'),Cf=Tr('<div><div class="status-pill svelte-1gqjw6m"><span></span> <span class="status-label svelte-1gqjw6m"> </span></div> <!></div>');const Mf={hash:"svelte-1gqjw6m",code:`.tournament-badge.svelte-1gqjw6m {box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:2px 8px 2px 2px;gap:6px;position:relative;background-color:var(--alpha-white-10, rgba(0, 0, 0, 0.3));border:1px solid var(--alpha-white-25, rgba(251, 251, 251, 0.2));backdrop-filter:blur(10px);border-radius:100px;width:fit-content;height:25px;&[data-status='scheduled'],
6
+ &[data-status='ongoing'] {background-color:var(--alpha-white-10, rgba(251, 251, 251, 0.1));}.status-pill:where(.svelte-1gqjw6m) {box-sizing:border-box;display:flex;align-items:center;gap:4px;padding:2px 8px 2px 6px;border-radius:20px;border:0.8px solid var(--alpha-white-25, rgba(251, 251, 251, 0.2));box-shadow:0px 0.83px 1.66px 0px rgba(16, 24, 40, 0.05);background-color:var(--alpha-black-20, rgba(0, 0, 0, 0.2));height:21px;flex-shrink:0;white-space:nowrap;.dot-status:where(.svelte-1gqjw6m) {width:8px;height:8px;border-radius:50%;flex-shrink:0;transition:background 0.2s ease,
7
+ box-shadow 0.2s ease;&.new {background:var(--semantic-success-400, rgba(45, 223, 0, 1));}&.scheduled {background:var(--semantic-info-400, rgba(0, 156, 245, 1));}&.ended {background:var(--secondary-300, rgba(78, 103, 134, 1));}&.ongoing {background:var(--border-alert, rgba(255, 205, 5, 1));}}.status-label:where(.svelte-1gqjw6m) {font-weight:500;font-size:11px;line-height:13px;color:var(--secondary-50, rgba(223, 227, 232, 1));}}.timer:where(.svelte-1gqjw6m) {display:flex;align-items:center;gap:6px;color:var(--secondary-50, rgba(223, 227, 232, 1));font-size:10px;line-height:1;white-space:nowrap;flex-shrink:0;.timer-label:where(.svelte-1gqjw6m),
8
+ .timer-date:where(.svelte-1gqjw6m) {font-weight:400;}.timer-dash:where(.svelte-1gqjw6m) {font-weight:500;opacity:0.7;}}}.tournament-badge.tournament-badge--large.svelte-1gqjw6m {height:41px;.status-pill:where(.svelte-1gqjw6m) {height:34px;}.status-pill:where(.svelte-1gqjw6m) .status-label:where(.svelte-1gqjw6m) {font-size:18px;}.timer:where(.svelte-1gqjw6m) {font-size:16px;}.dot-status:where(.svelte-1gqjw6m) {width:8px;height:8px;}}
9
+
10
+ @media (max-width: 767px) {.tournament-badge.tournament-badge--large.svelte-1gqjw6m {height:25px;.status-pill:where(.svelte-1gqjw6m) {height:21px;}.status-pill:where(.svelte-1gqjw6m) .status-label:where(.svelte-1gqjw6m) {font-size:11px;}.timer:where(.svelte-1gqjw6m) {font-size:10px;}.dot-status:where(.svelte-1gqjw6m) {width:5px;height:5px;}}
11
+ }`};function Xo(e,t){li(t,!0),ao(e,Mf);const r=()=>fo(Go,"$_",n),[n,i]=ho(),s=st(t,"state"),a=st(t,"startTime"),o=st(t,"endTime"),u=st(t,"isNew",7,!1),l=st(t,"language",7,"en"),f=st(t,"size",7,"default");jo(na.STATUS_BADGE_TRANSLATIONS);const d=mo(qo),p=In(()=>Vo({state:s(),startTime:a(),endTime:o(),isNew:u(),now:d.current})),v=In(()=>Of(I(p),a(),o(),d.current,l()));var c={get state(){return s()},set state(C){s(C),We()},get startTime(){return a()},set startTime(C){a(C),We()},get endTime(){return o()},set endTime(C){o(C),We()},get isNew(){return u()},set isNew(C=!1){u(C),We()},get language(){return l()},set language(C="en"){l(C),We()},get size(){return f()},set size(C="default"){f(C),We()}},m=Cf();let g;var b=ur(m),O=ur(b);let M;var te=St(O,2),F=Nr(te,!0);ir(b);var z=St(b,2);{var Le=C=>{var qe=If(),ue=ur(qe);{var pn=it=>{var Yt=Bf(),Sr=Nr(Yt,!0);Lr(()=>Or(Sr,I(v).date)),Ht(it,Yt)};$r(ue,it=>{I(v).date&&it(pn)})}var vn=St(ue,2);{var zo=it=>{var Yt=Pf(),Sr=Rs(Yt),Wo=Nr(Sr,!0),Hi=St(Sr,2);Hi.textContent="-";var Yo=St(Hi,2),Zo=Nr(Yo,!0);Lr(Qo=>{Or(Wo,Qo),Or(Zo,I(v).countdown)},[()=>r()(I(v).label)]),Ht(it,Yt)};$r(vn,it=>{I(v).countdown&&it(zo)})}ir(qe),Ht(C,qe)};$r(z,C=>{(I(v).date||I(v).countdown)&&C(Le)})}ir(m),Lr(C=>{g=zn(m,1,"tournament-badge svelte-1gqjw6m",null,g,{"tournament-badge--large":f()==="large"}),Wn(m,"data-status",I(p)),Wn(b,"data-status",I(p)),M=zn(O,1,"dot dot-status svelte-1gqjw6m",null,M,{new:I(p)==="new",scheduled:I(p)==="scheduled",ongoing:I(p)==="ongoing",ended:I(p)==="ended"}),Or(F,C)},[()=>r()(`tournamentStatus.${I(p)}`)]),Ht(e,m);var me=fi(c);return i(),me}po(Xo,{state:{},startTime:{},endTime:{},isNew:{},language:{},size:{}},[],[],{mode:"open"});exports.$format=Go;exports.StatusBadge=Xo;exports.append=Ht;exports.append_styles=ao;exports.bind_this=Bu;exports.child=ur;exports.comment=hu;exports.commonjsGlobal=Mu;exports.create_custom_element=po;exports.delegate=uu;exports.delegated=au;exports.each=yu;exports.event=ou;exports.first_child=Rs;exports.flushSync=We;exports.fromStore=mo;exports.from_html=Tr;exports.get=I;exports.getDefaultExportFromCjs=vo;exports.if_block=$r;exports.loadTranslations=wf;exports.noop=Pe;exports.pop=fi;exports.prop=st;exports.proxy=At;exports.push=li;exports.registerTranslations=jo;exports.replay_events=iu;exports.reset=ir;exports.resolveTournamentStatus=Vo;exports.set=be;exports.setLocale=xf;exports.set_attribute=Wn;exports.set_class=zn;exports.setupI18n=yf;exports.setup_stores=ho;exports.sibling=St;exports.snippet=bu;exports.state=Re;exports.store_get=fo;exports.template_effect=Lr;exports.tournamentClock=qo;exports.user_derived=In;exports.user_effect=Ya;exports.user_pre_effect=Za;