@everymatrix/tournament-details-page 0.2.15 → 0.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/components/{ChartIcon-LMFey5tC.cjs → ChartIcon-BlLuPbZe.cjs} +1 -1
  2. package/components/{ChartIcon-gBU0Zrhd.cjs → ChartIcon-CIRDbDQL.cjs} +1 -1
  3. package/components/{ChartIcon-B--EH3Vl.js → ChartIcon-Dot8DHjA.js} +1 -1
  4. package/components/{ChartIcon-By_sX-O3.js → ChartIcon-lm564hLt.js} +1 -1
  5. package/components/{CoinStackIcon-dQ3YXVB6.cjs → CoinStackIcon-BEUq4L8Z.cjs} +1 -1
  6. package/components/{CoinStackIcon-CINdg0f3.cjs → CoinStackIcon-BaJxiULk.cjs} +1 -1
  7. package/components/{CoinStackIcon-DpQ9Ql8V.js → CoinStackIcon-CqJaXa5I.js} +1 -1
  8. package/components/{CoinStackIcon-Dp7zyNd_.js → CoinStackIcon-DX1gytTP.js} +1 -1
  9. package/components/{DocumentsIcon-9A1Da03W.cjs → DocumentsIcon-Cslx0fdw.cjs} +1 -1
  10. package/components/{DocumentsIcon-JCYs3JwW.js → DocumentsIcon-VKrK_OSU.js} +1 -1
  11. package/components/{DocumentsIcon-BNfQkrBE.js → DocumentsIcon-gLqrNvFG.js} +1 -1
  12. package/components/{DocumentsIcon-BURaap7N.cjs → DocumentsIcon-lFIvob-P.cjs} +1 -1
  13. package/components/{FootballIcon-CX1W263v.cjs → FootballIcon-66z-vdWS.cjs} +1 -1
  14. package/components/{FootballIcon-BIph2Aru.js → FootballIcon-Bf1zWSEi.js} +1 -1
  15. package/components/{FootballIcon-CWNfJLfb.js → FootballIcon-DWz9Uwra.js} +1 -1
  16. package/components/{FootballIcon-q4kFork7.cjs → FootballIcon-PxOj9T2T.cjs} +1 -1
  17. package/components/{PeopleIcon-DagfiLJS.cjs → PeopleIcon-CHOnqmRP.cjs} +1 -1
  18. package/components/{PeopleIcon-3GsVhRY4.js → PeopleIcon-DLQwPFs1.js} +1 -1
  19. package/components/{PeopleIcon-_KvtkuCL.cjs → PeopleIcon-YwM1d28N.cjs} +1 -1
  20. package/components/{PeopleIcon-D8lTQ2KR.js → PeopleIcon-Z2J1r7h6.js} +1 -1
  21. package/components/{RankArrowIcon-4pj3dS-z.cjs → RankArrowIcon-BjzNSXjM.cjs} +1 -1
  22. package/components/{RankArrowIcon-Cy_1QAXf.js → RankArrowIcon-CWd3H8sW.js} +1 -1
  23. package/components/{RankArrowIcon-DktEbyFU.js → RankArrowIcon-DOM2HO2u.js} +1 -1
  24. package/components/{RankArrowIcon-BloaZrjL.cjs → RankArrowIcon-GjLwPy9l.cjs} +1 -1
  25. package/components/{SlotMachineIcon-CabzSA3A.js → SlotMachineIcon-BPIUsVaM.js} +1 -1
  26. package/components/{SlotMachineIcon-Cq4LMnoh.cjs → SlotMachineIcon-BYjHIKHd.cjs} +1 -1
  27. package/components/{SlotMachineIcon-BXogWwRz.js → SlotMachineIcon-GdwWyhHV.js} +1 -1
  28. package/components/{SlotMachineIcon-BbZAJhJf.cjs → SlotMachineIcon-J-kGrLgm.cjs} +1 -1
  29. package/components/{StatusBadge-Bup1Sml4.js → StatusBadge-BlYreHQv.js} +1892 -1864
  30. package/components/{StatusBadge-CovGvJPI.js → StatusBadge-BmO5-LZu.js} +1628 -1600
  31. package/components/StatusBadge-BrkI5s3G.cjs +11 -0
  32. package/components/StatusBadge-FaxZ-GIu.cjs +11 -0
  33. package/components/{TournamentActions-D4IFOwse.js → TournamentActions-CGw1fNIz.js} +18 -18
  34. package/components/{TournamentActions-srI74YXg.cjs → TournamentActions-CMdYLUwE.cjs} +1 -1
  35. package/components/{TournamentActions-DG3d1gTW.js → TournamentActions-CPEVbC7p.js} +18 -18
  36. package/components/{TournamentActions-oezlw-_q.cjs → TournamentActions-C_OcCrSY.cjs} +1 -1
  37. package/components/{TournamentDetailsPage-DmHbw2jU.js → TournamentDetailsPage-7KG0IR4n.js} +56 -56
  38. package/components/{TournamentDetailsPage-CYtfX0cX.js → TournamentDetailsPage-BSgbM1lj.js} +58 -58
  39. package/components/{TournamentDetailsPage-Cwd5jDPo.cjs → TournamentDetailsPage-BtbUwaTF.cjs} +1 -1
  40. package/components/{TournamentDetailsPage-B1PkYGTC.cjs → TournamentDetailsPage-DDzejA4a.cjs} +2 -2
  41. package/components/{TournamentDetailsSkeleton-D2JIi_L9.js → TournamentDetailsSkeleton-BdzH0RWa.js} +4 -4
  42. package/components/{TournamentDetailsSkeleton-BH6VjPZ0.cjs → TournamentDetailsSkeleton-C-Nq0cqY.cjs} +1 -1
  43. package/components/{TournamentDetailsSkeleton-CLrts2mj.js → TournamentDetailsSkeleton-Qf5F40NW.js} +4 -4
  44. package/components/{TournamentDetailsSkeleton-Cntx8Uxn.cjs → TournamentDetailsSkeleton-fRvnu1cx.cjs} +1 -1
  45. package/components/{TournamentGames-DpdRQ-Wk.cjs → TournamentGames-CXBSKsvN.cjs} +1 -1
  46. package/components/{TournamentGames-o5unmTLS.js → TournamentGames-RjNMZeHH.js} +23 -23
  47. package/components/{TournamentGames-Shx6DaNI.js → TournamentGames-fW7jYGr1.js} +18 -18
  48. package/components/{TournamentGames-CMUJNP1W.cjs → TournamentGames-lE54O6fd.cjs} +2 -2
  49. package/components/{TournamentImage-NC4qroZz.cjs → TournamentImage-BOj9EbZI.cjs} +1 -1
  50. package/components/{TournamentImage-B2I1n69v.js → TournamentImage-CMhJO3VR.js} +1 -1
  51. package/components/{TournamentImage-DJqaGTbB.js → TournamentImage-DawX2anC.js} +1 -1
  52. package/components/{TournamentImage-CyS-wh8S.cjs → TournamentImage-fnOuylUV.cjs} +1 -1
  53. package/components/{TournamentLeaderboard-Meg4Gy_v.cjs → TournamentLeaderboard-B18inWxV.cjs} +5 -9
  54. package/components/{TournamentLeaderboard-CUFXtkZu.cjs → TournamentLeaderboard-BAX4Qc8L.cjs} +6 -10
  55. package/components/{TournamentLeaderboard-C7nAA9nK.js → TournamentLeaderboard-BEiBqgl0.js} +979 -977
  56. package/components/{TournamentLeaderboard-DtQc021R.js → TournamentLeaderboard-Bko6oz6z.js} +987 -985
  57. package/components/{TournamentRules-4LPojfNL.cjs → TournamentRules-BGhhpYcm.cjs} +1 -1
  58. package/components/{TournamentRules-Cnlc0PxO.js → TournamentRules-C51ASmvU.js} +41 -41
  59. package/components/{TournamentRules-DZ16pti3.js → TournamentRules-CLvprY8b.js} +40 -40
  60. package/components/{TournamentRules-B-Eetjhj.cjs → TournamentRules-DD1mm3no.cjs} +1 -1
  61. package/components/{TournamentSummary-C4QixrUw.js → TournamentSummary-BoiQtW8I.js} +31 -31
  62. package/components/{TournamentSummary-CDUiZzMC.js → TournamentSummary-CdDDOOeu.js} +27 -27
  63. package/components/{TournamentSummary-B5Q4gOgk.cjs → TournamentSummary-DBWfRhCG.cjs} +1 -1
  64. package/components/{TournamentSummary-ClZds7XR.cjs → TournamentSummary-Xn2TCAJ8.cjs} +1 -1
  65. package/components/{TournamentTabs-Bv9Y1h65.js → TournamentTabs-CCfOlUMT.js} +13 -13
  66. package/components/{TournamentTabs-BP0Th-AO.js → TournamentTabs-CDAd_y4s.js} +15 -15
  67. package/components/{TournamentTabs-DXUKaRsR.cjs → TournamentTabs-CuV0TksX.cjs} +1 -1
  68. package/components/{TournamentTabs-DH3F-f9h.cjs → TournamentTabs-DjP1-w6P.cjs} +1 -1
  69. package/components/{TrophyIcon-CxiyK3av.cjs → TrophyIcon-CDuHXtAC.cjs} +1 -1
  70. package/components/{TrophyIcon-DFjq2XKD.js → TrophyIcon-CVcWKOtO.js} +1 -1
  71. package/components/{TrophyIcon-PgUKEf6L.js → TrophyIcon-DJU6xKKp.js} +1 -1
  72. package/components/{TrophyIcon-CkOnHDf7.cjs → TrophyIcon-dQJOQj97.cjs} +1 -1
  73. package/es2015/tournament-details-page.cjs +1 -1
  74. package/es2015/tournament-details-page.js +2 -2
  75. package/esnext/tournament-details-page.cjs +1 -1
  76. package/esnext/tournament-details-page.js +2 -2
  77. package/package.json +1 -1
  78. package/components/StatusBadge-Bg_6Y1d5.cjs +0 -11
  79. package/components/StatusBadge-ZRuRu5ex.cjs +0 -11
@@ -0,0 +1,11 @@
1
+ var ua=Object.defineProperty,la=Object.defineProperties;var fa=Object.getOwnPropertyDescriptors;var Ui=Object.getOwnPropertySymbols;var ha=Object.prototype.hasOwnProperty,ca=Object.prototype.propertyIsEnumerable;var Fi=e=>{throw TypeError(e)};var wn=(e,t,r)=>t in e?ua(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fr=(e,t)=>{for(var r in t||(t={}))ha.call(t,r)&&wn(e,r,t[r]);if(Ui)for(var r of Ui(t))ca.call(t,r)&&wn(e,r,t[r]);return e},Gr=(e,t)=>la(e,fa(t));var $=(e,t,r)=>wn(e,typeof t!="symbol"?t+"":t,r),Tn=(e,t,r)=>t.has(e)||Fi("Cannot "+r);var h=(e,t,r)=>(Tn(e,t,"read from private field"),r?r.call(e):t.get(e)),H=(e,t,r)=>t.has(e)?Fi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),w=(e,t,r,n)=>(Tn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),y=(e,t,r)=>(Tn(e,t,"access private method"),r);var Sn=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{o(r.next(u))}catch(l){i(l)}},a=u=>{try{o(r.throw(u))}catch(l){i(l)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,a);o((r=r.apply(e,t)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const da=require("./translations-XhfH5rPR.cjs"),pa="5";var cs,ds,ps;typeof window!="undefined"&&((ps=(ds=(cs=window.__svelte)!=null?cs:window.__svelte={}).v)!=null?ps:ds.v=new Set).add(pa);const va=1,ma=2,gs=4,ga=8,_a=16,ba=1,Ea=4,ya=8,xa=16,wa=1,Ta=2,_s="[",gi="[!",Gi="[?",_i="]",Qe={},V=Symbol("uninitialized"),bs="http://www.w3.org/1999/xhtml",Sa="http://www.w3.org/2000/svg",Aa="http://www.w3.org/1998/Math/MathML",Es=!1;var ys=Array.isArray,Ha=Array.prototype.indexOf,Er=Array.prototype.includes,dn=Array.from,Jr=Object.keys,qt=Object.defineProperty,yt=Object.getOwnPropertyDescriptor,xs=Object.getOwnPropertyDescriptors,Na=Object.prototype,Oa=Array.prototype,bi=Object.getPrototypeOf,ji=Object.isExtensible;const Fe=()=>{};function ws(e){for(var t=0;t<e.length;t++)e[t]()}function Ts(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Z=2,Xt=4,Pr=8,Ss=1<<24,Te=16,He=32,Je=64,Fn=128,Ei=256,Ae=512,q=1024,U=2048,he=4096,ee=8192,z=16384,Nt=32768,yr=1<<25,St=65536,Kr=1<<17,Pa=1<<18,Ot=1<<19,As=1<<20,Ue=1<<25,en=1<<21,Dt=1<<22,ot=1<<23,xt=Symbol("$state"),Hs=Symbol("component"),Ns=Symbol("legacy props"),Ba=Symbol(""),qr=Symbol("attributes"),Gn=Symbol("class"),jn=Symbol("style"),or=Symbol("text"),Br=new class extends Error{constructor(){super(...arguments);$(this,"name","StaleReactionError");$(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var vs;const Ia=!!((vs=globalThis.document)!=null&&vs.contentType)&&globalThis.document.contentType.includes("xml"),Ir=3,Kt=8;function Ma(){console.warn("https://svelte.dev/e/derived_inert")}function Mr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ca(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let S=!1;function Ye(e){S=e}let T;function W(e){if(e===null)throw Mr(),Qe;return T=e}function At(){return W(Ne(T))}function pr(e){if(S){if(Ne(T)!==null)throw Mr(),Qe;T=e}}function La(e=1){if(S){for(var t=e,r=T;t--;)r=Ne(r);T=r}}function tn(e=!0){for(var t=0,r=T;;){if(r.nodeType===Kt){var n=r.data;if(n===_i){if(t===0)return r;t-=1}else(n===_s||n===gi||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Ne(r);e&&r.remove(),r=i}}function yi(e){if(!e||e.nodeType!==Kt)throw Mr(),Qe;return e.data}function Os(e){return e===this.v}function xi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ps(e){return!xi(e,this.v)}function Ra(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function $a(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Da(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ua(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fa(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ga(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ja(){throw new Error("https://svelte.dev/e/hydration_failed")}function ka(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Va(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Xa(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function za(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let Wa=!1,te=null;function zt(e){te=e}function wi(e,t=!1,r){te={p:te,i:!1,c:null,e:null,s:e,x:null,r:A,l:null}}function Ti(e){var t=te,r=t.e;if(r!==null){t.e=null;for(var n of r)eo(n)}return e!==void 0&&(t.x=e),t.i=!0,te=t.p,Si(e)}function Si(e={}){return qt(e,Hs,{value:!0}),e}function Bs(){return!0}let dt=[];function Is(){var e=dt;dt=[],ws(e)}function Ze(e){if(dt.length===0&&!vr){var t=dt;queueMicrotask(()=>{t===dt&&Is()})}dt.push(e)}function Ya(){for(;dt.length>0;)Is()}const Za=-7169;function k(e,t){e.f=e.f&Za|t}function Ai(e){(e.f&Ae)!==0||e.deps===null?k(e,q):k(e,he)}function Ms(e,t){(e.f&U)!==0?t.set(e,U):(e.f&he)!==0&&t.get(e)!==U&&t.set(e,he),k(e,q)}function Cr(e){var t=N,r=A;be(null),je(null);try{return e()}finally{be(t),je(r)}}function Qa(e,t,r,n){const i=xr;var s=e.filter(d=>!d.settled),a=t.map(i);if(r.length===0&&s.length===0){n(a);return}var o=A,u=Ja(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function f(d){if((o.f&z)===0){u();try{n([...a,...d])}catch(m){$e(m,o)}rn()}}var c=Cs();if(r.length===0){l.then(()=>f([])).finally(c);return}function p(){Promise.all(r.map(d=>Ka(d))).then(f).catch(d=>$e(d,o)).finally(c)}l?l.then(()=>{if((o.f&z)!==0){c();return}u(),p(),rn()}):p()}function Ja(){var e=A,t=N,r=te,n=x;return function(s=!0){je(e),be(t),zt(r),s&&(e.f&z)===0&&(n==null||n.activate(),n==null||n.apply())}}function rn(e=!0){je(null),be(null),zt(null),e&&(x==null||x.deactivate())}function Cs(){var e=A,t=e.b,r=x,n=!!(t!=null&&t.is_rendered());return t==null||t.update_pending_count(1,r),r.increment(n,e),()=>{t==null||t.update_pending_count(-1,r),r.decrement(n,e)}}function xr(e){var t=Z|U;return A!==null&&(A.f|=Ot),{ctx:te,deps:null,effects:null,equals:Os,f:t,fn:e,reactions:null,rv:0,v:V,wv:0,parent:A,ac:null}}const ar=Symbol("obsolete");function Ka(e,t,r){let n=A;n===null&&Ra();var i=void 0,s=Ht(V),a=!N,o=new Set;return cu(()=>{var d,m;var u=A,l=Ts();i=l.promise;try{Promise.resolve(e()).then(l.resolve,_=>{_!==Br&&l.reject(_)}).finally(rn)}catch(_){l.reject(_),rn()}var f=x;if(a){if((u.f&Nt)!==0)var c=Cs();if((d=n.b)!=null&&d.is_rendered())(m=f.async_deriveds.get(u))==null||m.reject(ar);else for(const _ of o.values())_.reject(ar);o.add(l),f.async_deriveds.set(u,l)}const p=(_,g=void 0)=>{c==null||c(),o.delete(l),g!==ar&&(f.activate(),g?(s.f|=ot,Wt(s,g)):((s.f&ot)!==0&&(s.f^=ot),Wt(s,_)),f.deactivate())};l.promise.then(p,_=>p(null,_||"unknown"))}),Bi(()=>{for(const u of o)u.reject(ar)}),new Promise(u=>{function l(f){function c(){f===i?u(s):l(i)}f.then(c,c)}l(i)})}function kn(e){const t=xr(e);return oo(t),t}function Ls(e){const t=xr(e);return t.equals=Ps,t}function eu(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)re(t[r])}}function Hi(e){var t,r=A,n=e.parent;if(!Ke&&n!==null&&e.v!==V&&(n.f&(z|ee))!==0)return Ma(),e.v;je(n);try{eu(e),t=fo(e)}finally{je(r)}return t}function Rs(e){var t=Hi(e);if(!e.equals(t)&&(e.wv=uo(),(!(x!=null&&x.is_fork)||e.deps===null)&&(x!==null?(x.capture(e,t,!0),at==null||at.capture(e,t,!0)):e.v=t,e.deps===null))){k(e,q);return}Ke||(X!==null?(mn()||x!=null&&x.is_fork)&&X.set(e,t):Ai(e))}function tu(e){var t;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),r.ac!==null&&Cr(()=>{r.ac.abort(Br),r.ac=null}),r.fn!==null&&(r.teardown=Fe),wr(r,0),Mi(r))}function $s(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&Yt(t)}let An=null,Mt=null,x=null,at=null,X=null,Vn=null,vr=!1,Hn=!1,mr=null,Xr=null;var ki=0;let ru=1;var Ut,Ft,Gt,qe,jt,Xe,Sr,Me,Ce,kt,gt,P,qn,Ds,Xn,ur,zn,Us,Fs,Gs,Lt,nu,lr;const fn=class fn{constructor(){H(this,P);$(this,"id",ru++);$(this,"started",!1);$(this,"linked",!0);$(this,"prev",null);$(this,"next",null);$(this,"async_deriveds",new Map);$(this,"current",new Map);$(this,"previous",new Map);H(this,Ut,new Set);H(this,Ft,new Set);H(this,Gt,0);H(this,qe,new Map);H(this,jt,null);H(this,Xe,[]);H(this,Sr,[]);H(this,Me,new Map);H(this,Ce,new Map);H(this,kt,new Set);$(this,"is_fork",!1);H(this,gt,!1);Mt===null?An=Mt=this:(Mt.next=this,this.prev=Mt),Mt=this}skip_effect(t){h(this,Ce).has(t)||h(this,Ce).set(t,{d:[],m:[]}),h(this,kt).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=h(this,Ce).get(t);if(n){h(this,Ce).delete(t);for(var i of n.d)k(i,U),r(i);for(i of n.m)k(i,he),r(i)}h(this,kt).add(t)}capture(t,r,n=!1){t.v!==V&&!this.previous.has(t)&&this.previous.set(t,t.v),(t.f&ot)===0&&(this.current.set(t,[r,n]),X==null||X.set(t,r)),this.is_fork||(t.v=r)}activate(){x=this}deactivate(){x=null,X=null}flush(){try{Hn=!0,x=this,y(this,P,ur).call(this)}finally{ki=0,Vn=null,mr=null,Xr=null,Hn=!1,x=null,X=null,Ge.clear()}}discard(){var t;for(const r of h(this,Ft))r(this);h(this,Ft).clear();for(const r of this.async_deriveds.values())r.reject(ar);y(this,P,lr).call(this),(t=h(this,jt))==null||t.resolve()}register_created_effect(t){h(this,Sr).push(t)}increment(t,r){var n;if(w(this,Gt,h(this,Gt)+1),t){let i=(n=h(this,qe).get(r))!=null?n:0;h(this,qe).set(r,i+1)}}decrement(t,r){var n;if(w(this,Gt,h(this,Gt)-1),t){let i=(n=h(this,qe).get(r))!=null?n:0;i===1?h(this,qe).delete(r):h(this,qe).set(r,i-1)}h(this,gt)||(w(this,gt,!0),Ze(()=>{w(this,gt,!1),this.linked&&this.flush()}))}transfer_reactions(t){for(const[r,n]of t)this.add_dirty_reaction(r,n);t.clear()}add_dirty_reaction(t,r){(r===U||h(this,Me).get(t)!==U)&&h(this,Me).set(t,r)}oncommit(t){h(this,Ut).add(t)}ondiscard(t){h(this,Ft).add(t)}settled(){var t;return((t=h(this,jt))!=null?t:w(this,jt,Ts())).promise}static ensure(){if(x===null){const t=x=new fn;!Hn&&!vr&&Ze(()=>{t.started||t.flush()})}return x}apply(){{X=null;return}}schedule(t){var r;if(Vn=t,(r=t.b)!=null&&r.is_pending&&(t.f&(Xt|Pr|Ss))!==0&&(t.f&Nt)===0){t.b.defer_effect(t);return}h(this,Xe).push(t)}};Ut=new WeakMap,Ft=new WeakMap,Gt=new WeakMap,qe=new WeakMap,jt=new WeakMap,Xe=new WeakMap,Sr=new WeakMap,Me=new WeakMap,Ce=new WeakMap,kt=new WeakMap,gt=new WeakMap,P=new WeakSet,qn=function(){if(this.is_fork)return!0;for(const t of h(this,qe).keys())if(!y(this,P,Ds).call(this,t))return!0;return!1},Ds=function(t){for(var r=t;r!==null;r=r.parent)if(h(this,Ce).has(r))return!0;return!1},Xn=function(){var t=[];for(const s of h(this,Xe))if(!((s.f&z)!==0||(s.f&(U|he))===0)){for(var r=s,n=!1;r.parent!==null;){r=r.parent;var i=r.f;if((i&(Je|He))!==0){if((i&q)===0){n=!0;break}r.f^=q}}n||t.push(r)}return w(this,Xe,[]),t},ur=function(){var o,u,l,f;this.started=!0;for(const[c,p]of h(this,Me))k(c,p),this.schedule(c);this.apply();for(var t=mr=[],r=[],n=Xr=[];h(this,Xe).length>0;){ki++>1e3&&(y(this,P,lr).call(this),iu());for(const c of y(this,P,Xn).call(this))try{y(this,P,zn).call(this,c,t,r)}catch(p){throw Vs(c),y(this,P,qn).call(this)||this.discard(),p}}if(x=null,n.length>0){var i=fn.ensure();for(const c of n)i.schedule(c)}if(mr=null,Xr=null,y(this,P,qn).call(this)){y(this,P,Lt).call(this,r),y(this,P,Lt).call(this,t);for(const[c,p]of h(this,Ce))ks(c,p);n.length>0&&y(o=x,P,ur).call(o);return}const s=y(this,P,Us).call(this);if(s){y(this,P,Lt).call(this,r),y(this,P,Lt).call(this,t),y(u=s,P,Gs).call(u,this);return}h(this,Me).clear();for(const c of h(this,Ut))c(this);h(this,Ut).clear(),at=this,Vi(r),Vi(t),at=null,(l=h(this,jt))==null||l.resolve();var a=x;h(this,Gt)===0&&(h(this,Xe).length===0||a!==null)&&y(this,P,lr).call(this),a!==null&&(Ge.clear(),y(f=a,P,ur).call(f))},zn=function(t,r,n){t.f^=q;for(var i=t.first;i!==null;){var s=i.f,a=(s&(He|Je))!==0,o=a&&(s&q)!==0,u=o||(s&ee)!==0||h(this,Ce).has(i);if(!u&&i.fn!==null){a?i.f^=q:(s&Xt)!==0?r.push(i):Rr(i)&&((s&Te)!==0&&this.add_dirty_reaction(i,he),Yt(i));var l=i.first;if(l!==null){i=l;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}},Us=function(){for(var t=this.prev;t!==null;t=t.prev)if(!t.is_fork&&y(this,P,Fs).call(this,t))return t;return null},Fs=function(t){for(const[r,[,n]]of this.current)if(!n&&t.current.has(r))return!0;return!1},Gs=function(t){var n;for(const[i,s]of t.current)!this.previous.has(i)&&t.previous.has(i)&&this.previous.set(i,t.previous.get(i)),this.current.set(i,s);for(const[i,s]of t.async_deriveds){const a=this.async_deriveds.get(i);a&&s.promise.then(a.resolve).catch(a.reject)}t.async_deriveds.clear(),this.transfer_reactions(h(t,Me));const r=i=>{var s=i.reactions;if(s!==null&&!((i.f&Z)!==0&&(i.f&(U|he))===0))for(const u of s){var a=u.f;if((a&Z)!==0)r(u);else{var o=u;a&(Dt|Te)&&!this.async_deriveds.has(o)&&(h(this,Me).delete(o),k(o,U),this.schedule(o))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>t.discard()),y(n=t,P,lr).call(n),x=this,y(this,P,ur).call(this)},Lt=function(t){for(var r=0;r<t.length;r+=1)Ms(t[r],h(this,Me))},nu=function(){var c,p;for(let d=An;d!==null;d=d.next){var t=d.id<this.id,r=[];for(const[m,[_,g]]of this.current){if(d.current.has(m)){var n=d.current.get(m)[0];if(t&&_!==n)d.current.set(m,[_,g]);else continue}r.push(m)}if(t)for(const[m,_]of this.async_deriveds){const g=d.async_deriveds.get(m);g&&_.promise.then(g.resolve).catch(g.reject)}var i=[...d.current.keys()].filter(m=>!d.current.get(m)[1]);if(!(!d.started||i.length===0)){var s=i.filter(m=>!this.current.has(m));if(s.length===0)t&&d.discard();else if(r.length>0){if(t)for(const m of h(this,kt))d.unskip_effect(m,_=>{var g;(_.f&(Te|Dt))!==0?d.schedule(_):y(g=d,P,Lt).call(g,[_])});d.activate();var a=new Set,o=new Map;for(var u of r)js(u,s,a,o);o=new Map;var l=[...d.current].filter(([m,_])=>{const g=this.current.get(m);return g?g[0]!==_[0]||g[1]!==_[1]:!0}).map(([m])=>m);if(l.length>0)for(const m of h(this,Sr))(m.f&(z|ee|Kr))===0&&Ni(m,l,o)&&((m.f&(Dt|Te))!==0?(k(m,U),d.schedule(m)):d.add_dirty_reaction(m,U));if(h(d,Xe).length>0&&!h(d,gt)){d.apply();for(var f of y(c=d,P,Xn).call(c))y(p=d,P,zn).call(p,f,[],[])}d.deactivate()}}}},lr=function(){if(this.linked){var t=this.prev,r=this.next;t===null?An=r:t.next=r,r===null?Mt=t:r.prev=t,this.linked=!1}};let ut=fn;function Ve(e){var t=vr,r=at;at=null,vr=!0;try{for(var n;;){if(Ya(),x===null)return n;x.flush()}}finally{vr=t,at=r}}function iu(){try{Ga()}catch(e){$e(e,Vn)}}let ye=null;function Vi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(z|ee))===0&&Rr(n)&&(ye=new Set,Yt(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&no(n),(ye==null?void 0:ye.size)>0)){Ge.clear();for(const i of ye){if((i.f&(z|ee))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)ye.has(a)&&(ye.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];(u.f&(z|ee))===0&&Yt(u)}}ye.clear()}}ye=null}}function js(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&Z)!==0?js(i,t,r,n):(s&(Dt|Te))!==0&&(s&U)===0&&Ni(i,t,n)&&(k(i,U),Oi(i))}}function Ni(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(Er.call(t,i))return!0;if((i.f&Z)!==0&&Ni(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Oi(e){x.schedule(e)}function ks(e,t){if(!((e.f&He)!==0&&(e.f&q)!==0)){(e.f&U)!==0?t.d.push(e):(e.f&he)!==0&&t.m.push(e),k(e,q);for(var r=e.first;r!==null;)ks(r,t),r=r.next}}function Vs(e){k(e,q);for(var t=e.first;t!==null;)Vs(t),t=t.next}let nn=new Set;const Ge=new Map;let qs=!1;function Ht(e,t){var r={f:0,v:e,reactions:null,equals:Os,rv:0,wv:0};return r}function ke(e,t){const r=Ht(e);return oo(r),r}function Pi(e,t=!1,r=!0){const n=Ht(e);return t||(n.equals=Ps),n}function we(e,t,r=!1){N!==null&&(!Se||(N.f&Kr)!==0)&&Bs()&&(N.f&(Z|Te|Dt|Kr))!==0&&(ce===null||!ce.has(e))&&Xa();let n=r?pt(t):t;return Wt(e,n,Xr)}var ct=null,Wn=0;function Wt(e,t,r=null){if(!e.equals(t)){Ke?Ge.set(e,t):Ge.has(e)||Ge.set(e,e.v);var n=ut.ensure();if(n.capture(e,t),(e.f&Z)!==0){const i=e;(e.f&U)!==0&&Hi(i),X===null&&Ai(i)}e.wv=uo(),ct=null,Wn=0,Xs(e,U,r),ct=null,A!==null&&(A.f&q)!==0&&(A.f&(He|Je))===0&&(ve===null?pu([e]):ve.push(e)),!n.is_fork&&nn.size>0&&!qs&&su()}return t}function su(){qs=!1;for(const e of nn){(e.f&q)!==0&&k(e,he);let t;try{t=Rr(e)}catch(r){t=!0}t&&Yt(e)}nn.clear()}function gr(e){we(e,e.v+1)}function Xs(e,t,r){var n=e.reactions;if(n!==null){var i=n.length;if(Wn+=i,Wn>1e5&&ct===null&&(ct=new Set),ct!==null){if(ct.has(e))return;ct.add(e)}for(var s=0;s<i;s++){var a=n[s],o=a.f,u=(o&U)===0;if(u&&k(a,t),(o&Kr)!==0)nn.add(a);else if((o&Z)!==0){var l=a;X==null||X.delete(l),Xs(l,he,r)}else if(u){var f=a;(o&Te)!==0&&ye!==null&&ye.add(f),r!==null?r.push(f):Oi(f)}}}}function pt(e){if(typeof e!="object"||e===null||xt in e||Hs in e)return e;const t=bi(e);if(t!==Na&&t!==Oa)return e;var r=new Map,n=ys(e),i=ke(0),s=Tt,a=o=>{if(Tt===s)return o();var u=N,l=Tt;be(null),zi(s);var f=o();return be(u),zi(l),f};return n&&r.set("length",ke(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Va();var f=r.get(u);return f===void 0?a(()=>{var c=ke(l.value);return r.set(u,c),c}):we(f,l.value,!0),!0},deleteProperty(o,u){var l=r.get(u);if(l===void 0){if(u in o){const f=a(()=>ke(V));r.set(u,f),gr(i)}}else we(l,V),gr(i);return!0},get(o,u,l){var d;if(u===xt)return e;var f=r.get(u),c=u in o;if(f===void 0&&(!c||(d=yt(o,u))!=null&&d.writable)&&(f=a(()=>{var m=pt(c?o[u]:V),_=ke(m);return _}),r.set(u,f)),f!==void 0){var p=L(f);return p===V?void 0:p}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var p;(p=this.has)==null||p.call(this,o,u);var l=Reflect.getOwnPropertyDescriptor(o,u),f=r.get(u);if(f!==void 0){var c=L(f);if(c===V)return;if(l&&"value"in l)l.value=c;else return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(o,u){var p;if(u===xt)return!0;var l=r.get(u),f=l!==void 0&&l.v!==V||Reflect.has(o,u);if(l!==void 0||(A!==null||N!==null)&&(!f||(p=yt(o,u))!=null&&p.writable)){l===void 0&&(l=a(()=>{var d=f?pt(o[u]):V,m=ke(d);return m}),r.set(u,l));var c=L(l);if(c===V)return!1}return f},set(o,u,l,f){var E;var c=r.get(u),p=u in o;if(n&&u==="length")for(var d=l;d<c.v;d+=1){var m=r.get(d+"");m!==void 0?we(m,V):d in o&&(m=a(()=>ke(V)),r.set(d+"",m))}if(c===void 0)(!p||(E=yt(o,u))!=null&&E.writable)&&(c=a(()=>ke(void 0)),we(c,pt(l)),r.set(u,c));else{p=c.v!==V;var _=a(()=>pt(l));we(c,_)}var g=Reflect.getOwnPropertyDescriptor(o,u);if(g!=null&&g.set&&g.set.call(f,l),!p){if(n&&typeof u=="string"){var v=r.get("length"),b=Number(u);Number.isInteger(b)&&b>=v.v&&we(v,b+1)}gr(i)}return!0},ownKeys(o){L(i);var u=Reflect.ownKeys(o).filter(c=>{var p=r.get(c);return p===void 0||p.v!==V});for(var[l,f]of r)f.v!==V&&!(l in o)&&u.push(l);return u},setPrototypeOf(){qa()}})}var qi,zs,Ws,Ys;function Yn(){if(qi===void 0){qi=window,zs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ws=yt(t,"firstChild").get,Ys=yt(t,"nextSibling").get,ji(e)&&(e[Gn]=void 0,e[qr]=null,e[jn]=void 0,e.__e=void 0),ji(r)&&(r[or]=void 0)}}function se(e=""){return document.createTextNode(e)}function K(e){return Ws.call(e)}function Ne(e){return Ys.call(e)}function _r(e,t){if(!S)return K(e);var r=K(T);if(r===null)r=T.appendChild(se());else if(t&&r.nodeType!==Ir){var n=se();return r==null||r.before(n),W(n),n}return t&&vn(r),W(r),r}function Zs(e,t=!1){if(!S){var r=K(e);return r instanceof Comment&&r.data===""?Ne(r):r}if(t){if((T==null?void 0:T.nodeType)!==Ir){var n=se();return T==null||T.before(n),W(n),n}vn(T)}return T}function fr(e,t=!1){if(!S)return K(e);var r=_r(e,t);return pr(e),r}function Rt(e,t=1,r=!1){let n=S?T:e;for(var i;t--;)i=n,n=Ne(n);if(!S)return n;if(r){if((n==null?void 0:n.nodeType)!==Ir){var s=se();return n===null?i==null||i.after(s):n.before(s),W(s),s}vn(n)}return W(n),n}function Qs(e){e.textContent=""}function Js(){return!1}function pn(e,t,r){return t==null||t===bs?r?document.createElement(e,{is:r}):document.createElement(e):r?document.createElementNS(t,e,{is:r}):document.createElementNS(t,e)}function vn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ir;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function ou(e){var t=A;if(t===null)return N.f|=ot,e;if((t.f&Nt)===0&&(t.f&Xt)===0)throw e;$e(e,t)}function $e(e,t){if(e===Qe)throw e;if(!(t!==null&&(t.f&z)!==0)){for(;t!==null;){if((t.f&Fn)!==0&&(t.f&(z|yr))===0){if((t.f&Nt)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}function Ks(e){A===null&&(N===null&&Fa(),Ua()),Ke&&Da()}function au(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Oe(e,t){var a;var r=A;r!==null&&(r.f&ee)!==0&&(e|=ee);var n={ctx:te,deps:null,nodes:null,f:e|U|Ae,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};x==null||x.register_created_effect(n);var i=n;if((e&Xt)!==0)mr!==null?mr.push(n):ut.ensure().schedule(n);else if(t!==null){try{Yt(n)}catch(o){throw re(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Ot)===0&&(i=i.first,(e&Te)!==0&&(e&St)!==0&&i!==null&&(i.f|=St))}if(i!==null&&(i.parent=r,r!==null&&au(i,r),N!==null&&(N.f&Z)!==0&&(e&Je)===0)){var s=N;((a=s.effects)!=null?a:s.effects=[]).push(i)}return n}function mn(){return N!==null&&!Se}function Bi(e){const t=Oe(Pr,null);return k(t,q),t.teardown=e,t}function uu(e){var i;Ks();var t=A.f,r=!N&&(t&He)!==0&&te!==null&&!te.i;if(r){var n=te;((i=n.e)!=null?i:n.e=[]).push(e)}else return eo(e)}function eo(e){return Oe(Xt|As,e)}function lu(e){return Ks(),Oe(Pr|As,e)}function fu(e){ut.ensure();const t=Oe(Je|Ot,e);return()=>{re(t)}}function hu(e){ut.ensure();const t=Oe(Je|Ot,e);return(r={})=>new Promise(n=>{r.outro?wt(t,()=>{re(t),n(void 0)}):(re(t),n(void 0))})}function Ii(e){return Oe(Xt,e)}function cu(e){return Oe(Dt|Ot,e)}function gn(e,t=0){return Oe(Pr|t,e)}function br(e,t=[],r=[],n=[]){Qa(n,t,r,i=>{Oe(Pr,()=>{e(...i.map(L))})})}function Lr(e,t=0){var r=Oe(Te|t,e);return r}function _e(e){return Oe(He|Ot,e)}function to(e){var t=e.teardown;if(t!==null){const r=Ke,n=N;Xi(!0),be(null);try{t.call(null)}catch(i){$e(i,e.parent)}finally{Xi(r),be(n)}}}function Mi(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Cr(()=>{i.abort(Br)});var n=r.next;(r.f&Je)!==0?r.parent=null:re(r,t),r=n}}function du(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&He)===0&&re(t),t=r}}function re(e,t=!0){var r=!1;(t||(e.f&Pa)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ro(e.nodes.start,e.nodes.end),r=!0),e.f|=yr,Mi(e,t&&!r),wr(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();to(e),e.f^=yr,e.f|=z;var i=e.parent;i!==null&&i.first!==null&&no(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function ro(e,t){for(;e!==null;){var r=e===t?null:Ne(e);e.remove(),e=r}}function no(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 wt(e,t,r=!0){var n=[];e.f|=Ei,io(e,n,!0);var i=()=>{r&&re(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function io(e,t,r){if((e.f&ee)===0){e.f^=ee;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next;if((i.f&Je)===0){var a=(i.f&St)!==0||(i.f&He)!==0&&(e.f&Te)!==0;io(i,t,a?r:!1)}i=s}}}function sn(e){e.f&=~Ei,so(e,!0)}function so(e,t){if((e.f&Ei)===0&&(e.f&ee)!==0){e.f^=ee,(e.f&q)===0&&(k(e,U),ut.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&St)!==0||(r.f&He)!==0;so(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 Ci(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Ne(r);t.append(r),r=i}}let Ke=!1;function Xi(e){Ke=e}let N=null,Se=!1;function be(e){N=e}let A=null;function je(e){A=e}let ce=null;function oo(e){N!==null&&((N.f&en)!==0||(N.f&Z)!==0)&&(ce!=null?ce:ce=new Set).add(e)}let ie=null,fe=0,ve=null;function pu(e){ve=e}let ao=1,vt=0,Tt=vt;function zi(e){Tt=e}function uo(){return++ao}function Rr(e){var t=e.f;if((t&U)!==0)return!0;if((t&he)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Rr(s)&&Rs(s),s.wv>e.wv)return!0}(t&Ae)!==0&&X===null&&k(e,q)}return!1}function lo(e,t,r=!0){var n=e.reactions;if(n!==null&&!(ce!==null&&ce.has(e)))for(var i=0;i<n.length;i++){var s=n[i];(s.f&Z)!==0?lo(s,t,!1):t===s&&(r?k(s,U):(s.f&q)!==0&&k(s,he),Oi(s))}}function fo(e){var t=ie,r=fe,n=ve,i=N,s=ce,a=te,o=Se,u=Tt,l=e.f;ie=null,fe=0,ve=null,N=(l&(He|Je))===0?e:null,ce=null,zt(e.ctx),Se=!1,Tt=++vt,e.ac!==null&&(Cr(()=>{e.ac.abort(Br)}),e.ac=null);try{e.f|=en;var f=e.fn,c=f();e.f|=Nt;var p=Wi(e);if(Bs()&&ve!==null&&!Se&&p!==null&&(e.f&(Z|he|U))===0)for(var d=0;d<ve.length;d++)lo(ve[d],e);if(i!==null&&i!==e){if(vt++,i.deps!==null)for(let m=0;m<r;m+=1)i.deps[m].rv=vt;if(t!==null)for(const m of t)m.rv=vt;ve!==null&&(n===null?n=ve:n.push(...ve))}return(e.f&ot)!==0&&(e.f^=ot),c}catch(m){return Wi(e),ou(m)}finally{e.f^=en,ie=t,fe=r,ve=n,N=i,ce=s,zt(a),Se=o,Tt=u}}function Wi(e){var i,s;var t=e.deps,r=x==null?void 0:x.is_fork;if(ie!==null){var n;if(r||wr(e,fe),t!==null&&fe>0)for(t.length=fe+ie.length,n=0;n<ie.length;n++)t[fe+n]=ie[n];else e.deps=t=ie;if(mn()&&(e.f&Ae)!==0)for(n=fe;n<t.length;n++)((s=(i=t[n]).reactions)!=null?s:i.reactions=[]).push(e)}else!r&&t!==null&&fe<t.length&&(wr(e,fe),t.length=fe);return t}function vu(e,t){let r=t.reactions;if(r!==null){var n=Ha.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&Z)!==0&&(ie===null||!Er.call(ie,t))){var s=t;(s.f&Ae)!==0&&(s.f^=Ae),s.v!==V&&Ai(s),s.ac!==null&&Cr(()=>{s.ac.abort(Br),s.ac=null,k(s,U)}),tu(s),wr(s,0)}}function wr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)vu(e,r[n])}function Yt(e){var t=e.f;if((t&z)===0){k(e,q);var r=A;A=e;try{(t&(Te|Ss))!==0?du(e):Mi(e),to(e);var n=fo(e);e.teardown=typeof n=="function"?n:null,e.wv=ao;var i;Es&&Wa&&(e.f&U)!==0&&e.deps}finally{A=r}}}function mu(){return Sn(this,null,function*(){yield Promise.resolve(),Ve()})}function L(e){var f;var t=e.f,r=(t&Z)!==0;if(N!==null&&!Se){var n=A!==null&&(A.f&z)!==0;if(!n&&(ce===null||!ce.has(e))){var i=N.deps;if((N.f&en)!==0)e.rv<vt&&(e.rv=vt,ie===null&&i!==null&&i[fe]===e?fe++:ie===null?ie=[e]:ie.push(e));else{(f=N.deps)!=null||(N.deps=[]),Er.call(N.deps,e)||N.deps.push(e);var s=e.reactions;s===null?e.reactions=[N]:Er.call(s,N)||s.push(N)}}}if(Ke&&Ge.has(e))return Ge.get(e);if(r){var a=e;if(Ke){var o=a.v;return((a.f&q)===0&&a.reactions!==null||co(a))&&(o=Hi(a)),Ge.set(a,o),o}var u=(a.f&Ae)===0&&!Se&&N!==null&&(N.f&Ae)!==0,l=(a.f&Nt)===0;Rr(a)&&(u&&(a.f|=Ae),Rs(a)),u&&!l&&($s(a),ho(a))}if(X!=null&&X.has(e))return X.get(e);if((e.f&ot)!==0)throw e.v;return e.v}function ho(e){if(e.f|=Ae,e.deps!==null)for(const r of e.deps){var t=r.reactions;t===null?r.reactions=[e]:Er.call(t,e)||t.push(e),(r.f&Z)!==0&&(r.f&Ae)===0&&($s(r),ho(r))}}function co(e){if(e.v===V)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ge.has(t)||(t.f&Z)!==0&&co(t))return!0;return!1}function er(e){var t=Se;try{return Se=!0,e()}finally{Se=t}}function gu(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(xt in e)Zn(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&xt in r&&Zn(r)}}}function Zn(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Zn(e[n],t)}catch(i){}const r=bi(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=xs(r);for(let i in n){const s=n[i].get;if(s)try{s.call(e)}catch(a){}}}}}const mt=Symbol("events"),po=new Set,Qn=new Set;function _u(e){if(!S)return;e.removeAttribute("onload"),e.removeAttribute("onerror");const t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function bu(e,t,r,n={}){function i(s){if(n.capture||Jn.call(t,s),!s.cancelBubble)return Cr(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?(i.__removed=!1,Ze(()=>{i.__removed||t.addEventListener(e,i,n)})):t.addEventListener(e,i,n),i}function Eu(e,t,r,n,i){var s={capture:n,passive:i},a=bu(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Bi(()=>{a.__removed=!0,t.removeEventListener(e,a,s)})}function yu(e,t,r){var n;((n=t[mt])!=null?n:t[mt]={})[e]=r}function xu(e){for(var t=0;t<e.length;t++)po.add(e[t]);for(var r of Qn)r(e)}let Nn=null,On=!1;function Jn(e){var _,g;var t=this,r=t.ownerDocument,n=e.type,i=((_=e.composedPath)==null?void 0:_.call(e))||[],s=i[0]||e.target;Nn=e,On||(On=!0,setTimeout(()=>{On=!1,Nn=null}));var a=0,o=Nn===e&&e[mt];if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e[mt]=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(s=i[a]||e.target,s!==t){qt(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=N,c=A;be(null),je(null);try{for(var p,d=[];s!==null&&s!==t;){try{var m=(g=s[mt])==null?void 0:g[n];m!=null&&(!s.disabled||e.target===s)&&m.call(s,e)}catch(v){p?d.push(v):p=v}if(e.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(p){for(let v of d)queueMicrotask(()=>{throw v});throw p}}finally{e[mt]=t,delete e.currentTarget,be(f),je(c)}}}var ms;const Pn=((ms=globalThis==null?void 0:globalThis.window)==null?void 0:ms.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function wu(e){var t;return(t=Pn==null?void 0:Pn.createHTML(e))!=null?t:e}function vo(e){var t=pn("template");return t.innerHTML=wu(e.replaceAll("<!>","<!---->")),t.content}function de(e,t){var r=A;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function $r(e,t){var r=(t&wa)!==0,n=(t&Ta)!==0,i,s=!e.startsWith("<!>");return()=>{if(S)return de(T,null),T;i===void 0&&(i=vo(s?e:"<!>"+e),r||(i=K(i)));var a=n||zs?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=K(a),u=a.lastChild;de(o,u)}else de(a,a);return a}}function Tu(e,t,r="svg"){var n=!e.startsWith("<!>"),i=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(S)return de(T,null),T;if(!s){var a=vo(i),o=K(a);s=K(o)}var u=s.cloneNode(!0);return de(u,u),u}}function Su(e,t){return Tu(e,t,"svg")}function Au(e=""){if(!S){var t=se(e+"");return de(t,t),t}var r=T;return r.nodeType!==Ir?(r.before(r=se()),W(r)):vn(r),de(r,r),r}function Hu(){if(S)return de(T,null),T;var e=document.createDocumentFragment(),t=document.createComment(""),r=se();return e.append(t,r),de(t,r),e}function $t(e,t){if(S){var r=A;((r.f&Nt)===0||r.nodes.end===null)&&(r.nodes.end=T),At();return}e!==null&&e.before(t)}const Nu=["touchstart","touchmove"];function Ou(e){return Nu.includes(e)}function mo(e){let t=0,r=Ht(0),n;return()=>{mn()&&(L(r),gn(()=>(t===0&&(n=er(()=>e(()=>gr(r)))),t+=1,()=>{Ze(()=>{t-=1,t===0&&(n==null||n(),n=void 0,gr(r))})})))}}var Pu=St|Ot;function Bu(e,t,r,n){new Iu(e,t,r,n)}var oe,Ar,me,_t,Y,ae,Q,ue,Le,bt,it,Vt,Hr,ze,hn,O,go,_o,Kn,nt,bo,ei,hr,zr,ti,ri;class Iu{constructor(t,r,n,i){H(this,O);$(this,"parent");$(this,"is_pending",!1);$(this,"transform_error");H(this,oe);H(this,Ar,S?T:null);H(this,me);H(this,_t);H(this,Y);H(this,ae,null);H(this,Q,null);H(this,ue,null);H(this,Le,null);H(this,bt,0);H(this,it,0);H(this,Vt,!1);H(this,Hr,new Map);H(this,ze,null);H(this,hn,mo(()=>(w(this,ze,Ht(h(this,bt))),()=>{w(this,ze,null)})));var s,a;w(this,oe,t),w(this,me,r),w(this,_t,o=>{var u=A;u.b=this,u.f|=Fn,n(o)}),this.parent=A.b,this.transform_error=(a=i!=null?i:(s=this.parent)==null?void 0:s.transform_error)!=null?a:(o=>o),w(this,Y,Lr(()=>{if(S){const o=yi(h(this,Ar));At();const u=o===gi;if(o.startsWith(Gi)){const f=JSON.parse(o.slice(Gi.length));y(this,O,_o).call(this,f)}else u?y(this,O,bo).call(this):y(this,O,go).call(this)}else y(this,O,ei).call(this)},Pu)),S&&w(this,oe,T)}defer_effect(t){Ms(t,h(this,Hr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!h(this,me).pending}update_pending_count(t,r){y(this,O,ti).call(this,t,r),w(this,bt,h(this,bt)+t),!(!h(this,ze)||h(this,Vt))&&(w(this,Vt,!0),Ze(()=>{w(this,Vt,!1),h(this,ze)&&Wt(h(this,ze),h(this,bt))}))}get_effect_pending(){return h(this,hn).call(this),L(h(this,ze))}error(t){if(t===Qe||!h(this,me).onerror&&!h(this,me).failed)throw t;x!=null&&x.is_fork?(h(this,ae)&&x.skip_effect(h(this,ae)),h(this,Q)&&x.skip_effect(h(this,Q)),h(this,ue)&&x.skip_effect(h(this,ue)),x.oncommit(()=>{y(this,O,nt).call(this)||y(this,O,ri).call(this,t)})):y(this,O,ri).call(this,t)}}oe=new WeakMap,Ar=new WeakMap,me=new WeakMap,_t=new WeakMap,Y=new WeakMap,ae=new WeakMap,Q=new WeakMap,ue=new WeakMap,Le=new WeakMap,bt=new WeakMap,it=new WeakMap,Vt=new WeakMap,Hr=new WeakMap,ze=new WeakMap,hn=new WeakMap,O=new WeakSet,go=function(){try{w(this,ae,_e(()=>h(this,_t).call(this,h(this,oe))))}catch(t){this.error(t)}},_o=function(t){const r=h(this,me).failed,{reset:n,invoke_onerror:i}=y(this,O,Kn).call(this,t);Ze(i),r&&w(this,ue,_e(()=>{r(h(this,oe),()=>t,()=>n)}))},Kn=function(t){var r=!1,n=!1;const i=()=>{if(!y(this,O,nt).call(this)){if(r){Ca();return}r=!0,n&&za(),h(this,ue)!==null&&wt(h(this,ue),()=>{w(this,ue,null)}),y(this,O,zr).call(this,()=>{y(this,O,ei).call(this)})}};return{reset:i,invoke_onerror:()=>{var a,o;if(!y(this,O,nt).call(this))try{n=!0,(o=(a=h(this,me)).onerror)==null||o.call(a,t,i),n=!1}catch(u){$e(u,h(this,Y)&&h(this,Y).parent)}}}},nt=function(){return(h(this,Y).f&(z|yr))!==0},bo=function(){const t=h(this,me).pending;t&&(this.is_pending=!0,w(this,Q,_e(()=>t(h(this,oe)))),Ze(()=>{if(!y(this,O,nt).call(this)){var r=w(this,Le,document.createDocumentFragment()),n=se(),i=!1;if(r.append(n),w(this,ae,y(this,O,zr).call(this,()=>{try{return _e(()=>h(this,_t).call(this,n))}catch(s){try{this.error(s),i=!0}catch(a){$e(a,h(this,Y).parent)}return null}})),h(this,ae)===null){w(this,Le,null),i&&y(this,O,hr).call(this,x);return}h(this,it)===0&&(h(this,oe).before(r),w(this,Le,null),wt(h(this,Q),()=>{w(this,Q,null)}),y(this,O,hr).call(this,x))}}))},ei=function(){try{if(this.is_pending=this.has_pending_snippet(),w(this,it,0),w(this,bt,0),w(this,ae,_e(()=>{h(this,_t).call(this,h(this,oe))})),h(this,it)>0){var t=w(this,Le,document.createDocumentFragment());Ci(h(this,ae),t);const r=h(this,me).pending;w(this,Q,_e(()=>r(h(this,oe))))}else y(this,O,hr).call(this,x)}catch(r){this.error(r)}},hr=function(t){this.is_pending=!1,t.transfer_reactions(h(this,Hr))},zr=function(t){var r=A,n=N,i=te;je(h(this,Y)),be(h(this,Y)),zt(h(this,Y).ctx);try{return ut.ensure(),t()}finally{je(r),be(n),zt(i)}},ti=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&y(n=this.parent,O,ti).call(n,t,r);return}w(this,it,h(this,it)+t),h(this,it)===0&&(y(this,O,hr).call(this,r),h(this,Q)&&wt(h(this,Q),()=>{w(this,Q,null)}),h(this,Le)&&(h(this,oe).before(h(this,Le)),w(this,Le,null)))},ri=function(t){h(this,ae)&&(re(h(this,ae)),w(this,ae,null)),h(this,Q)&&(re(h(this,Q)),w(this,Q,null)),h(this,ue)&&(re(h(this,ue)),w(this,ue,null)),S&&(W(h(this,Ar)),La(),W(tn()));let r=h(this,me).failed;const n=i=>{if(y(this,O,nt).call(this))return;const{reset:s,invoke_onerror:a}=y(this,O,Kn).call(this,i);a(),r&&!y(this,O,nt).call(this)&&w(this,ue,y(this,O,zr).call(this,()=>{try{return _e(()=>{var o=A;o.b=this,o.f|=Fn,r(h(this,oe),()=>i,()=>s)})}catch(o){return $e(o,h(this,Y).parent),null}}))};Ze(()=>{if(!y(this,O,nt).call(this)){var i;try{i=this.transform_error(t)}catch(s){$e(s,h(this,Y)&&h(this,Y).parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(n,s=>$e(s,h(this,Y)&&h(this,Y).parent)):n(i)}})};function cr(e,t){var n;var r=t==null?"":typeof t=="object"?`${t}`:t;r!==((n=e[or])!=null?n:e[or]=e.nodeValue)&&(e[or]=r,e.nodeValue=`${r}`)}function Eo(e,t){return yo(e,t)}function Mu(e,t){var a;Yn(),t.intro=(a=t.intro)!=null?a:!1;const r=t.target,n=S,i=T;try{for(var s=K(r);s&&(s.nodeType!==Kt||s.data!==_s);)s=Ne(s);if(!s)throw Qe;Ye(!0),W(s);const o=yo(e,Gr(Fr({},t),{anchor:s}));return Ye(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(u=>u.startsWith("https://svelte.dev/e/")))throw o;return o!==Qe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&ja(),Yn(),Qs(r),Ye(!1),Eo(e,t)}finally{Ye(n),W(i)}}const jr=new Map;function yo(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0,transformError:o}){Yn();var u=void 0,l=hu(()=>{var f=r!=null?r:t.appendChild(se());Bu(f,{pending:()=>{}},d=>{wi({});var m=te;if(s&&(m.c=s),i&&(n.$$events=i),S&&de(d,null),u=e(d,n)||Si(),S&&(A.nodes.end=T,T===null||T.nodeType!==Kt||T.data!==_i))throw Mr(),Qe;Ti()},o);var c=new Set,p=d=>{for(var m=0;m<d.length;m++){var _=d[m];if(!c.has(_)){c.add(_);var g=Ou(_);for(const E of[t,document]){var v=jr.get(E);v===void 0&&(v=new Map,jr.set(E,v));var b=v.get(_);b===void 0?(E.addEventListener(_,Jn,{passive:g}),v.set(_,1)):v.set(_,b+1)}}}};return p(dn(po)),Qn.add(p),()=>{var g;for(var d of c)for(const v of[t,document]){var m=jr.get(v),_=m.get(d);--_==0?(v.removeEventListener(d,Jn),m.delete(d),m.size===0&&jr.delete(v)):m.set(d,_)}Qn.delete(p),f!==r&&((g=f.parentNode)==null||g.removeChild(f))}});return ni.set(u,l),u}let ni=new WeakMap;function Cu(e,t){const r=ni.get(e);return r?(ni.delete(e),r(t)):Promise.resolve()}var xe,Re,le,Et,Nr,Or,cn;class Li{constructor(t,r=!0){$(this,"anchor");H(this,xe,new Map);H(this,Re,new Map);H(this,le,new Map);H(this,Et,new Set);H(this,Nr,!0);H(this,Or,t=>{if(h(this,xe).has(t)){var r=h(this,xe).get(t),n=h(this,Re).get(r);if(n)sn(n),h(this,Et).delete(r);else{var i=h(this,le).get(r);i&&(sn(i.effect),h(this,Re).set(r,i.effect),h(this,le).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of h(this,xe)){if(h(this,xe).delete(s),s===t)break;const o=h(this,le).get(a);o&&(re(o.effect),h(this,le).delete(a))}for(const[s,a]of h(this,Re)){if(s===r||h(this,Et).has(s))continue;const o=()=>{if(Array.from(h(this,xe).values()).includes(s)){var l=document.createDocumentFragment();Ci(a,l),l.append(se()),h(this,le).set(s,{effect:a,fragment:l})}else re(a);h(this,Et).delete(s),h(this,Re).delete(s)};h(this,Nr)||!n?(h(this,Et).add(s),wt(a,o,!1)):o()}}});H(this,cn,t=>{h(this,xe).delete(t);const r=Array.from(h(this,xe).values());for(const[n,i]of h(this,le))r.includes(n)||(re(i.effect),h(this,le).delete(n))});this.anchor=t,w(this,Nr,r)}ensure(t,r){var n=x,i=Js();if(r&&!h(this,Re).has(t)&&!h(this,le).has(t))if(i){var s=document.createDocumentFragment(),a=se();s.append(a),h(this,le).set(t,{effect:_e(()=>r(a)),fragment:s})}else h(this,Re).set(t,_e(()=>r(this.anchor)));if(h(this,xe).set(n,t),i){for(const[o,u]of h(this,Re))o===t?n.unskip_effect(u):n.skip_effect(u);for(const[o,u]of h(this,le))o===t?n.unskip_effect(u.effect):n.skip_effect(u.effect);n.oncommit(h(this,Or)),n.ondiscard(h(this,cn))}else S&&(this.anchor=T),h(this,Or).call(this,n)}}xe=new WeakMap,Re=new WeakMap,le=new WeakMap,Et=new WeakMap,Nr=new WeakMap,Or=new WeakMap,cn=new WeakMap;function Lu(e,t,...r){var n=new Li(e);Lr(()=>{var s;const i=(s=t())!=null?s:null;n.ensure(i,i&&(a=>i(a,...r)))},St)}function Wr(e,t,r=!1){var n;S&&(n=T,At());var i=new Li(e),s=r?St:0;function a(o,u){if(S){var l=yi(n);if(o!==parseInt(l.substring(1))){var f=tn();W(f),i.anchor=f,Ye(!1),i.ensure(o,u),Ye(!0);return}}i.ensure(o,u)}Lr(()=>{var o=!1;t((u,l=0)=>{o=!0,a(l,u)}),o||a(-1,null)},s)}const Ru=Symbol("NaN");function $u(e,t,r){S&&At();var n=new Li(e);Lr(()=>{var i=t();i!==i&&(i=Ru),n.ensure(i,r)})}function Du(e,t){return t}function Uu(e,t,r){var c;for(var n=[],i=t.length,s,a=t.length,o=0;o<i;o++){let p=t[o];wt(p,()=>{if(s){if(s.pending.delete(p),s.done.add(p),s.pending.size===0){var d=e.outrogroups;ii(e,dn(s.done)),d.delete(s),d.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var u=n.length===0&&r!==null&&e.pending.size===0;if(u){var l=r,f=l.parentNode;Qs(f),f.append(l),e.items.clear()}ii(e,t,!u)}else s={pending:new Set(t),done:new Set},((c=e.outrogroups)!=null?c:e.outrogroups=new Set).add(s)}function ii(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const a of e.pending.values())for(const o of a)n.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(n!=null&&n.has(s)){s.f|=Ue;const a=document.createDocumentFragment();Ci(s,a)}else re(t[i],r)}}var tt;function Fu(e,t,r,n,i,s=null){var a=e,o=new Map,u=(t&gs)!==0;if(u){var l=e;a=S?W(K(l)):l.appendChild(se())}S&&At();var f=null,c=Ls(()=>{var b=r();return ys(b)?b:b==null?[]:dn(b)}),p=new Map,d=!0;function m(b){if((v.effect.f&z)===0){v.pending.delete(b);var E=L(c);v.fallback=f,Gu(v,E,a,t,n),f!==null&&(E.length===0?(f.f&Ue)===0?sn(f):(f.f^=Ue,dr(f,null,a)):wt(f,()=>{f=null}))}}function _(b){v.pending.delete(b)}var g=Lr(()=>{var b=L(c),E=b.length;let B=!1;if(S){var M=yi(a)===gi;M!==(E===0)&&(a=tn(),W(a),Ye(!1),B=!0)}for(var R=new Set,G=x,Ee=Js(),D=0;D<E;D+=1){S&&T.nodeType===Kt&&T.data===_i&&(a=T,B=!0,Ye(!1));var Pe=b[D],Be=n(Pe,D),ne=d?null:o.get(Be);ne?(ne.v&&Wt(ne.v,Pe),ne.i&&Wt(ne.i,D),Ee&&G.unskip_effect(ne.e)):(ne=ju(o,d?a:tt!=null?tt:tt=se(),Pe,Be,D,i,t,r),d||(ne.e.f|=Ue),o.set(Be,ne)),R.add(Be)}if(E===0&&s&&!f&&(d?f=_e(()=>s(a)):(f=_e(()=>s(tt!=null?tt:tt=se())),f.f|=Ue)),E>R.size&&$a(),S&&E>0&&W(tn()),!d)if(p.set(G,R),Ee){for(const[Bt,It]of o)R.has(Bt)||G.skip_effect(It.e);G.oncommit(m),G.ondiscard(_)}else m(G);B&&Ye(!0),L(c)}),v={effect:g,items:o,pending:p,outrogroups:null,fallback:f};d=!1,S&&(a=T)}function ir(e){for(;e!==null&&(e.f&He)===0;)e=e.next;return e}function Gu(e,t,r,n,i){var Pe,Be,ne,Bt,It,Ie,et,ft,Dr;var s=(n&ga)!==0,a=t.length,o=e.items,u=ir(e.effect.first),l,f=null,c,p=[],d=[],m,_,g,v;if(s)for(v=0;v<a;v+=1)m=t[v],_=i(m,v),g=o.get(_).e,(g.f&Ue)===0&&((Be=(Pe=g.nodes)==null?void 0:Pe.a)==null||Be.measure(),(c!=null?c:c=new Set).add(g));for(v=0;v<a;v+=1){if(m=t[v],_=i(m,v),g=o.get(_).e,e.outrogroups!==null)for(const pe of e.outrogroups)pe.pending.delete(g),pe.done.delete(g);if((g.f&ee)!==0&&(sn(g),s&&((Bt=(ne=g.nodes)==null?void 0:ne.a)==null||Bt.unfix(),(c!=null?c:c=new Set).delete(g))),(g.f&Ue)!==0)if(g.f^=Ue,g===u)dr(g,null,r);else{var b=f?f.next:u;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),rt(e,f,g),rt(e,g,b),dr(g,b,r),f=g,p=[],d=[],u=ir(f.next);continue}if(g!==u){if(l!==void 0&&l.has(g)){if(p.length<d.length){var E=d[0],B;f=E.prev;var M=p[0],R=p[p.length-1];for(B=0;B<p.length;B+=1)dr(p[B],E,r);for(B=0;B<d.length;B+=1)l.delete(d[B]);rt(e,M.prev,R.next),rt(e,f,M),rt(e,R,E),u=E,f=R,v-=1,p=[],d=[]}else l.delete(g),dr(g,u,r),rt(e,g.prev,g.next),rt(e,g,f===null?e.effect.first:f.next),rt(e,f,g),f=g;continue}for(p=[],d=[];u!==null&&u!==g;)(l!=null?l:l=new Set).add(u),d.push(u),u=ir(u.next);if(u===null)continue}(g.f&Ue)===0&&p.push(g),f=g,u=ir(g.next)}if(e.outrogroups!==null){for(const pe of e.outrogroups)pe.pending.size===0&&(ii(e,dn(pe.done)),(It=e.outrogroups)==null||It.delete(pe));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||l!==void 0){var G=[];if(l!==void 0)for(g of l)(g.f&ee)===0&&G.push(g);for(;u!==null;)(u.f&ee)===0&&u!==e.fallback&&G.push(u),u=ir(u.next);var Ee=G.length;if(Ee>0){var D=(n&gs)!==0&&a===0?r:null;if(s){for(v=0;v<Ee;v+=1)(et=(Ie=G[v].nodes)==null?void 0:Ie.a)==null||et.measure();for(v=0;v<Ee;v+=1)(Dr=(ft=G[v].nodes)==null?void 0:ft.a)==null||Dr.fix()}Uu(e,G,D)}}s&&Ze(()=>{var pe,Ur;if(c!==void 0)for(g of c)(Ur=(pe=g.nodes)==null?void 0:pe.a)==null||Ur.apply()})}function ju(e,t,r,n,i,s,a,o){var u=(a&va)!==0?(a&_a)===0?Pi(r,!1,!1):Ht(r):null,l=(a&ma)!==0?Ht(i):null;return{v:u,i:l,e:_e(()=>(s(t,u!=null?u:r,l!=null?l:i,o),()=>{e.delete(n)}))}}function dr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&(t.f&Ue)===0?t.nodes.start:r;n!==null;){var a=Ne(n);if(s.before(n),n===i)return;n=a}}function rt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function ku(e,t,r=!1,n=!1,i=!1,s=!1){var a=e,o="";if(r){var u=e;S&&(a=W(K(u)))}br(()=>{var _;var l=A;if(o===(o=(_=t())!=null?_:"")){S&&At();return}if(r&&!S){l.nodes=null,u.innerHTML=o,o!==""&&de(K(u),u.lastChild);return}if(l.nodes!==null&&(ro(l.nodes.start,l.nodes.end),l.nodes=null),o!==""){if(S){T.data;for(var f=At(),c=f;f!==null&&(f.nodeType!==Kt||f.data!=="");)c=f,f=Ne(f);if(f===null)throw Mr(),Qe;de(T,c),a=W(f);return}var p=n?Sa:i?Aa:void 0,d=pn(n?"svg":i?"math":"template",p);d.innerHTML=o;var m=n||i?d:d.content;if(de(K(m),m.lastChild),n||i)for(;K(m);)a.before(K(m));else a.before(m)}})}function xo(e,t){Ii(()=>{var i,s,a,o;e=(a=(s=(i=A==null?void 0:A.parent)==null?void 0:i.nodes)==null?void 0:s.start)!=null?a:e;var r=e.getRootNode(),n=r.host?r:(o=r.head)!=null?o:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const u=pn("style");u.id=t.hash,u.textContent=t.code,n.appendChild(u)}})}function Vu(e,t,r){Ii(()=>{var n=er(()=>t(e,r==null?void 0:r())||{});if(r&&(n!=null&&n.update)){var i=!1,s={};gn(()=>{var a=r();gu(a),i&&xi(s,a)&&(s=a,n.update(a))}),i=!0}if(n!=null&&n.destroy)return()=>n.destroy()})}const Yi=[...`
3
+ \r\f \v\uFEFF`];function qu(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,a=0;(a=n.indexOf(i,a))>=0;){var o=a+s;(a===0||Yi.includes(n[a-1]))&&(o===n.length||Yi.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}function Zi(e,t=!1){var r=t?" !important;":";",n="";for(var i of Object.keys(e)){var s=e[i];s!=null&&s!==""&&(n+=" "+i+": "+s+r)}return n}function Xu(e,t){if(t){var r="",n,i;return Array.isArray(t)?(n=t[0],i=t[1]):n=t,n&&(r+=Zi(n)),i&&(r+=Zi(i,!0)),r=r.trim(),r===""?null:r}return String(e)}function si(e,t,r,n,i,s){var a=e[Gn];if(S||a!==r||a===void 0){var o=qu(r,n,s);(!S||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e[Gn]=r}else if(s&&i!==s)for(var u in s){var l=!!s[u];(i==null||l!==!!i[u])&&e.classList.toggle(u,l)}return s}function Bn(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 zu(e,t,r,n){var i=e[jn];if(S||i!==t){var s=Xu(t,n);(!S||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e[jn]=t}else n&&(Array.isArray(n)?(Bn(e,r==null?void 0:r[0],n[0]),Bn(e,r==null?void 0:r[1],n[1],"important")):Bn(e,r,n));return n}const Wu=Symbol("is custom element"),Yu=Symbol("is html"),Zu=Ia?"link":"LINK";function oi(e,t,r,n){var i=Qu(e);if(!(S&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Zu))){var s=i[t];s!==(i[t]=r)&&(t==="loading"&&(e[Ba]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ju(e).has(t)?e[t]=r:S&&(typeof r=="number"||typeof r=="boolean")&&s===String(r)||e.setAttribute(t,r))}}function Qu(e){var t;return(t=e[qr])!=null?t:e[qr]={[Wu]:e.nodeName.includes("-"),[Yu]:e.namespaceURI===bs}}var Qi=new Map;function Ju(e){var t=e.getAttribute("is")||e.nodeName,r=Qi.get(t);if(r)return r;Qi.set(t,r=new Set);for(var n,i=e,s=Element.prototype;s!==i;){n=xs(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.add(a);i=bi(i)}return r}function In(e,t){return e===t||(e==null?void 0:e[xt])===t}function Ku(e=Si(),t,r,n){var i=te.r,s=A;return Ii(()=>{var a,o;return gn(()=>{a=o,o=[],er(()=>{In(r(...o),e)||(t(e,...o),a&&In(r(...a),e)&&t(null,...a))})}),()=>{let u=s;for(;u!==i&&u.parent!==null&&u.parent.f&yr;)u=u.parent;const l=()=>{o&&In(r(...o),e)&&t(null,...o)},f=u.teardown;u.teardown=()=>{l(),f==null||f()}}}),e}function Ri(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Fe;const n=er(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Ct=[];function wo(e,t){return{subscribe:_n(e,t).subscribe}}function _n(e,t=Fe){let r=null;const n=new Set;function i(o){if(xi(e,o)&&(e=o,r)){const u=!Ct.length;for(const l of n)l[1](),Ct.push(l,e);if(u){for(let l=0;l<Ct.length;l+=2)Ct[l][0](Ct[l+1]);Ct.length=0}}}function s(o){i(o(e))}function a(o,u=Fe){const l=[o,u];return n.add(l),n.size===1&&(r=t(i,s)||Fe),o(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function tr(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 wo(r,(a,o)=>{let u=!1;const l=[];let f=0,c=Fe;const p=()=>{if(f)return;c();const m=t(n?l[0]:l,a,o);s?a(m):c=typeof m=="function"?m:Fe},d=i.map((m,_)=>Ri(m,g=>{l[_]=g,f&=~(1<<_),u&&p()},()=>{f|=1<<_}));return u=!0,p(),function(){ws(d),c(),u=!1}})}function To(e){let t;return Ri(e,r=>t=r)(),t}let kr=!1,ai=Symbol("unmounted");function So(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:Pi(void 0),unsubscribe:Fe};if(n.store!==e&&!(ai in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=Fe;else{var i=!0;n.unsubscribe=Ri(e,a=>{i?n.source.v=a:we(n.source,a)}),i=!1}return e&&ai in r?To(e):L(n.source)}function Ao(){const e={};function t(){Bi(()=>{for(var r in e)e[r].unsubscribe();qt(e,ai,{enumerable:!1,value:!0})})}return[e,t]}function el(e){var t=kr;try{return kr=!1,[e(),kr]}finally{kr=t}}function ht(e,t,r,n){var B,M;var i=!0,s=(r&ya)!==0,a=(r&xa)!==0,o=n,u=!0,l=void 0,f=()=>a&&i?(l!=null||(l=xr(n)),L(l)):(u&&(u=!1,o=a?er(n):n),o);let c;if(s){var p=xt in e||Ns in e;c=(M=(B=yt(e,t))==null?void 0:B.set)!=null?M:p&&t in e?R=>e[t]=R:void 0}var d,m=!1;s?[d,m]=el(()=>e[t]):d=e[t],d===void 0&&n!==void 0&&(d=f(),c&&(ka(),c(d)));var _;if(_=()=>{var R=e[t];return R===void 0?f():(u=!0,R)},(r&Ea)===0)return _;if(c){var g=e.$$legacy;return(function(R,G){return arguments.length>0?((!G||g||m)&&c(G?_():R),R):_()})}var v=!1,b=((r&ba)!==0?xr:Ls)(()=>(v=!1,_()));s&&L(b);var E=A;return(function(R,G){if(arguments.length>0){const Ee=G?L(b):s?pt(R):R;return we(b,Ee),v=!0,o!==void 0&&(o=Ee),R}return Ke&&v||(E.f&z)!==0?b.v:L(b)})}function tl(e){return new rl(e)}var We,ge;class rl{constructor(t){H(this,We);H(this,ge);var s,a;var r=new Map,n=(o,u)=>{var l=Pi(u,!1,!1);return r.set(o,l),l};const i=new Proxy(Gr(Fr({},t.props||{}),{$$events:{}}),{get(o,u){var l;return L((l=r.get(u))!=null?l:n(u,Reflect.get(o,u)))},has(o,u){var l;return u===Ns?!0:(L((l=r.get(u))!=null?l:n(u,Reflect.get(o,u))),Reflect.has(o,u))},set(o,u,l){var f;return we((f=r.get(u))!=null?f:n(u,l),l),Reflect.set(o,u,l)}});w(this,ge,(t.hydrate?Mu:Eo)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover,transformError:t.transformError})),(!((a=t==null?void 0:t.props)!=null&&a.$$host)||t.sync===!1)&&Ve(),w(this,We,i.$$events);for(const o of Object.keys(h(this,ge)))o==="$set"||o==="$destroy"||o==="$on"||qt(this,o,{get(){return h(this,ge)[o]},set(u){h(this,ge)[o]=u},enumerable:!0});h(this,ge).$set=o=>{Object.assign(i,o)},h(this,ge).$destroy=()=>{Cu(h(this,ge))}}$set(t){h(this,ge).$set(t)}$on(t,r){h(this,We)[t]=h(this,We)[t]||[];const n=(...i)=>r.call(this,...i);return h(this,We)[t].push(n),()=>{h(this,We)[t]=h(this,We)[t].filter(i=>i!==n)}}$destroy(){h(this,ge).$destroy()}}We=new WeakMap,ge=new WeakMap;let Ho;typeof HTMLElement=="function"&&(Ho=class extends HTMLElement{constructor(t,r,n){super();$(this,"$$ctor");$(this,"$$s");$(this,"$$c");$(this,"$$cn",!1);$(this,"$$d",{});$(this,"$$r",!1);$(this,"$$p_d",{});$(this,"$$l",{});$(this,"$$l_u",new Map);$(this,"$$me");$(this,"$$shadowRoot",null);this.$$ctor=t,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Sn(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return a=>{const o=pn("slot");s!=="default"&&(o.name=s),$t(a,o)}};var t=r;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=nl(this);for(const s of this.$$s)s in i&&(s==="default"&&!this.$$d.children?(this.$$d.children=r(s),n.default=!0):n[s]=r(s));for(const s of this.attributes){const a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Yr(a,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=tl({component:this.$$ctor,target:this.$$shadowRoot||this,props:Gr(Fr({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=fu(()=>{gn(()=>{var s;this.$$r=!0;for(const a of Jr(this.$$c)){if(!((s=this.$$p_d[a])!=null&&s.reflect))continue;this.$$d[a]=this.$$c[a];const o=Yr(a,this.$$d[a],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,o)}this.$$r=!1})});for(const s in this.$$l)for(const a of this.$$l[s]){const o=this.$$c.$on(s,a);this.$$l_u.set(a,o)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Yr(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 Jr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Yr(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 nl(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function No(e,t,r,n,i,s){let a=class extends Ho{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Jr(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Jr(t).forEach(o=>{qt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var c;u=Yr(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var f=(c=yt(l,o))==null?void 0:c.get;f?l[o]=u:l.$set({[o]:u})}}})}),n.forEach(o=>{qt(a.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=a,a}function Oo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Po(e){let t;const r=mo(i=>{let s=!1;const a=e.subscribe(o=>{t=o,s&&i()});return s=!0,a});function n(){return mn()?(r(),t):To(e)}return"set"in e?{get current(){return n()},set current(i){e.set(i)}}:{get current(){return n()}}}var Mn,Ji;function il(){if(Ji)return Mn;Ji=1;var e=function(b){return t(b)&&!r(b)};function t(v){return!!v&&typeof v=="object"}function r(v){var b=Object.prototype.toString.call(v);return b==="[object RegExp]"||b==="[object Date]"||s(v)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function s(v){return v.$$typeof===i}function a(v){return Array.isArray(v)?[]:{}}function o(v,b){return b.clone!==!1&&b.isMergeableObject(v)?_(a(v),v,b):v}function u(v,b,E){return v.concat(b).map(function(B){return o(B,E)})}function l(v,b){if(!b.customMerge)return _;var E=b.customMerge(v);return typeof E=="function"?E:_}function f(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(b){return Object.propertyIsEnumerable.call(v,b)}):[]}function c(v){return Object.keys(v).concat(f(v))}function p(v,b){try{return b in v}catch(E){return!1}}function d(v,b){return p(v,b)&&!(Object.hasOwnProperty.call(v,b)&&Object.propertyIsEnumerable.call(v,b))}function m(v,b,E){var B={};return E.isMergeableObject(v)&&c(v).forEach(function(M){B[M]=o(v[M],E)}),c(b).forEach(function(M){d(v,M)||(p(v,M)&&E.isMergeableObject(b[M])?B[M]=l(M,E)(v[M],b[M],E):B[M]=o(b[M],E))}),B}function _(v,b,E){E=E||{},E.arrayMerge=E.arrayMerge||u,E.isMergeableObject=E.isMergeableObject||e,E.cloneUnlessOtherwiseSpecified=o;var B=Array.isArray(b),M=Array.isArray(v),R=B===M;return R?B?E.arrayMerge(v,b,E):m(v,b,E):o(b,E)}_.all=function(b,E){if(!Array.isArray(b))throw new Error("first argument should be an array");return b.reduce(function(B,M){return _(B,M,E)},{})};var g=_;return Mn=g,Mn}var sl=il();const ol=Oo(sl);var ui=function(e,t){return ui=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])},ui(e,t)};function bn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ui(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var De=function(){return De=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},De.apply(this,arguments)};function al(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 Cn(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 Ln(e,t){var r=t&&t.cache?t.cache:pl,n=t&&t.serializer?t.serializer:cl,i=t&&t.strategy?t.strategy:fl;return i(e,{cache:r,serializer:n})}function ul(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ll(e,t,r,n){var i=ul(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Bo(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 Io(e,t,r,n,i){return r.bind(t,e,n,i)}function fl(e,t){var r=e.length===1?ll:Bo;return Io(e,this,r,t.cache.create(),t.serializer)}function hl(e,t){return Io(e,this,Bo,t.cache.create(),t.serializer)}var cl=function(){return JSON.stringify(arguments)},dl=(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})(),pl={create:function(){return new dl}},Rn={variadic:hl},on=function(){return on=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},on.apply(this,arguments)};var I;(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"})(I||(I={}));var F;(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"})(F||(F={}));var Zt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Zt||(Zt={}));function Ki(e){return e.type===F.literal}function vl(e){return e.type===F.argument}function Mo(e){return e.type===F.number}function Co(e){return e.type===F.date}function Lo(e){return e.type===F.time}function Ro(e){return e.type===F.select}function $o(e){return e.type===F.plural}function ml(e){return e.type===F.pound}function Do(e){return e.type===F.tag}function Uo(e){return!!(e&&typeof e=="object"&&e.type===Zt.number)}function li(e){return!!(e&&typeof e=="object"&&e.type===Zt.dateTime)}var Fo=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,gl=/(?:[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 _l(e){var t={};return e.replace(gl,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 j=function(){return j=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},j.apply(this,arguments)};var bl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function El(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(bl).filter(function(p){return p.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],u=a.slice(1),l=0,f=u;l<f.length;l++){var c=f[l];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:u})}return r}function yl(e){return e.replace(/^(.*?)-/,"")}var es=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Go=/^(@+)?(\+|#+)?[rs]?$/g,xl=/(\*)(0+)|(#+)(0+)|(0+)/g,jo=/^(0+)$/;function ts(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Go,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 ko(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 wl(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)),!jo.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function rs(e){var t={},r=ko(e);return r||t}function Tl(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=yl(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=j(j(j({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return j(j({},u),rs(l))},{}));continue;case"engineering":t=j(j(j({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return j(j({},u),rs(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(xl,function(u,l,f,c,p,d){if(l)t.minimumIntegerDigits=f.length;else{if(c&&p)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(jo.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(es.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(es,function(u,l,f,c,p,d){return f==="*"?t.minimumFractionDigits=l.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:p&&d?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+d.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=j(j({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=j(j({},t),ts(s)));continue}if(Go.test(i.stem)){t=j(j({},t),ts(i.stem));continue}var a=ko(i.stem);a&&(t=j(j({},t),a));var o=wl(i.stem);o&&(t=j(j({},t),o))}return t}var Vr={"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 Sl(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=Al(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 Al(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=Vr[n||""]||Vr[r||""]||Vr["".concat(r,"-001")]||Vr["001"];return i[0]}var $n,Hl=new RegExp("^".concat(Fo.source,"*")),Nl=new RegExp("".concat(Fo.source,"*$"));function C(e,t){return{start:e,end:t}}var Ol=!!String.prototype.startsWith&&"_a".startsWith("a",1),Pl=!!String.fromCodePoint,Bl=!!Object.fromEntries,Il=!!String.prototype.codePointAt,Ml=!!String.prototype.trimStart,Cl=!!String.prototype.trimEnd,Ll=!!Number.isSafeInteger,Rl=Ll?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},fi=!0;try{var $l=qo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fi=(($n=$l.exec("a"))===null||$n===void 0?void 0:$n[0])==="a"}catch(e){fi=!1}var ns=Ol?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},hi=Pl?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},is=Bl?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},Vo=Il?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}},Dl=Ml?function(t){return t.trimStart()}:function(t){return t.replace(Hl,"")},Ul=Cl?function(t){return t.trimEnd()}:function(t){return t.replace(Nl,"")};function qo(e,t){return new RegExp(e,t)}var ci;if(fi){var ss=qo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ci=function(t,r){var n;ss.lastIndex=r;var i=ss.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else ci=function(t,r){for(var n=[];;){var i=Vo(t,r);if(i===void 0||Xo(i)||kl(i))break;n.push(i),r+=i>=65536?2:1}return hi.apply(void 0,n)};var Fl=(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:F.pound,location:C(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(I.UNMATCHED_CLOSING_TAG,C(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&di(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:F.literal,value:"<".concat(i,"/>"),location:C(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()||!di(this.char()))return this.error(I.INVALID_TAG,C(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(I.UNMATCHED_CLOSING_TAG,C(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:F.tag,value:i,children:a,location:C(n,this.clonePosition())},err:null}:this.error(I.INVALID_TAG,C(o,this.clonePosition())))}else return this.error(I.UNCLOSED_TAG,C(n,this.clonePosition()))}else return this.error(I.INVALID_TAG,C(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&jl(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=C(n,this.clonePosition());return{val:{type:F.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Gl(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 hi.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(),hi(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(I.EMPTY_ARGUMENT,C(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(I.MALFORMED_ARGUMENT,C(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:F.argument,value:i,location:C(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(I.MALFORMED_ARGUMENT,C(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=ci(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=C(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(I.EXPECT_ARGUMENT_TYPE,C(a,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var p=Ul(c.val);if(p.length===0)return this.error(I.EXPECT_ARGUMENT_STYLE,C(this.clonePosition(),this.clonePosition()));var d=C(f,this.clonePosition());l={style:p,styleLocation:d}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var _=C(i,this.clonePosition());if(l&&ns(l==null?void 0:l.style,"::",0)){var g=Dl(l.style.slice(2));if(o==="number"){var c=this.parseNumberSkeletonFromString(g,l.styleLocation);return c.err?c:{val:{type:F.number,value:n,location:_,style:c.val},err:null}}else{if(g.length===0)return this.error(I.EXPECT_DATE_TIME_SKELETON,_);var v=g;this.locale&&(v=Sl(g,this.locale));var p={type:Zt.dateTime,pattern:v,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?_l(v):{}},b=o==="date"?F.date:F.time;return{val:{type:b,value:n,location:_,style:p},err:null}}}return{val:{type:o==="number"?F.number:o==="date"?F.date:F.time,value:n,location:_,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(I.EXPECT_SELECT_ARGUMENT_OPTIONS,C(E,on({},E)));this.bumpSpace();var B=this.parseIdentifierIfPossible(),M=0;if(o!=="select"&&B.value==="offset"){if(!this.bumpIf(":"))return this.error(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),B=this.parseIdentifierIfPossible(),M=c.val}var R=this.tryParsePluralOrSelectOptions(t,o,r,B);if(R.err)return R;var m=this.tryParseArgumentClose(i);if(m.err)return m;var G=C(i,this.clonePosition());return o==="select"?{val:{type:F.select,value:n,options:is(R.val),location:G},err:null}:{val:{type:F.plural,value:n,options:is(R.val),offset:M,pluralType:o==="plural"?"cardinal":"ordinal",location:G},err:null}}default:return this.error(I.INVALID_ARGUMENT_TYPE,C(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,C(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(I.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,C(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=El(t)}catch(i){return this.error(I.INVALID_NUMBER_SKELETON,r)}return{val:{type:Zt.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Tl(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],u=new Set,l=i.value,f=i.location;;){if(l.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_SELECTOR,I.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;f=C(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?I.DUPLICATE_SELECT_ARGUMENT_SELECTOR:I.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?I.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:I.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,C(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var _=this.tryParseArgumentClose(d);if(_.err)return _;o.push([l,{value:m.val,location:C(d,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return o.length===0?this.error(r==="select"?I.EXPECT_SELECT_ARGUMENT_SELECTOR:I.EXPECT_PLURAL_ARGUMENT_SELECTOR,C(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(I.MISSING_OTHER_CLAUSE,C(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=C(i,this.clonePosition());return s?(a*=n,Rl(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=Vo(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(ns(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()&&Xo(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 di(e){return e>=97&&e<=122||e>=65&&e<=90}function Gl(e){return di(e)||e===47}function jl(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 Xo(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function kl(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 pi(e){e.forEach(function(t){if(delete t.location,Ro(t)||$o(t))for(var r in t.options)delete t.options[r].location,pi(t.options[r].value);else Mo(t)&&Uo(t.style)||(Co(t)||Lo(t))&&li(t.style)?delete t.style.location:Do(t)&&pi(t.children)})}function Vl(e,t){t===void 0&&(t={}),t=on({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Fl(e,t).parse();if(r.err){var n=SyntaxError(I[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||pi(r.val),r.val}var Qt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Qt||(Qt={}));var En=(function(e){bn(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),os=(function(e){bn(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('", "'),'"'),Qt.INVALID_VALUE,s)||this}return t})(En),ql=(function(e){bn(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Qt.INVALID_VALUE,i)||this}return t})(En),Xl=(function(e){bn(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,'"'),Qt.MISSING_VALUE,n)||this}return t})(En),J;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(J||(J={}));function zl(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==J.literal||r.type!==J.literal?t.push(r):n.value+=r.value,t},[])}function Wl(e){return typeof e=="function"}function Zr(e,t,r,n,i,s,a){if(e.length===1&&Ki(e[0]))return[{type:J.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var f=l[u];if(Ki(f)){o.push({type:J.literal,value:f.value});continue}if(ml(f)){typeof s=="number"&&o.push({type:J.literal,value:r.getNumberFormat(t).format(s)});continue}var c=f.value;if(!(i&&c in i))throw new Xl(c,a);var p=i[c];if(vl(f)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),o.push({type:typeof p=="string"?J.literal:J.object,value:p});continue}if(Co(f)){var d=typeof f.style=="string"?n.date[f.style]:li(f.style)?f.style.parsedOptions:void 0;o.push({type:J.literal,value:r.getDateTimeFormat(t,d).format(p)});continue}if(Lo(f)){var d=typeof f.style=="string"?n.time[f.style]:li(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:J.literal,value:r.getDateTimeFormat(t,d).format(p)});continue}if(Mo(f)){var d=typeof f.style=="string"?n.number[f.style]:Uo(f.style)?f.style.parsedOptions:void 0;d&&d.scale&&(p=p*(d.scale||1)),o.push({type:J.literal,value:r.getNumberFormat(t,d).format(p)});continue}if(Do(f)){var m=f.children,_=f.value,g=i[_];if(!Wl(g))throw new ql(_,"function",a);var v=Zr(m,t,r,n,i,s),b=g(v.map(function(M){return M.value}));Array.isArray(b)||(b=[b]),o.push.apply(o,b.map(function(M){return{type:typeof M=="string"?J.literal:J.object,value:M}}))}if(Ro(f)){var E=f.options[p]||f.options.other;if(!E)throw new os(f.value,p,Object.keys(f.options),a);o.push.apply(o,Zr(E.value,t,r,n,i));continue}if($o(f)){var E=f.options["=".concat(p)];if(!E){if(!Intl.PluralRules)throw new En(`Intl.PluralRules is not available in this environment.
4
+ Try polyfilling it using "@formatjs/intl-pluralrules"
5
+ `,Qt.MISSING_INTL_API,a);var B=r.getPluralRules(t,{type:f.pluralType}).select(p-(f.offset||0));E=f.options[B]||f.options.other}if(!E)throw new os(f.value,p,Object.keys(f.options),a);o.push.apply(o,Zr(E.value,t,r,n,i,p-(f.offset||0)));continue}}return zl(o)}function Yl(e,t){return t?De(De(De({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=De(De({},e[n]),t[n]||{}),r},{})):e}function Zl(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Yl(e[n],t[n]),r},De({},e)):e}function Dn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Ql(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ln(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Cn([void 0],r,!1)))},{cache:Dn(e.number),strategy:Rn.variadic}),getDateTimeFormat:Ln(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Cn([void 0],r,!1)))},{cache:Dn(e.dateTime),strategy:Rn.variadic}),getPluralRules:Ln(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Cn([void 0],r,!1)))},{cache:Dn(e.pluralRules),strategy:Rn.variadic})}}var Jl=(function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(c,p){return!c.length||p.type!==J.literal||typeof c[c.length-1]!="string"?c.push(p.value):c[c.length-1]+=p.value,c},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return Zr(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=al(a,["formatters"]);this.ast=e.__parse(t,De(De({},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=Zl(e.formats,n),this.formatters=i&&i.formatters||Ql(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=Vl,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();function Kl(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const st={},ef=(e,t,r)=>r&&(t in st||(st[t]={}),e in st[t]||(st[t][e]=r),r),zo=(e,t)=>{if(t==null)return;if(t in st&&e in st[t])return st[t][e];const r=yn(t);for(let n=0;n<r.length;n++){const i=r[n],s=rf(i,e);if(s)return ef(e,t,s)}};let $i;const rr=_n({});function tf(e){return $i[e]||null}function Wo(e){return e in $i}function rf(e,t){if(!Wo(e))return null;const r=tf(e);return Kl(r,t)}function nf(e){if(e==null)return;const t=yn(e);for(let r=0;r<t.length;r++){const n=t[r];if(Wo(n))return n}}function Yo(e,...t){delete st[e],rr.update(r=>(r[e]=ol.all([r[e]||{},...t]),r))}tr([rr],([e])=>Object.keys(e));rr.subscribe(e=>$i=e);const Qr={};function sf(e,t){Qr[e].delete(t),Qr[e].size===0&&delete Qr[e]}function Zo(e){return Qr[e]}function of(e){return yn(e).map(t=>{const r=Zo(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function vi(e){return e==null?!1:yn(e).some(t=>{var r;return(r=Zo(t))==null?void 0:r.size})}function af(e,t){return Promise.all(t.map(n=>(sf(e,n),n().then(i=>i.default||i)))).then(n=>Yo(e,...n))}const sr={};function Qo(e){if(!vi(e))return e in sr?sr[e]:Promise.resolve();const t=of(e);return sr[e]=Promise.all(t.map(([r,n])=>af(r,n))).then(()=>{if(vi(e))return Qo(e);delete sr[e]}),sr[e]}const uf={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"}}},lf={fallbackLocale:null,loadingDelay:200,formats:uf,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ff=lf;function Jt(){return ff}const Un=_n(!1);var hf=Object.defineProperty,cf=Object.defineProperties,df=Object.getOwnPropertyDescriptors,as=Object.getOwnPropertySymbols,pf=Object.prototype.hasOwnProperty,vf=Object.prototype.propertyIsEnumerable,us=(e,t,r)=>t in e?hf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mf=(e,t)=>{for(var r in t||(t={}))pf.call(t,r)&&us(e,r,t[r]);if(as)for(var r of as(t))vf.call(t,r)&&us(e,r,t[r]);return e},gf=(e,t)=>cf(e,df(t));let mi;const an=_n(null);function ls(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function yn(e,t=Jt().fallbackLocale){const r=ls(e);return t?[...new Set([...r,...ls(t)])]:r}function Pt(){return mi!=null?mi:void 0}an.subscribe(e=>{mi=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const _f=e=>{if(e&&nf(e)&&vi(e)){const{loadingDelay:t}=Jt();let r;return typeof window!="undefined"&&Pt()!=null&&t?r=window.setTimeout(()=>Un.set(!0),t):Un.set(!0),Qo(e).then(()=>{an.set(e)}).finally(()=>{clearTimeout(r),Un.set(!1)})}return an.set(e)},lt=gf(mf({},an),{set:_f}),xn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var bf=Object.defineProperty,un=Object.getOwnPropertySymbols,Jo=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable,fs=(e,t,r)=>t in e?bf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Di=(e,t)=>{for(var r in t||(t={}))Jo.call(t,r)&&fs(e,r,t[r]);if(un)for(var r of un(t))Ko.call(t,r)&&fs(e,r,t[r]);return e},nr=(e,t)=>{var r={};for(var n in e)Jo.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&un)for(var n of un(e))t.indexOf(n)<0&&Ko.call(e,n)&&(r[n]=e[n]);return r};const Tr=(e,t)=>{const{formats:r}=Jt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ef=xn(e=>{var t=e,{locale:r,format:n}=t,i=nr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Tr("number",n)),new Intl.NumberFormat(r,i)}),yf=xn(e=>{var t=e,{locale:r,format:n}=t,i=nr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Tr("date",n):Object.keys(i).length===0&&(i=Tr("date","short")),new Intl.DateTimeFormat(r,i)}),xf=xn(e=>{var t=e,{locale:r,format:n}=t,i=nr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Tr("time",n):Object.keys(i).length===0&&(i=Tr("time","short")),new Intl.DateTimeFormat(r,i)}),wf=(e={})=>{var t=e,{locale:r=Pt()}=t,n=nr(t,["locale"]);return Ef(Di({locale:r},n))},Tf=(e={})=>{var t=e,{locale:r=Pt()}=t,n=nr(t,["locale"]);return yf(Di({locale:r},n))},Sf=(e={})=>{var t=e,{locale:r=Pt()}=t,n=nr(t,["locale"]);return xf(Di({locale:r},n))},Af=xn((e,t=Pt())=>new Jl(e,t,Jt().formats,{ignoreTag:Jt().ignoreTag})),Hf=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=Pt(),default:l}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=zo(e,u);if(!f)f=(s=(i=(n=(r=Jt()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!o)return f;let c=f;try{c=Af(f,u).format(o)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message)}return c},Nf=(e,t)=>Sf(t).format(e),Of=(e,t)=>Tf(t).format(e),Pf=(e,t)=>wf(t).format(e),Bf=(e,t=Pt())=>zo(e,t),ea=tr([lt,rr],()=>Hf);tr([lt],()=>Nf);tr([lt],()=>Of);tr([lt],()=>Pf);tr([lt,rr],()=>Bf);function If({withLocale:e,translations:t}){lt.subscribe(r=>{r==null&&(rr.set(t),lt.set(e))})}function ta(e,t){Yo(e,t)}function Mf(e){lt.set(e)}function ra(e){Object.keys(e).forEach(t=>{ta(t,e[t])})}function Cf(e){const t=new URL(e);fetch(t.href).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{ta(n,r[n])})}).catch(r=>{console.log(r)})}const Lf=1e3,Rf={Unstarted:"scheduled",Running:"ongoing",Closing:"ended",Closed:"ended"},ln=e=>e==null||e===""?NaN:typeof e=="number"?e:Date.parse(e),na=({state:e,startTime:t,endTime:r,isNew:n=!1,now:i=Date.now()})=>{const s=ln(t),a=ln(r);let o=Rf[e];return o||(o=i<s?"scheduled":i<a?"ongoing":"ended"),o==="scheduled"&&i>=s&&(o="ongoing"),o==="ongoing"&&i>=a&&(o="ended"),o==="ongoing"&&n?"new":o},$f=e=>String(e).padStart(2,"0"),Df=(e,t=Date.now())=>{const r=Math.floor((e-t)/1e3);if(Number.isNaN(r)||r<=0)return null;const n=Math.floor(r/86400),i=Math.floor(r%86400/3600),s=Math.floor(r%3600/60),a=r%60;return[n,i,s,a].map($f).join(" : ")},hs=(e,t)=>{const r={month:"short",day:"numeric"};try{return new Intl.DateTimeFormat(t||"en",r).format(e)}catch(n){return new Intl.DateTimeFormat("en",r).format(e)}},Uf=(e,t,r)=>Number.isNaN(e)||Number.isNaN(t)?"":`${hs(e,r)} - ${hs(t,r)}`,Ff=(e,t,r,n=Date.now(),i)=>{const s=ln(t),a=ln(r);if(e==="ended"){const f=Uf(s,a,i);return f?{date:f}:{}}const o=e==="scheduled",u=o?s:a,l=Df(u,n);return l?{label:o?"tournamentStatus.startsIn":"tournamentStatus.endsIn",countdown:l,target:new Date(u).toISOString()}:{}},ia=wo(Date.now(),e=>{if(typeof document=="undefined")return;let t;const r=()=>e(Date.now()),n=()=>{t===void 0&&(r(),t=setInterval(r,Lf))},i=()=>{clearInterval(t),t=void 0},s=()=>{document.hidden?i():n()};return document.addEventListener("visibilitychange",s),document.hidden||n(),()=>{i(),document.removeEventListener("visibilitychange",s)}});var Gf=$r('<span class="timer-date svelte-1gqjw6m"> </span>'),jf=$r('<span class="timer-label svelte-1gqjw6m"> </span> <span class="timer-dash svelte-1gqjw6m"></span> <span class="timer-countdown"> </span>',1),kf=$r('<div class="timer svelte-1gqjw6m"><!> <!></div>'),Vf=$r('<div><div class="status-pill svelte-1gqjw6m"><span></span> <span class="status-label svelte-1gqjw6m"> </span></div> <!></div>');const qf={hash:"svelte-1gqjw6m",code:`.tournament-badge.svelte-1gqjw6m {box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:2px 8px 2px 2px;gap:6px;position:relative;background-color:var(--alpha-white-10, rgba(0, 0, 0, 0.3));border:1px solid var(--alpha-white-25, rgba(251, 251, 251, 0.2));backdrop-filter:blur(10px);border-radius:100px;width:fit-content;height:25px;&[data-status='scheduled'],
6
+ &[data-status='ongoing'] {background-color:var(--alpha-white-10, rgba(251, 251, 251, 0.1));}.status-pill:where(.svelte-1gqjw6m) {box-sizing:border-box;display:flex;align-items:center;gap:4px;padding:2px 8px 2px 6px;border-radius:20px;border:0.8px solid var(--alpha-white-25, rgba(251, 251, 251, 0.2));box-shadow:0px 0.83px 1.66px 0px rgba(16, 24, 40, 0.05);background-color:var(--alpha-black-20, rgba(0, 0, 0, 0.2));height:21px;flex-shrink:0;white-space:nowrap;.dot-status:where(.svelte-1gqjw6m) {width:8px;height:8px;border-radius:50%;flex-shrink:0;transition:background 0.2s ease,
7
+ box-shadow 0.2s ease;&.new {background:var(--semantic-success-400, rgba(45, 223, 0, 1));}&.scheduled {background:var(--semantic-info-400, rgba(0, 156, 245, 1));}&.ended {background:var(--secondary-300, rgba(78, 103, 134, 1));}&.ongoing {background:var(--border-alert, rgba(255, 205, 5, 1));}}.status-label:where(.svelte-1gqjw6m) {font-weight:500;font-size:11px;line-height:13px;color:var(--secondary-50, rgba(223, 227, 232, 1));}}.timer:where(.svelte-1gqjw6m) {display:flex;align-items:center;gap:6px;color:var(--secondary-50, rgba(223, 227, 232, 1));font-size:10px;line-height:1;white-space:nowrap;flex-shrink:0;.timer-label:where(.svelte-1gqjw6m),
8
+ .timer-date:where(.svelte-1gqjw6m) {font-weight:400;}.timer-dash:where(.svelte-1gqjw6m) {font-weight:500;opacity:0.7;}}}.tournament-badge.tournament-badge--large.svelte-1gqjw6m {height:41px;.status-pill:where(.svelte-1gqjw6m) {height:34px;}.status-pill:where(.svelte-1gqjw6m) .status-label:where(.svelte-1gqjw6m) {font-size:18px;}.timer:where(.svelte-1gqjw6m) {font-size:16px;}.dot-status:where(.svelte-1gqjw6m) {width:8px;height:8px;}}
9
+
10
+ @media (max-width: 767px) {.tournament-badge.tournament-badge--large.svelte-1gqjw6m {height:25px;.status-pill:where(.svelte-1gqjw6m) {height:21px;}.status-pill:where(.svelte-1gqjw6m) .status-label:where(.svelte-1gqjw6m) {font-size:11px;}.timer:where(.svelte-1gqjw6m) {font-size:10px;}.dot-status:where(.svelte-1gqjw6m) {width:5px;height:5px;}}
11
+ }`};function sa(e,t){wi(t,!0),xo(e,qf);const r=()=>So(ea,"$_",n),[n,i]=Ao(),s=ht(t,"state",7),a=ht(t,"startTime",7),o=ht(t,"endTime",7),u=ht(t,"isNew",7,!1),l=ht(t,"language",7,"en"),f=ht(t,"size",7,"default");ra(da.STATUS_BADGE_TRANSLATIONS);const c=Po(ia),p=kn(()=>na({state:s(),startTime:a(),endTime:o(),isNew:u(),now:c.current})),d=kn(()=>Ff(L(p),a(),o(),c.current,l()));var m={get state(){return s()},set state(D){s(D),Ve()},get startTime(){return a()},set startTime(D){a(D),Ve()},get endTime(){return o()},set endTime(D){o(D),Ve()},get isNew(){return u()},set isNew(D=!1){u(D),Ve()},get language(){return l()},set language(D="en"){l(D),Ve()},get size(){return f()},set size(D="default"){f(D),Ve()}},_=Vf();let g;var v=_r(_),b=_r(v);let E;var B=Rt(b,2),M=fr(B,!0);pr(v);var R=Rt(v,2);{var G=D=>{var Pe=kf(),Be=_r(Pe);{var ne=Ie=>{var et=Gf(),ft=fr(et,!0);br(()=>cr(ft,L(d).date)),$t(Ie,et)};Wr(Be,Ie=>{L(d).date&&Ie(ne)})}var Bt=Rt(Be,2);{var It=Ie=>{var et=jf(),ft=Zs(et),Dr=fr(ft,!0),pe=Rt(ft,2);pe.textContent="-";var Ur=Rt(pe,2),oa=fr(Ur,!0);br(aa=>{cr(Dr,aa),cr(oa,L(d).countdown)},[()=>r()(L(d).label)]),$t(Ie,et)};Wr(Bt,Ie=>{L(d).countdown&&Ie(It)})}pr(Pe),$t(D,Pe)};Wr(R,D=>{(L(d).date||L(d).countdown)&&D(G)})}pr(_),br(D=>{g=si(_,1,"tournament-badge svelte-1gqjw6m",null,g,{"tournament-badge--large":f()==="large"}),oi(_,"data-status",L(p)),oi(v,"data-status",L(p)),E=si(b,1,"dot dot-status svelte-1gqjw6m",null,E,{new:L(p)==="new",scheduled:L(p)==="scheduled",ongoing:L(p)==="ongoing",ended:L(p)==="ended"}),cr(M,D)},[()=>r()(`tournamentStatus.${L(p)}`)]),$t(e,_);var Ee=Ti(m);return i(),Ee}No(sa,{state:{},startTime:{},endTime:{},isNew:{},language:{},size:{}},[],[],{mode:"open"});exports.$format=ea;exports.StatusBadge=sa;exports.action=Vu;exports.append=$t;exports.append_styles=xo;exports.bind_this=Ku;exports.child=_r;exports.comment=Hu;exports.create_custom_element=No;exports.delegate=xu;exports.delegated=yu;exports.each=Fu;exports.event=Eu;exports.first_child=Zs;exports.flushSync=Ve;exports.fromStore=Po;exports.from_html=$r;exports.from_svg=Su;exports.get=L;exports.getDefaultExportFromCjs=Oo;exports.html=ku;exports.if_block=Wr;exports.index=Du;exports.key=$u;exports.loadTranslations=Cf;exports.noop=Fe;exports.only_child=fr;exports.pop=Ti;exports.prop=ht;exports.proxy=pt;exports.push=wi;exports.registerTranslations=ra;exports.replay_events=_u;exports.reset=pr;exports.resolveTournamentStatus=na;exports.set=we;exports.setLocale=Mf;exports.set_attribute=oi;exports.set_class=si;exports.set_style=zu;exports.set_text=cr;exports.setupI18n=If;exports.setup_stores=Ao;exports.sibling=Rt;exports.snippet=Lu;exports.state=ke;exports.store_get=So;exports.template_effect=br;exports.text=Au;exports.tick=mu;exports.tournamentClock=ia;exports.untrack=er;exports.user_derived=kn;exports.user_effect=uu;exports.user_pre_effect=lu;