@everymatrix/tournament-card 0.1.1 → 0.1.2

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
+ "use strict";var Aa=Object.defineProperty,Ha=Object.defineProperties;var Ma=Object.getOwnPropertyDescriptors;var fi=Object.getOwnPropertySymbols;var Oa=Object.prototype.hasOwnProperty,Ba=Object.prototype.propertyIsEnumerable;var hi=e=>{throw TypeError(e)};var dn=(e,t,r)=>t in e?Aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mr=(e,t)=>{for(var r in t||(t={}))Oa.call(t,r)&&dn(e,r,t[r]);if(fi)for(var r of fi(t))Ba.call(t,r)&&dn(e,r,t[r]);return e},Or=(e,t)=>Ha(e,Ma(t));var W=(e,t,r)=>dn(e,typeof t!="symbol"?t+"":t,r),pn=(e,t,r)=>t.has(e)||hi("Cannot "+r);var h=(e,t,r)=>(pn(e,t,"read from private field"),r?r.call(e):t.get(e)),N=(e,t,r)=>t.has(e)?hi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),B=(e,t,r,n)=>(pn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),K=(e,t,r)=>(pn(e,t,"access private method"),r);var ci=(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())});const $a="5";var Ii,Ri,Ui;typeof window!="undefined"&&((Ui=(Ri=(Ii=window.__svelte)!=null?Ii:window.__svelte={}).v)!=null?Ui:Ri.v=new Set).add($a);const Pa=1,Na=2,Fi="[",Wn="[!",Gi="]",Kt={},ae=Symbol(),La="http://www.w3.org/1999/xhtml",Sn=!1;var Da=Array.isArray,Ca=Array.prototype.indexOf,Ia=Array.from,Fr=Object.keys,vr=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,Ra=Object.getOwnPropertyDescriptors,Ua=Object.prototype,Fa=Array.prototype,ji=Object.getPrototypeOf,di=Object.isExtensible;const bt=()=>{};function ki(e){for(var t=0;t<e.length;t++)e[t]()}function Vi(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const le=2,Gr=4,wr=8,Yi=1<<24,ht=16,ct=32,Tt=64,Zn=128,Le=512,de=1024,_e=2048,dt=4096,nt=8192,lt=16384,Kr=32768,er=65536,pi=1<<17,zi=1<<18,Ut=1<<19,Xi=1<<20,Rt=32768,An=1<<21,qn=1<<22,yt=1<<23,vn=Symbol("$state"),Ga=Symbol("legacy props"),ja=Symbol(""),Vt=new class extends Error{constructor(){super(...arguments);W(this,"name","StaleReactionError");W(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},en=3,Tr=8;function Wi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ka(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Va(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ya(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function za(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Xa(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Wa(){throw new Error("https://svelte.dev/e/hydration_failed")}function Za(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ja(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Qa(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function tn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ka(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let j=!1;function gt(e){j=e}let R;function De(e){if(e===null)throw tn(),Kt;return R=e}function Jn(){return De(pt(R))}function We(e){if(j){if(pt(R)!==null)throw tn(),Kt;R=e}}function Zi(e=1){if(j){for(var t=e,r=R;t--;)r=pt(r);R=r}}function qi(e=!0){for(var t=0,r=R;;){if(r.nodeType===Tr){var n=r.data;if(n===Gi){if(t===0)return r;t-=1}else(n===Fi||n===Wn)&&(t+=1)}var i=pt(r);e&&r.remove(),r=i}}function eo(e){if(!e||e.nodeType!==Tr)throw tn(),Kt;return e.data}function Ji(e){return e===this.v}function Qi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function to(e){return!Qi(e,this.v)}let ro=!1,we=null;function tr(e){we=e}function Qn(e,t=!1,r){we={p:we,i:!1,c:null,e:null,s:e,x:null,l:null}}function Kn(e){var t=we,r=t.e;if(r!==null){t.e=null;for(var n of r)ws(n)}return e!==void 0&&(t.x=e),t.i=!0,we=t.p,e!=null?e:{}}function Ki(){return!0}let Mt=[];function es(){var e=Mt;Mt=[],ki(e)}function ei(e){if(Mt.length===0&&!cr){var t=Mt;queueMicrotask(()=>{t===Mt&&es()})}Mt.push(e)}function no(){for(;Mt.length>0;)es()}function ts(e){var t=I;if(t===null)return $.f|=yt,e;if(t.f&Kr)rr(e,t);else{if(!(t.f&Zn))throw e;t.b.error(e)}}function rr(e,t){for(;t!==null;){if(t.f&Zn)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const io=-7169;function se(e,t){e.f=e.f&io|t}function ti(e){e.f&Le||e.deps===null?se(e,de):se(e,dt)}function rs(e){if(e!==null)for(const t of e)!(t.f&le)||!(t.f&Rt)||(t.f^=Rt,rs(t.deps))}function ns(e,t,r){e.f&_e?t.add(e):e.f&dt&&r.add(e),rs(e.deps),se(e,de)}const Br=new Set;let G=null,oe=null,Ne=[],rn=null,Hn=!1,cr=!1;var Xt,Wt,Bt,$t,br,Zt,qt,Ie,Mn,On,is,ss;const qr=class qr{constructor(){N(this,Ie);W(this,"committed",!1);W(this,"current",new Map);W(this,"previous",new Map);N(this,Xt,new Set);N(this,Wt,new Set);N(this,Bt,0);N(this,$t,0);N(this,br,null);N(this,Zt,new Set);N(this,qt,new Set);W(this,"skipped_effects",new Set);W(this,"is_fork",!1)}is_deferred(){return this.is_fork||h(this,$t)>0}process(t){var i;Ne=[],this.apply();var r=[],n=[];for(const s of t)K(this,Ie,Mn).call(this,s,r,n);this.is_fork||K(this,Ie,is).call(this),this.is_deferred()?(K(this,Ie,On).call(this,n),K(this,Ie,On).call(this,r)):(G=null,vi(n),vi(r),(i=h(this,br))==null||i.resolve()),oe=null}capture(t,r){r!==ae&&!this.previous.has(t)&&this.previous.set(t,r),t.f&yt||(this.current.set(t,t.v),oe==null||oe.set(t,t.v))}activate(){G=this,this.apply()}deactivate(){G===this&&(G=null,oe=null)}flush(){if(this.activate(),Ne.length>0){if(as(),G!==null&&G!==this)return}else h(this,Bt)===0&&this.process([]);this.deactivate()}discard(){for(const t of h(this,Wt))t(this);h(this,Wt).clear()}increment(t){B(this,Bt,h(this,Bt)+1),t&&B(this,$t,h(this,$t)+1)}decrement(t){B(this,Bt,h(this,Bt)-1),t&&B(this,$t,h(this,$t)-1),this.revive()}revive(){for(const t of h(this,Zt))h(this,qt).delete(t),se(t,_e),ft(t);for(const t of h(this,qt))se(t,dt),ft(t);this.flush()}oncommit(t){h(this,Xt).add(t)}ondiscard(t){h(this,Wt).add(t)}settled(){var t;return((t=h(this,br))!=null?t:B(this,br,Vi())).promise}static ensure(){if(G===null){const t=G=new qr;Br.add(G),cr||qr.enqueue(()=>{G===t&&t.flush()})}return G}static enqueue(t){ei(t)}apply(){}};Xt=new WeakMap,Wt=new WeakMap,Bt=new WeakMap,$t=new WeakMap,br=new WeakMap,Zt=new WeakMap,qt=new WeakMap,Ie=new WeakSet,Mn=function(t,r,n){t.f^=de;for(var i=t.first,s=null;i!==null;){var a=i.f,o=(a&(ct|Tt))!==0,u=o&&(a&de)!==0,l=u||(a&nt)!==0||this.skipped_effects.has(i);if(!l&&i.fn!==null){o?i.f^=de:s!==null&&a&(Gr|wr|Yi)?s.b.defer_effect(i):a&Gr?r.push(i):Ar(i)&&(a&ht&&h(this,Zt).add(i),mr(i));var f=i.first;if(f!==null){i=f;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)d===s&&(s=null),i=d.next,d=d.parent}},On=function(t){for(var r=0;r<t.length;r+=1)ns(t[r],h(this,Zt),h(this,qt))},is=function(){if(h(this,$t)===0){for(const t of h(this,Xt))t();h(this,Xt).clear()}h(this,Bt)===0&&K(this,Ie,ss).call(this)},ss=function(){var i;if(Br.size>1){this.previous.clear();var t=oe,r=!0;for(const s of Br){if(s===this){r=!1;continue}const a=[];for(const[u,l]of this.current){if(s.current.has(u))if(r&&l!==s.current.get(u))s.current.set(u,l);else continue;a.push(u)}if(a.length===0)continue;const o=[...s.current.keys()].filter(u=>!this.current.has(u));if(o.length>0){var n=Ne;Ne=[];const u=new Set,l=new Map;for(const f of a)os(f,o,u,l);if(Ne.length>0){G=s,s.apply();for(const f of Ne)K(i=s,Ie,Mn).call(i,f,[],[]);s.deactivate()}Ne=n}}G=null,oe=t}this.committed=!0,Br.delete(this)};let rt=qr;function Fe(e){var t=cr;cr=!0;try{for(var r;;){if(no(),Ne.length===0&&(G==null||G.flush(),Ne.length===0))return rn=null,r;as()}}finally{cr=t}}function as(){var e=Ct;Hn=!0;var t=null;try{var r=0;for(Yr(!0);Ne.length>0;){var n=rt.ensure();if(r++>1e3){var i,s;so()}n.process(Ne),Et.clear()}}finally{Hn=!1,Yr(e),rn=null}}function so(){try{Xa()}catch(e){rr(e,rn)}}let Ge=null;function vi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(lt|nt))&&Ar(n)&&(Ge=new Set,mr(n),n.deps===null&&n.first===null&&n.nodes===null&&(n.teardown===null&&n.ac===null?Os(n):n.fn=null),(Ge==null?void 0:Ge.size)>0)){Et.clear();for(const i of Ge){if(i.f&(lt|nt))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&(lt|nt)||mr(u)}}Ge.clear()}}Ge=null}}function os(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&le?os(i,t,r,n):s&(qn|ht)&&!(s&_e)&&us(i,t,n)&&(se(i,_e),ft(i))}}function us(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&le&&us(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function ft(e){for(var t=rn=e;t.parent!==null;){t=t.parent;var r=t.f;if(Hn&&t===I&&r&ht&&!(r&zi))return;if(r&(Tt|ct)){if(!(r&de))return;t.f^=de}}Ne.push(t)}function ao(e){let t=0,r=Sr(0),n;return()=>{ni()&&(ue(r),Ss(()=>(t===0&&(n=nn(()=>e(()=>dr(r)))),t+=1,()=>{ei(()=>{t-=1,t===0&&(n==null||n(),n=void 0,dr(r))})})))}}var oo=er|Ut|Zn;function uo(e,t,r){new lo(e,t,r)}var Se,yr,Je,Pt,Qe,$e,ye,Ke,at,vt,Nt,ot,Lt,Jt,Qt,mt,Jr,q,ls,fs,Bn,Lr,Dr,$n;class lo{constructor(t,r,n){N(this,q);W(this,"parent");W(this,"is_pending",!1);N(this,Se);N(this,yr,j?R:null);N(this,Je);N(this,Pt);N(this,Qe);N(this,$e,null);N(this,ye,null);N(this,Ke,null);N(this,at,null);N(this,vt,null);N(this,Nt,0);N(this,ot,0);N(this,Lt,!1);N(this,Jt,new Set);N(this,Qt,new Set);N(this,mt,null);N(this,Jr,ao(()=>(B(this,mt,Sr(h(this,Nt))),()=>{B(this,mt,null)})));B(this,Se,t),B(this,Je,r),B(this,Pt,n),this.parent=I.b,this.is_pending=!!h(this,Je).pending,B(this,Qe,As(()=>{if(I.b=this,j){const s=h(this,yr);Jn(),s.nodeType===Tr&&s.data===Wn?K(this,q,fs).call(this):(K(this,q,ls).call(this),h(this,ot)===0&&(this.is_pending=!1))}else{var i=K(this,q,Bn).call(this);try{B(this,$e,st(()=>n(i)))}catch(s){this.error(s)}h(this,ot)>0?K(this,q,Dr).call(this):this.is_pending=!1}return()=>{var s;(s=h(this,vt))==null||s.remove()}},oo)),j&&B(this,Se,R)}defer_effect(t){ns(t,h(this,Jt),h(this,Qt))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!h(this,Je).pending}update_pending_count(t){K(this,q,$n).call(this,t),B(this,Nt,h(this,Nt)+t),h(this,mt)&&kr(h(this,mt),h(this,Nt))}get_effect_pending(){return h(this,Jr).call(this),ue(h(this,mt))}error(t){var r=h(this,Je).onerror;let n=h(this,Je).failed;if(h(this,Lt)||!r&&!n)throw t;h(this,$e)&&(xe(h(this,$e)),B(this,$e,null)),h(this,ye)&&(xe(h(this,ye)),B(this,ye,null)),h(this,Ke)&&(xe(h(this,Ke)),B(this,Ke,null)),j&&(De(h(this,yr)),Zi(),De(qi()));var i=!1,s=!1;const a=()=>{if(i){Ka();return}i=!0,s&&Qa(),rt.ensure(),B(this,Nt,0),h(this,Ke)!==null&&pr(h(this,Ke),()=>{B(this,Ke,null)}),this.is_pending=this.has_pending_snippet(),B(this,$e,K(this,q,Lr).call(this,()=>(B(this,Lt,!1),st(()=>h(this,Pt).call(this,h(this,Se)))))),h(this,ot)>0?K(this,q,Dr).call(this):this.is_pending=!1};var o=$;try{ce(null),s=!0,r==null||r(t,a),s=!1}catch(u){rr(u,h(this,Qe)&&h(this,Qe).parent)}finally{ce(o)}n&&ei(()=>{B(this,Ke,K(this,q,Lr).call(this,()=>{rt.ensure(),B(this,Lt,!0);try{return st(()=>{n(h(this,Se),()=>t,()=>a)})}catch(u){return rr(u,h(this,Qe).parent),null}finally{B(this,Lt,!1)}}))})}}Se=new WeakMap,yr=new WeakMap,Je=new WeakMap,Pt=new WeakMap,Qe=new WeakMap,$e=new WeakMap,ye=new WeakMap,Ke=new WeakMap,at=new WeakMap,vt=new WeakMap,Nt=new WeakMap,ot=new WeakMap,Lt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,mt=new WeakMap,Jr=new WeakMap,q=new WeakSet,ls=function(){try{B(this,$e,st(()=>h(this,Pt).call(this,h(this,Se))))}catch(t){this.error(t)}},fs=function(){const t=h(this,Je).pending;t&&(B(this,ye,st(()=>t(h(this,Se)))),rt.enqueue(()=>{var r=K(this,q,Bn).call(this);B(this,$e,K(this,q,Lr).call(this,()=>(rt.ensure(),st(()=>h(this,Pt).call(this,r))))),h(this,ot)>0?K(this,q,Dr).call(this):(pr(h(this,ye),()=>{B(this,ye,null)}),this.is_pending=!1)}))},Bn=function(){var t=h(this,Se);return this.is_pending&&(B(this,vt,Ye()),h(this,Se).before(h(this,vt)),t=h(this,vt)),t},Lr=function(t){var r=I,n=$,i=we;Ce(h(this,Qe)),ce(h(this,Qe)),tr(h(this,Qe).ctx);try{return t()}catch(s){return ts(s),null}finally{Ce(r),ce(n),tr(i)}},Dr=function(){const t=h(this,Je).pending;h(this,$e)!==null&&(B(this,at,document.createDocumentFragment()),h(this,at).append(h(this,vt)),Ps(h(this,$e),h(this,at))),h(this,ye)===null&&B(this,ye,st(()=>t(h(this,Se))))},$n=function(t){var r;if(!this.has_pending_snippet()){this.parent&&K(r=this.parent,q,$n).call(r,t);return}if(B(this,ot,h(this,ot)+t),h(this,ot)===0){this.is_pending=!1;for(const n of h(this,Jt))se(n,_e),ft(n);for(const n of h(this,Qt))se(n,dt),ft(n);h(this,Jt).clear(),h(this,Qt).clear(),h(this,ye)&&pr(h(this,ye),()=>{B(this,ye,null)}),h(this,at)&&(h(this,Se).before(h(this,at)),B(this,at,null))}};function fo(e,t,r,n){const i=hs;if(r.length===0&&e.length===0){n(t.map(i));return}var s=G,a=I,o=ho();function u(){Promise.all(r.map(l=>co(l))).then(l=>{o();try{n([...t.map(i),...l])}catch(f){a.f&lt||rr(f,a)}s==null||s.deactivate(),jr()}).catch(l=>{rr(l,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return u()}finally{s==null||s.deactivate(),jr()}}):u()}function ho(){var e=I,t=$,r=we,n=G;return function(s=!0){Ce(e),ce(t),tr(r),s&&(n==null||n.activate())}}function jr(){Ce(null),ce(null),tr(null)}function hs(e){var t=le|_e,r=$!==null&&$.f&le?$:null;return I!==null&&(I.f|=Ut),{ctx:we,deps:null,effects:null,equals:Ji,f:t,fn:e,reactions:null,rv:0,v:ae,wv:0,parent:r!=null?r:I,ac:null}}function co(e,t,r){let n=I;n===null&&ka();var i=n.b,s=void 0,a=Sr(ae),o=!$,u=new Map;return xo(()=>{var v;var l=Vi();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===G&&f.committed&&f.deactivate(),jr()})}catch(y){l.reject(y),jr()}var f=G;if(o){var d=i.is_rendered();i.update_pending_count(1),f.increment(d),(v=u.get(f))==null||v.reject(Vt),u.delete(f),u.set(f,l)}const c=(y,A=void 0)=>{if(f.activate(),A)A!==Vt&&(a.f|=yt,kr(a,A));else{a.f&yt&&(a.f^=yt),kr(a,y);for(const[b,T]of u){if(u.delete(b),b===f)break;T.reject(Vt)}}o&&(i.update_pending_count(-1),f.decrement(d))};l.promise.then(c,y=>c(null,y||"unknown"))}),xs(()=>{for(const l of u.values())l.reject(Vt)}),new Promise(l=>{function f(d){function c(){d===s?l(a):f(s)}d.then(c,c)}f(s)})}function cs(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)xe(t[r])}}function po(e){for(var t=e.parent;t!==null;){if(!(t.f&le))return t.f&lt?null:t;t=t.parent}return null}function ri(e){var t,r=I;Ce(po(e));try{e.f&=~Rt,cs(e),t=Cs(e)}finally{Ce(r)}return t}function ds(e){var t=ri(e);if(!e.equals(t)&&(e.wv=Ls(),(!(G!=null&&G.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){se(e,de);return}wt||(oe!==null?(ni()||G!=null&&G.is_fork)&&oe.set(e,t):ti(e))}let Pn=new Set;const Et=new Map;let ps=!1;function Sr(e,t){var r={f:0,v:e,reactions:null,equals:Ji,rv:0,wv:0};return r}function He(e,t){const r=Sr(e);return Ao(r),r}function vs(e,t=!1,r=!0){const n=Sr(e);return t||(n.equals=to),n}function ee(e,t,r=!1){$!==null&&(!Ve||$.f&pi)&&Ki()&&$.f&(le|ht|qn|pi)&&!(ge!=null&&ge.includes(e))&&Ja();let n=r?Yt(t):t;return kr(e,n)}function kr(e,t){if(!e.equals(t)){var r=e.v;wt?Et.set(e,t):Et.set(e,r),e.v=t;var n=rt.ensure();if(n.capture(e,r),e.f&le){const i=e;e.f&_e&&ri(i),ti(i)}e.wv=Ls(),ms(e,_e),I!==null&&I.f&de&&!(I.f&(ct|Tt))&&(Be===null?Ho([e]):Be.push(e)),!n.is_fork&&Pn.size>0&&!ps&&vo()}return t}function vo(){ps=!1;var e=Ct;Yr(!0);const t=Array.from(Pn);try{for(const r of t)r.f&de&&se(r,dt),Ar(r)&&mr(r)}finally{Yr(e)}Pn.clear()}function dr(e){ee(e,e.v+1)}function ms(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&_e)===0;if(o&&se(s,t),a&le){var u=s;oe==null||oe.delete(u),a&Rt||(a&Le&&(s.f|=Rt),ms(u,dt))}else o&&(a&ht&&Ge!==null&&Ge.add(s),ft(s))}}function Yt(e){if(typeof e!="object"||e===null||vn in e)return e;const t=ji(e);if(t!==Ua&&t!==Fa)return e;var r=new Map,n=Da(e),i=He(0),s=It,a=o=>{if(It===s)return o();var u=$,l=It;ce(null),_i(s);var f=o();return ce(u),_i(l),f};return n&&r.set("length",He(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Za();var f=r.get(u);return f===void 0?f=a(()=>{var d=He(l.value);return r.set(u,d),d}):ee(f,l.value,!0),!0},deleteProperty(o,u){var l=r.get(u);if(l===void 0){if(u in o){const f=a(()=>He(ae));r.set(u,f),dr(i)}}else ee(l,ae),dr(i);return!0},get(o,u,l){var v;if(u===vn)return e;var f=r.get(u),d=u in o;if(f===void 0&&(!d||(v=zt(o,u))!=null&&v.writable)&&(f=a(()=>{var y=Yt(d?o[u]:ae),A=He(y);return A}),r.set(u,f)),f!==void 0){var c=ue(f);return c===ae?void 0:c}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var l=Reflect.getOwnPropertyDescriptor(o,u);if(l&&"value"in l){var f=r.get(u);f&&(l.value=ue(f))}else if(l===void 0){var d=r.get(u),c=d==null?void 0:d.v;if(d!==void 0&&c!==ae)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(o,u){var c;if(u===vn)return!0;var l=r.get(u),f=l!==void 0&&l.v!==ae||Reflect.has(o,u);if(l!==void 0||I!==null&&(!f||(c=zt(o,u))!=null&&c.writable)){l===void 0&&(l=a(()=>{var v=f?Yt(o[u]):ae,y=He(v);return y}),r.set(u,l));var d=ue(l);if(d===ae)return!1}return f},set(o,u,l,f){var M;var d=r.get(u),c=u in o;if(n&&u==="length")for(var v=l;v<d.v;v+=1){var y=r.get(v+"");y!==void 0?ee(y,ae):v in o&&(y=a(()=>He(ae)),r.set(v+"",y))}if(d===void 0)(!c||(M=zt(o,u))!=null&&M.writable)&&(d=a(()=>He(void 0)),ee(d,Yt(l)),r.set(u,d));else{c=d.v!==ae;var A=a(()=>Yt(l));ee(d,A)}var b=Reflect.getOwnPropertyDescriptor(o,u);if(b!=null&&b.set&&b.set.call(f,l),!c){if(n&&typeof u=="string"){var T=r.get("length"),P=Number(u);Number.isInteger(P)&&P>=T.v&&ee(T,P+1)}dr(i)}return!0},ownKeys(o){ue(i);var u=Reflect.ownKeys(o).filter(d=>{var c=r.get(d);return c===void 0||c.v!==ae});for(var[l,f]of r)f.v!==ae&&!(l in o)&&u.push(l);return u},setPrototypeOf(){qa()}})}var mi,gs,_s,bs;function Nn(){if(mi===void 0){mi=window,gs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;_s=zt(t,"firstChild").get,bs=zt(t,"nextSibling").get,di(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),di(r)&&(r.__t=void 0)}}function Ye(e=""){return document.createTextNode(e)}function nr(e){return _s.call(e)}function pt(e){return bs.call(e)}function Ze(e,t){if(!j)return nr(e);var r=nr(R);if(r===null)r=R.appendChild(Ye());else if(t&&r.nodeType!==en){var n=Ye();return r==null||r.before(n),De(n),n}return De(r),r}function mn(e,t=!1){if(!j){var r=nr(e);return r instanceof Comment&&r.data===""?pt(r):r}if(t&&(R==null?void 0:R.nodeType)!==en){var n=Ye();return R==null||R.before(n),De(n),n}return R}function Cr(e,t=1,r=!1){let n=j?R:e;for(var i;t--;)i=n,n=pt(n);if(!j)return n;if(r&&(n==null?void 0:n.nodeType)!==en){var s=Ye();return n===null?i==null||i.after(s):n.before(s),De(s),s}return De(n),n}function mo(e){e.textContent=""}function go(){return!1}function ys(e){var t=$,r=I;ce(null),Ce(null);try{return e()}finally{ce(t),Ce(r)}}function Es(e){I===null&&($===null&&za(),Ya()),wt&&Va()}function _o(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ze(e,t,r){var o;var n=I;n!==null&&n.f&nt&&(e|=nt);var i={ctx:we,deps:null,nodes:null,f:e|_e|Le,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{mr(i),i.f|=Kr}catch(u){throw xe(i),u}else t!==null&&ft(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&Ut)&&(s=s.first,e&ht&&e&er&&s!==null&&(s.f|=er)),s!==null&&(s.parent=n,n!==null&&_o(s,n),$!==null&&$.f&le&&!(e&Tt))){var a=$;((o=a.effects)!=null?o:a.effects=[]).push(s)}return i}function ni(){return $!==null&&!Ve}function xs(e){const t=ze(wr,null,!1);return se(t,de),t.teardown=e,t}function Vr(e){var i;Es();var t=I.f,r=!$&&(t&ct)!==0&&(t&Kr)===0;if(r){var n=we;((i=n.e)!=null?i:n.e=[]).push(e)}else return ws(e)}function ws(e){return ze(Gr|Xi,e,!1)}function Ts(e){return Es(),ze(wr|Xi,e,!0)}function bo(e){rt.ensure();const t=ze(Tt|Ut,e,!0);return()=>{xe(t)}}function yo(e){rt.ensure();const t=ze(Tt|Ut,e,!0);return(r={})=>new Promise(n=>{r.outro?pr(t,()=>{xe(t),n(void 0)}):(xe(t),n(void 0))})}function Eo(e){return ze(Gr,e,!1)}function xo(e){return ze(qn|Ut,e,!0)}function Ss(e,t=0){return ze(wr|t,e,!0)}function Oe(e,t=[],r=[],n=[]){fo(n,t,r,i=>{ze(wr,()=>e(...i.map(ue)),!0)})}function As(e,t=0){var r=ze(ht|t,e,!0);return r}function st(e){return ze(ct|Ut,e,!0)}function Hs(e){var t=e.teardown;if(t!==null){const r=wt,n=$;gi(!0),ce(null);try{t.call(null)}finally{gi(r),ce(n)}}}function Ms(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&ys(()=>{i.abort(Vt)});var n=r.next;r.f&Tt?r.parent=null:xe(r,t),r=n}}function wo(e){for(var t=e.first;t!==null;){var r=t.next;t.f&ct||xe(t),t=r}}function xe(e,t=!0){var r=!1;(t||e.f&zi)&&e.nodes!==null&&e.nodes.end!==null&&(To(e.nodes.start,e.nodes.end),r=!0),Ms(e,t&&!r),zr(e,0),se(e,lt);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Hs(e);var i=e.parent;i!==null&&i.first!==null&&Os(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function To(e,t){for(;e!==null;){var r=e===t?null:pt(e);e.remove(),e=r}}function Os(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function pr(e,t,r=!0){var n=[];Bs(e,n,!0);var i=()=>{r&&xe(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function Bs(e,t,r){if(!(e.f&nt)){e.f^=nt;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,a=(i.f&er)!==0||(i.f&ct)!==0&&(e.f&ht)!==0;Bs(i,t,a?r:!1),i=s}}}function So(e){$s(e,!0)}function $s(e,t){if(e.f&nt){e.f^=nt,e.f&de||(se(e,_e),ft(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&er)!==0||(r.f&ct)!==0;$s(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 Ps(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:pt(r);t.append(r),r=i}}let Ct=!1;function Yr(e){Ct=e}let wt=!1;function gi(e){wt=e}let $=null,Ve=!1;function ce(e){$=e}let I=null;function Ce(e){I=e}let ge=null;function Ao(e){$!==null&&(ge===null?ge=[e]:ge.push(e))}let Ee=null,Te=0,Be=null;function Ho(e){Be=e}let Ns=1,Ot=0,It=Ot;function _i(e){It=e}function Ls(){return++Ns}function Ar(e){var t=e.f;if(t&_e)return!0;if(t&le&&(e.f&=~Rt),t&dt){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Ar(s)&&ds(s),s.wv>e.wv)return!0}t&Le&&oe===null&&se(e,de)}return!1}function Ds(e,t,r=!0){var n=e.reactions;if(n!==null&&!(ge!=null&&ge.includes(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&le?Ds(s,t,!1):t===s&&(r?se(s,_e):s.f&de&&se(s,dt),ft(s))}}function Cs(e){var y,A;var t=Ee,r=Te,n=Be,i=$,s=ge,a=we,o=Ve,u=It,l=e.f;Ee=null,Te=0,Be=null,$=l&(ct|Tt)?null:e,ge=null,tr(e.ctx),Ve=!1,It=++Ot,e.ac!==null&&(ys(()=>{e.ac.abort(Vt)}),e.ac=null);try{e.f|=An;var f=e.fn,d=f(),c=e.deps;if(Ee!==null){var v;if(zr(e,Te),c!==null&&Te>0)for(c.length=Te+Ee.length,v=0;v<Ee.length;v++)c[Te+v]=Ee[v];else e.deps=c=Ee;if(ni()&&e.f&Le)for(v=Te;v<c.length;v++)((A=(y=c[v]).reactions)!=null?A:y.reactions=[]).push(e)}else c!==null&&Te<c.length&&(zr(e,Te),c.length=Te);if(Ki()&&Be!==null&&!Ve&&c!==null&&!(e.f&(le|dt|_e)))for(v=0;v<Be.length;v++)Ds(Be[v],e);if(i!==null&&i!==e){if(Ot++,i.deps!==null)for(let b=0;b<r;b+=1)i.deps[b].rv=Ot;if(t!==null)for(const b of t)b.rv=Ot;Be!==null&&(n===null?n=Be:n.push(...Be))}return e.f&yt&&(e.f^=yt),d}catch(b){return ts(b)}finally{e.f^=An,Ee=t,Te=r,Be=n,$=i,ge=s,tr(a),Ve=o,It=u}}function Mo(e,t){let r=t.reactions;if(r!==null){var n=Ca.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&le&&(Ee===null||!Ee.includes(t))){var s=t;s.f&Le&&(s.f^=Le,s.f&=~Rt),ti(s),cs(s),zr(s,0)}}function zr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Mo(e,r[n])}function mr(e){var t=e.f;if(!(t&lt)){se(e,de);var r=I,n=Ct;I=e,Ct=!0;try{t&(ht|Yi)?wo(e):Ms(e),Hs(e);var i=Cs(e);e.teardown=typeof i=="function"?i:null,e.wv=Ns;var s;Sn&&ro&&e.f&_e&&e.deps}finally{Ct=n,I=r}}}function ue(e){var f;var t=e.f,r=(t&le)!==0;if($!==null&&!Ve){var n=I!==null&&(I.f&lt)!==0;if(!n&&!(ge!=null&&ge.includes(e))){var i=$.deps;if($.f&An)e.rv<Ot&&(e.rv=Ot,Ee===null&&i!==null&&i[Te]===e?Te++:Ee===null?Ee=[e]:Ee.push(e));else{((f=$.deps)!=null?f:$.deps=[]).push(e);var s=e.reactions;s===null?e.reactions=[$]:s.includes($)||s.push($)}}}if(wt&&Et.has(e))return Et.get(e);if(r){var a=e;if(wt){var o=a.v;return(!(a.f&de)&&a.reactions!==null||Rs(a))&&(o=ri(a)),Et.set(a,o),o}var u=(a.f&Le)===0&&!Ve&&$!==null&&(Ct||($.f&Le)!==0),l=a.deps===null;Ar(a)&&(u&&(a.f|=Le),ds(a)),u&&!l&&Is(a)}if(oe!=null&&oe.has(e))return oe.get(e);if(e.f&yt)throw e.v;return e.v}function Is(e){var t;if(e.deps!==null){e.f|=Le;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),r.f&le&&!(r.f&Le)&&Is(r)}}function Rs(e){if(e.v===ae)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Et.has(t)||t.f&le&&Rs(t))return!0;return!1}function nn(e){var t=Ve;try{return Ve=!0,e()}finally{Ve=t}}const Us=new Set,Ln=new Set;function Fs(e){for(var t=0;t<e.length;t++)Us.add(e[t]);for(var r of Ln)r(e)}let bi=null;function $r(e){var b;var t=this,r=t.ownerDocument,n=e.type,i=((b=e.composedPath)==null?void 0:b.call(e))||[],s=i[0]||e.target;bi=e;var a=0,o=bi===e&&e.__root;if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(s=i[a]||e.target,s!==t){vr(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=$,d=I;ce(null),Ce(null);try{for(var c,v=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var A=s["__"+n];A!=null&&(!s.disabled||e.target===s)&&A.call(s,e)}catch(T){c?v.push(T):c=T}if(e.cancelBubble||y===t||y===null)break;s=y}if(c){for(let T of v)queueMicrotask(()=>{throw T});throw c}}finally{e.__root=t,delete e.currentTarget,ce(f),Ce(d)}}}function Oo(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function xt(e,t){var r=I;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function St(e,t){var r=(t&Pa)!==0,n=(t&Na)!==0,i,s=!e.startsWith("<!>");return()=>{if(j)return xt(R,null),R;i===void 0&&(i=Oo(s?e:"<!>"+e),r||(i=nr(i)));var a=n||gs?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=nr(a),u=a.lastChild;xt(o,u)}else xt(a,a);return a}}function Bo(e=""){if(!j){var t=Ye(e+"");return xt(t,t),t}var r=R;return r.nodeType!==en&&(r.before(r=Ye()),De(r)),xt(r,r),r}function $o(){if(j)return xt(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(""),r=Ye();return e.append(t,r),xt(t,r),e}function je(e,t){if(j){var r=I;(!(r.f&Kr)||r.nodes.end===null)&&(r.nodes.end=R),Jn();return}e!==null&&e.before(t)}const Po=["touchstart","touchmove"];function No(e){return Po.includes(e)}function Ht(e,t){var n;var r=t==null?"":typeof t=="object"?t+"":t;r!==((n=e.__t)!=null?n:e.__t=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Gs(e,t){return js(e,t)}function Lo(e,t){var a;Nn(),t.intro=(a=t.intro)!=null?a:!1;const r=t.target,n=j,i=R;try{for(var s=nr(r);s&&(s.nodeType!==Tr||s.data!==Fi);)s=pt(s);if(!s)throw Kt;gt(!0),De(s);const o=js(e,Or(Mr({},t),{anchor:s}));return gt(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(u=>u.startsWith("https://svelte.dev/e/")))throw o;return o!==Kt&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Wa(),Nn(),mo(r),gt(!1),Gs(e,t)}finally{gt(n),De(i)}}const jt=new Map;function js(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){Nn();var o=new Set,u=d=>{for(var c=0;c<d.length;c++){var v=d[c];if(!o.has(v)){o.add(v);var y=No(v);t.addEventListener(v,$r,{passive:y});var A=jt.get(v);A===void 0?(document.addEventListener(v,$r,{passive:y}),jt.set(v,1)):jt.set(v,A+1)}}};u(Ia(Us)),Ln.add(u);var l=void 0,f=yo(()=>{var d=r!=null?r:t.appendChild(Ye());return uo(d,{pending:()=>{}},c=>{if(s){Qn({});var v=we;v.c=s}if(i&&(n.$$events=i),j&&xt(c,null),l=e(c,n)||{},j&&(I.nodes.end=R,R===null||R.nodeType!==Tr||R.data!==Gi))throw tn(),Kt;s&&Kn()}),()=>{var y;for(var c of o){t.removeEventListener(c,$r);var v=jt.get(c);--v===0?(document.removeEventListener(c,$r),jt.delete(c)):jt.set(c,v)}Ln.delete(u),d!==r&&((y=d.parentNode)==null||y.removeChild(d))}});return Dn.set(l,f),l}let Dn=new WeakMap;function Do(e,t){const r=Dn.get(e);return r?(Dn.delete(e),r(t)):Promise.resolve()}var ke,et,Ae,Dt,Er,xr,Qr;class Co{constructor(t,r=!0){W(this,"anchor");N(this,ke,new Map);N(this,et,new Map);N(this,Ae,new Map);N(this,Dt,new Set);N(this,Er,!0);N(this,xr,()=>{var t=G;if(h(this,ke).has(t)){var r=h(this,ke).get(t),n=h(this,et).get(r);if(n)So(n),h(this,Dt).delete(r);else{var i=h(this,Ae).get(r);i&&(h(this,et).set(r,i.effect),h(this,Ae).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of h(this,ke)){if(h(this,ke).delete(s),s===t)break;const o=h(this,Ae).get(a);o&&(xe(o.effect),h(this,Ae).delete(a))}for(const[s,a]of h(this,et)){if(s===r||h(this,Dt).has(s))continue;const o=()=>{if(Array.from(h(this,ke).values()).includes(s)){var l=document.createDocumentFragment();Ps(a,l),l.append(Ye()),h(this,Ae).set(s,{effect:a,fragment:l})}else xe(a);h(this,Dt).delete(s),h(this,et).delete(s)};h(this,Er)||!n?(h(this,Dt).add(s),pr(a,o,!1)):o()}}});N(this,Qr,t=>{h(this,ke).delete(t);const r=Array.from(h(this,ke).values());for(const[n,i]of h(this,Ae))r.includes(n)||(xe(i.effect),h(this,Ae).delete(n))});this.anchor=t,B(this,Er,r)}ensure(t,r){var n=G,i=go();if(r&&!h(this,et).has(t)&&!h(this,Ae).has(t))if(i){var s=document.createDocumentFragment(),a=Ye();s.append(a),h(this,Ae).set(t,{effect:st(()=>r(a)),fragment:s})}else h(this,et).set(t,st(()=>r(this.anchor)));if(h(this,ke).set(n,t),i){for(const[o,u]of h(this,et))o===t?n.skipped_effects.delete(u):n.skipped_effects.add(u);for(const[o,u]of h(this,Ae))o===t?n.skipped_effects.delete(u.effect):n.skipped_effects.add(u.effect);n.oncommit(h(this,xr)),n.ondiscard(h(this,Qr))}else j&&(this.anchor=R),h(this,xr).call(this)}}ke=new WeakMap,et=new WeakMap,Ae=new WeakMap,Dt=new WeakMap,Er=new WeakMap,xr=new WeakMap,Qr=new WeakMap;function Io(e){we===null&&Wi(),Vr(()=>{const t=nn(e);if(typeof t=="function")return t})}function Ro(e){we===null&&Wi(),Io(()=>()=>nn(e))}function hr(e,t,r=!1){j&&Jn();var n=new Co(e),i=r?er:0;function s(a,o){if(j){const l=eo(e)===Wn;if(a===l){var u=qi();De(u),n.anchor=u,gt(!1),n.ensure(a,o),gt(!0);return}}n.ensure(a,o)}As(()=>{var a=!1;t((o,u=!0)=>{a=!0,s(u,o)}),a||s(!1,null)},i)}function ks(e,t){Eo(()=>{var i;var r=e.getRootNode(),n=r.host?r:(i=r.head)!=null?i:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function Vs(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Vs(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Uo(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Vs(e))&&(n&&(n+=" "),n+=t);return n}function Fo(e){return typeof e=="object"?Uo(e):e!=null?e:""}function Go(e,t,r){var n=e==null?"":""+e;return t&&(n=n?n+" "+t:t),n===""?null:n}function yi(e,t=!1){var r=t?" !important;":";",n="";for(var i in e){var s=e[i];s!=null&&s!==""&&(n+=" "+i+": "+s+r)}return n}function gn(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function jo(e,t){if(t){var r="",n,i;if(Array.isArray(t)?(n=t[0],i=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,a=0,o=!1,u=[];n&&u.push(...Object.keys(n).map(gn)),i&&u.push(...Object.keys(i).map(gn));var l=0,f=-1;const A=e.length;for(var d=0;d<A;d++){var c=e[d];if(o?c==="/"&&e[d-1]==="*"&&(o=!1):s?s===c&&(s=!1):c==="/"&&e[d+1]==="*"?o=!0:c==='"'||c==="'"?s=c:c==="("?a++:c===")"&&a--,!o&&s===!1&&a===0){if(c===":"&&f===-1)f=d;else if(c===";"||d===A-1){if(f!==-1){var v=gn(e.substring(l,f).trim());if(!u.includes(v)){c!==";"&&d++;var y=e.substring(l,d).trim();r+=" "+y+";"}}l=d+1,f=-1}}}}return n&&(r+=yi(n)),i&&(r+=yi(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function Cn(e,t,r,n,i,s){var a=e.__className;if(j||a!==r||a===void 0){var o=Go(r,n);(!j||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return s}function _n(e,t={},r,n){for(var i in r){var s=r[i];t[i]!==s&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,s,n))}}function Ys(e,t,r,n){var i=e.__style;if(j||i!==t){var s=jo(t,n);(!j||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}else n&&(Array.isArray(n)?(_n(e,r==null?void 0:r[0],n[0]),_n(e,r==null?void 0:r[1],n[1],"important")):_n(e,r,n));return n}const ko=Symbol("is custom element"),Vo=Symbol("is html");function ii(e,t,r,n){var i=Yo(e);j&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[ja]=r),r==null?e.removeAttribute(t):typeof r!="string"&&zs(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Pr(e,t,r){var n=$,i=I;let s=j;j&&gt(!1),ce(null),Ce(null);try{t!=="style"&&(In.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?zs(e).includes(t):r&&typeof r=="object")?e[t]=r:ii(e,t,r==null?r:String(r))}finally{ce(n),Ce(i),s&&gt(!0)}}function Yo(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[ko]:e.nodeName.includes("-"),[Vo]:e.namespaceURI===La}}var In=new Map;function zs(e){var t=e.getAttribute("is")||e.nodeName,r=In.get(t);if(r)return r;In.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Ra(i);for(var a in n)n[a].set&&r.push(a);i=ji(i)}return r}function si(e,t,r){if(e==null)return t(void 0),r&&r(void 0),bt;const n=nn(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const kt=[];function zo(e,t){return{subscribe:sn(e,t).subscribe}}function sn(e,t=bt){let r=null;const n=new Set;function i(o){if(Qi(e,o)&&(e=o,r)){const u=!kt.length;for(const l of n)l[1](),kt.push(l,e);if(u){for(let l=0;l<kt.length;l+=2)kt[l][0](kt[l+1]);kt.length=0}}}function s(o){i(o(e))}function a(o,u=bt){const l=[o,u];return n.add(l),n.size===1&&(r=t(i,s)||bt),o(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function ur(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 zo(r,(a,o)=>{let u=!1;const l=[];let f=0,d=bt;const c=()=>{if(f)return;d();const y=t(n?l[0]:l,a,o);s?a(y):d=typeof y=="function"?y:bt},v=i.map((y,A)=>si(y,b=>{l[A]=b,f&=~(1<<A),u&&c()},()=>{f|=1<<A}));return u=!0,c(),function(){ki(v),d(),u=!1}})}function Xo(e){let t;return si(e,r=>t=r)(),t}let Rn=Symbol();function Xs(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:vs(void 0),unsubscribe:bt};if(n.store!==e&&!(Rn in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=bt;else{var i=!0;n.unsubscribe=si(e,a=>{i?n.source.v=a:ee(n.source,a)}),i=!1}return e&&Rn in r?Xo(e):ue(n.source)}function Ws(){const e={};function t(){xs(()=>{for(var r in e)e[r].unsubscribe();vr(e,Rn,{enumerable:!1,value:!0})})}return[e,t]}function qe(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var u;u=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var l=!1,f=hs(()=>(l=!1,u())),d=I;return function(c,v){if(arguments.length>0){const y=v?ue(f):c;return ee(f,y),l=!0,i!==void 0&&(i=y),c}return wt&&l||d.f&lt?f.v:ue(f)}}function Wo(e){return new Zo(e)}var ut,Pe;class Zo{constructor(t){N(this,ut);N(this,Pe);var s,a;var r=new Map,n=(o,u)=>{var l=vs(u,!1,!1);return r.set(o,l),l};const i=new Proxy(Or(Mr({},t.props||{}),{$$events:{}}),{get(o,u){var l;return ue((l=r.get(u))!=null?l:n(u,Reflect.get(o,u)))},has(o,u){var l;return u===Ga?!0:(ue((l=r.get(u))!=null?l:n(u,Reflect.get(o,u))),Reflect.has(o,u))},set(o,u,l){var f;return ee((f=r.get(u))!=null?f:n(u,l),l),Reflect.set(o,u,l)}});B(this,Pe,(t.hydrate?Lo:Gs)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover})),(!((a=t==null?void 0:t.props)!=null&&a.$$host)||t.sync===!1)&&Fe(),B(this,ut,i.$$events);for(const o of Object.keys(h(this,Pe)))o==="$set"||o==="$destroy"||o==="$on"||vr(this,o,{get(){return h(this,Pe)[o]},set(u){h(this,Pe)[o]=u},enumerable:!0});h(this,Pe).$set=o=>{Object.assign(i,o)},h(this,Pe).$destroy=()=>{Do(h(this,Pe))}}$set(t){h(this,Pe).$set(t)}$on(t,r){h(this,ut)[t]=h(this,ut)[t]||[];const n=(...i)=>r.call(this,...i);return h(this,ut)[t].push(n),()=>{h(this,ut)[t]=h(this,ut)[t].filter(i=>i!==n)}}$destroy(){h(this,Pe).$destroy()}}ut=new WeakMap,Pe=new WeakMap;let Zs;typeof HTMLElement=="function"&&(Zs=class extends HTMLElement{constructor(t,r,n){super();W(this,"$$ctor");W(this,"$$s");W(this,"$$c");W(this,"$$cn",!1);W(this,"$$d",{});W(this,"$$r",!1);W(this,"$$p_d",{});W(this,"$$l",{});W(this,"$$l_u",new Map);W(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return ci(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const a=document.createElement("slot");i!=="default"&&(a.name=i),je(s,a)}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=qo(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=Ir(s,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Wo({component:this.$$ctor,target:this.shadowRoot||this,props:Or(Mr({},this.$$d),{$$slots:r,$$host:this})}),this.$$me=bo(()=>{Ss(()=>{var i;this.$$r=!0;for(const s of Fr(this.$$c)){if(!((i=this.$$p_d[s])!=null&&i.reflect))continue;this.$$d[s]=this.$$c[s];const a=Ir(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const a=this.$$c.$on(i,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ir(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 Fr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Ir(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 qo(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function qs(e,t,r,n,i,s){let a=class extends Zs{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Fr(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Fr(t).forEach(o=>{vr(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var d;u=Ir(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var f=(d=zt(l,o))==null?void 0:d.get;f?l[o]=u:l.$set({[o]:u})}}})}),n.forEach(o=>{vr(a.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=a,a}var ai=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function an(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jo=function(t){return Qo(t)&&!Ko(t)};function Qo(e){return!!e&&typeof e=="object"}function Ko(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ru(e)}var eu=typeof Symbol=="function"&&Symbol.for,tu=eu?Symbol.for("react.element"):60103;function ru(e){return e.$$typeof===tu}function nu(e){return Array.isArray(e)?[]:{}}function gr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ir(nu(e),e,t):e}function iu(e,t,r){return e.concat(t).map(function(n){return gr(n,r)})}function su(e,t){if(!t.customMerge)return ir;var r=t.customMerge(e);return typeof r=="function"?r:ir}function au(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ei(e){return Object.keys(e).concat(au(e))}function Js(e,t){try{return t in e}catch(r){return!1}}function ou(e,t){return Js(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function uu(e,t,r){var n={};return r.isMergeableObject(e)&&Ei(e).forEach(function(i){n[i]=gr(e[i],r)}),Ei(t).forEach(function(i){ou(e,i)||(Js(e,i)&&r.isMergeableObject(t[i])?n[i]=su(i,r)(e[i],t[i],r):n[i]=gr(t[i],r))}),n}function ir(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||iu,r.isMergeableObject=r.isMergeableObject||Jo,r.cloneUnlessOtherwiseSpecified=gr;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):uu(e,t,r):gr(t,r)}ir.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return ir(n,i,r)},{})};var lu=ir,fu=lu;const hu=an(fu);var Un=function(e,t){return Un=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])},Un(e,t)};function on(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Un(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var tt=function(){return tt=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},tt.apply(this,arguments)};function cu(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 bn(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 yn(e,t){var r=t&&t.cache?t.cache:bu,n=t&&t.serializer?t.serializer:gu,i=t&&t.strategy?t.strategy:vu;return i(e,{cache:r,serializer:n})}function du(e){return e==null||typeof e=="number"||typeof e=="boolean"}function pu(e,t,r,n){var i=du(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Qs(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 Ks(e,t,r,n,i){return r.bind(t,e,n,i)}function vu(e,t){var r=e.length===1?pu:Qs;return Ks(e,this,r,t.cache.create(),t.serializer)}function mu(e,t){return Ks(e,this,Qs,t.cache.create(),t.serializer)}var gu=function(){return JSON.stringify(arguments)},_u=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}(),bu={create:function(){return new _u}},En={variadic:mu},Xr=function(){return Xr=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},Xr.apply(this,arguments)};var L;(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"})(L||(L={}));var V;(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"})(V||(V={}));var sr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(sr||(sr={}));function xi(e){return e.type===V.literal}function yu(e){return e.type===V.argument}function ea(e){return e.type===V.number}function ta(e){return e.type===V.date}function ra(e){return e.type===V.time}function na(e){return e.type===V.select}function ia(e){return e.type===V.plural}function Eu(e){return e.type===V.pound}function sa(e){return e.type===V.tag}function aa(e){return!!(e&&typeof e=="object"&&e.type===sr.number)}function Fn(e){return!!(e&&typeof e=="object"&&e.type===sr.dateTime)}var oa=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,xu=/(?:[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 wu(e){var t={};return e.replace(xu,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 X=function(){return X=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},X.apply(this,arguments)};var Tu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Su(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Tu).filter(function(c){return c.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],u=a.slice(1),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 Au(e){return e.replace(/^(.*?)-/,"")}var wi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ua=/^(@+)?(\+|#+)?[rs]?$/g,Hu=/(\*)(0+)|(#+)(0+)|(0+)/g,la=/^(0+)$/;function Ti(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ua,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 fa(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 Mu(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)),!la.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Si(e){var t={},r=fa(e);return r||t}function Ou(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=Au(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=X(X(X({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return X(X({},u),Si(l))},{}));continue;case"engineering":t=X(X(X({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return X(X({},u),Si(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(Hu,function(u,l,f,d,c,v){if(l)t.minimumIntegerDigits=f.length;else{if(d&&c)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return""});continue}if(la.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(wi.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(wi,function(u,l,f,d,c,v){return f==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:c&&v?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+v.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=X(X({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=X(X({},t),Ti(s)));continue}if(ua.test(i.stem)){t=X(X({},t),Ti(i.stem));continue}var a=fa(i.stem);a&&(t=X(X({},t),a));var o=Mu(i.stem);o&&(t=X(X({},t),o))}return t}var Nr={"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 Bu(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=$u(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 $u(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=Nr[n||""]||Nr[r||""]||Nr["".concat(r,"-001")]||Nr["001"];return i[0]}var xn,Pu=new RegExp("^".concat(oa.source,"*")),Nu=new RegExp("".concat(oa.source,"*$"));function D(e,t){return{start:e,end:t}}var Lu=!!String.prototype.startsWith&&"_a".startsWith("a",1),Du=!!String.fromCodePoint,Cu=!!Object.fromEntries,Iu=!!String.prototype.codePointAt,Ru=!!String.prototype.trimStart,Uu=!!String.prototype.trimEnd,Fu=!!Number.isSafeInteger,Gu=Fu?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Gn=!0;try{var ju=ca("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Gn=((xn=ju.exec("a"))===null||xn===void 0?void 0:xn[0])==="a"}catch(e){Gn=!1}var Ai=Lu?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},jn=Du?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},Hi=Cu?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},ha=Iu?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}},ku=Ru?function(t){return t.trimStart()}:function(t){return t.replace(Pu,"")},Vu=Uu?function(t){return t.trimEnd()}:function(t){return t.replace(Nu,"")};function ca(e,t){return new RegExp(e,t)}var kn;if(Gn){var Mi=ca("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kn=function(t,r){var n;Mi.lastIndex=r;var i=Mi.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else kn=function(t,r){for(var n=[];;){var i=ha(t,r);if(i===void 0||da(i)||Wu(i))break;n.push(i),r+=i>=65536?2:1}return jn.apply(void 0,n)};var Yu=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:V.pound,location:D(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(L.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Vn(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:V.literal,value:"<".concat(i,"/>"),location:D(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()||!Vn(this.char()))return this.error(L.INVALID_TAG,D(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(L.UNMATCHED_CLOSING_TAG,D(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:V.tag,value:i,children:a,location:D(n,this.clonePosition())},err:null}:this.error(L.INVALID_TAG,D(o,this.clonePosition())))}else return this.error(L.UNCLOSED_TAG,D(n,this.clonePosition()))}else return this.error(L.INVALID_TAG,D(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Xu(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=D(n,this.clonePosition());return{val:{type:V.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!zu(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 jn.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(),jn(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(L.EMPTY_ARGUMENT,D(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(L.MALFORMED_ARGUMENT,D(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:V.argument,value:i,location:D(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(L.MALFORMED_ARGUMENT,D(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=kn(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=D(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(L.EXPECT_ARGUMENT_TYPE,D(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 c=Vu(d.val);if(c.length===0)return this.error(L.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));var v=D(f,this.clonePosition());l={style:c,styleLocation:v}}var y=this.tryParseArgumentClose(i);if(y.err)return y;var A=D(i,this.clonePosition());if(l&&Ai(l==null?void 0:l.style,"::",0)){var b=ku(l.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(b,l.styleLocation);return d.err?d:{val:{type:V.number,value:n,location:A,style:d.val},err:null}}else{if(b.length===0)return this.error(L.EXPECT_DATE_TIME_SKELETON,A);var T=b;this.locale&&(T=Bu(b,this.locale));var c={type:sr.dateTime,pattern:T,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?wu(T):{}},P=o==="date"?V.date:V.time;return{val:{type:P,value:n,location:A,style:c},err:null}}}return{val:{type:o==="number"?V.number:o==="date"?V.date:V.time,value:n,location:A,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(L.EXPECT_SELECT_ARGUMENT_OPTIONS,D(M,Xr({},M)));this.bumpSpace();var J=this.parseIdentifierIfPossible(),k=0;if(o!=="select"&&J.value==="offset"){if(!this.bumpIf(":"))return this.error(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),J=this.parseIdentifierIfPossible(),k=d.val}var Z=this.tryParsePluralOrSelectOptions(t,o,r,J);if(Z.err)return Z;var y=this.tryParseArgumentClose(i);if(y.err)return y;var pe=D(i,this.clonePosition());return o==="select"?{val:{type:V.select,value:n,options:Hi(Z.val),location:pe},err:null}:{val:{type:V.plural,value:n,options:Hi(Z.val),offset:k,pluralType:o==="plural"?"cardinal":"ordinal",location:pe},err:null}}default:return this.error(L.INVALID_ARGUMENT_TYPE,D(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,D(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(L.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(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=Su(t)}catch(i){return this.error(L.INVALID_NUMBER_SKELETON,r)}return{val:{type:sr.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ou(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 c=this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_SELECTOR,L.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;f=D(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?L.DUPLICATE_SELECT_ARGUMENT_SELECTOR:L.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?L.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:L.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,D(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var A=this.tryParseArgumentClose(v);if(A.err)return A;o.push([l,{value:y.val,location:D(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"?L.EXPECT_SELECT_ARGUMENT_SELECTOR:L.EXPECT_PLURAL_ARGUMENT_SELECTOR,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(L.MISSING_OTHER_CLAUSE,D(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=D(i,this.clonePosition());return s?(a*=n,Gu(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=ha(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(Ai(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()&&da(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 Vn(e){return e>=97&&e<=122||e>=65&&e<=90}function zu(e){return Vn(e)||e===47}function Xu(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 da(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Wu(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 Yn(e){e.forEach(function(t){if(delete t.location,na(t)||ia(t))for(var r in t.options)delete t.options[r].location,Yn(t.options[r].value);else ea(t)&&aa(t.style)||(ta(t)||ra(t))&&Fn(t.style)?delete t.style.location:sa(t)&&Yn(t.children)})}function Zu(e,t){t===void 0&&(t={}),t=Xr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Yu(e,t).parse();if(r.err){var n=SyntaxError(L[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Yn(r.val),r.val}var ar;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ar||(ar={}));var un=function(e){on(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),Oi=function(e){on(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('", "'),'"'),ar.INVALID_VALUE,s)||this}return t}(un),qu=function(e){on(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),ar.INVALID_VALUE,i)||this}return t}(un),Ju=function(e){on(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,'"'),ar.MISSING_VALUE,n)||this}return t}(un),me;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(me||(me={}));function Qu(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==me.literal||r.type!==me.literal?t.push(r):n.value+=r.value,t},[])}function Ku(e){return typeof e=="function"}function Rr(e,t,r,n,i,s,a){if(e.length===1&&xi(e[0]))return[{type:me.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var f=l[u];if(xi(f)){o.push({type:me.literal,value:f.value});continue}if(Eu(f)){typeof s=="number"&&o.push({type:me.literal,value:r.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(i&&d in i))throw new Ju(d,a);var c=i[d];if(yu(f)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),o.push({type:typeof c=="string"?me.literal:me.object,value:c});continue}if(ta(f)){var v=typeof f.style=="string"?n.date[f.style]:Fn(f.style)?f.style.parsedOptions:void 0;o.push({type:me.literal,value:r.getDateTimeFormat(t,v).format(c)});continue}if(ra(f)){var v=typeof f.style=="string"?n.time[f.style]:Fn(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:me.literal,value:r.getDateTimeFormat(t,v).format(c)});continue}if(ea(f)){var v=typeof f.style=="string"?n.number[f.style]:aa(f.style)?f.style.parsedOptions:void 0;v&&v.scale&&(c=c*(v.scale||1)),o.push({type:me.literal,value:r.getNumberFormat(t,v).format(c)});continue}if(sa(f)){var y=f.children,A=f.value,b=i[A];if(!Ku(b))throw new qu(A,"function",a);var T=Rr(y,t,r,n,i,s),P=b(T.map(function(k){return k.value}));Array.isArray(P)||(P=[P]),o.push.apply(o,P.map(function(k){return{type:typeof k=="string"?me.literal:me.object,value:k}}))}if(na(f)){var M=f.options[c]||f.options.other;if(!M)throw new Oi(f.value,c,Object.keys(f.options),a);o.push.apply(o,Rr(M.value,t,r,n,i));continue}if(ia(f)){var M=f.options["=".concat(c)];if(!M){if(!Intl.PluralRules)throw new un(`Intl.PluralRules is not available in this environment.
3
+ Try polyfilling it using "@formatjs/intl-pluralrules"
4
+ `,ar.MISSING_INTL_API,a);var J=r.getPluralRules(t,{type:f.pluralType}).select(c-(f.offset||0));M=f.options[J]||f.options.other}if(!M)throw new Oi(f.value,c,Object.keys(f.options),a);o.push.apply(o,Rr(M.value,t,r,n,i,c-(f.offset||0)));continue}}return Qu(o)}function el(e,t){return t?tt(tt(tt({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=tt(tt({},e[n]),t[n]||{}),r},{})):e}function tl(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=el(e[n],t[n]),r},tt({},e)):e}function wn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function rl(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:yn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,bn([void 0],r,!1)))},{cache:wn(e.number),strategy:En.variadic}),getDateTimeFormat:yn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,bn([void 0],r,!1)))},{cache:wn(e.dateTime),strategy:En.variadic}),getPluralRules:yn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,bn([void 0],r,!1)))},{cache:wn(e.pluralRules),strategy:En.variadic})}}var nl=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(d,c){return!d.length||c.type!==me.literal||typeof d[d.length-1]!="string"?d.push(c.value):d[d.length-1]+=c.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return Rr(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=cu(a,["formatters"]);this.ast=e.__parse(t,tt(tt({},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=tl(e.formats,n),this.formatters=i&&i.formatters||rl(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=Zu,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 il(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 _t={},sl=(e,t,r)=>r&&(t in _t||(_t[t]={}),e in _t[t]||(_t[t][e]=r),r),pa=(e,t)=>{if(t==null)return;if(t in _t&&e in _t[t])return _t[t][e];const r=ln(t);for(let n=0;n<r.length;n++){const i=r[n],s=ol(i,e);if(s)return sl(e,t,s)}};let oi;const Hr=sn({});function al(e){return oi[e]||null}function va(e){return e in oi}function ol(e,t){if(!va(e))return null;const r=al(e);return il(r,t)}function ul(e){if(e==null)return;const t=ln(e);for(let r=0;r<t.length;r++){const n=t[r];if(va(n))return n}}function ui(e,...t){delete _t[e],Hr.update(r=>(r[e]=hu.all([r[e]||{},...t]),r))}ur([Hr],([e])=>Object.keys(e));Hr.subscribe(e=>oi=e);const Ur={};function ll(e,t){Ur[e].delete(t),Ur[e].size===0&&delete Ur[e]}function ma(e){return Ur[e]}function fl(e){return ln(e).map(t=>{const r=ma(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function zn(e){return e==null?!1:ln(e).some(t=>{var r;return(r=ma(t))==null?void 0:r.size})}function hl(e,t){return Promise.all(t.map(n=>(ll(e,n),n().then(i=>i.default||i)))).then(n=>ui(e,...n))}const fr={};function ga(e){if(!zn(e))return e in fr?fr[e]:Promise.resolve();const t=fl(e);return fr[e]=Promise.all(t.map(([r,n])=>hl(r,n))).then(()=>{if(zn(e))return ga(e);delete fr[e]}),fr[e]}const cl={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"}}},dl={fallbackLocale:null,loadingDelay:200,formats:cl,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},pl=dl;function or(){return pl}const Tn=sn(!1);var vl=Object.defineProperty,ml=Object.defineProperties,gl=Object.getOwnPropertyDescriptors,Bi=Object.getOwnPropertySymbols,_l=Object.prototype.hasOwnProperty,bl=Object.prototype.propertyIsEnumerable,$i=(e,t,r)=>t in e?vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yl=(e,t)=>{for(var r in t||(t={}))_l.call(t,r)&&$i(e,r,t[r]);if(Bi)for(var r of Bi(t))bl.call(t,r)&&$i(e,r,t[r]);return e},El=(e,t)=>ml(e,gl(t));let Xn;const Wr=sn(null);function Pi(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ln(e,t=or().fallbackLocale){const r=Pi(e);return t?[...new Set([...r,...Pi(t)])]:r}function Ft(){return Xn!=null?Xn:void 0}Wr.subscribe(e=>{Xn=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const xl=e=>{if(e&&ul(e)&&zn(e)){const{loadingDelay:t}=or();let r;return typeof window!="undefined"&&Ft()!=null&&t?r=window.setTimeout(()=>Tn.set(!0),t):Tn.set(!0),ga(e).then(()=>{Wr.set(e)}).finally(()=>{clearTimeout(r),Tn.set(!1)})}return Wr.set(e)},Gt=El(yl({},Wr),{set:xl}),fn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var wl=Object.defineProperty,Zr=Object.getOwnPropertySymbols,_a=Object.prototype.hasOwnProperty,ba=Object.prototype.propertyIsEnumerable,Ni=(e,t,r)=>t in e?wl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,li=(e,t)=>{for(var r in t||(t={}))_a.call(t,r)&&Ni(e,r,t[r]);if(Zr)for(var r of Zr(t))ba.call(t,r)&&Ni(e,r,t[r]);return e},lr=(e,t)=>{var r={};for(var n in e)_a.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&&ba.call(e,n)&&(r[n]=e[n]);return r};const _r=(e,t)=>{const{formats:r}=or();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Tl=fn(e=>{var t=e,{locale:r,format:n}=t,i=lr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=_r("number",n)),new Intl.NumberFormat(r,i)}),Sl=fn(e=>{var t=e,{locale:r,format:n}=t,i=lr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=_r("date",n):Object.keys(i).length===0&&(i=_r("date","short")),new Intl.DateTimeFormat(r,i)}),Al=fn(e=>{var t=e,{locale:r,format:n}=t,i=lr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=_r("time",n):Object.keys(i).length===0&&(i=_r("time","short")),new Intl.DateTimeFormat(r,i)}),Hl=(e={})=>{var t=e,{locale:r=Ft()}=t,n=lr(t,["locale"]);return Tl(li({locale:r},n))},Ml=(e={})=>{var t=e,{locale:r=Ft()}=t,n=lr(t,["locale"]);return Sl(li({locale:r},n))},Ol=(e={})=>{var t=e,{locale:r=Ft()}=t,n=lr(t,["locale"]);return Al(li({locale:r},n))},Bl=fn((e,t=Ft())=>new nl(e,t,or().formats,{ignoreTag:or().ignoreTag})),$l=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=Ft(),default:l}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=pa(e,u);if(!f)f=(s=(i=(n=(r=or()).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=Bl(f,u).format(o)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return d},Pl=(e,t)=>Ol(t).format(e),Nl=(e,t)=>Ml(t).format(e),Ll=(e,t)=>Hl(t).format(e),Dl=(e,t=Ft())=>pa(e,t),ya=ur([Gt,Hr],()=>$l);ur([Gt],()=>Pl);ur([Gt],()=>Nl);ur([Gt],()=>Ll);ur([Gt,Hr],()=>Dl);function Li(e,t){ui(e,t)}function Di(e){Gt.set(e)}const Ci={en:{Unstarted:"Coming soon",Running:"Live",Closed:"Ended",Closing:"Ended",startDateLabel:"Start Date:",viewDetailsButton:"View Details",detailsButton:"Details",loginButton:"Login",registerButton:"Register",endsInLabel:"Ends in:",joinButton:"Join",daysLabel:"Days",enrolledLabel:"Enrolled"},tr:{Unstarted:"Yakında",Running:"Canlı",Closed:"Sona Erdi",Closing:"Sona Erdi",startDateLabel:"Başlangıç Tarihi:",viewDetailsButton:"Detayları Görüntüle",detailsButton:"Detaylar",loginButton:"Giriş Yap",registerButton:"Kayıt Ol",endsInLabel:"Bitiş:",joinButton:"Katıl",daysLabel:"Gün",enrolledLabel:"Kayıtlı"}};var Ea={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ai,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",l="day",f="week",d="month",c="quarter",v="year",y="date",A="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var g=["th","st","nd","rd"],m=x%100;return"["+x+(g[(m-20)%10]||g[m]||g[0])+"]"}},M=function(x,g,m){var E=String(x);return!E||E.length>=g?x:""+Array(g+1-E.length).join(m)+x},J={s:M,z:function(x){var g=-x.utcOffset(),m=Math.abs(g),E=Math.floor(m/60),_=m%60;return(g<=0?"+":"-")+M(E,2,"0")+":"+M(_,2,"0")},m:function x(g,m){if(g.date()<m.date())return-x(m,g);var E=12*(m.year()-g.year())+(m.month()-g.month()),_=g.clone().add(E,d),S=m-_<0,p=g.clone().add(E+(S?-1:1),d);return+(-(E+(m-_)/(S?_-p:p-_))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:d,y:v,w:f,d:l,D:y,h:u,m:o,s:a,ms:s,Q:c}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},k="en",Z={};Z[k]=P;var pe="$isDayjsObject",ve=function(x){return x instanceof te||!(!x||!x[pe])},fe=function x(g,m,E){var _;if(!g)return k;if(typeof g=="string"){var S=g.toLowerCase();Z[S]&&(_=S),m&&(Z[S]=m,_=S);var p=g.split("-");if(!_&&p.length>1)return x(p[0])}else{var w=g.name;Z[w]=g,_=w}return!E&&_&&(k=_),_||!E&&k},F=function(x,g){if(ve(x))return x.clone();var m=typeof g=="object"?g:{};return m.date=x,m.args=arguments,new te(m)},H=J;H.l=fe,H.i=ve,H.w=function(x,g){return F(x,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var te=function(){function x(m){this.$L=fe(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[pe]=!0}var g=x.prototype;return g.parse=function(m){this.$d=function(E){var _=E.date,S=E.utc;if(_===null)return new Date(NaN);if(H.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var p=_.match(b);if(p){var w=p[2]-1||0,O=(p[7]||"0").substring(0,3);return S?new Date(Date.UTC(p[1],w,p[3]||1,p[4]||0,p[5]||0,p[6]||0,O)):new Date(p[1],w,p[3]||1,p[4]||0,p[5]||0,p[6]||0,O)}}return new Date(_)}(m),this.init()},g.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},g.$utils=function(){return H},g.isValid=function(){return this.$d.toString()!==A},g.isSame=function(m,E){var _=F(m);return this.startOf(E)<=_&&_<=this.endOf(E)},g.isAfter=function(m,E){return F(m)<this.startOf(E)},g.isBefore=function(m,E){return this.endOf(E)<F(m)},g.$g=function(m,E,_){return H.u(m)?this[E]:this.set(_,m)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(m,E){var _=this,S=!!H.u(E)||E,p=H.p(m),w=function(Me,z){var be=H.w(_.$u?Date.UTC(_.$y,z,Me):new Date(_.$y,z,Me),_);return S?be:be.endOf(l)},O=function(Me,z){return H.w(_.toDate()[Me].apply(_.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(z)),_)},U=this.$W,C=this.$M,Y=this.$D,ne="set"+(this.$u?"UTC":"");switch(p){case v:return S?w(1,0):w(31,11);case d:return S?w(1,C):w(0,C+1);case f:var he=this.$locale().weekStart||0,Re=(U<he?U+7:U)-he;return w(S?Y-Re:Y+(6-Re),C);case l:case y:return O(ne+"Hours",0);case u:return O(ne+"Minutes",1);case o:return O(ne+"Seconds",2);case a:return O(ne+"Milliseconds",3);default:return this.clone()}},g.endOf=function(m){return this.startOf(m,!1)},g.$set=function(m,E){var _,S=H.p(m),p="set"+(this.$u?"UTC":""),w=(_={},_[l]=p+"Date",_[y]=p+"Date",_[d]=p+"Month",_[v]=p+"FullYear",_[u]=p+"Hours",_[o]=p+"Minutes",_[a]=p+"Seconds",_[s]=p+"Milliseconds",_)[S],O=S===l?this.$D+(E-this.$W):E;if(S===d||S===v){var U=this.clone().set(y,1);U.$d[w](O),U.init(),this.$d=U.set(y,Math.min(this.$D,U.daysInMonth())).$d}else w&&this.$d[w](O);return this.init(),this},g.set=function(m,E){return this.clone().$set(m,E)},g.get=function(m){return this[H.p(m)]()},g.add=function(m,E){var _,S=this;m=Number(m);var p=H.p(E),w=function(C){var Y=F(S);return H.w(Y.date(Y.date()+Math.round(C*m)),S)};if(p===d)return this.set(d,this.$M+m);if(p===v)return this.set(v,this.$y+m);if(p===l)return w(1);if(p===f)return w(7);var O=(_={},_[o]=n,_[u]=i,_[a]=r,_)[p]||1,U=this.$d.getTime()+m*O;return H.w(U,this)},g.subtract=function(m,E){return this.add(-1*m,E)},g.format=function(m){var E=this,_=this.$locale();if(!this.isValid())return _.invalidDate||A;var S=m||"YYYY-MM-DDTHH:mm:ssZ",p=H.z(this),w=this.$H,O=this.$m,U=this.$M,C=_.weekdays,Y=_.months,ne=_.meridiem,he=function(z,be,Ue,Xe){return z&&(z[be]||z(E,S))||Ue[be].slice(0,Xe)},Re=function(z){return H.s(w%12||12,z,"0")},Me=ne||function(z,be,Ue){var Xe=z<12?"AM":"PM";return Ue?Xe.toLowerCase():Xe};return S.replace(T,function(z,be){return be||function(Ue){switch(Ue){case"YY":return String(E.$y).slice(-2);case"YYYY":return H.s(E.$y,4,"0");case"M":return U+1;case"MM":return H.s(U+1,2,"0");case"MMM":return he(_.monthsShort,U,Y,3);case"MMMM":return he(Y,U);case"D":return E.$D;case"DD":return H.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return he(_.weekdaysMin,E.$W,C,2);case"ddd":return he(_.weekdaysShort,E.$W,C,3);case"dddd":return C[E.$W];case"H":return String(w);case"HH":return H.s(w,2,"0");case"h":return Re(1);case"hh":return Re(2);case"a":return Me(w,O,!0);case"A":return Me(w,O,!1);case"m":return String(O);case"mm":return H.s(O,2,"0");case"s":return String(E.$s);case"ss":return H.s(E.$s,2,"0");case"SSS":return H.s(E.$ms,3,"0");case"Z":return p}return null}(z)||p.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(m,E,_){var S,p=this,w=H.p(E),O=F(m),U=(O.utcOffset()-this.utcOffset())*n,C=this-O,Y=function(){return H.m(p,O)};switch(w){case v:S=Y()/12;break;case d:S=Y();break;case c:S=Y()/3;break;case f:S=(C-U)/6048e5;break;case l:S=(C-U)/864e5;break;case u:S=C/i;break;case o:S=C/n;break;case a:S=C/r;break;default:S=C}return _?S:H.a(S)},g.daysInMonth=function(){return this.endOf(d).$D},g.$locale=function(){return Z[this.$L]},g.locale=function(m,E){if(!m)return this.$L;var _=this.clone(),S=fe(m,E,!0);return S&&(_.$L=S),_},g.clone=function(){return H.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},x}(),re=te.prototype;return F.prototype=re,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",l],["$M",d],["$y",v],["$D",y]].forEach(function(x){re[x[1]]=function(g){return this.$g(g,x[0],x[1])}}),F.extend=function(x,g){return x.$i||(x(g,te,F),x.$i=!0),F},F.locale=fe,F.isDayjs=ve,F.unix=function(x){return F(1e3*x)},F.en=Z[k],F.Ls=Z,F.p={},F})})(Ea);var Cl=Ea.exports;const xa=an(Cl);var wa={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ai,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,a=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},l=function(b){return(b=+b)+(b>68?1900:2e3)},f=function(b){return function(T){this[b]=+T}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(T){if(!T||T==="Z")return 0;var P=T.match(/([+-]|\d\d)/g),M=60*P[1]+(+P[2]||0);return M===0?0:P[0]==="+"?-M:M}(b)}],c=function(b){var T=u[b];return T&&(T.indexOf?T:T.s.concat(T.f))},v=function(b,T){var P,M=u.meridiem;if(M){for(var J=1;J<=24;J+=1)if(b.indexOf(M(J,0,T))>-1){P=J>12;break}}else P=b===(T?"pm":"PM");return P},y={A:[o,function(b){this.afternoon=v(b,!1)}],a:[o,function(b){this.afternoon=v(b,!0)}],Q:[i,function(b){this.month=3*(b-1)+1}],S:[i,function(b){this.milliseconds=100*+b}],SS:[s,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[a,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[s,f("day")],Do:[o,function(b){var T=u.ordinal,P=b.match(/\d+/);if(this.day=P[0],T)for(var M=1;M<=31;M+=1)T(M).replace(/\[|\]/g,"")===b&&(this.day=M)}],w:[a,f("week")],ww:[s,f("week")],M:[a,f("month")],MM:[s,f("month")],MMM:[o,function(b){var T=c("months"),P=(c("monthsShort")||T.map(function(M){return M.slice(0,3)})).indexOf(b)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[o,function(b){var T=c("months").indexOf(b)+1;if(T<1)throw new Error;this.month=T%12||T}],Y:[/[+-]?\d+/,f("year")],YY:[s,function(b){this.year=l(b)}],YYYY:[/\d{4}/,f("year")],Z:d,ZZ:d};function A(b){var T,P;T=b,P=u&&u.formats;for(var M=(b=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(F,H,te){var re=te&&te.toUpperCase();return H||P[te]||r[te]||P[re].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,g,m){return g||m.slice(1)})})).match(n),J=M.length,k=0;k<J;k+=1){var Z=M[k],pe=y[Z],ve=pe&&pe[0],fe=pe&&pe[1];M[k]=fe?{regex:ve,parser:fe}:Z.replace(/^\[|\]$/g,"")}return function(F){for(var H={},te=0,re=0;te<J;te+=1){var x=M[te];if(typeof x=="string")re+=x.length;else{var g=x.regex,m=x.parser,E=F.slice(re),_=g.exec(E)[0];m.call(H,_),F=F.replace(_,"")}}return function(S){var p=S.afternoon;if(p!==void 0){var w=S.hours;p?w<12&&(S.hours+=12):w===12&&(S.hours=0),delete S.afternoon}}(H),H}}return function(b,T,P){P.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(l=b.parseTwoDigitYear);var M=T.prototype,J=M.parse;M.parse=function(k){var Z=k.date,pe=k.utc,ve=k.args;this.$u=pe;var fe=ve[1];if(typeof fe=="string"){var F=ve[2]===!0,H=ve[3]===!0,te=F||H,re=ve[2];H&&(re=ve[2]),u=this.$locale(),!F&&re&&(u=P.Ls[re]),this.$d=function(E,_,S,p){try{if(["x","X"].indexOf(_)>-1)return new Date((_==="X"?1e3:1)*E);var w=A(_)(E),O=w.year,U=w.month,C=w.day,Y=w.hours,ne=w.minutes,he=w.seconds,Re=w.milliseconds,Me=w.zone,z=w.week,be=new Date,Ue=C||(O||U?1:be.getDate()),Xe=O||be.getFullYear(),ie=0;O&&!U||(ie=U>0?U-1:be.getMonth());var Q,it=Y||0,At=ne||0,hn=he||0,cn=Re||0;return Me?new Date(Date.UTC(Xe,ie,Ue,it,At,hn,cn+60*Me.offset*1e3)):S?new Date(Date.UTC(Xe,ie,Ue,it,At,hn,cn)):(Q=new Date(Xe,ie,Ue,it,At,hn,cn),z&&(Q=p(Q).week(z).toDate()),Q)}catch(Wl){return new Date("")}}(Z,fe,pe,P),this.init(),re&&re!==!0&&(this.$L=this.locale(re).$L),te&&Z!=this.format(fe)&&(this.$d=new Date("")),u={}}else if(fe instanceof Array)for(var x=fe.length,g=1;g<=x;g+=1){ve[1]=fe[g-1];var m=P.apply(this,ve);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}g===x&&(this.$d=new Date(""))}else J.call(this,k)}}})})(wa);var Il=wa.exports;const Ta=an(Il);xa.extend(Ta);const Rl=()=>typeof window=="undefined";if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./TournamentDetails-lpOSBCZU.cjs")).then(({default:t})=>{!customElements.get("tournament-details")&&customElements.define("tournament-details",t.element)})}var Ul=St('<button class="ButtonSecondary svelte-1ja9a3z"> </button> <button class="ButtonPrimary svelte-1ja9a3z"> </button>',1),Fl=St('<button class="ViewDetailsButton svelte-1ja9a3z"> </button>'),Gl=St('<a class="ButtonSecondary svelte-1ja9a3z"> </a>'),jl=St('<button class="ButtonSecondary svelte-1ja9a3z"> </button>'),kl=St('<span class="Spinner svelte-1ja9a3z"></span>'),Vl=St("<!> <button><!></button>",1),Yl=St('<div class="CardContainer svelte-1ja9a3z"><div class="TournamentDetailsWrapper svelte-1ja9a3z"><tournament-details></tournament-details></div> <div class="TournamentButtonsWrapper svelte-1ja9a3z"><!></div></div>',2);const zl={hash:"svelte-1ja9a3z",code:`.svelte-1ja9a3z,
5
+ .svelte-1ja9a3z::before,
6
+ .svelte-1ja9a3z::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.CardContainer.svelte-1ja9a3z {display:flex;flex-direction:column;border-radius:6px;background-color:var(--emw-color-bg-secondary, #333232);height:100%;max-width:400px;margin:auto;justify-content:space-between;.TournamentDetailsWrapper:where(.svelte-1ja9a3z) {height:90%;min-height:400px;}.ViewDetailsButton:where(.svelte-1ja9a3z) {width:100%;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:8px 0;border:none;outline:none;transition:background-color 0.2s ease, transform 0.15s ease;&:hover {background-color:var(--emw-color-bg-primary, #212121);cursor:pointer;}&:active {transform:scale(0.9);}}.TournamentButtonsWrapper:where(.svelte-1ja9a3z) {display:flex;gap:16px;width:100%;padding:0 16px 16px 16px;.ButtonPrimary:where(.svelte-1ja9a3z) {display:block;width:100%;background-color:var(--emw-color-primary, #FF1D4E);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:8px 0;border:none;outline:none;text-align:center;text-decoration:none;cursor:pointer;transition:background-color 0.2s ease, transform 0.15s ease;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}&.Enrolled {pointer-events:none;filter:saturate(50%);}}.ButtonSecondary:where(.svelte-1ja9a3z) {display:block;width:100%;background-color:transparent;color:var(--emw-color-typography, #ffffff);border:1px solid var(--emw-color-primary, #FF1D4E);border-radius:6px;padding:8px 0;outline:none;text-align:center;text-decoration:none;cursor:pointer;transition:background-color 0.2s ease, transform 0.15s ease;&:hover {background-color:var(--emw-color-bg-primary, #212121);cursor:pointer;}&:active {transform:scale(0.9);}}}}.Spinner.svelte-1ja9a3z {display:inline-block;width:16px;height:16px;border:2px solid rgba(255, 255, 255, 0.3);border-top-color:var(--emw-color-typography, #ffffff);border-radius:50%;
7
+ animation: svelte-1ja9a3z-spin 0.6s linear infinite;}
8
+
9
+ @keyframes svelte-1ja9a3z-spin {
10
+ to { transform: rotate(360deg); }
11
+ }`};function Sa(e,t){Qn(t,!0),ks(e,zl);const r=()=>Xs(ya,"$_",n),[n,i]=Ws(),s=qe(t,"tournament"),a=qe(t,"isLoggedIn"),o=qe(t,"language"),u=qe(t,"endpoint"),l=qe(t,"session"),f=qe(t,"translationurl"),d=qe(t,"navigationHref",7,null),c=qe(t,"platform"),v=qe(t,"hidden",7,!1);let y=He(!1),A=He(!1),b=He(""),T=He(!1);Vr(()=>{Di(o())});const P=()=>{let p=new URL(f());fetch(p.href).then(w=>w.json()).then(w=>{Object.keys(w).forEach(O=>{Li(O,w[O])})}).catch(w=>{console.log(w)})};Object.keys(Ci).forEach(p=>{Li(p,Ci[p])}),Ts(()=>{f()&&P()});const M=()=>{window.postMessage({type:"Tournaments:goToLogin"},window.location.href)},J=()=>{window.postMessage({type:"Tournaments:goToRegister"},window.location.href)},k=p=>{window.postMessage({type:"Tournaments:viewTournamentDetails",tournamentId:p},window.location.href)},Z=()=>{fetch(`${u()}/tournaments/${s().is}`,{headers:{"X-SessionID":l()}}).then(p=>p.json()).then(p=>{var w;(w=p==null?void 0:p.item)!=null&&w.playerEnrolled?ee(T,!0):(ee(A,!0),ee(b,p.errorMessage,!0))}).catch(p=>console.log(p))},pe=()=>{ee(y,!0);const p=new URL(`${u()}/v1/bonus/claim`);p.searchParams.append("language",o()),p.searchParams.append("platform",c());const w=new Headers;w.append("Content-Type","application/json"),w.append("X-SessionID",l());let O={};s().wallets&&s().wallets.length>0&&(O={language:o(),bonusCode:s().wallets[0].code,currency:s().baseCurrency,type:"tournament"});const U={method:"PUT",headers:w,body:JSON.stringify(O)};fetch(p,U).then(C=>C.json()).then(C=>{C&&(C.success==!0?ee(T,!0):C.errorMessage.match("VersionMismatchException")&&Z())}).catch(C=>{console.log(C),ee(A,!0),ee(b,C.errorMessage,!0)}).finally(()=>ee(y,!1))},ve=()=>{Di(o())},fe=()=>new Date(s().endTime)<new Date;Vr(()=>{ve()});var F={get tournament(){return s()},set tournament(p){s(p),Fe()},get isLoggedIn(){return a()},set isLoggedIn(p){a(p),Fe()},get language(){return o()},set language(p){o(p),Fe()},get endpoint(){return u()},set endpoint(p){u(p),Fe()},get session(){return l()},set session(p){l(p),Fe()},get translationurl(){return f()},set translationurl(p){f(p),Fe()},get navigationHref(){return d()},set navigationHref(p=null){d(p),Fe()},get platform(){return c()},set platform(p){c(p),Fe()},get hidden(){return v()},set hidden(p=!1){v(p),Fe()}},H=Yl();let te;var re=Ze(H),x=Ze(re);Oe(()=>Pr(x,"tournament",s())),Oe(()=>Pr(x,"language",o())),Oe(()=>Pr(x,"enrolled",s().playerEnrolled||ue(T))),Oe(()=>Pr(x,"translationurl",f())),Cn(x,1,"svelte-1ja9a3z"),We(re);var g=Cr(re,2),m=Ze(g);{var E=p=>{var w=Ul(),O=mn(w);O.__click=J;var U=Ze(O,!0);We(O);var C=Cr(O,2);C.__click=M;var Y=Ze(C,!0);We(C),Oe((ne,he)=>{Ht(U,ne),Ht(Y,he)},[()=>r()("registerButton"),()=>r()("loginButton")]),je(p,w)},_=p=>{var w=$o(),O=mn(w);{var U=Y=>{var ne=Fl();ne.__click=()=>k(s().id);var he=Ze(ne,!0);We(ne),Oe(Re=>Ht(he,Re),[()=>r()("viewDetailsButton")]),je(Y,ne)},C=Y=>{var ne=Vl(),he=mn(ne);{var Re=ie=>{var Q=Gl(),it=Ze(Q,!0);We(Q),Oe(At=>{ii(Q,"href",`${d()}/${s().id}`),Ht(it,At)},[()=>r()("detailsButton")]),je(ie,Q)},Me=ie=>{var Q=jl();Q.__click=()=>k(s().id);var it=Ze(Q,!0);We(Q),Oe(At=>Ht(it,At),[()=>r()("detailsButton")]),je(ie,Q)};hr(he,ie=>{Rl()?ie(Re):ie(Me,!1)})}var z=Cr(he,2);z.__click=pe;var be=Ze(z);{var Ue=ie=>{var Q=kl();je(ie,Q)},Xe=ie=>{var Q=Bo();Oe(it=>Ht(Q,it),[()=>r()("joinButton")]),je(ie,Q)};hr(be,ie=>{ue(y)?ie(Ue):ie(Xe,!1)})}We(z),Oe(()=>{Cn(z,1,`ButtonPrimary ${s().playerEnrolled||ue(T)?"Enrolled":""}`,"svelte-1ja9a3z"),z.disabled=s().playerEnrolled||ue(T)}),je(Y,ne)};hr(O,Y=>{fe()?Y(U):Y(C,!1)})}je(p,w)};hr(m,p=>{a()?p(_,!1):p(E)})}We(g),We(H),Oe(()=>te=Ys(H,"",te,{display:v()?"none":"flex"})),je(e,H);var S=Kn(F);return i(),S}Fs(["click"]);qs(Sa,{tournament:{},isLoggedIn:{},language:{},endpoint:{},session:{},translationurl:{},navigationHref:{},platform:{},hidden:{}},[],[],!0);const Xl=Object.freeze(Object.defineProperty({__proto__:null,default:Sa},Symbol.toStringTag,{value:"Module"}));exports.$format=ya;exports.$locale=Gt;exports.TournamentCard_ce=Xl;exports.addMessages=ui;exports.append=je;exports.append_styles=ks;exports.child=Ze;exports.clsx=Fo;exports.commonjsGlobal=ai;exports.create_custom_element=qs;exports.customParseFormat=Ta;exports.dayjs=xa;exports.delegate=Fs;exports.flushSync=Fe;exports.from_html=St;exports.get=ue;exports.getDefaultExportFromCjs=an;exports.if_block=hr;exports.next=Zi;exports.onDestroy=Ro;exports.pop=Kn;exports.prop=qe;exports.proxy=Yt;exports.push=Qn;exports.reset=We;exports.set=ee;exports.set_attribute=ii;exports.set_class=Cn;exports.set_style=Ys;exports.set_text=Ht;exports.setup_stores=Ws;exports.sibling=Cr;exports.state=He;exports.store_get=Xs;exports.template_effect=Oe;exports.user_effect=Vr;exports.user_pre_effect=Ts;